Protocol notes for this page (click to expand)

CDP (Cisco Discovery Protocol)

What it is for

The same job as LLDP: periodically tell directly connected neighbours who I am and which port I sent from, for automatic topology discovery and finding miscabled links.

★★★ The difference is that it is Cisco-proprietary and predates LLDP. LLDP (802.1AB) is essentially CDP's idea standardised.

How it differs from LLDP

· Encapsulation: CDP uses SNAP (legacy 802.3), LLDP has its own EtherType 0x88cc;
· Address: CDP uses 01:00:0c:cc:cc:cc (0c being Cisco's OUI), LLDP uses 01:80:c2:00:00:0e;
· Interoperability: ★★★ only Cisco devices understand CDP. In a mixed-vendor network the far end does not parse it at all, so the neighbour table stays empty.

★★ Hence the usual practice: run both -- CDP for legacy Cisco gear, LLDP for everyone else.

★ Common misconceptions

★★★ "An empty neighbour table means the cable is dead" -- not necessarily. In a mixed-vendor network the far end may simply not speak CDP; the cable is fine and data flows. Check that both ends run the same discovery protocol first.

★★★ "CDP is harmless" -- it advertises even more than LLDP: model, IOS version, management IP, even the VTP domain and native VLAN. It must be off on ports facing untrusted networks.

★★ "CDP means I do not need LLDP" -- the other way round. New networks should standardise on LLDP and enable CDP only for legacy Cisco compatibility.