AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Data in packets

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 packetWhat it holds
Header: senderthe IP address of the sending device
Header: receiverthe IP address of the device that should get it
Header: sequence numberfor example ‘packet 3 of 5’
Payloada piece of the photo, song or message
Worked examples
Header or payloadContent
header: from198.51.100.7
header: to203.0.113.21
header: numberpacket 3 of 5
payloadthe 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.
packet 1 of 4packet 2 of 4packet 3 of 4packet 4 of 4
A voice message is cut into 4 packets. Each packet has its own envelope with its own number. The envelopes travel separately.
ReasonWhat it helps
a lost packet is sent again aloneno need to send the whole file again
packets can use different routesjams can be avoided
packets take turns on a wiremany 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?
LineContent
1from 198.51.100.40
2to 203.0.113.9
3packet 4 of 6
4a piece of a song
2
Every packet of a video has its own copy of the addresses. Why?
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 1 of 5packet 2 of 5packet 4 of 5packet 5 of 5
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.