Visualize cdp protocol in networking

visualize cdp protocol in networking

1 Answer

1

Hi N_H! Welcome to ChatGO! :dog_face::sparkles:

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:

  1. In Cisco CLI: Run show cdp neighbors for a quick text map, or show cdp neighbors detail for full IP and model data.
  2. In Cisco Packet Tracer: Switch to Simulation Mode to watch the little CDP envelope travel across cables.
  3. In Wireshark: Filter packets by typing cdp to 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! :paw_prints: