Spanning Tree Protocol Overview
The Switch supports Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP) as defined in the following standards.
IEEE 802.1D Spanning Tree Protocol
IEEE 802.1w Rapid Spanning Tree Protocol
What You Need to Know
(Rapid) Spanning Tree Protocol
(R)STP detects and breaks network loops and provides backup links between switches, bridges or routers. It allows a switch to interact with other (R)STP-compliant switches in your network to ensure that only one path exists between any two stations on the network.
The Switch uses IEEE 802.1w RSTP (Rapid Spanning Tree Protocol) that allows faster convergence of the spanning tree than STP (while also being backwards compatible with STP-only aware bridges). In RSTP, topology change information is directly propagated throughout the network from the device that generates the topology change. In STP, a longer delay is required as the device that causes a topology change first notifies the root bridge that then notifies the network. Both RSTP and STP flush unwanted learned addresses from the filtering database. In RSTP, the port states are Discarding, Learning, and Forwarding.
*In this user’s guide, “STP” refers to both STP and RSTP.
STP Terminology
The root bridge is the base of the spanning tree.
Path cost is the cost of transmitting a frame onto a LAN through that port. The recommended cost is assigned according to the speed of the link to which a port is attached. The slower the media, the higher the cost.
STP Path Costs
 
Link Speed
Recommended value
Recommended range
Allowed Range
Path Cost
4 Mbps
250
100 to 1000
1 to 65535
Path Cost
10 Mbps
100
50 to 600
1 to 65535
Path Cost
16 Mbps
62
40 to 400
1 to 65535
Path Cost
100 Mbps
19
10 to 60
1 to 65535
Path Cost
1 Gbps
4
3 to 10
1 to 65535
Path Cost
10 Gbps
2
1 to 5
1 to 65535
On each bridge, the root port is the port through which this bridge communicates with the root. It is the port on this switch with the lowest path cost to the root (the root path cost). If there is no root port, then this switch has been accepted as the root bridge of the spanning tree network.
For each LAN segment, a designated bridge is selected. This bridge has the lowest cost to the root among the bridges connected to the LAN.
How STP Works
After a bridge determines the lowest cost-spanning tree with STP, it enables the root port and the ports that are the designated ports for connected LANs, and disables all other ports that participate in STP. Network packets are therefore only forwarded between enabled ports, eliminating any possible network loops.
STP-aware switches exchange Bridge Protocol Data Units (BPDUs) periodically. When the bridged LAN topology changes, a new spanning tree is constructed.
Once a stable network topology has been established, all bridges listen for Hello BPDUs (Bridge Protocol Data Units) transmitted from the root bridge. If a bridge does not get a Hello BPDU after a predefined interval (Max Age), the bridge assumes that the link to the root bridge is down. This bridge then initiates negotiations with other bridges to reconfigure the network to re-establish a valid network topology.
STP Port States
STP assigns five port states to eliminate packet looping. A bridge port is not allowed to go directly from blocking state to forwarding state so as to eliminate transient loops.
STP Port States 
Port State
Description
Disabled
STP is disabled (default).
Blocking
Only configuration and management BPDUs are received and processed.
Listening
All BPDUs are received and processed.
*The listening state does NOT exist in RSTP.
Learning
All BPDUs are received and processed. Information frames are submitted to the learning process but not forwarded.
Forwarding
All BPDUs are received and processed. All information frames are received and forwarded.
Spanning Tree Protocol Status
Spanning Tree Setup
There are three Auto path-cost Modes (see SWITCHING > Spanning Tree Protocol > Spanning Tree Setup). Choose the Auto Path-cost Mode according to the device average link speeds in the STP network.
If most of your devices support high link speed, you should select Long or User-defined mode. The path cost of link speed slower than 10 Mbps can be set to 2000000 (long) / 200000000 (user-defined), and the path cost of link speed faster than 10 Gbps can be set to 200. This way, the path costs can better reflect actual link speeds with a wider range (32 bits) of path cost values. If the link speeds within the system are averagely smaller than 1 Gbps, you should select Short mode since Short mode have path cost values more detailed defined for link speeds under1 Gbps.
The path cost values are described in the following tables.
The Switch defines the following Short mode path costs.
Auto Path Cost Mode: Short 
Link speed
Auto Path cost value
Up to 4 Mbps
250
Up to 10 Mbps
100
Up to 16 Mbps
62
Up to 100 Mbps
19
More than 10 Gbps
1
The Switch defines the following Long mode path costs.
Auto Path Cost Mode: Long
Link speed
Auto Path cost value
Up to 10 Mbps
2000000
Up to 100 Mbps
200000
Up to 1 Gbps
20000
Up to 2.5 Gbps
8000
Up to 5 Gbps
4000
Up to 10 Gbps
2000
More than 10 Gbps
200
If you do not configure the auto path cost values for User-defined mode, the Switch uses the following default values.
Auto Path Cost Mode: User-defined
Link speed
Auto Path cost value
Up to 10 Mbps
2000000
Up to 100 Mbps
200000
Up to 1 Gbps
20000
Up to 2.5 Gbps
8000
Up to 5 Gbps
4000
More than 5 Gbps
2000
The following table describes the labels in this screen.
SWITCHING > Spanning Tree Protocol > Spanning Tree Setup 
label
description
Spanning Tree Mode
The Rapid Spanning Tree (RSTP) STP mode is activated by default.
Auto Path-cost Mode
Auto Path-cost Mode allows you to have the Switch automatically set the path cost for each port according to their link speed. The Switch uses the path costs to determine the best path to the root bridge in a spanning tree. There are three Auto Path-cost Modes that supports different path cost lengths:
Short (16-bit)
Long (32-bit)
User-defined (32-bit).
The auto path cost values of each mode are described in Spanning Tree Setup.
*It is recommended to use the same Auto Path-cost Mode on all switches within the spanning tree network system.
To use the auto path-cost feature, select the Auto Path-cost mode (Short, Long, User-defined), set a port’s Path Cost (in the SWITCHING > Spanning Tree Protocol > RSTP screen) to “0”. The Switch will automatically set the port’s path cost to the auto path cost value defined by the Auto Path-cost Mode you select.
Short
Select this mode if you want to use the 16-bit auto path cost values the Switch defines.
Long
Select this mode if you want to use the 32-bit auto path cost values the Switch defines.
User-defined
Select this mode to manually set the auto path costs for each link speed. Enter the path cost value for each link speed. The range is from 1 – 200000000. It is recommended to assign this value according to link speeds. The slower the speed, the higher the cost.
Apply
Click Apply to save your changes to the Switch’s run-time memory. The Switch loses these changes if it is turned off or loses power, so use the Save link on the top navigation panel to save your changes to the non-volatile memory when you are done configuring.
Cancel
Click Cancel to begin configuring this screen afresh.
Rapid Spanning Tree Protocol Status
The following table describes the labels in this screen.
SWITCHING > Spanning Tree Protocol > Spanning Tree Protocol Status: RSTP 
LABEL
DESCRIPTION
Spanning Tree Protocol: RSTP
Bridge
Root Bridge refers to the base of the spanning tree (the root bridge). Our Bridge is this Switch. This Switch may also be the root bridge.
Bridge ID
This is the unique identifier for this bridge, consisting of bridge priority plus MAC address. This ID is the same for Root Bridge and Our Bridge if the Switch is the root switch.
Hello Time (seconds)
This is the time interval (in seconds) at which the root switch transmits a configuration message. The root bridge determines Hello Time, Max Age and Forwarding Delay.
Max Age (seconds)
This is the maximum time (in seconds) the Switch can wait without receiving a configuration message before attempting to reconfigure.
Forwarding Delay (seconds)
This is the time (in seconds) the root switch will wait before changing states (that is, listening to learning to forwarding).
*The listening state does NOT exist in RSTP.
Cost to Bridge
This is the path cost from the root port on this Switch to the root switch.
Port ID
This is the priority and number of the port on the Switch through which this Switch must communicate with the root of the Spanning Tree.
Topology Changed Times
This is the number of times the spanning tree has been reconfigured.
Time Since Last Change
This is the time since the spanning tree was last reconfigured.
Port
This field displays the number of the port on the Switch.
Port State
This field displays the port state in STP.
DISCARDING – The port does not forward or process received frames or learn MAC addresses, but still listens for BPDUs.
LEARNING – The port learns MAC addresses and processes BPDUs, but does NOT forward frames yet.
FORWARDING – The port is operating normally. It learns MAC addresses, processes BPDUs and forwards received frames.
Port Role
This field displays the role of the port in STP.
Root – A forwarding port on a non-root bridge, which has the lowest path cost and is the best port from the non-root bridge to the root bridge. A root bridge does NOT have a root port.
Designated – A forwarding port on the designated bridge for each connected LAN segment. A designated bridge has the lowest path cost to the root bridge among the bridges connected to the LAN segment. All the ports on a root bridge (root switch) are designated ports.
Alternate – A blocked port, which has a best alternate path to the root bridge. This path is different from using the root port. The port moves to the forwarding state when the designated port for the LAN segment fails.
Backup – A blocked port, which has a backup or redundant path to a LAN segment where a designated port is already connected when a switch has two links to the same LAN segment.
Disabled – Not strictly part of STP. The port can be disabled manually.
Designated Bridge ID
This field displays the identifier of the designated bridge to which this port belongs when the port is a designated port. Otherwise, it displays the identifier of the designated bridge for the LAN segment to which this port is connected.
Designated Port ID
This field displays the priority and number of the bridge port (on the designated bridge), through which the designated bridge transmits the stored configuration messages.
Designated Cost
This field displays the path cost to the LAN segment to which the port is connected when the port is a designated port. Otherwise, it displays the path cost to the root bridge from the designated port for the LAN segment to which this port is connected.
Rapid Spanning Tree Protocol
Use this screen to configure RSTP settings.
The following table describes the labels in this screen.
SWITCHING > Spanning Tree Protocol > RSTP 
label
description
Active
Enable the switch button to activate RSTP. Disable the switch to disable RSTP.
Bridge Priority
Bridge priority is used in determining the root switch, root port and designated port. The Switch with the highest priority (lowest numeric value) becomes the STP root switch. If all Switches have the same priority, the Switch with the lowest MAC address will then become the root switch. Select a value from the drop-down list box.
The lower the numeric value you assign, the higher the priority for this bridge.
Bridge Priority determines the root bridge, which in turn determines Hello Time, Max Age and Forwarding Delay.
Hello Time
This is the time interval in seconds between BPDU (Bridge Protocol Data Units) configuration message generations by the root switch. The allowed range is 1 to 10 seconds.
Max Age
This is the maximum time (in seconds) the Switch can wait without receiving a BPDU before attempting to reconfigure. All Switch ports (except for designated ports) should receive BPDUs at regular intervals. Any port that ages out STP information (provided in the last BPDU) becomes the designated port for the attached LAN. If it is a root port, a new root port is selected from among the Switch ports attached to the network. The allowed range is 6 to 40 seconds.
Forwarding Delay
This is the maximum time (in seconds) the Switch will wait before changing states. This delay is required because every Switch must receive information about topology changes before it starts to forward frames. In addition, each port needs time to listen for conflicting information that would make it return to a blocking state; otherwise, temporary data loops might result. The allowed range is 4 to 30 seconds.
As a general rule:
2 * (Forward Delay – 1) >= Max Age >= 2 * (Hello Time + 1)
Port
This field displays the port number.
*
Settings in this row apply to all ports.
Use this row only if you want to make some settings the same for all ports. Use this row first to set the common settings and then make adjustments on a port-by-port basis.
*Changes in this row are copied to all the ports as soon as you make them.
Active
Select this checkbox to activate RSTP on this port.
Edge
Select this checkbox to configure a port as an edge port when it is directly attached to a computer. An edge port changes its initial STP port state from blocking state to forwarding state immediately without going through listening and learning states right after the port is configured as an edge port or when its link status changes.
*An edge port becomes a non-edge port as soon as it receives a Bridge Protocol Data Unit (BPDU).
Priority
Configure the priority for each port here.
Priority decides which port should be disabled when more than one port forms a loop in a switch. Ports with a higher priority numeric value are disabled first. The allowed range is between 0 and 255 and the default value is 128.
Path Cost
Path cost is the cost of transmitting a frame on to a LAN through that port. It is recommended to assign this value according to the speed of the bridge. The slower the media, the higher the cost.
Apply
Click Apply to save your changes to the Switch’s run-time memory. The Switch loses these changes if it is turned off or loses power, so use the Save link on the top navigation panel to save your changes to the non-volatile memory when you are done configuring.
Cancel
Click Cancel to begin configuring this screen afresh.
Static MAC Filtering Overview
Filtering means sifting traffic going through the Switch based on the source and/or destination MAC addresses and VLAN group (ID).
Static MAC Filtering Rule
Use this screen to view and configure rules for traffic going through the Switch.
The following table describes the related labels in this screen.
SWITCHING > Static MAC Filtering > Static MAC Filtering 
label
description
Index
This field displays the index number of the rule.
Active
This field displays whether the rule is activated or not.
Name
This field displays the descriptive name for this rule. This is for identification purpose only.
MAC Address
This field displays the source or destination MAC address with the VLAN identification number to which the MAC address belongs.
VID
This field displays the VLAN group identification number.
Action
This field displays Discard source, Discard destination, or Discard both depending on what you configured above.
 
Select an entry’s checkbox to select a specific entry. Otherwise, select the checkbox in the table heading row to select all entries.
Add/Edit
Click Add/Edit to add a new entry or edit a selected one.
Delete
Click Delete to remove the selected entries.
Add/Edit a Static MAC Filtering Rule
Use this screen to create or edit rules for traffic going through the Switch. Click Add/Edit, or select an entry and click Add/Edit in the SWITCHING > Static MAC Filtering > Static MAC Filtering screen to display this screen.
The following table describes the related labels in this screen.
SWITCHING > Static MAC Filtering > Static MAC Filtering > Add/Edit 
label
description
Active
Enable the switch button to activate your rule. You may temporarily deactivate a rule without deleting it by de-selecting this checkbox.
Name
Enter a descriptive name (up to 32 printable ASCII characters excluding [ ? ], [ | ], [ ' ], [ " ], or [ , ]) for this rule. This is for identification only.
Action
Select Discard source to drop the frames from the source MAC address (specified in the MAC field). The Switch can still send frames to the MAC address.
Select Discard destination to drop the frames to the destination MAC address (specified in the MAC address). The Switch can still receive frames originating from the MAC address.
Select Discard source and Discard destination to block traffic to or from the MAC address specified in the MAC field.
MAC
Enter a MAC address in valid MAC address format, that is, six hexadecimal character pairs.
VID
Enter the VLAN group identification number.
Apply
Click Apply to save your changes to the Switch’s run-time memory. The Switch loses these changes if it is turned off or loses power, so use the Save link on the top navigation panel to save your changes to the non-volatile memory when you are done configuring.
Clear
Click Clear to clear the fields to the factory defaults.
Cancel
Click Cancel to not save the configuration you make and return to the last screen.
Static MAC Forwarding Overview
This chapter discusses how to configure forwarding rules based on MAC addresses of devices on your network.
Use these screens to configure static MAC address forwarding.
Static MAC Forwarding
A static MAC address is an address that has been manually entered in the MAC address table. Static MAC addresses do not age out. When you set up static MAC address rules, you are setting static MAC addresses for a port. This may reduce the need for broadcasting.
Static MAC address forwarding together with port security allow only computers in the MAC address table on a port to access the Switch.
The following table describes the labels in this screen.
SWITCHING > Static MAC Forwarding > Static MAC Forwarding 
label
description
Index
This is the index number of a static MAC address rule.
Active
This field displays whether this static MAC address forwarding rule is active. You may temporarily deactivate a rule without deleting it.
Name
This field displays the descriptive name for identification purposes for this static MAC address-forwarding rule.
MAC Address
This field displays the MAC address that will be forwarded and the VLAN identification number to which the MAC address belongs.
VID
This field displays the ID number of the VLAN group.
Port
This field displays the port where the MAC address shown in the next field will be forwarded.
 
Select an entry’s checkbox to select a specific entry. Otherwise, select the checkbox in the table heading row to select all entries.
Add/Edit
Click Add/Edit to add a new rule or edit a selected one.
Delete
Click Delete to remove the selected rules.
Add/Edit Static MAC Forwarding Rules
Click Add/Edit, or select an entry and click Add/Edit in the SWITCHING > Static MAC Forwarding > Static MAC Forwarding screen to display this screen.
The following table describes the labels in this screen.
SWITCHING > Static MAC Forwarding > Static MAC Forwarding > Add/Edit 
label
description
Active
Enable the switch button to activate your rule. You may temporarily deactivate a rule without deleting it by disabling the switch.
Name
Enter a descriptive name for identification purposes for this static MAC address forwarding rule. You can enter up to 32 printable ASCII characters except [ ? ], [ | ], [ ' ], [ " ], or [ , ].
MAC Address
Enter the MAC address in valid MAC address format, that is, six hexadecimal character pairs.
*Static MAC addresses do NOT age out.
VID
Enter the VLAN identification number.
Port
Enter the port where the MAC address entered in the previous field will be automatically forwarded.
Apply
Click Apply to save your changes to the Switch’s run-time memory. The Switch loses these changes if it is turned off or loses power, so use the Save link on the top navigation panel to save your changes to the non-volatile memory when you are done configuring.
Clear
Click Clear to clear the fields to the factory defaults.
Cancel
Click Cancel to not save the configuration you make and return to the last screen.