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>




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.


It is NOT recommended to use the weight value for CPU queue scheduling due to hardware restrictions.



•  Set scheduler weight for copp-scheduler3 to 30.

admin@XorPlus# set class-of-service scheduler copp-scheduler3 weight 30
admin@XorPlus# commit