Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

Bandwidth and latency

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

45 minutes

Fast downloads, but the game lags

Your friend says: "My internet is fast. I download a film in a minute. But my online game lags and my video call freezes."

Is the internet fast or slow? It depends on what you measure. A network is a group of computers joined together, and it has two different speeds.

Bandwidth is how much data a connection carries each second. Latency is how long one piece of data takes to arrive.

Key words

WordWhat it meansExample
BandwidthHow much data a connection can carry each second.100 Mbps
LatencyThe time one piece of data takes to travel from one device to another.30 ms
BitOne 1 or 0, the smallest piece of data.1
ByteA group of 8 bits.One letter
MbpsMegabits per second. The unit for bandwidth. More is faster.80 Mbps
MillisecondOne thousandth of a second. Written ms.30 ms
PingA test that sends a small message and times how long the reply takes.ping 10.0.12.1
PacketA small piece of data sent over a network, with an address on it.One part of a photo
RouterA device that joins networks and sends packets the right way.A home router
NetworkComputers joined together to share data.The college network

The cells students fill in are left blank in this preview.

A road picture

BandwidthLatency
In the pictureHow many lanes the road hasHow long the road is
MeaningHow much data per secondHow long one packet takes to arrive
UnitMbps or GbpsMilliseconds (ms)
Good isHigh (more lanes)Low (a shorter road)
Hurts mostBig downloads and streamingGames, video calls and remote desktops

The cells students fill in are left blank in this preview.

Quick check

Have a go

Quick check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Extra: Bits and bytes

File sizes use bytes. Line speeds use bits. One byte is 8 bits.

So a 100 MB file is 100 times 8, which is 800 megabits. That is why a 100 Mbps line does not download 100 MB in one second.

Extra: Small b or capital B?

data-callouts.warning.label

A small b means bits. A capital B means bytes. So Mbps is megabits each second, and MB is megabytes. Shops and phones often show both, so look closely.

Extra: Worked example: download time

StepWhat to doResult
1The file is 100 MB. The line is 80 Mbps.
2Change megabytes to megabits: 100 times 8800 megabits
3Divide by the speed: 800 divided by 8010 seconds
4Check: 10 seconds at 80 Mbps is 800 megabitsIt matches

The cells students fill in are left blank in this preview.

Extra: Try it: download time

Code: python
size_mb = 100        # file size in megabytes
speed_mbps = 80      # line speed in megabits per second

size_megabits = size_mb * 8
seconds = size_megabits / speed_mbps
print("The download takes", seconds, "seconds.")

# Change the speed to 160. What happens to the time?

The lesson goes on

10 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.