Logo

MonoCalc

/

MTU & MSS Calculator

Networking
Layer-2 MTU, typically 1500 for Ethernet
Tunnel or overlay protocol, if any

Advanced Options

Leave blank if unknown

About This Tool

🌐 MTU & MSS Calculator – Understand Network Header Overhead

Every network packet travels through layers of protocol headers before its payload reaches the application. The MTU and MSS Calculator demystifies this by computing the exact TCP Maximum Segment Size (MSS) for any combination of interface MTU, encapsulation protocol, and IP/TCP options — helping network engineers eliminate fragmentation, optimise throughput, and correctly configure MSS clamping.

MTU vs MSS: What's the Difference?

MTU (Maximum Transmission Unit) is the largest Layer-2 frame a network interface will transmit — typically 1500 bytes for standard Ethernet. MSS (Maximum Segment Size) is a TCP-level concept: the largest payload a single TCP segment can carry inside that frame. The relationship is simple:

MSS = MTU − IP Header − TCP Header − Options − Encapsulation Overhead

Example (plain Ethernet, IPv4, TCP):
  MSS = 1500 − 20 − 20 = 1460 bytes

Why Encapsulation Eats Into Your MSS

When you add a tunnel or overlay protocol, every packet gets wrapped in additional headers. These headers consume space, shrinking the usable payload of the inner packet. The table below shows common encapsulation overheads:

EncapsulationOverheadTypical Inner MSS (1500 MTU, IPv4/TCP)
None (plain Ethernet)0 B1460 B
PPPoE8 B1452 B
GRE24 B1436 B
VXLAN50 B1410 B
WireGuard60 B1400 B
GRE + IPsec58 B1382 B
IPsec ESP Tunnel73 B1367 B

Path MTU Discovery and Fragmentation

In practice, the bottleneck MTU is not always on the local interface — it may be on a router or firewall further along the path. Path MTU Discovery (PMTUD) is the mechanism by which a host discovers the minimum MTU across the entire path by sending packets with the Don't Fragment (DF) bitset. If a router cannot forward a packet without fragmenting it, it sends an ICMP "Fragmentation Needed" message back to the sender.

When ICMP is blocked by firewalls, PMTUD breaks silently — causing TCP sessions to stall or time out. Enter the remote path MTU in the advanced options to see if a bottleneck exists and what MSS clamp value to apply.

MSS Clamping: The Practical Fix

Rather than relying on PMTUD, many administrators apply MSS clamping on the gateway device. This intercepts TCP SYN packets and rewrites the MSS option to match the safe value for the path. The calculator outputs ready-to-use iptables and nftables commands based on your configuration.

IPv4 vs IPv6 Header Sizes

IPv4 uses a 20-byte base header, while IPv6 uses a 40-byte base header. Extension headers (routing, fragmentation, hop-by-hop options) add further overhead in IPv6. This means an IPv6 TCP session on a 1500-byte Ethernet link starts with a base MSS of 1500 − 40 − 20 = 1440 bytes versus 1460 bytes for IPv4, before any encapsulation.

Additionally, RFC 8200 mandates a minimum IPv6 MTU of 1280 bytes — the calculator will warn you if your configured MTU falls below this threshold.

Jumbo Frames for High-Performance Networking

Data-centre and storage networks often configure jumbo frames with MTUs of 9000 bytes or larger. At 9000 bytes, a plain IPv4/TCP session achieves an MSS of 8940 bytes, dramatically reducing the per-packet CPU overhead of header processing and improving throughput for large file transfers, NFS, and iSCSI workloads.

MPLS Label Stacks

Each MPLS label adds 4 bytes of overhead. A three-label stack (common in MPLS VPN deployments with BGP-free cores) adds 12 bytes, reducing a 1500-byte Ethernet MSS to 1500 − 12 − 20 − 20 = 1448 bytes. Use the MPLS label count input to model your specific label stack depth accurately.

Reverse Mode: MSS to Required MTU

Switch to MSS → MTU mode to plan in the opposite direction. If your application requires a specific MSS (for example, 1350 bytes to accommodate a double-stacked VPN), the calculator tells you the minimum interface MTU needed to support it without fragmentation.

Frequently Asked Questions

Is the MTU & MSS Calculator free?

Yes, MTU & MSS Calculator is totally free :)

Can I use the MTU & MSS Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use MTU & MSS Calculator?

Yes, any data related to MTU & MSS Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is the difference between MTU and MSS?

MTU (Maximum Transmission Unit) is the largest frame size a network interface can send at Layer 2, typically 1500 bytes for Ethernet. MSS (Maximum Segment Size) is the largest TCP payload within that frame, calculated by subtracting IP and TCP header sizes from the MTU. For standard Ethernet with IPv4 and TCP, MSS = 1500 − 20 − 20 = 1460 bytes.

How does this calculator work?

Enter your interface MTU, select the Layer-3 protocol (IPv4 or IPv6), transport protocol, and any encapsulation type (VXLAN, GRE, IPsec, etc.). The calculator subtracts all header overheads from the MTU to give you the effective TCP MSS. Reverse mode lets you input a desired MSS and calculates the minimum MTU required.

Why does VXLAN reduce MSS so much?

VXLAN adds 50 bytes of overhead: outer Ethernet (14 bytes) + outer IP (20 bytes) + UDP (8 bytes) + VXLAN header (8 bytes). This means a 1500-byte underlay MTU gives an inner MSS of only 1410 bytes for standard IPv4/TCP traffic, making jumbo frames (9000 bytes) highly recommended for VXLAN deployments.

What is MSS clamping and when should I use it?

MSS clamping is a technique used on firewalls and routers to automatically adjust the MSS value in TCP SYN packets to prevent fragmentation. Use it when devices on your network cannot perform Path MTU Discovery (PMTUD) — for example, when deploying VPN tunnels, PPPoE connections, or any encapsulation that reduces effective MTU.

What is the minimum valid MTU?

RFC 791 specifies a minimum IPv4 MTU of 68 bytes, and RFC 8200 specifies a minimum IPv6 MTU of 1280 bytes. In practice, Ethernet links use 1500 bytes, data-centre links often use 9000-byte jumbo frames, and VPN tunnels typically need the underlay MTU to be at least 1500 bytes to avoid fragmentation of 1500-byte inner frames.

How accurate are the IPsec ESP overhead estimates?

The IPsec ESP tunnel overhead estimate of 73 bytes covers a common AES-128-CBC + HMAC-SHA1 configuration (outer IP 20 + ESP header 8 + IV 16 + max padding 15 + pad length 1 + next header 1 + auth 12 = 73). Actual overhead varies by cipher suite; use the custom overhead field to enter exact values for your specific deployment.