Spanning Tree Protocol

The Spanning Tree Protocol automatically discovers the route that single-route explorer frames use. By definition, a single-route explorer frame travels a single route to the destination. As well as being determined automatically by using the Spanning Tree Protocol, this single route can be set manually by configuring each bridge interface on the network to forward or block single-route explorer frames.

IMPORTANT:  We strongly recommend that you use the Spanning Tree Protocol to configure your bridge interfaces automatically.

A forwarding interface passes the following types of frames:

A blocking interface passes the following types of frames:

The Spanning Tree Protocol does not set all bridged interfaces automatically on a single Novell router to blocking mode. For clients and administrators to have access to bridged print/file services, network management, or other applications, at least one interface to each source route bridge must be able to forward packets.

For more information about spanning tree protocol, refer to:


Advantages of Using the Spanning Tree Protocol

By default, Novell Internet Access Server 4.1 uses the Spanning Tree Protocol. This automatic mode provides the most efficient and dynamic way to determine a single route because bridge interfaces reconfigure themselves automatically when other bridges fail. By configuring source route bridge interfaces in this way, they can automatically take advantage of the best available single route as other bridges go down or come up.

If you configure your network manually, you must ensure that there are no loops in the topology and that there is only one single-route path to any particular ring. It is also important to ensure that at least one single-route path is configured for each ring to maintain connectivity. Therefore, a great deal of effort is needed to effectively place each bridge and know its bridging mode. However, by carefully configuring the bridge interfaces in the network, you can create preferred routes for route determination, freeing those rings whose operation is most sensitive from most explorer frame traffic.


Factors that Affect the Selection of the Best Route

One risk of using the Spanning Tree Protocol is that the single route between two rings that are physically close together might not be the most direct path between those rings. This risk can be reduced by designing your network with backbones. It can also be reduced by having stations respond to single-route explorer frames with all-routes explorer frames. The use of all-routes explorer frames allows the stations that have been separated logically to determine the faster, more direct paths; however, in larger networks with multiple paths, the all-routes explorer frames' responses increase network traffic. The types of responses that are sent depend on how your software is configured. Refer to Route End Station Implementation for a complete discussion of these issues.

Another way of ensuring that the most direct or most desirable route is selected by the Spanning Tree Protocol is to carefully select which bridge is assigned to maintain and forward network configuration information to all other bridges. This bridge is called the root bridge.


Setting Parameters for Automatic Mode

The Spanning Tree Protocol uses a hierarchical control structure to determine which bridge interfaces are allowed to forward single-route explorer frames. Using the Spanning Tree Protocol ensures that there is only a single data path between any two end stations and eliminates data loops, as shown in Figure 2.

Figure 2
Eliminating a Data Loop with the Spanning Tree Protocol

In this hierarchy, the root bridge receives topology change information (for example, if certain bridges have been disabled) and automatically forwards this information throughout the network.

For best results, all bridges (including other vendors' bridges) should have the same Spanning Tree mode enabled (either IEEE or IBM) for all interfaces. This mode allows the bridge to communicate with other bridges to determine whether it should set its interfaces to forward single-route explorer frames.

If you set any bridge interface to forward or block frames manually, you might cause loops or other problems. Therefore, you should not manually configure any bridge unless you are extremely familiar with your network and the Spanning Tree Protocol.

The Bridge Label/Priority and Path Cost Increment parameters determine which paths on the network are used as the logical single route or spanning tree. These parameters are usually adjusted by an administrator, but a single path can be determined even if the default values are used.

The Bridge Label/Priority parameter has a default value of 8000. The default path cost is shown as zero at bridge startup time. In actual operation, this parameter changes depending on the microcode version of the interface board or, for remote bridges, the baud rate of the line that is connected to the bridge. If you change this parameter to a nonzero value, this value overrides the values that the bridge program otherwise calculates, and the nonzero value is inserted automatically.


Bridge Roles and Port States

Depending on how the bridge interface parameters are configured (automatically or manually), a bridge assumes one of the following roles:

The root bridge is at the top of the single-path hierarchy and should be assigned manually to ensure efficient network layout. It maintains and forwards network configuration information to all other bridges. The root bridge is centrally located in the single data path defined by the spanning tree configuration information exchanged. In Figure 2, Bridge 2 is the root bridge.

A designated bridge is one that has been designated to be on the single-path route and forward frames. In Figure 2, Bridge 1 and Bridge 4 are designated bridges.

There are two port states: forwarding and blocking . When a bridge interface has been configured for forwarding, the port forwards single-route explorer frames to the attached network segment. An interface that has been configured for blocking does not forward single-route explorer frames to the attached network segment. The Spanning Tree Protocol automatically assigns port states to create a single data path and eliminate loops. As shown in Figure 2, one port of Bridge 3 has been placed in a blocking state (the port connected to Ring 2). The designated bridges for Ring 2 are Bridge 1 and Bridge 2 (the root bridge).


Factors Affecting Role Assignments

The main parameter that determines the role of a bridge is the Bridge Number parameter. This number is a hexadecimal value that is formed by appending the Bridge Label/Priority parameter value to the beginning of the MAC address of the interface board connected to the lowest-numbered ring. (The Bridge Label/Priority parameter value is the most significant bit of the Bridge Number parameter.) The bridge that has the lowest Bridge Number value is assigned the role of root bridge.

Because the root bridge should be centrally located on the network, its selection should not be left to chance. Because the Bridge Label/Priority parameter value is the most significant part of the Bridge Number parameter value, the most efficient way to determine the root bridge is to adjust the value of the Bridge Label/Priority parameter.

Once the root bridge is determined, all the other bridges negotiate with each other to determine which is assigned the role of designated bridge. The role of designated bridge is assumed by the bridge with the lowest path cost to the root bridge, or by the bridge with the lowest bridge ID (if the path costs are equal).

All path cost calculations are made from the root bridge outward. You can manually assign a path cost to a bridge, or the bridge software can calculate a path cost. The path cost is calculated as the sum of the costs of all the bridges between a given bridge and the root bridge. The path cost of the root bridge is always zero.

The root bridge keeps itself apprised of any changes in the network by sending out a Bridge Protocol Data Unit (BPDU). The BPDU contains the bridge ID of the root bridge, a path cost of zero, and some timing information. The BPDU is then received by any designated bridges on the rings directly connected to the root bridge.

Each designated bridge updates the path cost and timing information in the BPDU and transmits the updated BPDU to the other ring. As the BPDU travels through the network, the bridges use this information to determine whether they need to change roles. Whenever a bridge that is not a designated bridge does not receive a BPDU from the designated bridge within the maximum age timeout, it assumes the designated bridge is down, transmits a Topology Change BPDU, and begins the transition to a forwarding state.

For example, in Figure 3, Bridge 1 is the designated bridge connecting Ring 1 and Ring 2. If Bridge 1 fails, Bridge 2 becomes the designated bridge connecting Ring 1 and Ring 2 and its ports are changed to the forwarding state. This reconfiguration occurs automatically when ports are configured with the Spanning Tree Mode option set to Automatic .

Figure 3
Assigning a Designated Bridge

Heavily used NetWare servers should be assigned a high Bridge Label/Priority parameter value so that they are less likely to be designated as a root bridge. For example, in Figure 4, Bridge 3 has been assigned the lowest Bridge Label/Priority parameter value so that it is likely to be designated as a root bridge.

Figure 4
Determining the Root Bridge Based on the Bridge Number Parameter Value

In addition, if Bridge 2 were a remote bridge (connected to the network with WAN links), you should assign the Bridge Label/Priority parameter a higher number (9000) to ensure that it is not selected as the root bridge. This ensures that the Spanning Tree Protocol does not cause the lower-cost link, such as a LAN link, to be blocked in favor of a higher-cost WAN link. In Figure 4, Bridge 1 and Bridge 4 have the Bridge Label/Priority parameter set to the default (8000) and the root bridge is assigned a lower Bridge Label/Priority parameter value (7000).



Previous | Next