Multiple Access Protocols: Pure ALOHA, Slotted ALOHA, CSMA/CD, and CSMA/CA
1. Overview of Contention-Based Multiple Access
When multiple devices share a broadcast channel, protocols are required to mediate access and resolve contention. The four foundational random access protocols are:
MULTIPLE ACCESS PROTOCOLS
|
+--------------------+-----------+-----------+--------------------+
| | | |
Pure ALOHA Slotted ALOHA CSMA/CD CSMA/CA
(Asynchronous) (Slot-Synchronized) (Wired Ethernet) (Wireless Wi-Fi)
2. Pure ALOHA
- Principle: A station transmits immediately whenever it has a frame ready ("talk before listening").
- Vulnerable Time: Two full frame durations:
- Throughput Formula: Poisson arrival distribution with average rate :
- Maximum Throughput: Achieved at traffic load :
t0 - Tfr t0 t0 + Tfr
Frame A: | [======= Tfr =====]
Vulnerable Zone: |<----------------- 2 * Tfr ----------------->|
3. Slotted ALOHA
- Principle: Time is sliced into discrete synchronous slots of duration . Stations can only begin transmission at the start of a time slot.
- Vulnerable Time: Exactly one frame duration:
- Throughput Formula:
- Maximum Throughput: Achieved at traffic load :
(Enforcing slot synchronization exactly doubles throughput compared to Pure ALOHA!)
4. CSMA/CD (Carrier Sense Multiple Access with Collision Detection)
Applied in wired broadcast networks (IEEE 802.3 Ethernet):
- Carrier Sensing ("Listen Before Talk"):
- Station senses line before transmitting. Persistence strategies:
- 1-Persistent: Transmit immediately when idle; if busy, listen continuously.
- Non-Persistent: Wait random backoff if busy.
- p-Persistent: Transmit with probability when idle.
- Station senses line before transmitting. Persistence strategies:
- Collision Detection ("Listen While Talking"):
- The station monitors line voltage while transmitting. If voltage spikes (collision), it aborts transmission immediately and broadcasts a Jam Signal (32–48 bits).
- Minimum Frame Size Constraint:
- The sender must remain transmitting long enough to detect a collision from the furthest cable segment:
- In classic Ethernet, .
- Truncated Binary Exponential Backoff (BEB):
- Wait , where ( is collision attempt count; aborts after 16 failed attempts).
5. CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance)
Applied in wireless networks (IEEE 802.11 Wi-Fi) where physical collision detection is impossible due to transmitter power overpower and hidden nodes:
- Interframe Spaces (IFS):
- High-priority frames wait SIFS (Short IFS).
- Normal data frames wait DIFS (DCF IFS).
- Contention Window & Random Backoff:
- After channel remains idle for DIFS, station counts down a random backoff timer . The timer freezes whenever the medium becomes busy and resumes when free.
- Virtual Carrier Sensing (RTS/CTS & NAV):
- Sender transmits RTS (Request to Send) with declared duration.
- Access Point replies with CTS (Clear to Send).
- Hidden nodes overhear the CTS and set an internal NAV (Network Allocation Vector) timer, muting themselves and eliminating the Hidden Terminal Problem!
- Explicit Acknowledgments (ACK): Every unicast frame requires an immediate link-layer ACK.
6. Comprehensive Multi-Protocol Comparison Table
| Feature | Pure ALOHA | Slotted ALOHA | CSMA/CD | CSMA/CA |
|---|---|---|---|---|
| Physical Medium | Wireless / Radio | Wireless / Radio | Wired Copper / Coax | Wireless RF (Wi-Fi) |
| Listening Principle | None (blind send) | None (slot sync) | Listen before & while talk | Listen before & avoid |
| Vulnerable Time | (round-trip) | DIFS + Contention window | ||
| Maximum Throughput | () | () | High () | Moderate () |
| Collision Action | Retransmit after backoff | Retransmit next slot | Send Jam signal & abort | Exponential backoff CW |
| Frame Constraint | None | Fixed slot duration | Minimum frame size () | Fragment size / RTS threshold |
| Link-Layer ACK | Optional | Optional | None (CD confirms delivery) | Mandatory ACK |
| Primary Standard | Historical UHF | Satellite links | IEEE 802.3 Ethernet | IEEE 802.11 Wi-Fi |
7. Key Exam Questions & Takeaways
- Why is the vulnerable time of Slotted ALOHA half that of Pure ALOHA?
- By constraining transmissions to discrete slot boundaries, partial frame overlaps are eliminated entirely. A frame can only collide with other frames generated during the preceding single slot ( instead of ).
- State the mathematical condition for collision detection in CSMA/CD.
- , meaning transmission duration must be at least twice the propagation delay across the maximum network span.
- How does the RTS/CTS handshake solve the Hidden Terminal Problem in CSMA/CA?
- The CTS frame sent by the receiver reaches all hidden nodes within its coverage area. The hidden nodes read the duration field and set their NAV timers to silence their own transmitters during the data exchange.