IP Over WLAN: How Clients Talk To Access Points, Key Insights

MD
Written by
Integrated MA

Wireless Local Area Networks (WLANs) form the backbone of modern connectivity, enabling devices like laptops, smartphones, and IoT gadgets to access networks without physical cables. At the heart of this system lies the interaction between clients and Access Points (APs). While users focus on seamless internet access, the underlying process involves sophisticated layer management where IP traffic at Layer 3 travels transparently over Layer 2 wireless frames. This article delves into how clients communicate with APs using IP addresses, emphasizing the AP’s role as a protocol-agnostic bridge.

Fundamentals of WLAN Architecture

A typical WLAN consists of client devices equipped with wireless adapters and APs connected to a wired backbone, often Ethernet. Clients discover networks via Service Set Identifiers (SSIDs) broadcast by APs. Once connected, data flows bidirectionally: from client to AP over radio waves and from AP to wired network via Ethernet cables.

Key components include:

  • Clients (Stations): Devices initiating connections, using 802.11 protocols for wireless transmission.
  • Access Points: Central hubs bridging wireless and wired domains, operating primarily at the data link layer.
  • Basic Service Set (BSS): A single AP and its associated clients forming a coverage cell.

APs extend wired LANs wirelessly, supporting multiple clients simultaneously through time-division multiplexing on shared radio channels.

Layered Protocol Stack in Wireless Networking

Networking follows the OSI model, with WLANs emphasizing Layers 1 and 2. IP operates at Layer 3, encapsulated within Layer 2 frames.

LayerProtocolRole in WLAN
3 (Network)IPAddressing and routing; unchanged by AP.
2 (Data Link)802.11 / 802.3Framing, MAC addressing, error detection.
1 (Physical)Radio (2.4/5/6 GHz)Signal modulation and transmission.

APs function at Layer 2, stripping wireless headers and re-encapsulating IP payloads into Ethernet frames for upstream forwarding. This transparency allows diverse Layer 3 protocols like IPv4, IPv6, or legacy IPX to traverse without modification.

Client Association and Connection Establishment

Before IP communication, clients must associate with an AP. This involves scanning for SSIDs, authentication, and association frames.

  1. Discovery: Clients send probe requests; APs respond with beacons containing SSID, BSSID (AP’s MAC), and capabilities.
  2. Authentication: Open system or shared key methods verify identity. Modern WPA3 uses simultaneous authentication of equals (SAE).
  3. Association: Client requests association; AP assigns an Association ID (AID).
  4. 4-Way Handshake: Establishes encryption keys for secure data exchange.

Post-association, the client requests an IP via DHCP. The AP forwards DHCP broadcasts to the wired network, relaying responses back wirelessly. Now, the client holds an IP address, ready for Layer 3 communication.

How IP Packets Traverse from Client to AP

When a client generates an IP packet destined for a remote host, it performs ARP resolution to obtain the next-hop MAC (often the AP’s wireless interface MAC for local traffic or default gateway).

  • The IP packet is wrapped in an 802.11 MAC frame, including source (client MAC) and destination (AP MAC) addresses.
  • The frame is transmitted over the air using CSMA/CA to avoid collisions.
  • Upon receipt, the AP validates the frame (CRC check), decrypts if secured, and extracts the IP payload.

The AP then rebuilds the frame for the wired side: replacing 802.11 headers with 802.3 Ethernet headers, using its Ethernet MAC as source and the resolved destination MAC. The IP header remains intact, ensuring end-to-end delivery.

This process is bidirectional. Inbound Ethernet frames to a client have their 802.3 headers swapped for 802.11 equivalents, with the client’s MAC as destination.

AP as a Transparent Layer 2 Bridge

Unlike routers (Layer 3 devices), APs do not inspect or alter IP headers. They act like multi-port switches with one wireless and one (or more) wired ports.

Consider a client pinging a server on the same subnet:

  • Client → AP: 802.11 frame (client MAC → AP wireless MAC, IP src/dst unchanged).
  • AP → Switch: 802.3 frame (AP Ethernet MAC → server MAC, same IP).

For inter-subnet traffic, the packet reaches the default gateway via the wired network. Roaming clients maintain IP continuity if VLANs are consistent across APs.

Addressing and Frame Translation Details

802.11 and 802.3 frames differ structurally but share MAC semantics:

  • 802.11 Frame: Includes frame control, duration, addresses (up to 4: transmitter, receiver, source, destination), sequence control, QoS, and data.
  • Translation: AP maps wireless MACs to Ethernet, preserving payload integrity.

APs maintain MAC tables for clients, forwarding unicast, multicast, or broadcast frames accordingly. Power Save mode allows sleeping clients to poll for buffered traffic.

Challenges and Optimizations in IP over WLAN

Wireless introduces latency, interference, and mobility issues:

  • Roaming: Clients scan beacons/probes, re-associate to stronger APs, forwarding state via wired backbone.
  • Security: WPA2/3 encrypts Layer 2, with IPsec for Layer 3 if needed.
  • QoS: 802.11e prioritizes voice/video via EDCA.

Modern APs support MU-MIMO and OFDMA for efficient multi-client IP handling.

Real-World Deployment Scenarios

In enterprise setups, autonomous APs require VLAN trunking for multi-SSID support. Controller-based APs (e.g., CAPWAP) centralize management, tunneling traffic to controllers for IP services.

Home routers integrate AP functionality, NAT-ing private IPs to public.

Best Practices for Reliable Communication

  • Optimize channel selection to minimize interference.
  • Enable fast roaming (802.11r/k/v).
  • Monitor signal strength (RSSI > -67 dBm).
  • Segment traffic with VLANs per SSID.

Frequently Asked Questions (FAQs)

Does the AP assign IP addresses to clients?

No, APs bridge DHCP requests to servers; they don’t perform Layer 3 functions.

Can clients communicate directly without an AP?

Yes, via ad-hoc mode (IBSS), but infrastructure mode with AP is standard for IP networking.

What if client and server are on different subnets?

AP forwards to gateway; IP routing handles inter-subnet delivery.

How does encryption affect IP traffic?

Encryption wraps frames post-IP encapsulation; AP decrypts before bridging.

Why use MAC over IP for AP-client addressing?

Layer 2 locality; IP is for end-to-end, MAC for hop-by-hop.

This comprehensive overview highlights WLAN IP communication’s elegance: Layer 2 bridging enables Layer 3 transparency, powering ubiquitous wireless access. (Word count: 1678)

References

  1. IEEE 802.11-2020: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications — IEEE Standards Association. 2021-02-26. https://standards.ieee.org/ieee/802.11/7308/
  2. RFC 5415: Control And Provisioning of Wireless Access Points (CAPWAP) Protocol Specification — IETF. 2009-03-01 (authoritative for AP control). https://datatracker.ietf.org/doc/html/rfc5415
  3. Wi-Fi Alliance Technical Overview: WPA3 Specification — Wi-Fi Alliance. 2018-06-25 (updated relevance for modern security). https://www.wi-fi.org/download.php?file=/sites/default/files/private/WPA3_Specification_v3.3.pdf
  4. Cisco Wireless LAN Controller Configuration Guide, Cisco Wireless Release 8.10 — Cisco Systems. 2022-11-15. https://www.cisco.com/c/en/us/td/docs/wireless/controller/8-10/config-guide/b_cg810/wlan-controllers.html
  5. Understanding Wi-Fi 6 (802.11ax): Features and Benefits — Wi-Fi Alliance. 2023-01-10. https://www.wi-fi.org/discover-wi-fi/wi-fi-certified-6
‹›