Week 23 · Unit 9: Cellular networks and data packets · 3 lessons
1
Cutting data into packets
Computing 5: Unit 9, pp. 119–128
GoalSay why data is split into packets and name the parts of a packet.
New words
data packet · a small piece of a message or file that is sent over a networkheader · the front part of a packet, with the addresses and the packet numberpayload · the piece of the message or file that the packet carriessequence number · the number that shows where a packet fits in the whole message
Explanation
A photo, a message or a web page is not sent over the internet as one big piece. It is cut into many small pieces called data packets. Think of each packet as a letter in an envelope. The header is on the outside. It holds the sender’s IP address, the receiver’s IP address, the sequence number and how many packets there are in all. The payload is inside. It is the real piece of the photo or message. The payload is usually the biggest part of the packet.
Part of a packet
What it holds
Header: sender
the IP address of the sending device
Header: receiver
the IP address of the device that should get it
Header: sequence number
for example ‘packet 3 of 5’
Payload
a piece of the photo, song or message
Worked examples
Header or payload
Content
header: from
198.51.100.7
header: to
203.0.113.21
header: number
packet 3 of 5
payload
the middle part of the photo
Here is one packet of a photo that has been cut into 5 packets. The addresses are the same in every packet of the photo. The number and the payload are different.
A voice message is cut into 4 packets. Each packet has its own envelope with its own number. The envelopes travel separately.
Reason
What it helps
a lost packet is sent again alone
no need to send the whole file again
packets can use different routes
jams can be avoided
packets take turns on a wire
many users can share it
There are good reasons to use small packets. If a packet is lost, only that small piece has to be sent again. Packets can take different routes to avoid busy places. And many people can share the same wires, because their packets take turns.
Class activity
Story packets (pairs, 5 small cards or squares of paper, pencils). Draw a short story in 5 pictures, one on each card. On the back of each card write a header such as ‘from Nodira, to Leo, picture 2 of 5’. Shuffle the cards and give them to your partner. Your partner must put the story in order using only the headers on the backs, and then turn the cards over to check. Now take one card away before you hand them over. Can your partner tell which one is missing?
Practice
1
Look at the four lines of this packet. Which lines are the header and which line is the payload?
Line
Content
1
from 198.51.100.40
2
to 203.0.113.9
3
packet 4 of 6
4
a piece of a song
Lines 1, 2 and 3 are the header. Line 4 is the payload.
2
Every packet of a video has its own copy of the addresses. Why?
The packets travel separately, so each one must show where it comes from and where it is going. A router reads the address of each packet.
3
Packets 1, 2, 4 and 5 of a message with 5 packets have arrived. Which packet is missing? What can the receiver do?
Packet 3 is missing. The receiver can ask the sender to send packet 3 again.
4
True or false? (a) A packet holds the whole file. (b) The payload is the real data. (c) The sequence number says where the packet fits in the message.
(a) False, it holds only a small piece. (b) True. (c) True.