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

Preview

SC 7.3: Packets and packet switching

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

50 minutes

A sofa in many boxes

You send a sofa to a friend. The shop does not send it in one go. It takes it apart and packs it into numbered boxes. Each box has a label. The boxes go on different lorries and arrive in a mixed order.

Your friend uses the numbers to put the sofa back together. Computers send data in much the same way.

Key words

WordWhat it means
Packeta small piece of a message, with its own labels
Headerthe labels at the front of a packet
Payloadthe piece of the message a packet carries
Trailerthe part at the end of a packet, with a check value
Packet switchingsending packets by whatever route is free, then rebuilding the message
Sequence numbera number that says where a packet fits in the message
TTLtime to live: a count that stops a packet travelling for ever
Routera device that joins networks and passes packets on
IP addressa number that names a device on a network
Networkdevices joined so they can share things

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

By the end of this lesson

Note

I can describe what a packet holds and how packet switching sends a message.

Starter

Have a go

Starter

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.

Small packets are easier to send

A big message is cut into many small packets. Each packet is sent on its own. If one is lost, only that small piece is sent again.

Small packets also let many people share one line. Each person's packets take turns, so no one has to wait for a huge file to finish.

What is inside a packet

PartWhat it holdsWhat it is for
Header: source addressThe IP address of the senderSo the reply knows where to go
Header: destination addressThe IP address of the receiverSo routers know where to send it
Header: sequence numberThe place of this packet in the messageSo the message can be put back in order
Header: TTLA count that goes down at each routerSo a lost packet does not travel for ever
PayloadA piece of the messageThe data you actually want
TrailerA check valueSo the receiver can spot damage

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

Extra: Send a packet with 100 bytes of payload

Command
sudo ip netns exec h1 ping -c 1 -s 100 -W 1 10.0.12.1

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: Find the TTL in the reply

Command
sudo ip netns exec h1 ping -c 1 -W 1 10.0.12.1 | grep ttl

A command for the lesson’s lab terminal. It is shown here and not run.

Check

Have a go

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.

The lesson goes on

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