How WiFi works, in 3D animation. How does WiFi work, and how does a WiFi signal travel through the air and through walls? We open up a phone and a router to see how radio waves carry data.
We slow one tap of play right down and follow it the whole way: out of your phone, across the room, into the router and back. You'll see what the 2.4 on your router means, why walls and even the microwave get in the way, how your phone finds a network, and what your earbuds are doing in the same air.
Chapters 0:00 How WiFi works 0:54 What a WiFi signal is 3:10 How radio waves carry data 7:28 Inside a WiFi router 8:37 How your phone connects to WiFi 9:35 Why routers have several antennas 10:32 2.4 GHz vs 5 GHz vs 6 GHz 12:05 How WiFi goes through walls 13:35 Microwaves and WiFi 15:35 How devices share one WiFi network 17:33 How Bluetooth earbuds work 19:11 How a WiFi password protects you
0:00 How Wi-Fi Works: The Basics of Radio Waves and Data Transmission
8:30 The Role of Wi-Fi Bands: 2.4 GHz, 5 GHz, and 6 GHz
11:50 How Walls, Microwaves, and Other Obstacles Affect Wi-Fi Signals
15:02 Managing Network Congestion and the Coexistence of Wi-Fi and Bluetooth
18:30 The Security of Wi-Fi: From Scrambling to the Albert Gonzalez Hack
21:54 Modern Wi-Fi Security: WPA3 and Protecting Open Networks
24:15 The Future of Wi-Fi and How It Powers Our Connected World
This video explores the science of Wi-Fi, explaining how radio waves transmit binary data through modulation. It covers the physics of electromagnetic waves, the role of routers and antennas, the challenges of interference and physical obstacles, and the evolution of security standards to prevent data theft.
Let's look at how Wi-Fi actually works.
Everything you watch crosses this room with no wire,
through what looks like empty air.
But this room is full of waves, invisible ripples,
pouring out of this little box.
This box sends out 2.4 billion of them every second.
That's the 2.4 you may have seen on a router.
And hidden inside those ripples is your video.
It feels like magic.
It isn't.
In this video, we'll see how a phone
and a router turn everything you do into waves,
and back again. How those waves get through walls, past the microwave,
past the neighbors, and out into the street.
How a password keeps them private. And how a man in
a car with a laptop used the Wi-Fi of big stores
to steal millions of credit card numbers. And
who he turned out to be.
Let's slow one moment right down. You tap play.
Inside your phone, a tiny radio goes to work.
Wi-Fi is radio, the same kind of signal a car radio picks up.
This one is wired to an antenna, a small strip of metal.
And from that metal, a wave spreads out across the room.
But a wave of what?
You'd probably guess the air.
I would have.
It isn't the air.
Air is a gas.
And this wave isn't made of air.
It's a ripple of electricity and magnetism.
The same forces that hold a magnet to your fridge
and make your hair stand on end when you rub it with a balloon.
It passes through the air the way the light from this lamp does.
In fact, it's the same kind of thing as that light.
It's just a kind your eyes can't see.
So take every bit of air out of this room
and your Wi-Fi would still get through.
Waves like this can even cross the emptiness of space.
And how does a strip of metal make one?
Metal is full of electrons,
the tiny particles that carry electricity.
The radio pushes them along the antenna
and pulls them back, again and again.
And when electrons are shaken like that,
they send out a wave.
One shake, one wave.
On the oldest kind of Wi-Fi, the kind we'll follow first,
the radio does that 2.4 billion times every second.
So that's where the 2.4 on a router comes from.
Its full name is 2.4 gigahertz.
And gigahertz just means billions of waves a second.
So where is that strip of metal?
Let's cut the phone open. Under the screen is the battery.
Beside it is the main board,
the phone's brain. And on that board are its radio chips.
But the antenna isn't on the board.
On some phones, you've been holding it all along.
Look at the metal frame around the edge.
These thin gaps split the frame into separate pieces.
And some of those pieces are the antennas.
That's why the gaps are there.
A solid ring of metal would get in the way of the waves.
So the designers cut the frame into parts
and put some of the parts to work.
So on a phone like this, when you tap play,
the radio chip shakes the electrons in the phone's own edge
and the wave leaves from right under your fingers.
What would that wave look like if you could see it?
Here's the surprise.
It isn't tiny.
From the top of one ripple to the top of the next,
it's about 5 inches, or 12 and a half centimeters.
You could hold one in your hand.
And it's fast. It moves at the speed of light,
because it's a kind of light.
That's fast enough to go around
the Earth more than seven times in a single second.
The wave spreads out as it goes, getting fainter all the time.
But a small part of it lands here, on the antennas of the router.
Now, the whole thing runs backwards.
The wave pushes the electrons in the router's antenna back
and forth, in step with it.
The ripple has turned back into electricity.
The router has heard your phone.
Radio waves were first made and caught like this back in the 1880s.
And so far, we've done no more than that.
All we've sent is a steady wave.
Every ripple is the same as the last.
It isn't a video.
It isn't even the word play.
So how do you put a message on a wave?
It starts with what a video really is.
Everything on your phone — every photo, every song, every video —
is stored as long strings of ones and zeros.
So the radio's real job is to send ones and zeros.
And it does that by changing the wave.
It can make a ripple taller or shorter.
And it can shift its timing,
so a ripple arrives a little early or a little late.
Each mix of height and timing makes a different shape.
And each shape stands for its own pattern of ones and zeros.
Today's Wi-Fi can use 1,024 different shapes.
With only two shapes, a shape could stand for just a one or a zero.
With 1,024, every shape stands for 10 of them at once.
The very newest Wi-Fi packs the shapes in even tighter
and carries about 20% more.
But there's a catch.
The more shapes there are, the more alike they look.
Close to the router, the signal is strong and clear,
and your phone can tell every shape apart.
Move a few rooms away, and the wave arrives fainter.
Now the shapes are harder to tell apart, and mistakes creep in.
So your phone and the router switch to fewer, simpler shapes.
Each one carries less, but it's much harder to get wrong.
That's one reason your Wi-Fi slows down
as you walk away from the router.
There's a bigger problem than distance, though,
and it held early wireless networks back.
Indoors, a wave doesn't only travel straight
from the router to your phone.
It also bounces off the walls, the floor, the furniture.
So the same signal arrives several times over.
First, the direct wave.
Then, a moment later, its echoes.
It's like listening to someone speak in a big, echoing hall.
If they talk slowly, you can follow every word.
If they talk fast,
each word is buried under the echo of the one before.
And a wireless network has to talk fast.
So the echoes of one shape would land right on top of the next one.
Lots of companies were stuck on this.
A fix came in the 1990s from a team
at Australia's National Science Agency.
They used what they knew from radio astronomy.
The study of space by its radio waves.
Their fix works like this.
Don't send one fast stream.
Split the data across many slow streams, side by side.
Each stream is so slow that a shape's echoes arrive
while that same shape is still being sent.
They land on it, not on the next one.
But add all the streams together and the data still moves fast.
Think of one racing lane turned into a wide road of slow lanes.
The team patented it, and it's now built into billions of devices.
Wi-Fi still works this way.
Each network sends on its own slice
of the radio waves, called a channel.
For years, a standard channel was split into 64 narrow lanes.
Newer Wi-Fi splits it into 256.
And on every one of those lanes,
a new shape goes out tens of thousands of times a second.
Add them all up, and that's millions of shapes every second,
all headed for your phone.
Those lanes will come back later, to solve another problem.
Now for the box that all of this goes through.
Let's cut the router open.
It looks simple from outside, but a router is really a small computer.
This is its processor, and this is its memory.
These metal covers are shields. Lift them off, and here are the radios.
There's a separate one for each band of Wi-Fi,
each range of waves it uses.
We'll come to those later.
Right beside each radio is an amplifier.
It boosts the radio's signal just before it goes
to the antennas, but not by much.
On the 2.4 band,
U.S. rules limit a Wi-Fi radio to one watt.
Hold on to that number.
Something in your kitchen is going to make it look very small.
Then come the antennas, each one wired back to its radio.
And at the back are the sockets for cables.
One is for the cable that comes in from outside.
Because the router isn't the internet.
It's only the last step.
Everything it sends you arrived through that cable first.
So this box has two jobs.
It passes everything between that cable and your devices.
And it turns it all into waves.
And back again.
But how did your phone
and this router find each other in the first place?
It starts with your phone calling out.
It sends a short message to anything in range,
asking what networks are out there.
Every router that hears it answers.
Each one sends back the name of its network,
how fast it can talk, and what kind of lock it uses.
That's where the list of networks on your phone comes from.
And it's why the neighbors' networks are on it, too.
You pick yours, and your phone asks to join. If everything matches,
the router says yes and gives your phone an ID number of its own.
Can anything pass between them?
On a locked network, there's one more step, the password.
We'll come to that.
So every router in range answers,
whether it's yours or not.
Keep that in mind.
It's what a man in a car was looking for
outside some of America's big chain stores.
All of this happened long before you tapped play.
So let's get back to those antennas.
Why does a router need so many of them?
Remember the echoes?
Here they come back.
And this time, they help.
With several antennas,
a router can send several separate streams of data at the same moment.
Each stream takes its own path across the room,
bouncing off different walls on the way.
A phone or a laptop with several antennas
of its own can tell those paths apart.
So it untangles the streams and puts the data back together.
Two streams carry about twice as much as one.
So the echoes that once ruined the signal
Now help to carry it.
And several antennas have one more trick.
Working together, they can focus a signal toward your phone
and steer it away from the other devices.
That means a router can talk to several devices
in the very same instant.
One stream is aimed at your phone,
another goes to the TV,
another to a laptop upstairs.
Newer Wi-Fi can serve up to eight devices this way,
all at once.
So far, we've followed a wave that ripples 2.4
And here's the thing, that's the slow band.
A band is just a range of waves that Wi-Fi is allowed to use.
Most routers use two of them, and the newest use three.
The second band is 5 GHz.
The third, and the newest, is 6.
A wave that ripples faster is a shorter wave.
The wave you could hold in your hand was on the 2.4 band.
On the 6 band, a wave is less than half as long,
about 2 inches, or 5 cm.
So why add more bands?
For room.
The 2.4 band is narrow.
Each network's channel is a slice of it.
And in the US, there's only space
for three channels that don't overlap.
Everybody's Wi-Fi piles onto them,
along with a few other things we'll meet soon.
The higher bands are far wider.
When the US opened the 6 GHz band to Wi-Fi in 2020,
it added about 14 times as much room as the whole 2.4 band.
More room means wider channels,
and a wider channel carries more data at once.
So your devices can use the higher bands
for the heavy work, like video,
and leave 2.4 for simpler jobs.
The newer the Wi-Fi, the more of this room it can use.
That's what the names on the box are for.
Wi-Fi 5, Wi-Fi 6, Wi-Fi 7.
Each one is a newer generation.
But the higher bands have a weakness and it's about to matter
because our wave has just reached a wall.
So, what happens when a wave meets a wall?
Some of it bounces back.
Some of it is soaked up inside the wall.
And the rest carries on through.
How much gets through depends on what the wall is made of.
A U.S. government lab tested building materials
with radio waves close to Wi-Fi's.
A sheet of drywall, half an inch thick,
took only about 6% of the signal.
Wood and glass took more.
A thick brick wall was much worse.
Less than half the signal got through it, only about 40%.
And concrete soaked up the most of all.
So the wave from your router is weaker after every wall.
And as we saw, a weaker wave means simpler shapes and slower Wi-Fi.
The higher bands have it worst.
The 2.4 band travels farther than the 5 band
and gets through walls better.
So that's the trade.
The higher bands are faster up close.
But it's 2.4 that reaches the far end of the house.
Where nothing reaches, you get a dead spot.
One fix is a mesh system.
Several boxes are spread around the house,
working together as one network.
And they guide your phone to whichever box suits it best.
But notice something else.
The waves don't stop at your outside walls either.
They carry on, into the street
and into the house next door.
That's exactly what the man in the car was counting on.
One material does stop these waves, though.
Metal reflects them.
And that brings us to the kitchen.
A microwave oven is a metal box.
built to keep waves in,
and its waves are almost the same as Wi-Fi's.
In the US, a range of waves is set aside
for machines like microwave ovens,
and Wi-Fi's whole 2.4 band sits inside that range.
Inside the oven, a part called a magnetron makes the waves.
They bounce around the metal walls,
and they make the water molecules in your food vibrate,
which heats it up.
The difference is power.
Under U.S. rules, your router's radio is limited to one watt.
The oven in one lab test was rated at 700.
The metal box keeps nearly all of that inside.
Only a tiny amount is allowed to leak.
But even a tiny leak can be enough to drown out Wi-Fi.
In that test, researchers ran the oven
while a Wi-Fi connection was downloading a file.
The oven's leak spilled across the upper half
of the Wi-Fi channels.
It came in bursts, about 50 times a second.
At the slowest Wi-Fi speed,
a message took longer to send
than the gap between two bursts.
So nearly every message was damaged.
But Wi-Fi checks every message.
Each time one arrives, the receiver sends back a quick,
got it.
If the sender doesn't hear that, it sends the message again.
So a noisy channel doesn't give you a garbled picture.
It gives you a slow one.
So if your video stutters while someone heats up their lunch,
it really can be the microwave.
It's one more reason to use the higher bands when you can.
And it isn't only Wi-Fi.
At the Parkes Radio Telescope in Australia,
strange bursts of radio waves kept turning up in the recordings.
The earliest were recorded in 1998, and nobody could explain them.
In 2015, astronomers found the source.
It was the site's own microwave ovens,
like the one in the staff kitchen.
The bursts appeared when someone opened
the door before the oven had finished,
and they bunched up around lunchtime.
The microwave is one noisy neighbor,
but your Wi-Fi has a much bigger crowd to deal with itself.
Think of everything in this house that's on Wi-Fi.
The phones, the laptop, the TV.
And they all share the same few channels with the router next door.
Here's the problem.
On any one channel, only one device can send at a time.
The router can send to several listeners at once, as we saw.
But if two devices send at once,
their waves collide, and both messages are spoiled.
So every Wi-Fi device follows the same polite rule.
Before it sends anything,
It listens.
If the channel is quiet, it goes ahead.
If it hears somebody else, it backs off,
waits a short random time, and listens again.
Sharing one radio channel between many devices goes back
to 1971 in Hawaii,
where a network called AlohaNet linked computers across
the islands by radio.
Its own way of sharing is still used today by phones,
satellites, and Wi-Fi to make a first connection.
But taking turns has a cost.
Your neighbors count too.
If their router is on your channel,
your devices have to wait for theirs as well.
That's why the crowded 2.4 band, with its three clear channels,
is a poor choice wherever lots of networks are packed in together.
Newer Wi-Fi has a smarter answer.
Remember the lanes? The 256 narrow lanes inside one channel?
Instead of giving the whole channel to one device at a time,
the router can hand a group of lanes to each device
and talk to several of them at once.
A big download gets a lot of lanes, a quick message gets just a few,
and a device with nothing to say can go quiet.
Your phone and the router can agree
on set times for its radio to wake up.
In between, the radio sleeps.
That saves the battery,
and it leaves the channel free for everyone else.
There's one more thing squeezed into the 2.4 band,
your earbuds.
Let's open one up.
There's a tiny battery, a speaker, a chip,
and an antenna of its own.
It doesn't use Wi-Fi.
It uses Bluetooth, a different kind of radio,
built for short distances and very little power.
But it uses the very same band.
So how does it fit in?
It never sits still.
Bluetooth splits the band into 79 narrow channels,
and it hops between them up to 1,600 times every second.
A tiny piece of your music goes out on one channel,
then a hop.
The next piece goes out on another.
Your phone and your earbuds follow the same pattern,
so they always land in the same place.
And if some of those channels keep failing,
say, because your Wi-Fi is on them,
Bluetooth can drop them from the pattern and hop around them.
There's also a low-energy kind of Bluetooth, with 40 wider channels.
It's the same band and the same hopping idea.
And that idea is older than you'd think.
In 1942, a composer, George Antile, and a Hollywood star, Hedy Lamarr,
patented a secret way to steer a torpedo by radio.
Its signal hopped between channels, following a roll of punched paper,
like the rolls in a player piano.
Bluetooth doesn't use their design, but it's the same idea.
So that's your music, hopping around underneath your video.
One question is left. Who else can pick all this up?
A man with a laptop asked that question,
sitting in a car outside some of America's big chain stores.
But first, the lock that was meant to stop him.
Think about where all these waves go.
They don't stop at your walls.
So your neighbor's laptop picks them up.
And so could anybody sitting in a car outside.
With a wire, a snoop would have to break in.
With Wi-Fi, they only have to be in range.
So what stops them watching what you watch?
Scrambling.
Before your router sends you anything,
it scrambles it using a secret key.
Your devices can only get that key if they know your Wi-Fi password.
To everybody else, your video is just noise.
But a lock is only as good as its design.
And the first lock built into Wi-Fi had flaws.
Someone who listened for long enough could collect
enough scrambled data to work out the key.
Then they could read everything and join the network themselves.
A stopgap fix arrived in 2003.
And a much stronger lock a year later.
But having a better lock isn't the same as using it.
And some networks were still easy to get into.
Including the ones inside some very big stores.
Albert Gonzalez was from Miami.
He and the people working with him went out driving.
They took a laptop.
And they weren't really going anywhere.
They were driving near big stores,
watching the laptop for wireless networks that weren't properly locked.
There's a name for that.
It's called war driving.
Why would a store's network matter?
Because behind the scenes, stores had wireless networks of their own.
And those networks led to the computers that handled card payments.
From the car, the group got into those networks.
Nobody had to break into a building.
The store's own waves had come out through the walls to meet them.
And these were major American chains.
They included TJX, OfficeMax, Barnes & Noble, and BJ's Wholesale Club.
Once they were inside a network,
they planted small programs called sniffers.
A sniffer sits quietly on a network and copies what goes past.
These ones were set to catch card numbers
as they moved through the store's payment systems.
A single sniffer could catch a lot.
In a separate attack on a restaurant chain,
prosecutors said one sniffer,
in one restaurant, caught the details of about 5,000 cards.
And those cards alone cost me a lot of money.
cost the banks at least $600,000.
At TJX, according to U.S. regulators,
customers' information was being sent around its networks
in clear text.
It wasn't scrambled at all.
The numbers poured in.
In the end, more than 40 million credit
and debit card numbers were stolen.
Prosecutors said the group hid them on computers in Eastern Europe
and the United States.
They sold card numbers to other criminals,
and some were turned into working cards.
The stolen details were written onto
the magnetic stripes of blank cards.
Those cards went into cash machines
and came back with thousands of dollars at a time.
Then, the money was moved through bank accounts in Eastern Europe.
The Justice Department called it the largest hacking
and identity theft ring the U.S. government had ever prosecuted.
The case went to the U.S. Secret Service.
It was founded to fight fake money,
and it still investigates financial crime.
And the ring was spread around the world —
the United States, Estonia, Ukraine,
For three years, undercover agents followed
the people selling stolen cards.
One seller was arrested on vacation in Turkey.
Another was picked up on vacation in Germany.
And as the investigation went on,
the agents discovered something about a man they already knew.
The Secret Service had arrested Albert Gonzalez back in 2003,
in another fraud case.
And he had been working for them.
He was a confidential informant.
Someone who secretly helps the agency with its cases.
So while the agency was investigating the biggest case of its kind,
one of its own informants was right in the middle of it.
And the Secret Service said he wasn't just involved,
he was the mastermind.
Gonzalez pleaded guilty, and in 2010,
he was sentenced to 20 years in prison.
Prosecutors called it one
of the longest sentences ever given for hacking.
And the stores?
U.S. regulators said TJX hadn't used readily available security
to limit wireless access to its networks.
TJX settled.
It agreed to a full security program,
checked by outside auditors every other year, for 20 years.
So, could that happen to your Wi-Fi at home?
Today, every certified Wi-Fi device has to support strong scrambling.
The latest lock is called WPA3.
It's built to hold up against somebody guessing your password,
even if your password isn't a great one.
And the Wi-Fi in a coffee shop, with no password at all?
Newer devices can now protect your data
on open networks like that, too.
So the lock is there, but it only protects a network that uses it.
With a good password on yours,
a car outside picks up nothing but noise.
Back on the sofa, almost no time has passed.
You tapped play. A radio shook the electrons in your phone's antenna.
A wave crossed the room at the speed of light,
bouncing off the walls on the way.
The router caught it and sent your request down a cable.
And your video came back the same way, scrambled,
cut into shapes, spread across hundreds of lanes,
and waiting its turn among the neighbors.
Wi-Fi keeps changing.
The first Wi-Fi, back in 1997,
was more than a thousand times slower than what you can buy today.
The newest kind, Wi-Fi 7, doubles the width of the widest channel.
And it lets one device send
and receive over several connections at once.
At the last count, there
were more than 21 billion Wi-Fi devices in use.
That's more than two for every person on Earth.
And every one of them is sending out invisible ripples,
billions of times a second.
It still feels like magic.
But now you know how the trick is done.
If you enjoyed this one, give it a like and subscribe.
Thanks for watching!