Sub topic 16
The Ethernet Frame: Fields and Size Limits
Assume you know MAC addresses, hexadecimal numbers, CRC, bandwidth, and propagation delay. This chapter connects those ideas to the Ethernet frame, the data-link-layer unit sent across an Ethernet network.
Frame layout
An Ethernet frame contains addressing information, a payload, and an error-detection value.
The preamble is a repeating bit pattern that helps the receiver synchronize its clock. The start frame delimiter marks the actual beginning of the frame. These two fields are transmitted on the medium but are usually excluded when Ethernet frame size is reported.
| Field | Size | Purpose |
|---|---|---|
| Destination MAC | 6 bytes | Identifies the receiving interface |
| Source MAC | 6 bytes | Identifies the sending interface |
| EtherType | 2 bytes | Identifies the network-layer protocol |
| Payload | 46–1500 bytes | Carries data and possible padding |
| FCS | 4 bytes | CRC-based error detection |
An Ethernet II frame uses EtherType. For example, 0x0800 identifies IPv4 and 0x86DD identifies IPv6. The older IEEE 802.3 format uses this two-byte position as a length field. A following logical link control header then identifies the protocol.
Minimum and maximum sizes
The destination MAC through FCS fields occupy:
- Minimum:
6 + 6 + 2 + 46 + 4 = 64bytes - Maximum:
6 + 6 + 2 + 1500 + 4 = 1518bytes
The payload must be at least 46 bytes. If the upper-layer data is shorter, Ethernet adds padding. This minimum kept an old shared Ethernet sender transmitting long enough to detect a collision before the frame ended.
The 1500-byte payload limit is the standard maximum transmission unit, or MTU, for Ethernet data. A four-byte 802.1Q VLAN tag is inserted between the source MAC and EtherType. With this tag, the usual maximum frame becomes 1522 bytes, although the payload MTU remains 1500 bytes.
Worked size calculation
Suppose an application supplies 40 bytes of data. Ethernet adds 6 bytes of padding because the payload must reach 46 bytes. The transmitted frame, excluding preamble and start delimiter, is therefore:
6 + 6 + 2 + 46 + 4 = 64 bytes
The FCS is calculated over the destination address, source address, type or length field, payload, and padding. A receiver recomputes the CRC and discards the frame if the values differ.
Exercise
What is the size of an untagged Ethernet frame carrying 1200 bytes of payload, excluding the preamble and start frame delimiter?
Show answer
1218 bytes: 6 + 6 + 2 + 1200 + 4.