
20-132
Example:
Setting the queue management algorithm as sp.
Switch(config)#mls qos queue algorithm sp
20.10 mls qos queue wrr weight
Command:
mls qos queue wrr weight <weight0..weight7>
no mls qos queue wrr weight
Function:
After configure this command, the queue weight is set.
Parameters:
<weight0..weight7> defines the queue weight, for WRR algorithm, this configuration is valid, but SP algorithm is
invalid. when the weight is 0, this queue adopts SP algorithm to manage, and WRR algorithm turns into SP+WRR
algorithm. The absolute value of WRR is meaningless. WRR allocates bandwidth by using 4 weight values. The
different chips support the different weight range, if the setting exceeds the chip range, it will prompt the right range.
Default:
The queue weight is 1 2 3 4 5 6 7 8.
Command mode:
Global Mode.
Usage Guide:
If the weight of queue is configured as 0, this queue will be scheduled with SP algorithm. This time, WRR algorithm
will become SWRR algorithm. The system will ensure SP queue scheduling when scheduling. When there are no
packets sent in SP queue, WRR will be scheduled. SP queue runs the priority scheduling manner strictly, WRR runs
weighted round robin manner.
Example:
Configure the queue weight as 1:2:3:4:4:3:2:1.
Switch(config)#mls qos queue weight 1 2 3 4 4 3 2 1