Calculate a 1412 WireGuard MTU over PPPoE
Start at a 1500-byte Ethernet IP budget and calculate WireGuard MTU and TCP MSS over an IPv6 PPPoE connection.
Try these inputsWorked calculation
- PPPoE and PPP consume 8 bytes from the initial 1,500, leaving a 1,492-byte IP budget.
- IPv6 adds 40 bytes, UDP adds 8 and the WireGuard header and tag add 32. The tunnel MTU is 1,492 − 80 = 1,412 with MTU-capped padding.
- An IPv4 TCP packet uses 20 bytes for IP and 20 for TCP. Its base MSS is 1,412 − 40 = 1,372 bytes.
Results
- Inner IP MTU
- 1,412 B
- TCP MSS
- 1,372 B
- Budgeted overhead
- 88 B
Tunnel packet byte budget
- PPPoE + PPP · 8 B
- Outer IPv6 · 40 B
- UDP · 8 B
- WireGuard data header · 16 B
- Poly1305 tag · 16 B
- Encapsulation
- WireGuard
- Starting MTU
- 1,500 B
- Inner TCP/IP base headers
- 40 B
| Layer | Bytes |
|---|---|
| PPPoE + PPP | 8 |
| Outer IPv6 | 40 |
| UDP | 8 |
| WireGuard data header | 16 |
| Poly1305 tag | 16 |
| Inner IP packet | 1412 |
Questions
Why does an IPv6 outer path give 1412 while IPv4 gives 1432?
The IPv6 base header is 20 bytes longer than the standard IPv4 header. The PPPoE, UDP and WireGuard costs are the same.
What MSS should I use for inner IPv6 on this WireGuard tunnel?
The inner IPv6 and TCP base headers consume 60 bytes, leaving a 1,352-byte base MSS.