STP Algorithm: Ports have same cost to root, which port is set to blocking

stp

Here's the situation: There is a bridge that has the lowest ID within a loop. This bridge has two ports, both with equal cost to the root, how does STP decide which port is forwarding, and which port is blocking? Does it find the port with the highest ID and block on that port?

If anyone needs more information, I'd be happy to provide it. Thanks in advance for your help.

-Josh

Best Answer

The root port is always the link directly connected to the root bridge, or the shortest path to the root bridge. If more than one link connects to the root bridge, then a port cost is determined by checking the bandwidth of each link. The lowest-cost port becomes the root port. If multiple links have the same cost, the bridge with the lower advertising bridge ID is used. Since multiple links can be from the same device, the lowest port number will be used.

Related Topic