Rapid Spanning Tree Protocol RSTP Tutorial
Note: Before reading this article you should understand how STP works. So if you are not sure about STP, please read my article about Spanning Tree Protocol tutorial first.
Rapid Spanning Tree Protocol (RSTP)
One big disadvantage of STP is the low convergence which is very important in switched network. To overcome this problem, in 2001, the IEEE with document 802.1w introduced an evolution of the Spanning Tree Protocol: Rapid Spanning Tree Protocol (RSTP), which significantly reduces the convergence time after a topology change occurs in the network. While STP can take 30 to 50 seconds to transit from a blocking state to a forwarding state, RSTP is typically able to respond less than 10 seconds of a physical link failure.
RSTP works by adding an alternative port and a backup port compared to STP. These ports are allowed to immediately enter the forwarding state rather than passively wait for the network to converge.
RSTP bridge port roles:
* Root port – A forwarding port that is the closest to the root bridge in terms of path cost
* Designated port – A forwarding port for every LAN segment
* Alternate port – A best alternate path to the root bridge. This path is different than using the root port. The alternative port moves to the forwarding state if there is a failure on the designated port for the segment.
* Backup port – A backup/redundant path to a segment where another bridge port already connects. The backup port applies only when a single switch has two links to the same segment (collision domain). To have two links to the same collision domain, the switch must be attached to a hub.
* Disabled port – Not strictly part of STP, a network administrator can manually disable a port
Now let’s see an example of three switches below:

Suppose all the switches have the same bridge priority so the switch with lowest MAC address will become root bridge -> Sw1 is the root bridge and therefore all of its ports will be Designated ports (forwarding).
Two ports fa0/0 on Sw2 & Sw3 are closest to the root bridge (in terms of path cost) so they will become root ports.
On the segment between Sw2 and Sw3, because Sw2 has lower MAC than Sw3 so it will advertise better BPDU on this segment -> fa0/1 of Sw2 will be Designated port and fa0/1 of Sw3 will be Alternative port.

Now for the two ports connecting to the hub, we know that there will have only one Designated port for each segment (notice that the two ports fa0/2 & fa0/3 of Sw2 are on the same segment as they are connected to a hub). The other port will be Backup port according to the definition of Backup port above. But how does Sw2 select its Designated and Backup port? The decision process involves the following parameters inside the BPDU:
* Lowest path cost to the Root
* Lowest Sender Bridge ID (BID)
* Lowest Port ID
Well, both fa0/2 & fa0/3 of Sw2 has the same “path cost to the root” and “sender bridge ID” so the third parameter “lowest port ID” will be used. Because fa0/2 is inferior to fa0/3, Sw2 will select fa0/2 as its Designated port.

Note: Alternative Port and Backup Port are in discarding state.
RSTP Port States:
There are only three port states left in RSTP that correspond to the three possible operational states. The 802.1D disabled, blocking, and listening states are merged into the 802.1w discarding state.
* Discarding – the port does not forward frames, process received frames, or learn MAC addresses – but it does listen for BPDUs (like the STP blocking state)
* Learning – receives and transmits BPDUs and learns MAC addresses but does not yet forward frames (same as STP).
* Forwarding – receives and sends data, normal operation, learns MAC address, receives and transmits BPDUs (same as STP).
| STP State (802.1d) | RSTP State (802.1w) |
| Blocking | Discarding |
| Listening | Discarding |
| Learning | Learning |
| Forwarding | Forwarding |
| Disabled | Discarding |
Although the learning state is also used in RSTP but it only takes place for a short time as compared to STP. RSTP converges with all ports either in forwarding state or discarding state.
RSTP Quick Summary:
RSTP provides faster convergence than 802.1D STP when topology changes occur.
* RSTP defines three port states: discarding, learning, and forwarding.
* RSTP defines five port roles: root, designated, alternate, backup, and disabled.

When we say “Suppose all the switches have the same bridge priority so the switch with lowest MAC address will become root bridge “…
As a switch has many interfaces, it has many MAC addresses too.. Which one would we choose ?
@Koopotang: Each switch only has 1 MAC address even they have many interfaces. Maybe you are confused about the interfaces on the switch and router: Each interface on a router does have a separate MAC address.
Please help
Designated ports are selected based on the lowest path cost to the root bridge for a segment. Since the root bridge will have a path cost of “0,” any ports on it that are connected to segments will become designated ports. For the other switches, the path cost is compared for a given segment. If one port is determined to have a lower path cost, it becomes the designated port for that segment. If two or more ports have the same path cost, then the switch with the lowest BID is chosen.
or
lowest root bridge id
lowest root path cost
lowest sender bridge id
lowest sender port id
So designated port are choose by lower Mac Adress or Path cost???
On scenario u choosed (designatet port SW2 (FA01) but CISCO says that
switches, the path cost is compared for a given segment. If one port is determined to have a lower path cost, it becomes the designated port for that segment. If two or more ports have the same path cost, then the switch with the lowest BID is chosen.
So please help me with this
KOWO
“Well, both fa0/2 & fa0/3 of Sw2 has the same “path cost to the root” and “sender bridge ID” so the third parameter “lowest port ID” will be used. Because fa0/2 is inferior to fa0/3, Sw2 will select fa0/2 as its Designated port.”
Small fix but:
Shouldn’t this be, “Because fa0/2 is SUPERIOR to fa0/3, Sw2 will select fa0/2 as its Designated Port”
Hi 9tut,
Thanks for your excellent updates !!!!
I have one doubt, Can you please confirm me whether root bridge is selected on basis of high bridge priority or low bridge priority.
Once more thanks for your study materials!!!! :)
Root bridge is selected based on high bridge priority(lowest value)
is there any config. command for this mode?
FYI… each interface on a bridge has a unique MAC address… see section 7.12.2 of IEEE 802.1D-2004.
hi KOWO cisco said right if you read the tutorial carefully again you will get you answer, 9tut say the same meaning
you can easily nevertheless make creamy salad dressings with strong components Grapes 5s http://grapes5forsale.tumblr.com
Do quite a bit of explore on cosmetic operation, before you decide to make your last determination Grape 5s http://www.jordan5s.us
Let your doctor extend on it. Have a number of doubts completely ready prior to deciding to go in Jordan 5 http://jordan5grapeforsale.tumblr.com
This is the great method of getting some healthy veggies into a kids eating routine likewise as yours. Lebron X Elite http://lebron10elite2013.tumblr.com
Even when your confront might possibly feel itchy Pre Order Grape 5s http://grape5sforsale.tumblr.com
To get meat inventory on hand, freeze it in ice cube trays Breds 11 http://www.orderbreds11.org
but be ready to be in distress in addition to a very good deal of soreness after your process Jordan Grape 5 http://www.jordangrape5.us
and appear youthful. Before you decide to go beneath the knife Jordan 5 Retro http://www.ordergrape5s.us
You shouldn’t place this type of good sized amount of sizzling fluid with your refrigerator Grape 5s http://www.jordangrape5forsale.com
When preparing foods for picky young ones, experiment with adjusting up your presentation Grapes 5 For Sale http://www.jordangrape5s.org
o that one could add this for your beloved foods. Use this trick whenever you provide a lemon or lime Jordan 5 Grape http://www.grape5s2013.us
That way you could pay more time over the food stuff and much less time rummaging close to for the provides perhaps you may really need. Jordan 5 Retro http://www.jordangrape5s.us
Ensure teaching, licensing, Jordan 5 2013 http://www.jordangrape5s.net
Prepare your deliver the results surfaces and utensils prior to deciding to start Jordan Retro 5 http://www.grape5s2013online.com
You really should take some months to consider your judgement earlier than receiving surgical treatment Jordan 5 Grape http://jordan5grape.tumblr.com
This will aid you see in order for you to select him to accomplish your plastic surgical procedures, or not. Grape 5s http://jordan5grapes.tumblr.com
This is an excellent article. This cleared up several questions that I had on this topic. This is the kind of thing that needs to be included in the Cisco Network Academy–Lan Switching & Wireless portion. Thanks 9tut!
Thanks for another informative site. The place else may just I get that type of information written in such a perfect way? I have a venture that I’m simply now operating on, and I’ve been on the glance out for such info. coach outlet http://www.yesidobodas.com/contenidos/movil/coach-factory.html
I loved as much as you will receive carried out right here. The sketch is attractive, your authored subject matter stylish. nonetheless, you command get got an edginess over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike. coach outlet http://www.brainysoftware.com/yui/docs/coach-store.html
I do trust all of the ideas you’ve introduced for your post. They are very convincing and will definitely work. Nonetheless, the posts are very short for novices. May you please prolong them a bit from subsequent time? Thanks for the post. coach outlet http://www.pipalanswers.com/pipaldb/experts/coach-for-sale.html
I and my buddies happened to be checking out the great tactics on your web site while at once I got a terrible feeling I never expressed respect to the website owner for those strategies. These women appeared to be as a result stimulated to study them and now have actually been loving these things. Thanks for being very thoughtful as well as for getting this kind of ideal ideas most people are really wanting to discover. Our honest regret for not expressing gratitude to sooner. coach outlet http://www.yesidobodas.com/contenidos/movil/coach-store.html
I have been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the internet will be much more useful than ever before. coach outlet http://www.pipalanswers.com/pipaldb/experts/coach-store.html
I simply couldn’t go away your web site before suggesting that I extremely loved the usual info a person supply to your visitors? Is gonna be back frequently in order to investigate cross-check new posts coach outlet http://www.brainysoftware.com/yui/docs/coach-for-sale.html
Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a little bit, but other than that, this is excellent blog. An excellent read. I’ll certainly be back. coach outlet http://www.pipalanswers.com/pipaldb/experts/coach-factory.html
Hi there, I desire to subscribe for this website to obtain most recent updates, thus where can i do it please assist. coach outlet http://www.yesidobodas.com/contenidos/movil/coach-for-sale.html