174 CN4093 Application Guide for N/OS 8.4
Bridge Protocol Data Units
TocreateaSpanningTree,theswitch generatesaconfigurationBridgeProtocol
DataUnit(BPDU),whichitthenforwardsoutofitsports.Allswitchesinthe Layer
2networkparticipatingintheSpanningTreegatherinformationaboutother
switchesinthenetwork throughanexchangeofBPDUs.
Abridgesends
BPDUpacketsataconfigurableregularinterval(2secondsby
default).TheBPDUisusedtoestablishapath,muchlikeahellopacketinIP
routing.BPDUscontaininformationaboutthetransmittingbridgeanditsports,
includingbridgeMACaddresses,bridgepriority,portpriority,and pathcost.Ifthe
ports
aretagged,eachportsendsoutaspecialBPDUcontainingthetagged
information.
ThegenericactionofaswitchonreceivingaBPDUistocomp arethereceived
BPDUtoitsownBPDUthatitwilltransmit.IfthepriorityofthereceivedBPDUis
betterthanitsownpriority,it
willreplaceitsBPDUwiththereceivedBPDU.Then,
theswitchaddsitsownbridgeIDnumberandincrementsthepathcostofthe
BPDU.Theswitchusesthisinformationtoblockany necessaryports.
Note: IfSTPisgloballydisabled,BPDUsfromexternaldeviceswilltransitthe
switchtransparently.If
STPisgloballyenabled,forportswhereSTPisturnedoff,
inboundBPDUswillinsteadbediscarded.
Determining the Path for Forwarding BPDUs
Whendeterminingwhichporttouseforforwardingandwhichporttoblock,the
CN4093usesinformationintheBPDU,includ ingeachbridgeID.Atechnique
basedonthe“lowestrootcost”isthencomputedtodeterminethemostefficient
pathforforwarding.
Bridge Priority
ThebridgepriorityparametercontrolswhichbridgeonthenetworkistheSTG
rootbridge.Tomakeoneswitchbecometherootbridge,configurethebridge
prioritylowerthanallotherswitchesandbridgesonyournetwork.Thelowerthe
value,thehigherthebridgepriority.Usethefollowingcommandto
configurethe
bridgepriority:
CN 4093(config)# spanning-tree stp <1‐128> bridge priority <0‐65535>