concept Networks
WireGuard tunnel MTU and path-MTU constraints
A WireGuard path has to carry the whole outer IP packet. See how a change of outer header uses up 20 spare bytes, and why a packet one byte over the limit is not proof of a black hole.
What it means
The largest inner IP packet that fits in a WireGuard data message without fragmentation is the outer path MTU minus the bytes added around that packet. The path MTU is the size limit for a complete IP packet traveling between the tunnel endpoints without fragmentation. It applies to the outer packet, not just to the packet inside the tunnel.
That distinction matters when choosing a tunnel MTU. Two paths can have the same size limit but leave different amounts of room inside the tunnel: a base IPv6 header takes 20 more bytes than a base IPv4 header. What matters here is the IP family used between the endpoints, not the family of the packet they carry.
Try it
Simulation. Start with a 1500-byte path MTU, an outer IPv4 header, a 1420-byte inner IP packet, zero assumed padding, and scenario evidence set to provided. No traffic is sent.
WireGuard tunnel MTU and path-MTU constraints
Show how encapsulation and underlay MTU affect inner packet sizing and black-hole symptoms
Stipulated outer packet is at or below the path MTU.
Packet components
- Outer IP20 B
- UDP8 B
- WireGuard overhead32 B
- Padding0 B
- Inner IP packet1420 B
Budget
- Total overhead60 B
- Inner budget1440 B
- Unused capacity20 B
All sizes are bytes. The strip accounts for lengths, not wire-field order; WireGuard overhead groups framing and authentication bytes. Padding is stipulated; this is not a wire capture or measured MTU.
Evaluated inputs
- Required scenario evidence
- provided
- Outer IP header
- ipv4
- Assumed additional padding
- 0 bytes
- Known underlay path MTU
- 1500 bytes
- Inner IP packet size
- 1420 bytes
Data messages only, base IPv4/IPv6 header, UDP and WireGuard overhead; padding is stipulated, no extensions, actual PMTU discovery, fragmentation or live diagnosis.
About this model
The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.
Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.
- Read the starting result. The model adds 20 bytes for IPv4, 8 for UDP, and 32 for WireGuard data-message overhead. That leaves
1500 − 60 = 1440bytes for the inner packet. The selected packet uses only 1420 of them: its outer size is 1480 bytes, with 20 bytes to spare. - Change only
Outer IP headerto IPv6. The outer header grows from 20 to 40 bytes, so overhead rises to 80 bytes. The same inner packet now fills the path limit exactly:1420 + 80 = 1500. Equality still counts as a fit. - Increase
Inner IP packet sizeto 1421 bytes. The inner budget stays at 1420 bytes, but the outer packet grows to 1501 bytes. The result changes totoo-largebecause of that one extra byte.
Set Required scenario evidence to missing to see what changes when the path limit cannot be established. With otherwise valid inputs, the result is unknown: the displayed size selections are not used to decide fit. Leaving a required size blank instead is an input error, not an estimate. Reset returns all five inputs to the starting example and clears local errors and comparisons.
What the byte count includes
The inner size is the whole IP packet entering the tunnel, not just its application data. WireGuard carries that packet and any padding in a data message; UDP carries the message, and outer IP carries the UDP datagram. To find the inner budget, subtract the added bytes from the path MTU. To find the size of a particular outer packet, add those same bytes to the selected inner size.
The two numbers answer different questions. Suppose the outer header is still IPv6, padding is still zero, and the inner packet is still 1420 bytes, but a second path has an MTU of 1492 rather than 1500 bytes. The outer packet is still 1500 bytes. What changed is the budget: 1492 − 80 = 1412 bytes for the inner packet. The packet that fit exactly on the first path exceeds the second path's limit by 8 bytes.
The packet-composition strip and the size-limit bars answer separate questions. The strip breaks down the stipulated outer size; the MTU marker shows whether it fits. For instance, with the original 1420-byte inner packet and outer IPv6, adding one byte of assumed padding changes a fit at 1500 bytes into an excess of one byte. That is only an arithmetic counterexample, not a claim that a real implementation pads by one byte.
The calculation uses IPv4 without options or IPv6 without extension headers. Padding is a separate assumption. WireGuard describes padding encapsulated data to a 16-byte boundary; the simulation takes a padding count from you rather than calculating what an implementation would add. Zero padding makes the boundary easy to examine. It does not predict the length you would see in a packet capture.
In practice
If small packets get through a tunnel but larger ones appear to disappear, size is worth investigating. A too-large result says the stipulated packet cannot cross the stated path intact at that size. It does not tell you whether fragmentation occurred or whether a size notification reached the sender. On IPv6, for example, a packet too large to forward can be dropped and an ICMPv6 Packet Too Big message returned. A sender can use a validated message to reduce its path MTU estimate. That feedback is not itself fragmentation, and a size excess alone does not prove a black hole.
Before drawing a conclusion about a real tunnel, identify the outer IP family, the evidence for the path MTU, and which headers and padding the size count includes. Compare the complete outer IP packet with that path limit. If the limit is unknown, stop at a conditional calculation rather than changing a real interface MTU on the strength of the example. An inner budget tells you what would fit under stated conditions; it does not measure the path or establish that the tunnel works.
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Why does IPv6 change the budget?
Its base outer IP header is larger than a base IPv4 header.
Does MTU excess prove a black hole?
No; the network may signal or handle size limits differently.
Is 1420 always safe?
No. In this lab the result depends on the outer path MTU, outer IP header and stipulated padding. With an IPv6 outer header and 1500-byte path MTU, 1420 fits only with zero padding in the simplified arithmetic. A real implementation and path need their own evidence.
Does a smaller packet prove the tunnel works?
No. A fits result checks only size for the supplied conditions. It does not test routing, keys or filtering and cannot establish that the real tunnel works.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- WireGuard protocol and cryptography
Transport data messages. Transport data framing has explicit header fields and encrypted packet content.
Checked .
- RFC 8201: Path MTU Discovery for IP version 6
3. Validated ICMPv6 PTB informs reductions in estimated path MTU; IPv6 minimum link MTU is a lower bound. Path MTU may change.
Checked .
- RFC 8200: IPv6 Specification
8.3. RFC 8200 §8.3 compares minimum IP header lengths: IPv4 20 octets, IPv6 without extension headers 40 octets. RFC 9673 modifies Hop-by-Hop options processing; this model excludes extension headers.
Checked .