← Starting out

Messages in pieces

A message doesn't travel in one piece. It's cut into small numbered pieces, and each piece travels through several devices (routers) on the way. Pieces can take different paths and arrive in a different order, so the computer at the end uses the numbers to put them back together.

When you send a message, it doesn't travel in one piece. It's cut up, and each piece finds its own way.

Before a message leaves your computer, it's cut into small pieces. Each piece gets a number and travels on its own, through several devices called routers.

How this lesson works: Predict, Try, Investigate, Modify, Practise, Make
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.

In order?

Your message is cut into 4 pieces. They take different paths through the routers, and some paths are busier than others. Can the pieces arrive in the wrong order?

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

Try: send it

Was your guess right? Send it again and watch the order they arrive in.

Try it yourselfYour edits are saved in this browser.

Press Send and watch the pieces. Do they all take the same path? Does the whole message arrive?

Use the board. This ticks when you get there.

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

Worked example: cut, send, rebuild

Worked exampleBefore each step, say what you think comes next.
  1. SEE YOU AT LUNCH\text{SEE\ YOU\ AT\ LUNCH}The message: 16 characters, spaces too.

Now: how does the computer know the order?

How does the computer at the end know which piece goes first?

Sam sends Ana a message. Click the line where it first goes wrong.

SEE YOU AT LUNCH is 16 characters, including spaces. Cut into pieces of 4 characters, how many pieces is that?

ModifyChange the problem on purpose and see what happens.

Vary: smaller pieces, broken links

Try it yourselfYour edits are saved in this browser.

Make the pieces 2 characters long and send. How many pieces now?

Use the board. This ticks when you get there.

Click a link between two routers to break it, then send. Does the message still get there?

Use the board. This ticks when you get there.

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

Pieces

Why does a network cut a big photo into small pieces?

What does a router do with a piece?

Review: a laptop is in the next room from the router, behind two walls. What happens to its Wi-Fi?

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

Get it through

Then: cut a sentence into numbered strips and pass them round the class by different routes. Can the last person rebuild it?

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

Before a hint: what kind of stuck is this? Try a strategy first

Break one link at a time, and send after each.

Another hint

Leave at least one path from the start to the end.

Another hint

If nothing arrives, mend a link and try again.

Roadworks have cut some cables. Break two links, send, and make sure the whole message still arrives.

Use the board. This ticks when you get there.

Now you can
Finished the course?Go over it: Starting out recapEvery idea in one place, to check you've got it.You reached the endBack to Starting out
For teachers

Students send a message cut into numbered pieces through a network of routers, see pieces take different paths and arrive in any order, rebuild it by number, make the pieces smaller and break links to see the pieces go round (AC9TDI6K02 node 2). About 35 minutes.

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

Students will be able to

Before class

Do the boards yourself first. Nothing is lost on these boards (drop: 0): losing a piece and asking for it again (TCP) is the Year 7–8 Packets lesson.

The one idea: data is cut into numbered pieces (packets) that travel through routers on their own, and the numbers rebuild the message.

Unplugged: a sentence on numbered strips, passed by different routes round the room.

Year 7–8 catch-up: Networks › Packets (8K02 n2) starts with the pieces unnumbered and lets students invent the fix; a student who can explain this lesson's numbers may find that lesson's Explore quick.

Running the lesson

  1. Predict: students who chose 'always in order' picture one pipe; the Try answers them.
  2. Worked example: act out arrival 2, 1, 4, 3 with four students.
  3. Vary: before breaking a link, ask whether the message will still arrive.
  4. Make: ask which links you can't break without cutting the end off.

The hard part (on purpose)

Picturing one pipe from sender to receiver. Have students trace two pieces' paths with a finger.

When students get stuck

Stretch and support

Stretch: What should happen if a piece never arrives? (Year 7–8 Packets has the answer.)

Support: A strip: cut → number → travel (any path) → arrive (any order) → rebuild by number.

Where it leads

End of Starting out. Next: Year 7–8 Networks, or any other course in How computers work.

What each step is for