Packet Flow & Encapsulation
Follow one message from keyboard to server and watch the network rebuild it at every hop. Switching and routing are the same story told two ways: what the device reads, and what it adds or removes.
1. Watch a packet cross the network
Press Play to send the frame from PC1 to SRV1. Watch which header each device reads — and notice that a router replaces the Ethernet frame on every link.
PC1 — build and encapsulate
The application hands data to TCP. Each layer adds its own header.
Layer 7Datathe message
Layer 4Segment+ TCP header
Layer 3Packet+ IP header
Layer 2Frame+ Ethernet header & FCS
2. Build the encapsulation, layer by layer
Encapsulation means wrapping the data in a new header at each layer. Step through it and watch the stack grow from the outside in.
3. The four PDUs, at a glance
| Layer | PDU name | Header holds | Device that reads it |
|---|---|---|---|
| 7–5 | Data | The application message itself | End host only |
| 4 | Segment (TCP) / Datagram (UDP) | Source & destination ports, sequence, flags | End host |
| 3 | Packet | Source & destination IP, TTL, protocol | Router (and host) |
| 2 | Frame | Source & destination MAC, type, FCS trailer | Switch (and host NIC) |
| 1 | Bits | Encoding on the medium | Everything on the wire |
The idea the exam keeps testing
A switch never changes the frame — it reads the destination MAC and forwards it.
A router removes the incoming frame, reads the IP packet, then builds a new frame for
the next link. That is why MAC addresses change at every hop but IP addresses do not.
Why does the frame change at every router but the packet does not?
A Layer 2 frame only has link meaning: it carries the MAC addresses of the two
devices on this link. When the packet moves to the next link, those two devices are different,
so the router builds a fresh frame. The IP packet is end-to-end, so its addresses survive the whole trip
(only the TTL decrements).
4. Sources & references
- Cisco. Introduction to Networks (CCNA v7.02), Modules 1–3: Basic Switch and End Device Configuration.
- Kurose, J. & Ross, K. Computer Networking: A Top-Down Approach, 8th ed. — encapsulation and the layered model.
- IEEE. IEEE 802.3 Ethernet Standard. standards.ieee.org.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.