A Spanning Tree Example

Consider the following bridged LAN:

This LAN contains cycles, which must be removed before data nodes start sending frames. The spanning tree algorithm results in the following LAN:

Two links have been "removed"; these are the link from port 0 of bridge 86 to port 1 of bridge 98, and the link from port 1 of bridge 86 to port 3 of bridge 61. Neither of these links were on any bridge's shortest path to the root, and so are redundant.

The Learning Algorithm

Suppose the tables start out empty, H0 sends to H1, and then H1 sends to H0. Here are the forwarding table contents after H0 sends to H1:

B14:

Destination

Next Hop

H0

3

B61:

Destination

Next Hop

H0

2

B73:

Destination

Next Hop

H0

2

B86:

Destination

Next Hop

H0

3

B98:

Destination

Next Hop

H0

3


Now, the situation after H1 replies to H0:


B14:

Destination

Next Hop

H0

3

H1

2

B61:

Destination

Next Hop

H0

2

B73:


Destination

Next Hop

H0

2

B86:


Destination

Next Hop

H0

3

B98:


Destination

Next Hop

H0

3


Notes:


From here one can also go

, Jeff Martens