SwitchNRoutesCCNP Enterprise (ENCOR 350-401) lessonsAll interactive lessonsBlogGet a quote
CCNP: PRE-CCNP AND ENCOR 350-401 | INTERACTIVE LESSON

How a Message Travels

One ping, from your PC to a router and back. Everything else in networking is a detail of this journey.

Where this fits: Pre-CCNP foundations, chapter 1 of 10. Leads into ENCOR Module 1 (Architecture) and Module 2 (Packet Switching).
All CCNP Enterprise (ENCOR 350-401) lessons
Progress is saved in this browser

The story so far

Verification against Cisco documentation (12 Nov 2026)
StatementStatusSource or note
MAC changes at every router, IP stays; ARP is broadcast request / unicast reply; switch learns source MAC, floods unknown; frame/packet/segment namesunverifiedfundamental networking, not tied to a Cisco page; consistent with the Cisco CAM/MAC guides checked in Module 2
Mac address table behaviour (learn, flood unknown, aging 300 s)verifiedCisco Catalyst 9000 MAC guide (see Module 2 table)
Mention of access points / wirelessrefinementmarked in the lesson as outside ENCOR v1.2 (wireless removed)

Verified means checked against the named Cisco document. Unverified means not checked yet: confirm it before relying on it in the exam. Refinement means the lesson needs the added detail.

Picture your first week as the IT person at a small company. The network grew by accident: a switch here, a router there, cables nobody labelled. People say 'the internet is slow' and expect you to know why. Over ten short chapters you will rebuild that network properly, in one lab you keep and extend, and by chapter 10 you will understand every part of it and why it was built that way.

This is chapter 1. We do not touch a single command yet. First we follow one tiny message, a ping, from a PC to a router and back. If you understand that journey, VLANs, subnets, routing, spanning tree and even automation are all just details of it.

The ten chapters (each one builds on the last)1 How a message travels2 Binary and IPv4 addresses3 Subnetting and an address plan4 Switching, VLANs and trunks5 Spanning tree6 Routing basics7 Inter-VLAN routing8 Dynamic routing (OSPF intro)9 DHCP, NAT and ACLs10 The whole network and troubleshooting<-- You are here: chapter 1
Ten steps up. Each chapter uses the one below it, and chapter 10 ties them all together.

1. Meet the cast

A network is just devices passing messages. There are only a few roles, and the whole course is about how they cooperate.

DeviceJob in one lineLooks at
Host (PC, phone, server, camera)Starts and ends conversationsEverything it sends and receives
SwitchConnects hosts in the same local network and passes frames between themMAC addresses
RouterConnects different networks and chooses where packets go nextIP addresses
Firewall / access pointControls what may pass / connects wireless devices (wireless is not in the ENCOR v1.2 exam, so it is background only)Rules and radios
A small officeSTAFF-PCPC2SwitchRouterInternet / other networksLocal network (same room)Everything beyond the router is 'somewhere else'
Hosts and a switch form the local network. The router is the door to everywhere else.
RememberA switch works inside a network. A router works between networks. Hold on to that sentence; it explains half of CCNP.

2. Two addresses, two jobs

Every message carries two kinds of address, and beginners often mix them up. Think of a letter delivered inside a large office building:

MAC addressIP address
AnalogyThe name tag on your shirt: who you are, wherever you standYour postal address: where you live, and it can change if you move
Looks like0050.7966.6801 (48 bits, 12 hex digits)192.168.1.10 (32 bits, four numbers)
Given byThe manufacturer, burned into the network cardYou or a DHCP server
Used bySwitches, to deliver inside one networkRouters, to deliver between networks
Changes on the way?Yes, at every routerNo (it stays the same end to end)
One message as it travels (simplified)Destination MACSource MACTypeSource IPDestination IPData (the ping)FCS
The outer part (MACs) is for the next hop. The inner part (IPs) is for the final destination.
Exam tipThis is the most useful fact in this chapter: IP addresses stay, MAC addresses change at every router. You will see it in the lab with your own eyes.

3. Wrapping the message (encapsulation)

Your PC does not send a ping 'as is'. Each layer wraps what it receives in its own envelope. The receiver unwraps in the opposite order. This wrapping is called encapsulation.

Nested envelopesDATA: the pingFrame (Layer 2): MAC addresses, checked by switchesPacket (Layer 3): IP addresses, checked by routersSegment (Layer 4): ports, TCP or UDP (ping uses ICMP instead)Application data
Data is wrapped in a segment, then a packet, then a frame, then sent as bits.
TCP/IP layerOSI layersName of the dataAddressesDevice that cares
Application7, 6, 5Data-Hosts, firewalls
Transport4SegmentPort numbersHosts, firewalls
Internet3PacketIP addressesRouter
Link (network access)2 and 1Frame and bitsMAC addressesSwitch

4. Same room: STAFF-PC pings EDGE

Start with the easy case: STAFF-PC and the router are on the same local network (this is exactly what you will build in the lab). STAFF-PC knows the router's IP address, 192.168.1.1. To build the frame it needs the router's MAC, and it does not have it. So it asks, using ARP (Address Resolution Protocol).

ARP, then the pingSTAFF-PCSwitchEDGEARP request (broadcast): who has 192.168.1.1?Switch learns STAFF-PC's MAC, floods the broadcastARP requestARP reply: 192.168.1.1 is at MAC EDGEARP replyICMP echo request (ping), to MAC EDGEICMP echo reply
ARP is broadcast (everyone hears it); the reply is private (only STAFF-PC gets it).
Watch outA switch never needs an IP address to switch. A router interface always does. If you can ping a switch's management IP, that is a separate feature: the switch is acting as a host.

5. Different rooms: the message crosses a router

Now STAFF-PC pings a server 10.5.5.5 on another network. STAFF-PC cannot ARP for a device that is not in its room, so it sends the frame to its default gateway, the router, and lets the router carry on. At every hop the router throws away the old frame and builds a new one for the next stretch.

Who is addressed where?STAFF-PCRouter 1Router 2ServerSTAFF-PC to Router 1src MAC: STAFF-PCdst MAC: EDGE (gateway)src IP: STAFF-PCdst IP: 10.5.5.5Router 1 to Router 2src MAC: EDGE (out)dst MAC: R2src IP: STAFF-PCdst IP: 10.5.5.5Router 2 to Serversrc MAC: R2 (out)dst MAC: Serversrc IP: STAFF-PCdst IP: 10.5.5.5MACschangeIPsstay
The IP header is the same on every hop. The MAC header is rebuilt on every hop.

The question every host asks first: is it local?

Before sending, a host compares the destination IP with its own address and subnet mask. If the destination is in its own network, it ARPs for it directly. If not, it sends to the gateway. (Chapters 2 and 3 teach exactly how that comparison is calculated.)

The local-or-remote decisionDestination IPknownSame networkas me?Yes: ARP forthe destinationNo: ARP for thedefault gatewaySend the frame
Local traffic goes to the host itself; everything else goes to the gateway.
Watch outNo default gateway, or a wrong one, is the classic fault: the PC can reach its own network and nothing else.

Try it

6. What each device really does (the short list)

SwitchRouter
ReadsDestination MACDestination IP
DecisionWhich port leads to that MAC? (MAC table)Which interface and next hop lead to that network? (routing table)
Unknown destinationFloods it out of every other portDrops it (or uses a default route)
Rewrites the MAC header?NoYes, on every hop
Splits broadcasts?No (one broadcast domain per VLAN)Yes (each interface is a new broadcast domain)

7. Our practice network

From now on every exercise happens in one lab you keep: the Harbour Office campus lab. It is a small company with an edge router, two core switches, two floors of access switches, a few computers, and two pretend internet providers. Your work carries over from chapter to chapter, so you never rebuild from scratch. Each chapter tells you which devices to start, so your CML server only runs what you need.

The Harbour Office lab (chapter 1 uses the bright devices)WEB-SRV (off)BRANCH1 (off)ISP1 (off)ISP2 (off)BRANCH2 (off)EDGEL3CORE1L3CORE2 (off)ACCESS1ACCESS2 (off)STAFF-PCGUEST-PC (off)FILE-SRV (off)CCTV-CAM (off)
Fourteen devices are defined. Bright ones run in chapter 1.
ChapterDevices to startWhat changes in the lab
1EDGE, CORE1, ACCESS1, STAFF-PCFirst addresses; follow a ping
2EDGE, CORE1, ACCESS1, STAFF-PCBinary and masks, seen on real devices
3EDGE, CORE1A proper address plan
4CORE1, ACCESS1, ACCESS2, STAFF-PC, GUEST-PC, FILE-SRVVLANs and trunks
5CORE1, CORE2, ACCESS1, ACCESS2, STAFF-PCSpanning tree
6CORE1, EDGE, ISP1, ISP2, WEB-SRVStatic and default routes
7EDGE, CORE1, CORE2, ACCESS1, STAFF-PC, GUEST-PCInter-VLAN routing
8EDGE, CORE1, CORE2, ISP1, WEB-SRV, ACCESS1, STAFF-PCOSPF
9Ten devicesDHCP, NAT, an ACL
10Everything the fault cards needBreak, find, fix

8. Commands you will use in the lab

QuestionOn a Cisco deviceOn an Alpine PC
Which devices am I wired to?show cdp neighbors-
Is the port up?show ip interface briefip link show eth0
What is my address?show ip interface briefip addr show eth0
Whose MAC do I know?show ip arp (router)ip neigh
Which port holds that MAC?show mac address-table (switch)-
Can I reach it?ping 192.168.1.1ping -c 4 192.168.1.1

9. Why this matters for ENCOR

Check yourself

Think first, type an answer if you like, then reveal.