Skip to content
Tutorials Center
My learning

Topics

Lesson 31 of 55 ยท Networks and the Internet

Wi-Fi and Wireless Basics

Understand how Wi-Fi works: radio bands and channels, Wi-Fi standards, SSIDs, signal strength, WPA2 and WPA3 security, plus Bluetooth and mobile data, with small Python models.

Most of the devices you use every day are not plugged into a network cable. Your phone, laptop, TV and smart speaker reach the Internet through the air, using radio waves. Wi-Fi is the most common way to do that at home, at school and in cafes. This lesson explains how it works, what the names and numbers on your router mean, how to choose settings that are fast and secure, and how Wi-Fi differs from Bluetooth and mobile networks.

It follows Networking Basics, where you met access points and the difference between Wi-Fi and Ethernet.

What is Wi-Fi?

Wi-Fi is a family of standards (called IEEE 802.11) for wireless local area networks. A Wi-Fi network has two kinds of device: an access point (AP), usually built into your home router, which connects to the wired network, and stations, such as phones and laptops, which connect to the access point by radio. Data travels as radio signals in the air between the two, then continues as normal network traffic.

Radio is a shared medium: all devices on a channel use the same slice of the radio spectrum and must take turns. This is the most important difference from a cable, where each device has its own wire, and it explains why a crowded Wi-Fi network slows down.

Names you will meet

  • SSID (service set identifier): the name of the network that appears in the list of networks, for example HomeNet. Several access points can share one SSID so you can roam through a building.
  • Password (passphrase): the secret you enter to join. It is used to generate the keys that encrypt traffic.
  • BSSID: the access point's hardware (MAC) address. It identifies one particular radio.
  • Hidden network: an SSID that is not announced. It offers no real security, because devices still reveal the name when they connect.
  • Guest network: a separate SSID for visitors, isolated from your own devices.

Frequency bands and channels

Wi-Fi uses unlicensed radio bands. Each band is divided into channels.

Band Range through walls Speed Crowding Typical use
2.4 GHz Better Lower Very crowded (also used by Bluetooth, microwaves, baby monitors) Smart-home gadgets, far rooms
5 GHz Worse Higher Less crowded, many channels Laptops, phones, streaming
6 GHz (Wi-Fi 6E and 7) Shortest Highest Nearly empty Newest devices, close range

On 2.4 GHz, channels are only 5 MHz apart but each signal is about 20 MHz wide, so neighbouring channels overlap. In most countries only channels 1, 6 and 11 do not overlap each other, so routers (and people changing settings) pick one of those three. If your neighbours all use channel 6, your network slows down; picking 1 or 11, or moving to 5 GHz, can help.

Python Which 2.4 GHz channels overlap?

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Wi-Fi standards

Wi-Fi improves roughly every few years. The Wi-Fi Alliance gives generations simple numbers.

Name Standard Bands Maximum link rate (theoretical)
Wi-Fi 4 802.11n 2.4 and 5 GHz 600 Mbit/s
Wi-Fi 5 802.11ac 5 GHz About 3.5 Gbit/s
Wi-Fi 6 802.11ax 2.4 and 5 GHz About 9.6 Gbit/s
Wi-Fi 6E 802.11ax adds 6 GHz About 9.6 Gbit/s
Wi-Fi 7 802.11be 2.4, 5 and 6 GHz About 46 Gbit/s

Real speeds are far lower than the headline number: only part of the link rate becomes usable data, the channel is shared, and walls and distance reduce it. A connection uses the newest generation that both the device and the router support, so an old phone cannot use the new features even on a new router.

Signal strength and range

Radio signals weaken with distance and with obstacles. Wi-Fi software reports signal strength as RSSI in dBm (a logarithmic scale of negative numbers): -40 dBm is excellent, -60 is good, -70 is fair, -80 is poor and -90 is unusable. Every 3 dB loss halves the power. Concrete, metal, water (including fish tanks and people) and mirrors absorb or reflect radio. The 5 GHz band is absorbed more than 2.4 GHz, so it has a shorter reach.

Python Estimate signal strength with distance and walls

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The table shows why you often use 5 GHz near the router and 2.4 GHz at the far end of the house. To improve coverage, move the router to a central, high position, away from metal and thick walls, or use a mesh system of several access points sharing one SSID.

Wi-Fi security

Anyone within range can receive your radio signals, so Wi-Fi traffic must be encrypted. The standards in order of age:

Mode Status Notes
Open (no password) Unsafe Anyone can read traffic; only for public networks behind other protection
WEP Broken Can be cracked in minutes; never use
WPA Obsolete Replaced because of weaknesses
WPA2 (AES/CCMP) Good The long-time standard; a strong passphrase is essential
WPA3 Best Stronger key exchange, protects against offline password guessing, encrypts open networks (Enhanced Open)

Practical rules: use WPA3 or WPA2-AES, choose a long unique passphrase (Passwords and Encryption), change the router's default admin password, keep the router's firmware updated, turn off WPS (a push-button/PIN shortcut with known flaws), and put visitors and smart-home gadgets on a guest network. Be careful with public hotspots: encryption protects the link to the access point, but the owner of the hotspot (or someone running a fake one with the same name) may see unencrypted traffic. Use HTTPS sites and a VPN.

Other wireless technologies

Technology Range Purpose
Bluetooth About 10 m Connect nearby accessories: headphones, keyboards, watches; low power
NFC A few cm Tap-to-pay, door badges, pairing
Cellular (4G/5G) Kilometres Mobile data and calls over a provider's tower network
Satellite Global Remote areas, ships, aircraft
Zigbee / Thread Tens of metres Low-power smart-home sensors

Wi-Fi is for high-speed local networking; Bluetooth is for cables replaced between two nearby devices; cellular is for moving around while connected. A phone uses all three and chooses among them.

Fixing slow Wi-Fi

  1. Move closer, or switch the device to 5 GHz.
  2. Restart the router; old firmware and long uptimes cause odd problems.
  3. Change channel on 2.4 GHz (1, 6 or 11) if neighbours crowd yours.
  4. Place the router centrally, off the floor and away from microwaves and metal.
  5. Check whether the slowness is Wi-Fi at all: try a cable. If Ethernet is slow too, the problem is your Internet connection, not the radio. See Troubleshooting and Performance.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. What is an SSID?

    The SSID is the network name shown in the list of available networks.
  2. 2. Which 2.4 GHz channels do not overlap with each other?

    Each 20 MHz-wide signal covers several 5 MHz channel numbers, so 1, 6 and 11 are the usual non-overlapping choices.
  3. 3. Compared with 2.4 GHz, the 5 GHz band typically offers...

    5 GHz has more channels and higher speeds but is absorbed more by walls, so its reach is shorter.
  4. 4. Which Wi-Fi security mode should you choose today?

    WPA3 or WPA2-AES with a strong passphrase gives real encryption. WEP is broken and a hidden SSID provides no security.
  5. 5. A speed test over Ethernet is just as slow as over Wi-Fi. What does that suggest?

    If a cable is also slow, Wi-Fi is not the bottleneck; look at the provider, the modem or the website.

Summary

  • Wi-Fi (IEEE 802.11) connects stations such as phones and laptops to an access point by radio; the SSID is the network's name.
  • Radio is shared, so devices on a channel take turns, and crowding slows everyone.
  • 2.4 GHz travels farther but is crowded (use channels 1, 6 or 11); 5 and 6 GHz are faster but have a shorter reach.
  • Wi-Fi 4 to 7 are generation names for 802.11n to 802.11be; real speeds are much lower than the headline link rate.
  • Signal strength falls with distance and walls; mesh systems and central router placement improve coverage.
  • Use WPA3 or WPA2-AES with a strong passphrase, update the router, disable WPS and use a guest network.
  • Bluetooth, NFC, cellular and satellite fill other roles; a phone switches among them.

Next: The Internet, IP Addresses and DNS.