December 9, 2012

CDP: Cisco Discovery Protocol

 
Cisco Discovery Protocol (CDP) is primarily used to obtain protocol addresses of neighboring devices and discover the platform of those devices. CDP can also be used to show information about the interfaces your router uses. CDP is media- and protocol-independent, and runs on all Cisco-manufactured equipment including routers, bridges, access servers, and switches.
Explanation:
CDP runs on all media that support Subnetwork Access Protocol (SNAP), including local-area network (LAN), Frame Relay, and Asynchronous Transfer Mode (ATM) physical media. CDP runs over the data link layer only. Therefore, two systems that support different network-layer protocols can learn about each other.
Each device configured for CDP sends periodic messages, known as advertisements, to a multicast address. Each device advertises at least one address at which it can receive SNMP messages. The advertisements also contain time-to-live, or holdtime, information, which indicates the length of time a receiving device should hold CDP information before discarding it. Each device also listens to the periodic CDP messages sent by others in order to learn about neighboring devices and determine when their interfaces to the media go up or down. 
CDP is a Cisco proprietary Layer 2 protocol that is media- and protocol-independent, and runs on all Cisco-manufactured equipment that includes:
  • routers
  • bridges
  • access servers
  • switches
A Cisco device enabled with CDP sends out periodic interface updates to a multicast address in order to make itself known to neighbors. Since it is a layer two protocol, these packets (frames) are not routed. Use of SNMP with the CDP MIB allows network management applications to learn the device type and the SNMP agent address of neighboring devices, and to send SNMP queries to those devices.
 
Let us apply CDP on packet tracer.
 
1
In the above topology, we have different devices attached with each other. So, if we want to look for the information of neighboring devices, we will apply the following command on Router enabled mode, “show cdp neighbors”.

2
And on Router 2 and 3 as well, as shown in figures below.

3

It can be seen clearly that it gives us the information of the neighboring devices. Note one thing here, that it gives us the information of the routers and switches that are directly attached to its ports. However, it does not gives us information about the hosts that are attached to it directly.

4



9 comments:

  1. I think devices should have to use the same network for the purpose of sharing data, For the same network you don't need to change the IP addresses of the devices for sending and receiving data and data communication purposes.

    ReplyDelete
  2. All these kind of photos which we saw here these all are share for some specific work. And here is no one who aware from the assignmenthelponline writing service review of this blog. And may be this is some how which is helping the others in any way and otherwise they have not a huge list of the readers.

    ReplyDelete
  3. This is really informative blog! Belkin is one of the most trustable routers in the UK. Belkin Router provides best internet service by their latest features.

    ReplyDelete
  4. CCNA is the abbreviation for Cisco Certified Network Associate. An accredited Cisco Certified Network Associate is someone who has gained the entry level certification for computer systems and networks. CCNA Classes in Pune

    ReplyDelete
  5. There is a problem on loading this site therefore I'm using nordvpn. If you are facing same problem then buy nordvpn 1 month coupon.

    ReplyDelete

C program to Read From a File

#include <stdio.h> #include <stdlib.h> void main() {     FILE *fptr;     char filename[15];     char ch;   ...