71
2.
Enter interface view or
port group view.
•
Enter
interface
view
:
interface
interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
Settings in interface view take effect on the
current interface. Settings in port group view
take effect on all ports in the port group.
3.
Enable WRR queuing.
qos wrr
WRR queuing is only applicable to Layer 2
interfaces.
The default queuing algorithm on an
interface varies with device models.
4.
Assign a queue to a
WRR group, and
configure scheduling
parameters for the
queue.
qos wrr
queue-id
group
1
weight
schedule-value
N/A
5.
Assign a queue to the
SP group.
qos wrr
queue-id
group sp
Optional.
Queues in the SP group are scheduled by
using the SP mechanism.
6.
Display WRR queuing
configuration
information.
display qos wrr interface
[
interface-type
interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Optional.
Available in any view.
Configuration example
1.
Network requirements
{
Enable WRR queuing on interface GigabitEthernet 1/0/1.
{
Assign queue 0 and queue 1 to the SP group.
{
Assign queue 2, queue 3, and queue 4 to WRR group 1, with the weight of 1, 5, and 10,
respectively.
{
Assign queue 5 and queue 6 to WRR group 2, with the weight of 20 and 10, respectively.
2.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Configure WRR queuing on interface GigabitEthernet 1/0/1.
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qos wrr
[Sysname-GigabitEthernet1/0/1] qos wrr 0 group sp
[Sysname-GigabitEthernet1/0/1] qos wrr 1 group sp
[Sysname-GigabitEthernet1/0/1] qos wrr 2 group 1 weight 1
[Sysname-GigabitEthernet1/0/1] qos wrr 3 group 1 weight 5
[Sysname-GigabitEthernet1/0/1] qos wrr 4 group 1 weight 10
Configuring WFQ queuing
With a WFQ queue configured, an interface has WFQ enabled. Other queues on the interface use
the default WFQ scheduling value, which varies with device models.
Configuration procedure