Open the 3D lab
Tech 09 · INTERNET

WiFi
router

Your phone and the router take turns shouting tiny radio messages at each other. See the waves, the turn-taking and why the speed drops two rooms away.

TitleHow a wifi router worksDwg no.FIG. 09
DrawnTestIt3DUpdatedRevC
ScaleNTSReading8 minModelLive 3D
FIG. 09 · live model · drag to turn WiFi router 3D model, paused
2.4 / 5GHz, the two bands
12.5 cmwavelength at 2.4 GHz
~866Mbps, close up on 5 GHz
1,500bytes in one packet
4antennas
Quick answer

How does a WiFi router work?

A WiFi router turns data into radio waves on 2.4 or 5 GHz. Your phone and the router share one channel, so they take turns, listening until the air is quiet, sending a packet, then waiting for a tiny "got it" reply. The router passes each packet by cable to the fibre or cable modem and on to the internet.

One frame

Wait. Talk. Ack. Pass on.

Less than a millisecond in real life: listen, send, get a reply, pass it on.

WiFi router in 3D: listen first
01

Listen first

wait

Before talking, the phone listens. If the air is quiet for a short gap plus a random wait, it may send.

WiFi router in 3D: send the packet
02

Send the packet

talk

The phone sends one packet as a burst of radio waves. A weaker signal means a slower rate, so the burst takes longer.

WiFi router in 3D: acknowledge
03

Acknowledge

ack

A moment later the router answers with a tiny reply that says the packet arrived. No reply means send it again.

WiFi router in 3D: pass it on
04

Pass it on

pass on

The router sends the packet down the ethernet cable to the fibre box, and out to the internet as light.

Two bands

2.4 GHz vs 5 GHz on the same router

Same box, same 20 dBm transmit power, very different behaviour.

2.4 GHz

Wavelengthabout 12.5 cm (5 in)
Antenna elementabout 6.25 cm (2.5 in)
Channel width (model)40 MHz
Top link rate300 Mbps
Loss in the first metre40 dB
One brick wall10 dB
15 m (49 ft) behind a wall108 Mbps
Shares air with microwave ovensYes

5 GHz

Wavelengthabout 6 cm (2.4 in)
Antenna elementabout 3 cm (1.2 in)
Channel width (model)80 MHz
Top link rate866 Mbps
Loss in the first metre46 dB
One brick wall15 dB
15 m (49 ft) behind a wall58 Mbps
Shares air with microwave ovensNo

Figures from our 3D model's indoor formula for a 2x2 dual-band router. Real homes vary with layout, furniture and the neighbours' networks.

Radio, slowed down

What happens between your phone and the wall

About 8 minutes of reading.

How does a WiFi router work when everyone is online at once?

It's 9 pm. Someone's on a video call in the bedroom, your sister is watching a series on the TV, and you're scrolling reels on the sofa. All of it comes through one small box with four antennas, on one radio channel. So why doesn't everybody's data crash into everybody else's?

Because they take turns. WiFi follows a rule called listen before talk (engineers write it as CSMA/CA). Before your phone sends anything, it listens. Once the air has been quiet for 34 microseconds (millionths of a second), it waits a few more random slots of 9 µs each, so two phones that were both waiting don't start at the same instant. Then it sends one packet of 1,500 bytes as a short burst of radio waves. The router checks it and, 16 µs after the last bit, fires back a tiny acknowledgement called an ACK. No ACK means the packet got garbled, and the phone sends it again.

In our model, with the phone 8 m (26 ft) away on 5 GHz, that whole exchange takes about 163 µs. About six thousand of them fit into one second, which is why taking turns still feels like everyone's online together. After the ACK, the router's processor hands the packet to the ethernet cable, and the fibre box on the wall sends it out as flashes of laser light.

What is the difference between 2.4 GHz and 5 GHz WiFi?

Both bands are radio, the same family of waves as FM, only far higher in pitch. 2.4 GHz means the wave wobbles 2.4 billion times a second, and each wave is about 12.5 cm (5 in) long. At 5 GHz it's about 6 cm (2.4 in). You can see this in the antennas. Each is a half-wave dipole, a rod about half a wavelength long, so the 2.4 GHz elements are about 6.25 cm and the 5 GHz ones only 3 cm. Our router has two of each.

5 GHz carries more data because the router gets a wider slice of the airwaves there, 80 MHz in our model against 40 MHz on 2.4 GHz. A wider road takes more traffic. The top link rate is 866 Mbps on 5 GHz and 300 Mbps on 2.4 GHz.

The price is reach. Shorter waves lose more energy in the first metre and more again going through brick. In the model, 5 GHz loses 6 dB more at the start and 15 dB through one wall, where 2.4 GHz loses 10. In open air, 5 GHz stays faster out to about 29 m (95 ft). Put one brick wall in between and the two are level from about 6 m (20 ft), with 2.4 GHz clearly ahead past about 9 m (30 ft).

Which channels a router may use, and at what power, is set by each country's radio regulator. On 2.4 GHz, for example, US routers stick to channels 1 to 11 while India and Europe allow up to 13, and the 5 GHz rules differ too. That's why the same model can ship with slightly different settings in different countries.

Why is my WiFi slow in another room?

Signal strength is measured in dBm, decibels compared with one milliwatt. Our router transmits at 20 dBm, which is 100 milliwatts, and every 10 dB down means ten times less power. At 8 m on 5 GHz, your phone receives about -53 dBm. That's roughly five billionths of a watt, and it still counts as a good signal.

Distance eats signal fast. In the model's indoor formula, every time you go ten times further you lose another 30 dB, a thousand times less power. A brick wall takes 10 to 15 dB more. As the signal sinks, the phone and router quietly agree a slower data rate, because a weak signal needs simpler, sturdier coding to survive. At 8 m in the open, 5 GHz runs at 650 Mbps and one packet spends 18.5 µs on air. Move to 30 m (about 100 ft) behind a wall and the signal drops to about -85 dBm, the rate falls to 29 Mbps, and the same packet stays on air for 414 µs, more than twenty times longer.

That hurts everyone in the house, not you alone. The channel is shared, so a phone crawling along at the far end of the house uses up airtime the TV in the hall could have had. One slow device can drag down the whole home's WiFi.

Where to put your WiFi router, going by the physics

Most routers end up wherever the line comes into the house. In an Indian flat that's often a corner by the main door or inside the TV cabinet, where the fibre technician drilled the hole; in a US house it's often a basement corner or a home office at one end. For the bedroom at the far end, that's about the worst spot there is.

Since signal falls with distance and walls, put the router as near the middle of the home as the cable allows, and up high on a shelf or wall rather than on the floor. Keep it out of steel almirahs (wardrobes) and metal cabinets and away from the back of the TV, because metal reflects radio waves. Water soaks them up, so a fish tank is a poor neighbour too. The microwave oven works at about 2.45 GHz, right inside the 2.4 GHz WiFi band, so a router near the kitchen can stutter while someone heats milk.

Stand the antennas upright. A dipole throws most of its energy out sideways from its length, flat across the floor, which is where the phones are. In a two-storey house, tilting one antenna over can help the floor above a little. If a room is still dead after all that, a second access point fed by a cable, or a mesh unit, will do more than moving the router ever will.

Router vs modem: which box does what?

Fibre homes, in India or the US (where it's spelt fiber), usually have two boxes, or one box doing two jobs. The fibre modem, called an ONT (optical network terminal), is where the thin glass fibre from the street ends. It turns pulses of light into electrical signals and back. The router is the box that makes the WiFi, gives each phone and TV its address on your home network, and decides which packet goes where.

We drew them as separate boxes joined by a 1 Gbps ethernet cable. A 1,500-byte packet takes 12 µs on that cable and about 10 µs more through the fibre stage. Many providers now hand out a single box with the fibre going straight in. It's still both machines, sharing one case and one adapter. Many US homes get broadband over the cable TV line instead, so the first box is a cable modem rather than an ONT. The router's job behind it doesn't change.

Why WiFi speed doesn't match your internet plan

The number your phone shows, 650 or 866 Mbps, is the link rate, the speed of the radio only while a packet is actually in the air. The gaps around it cost time too. If every packet went alone, as it does in our model, a 650 Mbps link would move only about 73 Mbps, because the listening, the ACK and the hand-off take longer than the data itself. Real routers bundle many packets into one burst with one reply, which wins most of that back, but real downloads still land well below the link rate.

And no WiFi can beat the pipe behind it. On a 100 Mbps plan, a perfect 866 Mbps link still downloads at 100 Mbps at best. If a laptop plugged into the router by cable is slow as well, look at the plan or the line, not the WiFi.

From the formula

Signal and speed by distance

Each cell shows signal in dBm, then link rate in Mbps, worked out from the model's own path-loss formula.

Distance5 GHz, open5 GHz, one wall2.4 GHz, open2.4 GHz, one wall
1 m (3 ft)-26 / 866-41 / 866-20 / 300-30 / 300
3 m (10 ft)-40 / 866-55 / 520-34 / 300-44 / 300
5 m (16 ft)-47 / 866-62 / 390-41 / 300-51 / 270
8 m (26 ft)-53 / 650-68 / 260-47 / 300-57 / 216
10 m (33 ft)-56 / 520-71 / 130-50 / 300-60 / 216
15 m (49 ft)-61 / 390-76 / 58-55 / 216-65 / 108
20 m (66 ft)-65 / 260-80 / 29-59 / 216-69 / 108
30 m (98 ft)-70 / 130-85 / 29-64 / 162-74 / 54

Signal = 20 dBm minus 40 dB (2.4 GHz) or 46 dB (5 GHz) for the first metre, minus 30 dB for every tenfold increase in distance, minus 10 or 15 dB for a brick wall. Rates are rounded 2x2 steps. A real home can be several dB better or worse.

Inside the box

From antenna to fibre, twelve parts

Every one is labelled in the 3D lab. Turn the model to find them.

Exploded view of the parts of a wifi router
Illustration of the main parts. Find each one moving in the 3D lab.
  1. Antennas
  2. Antenna cables
  3. Radio chip (2.4 GHz)
  4. Radio chip (5 GHz)
  5. Processor
  6. Shield cans
  7. Circuit board
  8. Ethernet port
  9. Ethernet cable
  10. Fibre modem (ONT)
  11. Fibre line
  12. Phone antenna
Try it

Walk away from the router in the 3D lab

Six moves that show everything on this page.

  1. Leave Distance at 8 m on 5 GHz. The Signal readout shows about -53 dBm, good, and Data rate shows 650 Mbps.
  2. Drag Distance out to 30 m. The rate drops to 130 Mbps and Frame airtime grows from 18.5 µs to about 92 µs, so the burst of waves in the air gets visibly longer.
  3. Press Add a wall. At 30 m on 5 GHz the signal sinks to about -85 dBm, the rate to 29 Mbps, and each packet now spends 414 µs on air.
  4. Press Switch band. On 2.4 GHz behind the same wall you get about -74 dBm and 54 Mbps, nearly double. The drawn waves stretch from 6 cm to 12.5 cm.
  5. Press Remove the wall and drag Distance back to 2 m, then switch bands again. Up close, 5 GHz wins easily, 866 Mbps against 300.
  6. Turn off the Casing layer to see the two radio chips under their metal shield cans, then pick the slowest speed, 1/100000, and watch the quiet gap, the packet and the ACK one at a time.
Signal myths

WiFi beliefs that don't hold up

Full bars don't mean fast internet. Bars show how strong the radio link to the router is; your plan and the line behind the router set the ceiling.

5 GHz is not always the better choice. In our model, behind one brick wall 2.4 GHz is faster past about 9 m, because it loses less in the wall.

The router and the fibre modem are not the same machine, even when they share one box. The ONT handles the light from the street; the router makes the WiFi.

Hiding the router in a cabinet isn't harmless tidying. A closed steel or wooden cabinet, plus a corner position, can cost a far room most of its signal.

People ask

WiFi questions from real homes

Short, straight answers. Open one to read it.

Does WiFi go through walls?

Yes, but every wall takes a cut. In our model one brick wall costs 10 dB on 2.4 GHz and 15 dB on 5 GHz, which is ten times and about thirty times less power. Thick concrete with steel rods takes more, and a sheet of metal blocks almost everything.

How far does WiFi reach?

Indoors, a typical home router covers a flat or one floor of a house well, roughly 10-12 m (30-40 ft) in each direction, and gets patchy two or three walls away. In our model the link never fully drops within 30 m (98 ft), but at that distance behind a wall on 5 GHz it's down to 29 Mbps. Open air carries further than a house full of walls and furniture.

What is a good WiFi signal strength in dBm?

Closer to zero is stronger. Our model calls -50 dBm or better excellent, down to -60 good, down to -70 fair, and anything lower weak. Video calls and streaming are usually comfortable above about -70 dBm.

How many devices can connect to WiFi at once?

Dozens can stay connected, and the exact limit depends on the router, so check its manual. But only one device talks on a channel at any instant. They take turns so quickly that it feels simultaneous, which is also why one slow, far-off device can slow the rest.

Why does my WiFi drop when the microwave is on?

A microwave oven works at about 2.45 GHz, inside the 2.4 GHz WiFi band, and a little of its energy leaks past the door. Devices near the kitchen on 2.4 GHz can slow down or stutter while it runs. Moving those devices to 5 GHz avoids it.

Is WiFi radiation harmful?

WiFi uses non-ionising radio waves, which don't carry enough energy to break chemical bonds the way X-rays can. A home router transmits about 0.1 W, and across a room only billionths of a watt reach you. Home WiFi sits far below the exposure limits set by health and safety bodies.

Is ethernet better than WiFi for gaming?

Usually, yes. An ethernet cable gives the console or PC its own 1 Gbps line with no turn-taking, no walls and no interference, so the delay (latency) is lower and steadier. WiFi is fine for most streaming, but for online games a cable is the safer bet.

Is mesh WiFi better than an extender?

Usually. A basic extender repeats each packet over the same air it heard it on, so it spends airtime twice and the far room gets maybe half the speed. A mesh system's units talk to each other on a separate radio or a cable, which wastes far less. If you can run a cable to a second access point, that beats both.

Jargon

Router words in plain English

dBm
Signal power in decibels compared with one milliwatt; 20 dBm is 100 mW, and every 10 dB lower is ten times weaker.
Link rate
How fast the radio sends while a packet is on air, not the download speed you actually get.
Packet
One chunk of data, up to 1,500 bytes, sent as a single burst and checked on arrival.
ACK
The tiny acknowledgement the receiver sends back to say a packet arrived intact.
CSMA/CA
The listen-before-talk rule that lets many devices share one WiFi channel by taking turns.
Band
The slice of radio frequencies WiFi uses, around 2.4 GHz or around 5 GHz.
Dipole antenna
A rod about half a wavelength long that sends radio waves out mostly sideways from its length.
ONT
Optical network terminal, the fibre modem that converts light from the street into signals your router can use.
Remember

Three things to take away

  • 5 GHz is faster up close; 2.4 GHz reaches further and gets through walls better.
  • Only one device talks on a channel at a time. WiFi takes turns by listening first.
  • Speeds shown are link rates. Real downloads are lower, and never faster than your internet plan.
Your turn

Tell us what to build next

Name a machine you have always wondered about. We build the most requested ones first.

We read every idea. The most asked-for machines get built first. See our privacy policy.