AQA 7517, section 4.9.2.3
The purpose of WiFi
WiFi is a wireless local area network (WLAN) technology based on international standards (the IEEE 802.11 family). Its purpose is to let devices connect to a network wirelessly, using radio waves instead of cables.
Advantages:
- Mobility: devices can be used anywhere in range.
- No cabling to install, so it is easy and cheap to set up and to add devices.
- Many devices, such as phones, tablets and smart devices, have no network socket.
Disadvantages:
- Usually slower and less reliable than a wired link.
- Affected by interference and obstacles such as walls.
- Less secure, as radio waves can be received by anyone in range.
- Limited range.
Components needed
| Component | Role |
|---|---|
| Wireless network adapter (wireless network interface card) | Built into or plugged into each device. It sends and receives the radio signals so the device can connect to the WiFi network |
| Wireless access point (WAP) | The device that connects the wireless devices to the wired network (and the Internet). It sends and receives the radio signals and relays the data. In homes it is usually built into the router |
SSID
The Service Set Identifier (SSID) is the name of a wireless network, for example "HomeWiFi". The access point broadcasts it, so that nearby devices can find and identify the network to join. Different networks have different SSIDs, so you can choose the right one.
Securing a wireless network
Because radio waves can be picked up by anyone nearby, wireless networks need protection.
Strong encryption: WPA and WPA2
Data sent over the air is encrypted so that it can't be read if intercepted. WPA (WiFi Protected Access) and the stronger WPA2 use a password (key) and strong encryption. Only devices that know the password can join and decode the data. (The older WEP is weak and shouldn't be used.)
Disabling SSID broadcast
The access point can be set not to broadcast its SSID. The network doesn't appear in the list of available networks, so a casual user won't see it. A user has to know the name and type it in. This gives only limited protection, as the name can still be found by monitoring the radio signals.
MAC address whitelist
Every network adapter has a unique MAC address. The access point can keep a whitelist (an allow-list) of the MAC addresses of approved devices, and refuse any others. This stops unknown devices from joining, but MAC addresses can be spoofed (copied) by a determined attacker, so it should be used with encryption.
| Method | What it does | Strength |
|---|---|---|
| WPA/WPA2 encryption | Scrambles data, needs a key to join | Strong (the main protection) |
| SSID hidden | Network doesn't appear in the list | Weak: only hides it from casual users |
| MAC whitelist | Only approved adapters can join | Moderate: can be spoofed |
CSMA/CA
On a wireless network, all devices share the same radio channel, so only one can transmit at a time, or their signals collide. CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) is the protocol that devices use to share the channel.
A wireless device can't reliably detect a collision while transmitting, so the protocol avoids collisions instead.
Without RTS/CTS
- The device listens to the channel (carrier sense) to see if another device is transmitting.
- If the channel is busy, it waits.
- If it is free, the device waits a short random time (so that two devices that were both waiting don't start together), checks again, and if still free, transmits.
- The receiver sends back an acknowledgement (ACK) if the frame arrived correctly.
- If no ACK is received, the sender assumes a collision, and waits a random time and tries again.
The hidden node problem, and RTS/CTS
Sometimes two devices can't hear each other (they're out of range, or something is in the way) but both can reach the access point. Neither sees the other transmitting, so both send at once, and collide at the access point. This is the hidden node problem.
RTS/CTS (Request to Send / Clear to Send) is an optional extra that reduces this.
- When the channel is free, the sender transmits an RTS to the access point, asking for permission to send.
- If the channel is free, the access point replies with a CTS. All devices in range of the access point hear the CTS, including those hidden from the sender.
- The CTS reserves the channel for a set time. Devices that hear it wait while the sender transmits.
- If the sender doesn't receive a CTS, it keeps waiting and tries again later.
- Once it has the CTS, the sender sends its data, and the receiver sends an ACK.
- The ACK also tells the other devices that the channel is free, so they can transmit again.
Random back-off
Whenever a device has to wait, because the channel is busy, no CTS arrives, or no ACK comes back, it waits a random back-off period before trying again.
- The wait is random so that two devices that were both waiting are unlikely to try again at the same moment and collide again.
- If the attempt fails again, the device waits a longer random time before the next try. The range of the random wait doubles each time, which is called exponential back-off.
RTS/CTS adds a little overhead (extra messages), so it is mostly used when the hidden node problem is likely, or for large frames where a collision would waste a lot of time.
| Without RTS/CTS | With RTS/CTS | |
|---|---|---|
| Steps | Listen, wait random time, send, ACK | Listen, RTS, CTS, send, ACK |
| Hidden node problem | Can happen | Reduced |
| Overhead | Lower | Higher |
(Knowledge of CSMA/CD, as used in Ethernet, is not required.)
Worked example
Task: explain how a home WiFi network can be made more secure.
- Use WPA2 with a strong password, so that data is encrypted and only people with the key can join.
- Change the default SSID and router password, and consider hiding the SSID (limited protection).
- Use a MAC address whitelist so that only known devices can connect.
- Together these make it harder for an outsider to join the network or read the data. Encryption is the most important.
Exam tip: for CSMA/CA, mention listening first, a random wait, and an acknowledgement. For RTS/CTS, say it reserves the channel and helps with the hidden node problem. For security, rate encryption as strongest, and be honest that hiding the SSID and MAC filtering are weak on their own.
Check yourself
What is the purpose of WiFi?
To let devices connect to a network wirelessly, using a wireless local area network based on international standards.
What is the job of the wireless access point?
It connects wireless devices to the wired network, by sending and receiving the radio signals and relaying the data.
Give three ways of securing a wireless network
Strong encryption with WPA/WPA2, disabling the broadcast of the SSID, and using a MAC address whitelist.
What problem does RTS/CTS help with?
The hidden node problem, where two devices can't hear each other but can both reach the access point, so they transmit at the same time and collide. The CTS tells all nearby devices to wait.