167
13.21 wrr-queue bandwidth
Command: wrr-queue bandwidth <weight1 weight2 weight3 weight4>
no wrr-queue bandwidth
Function: Sets the WRR weight for specified egress queue; the no command restores the
default setting.
Parameters: <weight1 weight2 weight3 weight4> are WRR weights, ranging from 0 to
55.
Default: The default values of weight1 to weight4 are 1:2:4:8.
Command mode: Global Mode.
Usage Guide: The absolute value of WRR is meaningless. WRR allocates bandwidth by
using four weight values. If a weight is 0, then the queue has the highest priority; when the
weights of multiple queues are set to 0, then the queue of higher order has the higher
priority.
Notice: Only one or two queues can be set 0, and the queues which be set to 0 are at
back.
Example: Setting the bandwidth weight proportion of the four queue out to be 1:2:3:4.
Switch(config)#wrr-queue bandwidth 1 2 3 4
13.22 wrr-queue cos-map
Command: wrr-queue cos-map <queue-id> <cos1 ... cos8>
no wrr-queue cos-map
Function: Sets the CoS value mapping to the specified queue out; the ―no wrr-queue
cos-map‖ command restores the default setting.
Parameters: <queue-id> is the ID of queue out, ranging from 1 to 4; <cos1 ... cos8> are
CoS values mapping to the queue out, ranging from 0 to 7, up to 8 values are supported.
Default:
Default CoS-to-Egress-Queue Map when QoS is Enabled
CoS Value 0 1 2 3 4 5 6 7
Queue Selected 1 1 2 2 3 3 4 4
Command mode: Global Mode
Usage Guide: When global QoS is close by default mapping value.
Example: Mapping packets with CoS value 2 and 3 to egress queue 1.
Switch(config)#wrr-queue cos-map 1 2 3