---
title: "Messages in pieces"
subtitle: "Starting out · Joining up · Lesson 8"
---

# Messages in pieces

**Name:** {{field-24}} **Date:** {{field-15}} **Class:** {{field-15}}

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


:::teacher-note

**In one sentence:** 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).

**Students should be able to say:** I can explain why a message is cut into pieces. I can say how the pieces get back in order. I can explain how a message still arrives when a link breaks.

**Width:** the unmarked parts are the floor every student does (predict, run, investigate and make). Typical adds the modify practice; wider adds the real-world contexts. They add contexts, not difficulty. Students work in the online tutorial alongside this sheet.

:::


## Predict


:::keep-together

**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?**

☐ No: they travel together

☐ Yes, and the message comes out jumbled

☐ No: pieces always arrive in order

☐ Yes, but their numbers put them back in order

My prediction, and why:

{{lines-3}}

:::


:::teacher-note

**What happens:** 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.

:::


## Run

Try it on the board in the tutorial. Was your prediction right? What was different?

{{lines-2}}

## Worked example: cut, send, rebuild


:::keep-together

### Four pieces

1. $\text{SEE\ YOU\ AT\ LUNCH}$ — The message: 16 characters, spaces too.
2. $\text{1 SEE·\quad 2 YOU·\quad 3 AT·L\quad 4 UNCH}$ — Cut into pieces of 4, each with a number (· is a space).
3. $\text{different paths}$ — Each piece goes through routers on its own. A busy router makes a piece late.
4. $\text{arrive: 2, 1, 4, 3}$ — They can arrive in any order.
5. $\text{rebuild: 1, 2, 3, 4}$ — The numbers put them back: SEE YOU AT LUNCH.

Now: how does the computer know the order?

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

☐ Each piece has a number

☐ It guesses from the letters

☐ The first one to arrive goes first

☐ The router tells it

:::


:::teacher-note

**Answer:** Each piece has a number

Piece 1, piece 2, piece 3, piece 4: the numbers say the order.

:::


:::keep-together

### Find the mistake

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

```
 1  Sam sends Ana the message SEE YOU AT LUNCH.
 2  The whole message travels as one piece.
 3  It goes down one wire, straight to Ana's computer.
 4  So it always arrives in the right order.
```

Line: {{field-15}}

Why is it wrong?

{{lines-2}}

:::


:::teacher-note

**Answer:** line 2

Line 2: the message is cut into numbered pieces, and they can take different paths through the routers.

:::


:::keep-together

### How many pieces?

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

Answer: {{field-15}}

:::


:::teacher-note

**Answer:** 4

16 ÷ 4 = 4 pieces.

:::


:::typical

## Vary: smaller pieces, broken links


**Smaller pieces.** 

**A broken link.** 

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

:::


## Pieces


:::keep-together

### Why pieces

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

☐ Small pieces are smaller files on your computer

☐ So nobody can see it

☐ Small pieces share the paths and can go round a broken link

☐ So it uses less data

:::


:::teacher-note

**Answer:** 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.

:::


:::keep-together

### Routers

**What does a router do with a piece?**

☐ Puts the pieces in order

☐ Reads the message and checks the spelling

☐ Passes it on, towards where it's going

☐ Keeps it

:::


:::teacher-note

**Answer:** Passes it on, towards where it's going

Routers pass pieces along, one step at a time.

:::


:::keep-together

### Review: walls

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

☐ It's faster

☐ It stops being a network

☐ It's slower

☐ Nothing

:::


:::teacher-note

**Answer:** It's slower

Walls and distance slow Wi-Fi down.

:::


## Make: 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?

Work in the tutorial. Plan first: what will you change, and how will you test it?

{{box-4}}

## Exit ticket

:::keep-together

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

{{lines-3}}

:::


:::teacher-note

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

:::

