IEEE 802.11 wireless LANs
Concise study notes on IEEE 802.11 Wireless LANs: architecture, MAC/PHY principles, framing, medium access (CSMA/CA, DCF/PCF, RTS/CTS), common amendments (a/b/g/n/ac/ax), security, power saving and timing calculations needed for exams.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Two or three sentences: where an engineer uses this.
Wireless LANs (IEEE 802.11) are the common way mobile devices connect to networks in offices, homes and public spaces. An engineer designs, configures or debugs Wi‑Fi access points, optimizes throughput and coverage, and ensures secure roaming—so understanding 802.11 MAC/PHY, timing, and frame structure is essential.
Key ideas
(Explain plainly; define each term before using it.)
IEEE 802.11 — a family of IEEE standards that specify wireless local area network (WLAN) PHY (physical layer) and MAC (medium access control) layer behavior. Use this name for the whole Wi‑Fi family.
WLAN (Wireless Local Area Network) — a local network using wireless communication (radio) instead of wired links.
PHY (physical layer) — the part of the standard that defines how bits are modulated onto radio waves (e.g., DSSS, OFDM) and channel bandwidths (20 MHz, 40 MHz, etc.).
MAC (medium access control) layer — the part that controls how multiple stations share the wireless medium (CSMA/CA, acknowledgements, frame formats, association).
Station (STA) — any device implementing 802.11 (client, laptop, phone).
Access Point (AP) — a station that provides an infrastructure BSS (see below) and typically connects to wired networks.
BSS (Basic Service Set) — one wireless network segment. Two types:
- Infrastructure BSS: an AP + associated STAs. The AP’s BSSID (basic service set identifier) is the MAC address used to identify that BSS.
- IBSS (Independent BSS) or ad‑hoc: STAs communicate directly without an AP.
SSID (Service Set Identifier) — a human‑readable name for a WLAN (network name); multiple BSS can use same SSID but unique BSSID identifies each AP.
Frame — a MAC data unit. Key control frames: Beacon, Probe Request/Response, Association Request/Response, Authentication, RTS, CTS, ACK.
CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) — MAC access method: stations sense channel idle, wait an interframe space, and perform a random backoff before transmitting to avoid collisions. Collisions are avoided (not detected) because radios cannot listen while transmitting.
DCF (Distributed Coordination Function) — the default contention based mode of 802.11 that implements CSMA/CA. It uses binary exponential backoff: each attempt picks a random slot in [0, CW]; CW doubles on each failed attempt up to CWmax and resets to CWmin after success; the backoff counter freezes while the medium is busy and resumes after DIFS.
PCF (Point Coordination Function) — an optional polling / centralized access mode (rare in practice). Define but do not rely on it for exams unless asked.
EDCA (Enhanced Distributed Channel Access, 802.11e QoS) — prioritized access categories (voice, video, best effort, background) with different AIFS, CWmin/CWmax, and TXOP limits; this QoS mechanism is widely used in modern Wi‑Fi.
RTS/CTS (Request to Send / Clear to Send) — optional handshake to reduce collisions due to hidden nodes: sender sends RTS, receiver replies with CTS, then sender transmits DATA; other stations overhearing RTS or CTS set their NAV (network allocation vector) and defer.
NAV (Network Allocation Vector) — a timer set by stations to indicate the medium will be busy until a certain time (derived from frame duration fields).
Interframe Spaces — fixed waiting times that give priority and define protocol ordering. Common ones:
- SIFS (Short Interframe Space) — shortest; used before ACK/CTS so these control frames have priority.
- DIFS (Distributed IFS) — used by DCF before starting backoff.
- PIFS / EIFS — other IFS values for PCF or error recovery.
Acknowledgement (ACK) — short control frame confirming a unicast DATA frame was received; if ACK not received, sender retransmits (after backoff).
Aggregation and Block ACK (802.11n+) — A-MPDU/A-MSDU aggregate multiple MSDUs/MPDUs to reduce overhead; Block ACK acknowledges many frames at once, improving throughput on high-rate links.
Hidden node problem — two STAs cannot hear each other but both can reach the AP; they may collide at the AP. RTS/CTS helps mitigate this.
Exposed node problem — a STA defers unnecessarily because it hears a neighbor’s transmission that would not actually interfere with its intended receiver.
Throughput vs PHY rate — PHY data rate is raw Mbps on the radio; effective MAC throughput is lower because of headers, interframe spaces, acknowledgements, backoff and possible retransmissions.
Channelization (2.4 GHz) — channels are 20 MHz wide but center frequencies are 5 MHz apart; in many regions only channels 1/6/11 are non-overlapping; co-channel and adjacent-channel interference severely reduce throughput.
802.11 amendments (short):
- 802.11b (DSSS, 2.4 GHz, up to 11 Mbps),
- 802.11a (OFDM, 5 GHz, up to 54 Mbps),
- 802.11g (OFDM, 2.4 GHz, up to 54 Mbps),
- 802.11n (MIMO, 2.4/5 GHz, 20/40 MHz channels),
- 802.11ac (5 GHz, wider channels 80/160 MHz, higher MCS),
- 802.11ax (Wi‑Fi 6) (OFDMA, OFDM improvements, better multiuser efficiency).
Security evolution: WEP (weak, should not be used), WPA (improved), WPA2 (strong; uses CCMP/AES), WPA3 (latest, SAE handshake). Understand major differences: encryption, handshake, and why WEP is insecure.
Power save mode (PS mode) — STA can sleep; AP buffers packets and signals delivery in Beacon via DTIM (Delivery Traffic Indication Message); STA wakes to receive.
Diagram instructions (draw these for exam answers):
- MAC frame format: draw a rectangle and subdivide into fields left‑to‑right: Frame Control (2 bytes), Duration/ID (2 B), Address1 (6 B), Address2 (6 B), Address3 (6 B), Sequence Control (2 B), Address4 (optional 6 B), Frame Body (variable, show an example like 230 B), FCS (4 B). Label each field with sizes in bytes.
- RTS/CTS timeline: horizontal time axis. Draw event sequence: STA A -> RTS, wait SIFS, AP (or STA B) -> CTS, wait SIFS, STA A -> DATA, wait SIFS, STA B -> ACK. Label SIFS intervals and show NAV set on other stations when RTS/CTS seen.
Formulas
Each formula on its own line with symbols, units and when it applies.
Average backoff time = (CW/2) × slotTime — where CW is current contention window (slots), slotTime in seconds (s). Applies during DCF before transmission.
DIFS = SIFS + 2 × slotTime — SIFS and slotTime in seconds. Applies for 802.11 DCF channel sensing timing. For QoS EDCA, use AIFS[AC] = SIFS + AIFSN[AC] × slotTime.
Throughput ≈ (Payload_bits) / (T_frame_total) — Payload_bits in bits, T_frame_total in seconds including all protocol overheads (preamble, headers, ACK, interframe spaces, backoff). Gives effective MAC/application throughput.
T_frame_total = T_backoff + T_preamble + T_MAC_hdr + T_payload + T_SIFS + T_ACK + T_DIFS — time components in seconds. Use appropriate rates to convert bytes to time.
Bytes_time = (Bytes × 8) / PHY_rate — Bytes in bytes, PHY_rate in bits/second, result in seconds. Use for converting MAC header or payload to transmission time. For OFDM PHYs, the actual duration is rounded up to an integer number of OFDM symbols (this simple conversion slightly underestimates time).
Friis (free space) path loss (not from 802.11 but often needed): Pr = Pt × (Gt × Gr × λ^2) / ((4πd)^2 × L) — Pr and Pt in watts, G gains dimensionless, λ wavelength in meters, d distance in meters, L system loss. (Include to relate signal power to SNR; verify constants before using in problems.)
Worked examples
(Show full numerical steps and assumptions; I state assumptions clearly — reviewer: check the numeric constants in the verify list.)
Example 1 — Compute MAC throughput for 802.11g (OFDM 54 Mbps) sending 1500‑byte payload, no retransmissions, no RTS/CTS. Assumptions: PHY rate = 54 Mbps, MAC header = 34 bytes (e.g., 24-byte MAC header + 2-byte QoS Control + 8-byte LLC/SNAP), FCS = 4 bytes, PLCP preamble+header = 20 μs, ACK frame length 14 bytes transmitted at basic rate 24 Mbps (assume 24 Mbps), SIFS = 16 μs, DIFS = 34 μs, average backoff = (CWmin/2)×slot = (15/2)×9 μs = 67.5 μs (CWmin=15 for OFDM).
- Payload_bits = 1500 × 8 = 12000 bits.
- MAC overhead bytes = MAC header 34 + FCS 4 = 38 bytes = 304 bits.
- DATA transmission time = PLCP_preamble + (MAC_hdr+Payload+FCS) / PHY_rate = 20 μs + ( (38 + 1500) × 8 ) / 54e6 s
- (38+1500)=1538 bytes → 1538×8=12304 bits
- Data time = 20e-6 + 12304 / 54e6 = 20e-6 + 0.00022785 s = 247.85 μs
- ACK time = PLCP_preamble_ack + ACK_bits / ACK_rate. ACK_bits = 14 × 8 = 112 bits. Assume ACK PLCP = 20 μs and ACK_rate=24 Mbps.
- ACK time = 20e-6 + 112 / 24e6 = 20e-6 + 4.6667e-6 = 24.6667 μs
- Total cycle time = Avg_backoff + DATA_time + SIFS + ACK_time + DIFS
- Avg_backoff = 67.5 μs, SIFS = 16 μs, DIFS = 34 μs
- Total = 67.5 + 247.85 + 16 + 24.6667 + 34 = 390.0167 μs
- Throughput = Payload_bits / Total_time = 12000 bits / 390.0167e-6 s = 30.77 Mbps
Final answer: ≈ 30.8 Mbps effective MAC throughput under the stated assumptions.
(Reviewer: verify PLCP preamble length, MAC header size, ACK size and ACK rate assumptions listed in verify.)
Example 2 — RTS/CTS timing decision for hidden node. Given: DATA frame duration = 1.2 ms, RTS Duration field reserves SIFS + CTS + SIFS + DATA + SIFS + ACK (i.e., three SIFS plus CTS, DATA, and ACK durations). Show that other nodes hearing RTS/CTS defer for NAV.
Describe the trace: Sender A sends RTS (time t0), Receiver B replies CTS at t0 + SIFS + RTS_time, A sends DATA at t0 + SIFS + RTS_time + SIFS + CTS_time, B ACKs after SIFS. Stations hearing RTS or CTS set NAV to the duration field and defer; this prevents hidden node C (who hears RTS) from starting a transmitter that would collide at B.
Worked answer is descriptive in exams; draw timeline with durations and label NAV arrows. (No numeric calculation required unless values given.)
Common mistakes
- Forgetting to include ACK and SIFS when computing total frame time.
- Using RTS/CTS by default in throughput calc without accounting the extra RTS/CTS overhead when RTS/CTS is actually disabled.
- Calling CSMA/CA collision detection (like Ethernet CSMA/CD) — 802.11 cannot detect collisions while transmitting; it uses avoidance and ACK-based recovery.
- Saying WEP is safe; it is insecure and deprecated.
For your exam
Kinds of questions you will see and what full marks answers include:
- Definitions and short notes: define DCF, CSMA/CA, RTS/CTS, BSS/IBSS, SIFS/DIFS, NAV. Include concise definitions and typical values for timing constants (specify which amendment e.g., 802.11a/g vs 802.11b).
- Derivations: show how DIFS = SIFS + 2×slotTime; derive average backoff = CW/2 × slotTime; show throughput formula and substitute numbers with units.
- Numericals: compute effective throughput given PHY rate and payload, include every time term (preamble, MAC header, payload, ACK, SIFS, DIFS, average backoff), carry units and show final numeric answer.
- Diagrams: draw MAC frame format with byte sizes and RTS/CTS timeline with SIFS intervals and NAV arrows.
- Short essay: explain hidden/exposed node problems and how RTS/CTS mitigates hidden node.
- Security: compare WEP/WPA/WPA2/WPA3 in 3–4 points (encryption, handshake). Mention which should be used today (WPA3/WPA2 with strong AES and proper passphrases).
Full‑marks answer always states assumptions (rates, header sizes, preamble length, slot time) before numerical calculation.
Quick check
Three short questions; answers in one final line.
- What is the purpose of the NAV field in 802.11?
- Give the relation for average backoff time in DCF.
- Name two differences between 802.11a and 802.11b.
Answers: 1) NAV indicates how long the medium will be busy (reservation) so stations defer access; 2) Average backoff = (CW/2) × slotTime where CW is the current contention window in slots; 3) 802.11a uses OFDM in 5 GHz up to 54 Mbps, 802.11b uses DSSS in 2.4 GHz up to 11 Mbps (different modulation, frequency band and max PHY rate).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?