What is UDLD protocol ?

 In order to detect the unidirectional links before the forwarding loop is created, Cisco designed and implemented the UDLD protocol. UDLD is a Layer 2 (L2) protocol that works with the Layer 1 (L1) mechanisms to determine the physical status of a link. At L1, auto-negotiation takes care of physical signaling and fault detection. UDLD performs tasks that auto-negotiation cannot perform, such as detecting the identities of neighbors and shutting down misconnected ports.
  When you enable both auto-negotiation and UDLD, L1 and L2 detections work together to prevent physical and logical unidirectional connections and the malfunctioning of other protocols. UDLD works by exchanging protocol packets between the neighboring devices. In order for UDLD to work, both devices on the link must support UDLD and have it enabled on respective ports.
  Each switch port configured for UDLD will send UDLD protocol packets containing the port’s own device/port ID, and the neighbor’s device/port IDs seen by UDLD on that port.
Neighboring ports should see their own device/port ID (echo) in the packets received from the other side. If the port does not see its own device/port ID in the incoming UDLD packets for a specific duration of time, the link is considered unidirectional.


Reference: http://www.cisco.com/warp/public/473/77.html

Leave a Reply