G27
Self-checkedTier 1 7 min readcn.ethernet

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 4848-bit address, written as six hexadecimal bytes (for example 00:1A:2B:3C:4D:5E), burnt into the network adapter. The first 2424 bits identify the manufacturer (the OUI), the last 2424 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 11 (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
fieldbytesnote
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.

0 / 8
computed by script: exact integer and fraction arithmetic, address calculations on bit patterns. python3 scripts/gen-cn2-traces.py
  • 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 (66 bytes each);
  • type (22 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 15001500 are types;
  • data: 4646 to 15001500 bytes. The upper limit is the MTU (maximum transmission unit) of Ethernet, 15001500 bytes. If the data are shorter than 4646 bytes the sender pads them (the network layer must know the real length);
  • FCS: a 3232-bit CRC over destination, source, type and data.

The frame therefore has 14+46+4=6414 + 46 + 4 = 64 bytes at least and 14+1500+4=151814 + 1500 + 4 = 1518 bytes at most. Between frames a sender waits the interframe gap of 9696 bit times (1212 bytes at the transmission rate).

How it works

Why 64 bytes

At 1010 Mbps a 512512-bit frame lasts 51.251.2 µs, the slot time. A sender must still be transmitting when a collision at the far end of the network could be reported back; 51.251.2 µ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 4646 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
ratemaximum 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).

0 / 3
computed by script: exact integer and fraction arithmetic, address calculations on bit patterns. python3 scripts/gen-cn2-traces.py

With the bare formula d=Lv/(2R)d = L v / (2R) a 512512-bit frame at 1010 Mbps allows 51205120 m; the standard gives 25002500 m, because repeaters, transceivers and the jam signal use up part of the time (quoted). At 100100 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 40964096 bits (quoted).

Efficiency

Each frame costs, in addition to its data, the header, the FCS, the preamble with delimiter and the gap, 3838 bytes in total. The efficiency (fraction of the line rate carrying user data, no collisions) is data/(data+38)\text{data} / (\text{data} + 38) for data of at least 4646 bytes:

Efficiency of Ethernet for different payloads (no collisions): start

Computed by a script, not typed
payloadframe (bytes)bytes on the wireefficiencyuser 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.

0 / 6
computed by script: exact integer and fraction arithmetic, address calculations on bit patterns. python3 scripts/gen-cn2-traces.py

Large frames are efficient (97.5397.53 percent for 15001500 bytes) and small ones are not (54.7654.76 percent for the minimum, 1.191.19 percent for one byte of data padded to 4646). Many exam questions drop the preamble and the gap and use the frame length only: then 1500/15181500/1518 is 98.898.8 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

Easy

A 2020-byte payload is padded to 4646: frame 14+46+4=6414 + 46 + 4 = 64 bytes. A 15001500-byte payload: 15181518 bytes. 20002000 bytes of data do not fit in one frame: sent as 1500+5001500 + 500 bytes they need frames of 15181518 and 518518 bytes (in practice the network layer does the splitting, see the IPv4 fragmentation page).

EX 2Efficiency with preamble and gap

Medium

10001000 bytes of data: frame 10181018 bytes, on the wire 1018+8+12=10381018 + 8 + 12 = 1038 bytes, efficiency 1000/1038=96.341000/1038 = 96.34 percent: on a 100100 Mbps link the user receives 96.3496.34 Mbps. If the question counts only the frame (10181018 bytes): 98.2398.23 percent.

EX 3Minimum frame and distance

Medium

A 11 Gbps half-duplex network with a 512512-bit minimum frame and v=2×108v = 2 \times 10^8 m/s: d=512×2×108/(2×109)=51.2d = 512 \times 2 \times 10^8 / (2 \times 10^9) = 51.2 m. To reach 200200 m one needs L=2dR/v=2×200×109/(2×108)=2000L = 2dR/v = 2 \times 200 \times 10^9 / (2 \times 10^8) = 2000 bits.

EX 4Typical questions

GATE level

(a) "Minimum and maximum Ethernet frame size?" 6464 and 15181518 bytes. (b) "Why is padding needed?" To reach the minimum frame length for collision detection. (c) "MTU of Ethernet?" 15001500 bytes. (d) "Size of a MAC address?" 4848 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 4848 bits; broadcast FF:FF:FF:FF:FF:FF.
  • Frame: header 1414 (dest 6, source 6, type 2) + data 4646 to 15001500 + FCS 44: 6464 to 15181518 bytes. Preamble + delimiter 88, gap 1212 more on the wire.
  • 512512-bit slot time; minimum frame ensures collision detection; Lmin=2dR/vL_{min} = 2dR/v.
  • Efficiency =data/(data+38)= \text{data} / (\text{data} + 38) with preamble and gap.
  • Switched Ethernet: full duplex, no collisions. Unreliable, connectionless.

Traps and GATE patterns

Connections

The FCS is the CRC of error detection. The size limit of 15001500 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

GATE 2024 · NATQ4 · page 533 of the book
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 __________.
GATE 2016 · NATQ18 · page 536 of the book
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.
GATE 2016 · MCQQ19 · page 536 of the book
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
GATE 2015 · MCQQ20 · page 536 of the book
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
GATE 2013 · MCQ · 2 marksQ29 · page 537 of the book
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
GATE 2005 · MCQ · 2 marksQ44 · page 540 of the book
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 100100 bytes of data. What is the size of the Ethernet frame (without preamble)?

Show answer

14+100+4=11814 + 100 + 4 = 118 bytes.

Question 2

Efficiency of a 500500-byte payload counting preamble and gap?

Show answer

500/(500+38)=500/538=92.94500/(500 + 38) = 500/538 = 92.94 percent.

Question 3

Why can switched full-duplex Ethernet drop CSMA/CD?

Show answer

Each link has exactly two ends transmitting on separate wires, so frames never collide.

Revision card

One-screen revision

  • Frame 6464 to 15181518 bytes (header 1414, data 4646 to 15001500, FCS 44); preamble 88 and gap 1212 extra.
  • MAC 4848 bits, broadcast all ones. Padding to 4646 bytes; slot time 512512 bits.
  • Efficiency data/(data+38)\text{data}/(\text{data}+38). 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