← Teacher guide

Messages in pieces

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

Starting out · Joining up · about 35 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Try 6 min · Worked example 9 min · Vary 7 min · Practise and Make 13 min

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.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

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

What you will seeA question to askThe fix
A student says the message travels in one piece (Sam's mistake).Press Send. How many dots set off?It's cut into pieces; each goes its own way.
A student thinks the routers put the pieces in order.Watch the order they arrive at the end. Who sorts them?The computer at the end, using the numbers.

Answers to the checks

  1. 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?
    Yes. A piece on a busy path can arrive after one sent later. Each piece has a number, so the computer at the end puts them back in order.
  2. Try: send it: Press Send and watch the pieces. Do they all take the same path? Does the whole message arrive?

    The pieces split up and some took longer, but the numbers let the computer at the end rebuild SEE YOU AT LUNCH.
  3. Four pieces: How does the computer at the end know which piece goes first?
    Each piece has a number
    Piece 1, piece 2, piece 3, piece 4: the numbers say the order.
  4. Find the mistake: Sam sends Ana a message. Click the line where it first goes wrong.
    line 2
    Line 2: the message is cut into numbered pieces, and they can take different paths through the routers.
  5. How many pieces?: SEE YOU AT LUNCH is 16 characters, including spaces. Cut into pieces of 4 characters, how many pieces is that?
    4
    16 ÷ 4 = 4 pieces.
  6. Smaller pieces: Make the pieces 2 characters long and send. How many pieces now?

    16 characters in pieces of 2: 8 pieces.
  7. A broken link: Click a link between two routers to break it, then send. Does the message still get there?

    Yes: the pieces find another way round. That's why the internet has many paths.
  8. Why pieces: Why does a network cut a big photo into small pieces?
    Small pieces share the paths and can go round a broken link
    Lots of small pieces share the paths with everyone else's, fairly, and each can find its own way.
  9. Routers: What does a router do with a piece?
    Passes it on, towards where it's going
    Routers pass pieces along, one step at a time.
  10. Review: walls: Review: a laptop is in the next room from the router, behind two walls. What happens to its Wi-Fi?
    It's slower
    Walls and distance slow Wi-Fi down.
  11. get it through: Roadworks have cut some cables. Break two links, send, and make sure the whole message still arrives.

    With two links broken there's still a path, so every piece gets through and the numbers rebuild the message.

Solutions

One possible solution for each task. Other correct programs are fine.

Vary: smaller pieces, broken links › Smaller pieces

Open task: any program that does what the step asks.

Vary: smaller pieces, broken links › A broken link

Open task: any program that does what the step asks.

get it through

Open task: any program that does what the step asks.

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.

Exit ticket

A message arrives as pieces 3, 1, 2. How does the computer read it correctly?

It puts the pieces in order by their numbers: 1, 2, 3.

What each step is for

Where it leads

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