Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Loop Guard and UDLD

I know that Loop guard is STP (L2) and UDLD is different (L1).
I would like to know if implementing Loop Guard would serve the purpose without implementing UDLD ?  

regarding  Loop guard, I am not sure if it is necessary. I believe in STP by default , if a port does not receive BPDUs ,STP will do its calculation and eventually will have one of the redundant link in blocking mode. So why configure Loop Guard ?

 Thank you
Avatar of SIM50
SIM50
Flag of United States of America image

Loop guard doesn't protect against mis-wiring where UDLD does.
UDLD doesn't protect against problems caused by the software where loop guard does.
Overall, both, loop guard and UDLD are pretty close and if you want to implement only one and not the other, it is suggested to go with UDLD. Software glitches are more rare than mis-wiring.

Lets say a port can't receive but can still send data due breaking of one strand of fiber. Can't receive data, can't see BPDUs. It causes the alternate port to transition to forwarding. Now you have one way loop. Configuring loop guard/UDLD helps to prevent this from happening.
Avatar of jskfan

ASKER

I would say probably UDLD  has capability of catching up the issue before STP knows about it..in other words it is a matter of timing .

In real environment, do Network Engineer configure Loop Guard in every blocked port in the Network ? knowing that Topology can change as well as the ports that are Blocking.
Well, once you have a proper network topology with core and aggregation layers, it doesn't change much often. But honestly, in my opinion, L2 networks and STP are becoming obsolete due to the convergence time and wasted links. Plus other factors like seven switch limitation of STP and etc. further decrease the viability in large networks. I attribute this to my lack of seeing the use of Loop Guard in the production environment. For example, in my previous job, all links were routed.
Avatar of jskfan

ASKER

in my opinion, L2 networks and STP are becoming obsolete
So how do you prevent a Loop from occurring in the Network ?
It's all in the design. You design VLANs not to expand passed you aggregation switches. Use routed links. If you need to expand it, like for your vmware servers, you use VXLAN or OTV. You can implement FabricPath and VPCs. There are many options available.
Avatar of jskfan

ASKER

OK STP is Layer2 , means it does not go beyond L3 device.
VLANs talk to each other through an L3 device (Router or L3 Switch)
If PVST or RPVST is implemented then even if there is an STP Loop, it might impact only hosts in that VLAN, the Loop cannot traverse L3
Avatar of jskfan

ASKER

You design VLANs not to expand passed you aggregation switches

you mean beyond Core Switches or Distribution Switches ? if you have them both in the design
Avatar of jskfan

ASKER

Well going back to UDLD and Loop Guard
 if we happen to choose Loop guard only , will it accomplish the same thing as implementing both UDLD and Loop Guard?

Also

if we happen to choose UDLD only , will it accomplish the same thing as implementing both UDLD and Loop Guard?
ASKER CERTIFIED SOLUTION
Avatar of SIM50
SIM50
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Thank you