Professional Documents
Culture Documents
STP/RSTP Test Plan
STP/RSTP Test Plan
Contents
Overview................................................................................................................. 3
1. Spanning Tree Conformance Test.....................................................................3
2. Spanning Tree Root Bridge Election Functional Test.......................................7
3. Spanning Tree Loop Prevention Functional Test..............................................9
4. Spanning Tree Network Convergence Performance Test..............................11
References........................................................................................................... 15
Ixia
26601 W. Agoura Road
Calabasas, CA 91302
Phone:
(818) 871-1800
Fax:
(818) 871-1805
Email:
info@ixiacom.com
Internet:
www.ixiacom.com
1. Spanning Tree
Conformance Test
Objective
Setup
Input Parameters
Two sets of parameters are required prior to
running conformance tests: one for test tool
configuration and one for DUT configuration.
The test tool configuration describes the
Parameter
Test Tool Configuration
DUT Configuration
Description
Test various BPDU types and traffic generation,
including Root election, Path cost, Spanning Tree
recalculation.
STP and RSTP features (Port states, Spanning Tree
calculation) and Fast port States for RSTP Network
Convergence, in addition to various timers and
related parameters.
Methodology
Conformance testing is an important process
necessary to verify how a DUT complies with
specific protocol standards. The conformance
test methodology operates as a dialog: the
test tool send packets to the switch being
tested, then receives the BPDUs sent in
response, and then analyzes the response
to determine the next action to take. This
methodology allows conformance test tools,
such as the Ixia chassis executing IxANVL
conformance test suites, to test complicated
scenarios much more intelligently and
flexibly than is achievable by simple packet
generation and capture devices.
2. Spanning Tree
Root Bridge Election
Functional Test
Objective
The Spanning Tree root is the central location
of all bridges in a switched network. All
bridges in a Spanning Tree topology must be
able to reach the root directly or indirectly via
another bridge.
Input Parameters
Parameters
Root ID
Description
Contains the bridge ID of the root bridge. The root ID
consists of the Priority, System ID, and MAC Address.
After convergence, all configuration BPDUs in the bridged
network should contain the same value for this field
Bridge Mode
Bridge mode type can be Spanning Tree or Rapid
Spanning Tree
Table 2. Spanning Tree emulated bridge input parameters
Methodology
TEST 1- Vary bridge priority
1. The emulated bridge and DUT exchange
BPDUs at startup. BPDUs contain unique
bridge ID (MAC Address), Root Cost, and port
Identifier (MAC address associated with each
port). See Figure 8.
2. Set the emulated bridge to have a
priority of 61440 (highest possible),
making the DUT the Root.
Results
The success of these tests depends on the
final states of the bridge ports. Depending
on the other bridge ID on the network, the
bridge ID with the lowest priority becomes
Objective
This test verifies the fundamental
functionality behind the Spanning Tree
protocol Loop Detection and Prevention.
The network that is running Spanning Tree
protocol is to remain Loop Free at all times
under any network variations and conditions,
which includes variation on the DUT itself
and/or the network connected to the DUT.
One of the network variations can be the
cost to the root from a spanning tree bridge.
Changing the root cost on a bridge causes
topology changes, and forces Spanning Tree
recalculation. A non-root bridge will select
the shortest path to the root making this
Setup
Each of the two test ports emulates a bridge
connected to two separate physical ports
on the DUT running Spanning Tree Protocol.
At startup, the emulated bridge is the root
Figure 10. Spanning Tree Loop prevention setup with two emulated bridges
connected to the DUT
Input Parameters
Parameters
Root ID
Description
Contains the bridge ID of the root bridge. The root ID
consists of the Priority, System ID, and MAC Address.
After convergence, all Configuration BPDUs in the
bridged network should contain the same value for this
field.
Root Cost
The cumulative cost of all links leading to the root bridge.
Bridge Mode
Bridge mode type can be Spanning Tree or Rapid
Spanning Tree
Table 3. Spanning Tree Loop prevention input parameters
Methodology
1. Change BR1 and BR2 sending root bridge
MAC address to CC CC CC CC CC CC and
priority to 4096. The root is the imaginary
emulated root bridge.
2. BR1 and BR2 bridge ports are in
designated Forwarding. One of the DUT
bridge ports is in Alternate/Blocking state,
the other is in Root/Forwarding state.
3. DUT port1 is in Root/Forwarding state.
Select BR1 and change its Path Cost to Root
from 0 to 3, forcing the Spanning Tree to be
recalculated.
4. BR1 and BR2 bridge ports are still in
Designated/Forwarding; however, the ports
states on the DUT alternate.
5. DUT port 1 state is now in Alternate/
Blocking and DUT port 2 state is in Root /
Forwarding state.
NOTE: Every non-root bridge will have a
selected root port
Objective
Results
4. Spanning Tree
Network Convergence
Performance Test
Setup
Each of the two test ports emulates a bridge
connected to two separate physical ports on
the DUT running Spanning Tree Protocol. In
addition, a third DUT bridge port is connected
to a non-Spanning Tree emulated test port
for sending and receiving traffic. At startup,
the emulated bridge is the root bridge for
the network (set the emulated bridge ID to
be the lowest ID by changing priority and/or
MAC address). Ixias IxRouter application can
be used to setup and execute this test.
Figure 11. Multiple Spanning Tree emulated bridges connected to the DUT
Input Parameters
Parameters
Root ID
Description
Contains the bridge ID of the root bridge. The root ID
consists of the Priority, System ID and MAC Address.
After convergence, all Configuration BPDUs in the
bridged network should contain the same value for this
field.
Root Cost
The cumulative cost of all links leading to the root bridge.
Bridge Mode
Bridge mode type can be Spanning Tree or Rapid
Spanning Tree.
Table 4. Spanning Tree network convergence input parameters
Methodology
TEST 1- Traffic switch-over due to Path Cost
change
1. Change BR1 and BR2 Sending Root
bridge MAC address to CC CC CC CC CC CC
and priority 4096. The root is the imaginary
emulated root bridge.
. BR1 and BR2 bridge ports are in Root
Forwarding. One of the DUT bridge ports is in
Alternate / Blocking state.
3. Set up two traffic streams on BR1 and
BR2 for the emulated Host B, and stream 3
for the emulated Host A.
CC CC CC)
DUT port 1 is Root/Forwarding
DUT port 2 is Alternate/Blocking
The traffic is shown passing through Ixia
port 1 as illustrated in Figure 12 below,
identifying the last packet received prior to
switch over.
After switch over, the bridge ports state
should show the following:
Ixia BR1 port 1 Designated/
Forwarding
Ixia BR2 port 2 Designated/
Forwarding
The imaginary bridge with MAC is the
Root (shown in the DUT)
DUT port 1 is Alternate/Blocking
DUT port 2 is Root/Forwarding
The traffic is shown passing through Ixia
port 2 as illustrated in Figure 12 below,
identifying the drop down of packets received
on BR1, the delay (about 28 seconds), then
the traffic picking up with the BR2.
References
The table below presents more information regarding the configuration of a bridge port. Use
this table when changing the bridge port cost. This cost setting affects the reachability of a
given Spanning Tree or Rapid Spanning Tree bridge to the root bridge based on the link type.
Link Speed
4Mbps
10Mbps
16Mbps
100Mbps
1Gbps
10Gbps
Recommended Cost
Recommended Cost Range
250
100 to 1000
100
50 to 600
62
40 to 400
19
10 to 60
4
3 to 10
2
1 to 5
Table 5. Link speed and cost reference table