Sub topic 2
Convergence and Why It Matters
This chapter assumes basic IP addressing, routing tables, longest-prefix match, and shortest-path graphs.
Convergence and why it matters
Convergence is the process by which all routers learn a consistent set of reachable paths after a topology change. A network has converged when routers agree enough to forward traffic correctly.
A converged network needs:
- Correct routes to active destinations.
- No forwarding loops.
- A reasonable convergence time after a link or router fails.
During convergence, different routers may temporarily hold different information. This can cause dropped packets, loops, or traffic sent along inefficient paths.
Routing loops and count to infinity
Distance-vector routers learn destinations through neighbors. After a failure, a router may hear an old route from a neighbor and believe that neighbor still has a path. The routers then advertise increasing costs to each other.
This is count to infinity. Each update increases the metric until the protocol's maximum value marks the destination unreachable. In RIP, infinity is 16, so a route can require several update cycles to disappear.
Limiting loops
Distance-vector protocols reduce this problem with several rules:
- Split horizon: Do not advertise a route back through the neighbor from which it was learned.
- Poison reverse: Advertise that route back to that neighbor with the infinity metric.
- Hold-down: Temporarily reject suspicious improvements or alternatives after a failure.
- Maximum metric: Treat values at or above a limit as unreachable.
These rules limit loops, but they do not eliminate every failure mode.
RIP in practice
RIP is a distance-vector protocol that uses hop count as its metric. It supports at most 15 hops, sends periodic updates, and is simple to configure. Its small metric range and slower convergence make it unsuitable for many large networks.
router rip
version 2
network 10.0.0.0
no auto-summaryLink-state routing: everyone holds the map
A link-state router builds a database describing the network topology. Routers flood link-state advertisements (LSAs) so other routers can build the same map. Each router then computes its own shortest paths and installs next hops.
Because a failure is flooded as topology information, link-state protocols usually converge faster and scale better than basic distance-vector protocols. They require more memory, processing, and configuration.
Hello packets and adjacencies
Routers use Hello packets to discover neighbors and verify that they remain reachable. Matching settings such as area, timers, and network type allow routers to form an adjacency, a protocol relationship used to exchange routing information.
Exercise
A RIP router learned a route through neighbor B. Which rule prevents it from advertising that route back to B, and what does poison reverse add?
Show answer
Split horizon suppresses the advertisement. Poison reverse advertises the route with the infinity metric instead.