FULL AI ANALYSIS

Docker overlay network MTU mismatch drops large UDP frames after cluster MTU reduced — intermittent packet loss between services

Generated Oct 25, 2026, 9:44:56 AM

Analysis summary

Root cause is MTU mismatch: overlay/VXLAN adds encapsulation overhead causing inner packets to exceed physical MTU leading to fragmentation. Fragmentation is fragile across intermediate network elements, and when ICMP 'fragmentation needed' messages are filtered, PMTU discovery fails, causing persistent drops. Disabling offloads only hides symptoms. Correct approach is to consistently set overlay MTU smaller than physical MTU minus encapsulation overhead and ensure ICMPv4/6 'frag needed' is permitted for PMTU.

Possible causes

Overlay/VXLAN MTU larger than physical MTU minus encapsulation, leading to invisible fragmentation and drops.

95%

Intermediate firewall or router filtering ICMP 'frag needed', preventing PMTU discovery and causing blackhole for large packets.

75%

Network offload (GRO/TSO) interacting with VXLAN causing improper segmentation on transmit or receive.

50%

Bug in Docker overlay implementation on current kernel/docker combo causing miscalculated overhead.

20%

Suggested fixes

1

Diagnostic step 1

Calculate encapsulation overhead (VXLAN 50–60 bytes typical). Set Docker daemon mtu on all cluster nodes to physical_mtu - vxlan_overhead - 20 (safety margin). For MTU 1400 and 50B overhead, set docker mtu to 1330.

2

Diagnostic step 2

Restart docker on all hosts to apply same overlay MTU across cluster.

3

Diagnostic step 3

Ensure intermediate network allows ICMP 'fragmentation needed' (type 3/code 4 for IPv4, type 2 for IPv6) so PMTU can work; temporarily allow these ICMP messages in firewall to test.

4

Diagnostic step 4

Avoid disabling PMTU; instead tune application MTU or implement application-level fragmentation if necessary.

5

Diagnostic step 5

After changes, verify by sending UDP packets of sizes near limit and capture on host interfaces (tcpdump) to confirm no fragmentation and no drops; roll back mtu change if it breaks other services and test incrementally.