networking:spanning_tree_protocol
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
networking:spanning_tree_protocol [2020/10/25 12:24] – hvillanueva | networking:spanning_tree_protocol [2020/10/25 12:32] – hvillanueva | ||
---|---|---|---|
Line 63: | Line 63: | ||
choose the one with the highest cost. If the cost is the same, the port that is blocked is the one with the highest identifier. | choose the one with the highest cost. If the cost is the same, the port that is blocked is the one with the highest identifier. | ||
- | {{: | + | {{: |
+ | |||
+ | ===== LABORATORY ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | All switches in the above topology are assumed to have the same priority. | ||
+ | So, we know that the first step is to choose the RB. To do this, having all the same priority, the algorithm chooses the one with the lowest MAC address, which turns out to be SW3. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The next step is to find the minimum path from each switch to the RB. | ||
+ | Starting with SW2 we see that it has two ports that allow us to reach the RB. For port 5 as well as for port 17 the total cost is 19, the result of 100 Mbps links. In this case, port 5 is chosen as root and it will go to FWD status, while port 17 would remain as non-port. designated. Port 17 goes to the listening state (LST), as the switched next hop has been put to the blocked state (BLK). The reasons why this last case will be seen when we analyze SW1. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In the case of SW1, we observe that it has two ports that allow us to reach the RB. For port 7 the total cost is 38, the result of adding 19 of the 100 Mbps direct link plus 19 of the link that is accumulated from the previous 100 Mbps switch (accumulated values to reach the RB through this route) and for port 1 with a total cost of 19 (since it has a direct connection with the RB by this route). In this specific case, the port with the smallest cost value is chosen, which is port 1. In this way, port 1 will be the root port (Designated) and will go to FWD status and port 7 will remain in status (BLK) locked. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In the event that port 1 fails, SW1 port 7 will automatically reactivate, changing its state from BLK to LST state (listening), |