Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
The 802.11 MAC Sublayer Protocol
IEEE 802.11 standard, popularly known as WiFi, lays down the architecture and specifications of wireless LANs (WLANs). WiFi or WLAN uses high frequency radio waves instead of cables for connecting the devices in LAN. Users connected by WLANs can move around within the area of network coverage.
The 802.11 MAC sublayer provides an abstraction of the physical layer to the logical link control sublayer and upper layers of the OSI network. It is responsible for encapsulating frames and describing frame formats, managing channel access, and implementing collision avoidance mechanisms specific to wireless communication.
MAC Sublayer Frame Format
The main fields of a wireless LAN frame as defined by IEEE 802.11 are:
-
Frame Control − A 2-byte starting field composed of 11 subfields containing control information such as frame type, protocol version, and power management flags.
-
Duration − A 2-byte field specifying the time period for which the frame and its acknowledgement occupy the channel.
-
Address Fields − Three 6-byte address fields containing MAC addresses of source, immediate destination, and final endpoint respectively.
-
Sequence − A 2-byte field storing frame sequence numbers for duplicate detection and proper ordering.
-
Data − Variable-sized field carrying payload from upper layers with a maximum size of 2312 bytes.
-
Frame Check Sequence − A 4-byte field containing CRC for error detection.
Collision Avoidance Mechanism
Unlike wired networks, wireless systems cannot use collision detection due to the hidden node problem and signal attenuation. Instead, 802.11 uses Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA).
The CSMA/CA process works as follows:
-
When a frame is ready, the transmitting station performs carrier sensing to check if the channel is idle or busy.
-
If the channel is busy, the station waits until it becomes idle.
-
If the channel is idle, the station waits for a Distributed Inter-Frame Space (DIFS) period and then sends the frame.
-
After transmission, the station sets a timer and waits for an acknowledgement (ACK) from the receiver.
-
If ACK is received before timer expiry, transmission is considered successful. Otherwise, the station enters a random backoff period and retransmits.
Coordination Functions
IEEE 802.11 MAC sublayer uses two coordination functions for managing channel access:
| Function | Type | Access Method | Deployment |
|---|---|---|---|
| Distributed Coordination Function (DCF) | Mandatory | Contention-based using CSMA/CA | Infrastructure BSS and Independent BSS |
| Point Coordination Function (PCF) | Optional | Centralized, contention-free polling | Infrastructure BSS only |
DCF provides distributed access where all stations compete equally for channel access, while PCF allows a Point Coordinator (typically an Access Point) to provide deterministic, time-bounded services by polling stations in a round-robin manner.
Conclusion
The 802.11 MAC sublayer manages frame formatting, collision avoidance through CSMA/CA, and channel access coordination. It provides the essential wireless-specific protocols needed for reliable communication in WiFi networks, addressing unique challenges like hidden nodes and the inability to detect collisions in wireless environments.
