主权项 |
1. A non-transitory computer-readable medium that stores computer-executable instructions that, when executed, cause one or more processors to perform operations comprising:
running a spanning tree algorithm for a network that includes a first network edge switch, a second network edge switch, and an access switch,
wherein the access switch has a first network side port coupled to the first network edge switch using a second link,wherein the access switch has a second network side port coupled to the second network edge switch using a first link, andwherein running the spanning tree algorithm is based at least on a first port path cost and a second port path cost respectively associated with the first link and the second link; based upon a result of the spanning tree algorithm, configuring one of the first and second links as a primary link and the other of the first and second links as an alternate link,
wherein only the primary link is active and enabled to carry traffic until failure of the primary link, whereupon the alternate link is activated and enabled to carry traffic; adding a selected non-zero port path cost bias to the one of the first and second port path costs associated with the alternate link such that, in an absence of a failure of the primary link or the network-edge switch to which the primary link is coupled, the port path cost associated with the primary link is lower than the port path cost associated with the alternate link; assigning a port priority to each of the primary link and the alternate link; adding a non-zero port priority bias to the port priority assigned to the alternate link; and configuring the spanning tree algorithm to select as the primary link the one of the first and second links having a lowest port priority. |