Learn
2.1.1 | DATA PACKETS
01 | ONE MESSAGE, MANY PACKETS
You send a photograph to a friend. It feels like one item travelling across the internet, but its data is divided into smaller units called packets.
A packet carries part of the original data together with control information used during transmission. Text, images, sound and video can all be transmitted as packets because they are represented as digital data.
Packetisation divides data; it does not compress it. Adding packet control information introduces overhead. Smaller pieces also allow network links to be shared by packets from different users, rather than reserving a complete end-to-end path for one whole message.
02 | INSIDE A DATA PACKET
For this syllabus, describe three main components: header, payload and trailer.
Addresses and packet number
The data being carried
End information and error-checking information
| Component | Purpose | Example |
|---|---|---|
| Header | Control information identifying where the packet comes from, where it is going and its place in the data | Originator: A; destination: B; packet number: 2 |
| Payload | Part of the actual transmitted message / file | A block of image data or part of a text message |
| Trailer | Information following the payload; commonly described as marking the end and carrying an error-checking value | An error-check value used to detect possible corruption |
Real network protocols place information in different fields and layers. This diagram is the model to learn for the course, not a claim that every internet packet has an identical format.
03 | THE HEADER: WHERE, WHO AND WHICH PIECE?
| Header field | Question it answers | Why it matters |
|---|---|---|
| Destination address | Where should this packet go? | Routers use destination information when forwarding it |
| Originator’s address | Where did it come from? | Identifies the sender; can be used when replying |
| Packet number | Where does this piece belong? | Helps reconstruct the original order |
Imagine posting several numbered envelopes to the same person. The destination address gets them to the recipient; the sender’s address identifies their origin; the number tells the recipient their intended order.
The packet number does not tell a router which route to use. Addresses guide delivery; numbers guide reconstruction.
04 | PAYLOAD AND TRAILER
The payload is the useful message data. If packet 2 carries the text “SCIENCE ”, those characters form its payload. The addresses and packet number are not part of that message text.
The trailer follows the payload in this teaching model. Error-checking information can help the receiver detect changes during transmission. An error check does not guarantee detection of every possible error and does not automatically repair the data.
If a transfer requires reliable delivery, additional protocol mechanisms can request missing or damaged data again. Packet switching alone does not guarantee that every packet arrives. You will study error detection and retransmission separately.
05 | PACKET SWITCHING: CHOOSE A ROUTE AT EACH STEP
Packet switching sends data as separate packets through a network. Routers forward packets towards their destination using routing information.
- The sender divides the data into packets and adds control information.
- A router examines destination information and chooses a suitable next hop.
- Other routers forward the packet onwards.
- Different packets from the same message may take different routes.
- The destination receives the packets, which may arrive out of order.
- Once all required packets have arrived, their numbers are used to reorder and reassemble the original data.
Packets do not have to take different routes: some or all may follow the same path. Routing can respond to available paths and network conditions; it is not simply choosing the fewest routers or guaranteeing the fastest route.
06 | FOLLOW THREE PACKETS
Suppose a message is divided into the three packets below. All have the same originator and destination addresses.
| Packet number | Payload | Illustrative route |
|---|---|---|
| 1 | COMPUTER | Sender → router A → router C → receiver |
| 2 | SCIENCE | Sender → router A → router B → router C → receiver |
| 3 | CAFE | Sender → router A → router C → receiver |
Packet 2 may be delayed on its route. The receiver might see 3, 1, 2. Arrival order is not message order.
Reordering by packet number gives 1, 2, 3, then joining the payloads reconstructs COMPUTER SCIENCE CAFE. The control information is used to manage the transfer; it is not inserted into the message.
07 | ACTIVITY: REBUILD THE MESSAGE
The packets arrived in the order 3, 1, 2. Choose the packet to place first, second and third. Each selection shows its payload.
In this example you are told that three packets are expected. Real transfer protocols provide rules for determining what data is required; a packet number by itself is not the whole reliability system.
08 | WHY USE PACKET SWITCHING?
Shared network capacity: packets from different senders can use the same links. One message does not need a dedicated end-to-end circuit reserved for its entire transfer.
Alternative routes: where the network has available alternatives, routing can send packets around an unavailable link. An alternative path is not guaranteed to exist.
Trade-offs: headers and trailers add overhead. Packets can be delayed, lost or arrive out of order. Reassembly and any required reliable-delivery mechanisms need extra processing.
A long delay between packets can matter in a live call even if all the data eventually arrives. Correct content and timely delivery are different requirements.
09 | COMMON MISTAKES
- Calling the payload the address: the payload carries message data; the header carries addresses.
- Using arrival order: reconstruct using packet numbers.
- Saying every packet takes a different route: different routes are possible, not compulsory.
- Saying the router reconstructs the message: routers forward; the destination reassembles.
- Saying packets compress the file: splitting and compression are different processes.
- Saying a checksum repairs errors: checking and recovery are separate functions.