18.
Quality of Service
MN700004 Rev 01
228
Command Syntax
device-name(config)#
qos scheduling wrr
<txq0
-
weight> <txq1-weight> <txq2-
weight> <txq3-weight> <txq4
-
weight> <txq5-weight> <txq6-weight> <txq7-weight>
Argument Description
<txq0-weight> …
<txq7-weight>
The weights assigned to the transmit queues. The eight values must be
positive and add up to 10 or 100.
Example
The following example assigns weights 1, 1, 1, 1, 2, 2, 1, 1 to transmit queues txq0 to txq7
respectively on all ports. It then assigns weights 1, 1, 1, 1, 1, 1, 2, 2 to the transmit queues on
port 1/1/1, and weights 1, 1, 1, 1, 1, 2, 2, 1 to the transmit queues on port 1/1/2. The
show qos
scheduling
command displays the results on all ports.
device-name
(config)#
qos scheduling wrr
1 1 1 1 2 2 1 1
device-name
(config)#
int
1/1/1
device-name
(config-if 1/1/1)#
qos scheduling wrr
1 1 1 1 1 1 2 2
device-name
(config-if 1/1/1)#
int
1/1/2
device-name
(config-if 1/1/2)#
qos scheduling wrr
1 1 1 1 1 2 2 1
device-name
(config-if 1/1/2)#
exit
device-name
config)#
exit
device-name
#
show qos scheduling all
===============================================================
Interface | scheduling |txq0|txq1|txq2|txq3|txq4|txq5|txq6|txq7
----------+------------+----+----+----+----+----+----+----+----
1/ 1/ 1 | wrr | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 2 |
1/ 1/ 2 | wrr | 1 | 1 | 1 | 1 | 1 | 2 | 2 | 1 |
1/ 1/ 3 | wrr | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 |
. . .
1/ 1/48 | wrr | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 |
1/ 2/ 1 | wrr | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 |
1/ 2/ 2 | wrr | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 |
1
/ 2/ 3 | wrr | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 |
1/ 2/ 4 | wrr | 1 | 1 | 1 | 1 | 2 | 2 | 1 | 1 |
Configuring Hybrid-1 QoS Queue Handling
The
qos scheduling hybrid-1
command, in Global Configuration or Interface Configuration
mode, applies and configures the first hybrid QoS algorithm.
In the first hybrid algorithm,
txq7
is assigned strict priority scheduling, and the remaining
queues are assigned Weighted Round Robin (WRR) scheduling. According to this
configuration:
txq7
is serviced as long as it has packets for transmission.
When
txq7
is empty, the remaining queues are serviced according to their assigned weights.
By default, the SP scheduling is applied.
Command Syntax
device-name(config)#
qos scheduling hybrid-1
<txq0-weight> <txq1-weight>
<txq2-weight> <txq3-weight> <txq4-weight> <txq5-weight> <txq6-weight>
Argument Description
<txq0-weight> …
<txq6-weight>
The weights assigned to the weighted transmit queues. The values must be
positive and add up to 10 or 100.