RTUComputer ScienceYr 2022 · Sem 82022

Q21Mobile Computing

Question

10 marks

Explain the MAC layer of IEEE 802.11. How does it handle collision avoidance?

Answer

A massive architectural breakdown of the IEEE 802.11 MAC Layer. Violently details the mathematical execution of DCF (CSMA/CA) and PCF, exposing how strict Inter-Frame Spaces (DIFS, SIFS) and the Exponential Backoff algorithm prevent catastrophic radio collisions.

The IEEE 802.11 (Wi-Fi) MAC layer faces a catastrophic physical problem: Radios are Half-Duplex. They mathematically cannot transmit and listen at the exact same time. Therefore, Collision Detection (CSMA/CD used in wired Ethernet) is physically impossible. Wi-Fi must execute Collision Avoidance (CSMA/CA). The architecture provides two strict mathematical coordination functions: DCF and PCF.

DCF is the absolute mandatory mechanism based on CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance).

The Mathematical Execution of CSMA/CA

  • Carrier Sensing: Before Node A transmits, it mathematically measures the RF energy on the channel (Clear Channel Assessment).
  • DIFS (DCF Inter-Frame Space): If the channel is idle, Node A CANNOT transmit immediately. It must violently wait for a strict mathematical duration called DIFS. If the channel remains idle for the entire DIFS, it can proceed.
  • The Collision (Exponential Backoff): If the channel is busy, Node A violently aborts. It enters a Backoff phase. It mathematically generates a random integer between and the Contention Window (). It multiplies this integer by the Slot Time. It then counts down this timer. It only transmits when the timer hits exactly zero. If another collision occurs, the is violently doubled (Binary Exponential Backoff) to rapidly defuse network congestion.

To solve the catastrophic Hidden Terminal Problem (where two nodes out of range of each other simultaneously blast the Access Point), 802.11 employs an optional RTS/CTS mechanism.

  • Node A sends a tiny Request To Send (RTS) packet to the Access Point (AP).
  • The AP blasts a Clear To Send (CTS) packet to the entire network.
  • Every single hidden node mathematically hears the CTS, reads the embedded "Duration" integer, and violently freezes their own transmissions (setting their Network Allocation Vector - NAV) for that exact duration, guaranteeing Node A a flawless, collision-free transmission window.

An optional, completely dictatorial architecture. The Access Point acts as an absolute Point Coordinator. It mathematically polls every single node, strictly granting them permission to transmit. This completely annihilates collisions and provides rigid Quality of Service (QoS) for real-time video/voice, but consumes massive bandwidth overhead.

Back to Paper