What you’ll get
Check the maximum packet size on a Linux interface and capture one live frame with its link-layer header (-e):
ip -o link show eth0
# 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT qlen 1000\ link/ether 52:54:00:1a:2b:3c brd ff:ff:ff:ff:ff:ff
sudo tcpdump -nn -e -i eth0 -c 1 'tcp and port 443'
One line of tcpdump output exposes every layer in the frame — from the NIC’s MAC addresses down to TCP options:
length 74 at the start is the whole wire frame, while length 0 at the end is the application payload inside TCP.Comparing those two numbers is the fastest way to grasp encapsulation: 74 bytes of protocol headers are already on the wire before the application sends a single byte of text.
Why data is split into packets
Sending a gigabyte file as one unbroken stream fails for three reasons:
- Dozens of flows share one link. While a backup transfers, SSH keystrokes, DNS queries, and voice packets still slip through the same NIC and router without waiting for the backup to finish.
- Corruption does not ruin the whole file. Wi-Fi interference or a full router queue damages one 1500-byte chunk. Only that chunk gets retransmitted, not the entire gigabyte.
- Routers keep small buffers. Switch and router queues assume a fixed upper frame limit; without it, one sender would exhaust transit node memory.
Frame, packet, segment: how the terms differ
In casual speech everything gets called a “packet”, yet Linux docs, tcpdump, Wireshark, and RFCs give each
layer’s data block (PDU) its own name:
| Layer | Block name | Typical header | What’s inside | Who reads the header |
|---|---|---|---|---|
| L7 · Application | Payload (data) | Protocol-specific | HTTP, TLS, DNS, SSH | Client and server programs |
| L4 · Transport | Segment (TCP) / datagram (UDP) | 20 bytes (TCP) / 8 bytes (UDP) | Ports, seq/ack, flags |
Sender/receiver kernel, firewall |
| L3 · Network | Packet (IP packet) | 20 bytes (IPv4) / 40 bytes (IPv6) | Source/dest IP, TTL, protocol |
Every router along the route |
| L2 · Link | Frame (Ethernet frame) | 14 bytes + 4-byte FCS | MAC addresses, EtherType, optional VLAN (+4 B) |
NIC, switch, br-* bridge |
Here is the full byte budget of an Ethernet II frame carrying IPv4 and TCP:
|<-------------- MTU 1500 bytes (IP packet size) -------------->|
┌──────────────┬───────────┬──────────┬──────────────────────────┬─────┐
│ Ethernet 14B │ IPv4 20B │ TCP 20B │ Payload (MSS 1460 B) │ FCS │
│ MAC + Type │ IP + TTL │ ports │ HTTP / TLS / SSH │ 4 B │
└──────────────┴───────────┴──────────┴──────────────────────────┴─────┘
|<-------------------- 1518 bytes (full L2 frame) -------------------->|
At physical layer L1, the NIC prepends an 8-byte Preamble + SFD and waits a 12-byte Interframe Gap before the
next frame — 1538 bytes of wire time for 1460 bytes of application data (1460 / 1538 ≈ 94.9%). That produces
the ~940 Mbps TCP ceiling on gigabit Ethernet; with TCP Timestamps enabled (+12 bytes in the TCP header, Linux’s
default), payload shrinks to 1448 bytes.
How layers change across a router
When host 10.0.10.42 sends a request to 203.0.113.10, the kernel builds the frame top-down
(encapsulation): data wraps in TCP, TCP in IPv4, IPv4 in Ethernet with the gateway’s MAC. An intermediate
router performs partial decapsulation up to L3 and builds a fresh L2 header:
TTLTransit routers carry the payload as opaque bytes and cannot tell whether it is a web page, an SSH session, or a backup stream.
That separation is why you can swap a LAN from copper to fiber or Wi-Fi without applications or TCP connections noticing: only the outer L2 envelope changes.
Where MTU 1500 comes from and where it shrinks
1500 comes from the Ethernet II (IEEE 802.3) standard as the maximum frame payload. In practice it often shrinks because extra encapsulation layers stack on top of Ethernet — all carving space out of those same 1500 bytes:
| Link or tunnel | Added overhead | Resulting MTU | TCP MSS (IPv4) |
|---|---|---|---|
| Standard Ethernet (IPv4) | 14 B Ethernet + 4 B FCS (outside MTU) | 1500 |
1460 |
| Standard Ethernet (IPv6) | 40-byte IPv6 header instead of 20 | 1500 |
1440 |
| VLAN 802.1Q (inside switch) | +4-byte tag on the L2 header | 1500 |
1460 |
| ISP PPPoE | +8-byte PPPoE/PPP header inside the frame | 1492 |
1452 |
| WireGuard over IPv4 | +20 IPv4 + 8 UDP + 32 WireGuard (+ margin) | 1420 |
1380 |
Loopback lo |
No wire; transferred in kernel memory | 65536 |
65495 |
| Jumbo frames (datacenter / SAN) | Extended Ethernet frame | 9000 |
8960 |
Modern NICs and switches add the 4-byte 802.1Q VLAN tag on top of 1518 bytes (making a 1522-byte frame), so VLANs keep MTU 1500 intact. PPPoE and VPN tunnels sit inside the outer IP packet, directly reducing usable MTU. How hosts discover a smaller path MTU (Path MTU Discovery) is covered in the ICMP and MTU chapter.
If it doesn’t work
ping -M do -s 1473 203.0.113.10 fails immediately with ping: local error: message too long, mtu=1500
- Cause
- Out of a 1500-byte MTU, the IPv4 header takes 20 bytes and the ICMP header takes 8 bytes. That leaves 1472 bytes for payload;
-M doforbids fragmenting the packet. - Fix
- Use
-s 1472to test a full unfragmented Ethernet frame. If replies only succeed with a smaller size (such as1464or1392), a PPPoE link or VPN tunnel sits on the path.
tcpdump output omits MAC addresses and ethertype, starting directly with IP 10.0.10.42…
- Cause
tcpdumphides the L2 header by default to keep output compact. Running with-i anyalso returns a Linux SLL pseudo-header instead of real Ethernet.- Fix
- Add
-eand specify an interface:sudo tcpdump -nn -e -i eth0 -c 1.
Small requests and ping work over VPN or PPPoE, while web pages and file transfers stall
- Cause
- Tunnel encapsulation adds its own headers (8 bytes for PPPoE, 60 bytes for WireGuard over IPv4). When interface MTU stays at 1500 and ICMP
Fragmentation Neededis blocked, large packets drop silently. - Fix
- Measure the real path MTU with
ping -M do -s …, set the matching MTU on the tunnel interface, or enable MSS clamping on the router.
File copies over gigabit Ethernet top out around 940 Mbps instead of 1000
- Cause
- Part of the 1000 Mbps link rate goes to per-frame overhead: preamble, interframe gap, FCS checksum, and Ethernet, IPv4, and TCP headers.
- Fix
- That is the normal physical ceiling for Ethernet at MTU 1500 (
1460 / 1538 ≈ 94.9%). Exceeding it requires jumbo frames (MTU 9000) inside a LAN where every switch supports them.