11-3
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter11 Configuring STP Understanding Spanning-Tree Features
The bridge ID of the sending switch
Message age
The identifier of the sending interface
Values for the hello, forward-delay, and max-age protocol timers
When a switch receives a configuration BPDU that contains superior information (lower bridge ID,
lower path cost, and so forth), it stores the information for that port. If this BPDU is received on the roo t
port of the switch, the switch also forwards it with an updated message to all attached LANs for which
it is the designated switch.
If a switch receives a configuration BPDU that contains inferior information to that currently stored for
that port, it discards the BPDU. If the switch is a designated switch for the LAN from which the inferior
BPDU was received, it sends that LAN a BPDU containing the up-to-date information stored for that
port. In this way, inferior information is discarded, and superior information is propagated on the
network.
A BPDU exchange results in these actions:
One switch in the network is elected as the root switch (the logi ca l c enter of the sp an ning- tree
topology in a switched network).
For each VLAN, the switch with the highest switch priority (the lowest numerical priority value) is
elected as the root switch. If all switches are configured with the default priority (32768), the switch
with the lowest MAC address in the VLAN becomes the root switch. The switch priority value
occupies the most significant bits of the bridge ID, as shown in Table11-1 on page11-4.
A root port is selected for each switch (except the root switch). This port provides the best path
(lowest cost) when the switch forwards packets to the root switch.
The shortest distance to the root switch is calculated for each switch based on the path cost.
A designated switch for each LAN segment is selected. The d esignated swi tch incur s the lo west path
cost when forwarding packets from that LAN to the root sw itch . Th e por t thr ough whi ch th e
designated switch is attached to the LAN is called the designated port.
Interfaces included in the spanning-tree instance are selected. Root ports and designated ports are
put in the forwarding state.
All paths that are not needed to reach the root switch from anywhere in the switched network are
placed in the spanning-tree blocking mode.
Bridge ID, Switch Priority, and Extended System ID
The IEEE 802.1D standard requires that each switch has an u nique bridge identifier (bridge ID), which
determines the selection of the root switch. Because each VLAN is considered as a different logical
bridge with PVST+, the same switch must have as many different bridge IDs as VLANs configured on
it. Each VLAN on the switch has a unique 8-byte bridge ID; the two most-significant bytes are used for
the switch priority, and the remaining six bytes are derived from the switch MAC address.
The Catalyst 2940 switch supports the 802.1T spanning-tree extens io ns. Som e of t he b its pr eviously
used for the switch priority are now used as the VLAN identifier . The re sult is that fe wer MA C addres ses
are reserved for the switch, and a larger range of VLAN IDs can be supported, all while maintaining the
uniqueness of the bridge ID. As shown in Tab le 11- 1, the two bytes previously used for the switch
priority are reallocated into a 4-bit priority value and a 12-bit extended system ID value equal to the
VLAN ID.