Introduction to Wi-Fi
Wi-Fi is a family of wireless networking protocols strictly governed by the IEEE 802.11 standards. Operating at the Physical and Data Link layers, it allows devices to communicate and access the internet without the need for physical cables.
While Ethernet dominates wired Local Area Networks (LANs), Wi-Fi is the absolute standard for Wireless Local Area Networks (WLANs).
Wi-Fi Network Architecture
For networking exams, Wi-Fi architectures are classified into two primary topologies:
1. Basic Service Set (BSS)
A BSS is the fundamental building block of a Wi-Fi network. It consists of exactly one central Access Point and all the wireless devices currently connected to it.
For example, a standard home network is a BSS. You have one central wireless router in your living room, and your smartphone, laptop, and smart TV all act as stations connecting directly to that single router.
2. Extended Service Set (ESS)
An ESS is created by linking multiple Basic Service Sets together using a wired distribution system.
For example, a massive university campus relies on an ESS. The university installs hundreds of Access Points across different buildings, all wired back to the main server. This allows a student to walk across the entire campus while seamlessly roaming from one Access Point to another without ever losing their connection.
The Heart of Wi-Fi: CSMA/CA
Unlike wired Ethernet, which uses Collision Detection (CSMA/CD), Wi-Fi radios physically cannot listen and transmit at the same time. Therefore, they cannot detect collisions once they happen. Because of this, Wi-Fi must use Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA).
- Listening First: A device listens to the radio channel. If it is busy, it politely waits.
- RTS / CTS Handshake: To avoid the Hidden Terminal Problem (where two devices cannot see each other but transmit to the same router), a device sends a Request to Send (RTS) packet to the router. The router replies with a Clear to Send (CTS) packet, formally reserving the airwaves and telling all other devices to stay quiet.
- Transmission and ACK: The device sends its data. Because collisions cannot be detected, the router must reply with an Acknowledgement (ACK) packet. If the ACK is never received, the sender assumes a collision occurred and retransmits the data.
Frequency Bands
Wi-Fi operates across three distinct radio frequency bands, each with massive physical differences.
| Frequency Band | Speed | Range and Penetration |
|---|---|---|
| 2.4 GHz | Slower data rates. | Excellent range. Easily penetrates thick concrete walls. However, it is highly crowded by Bluetooth and microwaves. |
| 5 GHz | Very fast data rates. | Shorter range. Struggles to penetrate walls. Less susceptible to interference. |
| 6 GHz (Wi-Fi 6E / 7) | Massive data rates. | Very short range. Absolutely no interference from legacy devices. |
Wi-Fi Security Standards
Because Wi-Fi blasts data openly into the air, anyone with an antenna can intercept it. Encryption is mandatory. These standards have evolved heavily:
- WEP (Wired Equivalent Privacy): The original standard. It is fundamentally broken and can be hacked in seconds. Never use it.
- WPA2 (Wi-Fi Protected Access 2): The long standing global standard. It utilizes robust AES encryption to securely scramble data.
- WPA3: The modern standard. It provides massive protection against offline dictionary attacks, where hackers try millions of passwords to break into a network.
