What Happens to UDP Packets in a Routing Loop?
When a routing loop occurs, User Datagram Protocol (UDP) packets become trapped in an endless transmission cycle between misconfigured or desynchronized routers. Because UDP is a connectionless protocol without built-in delivery confirmation or flow control, these packets circulate continuously until their IP Time to Live (TTL) value reaches zero, at which point they are discarded by a router, causing network congestion and complete packet loss for the communicating applications.
Continuous Cycling Between Routers
In a routing loop, routing tables contain conflicting or circular paths for a specific destination network. When a router receives a UDP packet, it consults its routing table and forwards the packet to a neighboring router, which mistakenly forwards it back or passes it along a path that leads back to the first router. The UDP packet continuously hops between these intermediate devices without ever making forward progress toward its actual destination.
TTL Decrement and Packet Discarding
To prevent looped packets from circulating indefinitely, the underlying Internet Protocol (IP) utilizes the Time to Live (TTL) field in IPv4 (or Hop Limit in IPv6).
- Hop Decrement: Every router that processes the UDP packet decrements the TTL value by at least one.
- Reaching Zero: If the routing loop persists long enough, the TTL eventually reaches zero.
- Drop Action: The router holding the packet when TTL reaches zero immediately discards it to protect the network from perpetual congestion.
ICMP Error Generation
When a router drops a UDP packet due to an expired TTL, it typically generates an ICMP Type 11 (Time Exceeded) error message and sends it back to the original source IP address.
While the operating system at the source host receives this ICMP message, standard UDP sockets do not handle connection state. Unless the upper-layer application specifically monitors raw sockets or socket errors, the sending application remains unaware that the packet failed to arrive.
Impact on Network Performance
Because UDP does not throttle its transmission rate in response to packet loss or congestion (unlike TCP), routing loops involving high-volume UDP traffic can quickly degrade network performance:
- Bandwidth Saturation: Continuously circulating packets consume available link bandwidth, crowding out legitimate traffic.
- Router CPU Spikes: Processing the same packets repeatedly and generating ICMP error messages increases the CPU utilization of the affected routers.
- Application Failure: Streaming services, VoIP, DNS queries, and online gaming sessions experience 100% data loss for the duration of the loop, leading to dropped calls, failed name resolutions, and service timeouts.