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 , a station distance away can first sense A at , where is propagation speed. Compare this instant with the other station's proposed start, not with A's start alone.
| Persistence rule | On finding the channel busy | On finding it idle |
|---|---|---|
| 1-persistent | Keep sensing | Transmit immediately |
| Nonpersistent | Wait a random interval, then sense | Transmit |
| -persistent, slotted | Continue as specified by the slot model | Transmit with probability ; defer a slot with |
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 field | Size | Purpose |
|---|---|---|
| Destination, source MAC | 6 bytes each | Link endpoints; each MAC address is 48 bits |
| Type/length | 2 bytes | Payload protocol or length interpretation |
| Data and padding | 46–1500 bytes | Meets minimum frame length |
| FCS | 4 bytes | CRC error detection |
| Frame from destination through FCS | 64–1518 bytes | Preamble and gap excluded |
| Preamble plus start delimiter | 8 bytes | Before the MAC frame |
| Interframe gap | 96 bit-times | Idle 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.