Specifications
Understanding How Spanning Tree Operates
March 14, 2011 Page 7 of 29
Rootportsanddesignatedportsareleftintheforwardingstate.Redundantportsareplacedinthe
blockingstatetoensurethetopologyremainsloop‐free.Table 2liststheseandadditionalport
stateswhichcontroltheforwardingandlearningprocesseswithinatopology.
Typically,switchportsareeitherinblockingor
forwardingstate.Asstatedpreviously,a
forwardingportisaportthathasthelowestpathcosttotherootbridge.Aportwillneverbe
placedinforwardingstateunlesstherearenoredundantlinksandSpanningTreedeterminesthat
itisthebestpathtotherootbridge.
Ifthenetworktopologychanges(forexample,duetoafailed
linkortheadditionofanewswitchingdevicetothe network),theportsonaswitchwillbein
listeningandlearningstates.Blockingportsareusedtopreventnetworkloops.Onceaswitch
determinesthebestpathto
therootbridge,allotherportswillbeinblockingstate.Blockedports
donotforwardframes,buttheystillreceiveBPDUs.Ifaswitchdeterminesthatablockedport
shouldnowbethedesignatedport,itwillgointolisteningstate.ItwillcheckalltheBPDUsto
make
surealoopwillnotbecreatedoncetheportgoestoforwardingstate.
MSTP Operation
MSTPmakesitpossibleforVLANswitchingdevicestousemultipleSpanningTrees,allowing
trafficbelongingtodifferentVLANstoflowoverpotentiallydifferentpathswithintheLAN.It
buildsupontheadvancementsofRSTPwithitsdecreasedtimefornetworkre‐spans.MSTP’s
principleobjectiveistoincreasebandwidthutilization
byallowing:
•FramesassignedtodifferentVLANstofollowdifferentdataroutes
•PortstoblockforsomeSpanningTreesandforwardforothers
•EveryISLinthetopologytobeforwardingforatleastoneSpanningTree
Table 1 Spanning Tree Port Roles
Port Role Description
Root The one port that is used to connect to the root bridge. It is elected based on its least
“path-cost” to the root bridge and is forwarding traffic.
Alternate Any redundant upstream port that provides an alternate path to the root bridge (other
than the root port).
Designated Any downstream port that provides a path back to the root bridge for a downstream
bridge. This port is forwarding traffic.
Backup A port that acts as a redundant designated port on a shared LAN.
Table 2 Spanning Tree Port States
Port State Behavior
Blocking Actively preventing traffic from using this path. Still receiving BPDUs, so continuing to
monitor for management and STA information.
Listening Continuing to block traffic while waiting for protocol information to determine whether
to go back to the blocking state, or continue to the learning state. Listens to BPDUs
to ensure no loops occur on the network.
Learning Learning station location information but continuing to block traffic.
Forwarding Forwarding traffic and continuing to learn station location information.
Disabled Disabled administratively or by failure.