Count To Infinity

2 min read Last updated Sat Jun 06 2026 07:03:21 GMT+0000 (Coordinated Universal Time)

A failure mode of distance vector routing. When a link fails, two routers increment each other’s stale route indefinitely — each believing the other still has a valid path to the destination.

While AA‘s direct link to XX is up, AA always advertises the true direct cost. That cost is always less than any indirect path through BB (which would be AA‘s cost +1+ 1 at minimum). Bellman-Ford selects the minimum — so AA‘s direct route always wins. BB’s advertisement back to AA is never preferred, and no loop forms.

Count-to-infinity requires the direct route to disappear entirely. Only then does a stale indirect advertisement become AA‘s only option.

Mechanism

Consider routers AA and BB, where AA has a direct link to destination XX.

  1. Link AXA \to X fails.
  2. AA has no route to XX. BB still advertises a route to XX via AA (stale from the previous update cycle).
  3. AA adopts BB‘s route: cost = BB‘s distance +1+ 1.
  4. BB sees AA advertising a route to XX and updates its own: cost = AA‘s new distance +1+ 1.
  5. Each periodic update increments both distances. The count climbs toward infinity.

Mitigations

  • Split horizon
    A router does not advertise a route back to the neighbor it learned it from. Breaks the two-router loop before it starts.
  • Route poisoning
    When a route fails, the router immediately advertises it with metric = infinity to all neighbors, before the next periodic update propagates stale information.
Was this helpful?