Data Packets · Cambridge syllabus 2.1 · Lesson 1 of 2
Packet Switching
Packet switching divides a message into smaller units. Packets contain payload and control information, such as addressing, sequence information and error checks depending on the protocol. The destination uses this information to reconstruct the message.
By the end, you can
- Understand that messages can be divided into packets.
- Identify the packet header, payload and trailer.
- Identify the destination address, packet number and originator's address in the header.
- Understand how packets are reassembled at the destination.
Packet structure
Sending a large file as one unbroken stream would hold a route open for as long as the transfer lasted, and a single corrupted bit would mean starting again. Instead the data is broken down into small packets, and each is sent separately.
A packet has three parts. The packet header carries the control information: the destination address, the packet number and the originator’s address, which is the address of the sender. The payload is the piece of the actual data. The trailer marks the end of the packet and usually carries an error check, so the receiver can tell whether the packet was damaged on the way.
The header is what makes each packet independently deliverable. Because it carries the destination address, a packet needs nothing else to be routed; and because it carries its own number, it can be put back in order at the far end however it arrives.
At the destination the packets are reassembled in the order given by their packet numbers, the headers and trailers are discarded, and the payloads are joined back into the original file. If the error check on a packet fails, or a numbered packet never arrives, only that packet is requested again.
Worth remembering
- Header: destination address, packet number and originator’s address.
- Payload: the piece of the actual data being sent.
- Trailer: marks the end of the packet and can carry an error check.
Worked example
Packets labelled 1, 2 and 3 may arrive as 2, 1, 3; sequence information restores the original order.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
It allows a destination to put packets into the correct order when they arrive out of order.
Check your method, units and explanation against it.
Marked practice
Set 1 of 4 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.