CDP and multi-vendor networks don't mix

CDP and multi-vendor networks don't mix

The CDP protocol plays a very big part in Cisco's strategy for device interoperations. In addition to providing useful troubleshooting and configuration information for administrators, it helps routers determine if they've got an Ethernet duplex mismatch, and it helps IP Phones get properly configured into the voice VLAN. However, the defaults for these devices assume an all-Cisco network, and that is rarely the case.

The protocol is intended to enable communications between actual, physical neighbors and this is fine when there are Cisco switches involved that have CDP enabled. But because CDP operates at layer 2, (and is intercepted by Cisco switches), non-Cisco switches will pass these frames right along and never be the wiser. This creates an interesting situation where every CDP-device in the subnet can talk to each other. Unfortunately, they're not quite smart enough to realize they're not actually directly connected to each other.

As an example, lets say you have a router that's manually configured at full-duplex to a non-Cisco switch, and a bunch of IP phones that are connected at half-duplex to hubs downstream. The phones will broadcast their CDP advertisements and the router will generate log entries for every CDP notice it receives, indicating it has a duplex mismatch, when in fact, it doesn't.

Another interesting consequence of a multi-vendor network is if you're trying to use an automated network management system. One of the interesting features of

    Requires Free Membership to View

    SearchUnifiedCommunications.com members gain immediate and unlimited access breaking industry news, expert advice on UC, technical guides, and more -- all at no cost. Join me on SearchUnifiedCommunications.com today!

    Kate Gerwig, Editorial Director

    By submitting your registration information to SearchUnifiedCommunications.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchUnifiedCommunications.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

some of the newer systems is their ability to detect layer 2 devices (e.g. switches without IP addresses) using either ARP tables or CDP. In the case of a NMS using CDP with a non-Cisco switch (or a Cisco switch with CDP disabled, which permits the packets to pass without getting intercepted in addition to not generating its own CDP packets), it will draw a picture as if all the devices are directly connected, which of course, isn't true.

These sorts of issues are relatively minor in the grand scheme of things, but in a VoIP network, every little bit helps. On the other hand, if you don't have a Cisco switch, you can use this feature in the router to see all your phones. Simply type "show cdp neighbor detail" from the command prompt and you'll see a list of all the IP phones on the subnet, and some of their configuration.

Thomas Alexander Lancaster IV is a consultant and author with over ten years experience in the networking industry, focused on Internet infrastructure.

This was first published in September 2005

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.