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 inputs

Worked calculation

  1. PPPoE and PPP consume 8 bytes from the initial 1,500, leaving a 1,492-byte IP budget.
  2. 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.
  3. An IPv4 TCP packet uses 20 bytes for IP and 20 for TCP. Its base MSS is 1,412 − 40 = 1,372 bytes.

Inputs

IP versions
Use No if the input already reflects the PPPoE interface MTU.

Calculated in your browser

Results

Inner IP MTU
1,412 B
TCP MSS
1,372 B
Budgeted overhead
88 B

Tunnel packet byte budget

Tunnel packet byte budgetThe top bar compares encapsulation overhead with the usable packet. The bottom bar expands the overhead to show its parts in bytes.Underlay budget · 1,500 BInner IPOverhead1,412 B inner IPOverhead detail88 BPPPoE + PPP: 8 B8Outer IPv6: 40 B40UDP: 8 B8WireGuard data header: 16 B16Poly1305 tag: 16 B16
  • PPPoE + PPP · 8 B
  • Outer IPv6 · 40 B
  • UDP · 8 B
  • WireGuard data header · 16 B
  • Poly1305 tag · 16 B
The top bar compares encapsulation overhead with the usable packet. The bottom bar expands the overhead to show its parts in bytes.
Encapsulation
WireGuard
Starting MTU
1,500 B
Inner TCP/IP base headers
40 B
Byte budget
LayerBytes
PPPoE + PPP8
Outer IPv640
UDP8
WireGuard data header16
Poly1305 tag16
Inner IP packet1412

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.

References