The sta-number gap-threshold command sets the load difference threshold for load balancing based on the number of users in a static load balancing group.
The undo sta-number gap-threshold command restores the default load difference threshold for load balancing based on the number of users in a static load balancing group.By default, the load difference threshold of a static load balancing group is specified based on the number of users, and the default value is 3.
sta-number gap-threshold { percentage percentage-value | number number-value }
undo sta-number gap-threshold
Parameter |
Description |
Value |
---|---|---|
percentage percentage-value | Specifies the load difference threshold for static load balancing based on the percentage of users. |
The value is an integer that ranges from 1 to 100. It indicates the threshold of the load difference among radios in a load balancing group, in percentage. The load difference refers to the difference between the percentages of users on radios. |
number number-value | Specifies the load difference threshold for static load balancing based on the number of users. |
The value is an integer that ranges from 1 to 20. It indicates the threshold of the load difference among radios in a load balancing group. The load difference refers to the difference between the numbers of users on radios. |
Usage Scenario
If the AP version is V200R010C00 or later, the new load balancing algorithm is used after the STA access to determine whether to direct a STA to a new AP.
One of the conditions for directing a STA to a new AP is that the radio of the target load is lower than that of the current access radio. The radio load is identified by the number or percentage (Number of users associated with the current radio/Maximum number of access users supported by the radio x 100%) of access users. If the load difference between the target radio and current radio exceeds the specified threshold, the condition is met.
Precautions
If you configure the load difference threshold based on both the number of users and the percentage of users, only the latest configuration takes effect.
# Set the load difference threshold for load balancing based on the percentage of users in the static load balancing group to 40%.
<HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] sta-load-balance static-group name coco [HUAWEI-wlan-sta-lb-static-coco] sta-number gap-threshold percentage 40