Sub topic 3
Minimum frame size and slot time
This chapter assumes you know the layered network model, binary numbers, and the difference between transmission delay (time to push bits onto the medium) and propagation delay (time for a signal to cross it). A frame is one data link layer packet.
Minimum frame size and slot time
In CSMA/CD, a sender must still be transmitting when a collision signal returns. The slot time is the round-trip time, 2 × propagation delay. The minimum frame size is bandwidth × slot time.
For 10 Mbps Ethernet, the slot time is 51.2 µs, so the minimum frame is 512 bits, or 64 bytes.
bandwidth_bps = 10_000_000 # 10 Mbps Ethernet
round_trip_time_s = 51.2e-6 # slot time = 2 x propagation delay
min_frame_bits = round(bandwidth_bps * round_trip_time_s)
print(min_frame_bits, min_frame_bits // 8) # 512 64Efficiency of CSMA/CD
Let a = tprop / ttrans, the ratio of propagation time to frame transmission time. Efficiency is approximately 1 / (1 + 5a). A longer cable or a shorter frame raises a and lowers efficiency.
CSMA/CA and the hidden terminal problem
A wireless station cannot listen for collisions while it transmits, so CSMA/CA tries to avoid collisions. A hidden terminal is a station that cannot hear a rival sender, so it transmits into that sender's collision.
CSMA/CA reduces this risk with random backoff and an optional RTS/CTS handshake.
Polling and token passing
Controlled access avoids collisions. A master polls each station in turn, or a token circulates a ring, and only the holder may transmit. Efficiency stays high under load, but polling wastes time on idle stations.
MAC addresses
A MAC address is a 48-bit hardware address, written as six hex pairs such as 00:1A:2B:3C:4D:5E. The network interface card (NIC) stores it. The address FF:FF:FF:FF:FF:FF is the broadcast address.
The Ethernet frame: fields and size limits
The frame has a destination address (6 bytes), a source address (6 bytes), a type field (2 bytes), a payload, and a CRC (4 bytes). The 7-byte preamble and 1-byte start-of-frame delimiter are not counted in the 64-byte minimum. The payload is 46 to 1500 bytes.
Learning switches and collision domains
A learning switch records the source MAC address seen on each port. It forwards frames for a known destination to one port and floods unknown or broadcast frames. Each switch port is its own collision domain. A hub puts all its ports in one collision domain.
From 10 Mbps Ethernet to Gigabit Ethernet
Fast Ethernet keeps the 64-byte minimum frame but cuts the slot time to 5.12 µs, which shrinks the maximum network diameter. Gigabit Ethernet uses a 512-byte carrier extension, so its slot time is 4.096 µs. Full-duplex switched links need no collision detection at all.
Exercise
A 100 Mbps LAN has a slot time of 5.12 µs. What is the minimum frame size in bytes?
Show answer
100 × 10^6 × 5.12 × 10^-6 = 512 bits = 64 bytes.