📋 Summary — What This Chapter Covers
- Data packets are small chunks of a larger message, broken up by TCP so they can travel efficiently across a network.
- Every packet has three parts: a header (source/destination IP, packet number), a payload (the actual data), and a trailer (error-checking/end info).
- Packet switching is the 5-stage process of breaking data into packets, routing each one independently across the network, and reassembling them at the destination.
- Serial transmission sends bits one after another down a single wire; parallel transmission sends multiple bits at once down multiple wires.
- Simplex = one direction only. Half-duplex = both directions, but not at the same time. Full-duplex = both directions, simultaneously.
- These two ideas combine — you can have serial-simplex, parallel-full-duplex, and so on.
- USB (Universal Serial Bus) is the real-world example tying it together: a serial, asynchronous connection standard with different connector shapes (A, B, C) and generations (1.1 → USB4 2.0) that determine speed.
🧩 1. Data Packets
Why break data into packets at all?
Imagine trying to move a house in one giant truck versus moving it in 50 small boxes carried by 50 different couriers, each taking whatever road is fastest at that moment. The boxes get there quicker overall, and if one courier gets stuck in traffic, only that one box is delayed — not the whole house. That's exactly why the internet doesn't send your file, email, or video as one massive block of data. Instead, a protocol called TCP (Transmission Control Protocol) breaks it down into small "chunks" called packets, because small chunks are easier and quicker to route (find the best path for) across a network than one huge chunk.
🔑 Key term — Routing
Routing is the process of finding the most optimal (fastest/least congested) path for a packet to travel across a network, from source to destination.
What's actually inside a packet?
Every single packet — no matter how small — is structured into three sections:
| Part | What it contains | Why it's needed |
| Header |
Source IP address, destination IP address, packet number (e.g. "1 of 5") |
Tells the network where the packet came from, where it's going, and what order it belongs in once reassembled |
| Payload |
The actual data being transported |
This is the real content — the reason the packet exists at all |
| Trailer |
Additional security/error-checking info (less common), end-of-packet notification |
Signals where the packet ends and helps detect corruption |
Here's a worked example straight from the textbook. Suppose the message "This is a message :)" needs to travel over the internet. TCP might break it into 4 packets like this:
🔀 2. Packet Switching
method
The 5 stages of packet switching
| Stage | What happens | Detail |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |