Solved

When to use UDLD

Posted on 2016-08-06
7
50 Views
Last Modified: 2016-08-07
UDLD is mentionned in several examples where Fiber Channel connection is used. However I believe it is also used in Copper cable connections when Etherchannel is configured.
For Etherchannel , I thought STP can take care of the loops if any cable goes wrong, no need for UDLD.  
I am not sure if in Fiber Channel we 'll have to configure both  STP and UDLD

Thank you
0
Comment
Question by:jskfan
  • 4
  • 3
7 Comments
 
LVL 27

Expert Comment

by:Predrag Jovic
ID: 41745925
You can use UDLD on optic cables, copper cables including on etherchannels. UDLD and STP do not exclude each other, you need to configure both (or at least just STP), if you disable STP and enable just UDLD it can lead to network loop. UDLD can be considered a kind of helper for STP (created for specific purpose - detect unidirectional links), addition to make sure that STP will function properly.

You can read for example this article.
0
 

Author Comment

by:jskfan
ID: 41746252
- What do they mean by Unidirectional Link ? if Fiber is used then each link is dual-link (TX/RX)
- If UDLD is implemented and it detects a non-functional cable and turns the port into Errdisabled then what does STP do , as I am assuming UDLD has faster detection than STP ? I know that STP will change the Topology, but what I am looking for is if STP alone can do the job then what UDLD adds as value ?

Thank you
0
 
LVL 27

Expert Comment

by:Predrag Jovic
ID: 41746285
if Fiber is used then each link is dual-link
UDLD (Uni Directional Link Detection) - is all about if only one link gets broken (Tx or Rx) and other link is still active. If only one link is active it can lead to network loop, STP in that case will not function properly.
Unidirectional link is classic example how to create network loop, STP in that case will not detect network loop since it stops receiving BPDUs on inactive link.
what I am looking for is if STP alone can do the job then what UDLD adds as value ?
In the case of unidirectional link STP will not function properly. For that case you need to configure UDLD or LoopGuard.
If UDLD is implemented and it detects a non-functional cable and turns the port into Errdisabled then what does STP do
STP prevents network loop in the case when cable function properly. UDLD detect cable problems and error disables the port if problem is detected.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:jskfan
ID: 41746301
Ok in Fiber it makes Sense, since one Cable going to one Port , in fact  behind the scene is 2 cables(RX/TX) going to one port, and STP is based on Port than the physical link itself. UDLD in this case will help STP .


in Copper each cable is going to one Port , if ports are aggregated then it still one cable is going to one port, and STP is capable of detecting the link failure when a port does not receive BPDUs. UDLD in this case , I do not see it where it can help STP
0
 
LVL 27

Expert Comment

by:Predrag Jovic
ID: 41746316
in Copper each cable is going to one Port
Let's take for example 100Mb cable link. It uses 2 pair of wires, if one wire is broken (it happens occasionally) only one pair (Tx or Rx) will be active and in that case you have the same effect as in the case of optic cable.
0
 

Author Comment

by:jskfan
ID: 41746334
So UDLD is used in Cables that have RX/TX  going to one port

100 MB is Fastethernet , so it applies to Fastethernet ?
0
 
LVL 27

Accepted Solution

by:
Predrag Jovic earned 500 total points
ID: 41746434
It applies to both Gig and Fast ethernet links, it is just checking is traffic unidirectional, as long as it is bidirectional everything is OK, otherwise it will error disable port. I used specifcally 100Mb ports for easier understanding.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now