Ethernet (IEEE 802.3) Header Formats and the Need for Padding
Ethernet over IEEE 802.3 uses a MAC (Media Access Control) frame that starts with an 802.3 header (destination/source addresses plus a field that is interpreted as either a length or a type, depending on the framing variant) and ends with a Frame Check Sequence (FCS) for error detection. keywordkeywordkeywordkeyword The exact interpretation of the “length/type” field distinguishes Ethernet II from IEEE 802.3 + LLC/SNAP framing.
A key practical requirement is that Ethernet must meet the minimum frame size on the wire; if the payload (and headers) are too small, transmitters add padding so the receiver can reliably detect and process frames. 2
Footnotes
-
IEEE 802.3 / Ethernet framing overview (Length/Type interpretation) - https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II_frame ↩
-
Minimum frame size and padding on Ethernet - https://en.wikipedia.org/wiki/Ethernet_frame#Frame_format ↩
1) 802.3 header formats: “length/type” and the two common interpretations
At a high level, the early part of an Ethernet/802.3 frame is standardized: Destination Address (DA), Source Address (SA), and a 2-byte field that is interpreted differently:
- Ethernet II framing: the 2-byte field is an EtherType (identifies the upper-layer protocol, e.g., IPv4).
- IEEE 802.3 framing with LLC (and sometimes SNAP): the 2-byte field is a length (number of bytes in the LLC payload), and the receiver expects LLC headers to identify the network protocol. 2
2) Where LLC/SNAP fits
When the 2-byte field is used as a length, the immediate bytes after it are typically an LLC header (and optionally SNAP) so that multiple higher-layer protocols can be multiplexed over the same link layer format. This is why 802.3 “header formats” are often taught as “MAC header + length/type interpretation + (LLC/SNAP vs not).” 2
Footnotes
-
IEEE 802.3 / Ethernet framing overview (Length/Type interpretation) - https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II_frame ↩
-
IEEE 802.3 frame structure and LLC usage (length vs EtherType concepts) - https://en.wikipedia.org/wiki/IEEE_802.3#Frame_format ↩ ↩2
-
LLC and SNAP overview in IEEE 802 networks - https://en.wikipedia.org/wiki/Logical_Link_Control ↩
3) Field-by-field view of the on-the-wire MAC frame
The following conceptual breakdown focuses on the MAC-layer portion (and indicates where LLC/SNAP may appear). Preamble/SFD are part of physical-layer framing and are often excluded from “Ethernet frame size” calculations, but they are present on the wire. 2
| Segment | Typical size | Meaning |
|---|---|---|
| Destination Address | 6 bytes | Where the frame should be delivered (unicast/multicast/broadcast) |
| Source Address | 6 bytes | Sender’s MAC address |
| Length/Type (2 bytes) | 2 bytes | Interpreted as EtherType (Ethernet II) or payload length (802.3+LLC) |
| LLC/SNAP (optional, framing-dependent) | varies | Used when the length interpretation is used |
| Payload / Data | variable | Upper-layer data (including LLC payload if present) |
| Padding (optional) | 0–46 bytes | Added to meet the minimum frame length |
| FCS | 4 bytes | CRC-32 based error detection |
Footnotes
-
IEEE 802.3 / Ethernet framing overview (Length/Type interpretation) - https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II_frame ↩
-
Minimum frame size and padding on Ethernet - https://en.wikipedia.org/wiki/Ethernet_frame#Frame_format ↩
Deciding which 802.3 header format you’re looking at
- 1Step 1
The first 12 bytes are always DA (6) then SA (6).
- 2Step 2
Next comes a 16-bit field that is either an EtherType (Ethernet II) or a length (802.3 with LLC).
- 3Step 3
If treated as an EtherType, payload follows directly. If treated as a length, LLC headers (and sometimes SNAP) are expected next.
- 4Step 4
Parsing the payload depends on whether you’re in the Ethernet II vs IEEE 802.3+LLC/SNAP convention.
- 5Step 5
Regardless of framing, FCS is used for integrity checking and is computed over the frame contents as specified by Ethernet.
Why padding is required (minimum frame size)
Ethernet requires a minimum frame size so that the physical-layer signaling and link-layer operation behave correctly for the worst-case conditions on the medium (e.g., collision detection timing on shared media / and consistent minimum transmission time). If the MAC header plus payload (and LLC/SNAP when present) do not reach that minimum, the transmitter adds padding bytes between the payload and FCS. 2
Key intuition
- The MAC must transmit frames long enough to satisfy the Ethernet timing/format constraints.
- If the payload is too short, the frame would otherwise be “too small,” so the MAC pads it with zeros (or equivalent fill) up to the minimum size.
- Receivers use the frame’s length/type and protocol expectations to know how much of the payload is meaningful; padding is ignored at higher layers.
Footnotes
-
IEEE 802.3 / Ethernet framing overview (Length/Type interpretation) - https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II_frame ↩
-
Minimum frame size and padding on Ethernet - https://en.wikipedia.org/wiki/Ethernet_frame#Frame_format ↩ ↩2
Pro Tip: padding is not “data”
Padding exists to satisfy the minimum transmission size. Upper-layer protocols rely on length/type + LLC parsing; padding bytes should not be interpreted as application data.
Warning: don’t confuse padding with the length/type semantics
For IEEE 802.3+LLC framing, the 2-byte field indicates payload length (for LLC payload). Padding may still be present on the wire even though the receiver should treat the padding as non-data to meet the minimum frame size.
Parsing pipeline (conceptual) for an Ethernet/802.3 receiver
Detect frame boundaries
1Physical layer identifies the frame via preamble/SFD and synchronization."
Extract MAC addresses + length/type
2DA, SA, and the 2-byte length/type are parsed next."
Select framing interpretation
3Interpret length/type as EtherType (Ethernet II) or as 802.3 length (LLC/SNAP)."
Remove/ignore padding for payload processing
4Padding is ignored; meaningful payload length is derived from the framing semantics."
Validate FCS
5CRC (FCS) verification confirms integrity before passing up the stack."
Common questions about 802.3 header formats and padding
Knowledge Check
In Ethernet/IEEE 802.3 frames, the 2-byte field after Destination and Source addresses is commonly described as a Length/Type field. Which interpretation corresponds to Ethernet II?