Example of stp calculation – H3C Technologies H3C S5560 Series Switches User Manual
Page 98
64
Example of STP calculation
provides an example showing how the STP algorithm works.
Figure 21 The STP algorithm
As shown in
, the priority values of Device A, Device B, and Device C are 0, 1, and 2,
respectively. The path costs of links among the three devices are 5, 10, and 4.
1.
Device state initialization.
In
, each configuration BPDU contains the following fields: root bridge ID, root path cost,
designated bridge ID, and designated port ID.
Table 7 Initial state of each device
Device
Port name
Configuration BPDU on the
port
Device A
Port A1
{0, 0, 0, Port A1}
Port A2
{0, 0, 0, Port A2}
Device B
Port B1
{1, 0, 1, Port B1}
Port B2
{1, 0, 1, Port B2}
Device C
Port C1
{2, 0, 2, Port C1}
Port C2
{2, 0, 2, Port C2}
2.
Configuration BPDUs comparison on each device.
In
, each configuration BPDU contains the following fields: root bridge ID, root path cost,
designated bridge ID, and designated port ID.
Device A
Priority = 0
Device B
Priority = 1
Device C
Priority = 2
Port A1
Port A2
Port B1
Port B2
Port C1
Port C2
Path cost = 4
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module