What Happens When UDP Exceeds MTU?

When a User Datagram Protocol (UDP) datagram exceeds the network’s Maximum Transmission Unit (MTU), the underlying Internet Protocol (IP) layer must either fragment the packet into smaller pieces or drop it entirely. Because UDP is a connectionless protocol without built-in mechanisms for packet retransmission or MTU negotiation, exceeding the MTU often leads to fragmentation overhead, increased packet loss rates, or silent data delivery failures.

IP Fragmentation in IPv4

In standard IPv4 networks, when a UDP packet is larger than the local MTU (typically 1,500 bytes for Ethernet), the sending host or an intermediate router divides the payload across multiple smaller IP packets.

The “Don’t Fragment” (DF) Flag

If the application or operating system sets the “Don’t Fragment” (DF) bit in the IPv4 header:

  1. Packet Dropped: Any router along the path with an MTU smaller than the datagram size cannot fragment the packet and will discard it.
  2. ICMP Notification: The router sends back an ICMP Type 3, Code 4 message (“Destination Unreachable, Fragmentation Needed and DF Set”).
  3. Application Impact: Because UDP is connectionless, the operating system might not relay this ICMP error to the sending application, causing the application to experience silent data loss unless it actively listens for raw ICMP messages.

Behavior in IPv6

IPv6 eliminates intermediate router fragmentation entirely:

Key Risks of Exceeding MTU with UDP

Exceeding the MTU causes several significant performance and operational issues:

Best Practices

To prevent issues related to exceeding the MTU: