Back to Course Home

Chapter 7: Wireless and Mobile Networks

Kurose & Ross, Computer Networking: A Top-Down Approach, 9th edition (2025) – Full lecture coverage

Learning Objectives

  • Characterize wireless links: attenuation, interference, multipath, SNR vs BER.
  • Analyze the hidden terminal and exposed terminal problems.
  • Explain 802.11 (BSS, ESS, CSMA/CA, RTS/CTS, frame format, rate adaptation).
  • Recognize Personal Area Networks (Bluetooth, Zigbee).
  • Describe 4G LTE and 5G NR architectures (eNodeB, MME, SGW, PGW, gNB, AMF, SMF, UPF).
  • Explain mobility management: home/foreign networks, Mobile IP, indirect vs direct routing, 4G handoff.
  • Understand the impact of wireless on TCP and higher-layer protocols.
  • Recognize wireless security (WEP, WPA, WPA2, WPA3).

Chapter Roadmap

Β§7.1 Intro Β§7.2 Link Char. Β§7.3 WiFi Β§7.3.4 PANs Β§7.4 Cellular Β§7.5 Mobility Β§7.6 Security
Prerequisites: Solid understanding of Link Layer (Chapter 6): CSMA/CD, MAC addresses, Ethernet, and the Network Layer (Chapters 4-5): IP addressing and routing.

1. Introduction: Wireless and Mobility

Wireless networks have become the dominant way users connect to the Internet. Two distinct, yet often intertwined, challenges must be addressed:

Wireless (Communication over air)

  • Attenuation: signal strength drops with distance (path loss).
  • Interference: other sources (microwaves, Bluetooth, neighboring APs) operate on the same band.
  • Multipath: reflected signals arrive slightly delayed, causing fading.
  • Bit errors are much more common than on wired links.

Mobility (Users moving)

  • Devices change their point of attachment β€” from one AP to another, or from WiFi to 4G.
  • Must preserve ongoing sessions (voice calls, video streams).
  • Requires handoff (handover) and location management.
  • Requires a protocol layer that hides mobility from upper layers (Mobile IP, GTP).
Key distinction: Wireless refers to the physical layer β€” communicating over a radio link. Mobility refers to a higher-layer concern β€” handling the user's movement across networks. A device can be wireless but not mobile (e.g., a fixed WiFi camera), and it can be mobile but not wireless (e.g., a laptop plugged into a different Ethernet port each day).

Path Loss, Interference, Multipath Fading

Phenomenon Cause Impact
Path loss (attenuation) Signal spreads out; energy absorbed by obstacles Signal strength decreases with distance β€” limits coverage
Interference Other transmitters on same frequency (Bluetooth, microwaves, neighboring APs) Increases noise floor β€” lowers effective SNR
Multipath fading Reflections from walls, ground, objects arrive slightly delayed Constructive/destructive cancellation; signal quality varies

SNR vs BER

SNR (Signal-to-Noise Ratio) measures the received signal power relative to the noise power. It is expressed in decibels (dB).

BER (Bit Error Rate) is the probability that a received bit is in error.

As SNR increases, BER decreases β€” the two are inversely related, but the exact relationship depends on the modulation scheme. Higher modulation (e.g., 64-QAM) packs more bits per symbol but requires higher SNR to maintain the same BER. This is the basis of rate adaptation in 802.11: the sender chooses a higher rate when the channel is good, and a lower rate when the channel is poor.

Hidden Terminal and Exposed Terminal Problems

Problem Cause Impact
Hidden terminal A and C can each hear the AP B, but cannot hear each other. Both transmit to B simultaneously. Collision at the AP; neither sender detects it (they are half-duplex and cannot listen while transmitting).
Exposed terminal A is transmitting to B. C wants to send to D (independent link, does not interfere) but hears A and defers. Wasted capacity (unnecessary deferral).
Hidden Terminal: A and C both transmit to B, but cannot hear each other
A B (AP) C data to B data to B A and C cannot hear each other β†’ collision at B (A-C link does not exist)

3. IEEE 802.11 Wireless LANs (WiFi)

3.1 Architecture

802.11 ESS: Multiple BSSs linked by a Distribution System
BSS 1 AP1 H1 H2 H3 BSS 2 AP2 H4 H5 H6 Distribution System (DS = Ethernet) Connects AP1 β†’ AP2 β†’ Internet via a router

3.2 Scanning: How a Station Finds an AP

Passive Scanning

  1. AP periodically broadcasts beacon frames (typically every 100 ms).
  2. Station listens on each channel; when it hears a beacon, it learns SSID, capabilities, and BSSID.
  3. Station sends association request; AP replies with association response.

Pros: Simplest. Cons: Slow; the station may miss beacons on channels it isn't listening to.

Active Scanning

  1. Station broadcasts probe request frames on each channel.
  2. Any AP in range replies with a probe response.
  3. Station picks the best AP (typically strongest signal), sends association request.

Pros: Faster, discovers all APs. Cons: Generates more traffic.

3.3 CSMA/CA β€” Why Not CSMA/CD?

Wireless cannot detect collisions during transmission because the radio is half-duplex β€” while transmitting, the station cannot listen. Also, collisions at the receiver (hidden terminal) are invisible to the sender. Therefore 802.11 uses CSMA/CA: Collision Avoidance, not Detection. Rather than detect collisions after they happen, we try to prevent them in the first place.

CSMA/CA Algorithm (DCF β€” Distributed Coordination Function)

  1. Station with a frame to send senses the channel.
  2. If the channel is idle for DIFS (Distributed Inter-Frame Space β‰ˆ 34 ΞΌs), transmit immediately.
  3. If busy, wait for idle, then start a random backoff counter (chosen from [0, CW]) that counts down while the channel is idle.
  4. If the channel becomes busy during backoff, freeze the counter; resume when idle for DIFS again.
  5. When counter reaches 0, transmit.
  6. Receiver sends ACK after SIFS (Short IFS β‰ˆ 16 ΞΌs).
  7. If sender does not receive ACK within a timeout, back off again and retransmit.
Why two different IFS values? SIFS (short) is used for control frames (ACK, CTS) β€” they get priority. DIFS (long) is used for data frames β€” ensures ACKs always beat new data. If both used the same IFS, a new frame could collide with the ACK.
CSMA/CA Timing: DIFS, backoff, SIFS, ACK
Sender Other busy DIFS backoff DATA SIFS ACK busy DIFS defer ← others defer until ACK received

3.4 RTS/CTS β€” Solving the Hidden Terminal Problem

RTS/CTS is an optional mechanism (802.11 supports it but many deployments disable it to reduce overhead). It works as follows:

  1. Sender β†’ AP: RTS (Request to Send). RTS includes a duration field.
  2. AP β†’ All: CTS (Clear to Send), broadcast. All stations within range hear the CTS and read its duration field.
  3. Sender β†’ AP: DATA, transmitted.
  4. AP β†’ Sender: ACK, closing the exchange.

Any station that hears the CTS (including hidden terminals) sets its NAV (Network Allocation Vector) to the duration value and defers all transmissions for that period. Since the CTS comes from the AP and is heard by hidden terminals, they are silenced for the entire exchange.

RTS/CTS overhead is significant. Each RTS and CTS is a full frame. For small data frames, this overhead is not worth it β€” so most APs have a RTS threshold (e.g., 500 bytes): RTS/CTS is only used for large frames or in high-collision scenarios.

3.5 802.11 MAC Frame Format

| Frame Control (2B) | Duration (2B) | Addr1 (6B) | Addr2 (6B) | Addr3 (6B) | Seq (2B) | [Addr4 (6B)] | Payload | FCS (4B) |

3.6 Rate Adaptation

802.11 supports multiple physical-layer data rates (e.g., in 802.11ac: 65, 130, 260, 390, 520, ..., 6933 Mbps). The sender chooses a rate based on the current channel conditions:

3.7 Standard Evolution

Standard Year Band Max Rate Key Feature
802.11b 1999 2.4 GHz 11 Mbps First mass-market WiFi
802.11a 1999 5 GHz 54 Mbps Higher rate, less crowded band
802.11g 2003 2.4 GHz 54 Mbps Higher rate on 2.4 GHz
802.11n (WiFi 4) 2009 2.4 / 5 GHz 600 Mbps MIMO, channel bonding
802.11ac (WiFi 5) 2013 5 GHz 3.5 Gbps MU-MIMO downlink, 80/160 MHz
802.11ax (WiFi 6/6E) 2019-21 2.4 / 5 / 6 GHz 9.6 Gbps OFDMA, uplink MU-MIMO, TWT (target wake time)
802.11be (WiFi 7) 2024+ 2.4 / 5 / 6 GHz ~46 Gbps Multi-link operation (MLO), 320 MHz, 16x16 MU-MIMO

4. Personal Area Networks (PANs)

A PAN interconnects devices within a person's workspace (a few meters). Three main standards:

Bluetooth (IEEE 802.15.1)

  • Ad-hoc piconet: 1 master + up to 7 active slaves.
  • Frequency-hopping spread spectrum in 2.4 GHz band (79 channels, 1600 hops/s).
  • Classic Bluetooth: ~1-3 Mbps. BLE (Bluetooth Low Energy): ~1 Mbps, designed for IoT.
  • Typical range: 10 m (Class 2) or 100 m (Class 1).
  • Use cases: headsets, keyboards, smartwatches, medical devices.

Zigbee (IEEE 802.15.4)

  • Designed for low-power, low-rate IoT.
  • Supports star, tree, and mesh topologies.
  • Data rate: 250 kbps (2.4 GHz), 40 kbps (915 MHz), 20 kbps (868 MHz).
  • Typical range: 10-100 m per hop, but mesh routing extends it.
  • Use cases: smart home (Zigbee bulbs, sensors, thermostats), industrial IoT.
NFC (Near Field Communication) is a related standard (not covered by Kurose-Ross) for contactless payments and pairing β€” operates at 13.56 MHz, range < 10 cm. It's a short-range subset of RFID.

5. Cellular Networks: 4G LTE and 5G NR

5.1 Cellular Architecture: The Big Picture

A cellular network divides geography into cells, each served by a base station. The same frequency band is reused in non-adjacent cells to increase overall capacity.

5.2 4G LTE Architecture (E-UTRAN / EPC)

Component Full Name Role
UE User Equipment The mobile device (phone, dongle, tablet).
eNodeB (eNB) Evolved Node B Base station. Manages radio resources in its cell: scheduling, handover initiation, encryption.
MME Mobility Management Entity Handles authentication, security key distribution, and bearer (session) setup. Handles paging and tracking of idle UEs.
SGW Serving Gateway Local anchor for user data. Forwards packets from UE to PGW (and vice versa). Acts as mobility anchor for inter-eNodeB handover.
PGW Packet Data Network Gateway Connects the EPC to the Internet. Assigns IP addresses to UEs. Enforces QoS policy.
HSS Home Subscriber Server Central database β€” subscriber profiles, authentication credentials, current MME affiliation.
4G LTE: E-UTRAN (radio) + EPC (core)
E-UTRAN (Radio) UE eNB radio EPC (Evolved Packet Core) MME SGW PGW HSS β†’ Internet S1-MME S6a

5.3 5G NR (New Radio)

5G introduces a new radio interface (NR) and a redesigned, more flexible core (5GC). Key features:

5.4 5G Core Components (SBA)

Component Role
gNB 5G base station. The 5G equivalent of eNodeB.
AMF (Access and Mobility Function) Equivalent to 4G's MME. Handles registration, mobility, authentication.
SMF (Session Management Function) Establishes and manages sessions (PDU sessions). Assigns IP addresses (via UPF).
UPF (User Plane Function) Forwards user data. Combines roles of SGW and PGW from 4G. Can be deployed at the edge (MEC).
AUSF, UDM, PCF, NRF Authentication, unified data management, policy control, service registry.

6. Mobility Management

6.1 Terminology

6.2 Mobile IP: Indirect Routing

  1. The mobile registers with the foreign agent (or obtains a COA via DHCP).
  2. The foreign agent notifies the home agent of the COA (registration).
  3. The correspondent sends packets to the mobile's permanent IP address (in the home network).
  4. The home agent intercepts these packets and tunnels them to the COA.
  5. The foreign agent decapsulates and delivers to the mobile.
Problem β€” triangle routing: if the correspondent is geographically close to the mobile's current location but the home agent is far away, packets route back through the home network β€” wasting latency and bandwidth. This is the main limitation of indirect routing.

6.3 Mobile IP: Direct Routing

  1. Same registration as before (mobile β†’ FA β†’ HA).
  2. The correspondent learns the mobile's COA (via the HA) before sending data.
  3. The correspondent then sends packets directly to the COA.

Pros: No triangle routing. Cons: The correspondent must understand mobility (needs to be updated). Also, when the mobile moves to a new COA, the correspondent must be notified.

Mobile IP numbers you should remember: The MN is identified by its permanent IP and a Home Address; the FA and HA act on behalf of the MN; the COA is temporary. Ports and protocols: Mobile IPv4 uses UDP port 434 for registration; the "Home Address" option in the IP header tells the receiver the packet is from a mobile node.

6.4 Handoff in 4G LTE

When a UE moves from one eNB to another, sessions must survive. LTE uses the X2 interface for handover between eNBs:

  1. UE sends measurement reports to its serving eNB.
  2. If a neighbor eNB is better, the serving eNB sends a Handover Request to the target eNB over X2.
  3. Target eNB prepares resources and replies with Handover Request Acknowledge.
  4. Serving eNB sends a Handover Command to the UE; UE synchronizes with target.
  5. Data buffered at the serving eNB is forwarded to the target eNB.
  6. MME is notified; SGW updates its path.
  7. UE sends Handover Confirm; new path established.
  8. Old eNB releases resources.

7. Wireless Security Fundamentals

Protocol Year Encryption Authentication Status
WEP 1997 RC4 with 40-bit or 104-bit key Open / Shared Key Broken β€” trivially cracked. Do not use.
WPA 2003 TKIP (RC4-based, with per-packet key) PSK or 802.1X Deprecated. Vulnerable to KRACK.
WPA2 2004 AES-CCMP PSK or 802.1X (Enterprise) Still widely used. Vulnerable to KRACK if unpatched.
WPA3 2018 AES-GCMP (192-bit in Enterprise mode) SAE (Simultaneous Authentication of Equals) β€” resists offline dictionary attacks Recommended for new deployments. Forward secrecy.

8. Practical Lab: Wi-Fi Packet Capture

Lab: Analyze 802.11 Frames with Wireshark

  1. Install Wireshark and a supported Wi-Fi adapter (for monitor mode, you may need airmon-ng on Linux).
  2. Enable monitor mode on the adapter. This mode captures ALL Wi-Fi frames (not just those addressed to your device).
  3. Start a capture with the display filter wlan.
  4. Filter wlan.fc.type_subtype == 0x08 to see beacon frames β€” one per SSID per ~100 ms.
  5. Filter wlan.fc.type_subtype == 0x04 to see probe request frames β€” sent by STAs during active scanning.
  6. Filter wlan.fc.type_subtype == 0x0d to see ACK frames β€” you should see a burst of ACKs after each data frame.
  7. Inspect one RTS frame (wlan.fc.type_subtype == 0x1b) and the following CTS (0x1c). Note the Duration field.
  8. Download the pcap file and analyze it in Wireshark. Answer the lab questions in the report.

Discussion questions:

9. Homework Assignment (Theoretical, Graded)

Instructions: Answer all questions in a separate document (PDF or Word). Submit via the learning platform. This assignment counts towards your final grade (5%).

Part I: Short Essays (40 points)

  1. Compare CSMA/CA (wireless) with CSMA/CD (Ethernet). Why does wireless need a fundamentally different MAC protocol?
  2. Explain the hidden terminal problem. Describe a scenario in detail, and explain how RTS/CTS solves it.
  3. Identify the key components of an LTE/4G network (eNodeB, MME, SGW, PGW, HSS). What does each one do?
  4. Compare indirect and direct routing in Mobile IP. What trade-offs does each approach make?
  5. Why is SNR critical in wireless links? How does it relate to BER, and what is the role of rate adaptation?

Part II: True/False + Correction (30 points)

  1. 802.11 uses CSMA/CD to detect collisions. (True / False)
  2. The hidden terminal problem is unique to wireless networks. (True / False)
  3. The MME is responsible for forwarding user data packets. (True / False)
  4. In Mobile IP, the home agent is responsible for updating the COA. (True / False)
  5. 5G mmWave frequencies have longer range than 4G frequencies. (True / False)

For each false statement, write the correct version.

Part III: Problem Solving (30 points)

  1. An 802.11 frame of 1500 bytes is transmitted at 54 Mbps. How long does it take to transmit? Show your work.
  2. A mobile moves from one BSS to another. What triggers the handoff, and which frames are exchanged? Describe the process for 4G LTE (X2 handover) and note the key differences from an 802.11 re-association.
  3. In a cellular network with SNR = 20 dB and BER requirement of 10⁻⁡, if doubling transmit power reduces BER by a factor of 100, is that reduction sufficient? Explain, and describe how the network adjusts (e.g., via rate adaptation or power control).

Grading criteria: correctness, completeness, proper use of terminology, and clarity of explanation.

Deadline: Two weeks from the lecture date.

Chapter 7 Summary

Self‑review questions (exam preparation):
β€’ Why can't wireless use CSMA/CD? What physical constraint prevents it?
β€’ Explain the DIFS and SIFS intervals. Why are they different?
β€’ What is the NAV, and how does it prevent collision in RTS/CTS?
β€’ Describe the 4G LTE core network in one paragraph.
β€’ What is network slicing in 5G? Give an example of two slices with conflicting requirements.
β€’ Compare Mobile IP indirect and direct routing. Which is more scalable? Which is more efficient?
β€’ What is the difference between BSS and ESS in 802.11?
β€’ List the 802.11 MAC frame address fields for: (a) STA β†’ AP, (b) AP β†’ STA, (c) ad-hoc.
β€’ Why do some routers not respond to traceroute with ICMP Type 11?
β€’ Explain the difference between handoff and roaming.

Looking Ahead to Chapter 8

Question: How do we make networks secure? How do we protect confidentiality, integrity, and availability against attackers?

Answer: Chapter 8 (Security) covers cryptography (AES, RSA, DH), authentication (certificates, TLS), email security (PGP, S/MIME), network-layer security (IPsec, VPNs), wireless security (WPA3, EAP), and operational security (firewalls, IDS/IPS).

The Final Exam will cover Chapters 1-7 (comprehensive). Practice tracing packet flows (DHCP β†’ ARP β†’ DNS β†’ TCP β†’ HTTP) and explaining each protocol's role clearly.