Data Communication Components · Computer Networks

Wireless LANs (WLANs)

Watch lectures
SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 1★ High PriorityWireless LANs (WLANs)IT Sem 6 · Code 100602 · IEEE 802.11, CSMA/CA, RTS/CTSMNEMONICWireless cannot detect collisions, so it avoids them: CSMA/CA with RTS, CTS, NAV and DCF.SIFS < PIFS < DIFS < EIFS. BSS = one AP cell, ESS = BSSs joined by a DS.Core BreakdownBSS / ESSBSS: stations around one AP (infrastructure), or ad-hoc IBSS with no AP.ESS: several BSSs joined by a Distribution System; clients roam between APs.Why not CDOwn transmit power drowns any colliding signal at the antenna: no detection.Not every station hears every other: the hidden terminal problem.Hidden nodeA and C both reach the AP but not each other; both send, collision at the AP.Exposed node: C hears B and needlessly waits, wasting throughput.CSMA/CADCF: wait DIFS plus random backoff, then send; every frame gets an ACK.SIFS gives priority to CTS and ACK; DIFS is the longer wait before new data.RTS / CTSSender sends RTS with a duration; AP answers CTS; then data and ACK follow.Stations that hear RTS or CTS set their NAV timer (virtual carrier sensing).FrameFC 2, Duration 2, Addr1-3 6 B each, SeqCtl 2, Addr4 6, Data 0-2312, FCS 4.Four addresses depend on To DS and From DS: DA, SA, BSSID, RA / TA.Diagram: RTS/CTS and Hidden NodeSender AAPOthersNAVDIFS + backoffRTSCTSCTS heardDATAACKHidden terminal:AAPCA and C cannot hear each otherBoth send: collision at the APRTS/CTS and NAV fix it⚠️ Exam Traps & Viva Favorites① Why is CSMA/CD unsuitable?The transmitter cannot hear a collision over itsown strong signal, and hidden stations cannothear each other at all.② What is NAV?Network Allocation Vector: a timer for virtualcarrier sensing. A station must stay silent whileits NAV is non-zero.③ How does RTS/CTS help?The AP broadcasts CTS, so hidden stations in itsrange set their NAV and stay silent for thewhole data plus ACK exchange.Tip: SIFS < PIFS < DIFS < EIFSMaster Revision Table(learn it row by row!)StandardYearBandMax rateTechnique802.11b19992.4 GHz11 MbpsDSSS / HR-DSSS, 22 MHz channel802.11a19995 GHz54 MbpsOFDM, 20 MHz channel802.11g20032.4 GHz54 MbpsOFDM, 20 MHz channel802.11n (Wi-Fi 4)20092.4 / 5 GHz600 MbpsMIMO 4x4, OFDM 20/40 MHz802.11ac (Wi-Fi 5)20135 GHz6.9 GbpsMU-MIMO, 256-QAM, 80/160 MHz802.11ax (Wi-Fi 6/6E)20212.4 / 5 / 6 GHz9.6 GbpsOFDMA, 1024-QAM, Target Wake TimeQUICK FACTSMobility: no-transition, BSS-transition (same ESS), ESS-transition (may need new IP)Handshake order: DIFS + backoff, RTS, SIFS, CTS, SIFS, DATA, SIFS, ACKWi-Fi 6 adds OFDMA and 1024-QAM · 802.11 has 4 address fields vs Ethernet 2VERIFIED★ Golden rule: wireless avoids collisions,it cannot detect them.

Wireless LANs (IEEE 802.11 / Wi-Fi)


1. IEEE 802.11 Architecture

The IEEE 802.11 standard defines the physical layer and MAC sublayer for Wireless Local Area Networks (WLANs), commercially branded as Wi-Fi.

MermaidDiagram
Rendering diagram…

Core Architectural Building Blocks:

  1. BSS (Basic Service Set): The fundamental building block of a WLAN:
    • Infrastructure BSS: Stations communicate only through a centralized Access Point (AP) connected to a wired backbone.
    • Ad-hoc BSS (Independent BSS - IBSS): Peer-to-peer network where wireless stations communicate directly with one another without an AP.
  2. ESS (Extended Service Set):
    • Created by interconnecting two or more infrastructure BSSs through a Distribution System (DS) (typically wired switched Ethernet).
    • Allows mobile wireless clients to roam seamlessly between APs without dropping active TCP connections.
  3. Station Types (Mobility):
    • No-transition mobility: Stationary or operates only within a single BSS.
    • BSS-transition mobility: Moves from one BSS to another within the same ESS.
    • ESS-transition mobility: Moves from one ESS to another (may require IP address re-assignment).

2. Why CSMA/CD Fails in Wireless: Hidden & Exposed Stations

Wired Ethernet uses CSMA/CD (Collision Detection), but wireless networks cannot use CD for two fundamental reasons:

  1. Dynamic Range / Signal Attenuation: A transmitting radio's signal is thousands of times stronger than incoming received signals. The transmitter's own signal drowns out any colliding signal at its antenna.
  2. Hidden Terminal Problem: Not all stations can hear each other.
MermaidDiagram
Rendering diagram…
  • Hidden Station Problem: Station A and Station C are out of radio range of each other, but both are in range of AP B. Both sense the channel idle and transmit simultaneously, resulting in a destructive collision at AP B.
  • Exposed Station Problem: Station C senses transmission between A and B and unnecessary defers transmitting to Station D, unnecessarily wasting channel throughput.

3. The MAC Solution: CSMA/CA and RTS/CTS

To prevent collisions, 802.11 implements CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) using Distributed Coordination Function (DCF):

MermaidDiagram
Rendering diagram…

The RTS/CTS Handshake Protocol:

  1. RTS (Request to Send): Sender sends a short RTS control frame containing the NAV (Network Allocation Vector), declaring the duration needed to transmit the data frame and receive the ACK.
  2. CTS (Clear to Send): AP broadcasts a CTS frame granting permission and reiterating the NAV duration.
  3. NAV (Virtual Carrier Sensing): All hidden stations hearing the CTS set an internal timer (NAV) and refrain from transmitting until the transaction completes, completely eliminating the hidden terminal collision.
  4. SIFS / DIFS (Interframe Spaces):
    • SIFS (Short Interframe Space): Shortest waiting period, reserved for immediate priority frames (CTS, ACK).
    • DIFS (DCF Interframe Space): Longer waiting period required before a station can attempt to send an RTS or initial data frame.
SIFS<PIFS<DIFS<EIFS\text{SIFS} < \text{PIFS} < \text{DIFS} < \text{EIFS}

4. IEEE 802.11 Standards Comparison

Standard Release Frequency Band Max Data Rate Modulation / Channel Bandwidth
802.11b 1999 2.4 GHz2.4\text{ GHz} 11 Mbps11\text{ Mbps} DSSS / HR-DSSS (22 MHz22\text{ MHz})
802.11a 1999 5 GHz5\text{ GHz} 54 Mbps54\text{ Mbps} OFDM (20 MHz20\text{ MHz})
802.11g 2003 2.4 GHz2.4\text{ GHz} 54 Mbps54\text{ Mbps} OFDM (20 MHz20\text{ MHz})
802.11n (Wi-Fi 4) 2009 2.4 / 5 GHz2.4\text{ / }5\text{ GHz} 600 Mbps600\text{ Mbps} MIMO (4×44\times4), OFDM (20/40 MHz20/40\text{ MHz})
802.11ac (Wi-Fi 5) 2013 5 GHz5\text{ GHz} 6.9 Gbps6.9\text{ Gbps} MU-MIMO, 256-QAM (80/160 MHz80/160\text{ MHz})
802.11ax (Wi-Fi 6/6E) 2021 2.4 / 5 / 6 GHz2.4\text{ / }5\text{ / }6\text{ GHz} 9.6 Gbps9.6\text{ Gbps} OFDMA, 1024-QAM, Target Wake Time

5. IEEE 802.11 Frame Format

SVGVector Architecture Diagram (SVG)
FC Duration Addr 1 Addr 2 Addr 3 SeqCtl Addr 4 Data Payload FCS 2 B 2 B 6 B 6 B 6 B 2 B 6 B 0-2312 bytes 4 B
  • Frame Control (FC - 2 bytes): Contains Protocol version, Type (Management, Control, Data), Subtype, To DS, From DS, Retry, Power Management, and WEP/security flags.
  • Duration / ID (2 bytes): Encodes the NAV duration in microseconds.
  • Four Address Fields (6 bytes each): Depending on the values of To DS and From DS flags:
    • Destination Address (DA).
    • Source Address (SA).
    • BSSID (MAC of the Access Point).
    • Receiver Address (RA) / Transmitter Address (TA) for wireless distribution systems (mesh/bridge).

Frequently Asked Questions

QWhy is CSMA/CD unsuitable for wireless networks?

Transmitters cannot reliably detect collisions while transmitting because local transmit power overwhelms faint incoming collisions from distant stations. Furthermore, hidden stations cannot hear each other.

QExplain the Hidden Terminal Problem and how RTS/CTS resolves it.

Two stations outside each other's radio coverage transmit to the same central access point at the same time, causing collisions. The RTS/CTS exchange reserves the channel: the AP sends a CTS heard by all stations in its range, setting their NAV timers to silence them.

QWhat is the Network Allocation Vector (NAV)?

A timer maintained in software by wireless stations representing virtual carrier sensing. A station must not transmit while its NAV is non-zero.

QOrder the 802.11 Interframe Spaces by increasing duration.

SIFS<PIFS<DIFS<EIFS\text{SIFS} < \text{PIFS} < \text{DIFS} < \text{EIFS}.

QWhat is the difference between a BSS and an ESS?

A BSS is one cell: stations around a single access point (or an ad-hoc IBSS with no AP). An ESS links two or more infrastructure BSSs through a Distribution System, allowing roaming between APs.

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.

← All Computer Networks modules