Routing loops: why they happen, how protocols prevent them and how to find one
In short: A routing loop happens when routers point at each other for the same destination, so packets go round in circles until their TTL expires. Distance-vector protocols use split horizon, poisoning and hold-down timers to avoid loops, and link-state protocols avoid them by calculating from a full map. Most modern loops come from redistribution, summarisation or static routes.
What a loop looks like
A routing loop is not a broken router. Each router involved is doing exactly what its table says. The problem is that the tables disagree in a way that sends packets back where they came from. Unlike a Layer 2 loop, a routing loop does not multiply packets, because the IP header has a TTL (Hop Limit in IPv6) that drops by one at every router. After at most 255 hops the packet is thrown away and an ICMP Time Exceeded is sent back. Still, every looping packet uses bandwidth on every lap, so a busy loop can fill links and CPU.
How protocols prevent loops
- Split horizon: a distance-vector router does not advertise a route back out of the interface it learned it on.
- Route poisoning and poison reverse: a lost route is advertised with an infinite metric (16 in RIP) so neighbours remove it quickly.
- Hold-down timers: for a while after a route goes down, a router ignores worse news about it, which stops old information coming back.
- Feasibility condition in EIGRP: a backup path is only accepted if it is guaranteed loop-free.
- Link-state protocols (OSPF, IS-IS) give every router the same map and run the same calculation, so loops only appear briefly while the network converges.
- BGP rejects any route whose AS path already contains its own AS number.
Common causes in real networks
- Two-way redistribution between protocols at two points. A route leaves OSPF into EIGRP at one router and comes back into OSPF at another, now looking like a better external route. Route tags and filters prevent this.
- Static routes pointing at each other: router A has a default route to B, and B has a static route for a subnet pointing back to A, but the subnet does not exist anywhere.
- Summaries without a discard route: a router advertising 10.20.0.0/16 receives a packet for an unused 10.20.99.0 address and sends it to its own default route, which points back towards the network that sent it. OSPF and EIGRP automatically add a Null0 route for summaries to stop this. Static summaries need one by hand.
- Default routes in both directions between a firewall and a router.
Finding a loop
Traceroute shows a loop as the same two or three addresses repeating until it gives up:
3 10.0.12.2 1 ms
4 10.0.12.1 1 ms
5 10.0.12.2 2 ms
6 10.0.12.1 2 ms
Then check show ip route for the destination on both routers. One of them will point at the other for a prefix that the other also points back for. Interface counters showing heavy traffic between two routers with little real traffic behind them are another clue.
Real-world example: the unused subnet
A company advertised a static summary of its whole 10.20.0.0/16 range to its firewall, and the firewall had a default route back to the core. When a scanner on the internet probed unused addresses, packets for 10.20.200.x bounced between the core and the firewall 120 times each. Adding ip route 10.20.0.0 255.255.0.0 Null0 on the core made those packets drop at the first hop.
Practice
Why does a routing loop not last forever for each packet?
What is split horizon?
How does a Null0 route help with summaries?
Key takeaways
- A routing loop is routers pointing at each other for the same destination.
- TTL limits each packet, but loops still waste bandwidth and CPU.
- Split horizon, poisoning, hold-down and the EIGRP feasibility condition prevent loops.
- Redistribution, static routes and summaries without Null0 cause most real loops.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.