Sub topic 12
Tagging Overhead and Frame Size
This chapter covers what the 802.1Q tag does to frame length, why that can break traffic that worked before, and how to find and fix the problem. It assumes you know the Ethernet frame layout, how a switch forwards frames, IPv4 addressing, and basic switch command-line use. It also assumes you have met the 802.1Q tag fields in the previous chapters.
Four bytes added to the frame
An 802.1Q tag is 4 bytes. It sits between the source MAC address and the EtherType field. The first 2 bytes are the TPID (0x8100). The next 2 bytes are the TCI, which holds the priority, the drop eligible indicator and the 12-bit VLAN ID.
A standard untagged Ethernet frame has these limits:
- Payload: 46 to 1500 bytes. The 1500-byte upper limit is what people call the Ethernet MTU.
- Header: 14 bytes (destination MAC, source MAC, EtherType).
- Frame check sequence (FCS): 4 bytes.
- Total frame: 64 to 1518 bytes, counted from the destination MAC through the FCS.
A tagged frame adds 4 bytes, so the same 1500-byte payload gives a 1522-byte frame. The minimum tagged frame is 68 bytes.
| Frame type | Minimum size | Maximum size with 1500-byte payload |
|---|---|---|
| Untagged | 64 bytes | 1518 bytes |
| 802.1Q tagged | 68 bytes | 1522 bytes |
| Q-in-Q (two tags) | 72 bytes | 1526 bytes |
Two terms are easy to confuse. The MTU is the largest payload a link will carry, which is the layer 3 packet size. The frame size includes the Ethernet header, any tags and the FCS. Adding a tag changes the frame size. It does not change the payload, so the standard Ethernet MTU stays at 1500.
Why a larger frame can be a problem
The original Ethernet limit was a maximum of 1518 bytes. IEEE 802.3ac (1998) raised the maximum frame to 1522 bytes so that a tagged frame can carry a full 1500-byte payload. Modern switches and network interface cards (NICs) support this. A device that predates the change, or one that is configured strictly, may treat a 1519 to 1522 byte frame as oversized.
Such a device may count the frame as a "giant" and drop it. It may also count it as a baby giant. A baby giant is a frame only slightly over the standard limit, which is the case here.
The symptoms are specific:
- Small packets work. Ping with default settings succeeds.
- Large transfers fail or stall. A file copy hangs, or a web page loads partway.
- The fault appears only on tagged links, or only on one hop.
This pattern happens because only frames close to the full 1518 or 1522 bytes are affected. Short frames pass without trouble.
Where the extra bytes come from
Three common situations push the frame beyond the usual limit:
- A single 802.1Q tag. Adds 4 bytes, as shown above.
- Q-in-Q (802.1ad). A provider adds a second tag, for 8 bytes in total. A 1500-byte payload then needs a 1526-byte frame. The provider's links must accept that size.
- Tunnels and overlays. Technologies such as GRE, IPsec or VXLAN add their own headers inside the payload. They reduce the usable MTU for the traffic inside, which is a different problem. The inner packet may need to be smaller than 1500 bytes, or the links may need a larger MTU.
The first two change the frame. The third changes how much payload fits. Keep them apart when you troubleshoot: a "system MTU" setting on a switch addresses the frame limit, while an interface ip mtu setting addresses the packet size.
Where the tag exists
The tag is not present everywhere. This matters for deciding which links need to handle the larger frame.
Hosts send ordinary untagged frames of up to 1518 bytes. The access port on Switch 1 adds the tag when it forwards the frame onto the trunk. Switch 2 removes it before delivering to Host B. Only the trunk link has to carry the 1522-byte frame.
The exception is a host that tags its own frames, such as a server with a VLAN subinterface, or a router using router-on-a-stick. That link is a trunk from the switch's point of view and must also handle 1522 bytes.
Jumbo frames are a separate matter
Do not confuse the tag overhead with jumbo frames. A jumbo frame is a frame with a payload larger than 1500 bytes, commonly up to about 9000 bytes. It is used in storage networks and data centers to reduce per-packet overhead.
Jumbo frames are not part of the 802.1Q standard. They need to be enabled end to end on every device and link on the path, including the hosts. If one switch in the path still allows only 1522 bytes, large frames are dropped at that point.
When you enable jumbo frames, leave room for the tag. If the system limit is set to 9000 bytes of frame size, a tagged frame with a 9000-byte payload will not fit. Check whether your platform counts the limit as payload or as the whole frame.
Checking and adjusting the limit
On Cisco IOS switches, the maximum frame size is set globally. The following shows the current values and raises the limit on a platform that supports it.
show system mtu
show interfaces GigabitEthernet0/24 counters errors
!
configure terminal
system mtu 1998
endThe first command shows the current limit. The second shows error counters for the trunk port, including frames counted as too large. The system mtu command is platform specific. Some switches use system mtu jumbo for gigabit ports, and some need a reload to apply the change. Read your platform's documentation before using it.
On Linux you can inspect and set the MTU of an interface. The VLAN subinterface inherits the parent's limit, and it cannot exceed the parent's MTU.
ip link show eth0
ip link show eth0.10
sudo ip link set dev eth0 mtu 1500The second command shows the subinterface created earlier in this tutorial. If you raise the MTU on eth0.10 above the value on eth0, the kernel rejects it.
Testing for a size problem
The reliable test is to send pings of a known size with the "don't fragment" flag set, so that nothing is split on the way. A packet of N bytes of ICMP data needs 28 bytes for the IP and ICMP headers. To fill a 1500-byte IP packet, use 1472 bytes of data.
ping -M do -s 1472 192.168.10.1
ping -M do -s 1400 192.168.10.1On Windows, the equivalent options are ping -f -l 1472 192.168.10.1. On macOS, use ping -D -s 1472.
Read the results this way:
- A 1472-byte ping fails but a 1400-byte ping works: some link in the path drops frames near the maximum. Suspect a tagged hop with a strict 1518-byte limit.
- Both fail: the cause is probably not frame size. Check VLAN membership, trunk allowed lists and routing first.
- A "message too long" or "needs to be fragmented" reply: a device on the path is reporting an MTU smaller than your packet. That device may be a router with a lower MTU set on an interface.
Sort out the VLAN configuration before you investigate size. A pruned VLAN or native VLAN mismatch also breaks traffic, but it breaks all of it, not just large packets.
Common mistakes
- Lowering the host MTU to hide the fault. It makes the symptoms go away, but the network still drops full-size frames. Other hosts will hit the same problem.
- Raising the MTU on one end only. If a router interface uses 9000 and the switch uses 1500, large frames are lost silently.
- Forgetting the tag in a jumbo design. The frame limit must exceed the payload limit by the tag bytes, plus 18 for the header and FCS.
- Blaming the tag when TCP is clamped. Some devices adjust the TCP maximum segment size (MSS), which hides oversize problems for TCP while UDP and ICMP still fail.
Summary
- An 802.1Q tag adds 4 bytes, making the maximum frame 1522 bytes. The payload MTU stays at 1500.
- Only trunk links, and hosts that tag for themselves, carry the tag.
- Older or strictly configured devices can drop frames of 1519 to 1522 bytes, which shows up as small packets working and large ones failing.
- Q-in-Q adds a second tag for 1526 bytes. Jumbo frames and tunnel overhead are separate issues.
- Use don't-fragment pings of different sizes to locate the limit.
Exercise
A trunk between two switches carries VLAN 10. Pings of 1000 bytes between hosts in VLAN 10 succeed, but a file copy hangs. A ping -M do -s 1472 fails and ping -M do -s 1400 succeeds. Both hosts have MTU 1500 and are on access ports. What is the most likely cause, and what is the maximum frame size that the trunk must accept?
Show answer
One device on the trunk path drops frames larger than 1518 bytes, so a full 1500-byte payload plus the 4-byte tag does not fit. The trunk must accept tagged frames of 1522 bytes (14-byte header, 4-byte tag, 1500-byte payload, 4-byte FCS). The fix is to raise the frame limit on the affected device or replace it. Lowering the host MTU would only hide the problem.
Exercise
A provider uses Q-in-Q to carry your tagged traffic. Your frames have one 802.1Q tag and a 1500-byte payload. What frame size does the provider's link see, and why?
Show answer
1526 bytes. Your frame is already 1522 bytes with its own tag, and the provider adds a second 4-byte tag, for 14 + 4 + 4 + 1500 + 4 = 1526 bytes.