The Wayback Machine - https://web.archive.org/web/20241109171644/https://www.geeksforgeeks.org/route-poisoning-and-count-to-infinity-problem-in-routing/
Open In App

Route Poisoning and Count to infinity problem in Routing

Last Updated : 30 Sep, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The main issue with Distance Vector Routing (DVR) protocols is Routing Loops since Bellman-Ford Algorithm cannot prevent loops. This routing loop in the DVR network causes the Count to Infinity Problem. Routing loops usually occur when an interface goes down or two routers send updates at the same time. 

Counting to infinity problem: 

So in this example, the Bellman-Ford algorithm will converge for each router, they will have entries for each other. B will know that it can get to C at a cost of 1, and A will know that it can get to C via B at a cost of 2. 
 

If the link between B and C is disconnected, then B will know that it can no longer get to C via that link and will remove it from its table. Before it can send any updates it’s possible that it will receive an update from A which will be advertising that it can get to C at a cost of 2. B can get to A at a cost of 1, so it will update a route to C via A at a cost of 3. A will then receive updates from B later and update its cost to 4. They will then go on feeding each other bad information toward infinity which is called as Count to Infinity problem.  

Solution for Count to Infinity problem:-

Route Poisoning: 
When a route fails, distance vector protocols spread the bad news about a route failure by poisoning the route. Route poisoning refers to the practice of advertising a route, but with a special metric value called Infinity. Routers consider routes advertised with an infinite metric to have failed. Each distance vector routing protocol uses the concept of an actual metric value that represents infinity. RIP defines infinity as 16. The main disadvantage of poison reverse is that it can significantly increase the size of routing announcements in certain fairly common network topologies. 

Split horizon: 
If the link between B and C goes down, and B had received a route from A, B could end up using that route via A. A would send the packet right back to B, creating a loop. But according to the Split horizon Rule, Node A does not advertise its route for C (namely A to B to C) back to B. On the surface, this seems redundant since B will never route via node A because the route costs more than the direct route from B to C. 

Consider the following network topology showing Split horizon- 

  • In addition to these, we can also use split horizon with route poisoning were above both techniques will be used combined to achieve efficiency and less increase the size of routing announcements.
  • Split horizon with Poison reverse technique is used by Routing Information Protocol (RIP) to reduce routing loops. Additionally, Holddown timers can be used to avoid the formation of loops. The hold-down timer immediately starts when the router is informed that the attached link is down. Till this time, the router ignores all updates of the down route unless it receives an update from the router of that downed link. During the timer, If the downlink is reachable again, the routing table can be updated.

References: 
https://en.wikipedia.org/wiki/Distance-vector_routing_protocol#Count-to-infinity_problem 
https://en.wikipedia.org/wiki/Route_poisoning 
https://en.wikipedia.org/wiki/Split_horizon_route_advertisement 

 

 



Similar Reads

BGP Route Aggregation and Route Summarization
BGP route aggregation and route summarization are key techniques used to optimize the routing process in large networks. Route aggregation involves combining multiple specific IP routes into a single, broader route, reducing the number of routes that need to be advertised and maintained. In this article, we are going to discuss BGP in detail along
5 min read
How to Add a Static Route to Windows Routing Table?
A routing table is a part of a computer's operating system. It contains the details of the best way to reach different networks, such as your home or office network. The table helps your computer send data to different networks and devices. Windows uses a routing table to determine the best way to send data to a specific destination. A routing tabl
3 min read
What is Routing Loop and How to Avoid Routing Loop?
Routing is a procedure that helps the packet choose an optimal path to reach its destination as soon as possible. For example, a device can be a router, which is used to handle traffic within networks. Optimal network routing methods help maintain your network operating efficiently at help in some ways i.e. faster data access and preventing overloa
3 min read
Difference between Distance vector routing and Link State routing
Routing, a process in computer networks, is responsible for the best path to transmit data packets from one node to another, Distance Vector Routing and Link State Routing are two of the most prominent dynamic routing algorithms, they each have their own procedures for calculating routes and disseminating information about those routes throughout a
4 min read
Difference Between Classful Routing and Classless Routing
Classful and classless routing are two different ways through which the IP addresses are managed and structured in a network. Classful Routing is an older approach whereby the IP addresses are divided by fixed classes such as A, B, C, and the rest all with a preset mask. This way, the subnet mask information is not carried in routing updates and it
5 min read
Unicast Routing - Link State Routing
Prerequisite: Distance Vector Routing, Dijkstra algorithm Unicast means the transmission from a single sender to a single receiver. It is a point-to-point communication between the sender and receiver. There are various unicast protocols such as TCP, HTTP, etc.   TCP is the most commonly used unicast protocol. It is a connection-oriented protocol t
7 min read
ARP Spoofing and ARP Poisoning
In this article, we will learn about the difference between ARP Spoofing and ARP Poisoning. We will explore them and understand the importance of these two malicious attacks in the context of network security. Before diving into the difference between ARP Spoofing and ARP Poisoning let's understand these topics in detail. What is ARP?ARP or Address
5 min read
DNS Spoofing or DNS Cache poisoning
Prerequisite - Domain Name Server Before Discussing DNS Spoofing, First, discuss what is DNS.A Domain Name System (DNS) converts a human-readable name (such as www.geeksforgeeks.org) to a numeric IP address. The DNS system responds to one or more IP-address by which your computer connects to a website (such as geeksforgeeks.org) by using one of the
3 min read
MITM (Man in The Middle) Attack using ARP Poisoning
Introduction :Man In The Middle Attack implies an active attack where the attacker/Hacker creates a connection between the victims and sends messages between them or may capture all the data packets from the victims. In this case, the victims think that they are communicating with each other, but in reality, the malicious attacker/hacker controls t
5 min read
What Is BGP Poisoning?
Border Gateway Protocol (BGP) is an IETF standard which refers to a gateway protocol that controls how packets get routed from one network to another by exchanging routing and its reachability information between the edge routers and also through exchanging routing information between autonomous systems, as networks interact and depend on each othe
5 min read
How to Avoid ARP Poisoning?
Many cyber-attacks take place by exploiting the weaknesses in the network. ARP poisoning is also one such cyber-attack. It exploits the Address Resolution Protocol (ARP) to attack network traffic. Before we go in-depth to understand the concept of ARP poisoning, let us first understand the ARP protocol. ARP Protocol:In earlier days of computer netw
6 min read
What is ARP Spoofing? - ARP poisoning Attack
The ARP Poisoning, also known as ARP Spoofing, is a type of cyberattack that takes advantage of the ARP (Address Resolution Protocol). ARP is a protocol that maps an IP address to a MAC address within a local network. However, ARP lacks authentication mechanisms, and this is what the attack exploits. The attacker sends fake ARP responses to a speci
5 min read
BGP (Border Gateway Protocol) Advanced Features and Route Reflectors
A standardized outside gateway protocol called Border Gateway Protocol (BGP) is used to transfer reachability and routing data between various autonomous systems (ASes) on the Internet. As BGP is a path vector protocol, it bases its routing choices on the paths, rules and policies set up by network administrators. It provides a number of sophistica
4 min read
How OSPF Calculate the Best Route?
Answer: OSPF calculates the best route using the Dijkstra algorithm based on the lowest cumulative cost path.OSPF (Open Shortest Path First), that routing protocol very good for choosing the bestest route for data packets to follow from one router to another. It calculates shortest path by considering many many parameters through its algorithm. Cos
2 min read
What Does IP Route 0.0.0.0 Mean?
Answer: IP (Internet Protocol) route 0.0.0.0 is defined as a default route. Default route means when no address is stored in the memory, and when the program needs to execute the next instruction, then this default address is used.Default address is also known as a placeholder address, and it means the IP address that is connected to this network,
2 min read
Fixed and Flooding Routing algorithms
In most situations, packets require multiple hops to make a journey towards the destination. Routing is one of the most complex and crucial aspects of packet-switched network design. Desirable Properties of Routing Algorithms:- Correctness and SimplicityRobustness: Ability of the network to deliver packets via some route even in the face of failure
5 min read
Differences between Intradomain and Interdomain Routing
In this section, we shall discuss how Intra-domain Routing is different from Inter-domain Routing. Intra domain is any protocol in which Routing algorithm works only within domains on the other hand Inter domain is any protocol in which Routing algorithm works within and between domains. Let us see the differences between Intradomain and Interdomai
1 min read
Trust Based Energy-Efficient and Secure Routing Protocols for IoT
There are many network designs and Internet of Things (IoT) models (devices) that are at work presently, but these lack either in terms of energy efficiency or aren’t optimized. To send information from source to destination node is most important task to be carried out in large scale and dynamic IoT environment. Thus, node may be repeated many tim
4 min read
Difference between Hierarchical and Flat routing protocol
1. Hierarchical Routing Protocol: Hierarchical Routing is the method of routing in networks that is based on hierarchical addressing. Most transmission control protocol, Internet protocol (TCPIP). Routing is based on two level of hierarchical routing in which IP address is divided into a network, person and a host person. Gateways use only the netw
3 min read
Anycast Routing and its Applications
Anycast routing is a way of sending data over the network to the destination. It has multiple possible locations. For example, suppose you want to access a website that has servers in different countries. Anycast routing can help you connect to the server that is closest and best for you. Instead of sending you to a fixed location, web browsing is
5 min read
Difference between Adaptive and Non-Adaptive Routing algorithms
Routing algorithms are important in the computation of the best routes through which data packets in a network should pass through. Depending on the nature of their implementation they are classified as Adaptive (Dynamic) and Non-Adaptive (Static). Category 1: Algorithms that self-organize with reference to current network conditions Category 2: Al
6 min read
Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
When dealing with network routing, it's crucial to understand the various protocols that help direct traffic across complex networks. Two significant protocols in this space are the Border Gateway Protocol (BGP) and the Routing Information Protocol (RIP). Each serves different purposes and operates under different principles. This article explores
5 min read
Difference between Transparent Bridge and Source Routing Bridge
A bridge is a networking device that connects two or more Local Area Networks (LANs) to form a single extended network. It operates at the data link layer of the OSI model facilitating communication between different network segments.In this article we will see difference between Transparent Bridge and Source Routing Bridge in detail. What is Trans
5 min read
Network Layer Services- Packetizing, Routing and Forwarding
The network Layer is the third layer in the OSI model of computer networks. Its main function is to transfer network packets from the source to the destination. It involves both the source host and the destination host. Key among these services are packetizing, routing, and forwarding. Packetizing involves encapsulating data into packets suitable f
8 min read
Difference between Static and Dynamic Routing
Routing is a vital communication mechanism that governs how data packets travel from source to destination. Effective routing ensures that data is transferred across networks in an efficient, reliable, and timely manner. There are two main forms of routing: static and dynamic. In this article, we will discuss the differences between static and dyna
4 min read
Probabilistic shortest path routing algorithm for optical networks
Data transfer operations is a crucial aspect in case of networking and routing. So efficient data transfer operations is a must need, with minimum hardware cost (Optical Cables, WDM Network components, Decoders, Multiplexers) and also in the minimum time possible. Thus, the need is to propose an algorithm that finds the shortest path between two no
5 min read
Inter VLAN Routing by Layer 3 Switch
Prerequisite - Access and trunk ports Normally, Routers are used to divide the broadcast domain and switches (at layer 2) Operate in a single broadcast domain but Switches can also divide the broadcast domain by using the concept of VLAN (Virtual LAN). VLAN is the logical grouping of devices in the same or different broadcast domains. By default, a
5 min read
Features of Enhanced Interior Gateway Routing Protocol (EIGRP)
Enhanced Interior Gateway Routing Protocol (EIGRP) is a Cisco-proprietary Hybrid routing protocol that contains features of distance-vector and link-state routing protocols. It is a network layer protocol that works on protocol number 88. Some of its features are: Rapid convergence - EIGRP uses a DUAL algorithm to support rapid convergence. If a ro
4 min read
Routing Information Protocol (RIP)
Routing Information Protocol (RIP) is a dynamic routing protocol that uses hop count as a routing metric to find the best path between the source and the destination network. It is a distance-vector routing protocol that has an AD value of 120 and works on the Network layer of the OSI model. RIP uses port number 520. Hop Count Hop count is the numb
6 min read
Securing Routing Protocols
Prerequisite - Routing Information Protocol (RIP), EIGRP fundamentals, OSPF protocol fundamentals Routing is a process in which a layer 3 device (either router or layer 3 switch) finds the best path between the source and destination network. Dynamic routing protocols are used to decrease administrator overhead, i.e., administrator have to configur
5 min read
Article Tags :
Practice Tags :
three90RightbarBannerImg