RSTP Protocol
RSTP Protocol
RSTP Protocol
com
Page 1 of 5
Protocol operation
http://www.answers.com/topic/spanning-tree-protocol
3/23/2007
Page 2 of 5
Listening - The switch processes BPDUs and awaits possible new information that would cause it to
return to the blocking state.
Learning - While the port does not yet forward frames (packets) it does learn source addresses from
frames received and adds them to the filtering database (switching database)
Blocking - A port that would cause a switching loop, no user data is sent or received but it may go
into forwarding mode if the other links in use were to fail and the spanning tree algorithm determines
the port may transition to the forwarding state. BPDU data is still received in blocking state.
Forwarding - A port receiving and sending data, normal operation. STP still monitors incoming BPDUs
that would indicate it should return to the blocking state to prevent a loop.
Disabled - Not strictly part of STP, a network administrator can manually disable a port
To prevent the delay when connecting hosts to a switch and during some topology changes, Rapid STP was
developed and standardized by IEEE 802.1w which allows a switch port to rapidly transition into the
forwarding state during these situations.
http://www.answers.com/topic/spanning-tree-protocol
3/23/2007
Page 3 of 5
Root - A forwarding port that has been elected for the spanning-tree topology
Designated - A forwarding port for every LAN segment
Alternate - An alternate path to the root bridge. This path is different than using the root port.
Backup - A backup/redundant path to a segment where another switch port already connects.
Disabled - Not strictly part of STP, a network administrator can manually disable a port
RSTP is a refinement of STP and therefore share most of its basic operation characteristics. However there
are some notable differences as summarized below
Detection of root switch failure is done in 3 hello times or 6 seconds if default hello time have not
been changed
Ports may be configured as Edge ports if they are attached to a LAN which has no other bridges
attached. These edge ports transition directly to the forwarding state. RSTP still continues to monitor
the port for BPDUs in case a bridge is connected. RSTP can also be configured to automatically detect
edge ports.
Unlike in STP, RSTP will respond to BPDUs sent from the direction of the root bridge. An RSTP bridge
will "propose" to its designated ports its spanning tree information. If another RSTP bridge receives
this information, determines this is the superior root information, and sets all its other ports to
discarding the bridge may send an "agreement" to the first bridge confirming its superior spanning
tree information. The first bridge, upon receiving this agreement, knows it can rapidly transition that
port to the forwarding state bypassing the traditional listening/learning state transition. This
essentially creates a cascading effect away from the root bridge where each designated bridge
proposes to its neighbors to determine if it can make a rapid transition. This is one of the major
elements which allows RSTP to achieve faster convergence times than STP.
As port roles details above shows, RSTP maintains back up details regarding discarding ports. This
avoids timeouts if the current forwarding ports were to fail or BPDUs were not recieved on the root
port in a certain interval.
http://www.answers.com/topic/spanning-tree-protocol
3/23/2007
Page 4 of 5
these VLANs operate in this spanning tree instance whenever they are inside the MST region. In order to
avoid conveying their entire VLAN to spanning tree mapping in each BPDU, bridges encode an MD5 digest of
their VLAN to instance table in the MSTP BPDU. This digest is then used by other MSTP bridges, along with
other administratively configured values, to determine if the neighboring bridge is in the same MST region as
itself.
MSTP is fully compatible with RSTP bridges, in that an MSTP BPDU can be interpreted by an RSTP bridge as
an RSTP BPDU. This not only allows compatibility with RSTP bridges without configuration changes but also
causes any RSTP bridges outside of an MSTP region to see the region as a single RSTP bridge, regardless of
the number of MSTP bridges inside the region itself. In order to further facilitate this view of an MST region
as a single RSTP bridge, the MSTP protocol utilizes a variable known as remaining hops as a time to live
counter instead of the message age timer used by RSTP. The message age time is only incremented once
when spanning tree information enters an MST region and therefore RSTP bridges will see a region as only 1
"hop" in the spanning tree. Ports at the edge of an MST region connected to either a RSTP or STP bridge or an
endpoint are known as boundary ports. Like RSTP these ports can be configured as edge ports to facilitate
rapid changes to the forwarding state when connected to endpoints.
Trivia
Radia Perlman, the inventor of the algorithm summarized it in the form of a poem, titled "Algorhyme":
(This poem was modified from the original entitled "Trees", by Joyce Kilmer).
I think that I shall never see
A graph more lovely than a tree.
A tree whose crucial property
Is loop-free connectivity.
A tree which must be sure to span.
So packets can reach every LAN.
First the Root must be selected
By ID it is elected.
Least cost paths from Root are traced
In the tree these paths are placed.
A mesh is made by folks like me
Then bridges find a spanning tree.
References
Perlman, Radia (2000). Interconnections, Second Edition. USA: Addison-Wesley. ISBN 0-201-63448-1.
See also
External links
http://www.answers.com/topic/spanning-tree-protocol
3/23/2007
Page 5 of 5
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by
professional editors (see full disclaimer)
Donate to Wikimedia
http://www.answers.com/topic/spanning-tree-protocol
3/23/2007