Check the largest IP packet a path can carry

Data blocks passing through a gateway between network devices
Contents
  1. Separate the packet from its payload
  2. Try two sizes on the same path
  3. Interpret what the test tells you
  4. Frequently asked questions

MTU stands for maximum transmission unit. An IP interface's MTU is the largest IP packet that can fit on that link in one piece. The path MTU is the smallest such limit along the route to a destination. A computer can use a 1,500-byte Ethernet MTU and still reach a destination over a path with a smaller limit.

Separate the packet from its payload

RFC 894 gives 1,500 bytes as the maximum IP datagram size for standard Ethernet encapsulation. That number includes the IP header. A Windows ping command's size option counts only the ICMP echo data. For a normal IPv4 probe without IP options, add 20 bytes for the IP header and 8 for the ICMP echo header.

Windows ping data sizeIPv4 and ICMP headersTotal IPv4 packet
32 bytes28 bytes60 bytes
1,372 bytes28 bytes1,400 bytes
1,472 bytes28 bytes1,500 bytes

This calculation applies to IPv4 echo requests without IP options. Use the IP address guide if you need to identify the correct destination address.

Try two sizes on the same path

On Windows, choose a device you administer that responds to IPv4 ping. Replace YOUR_TARGET below with its address. Run the small probe first, then try the two larger sizes against that same destination from the same connection.

ping -4 -n 3 -l 32 YOUR_TARGET
ping -4 -n 3 -f -l 1472 YOUR_TARGET
ping -4 -n 3 -f -l 1372 YOUR_TARGET

Microsoft documents -f as the IPv4 Do Not Fragment setting and -l as the echo data length. If Windows reports that the 1,500-byte probe needs fragmentation and the 1,400-byte probe gets a reply, the two results give you a working size and a size the tested path rejected. Narrow the gap in smaller steps if you need an estimate. A timeout alone is inconclusive because filtering, lost traffic, or missing ICMP feedback can also produce it.

Interpret what the test tells you

The result applies to the tested destination and current route. Compare direct and tunneled paths only if you can reach the same test endpoint in both states. An IPv4 traceroute can show visible hops if you suspect the route changed. It cannot measure their MTUs.

IPv6 uses Packet Too Big feedback for Path MTU Discovery, as described in RFC 8201. The Windows IPv4 command and the 28-byte calculation above are specific to the IPv4 example.

Frequently asked questions

Should a home router always use 1,500 bytes?

Use the setting specified for the interface by your ISP, router, or tunnel documentation. A local Ethernet link and the router's uplink can have different limits.

Does a larger MTU make the internet faster?

The MTU sets a packet-size limit. It does not set the line rate. Use an appropriate MTU for the path and a separate throughput test to measure speed.

What if the small ping also times out?

First verify that the endpoint is reachable and permits IPv4 echo requests. Choose a known responsive target you control before comparing larger packet sizes.

Sources