Lesson 2 — How Two Devices Actually Communicate
Week 1 outline
- Week 1 overview
- Lesson 1What Is a Network?
- Lesson 2How Two Devices Actually Communicate (current step)
- QuizNetwork Foundations & Traffic Flow
- Lesson 3Physical Interfaces & Cabling
- Lesson 4Ethernet, MAC Addresses & ARP
- QuizLocal Delivery: Cabling, Ethernet & ARP
- LabARP & ICMP on the LAN
- Lesson 5TCP vs UDP
- Lesson 6IPv4 Addresses & Private Ranges
- CheckpointWeek 1 Checkpoint
How Two Devices Actually Communicate
Follow one message from application to wire and back, name the PDU and layer at every step, and learn the single rule that explains most routing questions: Layer 3 addresses survive the journey, Layer 2 addresses do not.
Lesson orientation
What you'll learn (6 objectives)~15 min: video → lesson → check → apply → lab prep
Learning objectives
- Explain encapsulation and decapsulation in terms of headers added and removed
- Name the PDU produced at each layer: data, segment or datagram, packet, frame, bits
- Map the seven OSI layers to the four TCP/IP layers
- Trace a send to a device on the same network and to one on a different network
- State which addresses a router rewrites at every hop and which it preserves end to end
- Use the layer stack as a troubleshooting map to decide what to check first
Terms you will see
Time breakdown
- Read the notes8 min
- Packet Walk tool5 min
- Pause and predict2 min
Assigned video

The Life of a Packet (Day 12)
By Jeremy's IT Lab · Opens externally on YouTube
Watch time not yet confirmed for this video — the notes below cover everything this lesson requires.
The link opens in a new browser tab. Return here when you finish watching.
Watch for these concepts
- One message followed all the way down the stack and back up
- Where the headers get added, and what each one carries
- Why the destination MAC changes at every router but the destination IP never does
- How the routing table decision fits into the journey
Go beyond the video
The assigned video introduces the idea. CCNA Practice Labs completes the learning path: clarify core concepts, explore how each device behaves, visualize the communication path, check your understanding, and prepare for hands-on lab work.
Watch the concept → understand it → visualize it → practice it → apply it.
Communication is wrap, send, unwrap
When an application has something to send, the data does not go straight onto the cable. It passes down through a series of layers, and each layer attaches its own header — a small block of information meant for the matching layer on the receiving device. Adding those headers on the way down is called encapsulation. The receiver strips them off on the way up, in reverse order, which is decapsulation.
Nothing mysterious happens at any layer. Each one simply writes down what its counterpart at the other end will need to know: which process this belongs to, which host it is for, which device should pick it up next.
One wrapper per layer
Each row below is the row above it, plus one new header. The name of the unit changes as it goes — that name is the PDU you met in Lesson 1.
| Step down the stack | Header added | Resulting PDU | Key addresses |
|---|---|---|---|
| Application | — | Data | None yet |
| Transport | TCP or UDP | Segment / Datagram | Source and destination ports |
| Network | IP | Packet | Source and destination IP — end to end |
| Data Link | Ethernet header + FCS | Frame | Source and destination MAC — this hop only |
| Physical | — | Bits | Signals on the wire |
Read the last column carefully, because it contains the whole lesson. The IP addresses are written once and describe the two ends of the conversation. The MAC addresses describe only the current step of the journey, and they get replaced at every step.
Sending to a device on the same network
Before a device can send anything, it has to answer one question: is the destination on my own network, or somewhere else? Everything that follows depends on that answer.
Suppose PC-A wants to reach PC-C, and the comparison says they are on the same network. PC-A can deliver the frame itself, but it needs PC-C's MAC address to address that frame:
- PC-A compares the network portions and sees that PC-C is local.
- PC-A looks in its ARP cache — a small table of the IP-to-MAC mappings it has already learned — for PC-C's entry.
- If the entry is missing, PC-A uses ARP (Address Resolution Protocol) to ask the whole local network “who has this IP address?” The owner answers directly with its MAC address. Lesson 4 covers exactly what those two messages look like.
- PC-A builds a frame addressed to PC-C's MAC, containing a packet addressed to PC-C's IP, and sends it.
- The switch forwards the frame to the port where PC-C lives. PC-C replies, running the same process in reverse.
Sending to a device on a different network
Now suppose the mask comparison says the destination is somewhere else. PC-A has no way to reach it directly — it only knows how to talk to devices on its own network. So it hands the traffic to the one device whose job is to forward things onward: its default gateway.
- PC-A compares the network portions and sees the destination is not local.
- PC-A resolves the MAC address of its default gateway — not the MAC of the faraway destination, which it could never reach anyway.
- PC-A sends a frame addressed to the gateway's MAC. Inside that frame, the packet is still addressed to the final destination's IP.
- The router receives the frame, discards the frame header, and reads the packet's destination IP.
- The router consults its routing table to decide where to send it next, wraps the packet in a brand-new frame for the next link, and forwards it. The new frame's source MAC is the router's outgoing interface; the destination MAC is the next device along the path.
- Every router along the way repeats step 5 until the packet reaches a router directly attached to the destination's network, which delivers it to the destination itself.
The rule that explains the rest of the course
Put the two journeys side by side and one rule falls out of them:
Once that rule is solid, a large share of early routing questions answer themselves. If a question asks what a packet looks like after three router hops, the IP addresses are whatever the sender put there; the MAC addresses belong to the two devices on either end of the third link.
The layer stack as a troubleshooting map
The seven OSI layers are worth learning, but not as a memory exercise. Their value is diagnostic: when something is broken, the layers give you an order to check things in, so you are not guessing. Real networks are usually described with the four-layer TCP/IP model instead, and CCNA questions use both, so learn the mapping between them.
| OSI layer | PDU | What lives here | TCP/IP layer |
|---|---|---|---|
| 7 Application (with 6 and 5) | Data | HTTP, DNS, SSH | Application |
| 4 Transport | Segment (TCP) / Datagram (UDP) | Ports, reliability | Transport |
| 3 Network | Packet | IP addressing, routing | Internet |
| 2 Data Link | Frame | MAC addresses, VLANs, ARP | Network Access |
| 1 Physical | Bits | Cables, optics, signals | Network Access |
Worked example. A user reports that a web page will not load. Rather than guessing, walk up the stack. Is the interface up and the cable connected? That is Layer 1, and it is where most real faults live. Is the device on the right VLAN and able to reach its neighbours? Layer 2. Can it reach its default gateway and get a reply from an address on another network? Layer 3 — and this is the step where a wrong mask or a missing gateway shows up. Is the connection to the server's port getting through, or is something blocking it? Layer 4. Does the name resolve to the right address? Layer 7. Five checks, in order, each with a definite answer — that habit is the backbone of every troubleshooting lesson later in this course.
What you should retain
- Encapsulation adds one header per layer on the way down; decapsulation removes them on the way up.
- PDU order: data → segment or datagram → packet → frame → bits.
- Every send begins with a mask comparison: same network, or not?
- Same network: resolve the destination's MAC. Different network: resolve the default gateway's MAC.
- Layer 3 IP addresses are preserved end to end; Layer 2 MAC addresses are rewritten at every hop.
- Use the layers as a checking order when something breaks — start at Layer 1.
Before you read on
A packet leaves your laptop, crosses one router, and arrives at a server on another network. Across that router hop, which addresses in the message changed, and which stayed exactly as they were?
See it happen
Packet Walk
Step a packet across each hop and watch the Layer 2 addresses change while the Layer 3 addresses stay fixed. This is the one idea in the lesson that is genuinely easier to see than to read.
Check this section before moving on
Network Foundations & Traffic Flow
The quiz opens on its own page so you can focus on it. It is a Week 1 milestone, tracked separately from this lesson's own completion.
Topics covered
- • Device roles and what each one examines
- • Hubs, collision domains, and why switches replaced them
- • PDU names and the layer each belongs to
- • Which addresses a router rewrites and which it preserves
Study deeper
Topic guides extend this lesson — they do not replace the first-party walkthrough above.
OSI Model & Packet Flow
For the per-layer field reference and the full bottom-up troubleshooting workflow — this lesson gives you the map, the guide gives you every field on it
