MTU Networking: Packet Sizes, Path MTU, and Troubleshooting

A network engineer adjusts a router and switch beside a monitor showing data packets moving across a connection.

Written by

in

MTU networking comes down to one number with outsized consequences: the maximum transmission unit (MTU) is the largest IP packet, headers included, that a link can carry in one piece, and on standard Ethernet that number is 1500 bytes. When every hop agrees on packet size, you never think about it. When one hop silently carries less, small pings succeed while file transfers, VPN sessions and TLS handshakes stall.

A network engineer adjusts a router and switch beside a monitor showing data packets moving across a connection.

Your usable MTU is the smallest MTU anywhere on the path between you and the destination, and you find it by sending Don’t Fragment pings of increasing size, then adding 28 bytes (IPv4) or 48 bytes (IPv6) to the largest payload that passes. That arithmetic trips up more engineers than the concept itself.

PacketTools builds its browser-based network tools from nearly three decades of production IT work, including the routine job of verifying VPNs and analyzing routing. The goal here is practical: you should be able to measure your path MTU on Windows, Linux or macOS, read the results correctly, and fix a mismatch with evidence instead of trial-and-error edits to interface settings. MTU problems sit near the top of any honest network troubleshooting checklist because they mimic so many other faults.

What Does MTU Measure, and How Does It Differ From TCP MSS?

MTU measures the full IP packet at the network layer, while TCP MSS measures only the TCP payload inside that packet. Keeping those two boundaries straight explains why a 1500-byte MTU produces a 1460-byte MSS and why Ethernet frames on the wire run larger than 1500 bytes.

What Counts Toward the IP Packet Size?

The IP packet size includes the IP header, the transport header (TCP, UDP or ICMP), and the application payload. Wikipedia defines MTU as the size of the largest protocol data unit that can be communicated in a single network layer transaction, which is why IP-level headers count against it.

For a typical IPv4 TCP packet on Ethernet, the math looks like this:

Component Bytes
IPv4 header (no options) 20
TCP header (no options) 20
TCP payload 1460
Total IP packet (MTU) 1500

IPv6 uses a fixed 40-byte header, so the same 1500-byte MTU leaves 20 fewer bytes for payload. TCP options such as timestamps also eat into the payload, which is why packet captures often show 1448-byte segments on links you expected to carry 1460.

IP Packets vs. Ethernet Frames: Where the Headers Fit

The Ethernet frame wraps the IP packet, and its own header and trailer sit outside the MTU. A standard Ethernet frame tops out at 1518 bytes: 14 bytes of header, 4 bytes of frame check sequence, and the 1500-byte IP packet in between. Add an 802.1Q VLAN tag and the frame grows to 1522 bytes without changing the MTU.

This layering matters when you read vendor documentation. Some switch platforms express MTU as a frame size (1518, 9216), while routers and operating systems express it as an IP packet size (1500, 9000). Microsoft notes that the link layer is responsible for discovering the MTU and reporting it to the protocols above it, so the number your OS shows is the layer-3 value.

MTU vs. TCP MSS: Why 1500 Commonly Means 1460

TCP maximum segment size (MSS) is the largest TCP payload a host is willing to receive, excluding the IP and TCP headers. Each side announces its MSS in the SYN during the three-way handshake, and the other side honors it. There is no negotiation; each host states its own limit.

The formula is short:

  • IPv4: MSS = MTU − 20 (IP) − 20 (TCP), so 1500 becomes 1460
  • IPv6: MSS = MTU − 40 (IP) − 20 (TCP), so 1500 becomes 1440
  • PPPoE at 1492: IPv4 MSS becomes 1452

MSS only governs TCP. UDP traffic, including large DNS responses and many VPN protocols, gets no such protection, which is one reason DNS over TCP or UDP behavior shifts when responses exceed what the path can carry.

Which MTU Sizes Are Common on Real Networks?

A technician checks network equipment connected to a laptop and router.

Most networks you touch will run 1500 bytes on Ethernet, something smaller on PPPoE and tunnels, and around 9000 bytes inside storage or virtualization fabrics. The exceptions come from older media and cloud platforms that set their own ceilings.

Why Ethernet Commonly Uses 1500 Bytes

Ethernet’s 1500-byte payload limit dates from the original standard and became the de facto internet default because nearly every host, switch and consumer router ships with it. Microsoft lists Ethernet at 1500 bytes and IEEE 802.3/802.2 at 1492 in its default MTU table for network media.

In practice, you leave a host network interface at 1500 unless you have a measured reason to change it. Every device on a shared Layer 2 segment needs the same MTU; a single host set higher will send frames its neighbors discard as oversized.

Why PPPoE and VPN Tunnels Reduce the Available MTU

Encapsulation adds headers, and those headers come out of the same 1500-byte budget. PPPoE adds 8 bytes, which is why TP-Link states that MTU must be set to 1492 or lower when using PPPoE. Older Windows WAN Miniport PPPoE adapters default to 1480.

Tunnels cost more:

  • GRE: 24 bytes (20 outer IP + 4 GRE), leaving 1476 and an MSS of 1436
  • IPsec ESP: roughly 50 to 70+ bytes depending on cipher, padding and NAT-T
  • WireGuard: 60 bytes over IPv4 or 80 over IPv6, which is why its default is 1420
  • Stacked overhead: a VPN running over PPPoE pays both costs

When a VPN connects and authenticates but applications stall, tunnel overhead exceeding the path MTU is the first thing to verify.

When Jumbo Frames Make Sense for Storage and Virtualization

Jumbo frames (commonly 9000 bytes) reduce per-packet overhead on high-throughput, east-west traffic such as iSCSI, NFS, vMotion and backup streams. Fewer packets means fewer interrupts and less header processing for the same data volume.

They only help when every hop agrees. On a VMware host, that means the physical switch ports, the vSwitch or distributed switch, the VMkernel adapters and the storage array all carry the same jumbo setting. One port left at 1500 produces exactly the “small things work, big things hang” pattern. Keep jumbo frames on isolated storage or migration VLANs and leave internet-facing traffic at 1500.

Why Legacy Media and Cloud Networks Have Different Limits

Older link technologies each defined their own maximum frame size. Microsoft’s defaults show the spread:

Medium Default MTU (bytes)
16 Mbps Token Ring 17914
4 Mbps Token Ring 4464
FDDI 4352
Ethernet 1500
X.25 576

Cloud networks add their own rules. Many providers support jumbo MTU inside a virtual network but enforce 1500 or less across VPN gateways, peering links or internet egress, and overlay networks such as VXLAN subtract 50 bytes for encapsulation. Check the provider’s documented limit for each path, since a VM’s interface MTU says nothing about the gateway beyond it.

How Do Path MTU Discovery and Fragmentation Work?

Oversized packets either get split into fragments or get dropped with an ICMP error that tells the sender to shrink them. IPv4 permits both behaviors; IPv6 permits only the second, which makes ICMP feedback essential.

Why the Smallest Link MTU Limits the Network Path

The path MTU equals the lowest MTU of every link between two hosts. Your laptop knows its own NIC MTU, and your router knows its WAN MTU, but neither knows that a carrier link four hops away runs at 1400.

Paths also differ by direction. With asymmetric routing, traffic from you to a server and from the server back to you can cross different links with different limits. A client sending small HTTP requests rarely hits the limit; the server sending full-size responses does.

IPv4 Fragmentation and the Don’t Fragment Flag

IPv4, defined in RFC 791, lets routers break an oversized packet into smaller fragments that the destination reassembles. Each fragment carries its own IP header, adding overhead, and losing one fragment forces the whole original packet to be resent. Stateful firewalls also struggle with out-of-order fragments.

The Don’t Fragment (DF) bit in the IPv4 header turns that behavior off. When DF is set and a packet exceeds a link’s MTU, the router drops it and returns ICMP Type 3, Code 4 (“Fragmentation Needed and DF set”). Modern TCP stacks set DF on nearly everything, so fragmentation in transit is rarer than older documentation suggests.

Why IPv6 Routers Drop Oversized Packets Instead of Fragmenting Them

IPv6 routers never fragment packets in transit. Only the sending host can fragment, using an extension header, and every IPv6 link must support at least 1280 bytes. An oversized packet gets dropped, and the router sends an ICMPv6 “Packet Too Big” message carrying the next-hop MTU.

This design pushes all responsibility onto the source, which is one of the practical differences covered in IPv4 vs. IPv6 behavior. If Packet Too Big messages never reach the sender, IPv6 connections over that path fail outright.

How ICMP Feedback Enables Path MTU Discovery

Path MTU discovery (PMTUD) uses those ICMP errors as a feedback loop. Specified in RFC 1191, published in November 1990, it works in four steps:

  1. The sender transmits packets at its local MTU with DF set.
  2. A router that can’t forward one drops it and replies with ICMP Fragmentation Needed (IPv4) or Packet Too Big (IPv6), including the next-hop MTU.
  3. The sender caches the lower MTU for that destination and resends smaller packets.
  4. The process repeats if a later hop is smaller still, and the cache expires periodically so the sender can detect path changes.

What Happens When Firewalls Block Essential ICMP Messages?

Blocking those ICMP messages creates a PMTUD black hole: the sender keeps transmitting full-size packets, the router keeps dropping them, and nobody learns why. TCP handshakes complete because SYN packets are tiny, then the connection hangs the moment data flows.

Administrators often block all ICMP out of concern over denial-of-service attacks or reconnaissance. Cloudflare documented a case where a networking change broke path MTU discovery on its servers for users behind IP tunnels. Cisco recommends permitting the specific messages PMTUD needs when resolving fragmentation, MTU, MSS and PMTUD issues with GRE and IPsec. At minimum, allow ICMP Type 3 Code 4 and ICMPv6 Type 2.

How Can You Test the Path MTU From Your Own Device?

A network engineer tests a connection from a laptop while viewing a route to a remote server.

You test the path MTU by sending pings with fragmentation disabled and stepping the payload size until you find the largest one that gets a reply. Each OS uses different flags, and every OS measures the payload, so you add header bytes afterward.

Windows: Test IPv4 With ping -4 -f -l

On Windows, -f sets the DF bit, -l (lowercase L) sets the ICMP payload size, and -4 forces IPv4 so you don’t accidentally test over IPv6:

ping -4 -f -l 1472 www.cloudflare.com

A reply means 1472 + 28 = 1500 bytes passed. If you see “Packet needs to be fragmented but DF set,” drop to 1462, then 1452, and narrow down by single bytes once you find a passing size. Note that -f has no effect on IPv6 pings, since IPv6 has no DF bit. For connectivity checks beyond ICMP, PowerShell’s Test-NetConnection helps confirm whether a TCP port answers at all.

Linux: Use ping -4 -M do -s and tracepath

Linux uses -M do to prohibit fragmentation and -s for payload size:

ping -4 -M do -s 1472 -c 3 www.cloudflare.com
ping -6 -M do -s 1452 -c 3 www.cloudflare.com

tracepath does the search for you and reports the path MTU hop by hop:

tracepath -n www.cloudflare.com

Look for the pmtu value in its output. If it drops at a specific hop, you have located the constrained link.

macOS: Use IPv4 ping With -D and -s

macOS uses -D to set the DF bit and -s for payload size:

ping -D -s 1472 -c 3 www.cloudflare.com

An oversized packet returns “Message too long” if your own interface can’t send it, or “frag needed and DF set” if a router upstream rejects it. Use ping6 for IPv6 testing on older macOS releases.

Calculate Packet Size From Payload: When to Add 28 or 48 Bytes

Every ping tool above sets the ICMP payload, so the packet on the wire is larger. TP-Link explains that you add 28 bytes: 20 for the IP header and 8 for the ICMP header.

Protocol Headers to add Payload for 1500 MTU
IPv4 20 IP + 8 ICMP = 28 1472
IPv6 40 IP + 8 ICMPv6 = 48 1452

Example: if 1372 is the largest IPv4 payload that passes, your path MTU is 1400. Entering 1500 as the payload tests a 1528-byte packet and fails on any Ethernet path, which leads people to wrongly conclude their MTU is broken.

Interpret Timeouts, Local Errors, and Destination-Specific Results

Each failure mode tells you something different:

  • Immediate local error (“message too long, mtu=1500” on Linux): your own interface MTU is the limit; the packet never left the host.
  • “Fragmentation needed” from a router: PMTUD is working, and that router’s link sets the ceiling.
  • Silent timeout at large sizes only: a likely black hole where ICMP feedback is filtered, or the destination drops large ICMP.
  • Timeouts at every size: the target blocks ping entirely; pick a different target.

Results are destination-specific. Test against at least two unrelated targets and against the exact host your failing application uses.

How Do You Fix an MTU Mismatch Without Guesswork?

You fix an MTU mismatch by proving where the constraint sits, restoring the ICMP feedback that should handle it automatically, and only then changing MTU or MSS on the device that owns the constrained link. Lowering MTU on every endpoint without evidence often leaves the real problem untouched.

Recognize the Pattern: Small Pings Work but Transfers Stall

MTU faults have a recognizable signature. Basic connectivity looks fine, but specific workloads fail:

  • SSH logs in, then freezes when output scrolls
  • Websites load partially, and large pages hang
  • TLS handshakes stall after the ServerHello, since certificate chains fill full-size packets
  • VPN connects, but file shares and Remote Desktop time out
  • Speed tests look normal while specific applications crawl

Generic packet loss shows up at every packet size. MTU-related loss appears only above a specific size, so testing at multiple sizes separates the two.

Use PacketTools Ping and Traceroute to Establish a Baseline

Before touching configuration, confirm the destination is reachable and stable from outside your network. A browser-based ping test shows reachability and round-trip time without logging your IP or test data, and running a traceroute shows where the path crosses into a tunnel, a carrier or a cloud gateway.

Compare that external view with your local DF ping results. If the outside path looks clean and your local tests fail at 1400, the constraint is on your side. Knowing how to trace a route lets you match the hop where tracepath reports a lower pmtu against a real device you can inspect.

Verify Tunnel Overhead and Restore Required ICMP Feedback

Add up the encapsulation layers on the failing path: PPPoE, GRE, IPsec, WireGuard, VXLAN. Compare the result against what your tests measured. If the numbers match, the tunnel interface MTU is wrong for its underlay.

Then audit firewall rules on every device you control along the path. Permit ICMP Type 3 Code 4 inbound for IPv4 and ICMPv6 Type 2 for IPv6. Rate-limit them if your security policy requires, but don’t drop them. Restoring this feedback fixes PMTUD for UDP and TCP alike.

When to Adjust Interface MTU or Apply MSS Clamping

Change the interface MTU on the tunnel or WAN interface that owns the overhead, never on random endpoints. A GRE tunnel over a 1500-byte underlay gets 1476; a PPPoE WAN gets 1492.

Apply MSS clamping when you can’t control ICMP filtering beyond your edge. The router rewrites the MSS in passing SYN packets so TCP never sends oversized segments. On Cisco IOS, that looks like ip tcp adjust-mss 1436 on a GRE tunnel; on Linux, use the iptables TCPMSS --clamp-mss-to-pmtu target. Clamping helps only TCP, so UDP-based VPNs and DNS still depend on correct MTU and working ICMP.

Retest Applications and Throughput Before Keeping a Change

Repeat the same DF ping tests after each change and confirm the largest passing payload matches the new expected value. Then test the application that failed originally: the file copy, the RDP session, the TLS site.

Measure throughput and latency before and after, since an MTU set too low raises packet counts and header overhead. Track internet latency and run a network jitter test on real-time traffic, because voice and video react quickly to extra packets. If nothing improves, roll the change back and record the result.

Choose an MTU Your Network Path Can Actually Carry

The right MTU size is the measured path MTU for the traffic that matters, set on the interface that introduces the constraint. Keep endpoints at 1500 on standard Ethernet, use 1492 on PPPoE, size tunnel interfaces from their real encapsulation overhead, and reserve jumbo frames for storage and virtualization segments where every hop is configured to match.

Your optimum MTU size comes from evidence:

  • Test with DF pings at known payload sizes, adding 28 bytes for IPv4 and 48 for IPv6.
  • Confirm results against more than one destination and in both directions where possible.
  • Permit ICMP Fragmentation Needed and Packet Too Big so path MTU discovery keeps working.
  • Use MSS clamping at the edge for TCP when you can’t fix filtering upstream.
  • Retest the failing application and compare throughput before you keep any change.

Record the measured path MTU, the tunnel overhead you calculated, and the interface you changed in your network documentation, so the next person investigating stalled transfers starts from your numbers.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *