Question: STP and Choosing a Root Port
Here’s a new CCNA-level question to consider, this time on Spanning Tree Protocol. Before diving in, be warned, it’s meant for study prep, not for assessment. That is, I’m not attempting to make this question exactly like an exam question, but rather, make it useful for forcing you to think about what you learned, apply it in a new way, and really understand this stuff.
In the switched network shown in the figure, consider only the spanning tree for VLAN 2. The switches use some mechanism for STP that creates a separate STP topology per VLAN, for instance, PVST+. The example that follows shows a portion of the output from a show command on switch S1.
Figure 1: Question Topology, Four Switches
Example 1: SW1 Output
S1#show spanning-tree vlan 2 VLAN0002 Spanning tree enabled protocol ieee Root ID Priority 32770 Address 0019.e859.5380 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32770 (priority 32768 sys-id-ext 2) Address 0019.e859.5380 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15 sec ! The rest of the output has been omitted
There are no other devices or links in the network. All the links physically work and are enabled (no shutdown). All the links use 802.1Q trunking. Using this description, answer the following questions:
1) Which of the following settings impact a switch’s choice of root port in VLAN 2, on at least one of the switches in this topology?
A) S2’s VLAN 2 STP cost on F0/1
B) S3’s VLAN 2 STP cost on F0/2
C) S4’s VLAN 2 port priority on F0/2
D) S2’s VLAN 2port priority on F0/3
E) S3’s VLAN 2 STP cost on F0/1
F) None of the above
[…] interface costs matter? What interface STP priorities matter? That was the crux of the question posed in the previous post. The literal answer is below the fold to avoid spoiling it, and the explanation is in a new video I […]
[…] which one switch does not have a direct link to the root. What happens in this case? Note that as with the previous question, this one is meant for study prep, not for assessment, so don’t worry about how much time it […]
[…] post answers the Spanning Tree question linked here. The short answer is that there are lots of right answers! What could impact the choice of root […]
Dear Sir,
Option A – S2’s VLAN 2 STP cost on F0/1
If we increase the cost to a value more than 38 , then S2’s Fa0/1 will no longer be the Root port for VLAN 2.
Thanks
Avinash
Hi Mr Odom, i think answer is “A”
P.S “B” and “E” options is the same ( S3’s VLAN 2 STP cost on F0/2 ).
Hi Wendell,
i think answers are A and D.
As Samir noted, the answers B and E are same.
Thanks!
Thanks Happy!
I changed Answer E to mention S3’s F0/1.
The I believe A, B, and E are correct – check those figures in the middle of the explanation. Those those the interfaces whose costs, if changed, will impact the root port choice by both S2 and S3.
But this is a fairly challenging exercise, and somewhat abstract!
Wendell
Wendell, why is B considered in this scenario? Is it because if SW3 F0/1 fails then F0/2 port cost is considered? If that is the case, if SW3 F0/1 fails, it has no other choice than to forward out F0/2 and port cost wouldn’t be considered correct?
Hi Gabriel,
I believe the answer’s post (https://www.certskills.com/ccna/stp-qa-801-answer/) has a section on that very point… Note that the question is pretty broad, so most every interface could have an impact on some switch’s decision process.
Wendell
Hi Wendell , first I would like to say that i love all your books, i purchased most of your current books for ccna .im just confused with your icnd2 200-105 book,part 1,chapter 3,review question num 5 page 87, i am wondering why the answer is A (says local switch is the root)is included as correct answer. the question, ask us to examine the first 7 line of the output of “show spanning-tree”command, the command shows the protocol used(rstp)priority number,mac add,cost:15,port and hello timer. To my understanding , in a root switch ,cost should be 0, since no other cost to reach it self , and another there must be”this bridge is the root. I think the local switch is not the root,please correct me if a am wrong. thanks
Hi Dell,
Thanks – glad you love the books!
First, for some quick background, in case it’s helpful…
We post the errata file for these books off the “Updates” tab on the web page for the book. http://www.ciscopress.com/store/ccna-routing-and-switching-icnd2-200-105-official-cert-9781587205798
That’s true for all Cisco Press books, and it’s collected mostly from reader feedback we receive per the instructions on page iii of each book under “Feedback”. So you can find all know errata (that is, errors that are meaningful; we don’t post the obvious typos) on the equivalent page for any Cisco Press book.
That said, indeed, answer A is not correct. Note that the question appears on page 70 of the retail edition, not page 87 – maybe you’re reading the Academic Edition (which has different page numbers), and even has a different errata file with page numbers for that book). Anyway, if you look at the errata file, you’ll see where for page 71 (retail edition) it shows that the incorrect answer set of A, D should instead list only letter D as a correct answer.
Hope this helps,
Wendell
Answers:- A, D, and, E.
A). S2’s F0/1 Path cost to the root is lowest.
D). I am sorry. This choice of answer is wrong, because here priorities of both switches to the root seem equal. In other words both answers, C), and, D), could be counted as correct.
E). S3’s cost to the root on F0/1 is lowest.
Sorry again for the confusion caused by my earlier answers.
The correct answers are, A), and, E), because of the lowest path costs to the root bridge S1, from F0/1 of S2, and F01 of S3.
Hi Wendell,
I hope you doing well. could you tell me why the port connected to Endpoint is always has the DP role? BTW I`ve studied the book but is wasn`t clear me out
Wourya,
Thanks, getting better every week!
Short version: yes. Longer version: On any link, the devices send their Hello BPDUs, which list their root cost. Lowest cost wins. On an edge port, with one switch and one endpoint, the endpoint does not use STP and does not send a Hello. So, the switch sends its Hello, receives none, always wins with lowest root cost, and always become DP. That role then tells the switch to migrate to a Forwarding state, which of course is needed for the port to operate and send/receive frames with the endpoint.
Hope this helps,
Wendell
thank you Wendell, it is very clear now