Professional Documents
Culture Documents
The IEEE 802.1D Spanning Tree protocol is used to prevent loops in the network. Usually, these
loops occur when the design includes redundant connections from the edge to the core, or
when multiple wiring closets are inadvertently interconnected. A loop in the network causes
severe congestion and eventually renders the network inoperable.
Although there are newer versions of Spanning Tree protocols, such as 802.1w Rapid Spanning
Tree (RSTP) and 802.1s Multiple Spanning Tree Groups (MSTP), these protocols are still based on
the legacy 802.1D STP fundamental architecture and therefore have limitations. Although RSTP
offers faster failover than normal 802.1D Spanning Tree, it still has the same problem as that of
802.1D: all redundant or looped paths are blocked.
MSTP does allow load balancing of VLANs over redundant paths; however, this requires
configuration of every switch to assign cost or weight to all available paths for each VLAN,
which can lead to administrative difficulties when there are a large number of switches and/or
subnets in the network.
Other issues to be considered in Spanning Tree environments include the need to set a root
bridge for the network. The root should be configured on one of the core switches in the
network.
When using VRRP for default gateway redundancy in conjunction with Spanning Tree, the VRRP
Master should be configured on the same switch as the Spanning Tree root (for optimal link
performance). Utilizing the Backup Master feature on the Avaya switches will also aide in the
optimal link usage with VRRP both VRRP and VRRP Backup Master are discussed in more detail
in the Layer 3 section of this document. If PIM-SM is configured on the network, the Designated
Router (DR) needs to also be configured on the switch that is the Spanning Tree root.
Avaya does recommend using the Spanning Tree protocol on all end station connections in
order to safeguard the network from hubs or other devices that could be inserted into the
network at the end station. A modification to the normal learning of spanning tree is available in
all Avaya edge switches. This feature is known as Fast Start or Fast Learning, and is the
recommended setting for all end station ports.
The BPDU filtering feature also adds a level of protection against inadvertent loops in the
network. This feature was originally developed to prevent an unwanted root selection process
when a new device was added to a Spanning Tree network and/or to prevent unknown
devices from influencing an existing spanning tree topology. A more detailed discussion on BPDU
filtering :
Enable Spanning Tree Fast Start/Fast Learning on all end station ports.
Enable BPDU filtering on all end station ports.
Never enable Fast Start/Learning on any uplink ports; this could cause unexpected
behaviors on the entire network.
When using Spanning Tree, pay attention to the root bridge. Ensure the root bridge is one
of the core switches by configuring the Spanning Tree priority.
When using SMLT to connect the edge to the distribution/core, always disable Spanning
Tree on the uplink ports/MLT of the edge switch.
Avaya recommends using Split MultiLink Trunking (SMLT) to interconnect closets to the core of
the network, thus eliminating the need for the Spanning Tree protocol on uplinks. When using
SMLT between the edge switch and the core or distribution switch, two or more redundant paths
to two separate core/distribution switches are utilized in an active-active fashion without the
need for Spanning Tree to prevent loops. Traffic is distributed over all available paths using either
MLT, 802.3ad, or any other form of link aggregation. If one or more of the paths fail, including link
and/or switch failures, SMLT provides sub-second failover to the remaining path(s).
Nondesignated port A nondesignated port is one with a higher cost than the designated port.
They are whats left over after the root ports and designated ports have been determined.
Nondesignated ports are put in blocking modethey are not forwarding ports.
Forwarding port A forwarding port forwards frames and can be a root port or a designated port.
Blocked port A blocked port is the port that, in order to prevent loops, will not forward frames.
However, a blocked port will always listen to BPDU frames but drop any and all other frames.
Spanning Tree Operations:
Learning The switch port listens to BPDUs and learns all the paths in the switched network. A port
in learning state populates the MAC address table but still doesnt forward data frames. Forward
delay means the time it takes to transition a port from listening to learning mode (or from
learning to forwarding mode), which is set to 15 seconds by default and can be seen in the
show spanning-tree output.
Forwarding The port sends and receives all data frames on the bridged port. If the port is still a
designated or root port at the end of the learning state, it enters the forwarding state.
Disabled (technically not a transition state) A port in the disabled state (administratively) does
not participate in the frame forwarding or STP. A port in the disabled state is virtually
nonoperational.
Convergence
Convergence occurs when all ports on bridges and switches have transitioned to either
forwarding or blocking modes. No data will be forwarded until convergence is complete. Yes
you read that right: When STP is converging, all host data stops transmitting! So if you want to
remain on speaking terms with your networks users (or remain employed for any length of time),
you positively must make sure that your switched network is physically designed really well so
that STP can converge quickly.
Convergence is truly important because it ensures that all devices have a coherent database.
It usually takes 50 seconds to go from blocking to forwarding mode, and I dont recommend
changing the default STP timers. (But you can adjust those timers if necessary and have a large
network.) By creating your physical switch design in a hierarchical manner, you can make your
Core switch the STP root, which will then make STP convergence time nice and quick.
Because the typical spanning-tree topologys time to convergence from blocking to forwarding
on a switch port is 50 seconds, this could create time-out problems on your servers or hostsfor
example, when you reboot them. To address this hitch, you can disable spanning tree on
individual ports using PortFast.
RSTP:
RSTP was not designed to be a brand-new protocol, but more of an evolution of the 802.1d
standard, with faster convergence time when a topology change occurs. Backward
compatibility was a must when 802.1w was created. The 802.1w is defined in these different port
states:
Disabled = Discarding
Blocking = Discarding
Listening = Discarding
Learning = Learning
Forwarding = Forwarding
Figuring out what your root bridge, root ports, and designated ports are has not changed;
however, you need to understand the cost of each link to make this determination
Two VLANs will be configured, a management VLAN (VLAN 200) and a end user VLAN
(VLAN 1000)
For the management VLAN 200, we will configure a management IP address as shown in
the diagram above for this example, no routes are configured for the management as
it is a simple Layer 2 network
As an option, we can set the RSTP port priority on 8600-1 to influence the link taken
between 8600-1 and 8600-2. The default port priority simply has to be changed to a
lower value on 8600-1 from the default setting of 128 the port priority setting is configured
in increments of 16 from 0 to 240 .
After all the switches have been configured using the above settings, traffic should flow as that
shown in the following diagram.
ERS8600-2: Step 1 Create VLANs 200 and 1000 and add port members
ERS8600-2:5# config vlan 200 create byport-mstprstp 0 name mgmt
ERS8600-2:5# config vlan 1000 create byport-mstprstp 0
ERS8600-2:5# config ethernet 1/23,1/24,1/34,1/36 perform-tagging enable
ERS8600-2:5# config vlan 1 ports remove 1/5,1/23,1/24,1/34,1/36
ERS8600-2:5# config vlan 200 ports add 1/23,1/24,1/34,1/36
ERS8600-2:5# config vlan 1000 ports add 1/5,1/23,1/24,1/34,1/36
ERS4550T-1: Step 1 Create VLANs 200 and 1000 and add port members
4550T-1(config)# vlan create 200 name mgmt type port
4550T-1(config)# vlan create 1000 type port
4550T-1(config)# vlan configcontrol automatic
4550T-1(config)# vlan ports 33,34 tagging tagall
4550T-1(config)# vlan members add 200 33,34
4550T-1(config)# vlan members add 1000 5,33,34
4550T-1(config)# vlan members remove 1 5,33,34
ERS4528GT-2: Step 1 Create VLANs 200 and 1000 and add port members
4548GT-2(config)# vlan create 200 name mgmt type port
4548GT-2(config)# vlan create 1000 type port
RSTP Configuration
For this example, we will change the RSTP priority to make 8600-1 the root bridge and 8600-2 the
backup root bridge. We will leave both 4550T-1 and 4548GT-2 with the default bridge priority
setting of 32768.
ERS8600-2: Step 1 Change RSTP priority to make this switch backup root
ERS8600-2:5# config rstp priority 8192
ERS8600-1: Step 2 Configure RSTP Edge Ports
ERS8600-1:5(config)# interface fastEthernet 1/5
ERS8600-1:5(config-if)# spanning-tree rstp edge-port true
ERS8600-1:5(config-if)# exit