← Networks

Packets

Data 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.

The internet never sends your message in one piece. So how does it ever arrive whole?

Your mission: get the message MEET AT NOON to your friend Ali, across a network of six routers. One of them, router C, is busy.

EngageCommit to a prediction before you test anything. A wrong guess is fine: it shows you what to look for.

Engage: one message, many pieces

When you send a message, a photo or a video, it is chopped into small pieces. The pieces travel separately, through computers run by other people, and some of those computers are busy. There is no right answer yet: write what you think.

The internet never sends a message in one piece. MEET AT NOON is chopped into 4 pieces, and each piece finds its own way to Ali through routers, some of them busy. What could go wrong on the way? Write your best guess.

ExploreTry it on the board and compare what happens with your prediction.

Explore: what happens to the pieces?

Your guess from the start is beside the board. Compare it with what happens.

Try it yourselfYour edits are saved in this browser.

Send the message at least three times. Follow the pieces: which way does each one go, and what does Ali get?

Use the board. This ticks when you get there.

Sort what you saw on the board.

The pieces took different routes to Ali
A piece went missing at router C
The pieces arrived in a different order from how they left
The routers put the pieces back in order
Ali's computer showed where a piece was missing
The missing piece was sent again

Try your own changes: a different piece size, or click a link to break it. Send after each change. What makes things better, and what makes them worse?

Use the board. This ticks when you get there.

ExploreTry it on the board and compare what happens with your prediction.

Explore: invent a fix

There is more than one way to get the message there. Find two.

Need a hint?

What would Ali's computer need on each piece to know where it goes?

Another hint

Numbers put the pieces in order, and show a gap where one is missing. What could fill the gap?

Another hint

Switch on Numbers and Ask again, then send.

Need a hint?

The trouble starts at router C.

Another hint

Click links to break them so that no piece can go near C.

Another hint

Break the link from C to E, then send.

Try it yourselfYour edits are saved in this browser.

Get MEET AT NOON to Ali exactly, with every link working and router C still busy. Use the switches however you like.

Use the board. This ticks when you get there.

Now find a different way, with both switches off.

Use the board. This ticks when you get there.

ExplainPut a name to what you saw, and why it works.

Explain: what you invented has names

Before you see any new words, write how your first fix worked, your own way. Notes are fine. Then compare with a model.

What you invented has names. The pieces are packets: each carries a piece of the data, a number and the address it is going to. Routers are the computers along the way; each one reads a packet's address and passes it on. When Ali's computer confirms a packet, that is an acknowledgement. Your Ask again switch was TCP: the set of rules that has the receiver acknowledge each packet, so any packet never acknowledged is sent again. Your first fix, step by step:

Worked exampleBefore each step, say what you think comes next.
  1. MEE | T⋅A | T⋅N | OON\text{MEE | T·A | T·N | OON}Split into 4 packets of 3 characters (· is the space). Each gets a number: 1 to 4.

In your own words: how did your first fix get the whole message to Ali, in order, with every link working? Say what each piece carried and what Ali's computer did.

Why was only piece 2 sent again?

Match each name to what you did on the board.

Packet
Router
Acknowledgement
TCP

Your second fix, cutting off router C, also worked, with no numbers at all. Why does the internet use numbers and resending instead?

Sam explains what happens to a lost packet. Click the line where it first goes wrong.

ElaborateUse the idea in a new situation.

Elaborate: when the network breaks

Try it yourselfYour edits are saved in this browser.

Roadworks cut the cable from D to E. Click that link to break it, then send. Now every packet has to go through busy C. Does Ali still get the message?

Use the board. This ticks when you get there.

How much can break before Ali is cut off? Break links until nothing can reach Ali, then try to send.

Use the board. This ticks when you get there.

A live video call doesn't wait for lost packets: it doesn't use TCP. A packet goes missing during a call. What do you notice?

EvaluateLook back at your first ideas and what changed.

Evaluate: look back

A download sits at 99% for a few seconds, then finishes. What was probably happening?

For teachers

A full 5E lesson (AC9TDI8K02 node 2). Students write what they think will go wrong, watch a message go to pieces on the board (no fixes, nothing named), invent their own fix with two plain switches (Numbers, Ask again) and find a second fix by avoiding busy router C. Only then do they explain it in their own words and meet the names: packet, router, acknowledgement, TCP. Elaborate takes the idea to broken links and live video. About 45 minutes.

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

Students will be able to

Before class

This is inquiry first (5E): students explore and invent before anything is explained. The words packet, acknowledgement and TCP appear only in Explain, after students have written their own explanation. If you usually teach explicitly, this is the lesson to try the difference.

Try both Explore boards yourself. The first has no fix: Ali always gets a jumbled message with a gap. The second has two switches, Numbers and Ask again (TCP, not yet named); the goals can be met two ways (both switches with every link working, or no switches with C cut off).

Engage works well unplugged first: cut MEET AT NOON into four strips with no numbers, hand them out across the room, have students pass them to an "Ali" by different paths, and keep one strip "lost". Ask Ali to read out what arrived. Then have students write their guesses.

Explain: let students write first, then share two or three explanations before anyone opens Give it names. Then name each part of what they did on the projector, and reveal the worked lines. The "Explain it to me" drawer opens once Engage is answered and uses the names, so ask students to leave it until after Explain.

Simplifications: real packets carry about 1500 bytes, and real TCP uses acknowledgement numbers and timers; the board waits until everything else has arrived before asking again. Without numbers the board's Ask again gives up, since TCP needs sequence numbers to know what is missing. Router C is set to be busy (slow, and it loses the second packet).

Review: open the next lesson with a quick question on this one, and this one with one on Wired or wireless (which link loses the most packets?).

Links: Secret messages' checksum lesson is how a receiver tells a packet was damaged.

Running the lesson

  1. Engage: read a few guesses aloud without judging. Note who pictures one pipe.
  2. Explore, first board: ask what they saw, not why. Push on the sort: did they see the routers sort anything?
  3. Explore, invent a fix: ask what Ali's computer would need on each piece. When Numbers shows a gap, ask how it could get the missing piece.
  4. Explore, switches off: if nobody thinks of breaking links, ask where the trouble starts.
  5. Explain: students write before the names. Share two explanations, then name each part.
  6. Two fixes: ask whether you would always know which router is busy.
  7. Elaborate: ask why a network has spare links, and who would rather have a glitch than a freeze.
  8. Evaluate: have students reread their Engage guess and say one thing they would change.

The hard part (on purpose)

Students expect the network to be one pipe, and want to be told the fix. Let Explore stay open: the first board has no fix on it, and the second asks them to invent one. Hold back the words packet and TCP until Explain; the names stick when they label something students already did.

When students get stuck

Stretch and support

Stretch: Video calls often use UDP, which never resends lost packets. Why is that better for a live call than waiting for a resend, and worse for downloading a file?

Support: Give the five words with a picture each: packet, number, router, route, acknowledgement.

Where it leads

Next: Who can see your data? (packets pass through routers you don't control).

Code links: micro:bit radio sends short packets; Secret messages adds checksums to them.

What each step is for

Now you can
Next lesson3. Who can see your data?Packets pass through Wi-Fi and routers you don't control, and anyone along the way can copy them. So anything private must be encrypted on your device before it leaves: scrambled with a key, so only someone with the key can turn it back. Encryption only works because it can be reversed.