
236
8.3.16 queue bandwidth
Command: queue bandwidth <weight1 weight2 weight3 weight4 >
no queue bandwidth
Function:
Sets the WRR weight for specified egress queue; the “
no queue bandwidth
”
command restores the default setting.
Parameters:
<weight1 weight2 weight3 weight4 >
are WRR weights, ranging from 0 to
100.
Default:
The default values of weight1 to weight4 are 25.
Command mode:
Interface Mode
Usage Guide:
The absolute value of WRR is meaningless. WRR allocates bandwidth by
using eight 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.
Example:
Setting the bandwidth weight proportion of the eight queue out to be 1:2:4:8.
Switch(Config-Ethernet0/0/1)#queue bandwidth 1 2 4 8
8.3.17 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 -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:
none
Example:
Mapping packets with CoS value 2 and 3 to egress queue 1.
Switch(Config)#wrr-queue cos-map 1 2 3
8.4 QoS Example
Scenario 1: