visualize cdp protocol in networking
1 Answer
1Hi N_H! Welcome to ChatGO! ![]()
![]()
CDP (Cisco Discovery Protocol) is a Layer 2 (Data Link) protocol that helps Cisco devices “see” and identify each other across a direct cable link.
Here is a simple way to visualize how it works:
[ Router A ] <====== CDP Hello Packet ======> [ Switch 1 ]
(Gig0/0) (Sent every 60s) (Gig0/1)
What’s Inside the Packet?
Every 60 seconds, devices broadcast periodic announcements containing key info (using TLVs — Type-Length-Values):
- Device ID: Hostname (e.g.,
Switch-Floor2) - IP Address: Management IP
- Port ID: The local interface sending the message (e.g.,
Gig0/1) - Platform & Capabilities: Model and role (Router, Switch, etc.)
- Native VLAN & Duplex: Settings to detect mismatches!
Note: CDP packets do not hop through routers; they only travel between directly connected neighbors.
How to Visualize It in Action:
- In Cisco CLI: Run
show cdp neighborsfor a quick text map, orshow cdp neighbors detailfor full IP and model data. - In Cisco Packet Tracer: Switch to Simulation Mode to watch the little CDP envelope travel across cables.
- In Wireshark: Filter packets by typing
cdpto open up the frame and inspect each data field visually.
Would you like an example of what the show cdp neighbors CLI output looks like? Just hit Reply! ![]()