Concepts / Distance-vector routing

Distance-vector routing

Counting to infinity

Also called routing loop, metric 16, infinity, hop limit

Routers in a loop each believe the next about a lost route, raising its metric one step at a time.

When a network disappears and a router hears an older, wrong offer for it from a neighbour that was itself relying on that router, both keep raising the metric and packets circle until TTL runs out. RIP ends it by declaring 16 infinity, which also caps a RIP network at 15 hops across. Link-state protocols (OSPF) and EIGRP's feasibility condition avoid it altogether.

Four routers, no network
Four routers, no network

Each router points at the next, so the circle looks like a route from inside any one of them; the network itself is nowhere on it. From the RIP routing: routers that learn by rumor lab.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab