Chapter4ServiceConīæguration
Switch2(cfg)#showloopdetect
Theblock-delayofloopdetect:5(min)
Thepacketintervalofloopdetect:15(sec)
PortIdisUpisStpisProtectisExtendloopVlanNumloopType
----------------------------------------------------
1UpNoYesYes1Port
2UpNoYesNo0Port
4.37UDLDConīguration
UDLDOverview
UniDirectionalLinkDetection(UDLD)isaLayer2logicallinkdetectionprotocol.Itcan
detectlogicalconnectivityofEthernetlinksandverifyphysicalconnectivity.Differentfrom
physicalconnectivitydetection,UDLDisneighbor-baseddetection.Layer1devicesare
transparentforUDLD.
UDLDneedstoestablishneighborrelationshipbetweenLayer2devicesīærst.Whenthe
UDLDfunctionisenabledonanEthernetportwhosestatusisup,theportsendsaProbe
messageinvitinganeighbordevicetojoin.TheportonwhichtheUDLDfunctionisenabled
ontheneighbordevicereceivestheProbemessageandsendsanEchomessage.Ifthe
portreceivestheEchomessage,theconnectionbetweenthedevicesworksproperlyin
bothdirectionsintheviewofthelocaldevice.Neighborrelationshipisestablishedwith
thepeerdeviceonthelocaldevice.ThelocaldevicessendsanEchomessage.Afterthe
peerdevicereceivestheEchomessage,theneighborrelationshipisestablishedbetween
thedevices.
Afterneighborrelationshipisestablished,thedevicessendHellomessagesperiodically
todetectwhetherthelinkisoperatingproperly.WhenreceivingaHellomessagefromthe
neighbor,adeviceupdatestheneighborinformationsavedlocallyandresetsthetime-out
periodoftheneighbor.IfthedevicedoesnotreceivesaHellomessagewhenthetime-out
periodexpires,itisconsideredthattheafaultoccurstotheneighborandtheneighboris
aged.Ifthelastneighborisdeletedduetoaging,itisconsideredthatthelinkisnotin
normaloperatingstate.Itisnecessarytohandletheproblemaccordingtoworkingmode.
TherearetwoUDLDworkingmodes:normalmodeandaggressivemode.
lInnormalmode,onlywhenthedevicereceivesaprotocolmessageconīærmingthat
thelinkisconnectedincorrectlywilltheportbeshutdown.Ifthedevicedoesnot
receivetherelatedmessageorcannotconīærmthatthelinkisworkingproperlyinone
direction,thedevicedoesnotoperatestheport.
lInaggressivemode,ifthedevicecannotconīærmthatthelinkisworkingproperlyin
bothdirections(suchasthelinkisconnectedincorrectly,thelinkisworkingproperly
onlyinonedirectionorthelinkisaself-loop),theportisshutdown.Itisnecessaryto
usetheresetorrecoverycommandtorecoverthecommunicationabilityoftheport.
Generally,UDLDshutsdownaportinthefollowingsituations.
4-131
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandConīædential