set class-of-service scheduler weight
The set class-of-service scheduler weight command sets scheduler weight for a CPU queue, CoPP uses WRR algorithm for queue scheduling.
Command Syntax
set class-of-service scheduler <scheduler-name> weight <value>
Parameter
Parameter | Description |
scheduler <scheduler-name> | Specifies a CoPP scheduler name, the value is a string, spaces are not allowed. |
weight <value> | Specifies scheduler weight. The value is an integer that ranges from 1 to 32, refer to Table 2 for default value of the scheduler weight. |
Usage Guidelines
Weighted Round Robin (WRR) algorithm ensures that packets in all the queues are scheduled in turn.
When using WRR scheduling, it is necessary to set weight for each queue. The device schedules queues in turn according to their weight value. A bigger weight value indicates a higher priority.
Note:
It is NOT recommended to use the weight value for CPU queue scheduling due to hardware restrictions.
Â
Example
•  Set scheduler weight for copp-scheduler3 to 30.
admin@XorPlus# set class-of-service scheduler copp-scheduler3 weight 30 admin@XorPlus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.