Small ICMP pings succeed, an SSH login prompt appears, and then the session freezes the moment a directory listing or TLS certificate crosses the tunnel. When control traffic works and larger payloads hang, encapsulation overhead has usually pushed packets past the path MTU while Path MTU Discovery (PMTUD) is blocked.
Every tunnel wraps the original packet in extra headers. On a 1,500-byte Ethernet link, those outer headers eat directly into what the inner packet can carry.
Subtracting WireGuard overhead byte by byte
Take a standard WireGuard tunnel running over IPv4 on a 1,500-byte underlay. WireGuard's transport encapsulation adds:
- 20 bytes for the outer IPv4 header
- 8 bytes for the outer UDP header
- 32 bytes for WireGuard transport framing and the Poly1305 authentication tag
That is 60 bytes of outer overhead. Subtracting 60 from 1,500 leaves an effective inner MTU of 1,440 bytes.
An inner IPv4 TCP packet then spends 20 bytes on the inner IPv4 header and 20 bytes on the inner TCP header (assuming no TCP options). Subtracting those 40 bytes gives a maximum TCP segment size (MSS) of 1,400 bytes. If the inner traffic uses IPv6 (a 40-byte header) with a 20-byte TCP header, the MSS drops to 1,380 bytes.
You may notice that WireGuard's default interface MTU is 1,420 bytes rather than 1,440. That extra 20-byte margin leaves room when the outer transport is IPv6 (40-byte outer IPv6 header + 8-byte UDP + 32-byte WireGuard = 80 bytes total, leaving 1,420 bytes on a 1,500-byte path).
When a 1,492-byte PPPoE underlay breaks a 1,440-byte tunnel
Assuming a 1,500-byte underlay everywhere is a common mistake. Many residential and branch fiber circuits use PPPoE (RFC 2516), which takes 8 bytes for the PPPoE session header and PPP protocol field, lowering the underlay MTU to 1,492 bytes.
Put WireGuard over IPv4 on top of that 1,492-byte link:
1,492 B (PPPoE underlay MTU)
- 60 B (IPv4 + UDP + WireGuard overhead)
-------
1,432 B effective inner MTU
- 40 B (inner IPv4 + inner TCP headers)
-------
1,392 B inner TCP MSS
If the tunnel interface is pinned to 1,440 bytes, every full-sized inner packet exceeds the PPPoE path by 8 bytes. When the Don't Fragment (DF) bit is set and intermediate ICMP "Fragmentation Needed" messages are filtered, TCP stalls completely. Dropping the tunnel MTU to 1,420 bytes—or clamping TCP MSS to 1,380–1,392 bytes at the router—prevents the drop.
VXLAN: shrink the inner MTU or widen the underlay
VXLAN (RFC 7348) behaves differently from Layer 3 VPN tunnels because it encapsulates an entire Layer 2 Ethernet frame. Over IPv4, the outer stack consists of:
- 20 bytes outer IPv4 header
- 8 bytes outer UDP header
- 8 bytes VXLAN header
- 14 bytes inner Ethernet header (excluding FCS)
That totals 50 bytes of encapsulation overhead. Inside a data center fabric, you have two choices:
- Keep a 1,500-byte underlay and lower guest or VM MTUs to 1,450 bytes (giving an inner IPv4 TCP MSS of 1,410 bytes).
- Preserve a 1,500-byte inner MTU for guests by raising the physical underlay MTU to at least 1,550 bytes (a 1,568-byte standard Ethernet wire frame, though switches are usually configured to 1,600 or 9,000 jumbo bytes to accommodate VLAN tags too).
Mixing 1,500-byte VMs with a 1,500-byte physical fabric without MSS clamping or jumbo frames produces silent black-holing on large HTTP responses and database replication streams.
Verifying the real path limit with DF pings
Calculations give you the target, while a Don't Fragment ping confirms what the physical path actually forwards. Remember that ping specifies the ICMP echo payload, not the full IP packet size. For IPv4, subtract 28 bytes (20-byte IPv4 header + 8-byte ICMP header) from your expected inner MTU:
- Expected 1,440-byte inner MTU:
ping -M do -s 1412 <tunnel-peer-ip>on Linux (orping -f -l 1412 <ip>on Windows) - Expected 1,432-byte PPPoE + WireGuard MTU:
ping -M do -s 1404 <tunnel-peer-ip> - Expected 1,450-byte VXLAN inner MTU:
ping -M do -s 1422 <remote-vm-ip>
If 1412 fails while 1404 passes, an 8-byte outer header (such as PPPoE or an unexpanded VLAN tag limit) is sitting somewhere along the path.
I maintain NetEngineerLab, where the MTU & MSS Calculator lets you pick presets for WireGuard, VXLAN, GRE, PPPoE, and IPsec, adjust individual header byte counts, and generate the matching Linux and Windows DF ping commands before you change router or host settings.
Top comments (0)