![Luxul AMS-1208P Quick Setup Manual Download Page 23](http://html.mh-extra.com/html/luxul/ams-1208p/ams-1208p_quick-setup-manual_1952762023.webp)
21
UNDERSTANDING SPANNING TREE
TheSpanningTreeProtocol(STP)isanetworkprotocolthatensuresaloop-freetopologyforanybridgedEthernetlocal
areanetwork.ThebasicfunctionofSTPistopreventbridgeloopsandtheresultingbroadcastradiation.Spanningtree
alsoallowsanetworkdesigntoincludespare(redundant)linkstoprovideautomaticbackuppathsifanactivelinkfails,
withoutthedangerofbridgeloops,ortheneedformanualenabling/disablingofthesebackuplinks.
Asthenamesuggests,SpanningTreecreatesatreewithinanetworkofconnectedEthernetswitches,anddisablesthose
linksthatarenotpartofthespanningtree,leavingasingleactivepathbetweenanytwonetworknodes.
Eliminating Loops
IfyourswitchesareconnectedinaloopwithoutSTP,eachswitchwouldinfinitelyduplicatethefirstbroadcastpacketit
receivedbecausethere’snothingtopreventaloop.
STPpreventsloopsbyblockingoneormoreofthelinks.Ifoneofthelinksinusegoesdown,thenitwouldfailovertoa
previously-blockedlink.Howspanningtreechooseswhichlinktousedependsentirelyonthetopologythatitcansee.
Theideabehindaspanningtreetopologyisthatbridgescandiscoverasubsetofthetopologythatisloop-free:that’s
thetree.STPalsomakescertainthereisenoughconnectivitytoreacheveryportionofthenetworkbyspanningthe
entireLAN.
Spanning Tree Configuration
Bridgeswillperformthespanningtreealgorithmwhentheyarefirstconnectedtothenetworkorwheneverthereisa
topologychange.
Whenabridgehearsa“configurationmessage,”itwillbeginitsdisruptivespanningtreealgorithm.Thisstartswiththe
electionofa“rootbridge”throughwhichalldatawillflow.
Next,eachbridgedeterminestheshortestpathtotherootbridgesothatitknowshowtogettothe“center.”Asecond
electionhappensoneachLAN,anditelectsthedesignatedbridge,orthebridgethat’sclosesttotherootbridge.The
designatedbridgewillforwardpacketsfromtheLANtowardtherootbridge.
Thefinalstepforanindividualbridgeistoselectarootport.Thissimplymeans“theportthatIusetosenddatatowards
therootbridge.”
c
n
NOTE:
cEverycsinglecportconcacbridgec(evencthosecconnectedctocendpoints)cwillcparticipatecincthecspanningctreecunlesscacportcisc
configuredcasc“ignore.”
Anewly-connectedbridgewillsendareconfigurationmessage,andotherconnecteddeviceswillcomply.Alltrafficis
stoppedfor30-50secondswhilethespanningtreeiscalculated.
Spanning tree drawbacks
OnedrawbackofSTPisthateventhoughtheremaybemanyphysicalorequal-costmultiplepathsthroughyour
networkfromonenodetoanother,allyourtrafficwillflowalongasinglepathdefinedbyaspanningtree.Thebenefit
ofthisisthattrafficloopsareavoided,butthecostofrestrictingtraffictoauniquepathmeansblockingalternative,and
sometimesmoredirect,paths.Thatmeansthatyourfullpotentialnetworkcapacitycanneverberealized.