
Go backward to Announcements
Go up to Top
Go forward to Routing in Wide Area Networks
The IEEE 803.1 Bridge Spanning Tree Algorithm
- The details of bridge election are fairly simple.
- Each bridge has a unique "priority" assigned to it
actually a non-unique priority with a unique ID
appended to it) and
each port has a "cost". These can be set by the
network administrator or left at default values
supplied by the factory.
- When the bridges recognize the need for an election,
they all start sending packet announcing the
candidate they endorse including:
- The candidate's priority (Initially
this will be their own priority.
- Their ID number.
- The cost
of reaching the candidate from the sending hub.
- As bridges receive such packets, they look for the candidate
with the lowest priority/ID pair and given equal priorities
they look for the lowest path cost.
Each bridge maintains
- The priority/ID of the best candidate for root
it has seen (i.e. the smallest priority/ID seen).
- The cost of and port leading to the best known
route to the best candidate for root.
- For each port attached to the bridge,
the contents of the campaign packet received
on that port advertising the least cost to
reach the root.
This information is collected as follows:
- If a packet arrives with a priority/ID greater than
the bridges current "candidate, it ignores the packet.
- If a packet arrives with a smaller priority/ID than
the bridges current candidate
- Replace the bridge's candidate for root with
the priority/ID contained in the packet.
- Set the bridge's "least cost to reach the
root" value to infinity.
- For each port, set the best advertised
"reach the root" cost to infinity.
- Compare the cost advertised in the current packet to
the best "reach the root" cost for the port on
which it arrived. If its cost is smaller, store
it as the new best "reach the root" advertisement.
- Add the cost associated with the port on which the
packet arrived to the cost advertised in the packet.
If this cost is smaller than the cost of the best
previously known path the the current root candidate,
save the cost and port number as the new best route
to the root info.
- When the process is over, every bridge knows
the ID of the winner (i.e. the new root
bridge) and the cost of and the first step in
the least cost path to the root.
- Once the root is selected, the remainder of the loop-cutting
process occurs locally within each sub-LAN.
- For each of its ports, each bridge compares its cost
to reach the root to the smallest cost that had
been advertised on the LAN attached to that port.
If some other bridge advertised a smaller cost, then
the original bridge will turn off forwarding of packets
received on that port.
Computer Science 336
Department of Computer Science
Williams College