beautypg.com

Configuring path costs of ports – H3C Technologies H3C SecPath F1000-E User Manual

Page 117

background image

92

Configuring path costs of ports

Path cost is a parameter related to the rate of a port. On a spanning tree device, a port can have different

path costs in different MSTIs. Setting appropriate path costs allows VLAN traffic flows to be forwarded

along different physical links, achieving VLAN-based load balancing.
The device can automatically calculate the default path cost; alternatively, you can also configure the

path cost for ports.

Specifying a standard for the device to use when calculating the default path cost

You can specify a standard for the device to use in automatic calculation for the default path cost. The

device supports the following standards:

dot1d-1998—The device calculates the default path cost for ports based on IEEE 802.1d-1998.

dot1t—The device calculates the default path cost for ports based on IEEE 802.1t.

legacy—The device calculates the default path cost for ports based on a private standard.

To specify a standard for the device to use when calculating the default path cost:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Specify a standard for the
device to use when

calculating the default path
costs of its ports.

stp pathcost-standard
{ dot1d-1998 | dot1t | legacy }

Optional.
legacy by default.

CAUTION:

If you change the standard that the device uses in calculating the default path costs, you restore the path
costs to the default.

NOTE:

When calculating path cost for an aggregate interface, IEEE 802.1t takes into account the number of
Selected ports in its aggregation group, but IEEE 802.1d-1998 does not. The calculation formula of IEEE

802.1t is: Path Cost = 200,000,000/link speed (in 100 kbps), where link speed is the sum of the link
speed values of the Selected ports in the aggregation group.

Table 20

shows the mappings between the link speed and the path cost.

Table 20 Mappings between the link speed and the path cost

Link speed

Port type

Path cost
IEEE

802.1d-1998

IEEE 802.1t

Private standard

0 N/A

65535

200,000,000

200,000

10 Mbps

Single Port

100

2,000,000 2,000

Aggregate interface
containing 2 Selected ports

1,000,000 1,800

Aggregate interface
containing 3 Selected ports

666,666 1,600