Sub topic 14
Count-to-Infinity, Split Horizon and Poison Reverse
Assume you know IPv4 addressing, forwarding, and the basic distance-vector algorithm. A distance-vector router stores the cost to each destination and the next hop. Routers periodically exchange these values with their neighbors.
The count-to-infinity problem
Distance-vector routing uses neighbor advertisements rather than a complete network map. This can create a loop after a link or router fails.
Consider this network:
Before the failure:
- B reaches C directly with cost 1.
- A reaches C through B with cost 2.
- C fails, so B removes its direct route.
- B hears A advertise a cost of 2 and assumes A has another path to C.
- B advertises cost 3 to C.
- A accepts this route and advertises cost 4.
- The values continue increasing.
The routers are actually sending traffic in a loop. They do not know that their information came from each other.
The value called infinity represents an unreachable destination. In general distance-vector algorithms, infinity may be a large value. RIP defines infinity as 16, so a route whose metric reaches 16 is removed. This limits the duration of the problem but does not prevent it.
Split horizon
Split horizon prevents a router from advertising a route back through the interface from which it learned that route.
For example, if A learned its route to C from B, A does not advertise that route to B. B therefore cannot mistake A's route for an independent path.
| Technique | Advertisement to the route's learning neighbor | Main benefit |
|---|---|---|
| Split horizon | Omitted | Prevents many two-router loops |
| Poison reverse | Sent with infinite cost | Makes the route explicitly unreachable |
Split horizon is simple, but silence can be ambiguous. A neighbor might interpret a missing route as temporary packet loss or an unchanged state.
Poison reverse
Poison reverse is a stronger form of split horizon. A router advertises the route back to its learning neighbor, but with an infinite metric.
Suppose B learned that C is reachable through A. B tells A:
destination C: cost infinityA then knows that B cannot provide a valid alternate path to C through that route. This explicitly breaks many two-router loops.
Poison reverse does not solve every loop. A loop involving three or more routers can still form because each router may hear a route from a different neighbor. Triggered updates, route timers, hold-down rules, and a finite infinity value provide additional protection, depending on the protocol.
Exam approach
For a distance-vector problem:
- Write each router's current destination cost and next hop.
- Apply the link failure.
- Recalculate advertisements using the algorithm's loop-prevention rule.
- Treat the stated infinity value as unreachable.
- Check whether a route's next hop is the router that originally advertised it.
Exercise
A RIP network has routers A-B-C in a line. A reaches C with metric 2 through B. The link B-C fails, and B receives A's stale advertisement for C with metric 2. What metric does B advertise next, and why does RIP eventually stop the increase?
Show answer
B advertises metric 3 through A. Each later update can increase the metric, but RIP treats metric 16 as infinity and removes the route.