MTU & MSS Calculator
Build an encapsulation stack, calculate effective inner MTU, TCP MSS, UDP payload and ping test size, then identify fragmentation and frame-size risks.
Link and encapsulation parameters
Select a preset, then edit every byte value when required.
Encapsulation stack
| Layer | Bytes | Count | Total |
|---|
Core calculation
Effective inner MTU = Underlay MTU − Σ(encapsulation overhead). TCP MSS ≈ Effective MTU − IP header − TCP header (− options). Fragmentation risk when Desired inner MTU > Effective MTU.Overhead stack. Sum VLAN, tunnel, and L3/L4 headers that sit outside the inner packet.
Effective MTU. What remains for the inner IP packet after underlay MTU pays for every outer byte.
MSS. Advertise MSS so TCP payload fits without IP fragmentation on this path.
Fragmentation. If the desired inner MTU exceeds the effective value, shrink MSS or raise underlay MTU.
MTU, MSS and fragmentation result
Effective inner packet size after all configured overhead.
Effective inner MTU
1500bytesEncapsulation path
Ping / PMTU test commands
MTU breakdown
Engineering assessment
Methodology
METHODOLOGY
TCP MSS
RFC 6691 recommends subtracting only the fixed IP and TCP headers when advertising MSS. The tool separately calculates actual data after configured options.
PPPoE
RFC 2516 uses 6 bytes for the PPPoE header and 2 bytes for the PPP protocol field, producing the familiar 1492-byte MTU on a 1500-byte Ethernet payload.
VLAN and MPLS
A VLAN tag is 4 bytes on the wire. Each MPLS label stack entry is 4 bytes. VLAN does not normally reduce configured IP MTU when tagged-frame expansion is supported.
Tunnels and security
GRE, VXLAN, IPsec and WireGuard overhead depends on outer IP version and optional fields. IPsec padding is variable, so its presets are editable estimates.
Frequently asked questions
FAQ
Why is PPPoE MTU usually 1492?
A 1500-byte Ethernet payload minus 8 bytes of PPPoE and PPP protocol overhead leaves 1492 bytes.
Should VLAN always reduce IP MTU by 4 bytes?
No. Most capable Ethernet devices support the slightly larger tagged frame while keeping IP MTU at 1500. Use strict mode only when the physical frame limit does not expand.
Why are IPsec values estimates?
ESP overhead depends on outer IP, NAT-T, IV, integrity tag and variable padding. Verify the actual cipher suite and vendor implementation.
What is the correct TCP MSS for IPv6 MTU 1500?
With fixed headers only, 1500 - 40-byte IPv6 header - 20-byte TCP header = 1440 bytes.
Can ping prove the complete path MTU?
It is useful but not conclusive. ICMP filtering, ECMP, tunnels and asymmetric routing can affect the result. Combine it with PMTUD, captures and device counters.
What does IPv6 MTU below 1280 mean?
IPv6 defines 1280 bytes as the minimum link MTU. Designs below that require lower-layer fragmentation/reassembly or adaptation and should be reviewed.
History
PROJECT RECORDS
Part of the switching and bandwidth calculators hub.
ENGINEERING WORKFLOW
Continue the engineering workflow
Plan addressing, VLAN capacity, packet size, uplinks, optics, access policy and DNS behavior as one LAN design sequence.