Networking

How Does Wi-Fi Work? Radio, Routers and Encryption Explained

Wi-Fi works by turning your data into radio signals that travel between your device and a wireless router or access point, which passes them on to a wired network and the internet. The signals use unlicensed radio bands, are split into channels, and are encrypted so that nearby devices cannot read them.

The sections below follow one piece of data from your phone or laptop to the internet and back.

What are the parts of a Wi-Fi network?

A home Wi-Fi network has three parts:

  • Your device (the client): a phone, laptop, TV or smart plug with a Wi-Fi radio.
  • The access point: the radio that your devices talk to. In a home it is built into the router. In an office or a large house it may be a separate box connected by a cable.
  • The router: the device that connects your local network to your internet provider. It gives each device a local address using DHCP and translates between those local addresses and your single public address using NAT. Apple's router guidance notes that only one device on a network should run DHCP and only one should run NAT, otherwise you get conflicts or "double NAT".

Wi-Fi itself is only the first hop, between the client and the access point. Everything after that travels over ordinary wired networking.

How does Wi-Fi send data through the air?

Data on a computer is a stream of bits. A Wi-Fi radio encodes those bits into a radio wave by changing properties of the wave, a process called modulation. The receiver measures the wave and recovers the bits.

Intel's reference table of Wi-Fi standards shows the main techniques that raised speeds over the years:

  • OFDM (orthogonal frequency-division multiplexing) splits a channel into many narrow sub-carriers that each carry part of the data. 802.11a and 802.11g introduced it for Wi-Fi, both at up to 54 Mbps.
  • QAM (quadrature amplitude modulation) packs more bits into each symbol. Intel lists 64-QAM for 802.11n, 256-QAM for 802.11ac and 1024-QAM for 802.11ax (Wi-Fi 6). Denser modulation is faster but needs a cleaner, stronger signal.
  • MIMO (multiple input, multiple output) uses several antennas to send separate spatial streams at once. 802.11n added it, and 802.11ac wave 2 and 802.11ax added multi-user MIMO so an access point can send to several devices at the same time.
  • Channel bonding combines neighbouring channels into a wider one. Intel lists widths of 20 and 40 MHz for 802.11n, and up to 80 MHz for 802.11ac wave 1 and 160 MHz from wave 2 onward.

Which radio bands does Wi-Fi use?

Wi-Fi uses unlicensed spectrum, so no one needs a licence to operate a router. The main bands are 2.4 GHz and 5 GHz, and the Wi-Fi Alliance has added 6 GHz for newer devices (Wi-Fi 6E and Wi-Fi 7). Each band is divided into channels. Lower frequencies generally travel farther through walls but offer fewer channels, which is why Intel recommends channel bonding on 5 GHz rather than 2.4 GHz. For the trade-offs in detail, see 2.4 GHz vs 5 GHz Wi-Fi.

Apple's recommended router settings reflect this: use 20 MHz channel width on 2.4 GHz to reduce interference, leave 5 GHz and 6 GHz on automatic widths, set the channel to Auto, and enable every band the router supports.

How fast can each Wi-Fi standard go?

These are theoretical maximum data rates from Intel's table for typical client configurations. Real throughput is lower, because the figures describe the radio link and not what you measure in a speed test.

StandardBandMax rate (theoretical)Notes from Intel's table
802.11b2.4 GHz11 Mbps20 MHz channel, 1999
802.11a5 GHz54 MbpsOFDM, 1999
802.11g2.4 GHz54 MbpsOFDM, 2003, works with 802.11b
802.11n2.4 or 5 GHz450 Mbps3 streams, 64-QAM, 40 MHz channels
802.11ac wave 15 GHz866.7 Mbps2 streams, 256-QAM, 80 MHz
802.11ac wave 25 GHz1.73 Gbps2 streams, 256-QAM, 160 MHz, MU-MIMO
802.11ax (Wi-Fi 6)2.4 or 5 GHz2.4 Gbps2 streams, 1024-QAM, 160 MHz, MU-MIMO

Newer generations are named Wi-Fi 4 (802.11n), Wi-Fi 5 (802.11ac), Wi-Fi 6 (802.11ax) and so on. Wi-Fi 6 vs 6E vs 7 covers the latest three.

Why do devices on one channel slow each other down?

A channel is shared. Every device on it, and every neighbouring network using the same channel, competes for the same airtime. When one device transmits, others on that channel have to wait, so adding devices or having a crowded neighbourhood lowers what each one gets.

The Wi-Fi Alliance describes two Wi-Fi 6 features aimed at this problem. OFDMA "effectively shares channels to increase network efficiency and lower latency", by letting one transmission serve several devices. Multi-user MIMO "allows more data to be transferred at one time, enabling APs to concurrently handle more devices". The Alliance also lists target wake time, which improves battery life by scheduling when devices wake to communicate.

How does Wi-Fi keep data private?

Radio waves pass through walls, so anyone within range could receive them. Wi-Fi security encrypts the traffic between your device and the access point with a key derived from the network password. Someone who captures the signal sees scrambled data, not your pages.

The current standard is WPA3. The Wi-Fi Alliance states that "WPA3 is mandatory for Wi-Fi CERTIFIED devices", that WPA3 networks disallow outdated legacy protocols, and that WPA3-Personal gives better protection against password guessing. It also says protected management frames, which guard the control messages between devices and the access point against forging, are required for all newly certified devices.

Apple recommends WPA3 Personal, or WPA2/WPA3 Transitional if you have older devices that need it. It says to avoid WEP, TKIP, WPA/WPA2 mixed mode and open networks. Encryption only covers the wireless hop. Once your traffic leaves the router it is protected only by whatever the website or app uses, such as HTTPS.

What is an SSID?

The SSID is the network name you see in the list of available networks. Your device picks a network by name, then authenticates with the password and joins. Apple advises using one unique, case-sensitive name across all bands and avoiding default names such as "linksys" or "netgear", because mismatched names can stop devices connecting reliably.

What happens when you open a web page on Wi-Fi?

  1. Your device finds the network by name, authenticates with the password and joins the access point.
  2. The router's DHCP server gives your device a local IP address.
  3. Your browser asks for a page. The data is encrypted, modulated onto a radio wave on the chosen channel and sent to the access point.
  4. The access point decrypts it and hands it to the router, which uses NAT to forward it to your internet provider.
  5. The reply comes back the same way, and your device decodes it from the radio signal.

If the connection is poor, the cause is usually in the radio hop: distance, walls, a crowded channel or an old device. You can test that by moving closer to the router and comparing speeds.

Frequently asked questions

Does Wi-Fi work without internet?
Yes. Wi-Fi only connects your device to a local network through the router. If the router's link to your internet provider is down, devices still connect to the router and to each other, but nothing that needs the internet will load.
Is Wi-Fi the same as the internet?
No. Wi-Fi is the wireless link between your device and the router. The internet is the wider network the router connects to through your provider. You can have Wi-Fi without internet, and internet without Wi-Fi (a device plugged in with an Ethernet cable).
What is the difference between a router and an access point?
An access point provides the wireless link to a network. A home router usually contains an access point plus the parts that connect you to the internet, such as network address translation and a DHCP server. A separate access point is normally added to a network that already has a router.
Why does Wi-Fi get slower with more devices?
Devices on the same channel share its airtime, so only one can usefully transmit at a time. Newer features such as OFDMA and multi-user MIMO in Wi-Fi 6 are designed to serve several devices more efficiently, but the channel is still a shared resource.

Sources