Chapter 4

Medium access and Ethernet

Shared-channel performance depends on both access rules and propagation. Distinguish a probability per slot from frames per second. Ethernet's collision-detection results apply to shared half-duplex operation, not switched full-duplex links.

4.1 Random access and ALOHA

Past papers · CS 2014–2026 (23 papers): 2 questions, 4 marks

Pure ALOHA starts whenever a frame is ready; another frame beginning within one frame duration on either side can collide. Slotted ALOHA permits starts only on slot boundaries, with one frame per slot.

4.2 Carrier sensing and collision avoidance

Past papers · CS 2014–2026 (23 papers): 2 questions, 4 marks

Carrier sensing listens before transmitting. Two separated stations can both sense idle because a signal has not yet propagated between them. If station A starts at time tt, a station distance dd away can first sense A at t+d/vt+d/v, where vv is propagation speed. Compare this instant with the other station's proposed start, not with A's start alone.

Persistence ruleOn finding the channel busyOn finding it idle
1-persistentKeep sensingTransmit immediately
NonpersistentWait a random interval, then senseTransmit
pp-persistent, slottedContinue as specified by the slot modelTransmit with probability pp; defer a slot with 1−p1-p

CSMA/CD senses during transmission, aborts on collision, emits a jam indication and backs off. CSMA/CA attempts to reduce collisions using sensing, random backoff and acknowledgements; it does not detect collisions by listening to its own transmission in the Ethernet sense. Hidden terminals may both reach a receiver but fail to hear each other; RTS/CTS reservation can reduce that problem. An exposed terminal hears a transmission that need not prevent its own safe transmission to a different receiver.

A successfully received unicast data frame is normally acknowledged in the basic wireless MAC model. RTS/CTS is collision avoidance, not collision detection. The conventional 2.4 GHz 20 MHz channel plan uses three nonoverlapping channels, 1, 6 and 11; see the wireless RF reference. Channel-count facts depend on bandwidth and regulatory plan; do not generalise this count to all wireless networks.

4.3 Ethernet frames and collision timing

Past papers · CS 2014–2026 (23 papers): 4 questions, 6 marks

Untagged Ethernet fieldSizePurpose
Destination, source MAC6 bytes eachLink endpoints; each MAC address is 48 bits
Type/length2 bytesPayload protocol or length interpretation
Data and padding46–1500 bytesMeets minimum frame length
FCS4 bytesCRC error detection
Frame from destination through FCS64–1518 bytesPreamble and gap excluded
Preamble plus start delimiter8 bytesBefore the MAC frame
Interframe gap96 bit-timesIdle time, not a frame field

These are ordinary untagged frame sizes; use a question's explicit link model for variants. Ethernet MTU 1500 bytes limits its data field, so it includes the entire carried IP packet. An IP payload is smaller after its header is deducted.

4.4 Scheduled access and token circulation

Past papers · CS 2014–2026 (23 papers): 1 question, 2 marks

Time division reserves slots, frequency division reserves bands, polling grants turns, and a token grants the right to transmit. Controlled access avoids collisions among compliant stations but introduces reservation, polling or token overhead. An idle reserved slot is wasted unless reassigned.

Last-minute recall

  • ALOHA load includes retransmissions.
  • Pure and slotted vulnerable periods are two frame times and one frame time.
  • Exactly one transmitter succeeds in the elementary slot model.
  • Carrier sensing cannot remove propagation delay.
  • CSMA/CD needs the sender active for the worst collision round trip.
  • Classic Ethernet frame length excludes preamble and interframe gap.
  • Full-duplex switched Ethernet does not use collision detection or backoff.
  • Count only token holders inside the stated monitoring interval.

Revise offline: the whole Computer Networks handbook as one PDF

47 pages · 2.1 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections