Configuring QoS
Class of Service Configuration
User Guide
457
Step 3
qos queue
tc-queue
mode {
sp
|
wrr
} [weight
weight
]
Specify the type of scheduling used for corresponding queue. When the network congestion
occurs, the egress queue will determine the forwarding sequence of the packets according to
the type. By default, it is wrr mode and the all the queue weights are 1.
tc-queue
:
Specify the ID number of TC queue. The valid values are from 0 to 7.
sp:
In sp mode, the egress queue will use SP (Strict Priority) to process the traffic in different
queues. When congestion occurs, the traffic will be transmitted according to its queue priority
strictly. The queue with higher priority occupies the whole bandwidth. Packets in the queue
with lower priority are sent only when the queue with higher priority is empty.
wrr:
In wrr mode, the egress queue will use WRR (Weighted Round Robin) to process the
traffic in different queues. When congestion occurs, all the traffic will be transmitted, but the
bandwidth that each traffic queue occupies will be allocated based on the queue weight.
weight
:
Specify the queue weight for the desired queue. This value can be set only in the wrr
mode. The valid values are from 1 to 127.
Step 4
show qos queue interface [fastEthernet
port
| gigabitEthernet
port
| ten-gigabitEthernet
port
| port-channel
port-channel-id
]
Verify the scheduler settings..
Step 5
end
Return to privileged EXEC mode.
Step 6
copy running-config startup-config
Save the settings in the configuration file.
Note:
With ACL Redirect feature, the switch maps all the packets that meet the configured ACL rules to the
new TC queue, regardless of the mapping relations configured in this section.
The following example shows how to specify the scheduler settings for port 1/0/1. Set the
scheduler mode of TC1 as sp mode, set the scheduler mode of TC4 as wrr mode and set
the queue weight as 5.
Switch#configure
Switch(config)#interface gigabitEthernet
1/0/1
Switch(config-if)#qos queue
1
mode
sp
Switch(config-if)#qos queue
4
mode
wrr
weight
5
Switch(config-if)#show qos queue interface gigabitEthernet
1/0/1
Gi1/0/1----LAG: N/A
Queue Schedule Mode Weight
----- ---------- -----
TC0 WRR 1
Downloaded from