← Networks

Wired or wireless

Links between computers differ in three ways: bandwidth (how much data each second), latency (the delay for each packet) and reliability (how many packets get lost). Cables usually win on all three; Wi-Fi gets slower and less reliable with distance and walls. Which matters most depends on the job.

Gamers plug in a cable; everyone else uses Wi-Fi. Is the cable really better, and better at what?

A network joins computers so they can send data to each other. The link between two of them can be wired (a cable) or wireless (Wi-Fi, mobile data). Three properties describe how good a link is:

PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.

Cable or Wi-Fi?

You download a 50 MB game update. Laptop A is plugged into the router by a cable. Laptop B uses Wi-Fi two rooms away. Which finishes first?

TryTry it on the board and compare the result with your prediction.

Try: compare the links

Was your prediction right? Try Mobile too.

Try it yourselfYour edits are saved in this browser.

Note the cable's numbers. Then switch to Wi-Fi and add two walls. How long does the file take now?

Use the board. This ticks when you get there.

InvestigateWork out why it happens, one step at a time.

Worked example: three properties

Worked exampleBefore each step, say what you think comes next.
  1. 50 MB×8=400 megabits50 \text{ MB} \times 8 = 400 \text{ megabits}Speeds are in megabits a second, so change bytes to bits.

Now work out a file's time at 100 Mb/s.

A link carries 100 Mb/s. How many seconds does a 50 MB file take? (A byte is 8 bits, so 50 MB is 400 megabits.)

Sam plans to fix a laggy game. Click the line where the reasoning first goes wrong.

Why does Wi-Fi lose more packets than a cable?

ModifyChange the problem on purpose and see what happens.

Vary: one change at a time

Try it yourselfYour edits are saved in this browser.

Switch to Wi-Fi with no walls. Move the distance to 40 m.

Use the board. This ticks when you get there.

Come back to 5 m and add three walls.

Use the board. This ticks when you get there.

Switch to Mobile. Which property is much worse than Wi-Fi close by?

Use the board. This ticks when you get there.

For online gaming, which link is best?

PractiseA few on your own, to check you have it.

Which property?

Streaming a 4K movie needs lots of data every second. Which property matters most?

A video call keeps freezing and voices arrive late. Which properties are the problem?

How many seconds does a 100 MB file take over a cable at 1000 Mb/s?

Review: how many bits is one byte?

MakeMake your own problem using what you have learned. Expect a few tries; that is normal.

Good-enough Wi-Fi

Then: where in your house or school is the worst place to sit, and why?

Try it yourselfYour edits are saved in this browser.
Need a hint?

Distance and walls both slow Wi-Fi.

Another hint

Keep the wall, but move the laptop closer to the router.

Another hint

Within about 15 m with one wall is fast enough.

The laptop must stay on Wi-Fi behind at least one wall. Change the setup so the 50 MB file takes less than 3 seconds.

Use the board. This ticks when you get there.

For teachers

Students compare cable, Wi-Fi and mobile links on a board to describe bandwidth, latency and reliability, work out file times, and match links to jobs such as gaming, streaming and file transfer (AC9TDI8K02 node 1). About 40 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

Before class

Try the board yourself: switch link types and move the sliders.

The model is simplified and says so: cable 1000 Mb/s, 1 ms, nothing lost; Wi-Fi up to 300 Mb/s, losing speed with distance and walls; mobile 50 Mb/s, 40 ms. Real numbers vary a lot with equipment; the comparisons are what matter.

Hands-on: run a speed test on a school laptop on Wi-Fi and on a cable (if a port is available) and compare download speed and ping.

Running the lesson

  1. Predict: students who chose "about the same" may have fast home Wi-Fi; ask what the walls do.
  2. Try: have students write down all three numbers for cable, then for Wi-Fi.
  3. Worked example: ask why speeds are in megabits but files are in megabytes.
  4. Vary: ask which is worse, 40 m or three walls.
  5. Make: compare setups: who kept the most walls?

The hard part (on purpose)

Bandwidth and latency get treated as one 'speed'. Use the road picture: bandwidth is how many lanes, latency is how long the trip takes.

When students get stuck

Stretch and support

Stretch: Why do some country towns rely on satellite or mobile internet? What does that mean for latency and for school video calls?

Support: A card with the three words and a job for each: bandwidth (streaming), latency (gaming), reliability (everything).

Where it leads

Next: Packets (how a message actually travels, and what happens to lost packets).

Where it leads: the internet journey lesson uses both wired and wireless links in one trip.

What each step is for

Now you can
Next lesson2. PacketsData is sent as small numbered packets, not one long stream. You watch a message go to pieces, invent your own fix, then put names to it: routers pass packets on by different routes, numbers put them back in order, and TCP has the receiver confirm each one so a lost packet is sent again.