MTU / MSS Calculator

Work out tunnel overhead, effective MTU and TCP MSS.

Path setup

Result

Overhead breakdown
LayerBytesRunning MTU
Configuration snippets

MTU, MSS and why tunnels break things

The MTU is the largest IP packet a link will carry. The MSS is the largest chunk of TCP payload that fits inside it, which is the MTU minus the IP header and the TCP header — 1460 bytes on a plain 1500-byte Ethernet link carrying IPv4.

Every tunnel you wrap around a packet eats into that budget. GRE costs 24 bytes, IPsec in tunnel mode considerably more, and VXLAN adds a full outer Ethernet, IP and UDP stack. If the endpoints keep advertising an MSS based on their local 1500-byte interface, large packets reach the tunnel, do not fit, and are either fragmented or dropped — the classic symptom being that pings and SSH logins work fine while file transfers and HTTPS hang.

The dependable fix is to clamp the MSS on the tunnel interface so both ends negotiate a size that actually fits. That is what the ip tcp adjust-mss line in the snippets does; relying on Path MTU Discovery alone tends to fail because so many networks filter the ICMP fragmentation needed messages it depends on.

IPv6 has a hard floor of 1280 bytes and routers never fragment in transit, so an IPv6 path that drops below that will not work at all — the tool flags it when your configuration crosses that line.