Wireless LAN¶
Take out your phone and open the Wi-Fi list. How many networks do you see? Ten? Twenty? All of them are talking through the same air, in this room, right now. How is that possible? And why is the Wi-Fi sometimes slow with five bars?
Until now every bit you sent in this unit travelled through a cable you could follow with your finger. Now the cable disappears. The good news: everything else you know (frames, MAC addresses, DHCP, the bridge) stays exactly the same. Only the medium changes, and the medium brings its own rules: generations, bands, channels and passwords.
What you will learn
- Match the 802.11 standards with their Wi-Fi 4 / 5 / 6 / 6E / 7 names, years and bands
- Compare the 2.4 GHz, 5 GHz and 6 GHz bands, and explain why only channels 1, 6 and 11 are used at 2.4 GHz
- Order WEP, WPA, WPA2, WPA3 in time and say which ones are acceptable today
- Configure an access point on RouterOS and join it to the LAN's bridge
- Read signal strength in dBm, run a site survey and choose a channel with your own numbers
- Why "more bars" and "more power" do not mean faster Wi-Fi
Radio instead of copper: the canteen¶
The canteen (we keep it all page)
A cable is a private corridor between two people. Radio is a canteen: everybody sitting at the same table hears everybody, and only one person can speak at a time, or nobody understands.
The access point (AP) is the person at the table who repeats everything to the kitchen (the wired LAN). The SSID (Service Set Identifier) is the name written on the table: the network name you pick on your phone.
More people at the table means a longer wait for your turn. That is why five bars can be slow: the bars measure how loud the AP sounds, not how many people are waiting to speak.
The family names: 802.11 and Wi-Fi numbers¶
The standard behind Wi-Fi is IEEE 802.11. The first version, in 1997, reached 2 Mbit/s. Each improvement got letters (b, a, g, n...), and nobody could remember them. So in 2018 the Wi-Fi Alliance, the industry group that certifies devices, introduced simple numbers, starting at 4.
| IEEE standard | Name | Published | Bands | Top speed (theory) |
|---|---|---|---|---|
| 802.11b | — | 1999 | 2.4 GHz | 11 Mbit/s |
| 802.11a | — | 1999 | 5 GHz | 54 Mbit/s |
| 802.11g | — | 2003 | 2.4 GHz | 54 Mbit/s |
| 802.11n | Wi-Fi 4 | 2009 | 2.4 and 5 GHz | 600 Mbit/s |
| 802.11ac | Wi-Fi 5 | 2013 | 5 GHz | 6.9 Gbit/s |
| 802.11ax | Wi-Fi 6 · 6E | 2021 | 2.4 and 5 GHz · 6E adds 6 GHz | 9.6 Gbit/s |
| 802.11be | Wi-Fi 7 | 2025 | 2.4, 5 and 6 GHz | Higher still |
Two honest notes:
- Products arrive before the paper. Wi-Fi 6 devices were certified from 2019 and Wi-Fi 7 devices from January 2024, before their standards were final.
- The last column is a laboratory maximum, with many antennas and nobody else at the table. Your phone gets a fraction of it. And remember the ÷8 from Unit 1: a link of 600 Mbit/s is at most 75 MB/s.
Decode the box¶
Product boxes rarely say "Wi-Fi 5". They say things like this:
| Printed on the box | Wi-Fi name | Bands |
|---|---|---|
| 802.11b/g/n | Up to Wi-Fi 4 | 2.4 GHz only (a cheap smart bulb or printer) |
| Dual band AC1200 | Wi-Fi 5 (802.11ac) | 5 GHz, plus 802.11n on 2.4 GHz |
| Wi-Fi 6 AX3000 | Wi-Fi 6 (802.11ax) | 2.4 and 5 GHz |
| Tri-band Wi-Fi 6E | Wi-Fi 6E (802.11ax) | 2.4, 5 and 6 GHz |
Bands: three rooms of the canteen¶
A band is a range of radio frequencies that Wi-Fi is allowed to use.
| 2.4 GHz | 5 GHz | 6 GHz | |
|---|---|---|---|
| Range, through walls | Best | Shorter | Shortest |
| Speed | Lowest | High | Highest |
| Crowding | Very crowded: Wi-Fi, Bluetooth, microwave ovens | Much more room | Almost empty |
| Who can use it | Everything | Wi-Fi 4 and newer (and old 802.11a) | Only Wi-Fi 6E and 7 devices |
In the European Union the 6 GHz band (5945–6425 MHz) was opened to Wi-Fi by a Commission decision of June 2021.
Careful: 5 GHz is not 5G
"My router has 5G." A 5 GHz Wi-Fi network is a radio band. 5G is the fifth generation of mobile telephony. The names collide; the technologies have nothing to do with each other.
Channels: the tables in each room¶
A channel is the slice of a band that one access point uses.
In Europe the 2.4 GHz band has channels 1 to 13, their centres 5 MHz apart: channel 1 = 2412 MHz, channel 6 = 2437 MHz, channel 11 = 2462 MHz. But one Wi-Fi signal is about 20 MHz wide. Picture it as a hill: a signal on channel 1 covers the marks up to channel 3. A signal on channel 3 lands right on top of it.
Find the hills that do not touch: 1, 6 and 11. Those are the only three that do not overlap.
flowchart LR
C1["<b>Channel 1</b><br>2412 MHz"] ~~~ C6["<b>Channel 6</b><br>2437 MHz"] ~~~ C11["<b>Channel 11</b><br>2462 MHz"]
C3["<b>Channel 3</b><br>2422 MHz<br>overlaps 1 and 6"] -.->|"noise"| C1
C3 -.->|"noise"| C6
Careful: a half-overlap is worse than sharing
Your neighbour is on channel 6, so you pick 4 to avoid them. Bad idea: 4 overlaps both 1 and 6. Two APs on the same channel at least take turns politely, like two tables sharing one conversation. Two that half-overlap cannot even hear each other's turns: they just hear noise.
At 5 GHz the channels are numbered 36, 40, 44, 48... and are already 20 MHz apart, so they do not overlap. A router can join several into a wider channel (40 or 80 MHz): faster, but it occupies more tables.
To turn a frequency into a channel number:
| Band | Formula | Example |
|---|---|---|
| 2.4 GHz | channel = (MHz − 2407) ÷ 5 | 2437 → 6 |
| 5 GHz | channel = (MHz − 5000) ÷ 5 | 5180 → 36 |
Security: who may sit at the table¶
Radio goes through walls: anyone in the street can listen. So the frames are encrypted, and joining the network needs a secret.
| Name | Year | Verdict today |
|---|---|---|
| WEP | 1997 | Broken. Never use it |
| WPA | 2003 | An emergency patch for old hardware. Do not use it |
| WPA2 | 2004 | Still acceptable with a long passphrase and updated devices |
| WPA3 | 2018 | The current one. Required for new certified devices since July 2020 |
The KRACK story
In October 2017 a Belgian researcher, Mathy Vanhoef (KU Leuven), published KRACK, an attack on the WPA2 handshake: the short conversation in which phone and AP agree on keys. It affected practically every Wi-Fi device in the world. Updates fixed it, and three months later, in January 2018, the Wi-Fi Alliance announced WPA3. WPA3 uses a new handshake, SAE: someone who records it cannot go home and try millions of passwords against the recording.
Two flavours:
- Personal (home, small office): one passphrase for everyone, 8 to 63 characters. Long beats complicated.
- Enterprise (school, company): each person logs in with their own user name. eduroam at universities works like this.
Careful: hiding the name protects nothing
"I hide the network name, so it is safe." A hidden SSID is still sent every time a device connects, and free tools show it in seconds. A MAC filter is just as visible. Security is the encryption and the passphrase, not the hiding.
Configuring the access point on RouterOS¶
Your group router becomes an AP called TRAMUNTANA-G. Eight APs share one classroom, so each group gets a channel from the plan on the board: groups 1, 4, 7 on channel 1 (2412 MHz) · groups 2, 5, 8 on channel 6 (2437 MHz) · groups 3, 6 on channel 11 (2462 MHz).
RouterOS v7 has two different wireless menus, depending on the driver package. Look at the left menu of WinBox: WiFi (interfaces wifi1, wifi2) or Wireless (interfaces wlan1, wlan2). /system package print confirms it: wifi-qcom or wifi-qcom-ac means the WiFi menu; wireless means the Wireless menu.
/interface wifi set wifi1 configuration.mode=ap configuration.ssid=TRAMUNTANA-3
/interface wifi set wifi1 configuration.country=Spain
/interface wifi set wifi1 channel.frequency=2462 channel.width=20mhz
/interface wifi set wifi1 security.authentication-types=wpa2-psk,wpa3-psk
/interface wifi set wifi1 security.passphrase="group passphrase"
/interface wifi set wifi1 disabled=no
/interface bridge port add bridge=bridge-lan interface=wifi1
/interface wifi registration-table print
In WinBox: WiFi → double-click wifi1 → Mode ap, SSID, Country Spain; Channel: Frequency, Width 20MHz; Security: tick WPA2 PSK and WPA3 PSK, Passphrase → Enable. Then Bridge → Ports → +.
This older driver only offers WPA2, not WPA3.
/interface wireless security-profiles add name=tramuntana mode=dynamic-keys
/interface wireless security-profiles set tramuntana authentication-types=wpa2-psk
/interface wireless security-profiles set tramuntana wpa2-pre-shared-key="group passphrase"
/interface wireless set wlan1 mode=ap-bridge band=2ghz-b/g/n
/interface wireless set wlan1 channel-width=20mhz frequency=2462
/interface wireless set wlan1 ssid=TRAMUNTANA-3 security-profile=tramuntana
/interface wireless set wlan1 frequency-mode=regulatory-domain country=spain
/interface wireless enable wlan1
/interface bridge port add bridge=bridge-lan interface=wlan1
/interface wireless registration-table print
In WinBox: Wireless → Security Profiles → + (WPA2 PSK, key) · WiFi Interfaces → double-click wlan1 → Mode ap bridge, Band, Channel Width, Frequency, SSID, Security Profile, Country → Enable. Then Bridge → Ports → +.
Three things that matter:
- Country = Spain is not decoration. It sets the legal channels and transmit power. An AP with the wrong country can transmit where it must not.
- The bridge port is the whole trick. The radio is just one more port of
bridge-lan, likeether4. Without it, phones connect and get no address. - A passphrase from the first minute, at least 12 characters. Never leave an AP open "just to test".
Join TRAMUNTANA-G with your phone. It will say "no internet": true, the router has no way out yet. Stay connected. The phone gets a 10.G.0.x address from the same DHCP server as the wired PCs. Ping it from a wired PC: the reply proves that wired and wireless are one LAN.
| Symptom | Most likely cause |
|---|---|
| Phone connects but gets no address | The radio is not a port of the bridge |
| SSID not visible | Interface still disabled, or wrong radio (wifi1 is not the 2.4 GHz one on every model) |
| Phone leaves after ten seconds | It switched back to a network with internet: disable auto-switch or mobile data |
| Passphrase refused | Shorter than 8 characters |
Measuring the signal: dBm¶
The registration table lists every connected client and its signal strength in dBm (decibels relative to one milliwatt). The numbers are negative: closer to zero is stronger.
| Signal | Rule of thumb |
|---|---|
| Around −40 dBm | Right next to the AP |
| −50 to −60 dBm | Very good |
| About −70 dBm | Still usable |
| −80 dBm and below | Unreliable |
The scale is logarithmic: every −3 dB is half the power, and −10 dB is one tenth. So −70 is not "a bit worse" than −50: it is a hundred times less power. Walk away from the AP and you lose half the power every few steps; a wall costs more than ten metres of air.
Why your phone's MAC looks wrong
The MAC address in the registration table is probably not the one in your phone's "About" screen. Modern phones invent a private MAC address for each network, so that shops and stations cannot track you from network to network.
Site survey: measure before you choose¶
Your channel came from a table on the board. That was a guess. A professional never guesses: before installing an AP they walk the building and measure.
A site survey answers three questions before you install anything: which networks are already in the air, on which channels, and how strong?
You cannot see radio, so you need an instrument. Ours is the AP itself: it can stop talking for a moment and listen. In WinBox, select the interface and press Scan; in the CLI:
(The first for the WiFi menu, the second for the Wireless menu. Stop with Q.) While the radio scans it does not serve its clients, so phones drop for a few seconds. Each line is one AP heard:
| Column | Meaning |
|---|---|
| SSID | The network's name. Several lines can share it |
| Address (BSSID) | The MAC address of that AP's radio. One line = one BSSID = one physical AP |
| Channel / frequency | Where it transmits, in MHz, e.g. 2437 |
| Signal | How strongly you hear it, in dBm |
The school's network name may appear four times, with four different BSSIDs. Four APs announce the same SSID so that your phone can move between them as you walk: that is roaming. The SSID is the name of the table; the BSSID identifies the box.
Careful: a scan shows boxes, not people
A scan lists access points, the boxes that announce a network. Clients do not appear, and nothing they send can be read: it is encrypted. Scanning only listens and is harmless; joining or attacking somebody else's network is neither.
From a scan to a decision¶
The Site survey sheet walks you through it: scan for 30 seconds, turn each frequency into a channel, tally one mark per AP, draw a bar chart. Then choose 1, 6 or 11 with these rules:
- Count only the strong ones, above about −75 dBm. Twelve networks at −85 disturb less than two at −40: ten whispers bother you less than one shout.
- Never pick an in-between channel. Channel 3 looks free, but it overlaps 1 and 6.
- Neighbours get different channels. Colour the classroom plan like a map. When two APs must share, make it the two farthest apart.
Example: channel 1 has two networks at −45 dBm; channel 6 one at −50 and six at −88; channel 11 four at −86. The best choice is 11: it is the only one of the three with no strong signal.
The surprise: turn the power down¶
A louder AP is a person shouting in the canteen: their own table hears them, and so do three other tables that now have to wait. Offices use many quiet APs, not one loud one.
/interface wifi set wifi1 channel.frequency=2412 configuration.tx-power=5
/interface wireless set wlan1 frequency=2412 tx-power-mode=all-rates-fixed tx-power=5
5 dBm of transmit power is plenty for one table. Scan again: the neighbours' signal drops by 10 dB or more, and your own phone still connects. Nobody has more signal than before; everybody has better Wi-Fi.
Key takeaways¶
- Wi-Fi is IEEE 802.11: 802.11n = Wi-Fi 4, ac = Wi-Fi 5, ax = Wi-Fi 6/6E, be = Wi-Fi 7. Speeds on the box are laboratory maximums.
- 2.4 GHz reaches farther but is slower and crowded; 5 GHz and 6 GHz are faster with shorter range. At 2.4 GHz only channels 1, 6 and 11 do not overlap.
- Use WPA2/WPA3 with a long passphrase. WEP and WPA are broken; a hidden SSID protects nothing.
- On RouterOS the radio is one more port of the bridge: set mode, SSID, country, channel and security, then add it to
bridge-lan. - Signal is in dBm: closer to zero is stronger, and −3 dB is half the power.
- A site survey lists APs (SSID, BSSID, channel, signal). Choose by counting strong signals, and lower the power so neighbours wait less.
Quick check¶
1. Which IEEE standard is Wi-Fi 6?
- 802.11ax
- 802.11ac
- 802.11n
- 802.11be
Wi-Fi 6 is 802.11ax. Wi-Fi 4 is 802.11n, Wi-Fi 5 is 802.11ac and Wi-Fi 7 is 802.11be. The numbers were introduced by the Wi-Fi Alliance in 2018.
2. At 2.4 GHz, which channels do not overlap?
- 1, 6 and 11
- 1, 2 and 3
- 1, 5 and 10
- All 13 channels
Channel centres are only 5 MHz apart but a signal is about 20 MHz wide, so neighbouring channels overlap. 1, 6 and 11 are far enough apart not to touch.
3. Compared with 5 GHz, what is true of the 2.4 GHz band?
- It reaches farther, but it is slower and more crowded
- It is faster and also reaches farther
- It can only be used by Wi-Fi 6 devices
- It cannot go through walls at all
2.4 GHz has the best range through walls but the lowest speed, and it is shared with Bluetooth and microwave ovens. 5 GHz is faster with a shorter range.
4. What is the best security choice for an office Wi-Fi network today?
- WPA2/WPA3 with a long passphrase
- WEP with a short key
- An open network with a hidden SSID
- WPA with a short key
WEP and WPA are broken, and a hidden SSID is visible to free tools. WPA2/WPA3 with a long passphrase is acceptable; WPA3's SAE handshake resists offline password guessing.
5. Which of these two signals is stronger: −45 dBm or −80 dBm?
- −45 dBm
- −80 dBm
- They are equal
- It depends on the channel
In dBm, closer to zero is stronger. The scale is logarithmic: 35 dB of difference is thousands of times more power.
6. A scan shows the same SSID five times, with five different BSSIDs. What does it mean?
- Several access points announce the same network
- Five people are connected to that network
- The network uses five different passwords
- The scan is wrong and must be repeated
The SSID is the network's name; the BSSID is the MAC address of one AP's radio. Several APs with one SSID let your phone roam between them.
7. Your scan hears: channel 1, two networks at −45 dBm; channel 6, one at −50 and six at −88; channel 11, four at −86. Which channel do you choose?
- 11
- 1
- 3
- 6
Count only the strong signals (above about −75 dBm). Channel 11 has none; 1 and 6 each have loud neighbours. Channel 3 overlaps both 1 and 6, so it is never a good choice.
8. Your phone joins the group's access point and gets a 10.G.0.x address, the same network as the wired PCs. Select the two that are true.
- The radio interface is a port of the same bridge as the Ethernet ports
- A wired PC can ping the phone and see its MAC with ip neigh
- The phone now has Internet access because it got an address
- The access point needs its own separate DHCP server for wireless clients
The radio is one more port of bridge-lan, so wired and wireless form one LAN, served by the same DHCP server. An address is not Internet: the router has no way out yet.
Next: connect the eight group islands to each other — Routing.