CDP (Cisco Discovery Protocol)
What it is for
CDP does the same job as LLDP: it periodically tells directly connected neighbours its device name and the port it sent from, for automatic topology discovery and finding miscabled links.
CDP is Cisco-proprietary and predates LLDP. LLDP (802.1AB) is essentially CDP's approach 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 (Cisco's OUI is 00:00:0c), 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, so the neighbour table stays empty.
So the usual practice is to run both: CDP for legacy Cisco gear, LLDP for other vendors.
Common misconceptions
An empty neighbour table does not necessarily mean a dead cable. In a mixed-vendor network the usual cause is that the far end does not understand CDP; the cable is fine and data flows. First check that both ends run the same discovery protocol.
CDP exposes device information. It advertises model, IOS version, management IP, VTP domain and native VLAN, more than LLDP. It must be turned off on ports facing untrusted networks.
New networks should standardise on LLDP, enabling CDP only for compatibility with legacy Cisco devices.