Skip to content

1103: Jumbo Frames and MTU Optimization

⏱ 2 min read·📅 Last updated: 2026-10-17

Difficulty: ⭐ Beginner

Estimated Time: 2 hours

Table of Contents


Learning Objectives

After completing this lesson, you will be able to:

  • Distinguish MTU, IP payload, and TCP payload sizes, and compute the packet count for a transfer of a given size
  • Calculate per-packet CPU overhead and wire efficiency for MTU 1500 vs MTU 9000
  • Configure MTU 9000 end to end on switches, Linux hosts, Proxmox bridges, and the K3s pod network
  • Trace PMTUD with DF-bit probes and diagnose an MTU black hole
  • Apply MSS clamping on the router where ICMP "Fragmentation Needed" is filtered

Abstract

Jumbo Frames enable Ethernet packets larger than the standard 1500 bytes, reducing CPU overhead and increasing throughput for large data transfers. On any high-throughput LAN (gigabit and above), MTU 9000 provides measurable performance benefits.

MTU Fundamentals

Standard vs Jumbo Frames

Standard MTU 1500:  ~718 packets/MiB (IPv4, 1460-byte payload)
Jumbo MTU 9000:     ~117 packets/MiB (8960-byte TCP payload)
Reduction:          ~84% fewer packets

Why It Matters

For an 11GB model file transfer over the LAN:
MTU 1500: ~7,500,000 packets → High CPU overhead
MTU 9000: ~1,200,000 packets  → Low CPU overhead

Mathematics of MTU

Packet Processing Overhead

CPU Cycles per packet interrupt: ~10,000 cycles
At 3.5GHz CPU: ~2.86µs per packet

MTU 1500 (11GB):
  Packets: 7,500,000
  CPU time: 7,500,000 × 2.86µs = 21.5 seconds

MTU 9000 (11GB):
  Packets: 1,200,000
  CPU time: 1,200,000 × 2.86µs = 3.4 seconds

Throughput Efficiency

Effective Throughput = Line Rate × (Payload / Total Size)

MTU 1500 (IPv4):
  Payload: 1460 bytes (TCP payload; 1500 - 20 IP - 20 TCP)
  Total: 1538 bytes on the wire (frame + preamble + FCS + interframe gap)
  Efficiency: 94.9%

MTU 9000 (IPv4):
  Payload: 8960 bytes (TCP payload; 9000 - 20 IP - 20 TCP)
  Total: 9038 bytes on the wire (frame + preamble + FCS + interframe gap)
  Efficiency: 99.1%

Gain: ~4.2 percentage points more data per bit

Configuration by Component

1. Switch Configuration

# Most managed switches
system mtu 9216
# or per-port
interface 1/0/9
  mtu 9216

2. NAS or Storage Server (Linux)

# Set MTU immediately (replace eth0 with your interface name)
ip link set dev eth0 mtu 9000

# Make it persistent, RHEL-style (/etc/sysconfig/network-scripts/ifcfg-eth0):
MTU=9000

# Or Debian-style (/etc/network/interfaces):
#   iface eth0 inet static
#       address 192.168.1.100/24
#       mtu 9000

# Apply
systemctl restart networking    # or: ifreload -a

3. Proxmox Host

# Edit /etc/network/interfaces
auto eno1
iface eno1 inet static
    address 192.168.1.10/24
    gateway 192.168.1.1
    mtu 9000

# Apply
ifreload -a

4. K3s Container Network

# Flannel has no MTU override flag: it derives the pod-network MTU from
# the host interface you point it at, subtracting 50 bytes of VXLAN
# overhead (/etc/rancher/k3s/config.yaml):
flannel-iface: eno1
# host MTU 9000  ->  pod network MTU 8950
# (verify inside a pod: ip link shows the veth MTU)
# Cilium auto-detects the host MTU the same way; override the agent only
# when detection gets it wrong:
helm install cilium cilium/cilium \
  --set tunnel=vxlan \
  --set extraConfig.mtu=8950

5. Windows Client

# Get interface name
Get-NetIPInterface

# Set MTU
Set-NetIPInterface -InterfaceAlias "Ethernet" -MTU 9000

Path MTU Discovery (PMTUD)

How It Works

Host A (MTU 9000) → Host B (MTU 1500)
                    ↓
                [DF bit set]
                    ↓
            Router sends "Fragmentation Needed"
                    ↓
            Host A reduces MSS for this path

Common PMTUD Issues

Problem: Black hole router (drops ICMP)
Solution: Clamp MSS to safe value

MSS Clamping

# On router/edge device
iptables -t mangle -A FORWARD -p tcp \
  --tcp-flags SYN,RST SYN \
  -j TCPMSS --clamp-mss-to-pmtu

Performance Benchmarks

iperf3 Results (Storage Server ↔ GPU Server, multi-gigabit LAN)

MTU 1500:
  [ ID] Interval           Transfer     Bitrate
  [  4]   0.00-60.00 sec  15.6 GBytes  2.23 Gbits/sec

MTU 9000:
  [ ID] Interval           Transfer     Bitrate
  [  4]   0.00-60.00 sec  16.8 GBytes  2.40 Gbits/sec

Improvement: 7.6% throughput
CPU Usage: -15% during transfer

Large File Transfer (SMB)

11GB Model File:
  MTU 1500: 38 seconds → 2.30 Gbps avg
  MTU 9000: 36 seconds → 2.44 Gbps avg
  Improvement: ~6% faster transfer

Troubleshooting MTU Issues

Test MTU Path

# Linux
ping -M do -s 8972 192.168.1.10

# Windows
ping 192.168.1.10 -f -l 8972

# Success = "Reply from..."
# Failure = "Packet needs to be fragmented"

Check Current MTU

# Linux
ip link show dev eth0
# Look for "mtu 9000"

# Windows
netsh interface ipv4 show subinterfaces

Common Issues

Symptom Cause Solution
Intermittent drops MTU mismatch Verify end-to-end MTU
Slow transfers PMTUD failure Enable MSS clamping
Connection timeout DF bit + low MTU Reduce MTU or fix router

MTU by Use Case

Use Case                    Recommended MTU
─────────────────────────────────────────────
General Internet (WAN)     1500 (ISP limit; PPPoE 1492 - see 1101 §4)
LAN (NAS to Workstation)   9000
K8s Pod-to-Pod (VXLAN)     8950 (host 9000 - 50 overhead)
Storage (NFS/iSCSI)        9000
VPN (WireGuard)            1420 (tunnel overhead)
Video Streaming            1500 (compatible)

Summary Configuration

End-to-End MTU 9000 Path

[Switch Port] ← MTU 9000 ←
      ↓
[NAS / Storage Server] ← MTU 9000 ←
      ↓
[High-Throughput LAN Link]
      ↓
[Server Port] ← MTU 9000 ←
      ↓
[Proxmox Bridge] ← MTU 9000 ←
      ↓
[K3s Pod Network] ← MTU 8950

Summary

Jumbo frames raise the Ethernet MTU from the standard 1500 bytes to 9000, cutting packet counts by roughly 84% and the CPU overhead that comes with them - on an 11GB model transfer that is the difference between millions of packets and a few hundred thousand. This lesson covered the MTU fundamentals and the math, per-component configuration so every hop agrees, path MTU discovery and the black-hole failures it prevents, performance benchmarks, and the troubleshooting playbook. The use-case table closes it: MTU 9000 is a LAN-wide decision, and every device on the path must carry it or fragmentation quietly eats the win.

References


Next Steps


Related Documents: