Ethernet, frames and minimum frame size
The Ethernet (IEEE 802.3) frame and its fields, 48-bit MAC addresses (unicast, multicast, broadcast), the 64-byte minimum and 1518-byte maximum frame and the reason for the minimum (collision detection), padding, the efficiency of Ethernet for different payload sizes with preamble and interframe gap, the longest network for a given minimum frame, and the difference between shared (CSMA/CD) and switched Ethernet; sizes and efficiencies are computed exactly, the standard's field list is quoted.
Why it exists
Ethernet is the wired local network technology: almost every cable that reaches a computer carries Ethernet frames. The classic version is a shared cable using CSMA/CD (medium access); today the cable runs from the host to a switch and there are no collisions, but the frame format, the addresses and the size limits are the same. GATE asks for frame sizes, the reason for the minimum frame, and the efficiency.
Prerequisites
You need CSMA/CD and the minimum frame length (medium access) and the CRC (error detection).
Precise definitions
MAC address. A -bit address, written as six hexadecimal bytes (for example 00:1A:2B:3C:4D:5E), burnt into the network adapter. The first bits identify the manufacturer (the OUI), the last are assigned by the manufacturer. Special addresses: FF:FF:FF:FF:FF:FF is the broadcast address (all stations on the LAN); an address whose first transmitted bit is (the least significant bit of the first byte) is a multicast address. All other addresses are unicast. A station accepts frames addressed to its own address, to broadcast and to the multicast groups it joined.
The Ethernet frame (quoted from the IEEE 802.3 standard):
The Ethernet (IEEE 802.3) frame: start
Computed by a script, not typed| field | bytes | note |
|---|---|---|
| preamble | ||
| start frame delimiter | ||
| destination MAC address | ||
| source MAC address | ||
| type (or length) | ||
| data (payload) | ||
| FCS (CRC-32) | ||
| whole frame |
Step 0
Field sizes of the classic 10/100 Mbps Ethernet frame, quoted from the standard as the textbooks present it.
- the preamble (seven bytes
10101010) and the start frame delimiter (10101011) synchronise the receiver's clock; they are not counted in the frame size; - destination and source addresses ( bytes each);
- type ( bytes): the upper-layer protocol (for example IPv4 or ARP). In the original IEEE 802.3 frame the field gives the length of the data instead; values above are types;
- data: to bytes. The upper limit is the MTU (maximum transmission unit) of Ethernet, bytes. If the data are shorter than bytes the sender pads them (the network layer must know the real length);
- FCS: a -bit CRC over destination, source, type and data.
The frame therefore has bytes at least and bytes at most. Between frames a sender waits the interframe gap of bit times ( bytes at the transmission rate).
How it works
Why 64 bytes
At Mbps a -bit frame lasts µs, the slot time. A sender must still be transmitting when a collision at the far end of the network could be reported back; µs covers the round-trip delay of the longest permitted network, including repeaters and the jam signal. A shorter frame could finish before the collision is noticed, and the sender would not know that it was lost. Hence the minimum data of bytes (padding if needed), and the maximum network length for a given minimum frame length:
Longest network for a 512-bit minimum frame: start
Computed by a script, not typed| rate | maximum end-to-end distance |
|---|---|
| 10 Mbps | |
| 100 Mbps | |
| 1000 Mbps |
Step 0
d = L v / (2R) with L = 512 bits, v = 2 × 10^8 m/s. The standards give other figures because of repeater delays (quoted: 2500 m for 10 Mbps; Gigabit Ethernet extends the frame to 4096 bits).
With the bare formula a -bit frame at Mbps allows m; the standard gives m, because repeaters, transceivers and the jam signal use up part of the time (quoted). At Mbps the same frame allows only a tenth of the distance, which is why Fast Ethernet networks are small; Gigabit Ethernet in half-duplex mode extends short frames to bits (quoted).
Efficiency
Each frame costs, in addition to its data, the header, the FCS, the preamble with delimiter and the gap, bytes in total. The efficiency (fraction of the line rate carrying user data, no collisions) is for data of at least bytes:
Efficiency of Ethernet for different payloads (no collisions): start
Computed by a script, not typed| payload | frame (bytes) | bytes on the wire | efficiency | user rate on a 100 Mbps link |
|---|---|---|---|---|
| 1 bytes of data | ||||
| 46 bytes of data | ||||
| 100 bytes of data | ||||
| 500 bytes of data | ||||
| 1000 bytes of data | ||||
| 1500 bytes of data |
Step 0
Efficiency = data / (preamble 8 + header 14 + data (padded) + FCS 4 + gap 12). Exam questions often leave out the gap and the preamble: read the statement.
Large frames are efficient ( percent for bytes) and small ones are not ( percent for the minimum, percent for one byte of data padded to ). Many exam questions drop the preamble and the gap and use the frame length only: then is percent. Read what the question counts.
Shared against switched Ethernet
On a shared (bus or hub) Ethernet all stations are in one collision domain and use CSMA/CD with the efficiency discussed on the previous page. In a switched Ethernet each host has its own cable to a switch; the link is full-duplex (both directions at the same time), there are no collisions, CSMA/CD is not used and the minimum frame constraint is not needed for collision detection (the frame format is kept). A switch forwards a frame only to the port of its destination, learning which address is behind which port (switches and bridges). Ethernet gives unreliable, connectionless service: a frame with a bad FCS is silently dropped and no acknowledgement is sent; recovery is left to higher layers.
Worked examples
EX 1Frame sizes
EasyA -byte payload is padded to : frame bytes. A -byte payload: bytes. bytes of data do not fit in one frame: sent as bytes they need frames of and bytes (in practice the network layer does the splitting, see the IPv4 fragmentation page).
EX 2Efficiency with preamble and gap
Mediumbytes of data: frame bytes, on the wire bytes, efficiency percent: on a Mbps link the user receives Mbps. If the question counts only the frame ( bytes): percent.
EX 3Minimum frame and distance
MediumA Gbps half-duplex network with a -bit minimum frame and m/s: m. To reach m one needs bits.
EX 4Typical questions
GATE level(a) "Minimum and maximum Ethernet frame size?" and bytes. (b) "Why is padding needed?" To reach the minimum frame length for collision detection. (c) "MTU of Ethernet?" bytes. (d) "Size of a MAC address?" bits. (e) "Does Ethernet acknowledge frames?" No. (f) "What happens to a frame with a wrong CRC?" It is discarded.
Cheat box
Cheat box
- MAC address bits; broadcast
FF:FF:FF:FF:FF:FF. - Frame: header (dest 6, source 6, type 2) + data to + FCS : to bytes. Preamble + delimiter , gap more on the wire.
- -bit slot time; minimum frame ensures collision detection; .
- Efficiency with preamble and gap.
- Switched Ethernet: full duplex, no collisions. Unreliable, connectionless.
Traps and GATE patterns
Connections
Unlocks
Across subjects
No cross-subject links yet.
The FCS is the CRC of error detection. The size limit of bytes forces IP to fragment large packets (IPv4 fragmentation). The destination MAC address is found from an IP address by ARP (ARP, ICMP and DHCP), and a switch forwards frames by MAC address.
PYQs
6 previous year questions from your book. I re-solved each one myself (5 by running or simulating, 1 by reasoning only); the book's key is shown next to my answer. All PYQs
Consider an Ethernet segment with a transmission speed of 108 bits/sec and a maximum segment length of 500 meters. If the maximum speed of propagation of the signal in the medium is 2×108 meters/sec, then the minimum frame size (in bits) required for collision detection is __________.
A network has a data transmission bandwidth of 20×106 bits per second. It uses CSMA/CD in the MAC layer. The maximum signal propagation time from one node to another node is 40 microseconds. The minimum size of a frame in the network is ______ bytes.
In an Ethernet local area network, which one of the following statements is TRUE?
- (a)A station stops to sense the channel once it starts transmitting a frame.
- (b)The purpose of the jamming signal is to pad the frames that are smaller than the minimum frame size.
- (c)A station continues to transmit the packet even after the collision is detected.
- (d)The exponential backoff mechanism reduces the probability of collision on retransmissions
Consider a CSMA/CD network that transmits data at a rate of 100 Mbps (108 bits per second) over a 1 km (kilometer) cable with no repeaters. If the minimum frame size required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable?
- (a)8000
- (b)10000
- (c)16000
- (d)20000
Determine the maximum length of the cable (in km) for transmitting data at a rate of 500 Mbps in an Ethernet LAN with frames of size 10,000 bits. Assume the signal speed in the cable to be 2,00,000 km/s.
- (a)1
- (b)2
- (c)2.5
- (d)5
Suppose the round trip propagation delay for a 10 Mbps Ethernet having 48-bit jamming signal is 46.4 μs. The minimum frame size is:
- (a)94
- (b)416
- (c)464
- (d)512
Self-check
Question 1
A host sends bytes of data. What is the size of the Ethernet frame (without preamble)?
Show answerHide
bytes.
Question 2
Efficiency of a -byte payload counting preamble and gap?
Show answerHide
percent.
Question 3
Why can switched full-duplex Ethernet drop CSMA/CD?
Show answerHide
Each link has exactly two ends transmitting on separate wires, so frames never collide.
Revision card
One-screen revision
- Frame to bytes (header , data to , FCS ); preamble and gap extra.
- MAC bits, broadcast all ones. Padding to bytes; slot time bits.
- Efficiency . Unreliable; bad CRC means drop.
References
- ·Kurose, Ross, Computer Networking: A Top-Down Approach (8th edition), Chapter 6, Section 6.5 (Ethernet)
- ·Tanenbaum, Wetherall, Computer Networks (5th edition), Chapter 4, Section 4.3 (Ethernet)
- ·Forouzan, Data Communications and Networking (5th edition), Chapter 13 (Wired LANs: Ethernet)
Verification
The arithmetic (frame sizes 64 to 1518 bytes, 84 and 1538 bytes on the wire with preamble, delimiter and interframe gap, efficiency payload / wire bytes, longest network for a 512-bit frame) is exact integer and fraction arithmetic from scripts/cn_net.py, checked in scripts/enum-checks/cn_net_check.py (tests of the constants and of the timing model for the minimum frame). QUOTED from the IEEE 802.3 standard as the textbooks present it, NOT verifiable here: the field list and sizes (preamble 7 bytes, SFD 1, addresses 6, type/length 2, data 46-1500, FCS 4), the interframe gap of 96 bit times, the slot time of 512 bit times, the jam signal, the distances of the standards (2500 m for 10 Mbps, the extension of Gigabit Ethernet to 4096 bits), the multicast and local-administration bits of the address. Books differ on whether the 'frame size' includes the preamble (the usual exam convention: 64 to 1518 bytes without it); exam questions state what is counted. The CRC-32 of the FCS was checked against zlib on the error-detection page. Textbook chapter references are from memory. SECOND PASS (2026-11-02, done by the assistant, not a human check): every Self-check question was solved before the printed answer was read and all agreed; the definitions, worked examples, cheat box and traps were read claim by claim and the numbers re-derived by hand or by a small script (CRC remainders, binomial tail, checksums); long C programs were not re-read line by line (they are compiled and compared by npm run verify:c, and their printed outputs were checked against the prose). No defect found. Status raised to self-checked; verified needs a textbook or human check.
last verified: never
My notes (saved in this browser)