13
Adjusting the SPF algorithm parameters
Based on the LSDB, an RB uses the SPF algorithm to calculate a shortest path tree with itself as the root.
The RB uses the shortest path tree to determine the next hop to a destination network. By adjusting the SFP
calculation intervals, you can prevent resource overconsumption when the network changes frequently.
When the network is stable, the SPF calculation interval for continuous calculations is reduced to
minimum-interval. When the network changes frequently, the SPF calculation interval is added by
incremental-interval × 2
n-2
(where n is the times of continuous SPF calculations triggered) each time, but
the SPF calculation interval cannot exceed maximum-interval.
To adjust SPF algorithm parameters:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter TRILL view.
trill N/A
3. Set the SPF calculation
interval for TRILL.
timer spf maximum-interval
[ minimum-interval
[ incremental-interval ] ]
By default, the maximum SFP calculation
interval is 10 seconds, the minimum SPF
calculation interval is 10 milliseconds, and
the SFP calculation incremental interval is 20
milliseconds.
Configuring the TRILL unicast equal-cost routes
Configuring multiple equal-cost routes to the same destination implements load balancing among these
links and improves the link efficiency. You can configure the maximum number of TRILL unicast equal-cost
routes.
The maximum number of TRILL unicast equal-cost routes is restricted by the maximum number of
equal-cost routes. The maximum number of equal-cost routes can be configured by using the
max-ecmp-num command. It is in the range of 1 to 32. After you configure the maximum number of
equal-cost routes as n, the value range for the number argument of the max-unicast-load-balancing
command is 1 to n. For more information about the max-ecmp-num command, see Layer 3—IP Routing
Command Reference.
To configure the maximum number of TRILL unicast equal-cost routes:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter TRILL view.
trill N/A
3. Configure the maximum
number of TRILL unicast
equal-cost routes.
max-unicast-load-balancing
number
The default setting is 8.
Configuring TRILL distribution trees
In a TRILL network, RBs do the following: