05-07-2016 08:27 AM - edited 03-08-2019 05:39 AM
Hi everyone,
I study for my ccna and I'm wondering about a problem with STP.
I think this question has already been asked but I can not find a concrete answer.
My topologies :
n°1
In this topology Sw0 is root with lowest BID, sw1 secondth, sw2 third and so on. Sw2 has a RP = 19, Sw3 has a RP = 8. Why on the segment between SW1/SW3 f0/2 = DP and G0/1 = BLK ?
n°2
So in this topology (i think understand but i need an outside view)
In this topology Sw4 is root with lowest BID, sw5 secondth, sw6 third and so on. Sw6 has a RP = 8, Sw7 has a RP = 4. Why on the segment between SW7/SW8 g0/1(sw7) = DP and G0/1(sw8) = BLK ?
Although I have my book ICND 2 under my eyes, this 2 topologies are a little complicated.
Best regards,
Julien
Solved! Go to Solution.
05-07-2016 09:33 AM
Hi Julien -
Let me start with a quick history of STP. STP was designed when hubs were still commonly in use, so we have this idea that at least 1 bridge (or switch) must "service" every link in the network. This means that in the link furthest from the root which would cause a loop always has one bridge in forwarding and one in blocking.
How do we determine which bridge forwards and which one blocks? All other things being equal, we will use end to end path cost. This means that we can simply add the costs and make a reasonable prediction. The costs are as follows (in standard STP): 10Mbps = 100, 100Mbps = 19, 1Gbps = 4.
Here are the path costs for the first topology:
Based on this we can see that 1) the best cost from Sw3 to the root is via Sw2, and 2) Sw1 will service the link between Sw3 and Sw1 because Sw1 has the lower cost to the root.
For the second topology, here are the path costs:
Hmm... Now we have a dilemma. We have 2 equal cost paths to the root for Sw6.
We solve this by having a tie-breaking system to determine the best path to the root.
For the SW6, we can predict that the first 2 tie breaks are equal for the BPDUs that upstream bridges send to it. This means that we have to go to #3.
BPDUs actually contain quite a bit of information. The 2 pieces that are important here are the "Root Bridge" and the "Designated Bridge" fields. When a bridge receives a BPDU it compares the root ID in the BPDU to it's own ID. If the bridge's ID is higher, then it forwards the root ID unchanged in BPDUs it sends to others. It will also send it's own ID in the Designated Bridge field.
What does this mean for topology 2? It means that Sw6 will receive the root ID and upstream bridge ID in BPDUs from both Sw5 and Sw7. Since the Root ID and Cost are the same Sw6 will then compare the Designated Bridge IDs and choose the lower one.
Since you stated in the question that Sw5 ID < Sw7 ID, then we can predict that Sw6 will forward to the root via Sw5.
Sorry for the long answer, but you had a complicated question.
HTH
PSC
05-07-2016 09:33 AM
Hi Julien -
Let me start with a quick history of STP. STP was designed when hubs were still commonly in use, so we have this idea that at least 1 bridge (or switch) must "service" every link in the network. This means that in the link furthest from the root which would cause a loop always has one bridge in forwarding and one in blocking.
How do we determine which bridge forwards and which one blocks? All other things being equal, we will use end to end path cost. This means that we can simply add the costs and make a reasonable prediction. The costs are as follows (in standard STP): 10Mbps = 100, 100Mbps = 19, 1Gbps = 4.
Here are the path costs for the first topology:
Based on this we can see that 1) the best cost from Sw3 to the root is via Sw2, and 2) Sw1 will service the link between Sw3 and Sw1 because Sw1 has the lower cost to the root.
For the second topology, here are the path costs:
Hmm... Now we have a dilemma. We have 2 equal cost paths to the root for Sw6.
We solve this by having a tie-breaking system to determine the best path to the root.
For the SW6, we can predict that the first 2 tie breaks are equal for the BPDUs that upstream bridges send to it. This means that we have to go to #3.
BPDUs actually contain quite a bit of information. The 2 pieces that are important here are the "Root Bridge" and the "Designated Bridge" fields. When a bridge receives a BPDU it compares the root ID in the BPDU to it's own ID. If the bridge's ID is higher, then it forwards the root ID unchanged in BPDUs it sends to others. It will also send it's own ID in the Designated Bridge field.
What does this mean for topology 2? It means that Sw6 will receive the root ID and upstream bridge ID in BPDUs from both Sw5 and Sw7. Since the Root ID and Cost are the same Sw6 will then compare the Designated Bridge IDs and choose the lower one.
Since you stated in the question that Sw5 ID < Sw7 ID, then we can predict that Sw6 will forward to the root via Sw5.
Sorry for the long answer, but you had a complicated question.
HTH
PSC
05-07-2016 10:50 AM
Hi Paul,
Thanks to your explanation. It's good to have a long answer if the details corresponding to the request and in this case it meets my needs.
thanks you Paul
Best regards
julien
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide