This MTU size calculator gives the exact ping payload for any MTU, together with the TCP segment size, Ethernet frame sizes and the extra room tunnels need. It prints ready-to-run do-not-fragment ping commands for Windows, Linux and ESXi. Use it to prove that a jumbo frame path works end to end, instead of assuming that it does, and to size the underlay for any tunnel that adds its own header.
Result
The result updates automatically as you change any input.
Formula and worked steps
Formulas used
- ICMP echo payload (IPv4) = MTU - 20 (IP header) - 8 (ICMP header)
- IPv6 payload = MTU - 40 - 8
- TCP MSS (no options) = MTU - 40 (IPv4) or MTU - 60 (IPv6)
- Ethernet frame = MTU + 14 header (+ 4 for an 802.1Q tag) (+ 4 FCS)
- Underlay MTU needed = inner MTU + encapsulation overhead; VXLAN = 50 bytes, GRE over IPv4 = 24 bytes
- MTU here is the IP MTU (payload of the Ethernet frame). Switch ports must be configured for the larger frame size.
- IPsec overhead varies by mode and cipher, so you enter it yourself.
- Ping commands are for IPv4. The do-not-fragment test shows the smallest MTU along the path; run it between every pair of endpoints.
References
Want the framing overhead, efficiency and packet rate of Ethernet itself? Use the Ethernet overhead calculator; this page is for choosing and testing MTU values.
What is MTU?
The maximum transmission unit is the largest IP packet that a link will carry without fragmenting it. Ethernet defaults to 1500 bytes. Storage networks often raise it to 9000, or to 9216 on switches that allow it, so each packet carries more data.
MTU and frame size
MTU counts the IP packet, not the Ethernet header. The frame on the wire is the MTU plus a 14-byte header, plus 4 bytes if there is an 802.1Q VLAN tag, plus a 4-byte frame check sequence. Switches count their own limit in different ways, so check whether your platform’s setting means IP MTU or frame size.
Path MTU
Every device on the path has to accept the size you send. One interface left at 1500 turns a jumbo frame network into a 1500 one for that path, and often a broken one.
Overhead from tunnels
Encapsulation adds bytes outside the inner packet, so the underlay must be larger than the inner MTU. VXLAN adds 50 bytes: 14 for the outer Ethernet header, 20 for IP, 8 for UDP and 8 for VXLAN. GRE over IPv4 adds 24: 20 for the outer IP header and 4 for GRE.
How the MTU size calculator works
Enter the MTU, the IP version and any encapsulation. The tool subtracts the headers to give the payload to use in a ping test, and adds the overhead to give the underlay size you need.
Formulas
- ICMP payload (IPv4) = MTU – 20 – 8 = MTU – 28
- ICMP payload (IPv6) = MTU – 40 – 8 = MTU – 48
- TCP MSS without options = MTU – 40 (IPv4) or MTU – 60 (IPv6)
- Underlay MTU needed = inner MTU + encapsulation overhead
Worked examples
| MTU | Ping payload (IPv4) | TCP MSS |
|---|---|---|
| 1500 | 1472 | 1460 |
| 9000 | 8972 | 8960 |
| 9216 | 9188 | 9176 |
At MTU 9000 the frame is 9014 bytes without a tag or FCS, 9018 with the FCS, 9018 with a tag and 9022 with both. To carry a 1500-byte inner MTU over VXLAN, the underlay must be at least 1550. In the other direction, an underlay of 9000 leaves 8950 for the inner packet.
The ping tests
Each operating system has its own syntax, and each needs the option that forbids fragmentation. Windows uses ping -f -l 8972, Linux uses ping -M do -s 8972 and ESXi uses vmkping -I vmk1 -d -s 8972, with the target address on the end. A reply proves the whole path accepts that size. An error about fragmentation, or silence, means a hop has a smaller MTU.
Why bigger frames can help
At MTU 1500 a TCP segment carries 1460 bytes of data, and on the wire the frame adds 38 bytes of header, FCS, preamble and gap, so data is 94.9% of what is sent. At MTU 9000 the segment carries 8960 bytes and the wire efficiency is 99.1%. Fewer packets also means less work for the hosts. The gain depends on the workload, and it only counts if every device on the path is configured for it.
Why it matters for SAN and storage admins
Jumbo frames are an all-or-nothing change. Setting 9000 on the host and the array while a switch port keeps 1500 produces a network that looks healthy and fails under load. Logins succeed, small commands work and large transfers stall or retransmit. The MTU size calculator gives you a precise test to run on every pair of endpoints, so the failure appears in a maintenance window and not in production.
It matters for overlays too. Virtual networks over VXLAN or GRE need a larger underlay, and forgetting that reduces the usable MTU below what the hosts were told, which causes the same kind of quiet failure.
Use it when you:
- Enable jumbo frames for iSCSI, NFS or replication.
- Verify an existing path after a change.
- Size the underlay for a VXLAN or GRE overlay.
- Write the test steps into a change record.
Best practices and common mistakes
- Set the MTU on every device in the path: host interface, virtual switch, VMkernel port, physical switch ports and array ports.
- Test in both directions and between every pair that matters, not only host to array.
- Always use the do-not-fragment option, otherwise a ping can succeed by fragmenting.
- Leave a margin on the underlay for tags and tunnel headers.
- Do not enable jumbo frames on a link that also carries traffic to a device that cannot support them.
- Check how your switch interprets the MTU value, as frame size and IP MTU are both used.
A frequent mistake is to test with the default ping size, which proves only that 1500 works. Test with the full-size payload for the MTU you configured.
FAQs
What ping size tests a 9000 MTU?
8972 bytes of payload. The ICMP header takes 8 bytes and the IPv4 header 20, so payload = MTU – 28. Use the do-not-fragment option so oversized packets fail instead of being split.
What MTU do I need for VXLAN?
The underlay needs the inner MTU plus 50 bytes of VXLAN overhead, so carrying a 1500-byte inner MTU needs at least 1550 on every underlay link.
Why does iSCSI work for small I/O but hang on large transfers?
A common cause is an MTU mismatch. Small packets fit through every hop, but full-size packets are dropped where a device has a smaller MTU, so large transfers stall.
Next, try the iSCSI subnet calculator, the VLAN ID planner and the bandwidth unit converter, or browse the full list of storage calculators. For the exact Ethernet framing overhead and packets per second, see the Ethernet overhead calculator.