Routing Loops: The Packet Stops, but the Bad Route Can Remain
A routing loop occurs when routers' forwarding choices form a cycle, sending data back to a router it has already passed. Routers move packets—small units of network data—toward a destination. In a loop, their choices keep pointing around the same path instead.
The route can remain wrong for some time, but an individual IP packet doesn't circulate forever. IP, the Internet Protocol, gives packets a limited forwarding lifetime. That limit stops a packet; it doesn't repair the route.
A sends to B, and B sends it back
Each router chooses a next hop, the next router to receive a packet on the way toward its destination. A loop can form when those choices disagree about where the destination lies.
Suppose router A's information says to reach a particular network through router B. Router B's information says to reach that same network through A. A packet for the destination follows this repeating path:
A → B → A → B
Each router follows its own instructions. Taken together, those instructions send the packet in a circle.
Each forwarding step uses some of the packet's allowance. In IPv4, one version of IP, the packet carries a number called Time to Live, usually shortened to TTL.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
The name can sound like a stopwatch, but routers must reduce TTL by at least one when forwarding. A packet whose TTL runs out is discarded.
In this example, each router subtracts one:
| Packet arrives at | TTL on arrival | What the router does |
|---|---|---|
| A | 4 | Sends to B with TTL 3 |
| B | 3 | Sends to A with TTL 2 |
| A | 2 | Sends to B with TTL 1 |
| B | 1 | Discards it because the next reduction reaches zero |
The IPv4 router requirements describe this behavior. IPv6, the other major version of IP, names its corresponding field Hop Limit and reduces it by one at each forwarding step.
The packet in the table is now gone. If the next packet arrives while A and B still hold the same bad instructions, it can begin the same journey with its own counter.
How routers end up disagreeing
A persistent configuration mistake can make forwarding choices point around a cycle. A loop can also occur temporarily while routers learn about a change.
RIP, the Routing Information Protocol, provides a documented example of the second problem. It lets routers tell neighbors which networks they can reach and at what cost. After a connection fails, a router may still report older information. Another router can mistake that report for a working route even when the reported route ultimately depends on the connection that failed.
This is one challenge for distance-vector routing, where routers learn destinations and costs from their neighbors. The information needs to settle after a change, a process called convergence.
The RIP specification describes measures such as avoiding sending a learned route back toward its source, or explicitly reporting it there as unreachable. Those measures address particular loops; they aren't a universal cure for every circular route.
How Routers Learn the Way on Their Own
The failed trip and the faulty instructions
Looping traffic can waste network capacity and prevent delivery. Those effects may be clues during an investigation, but slow service or congestion alone doesn't show which routers, if any, are forwarding in a cycle.
IPv4's rules also specify a Time Exceeded error for applicable traffic when TTL expires. That can help explain a failed trip, although a person shouldn't assume an error will always be visible: network devices can filter or limit such messages.
The useful distinction is between the evidence about one packet and the forwarding choices that affected it. Seeing a packet expire explains why it stopped. Correcting the problem requires addressing why the routers kept sending it back, so the next packet can take a route that actually reaches the destination.
Time to Live: Why Packet TTL and DNS TTL Count Different Things

Poison Reverse: How Routers Reject a False Backup Route

Link-State Routing: How Routers Share a Changing Map

QUOTE:
"Amateurs hack systems, professionals hack people."
