qos default-service-class

Function

The qos default-service-class command configures the upstream traffic on an interface to enter the specified queue.

The undo qos default-service-class command cancels the configuration.

By default, the upstream traffic on an interface to enter the BE queue.

Format

qos default-service-class service-class

undo qos default-service-class

Parameters

Parameter Description Value
service-class

Indicates the CoS of the queue that upstream traffic on an interface enters. The value is of the enumeration type.

It is case-insensitive and can be EF, AF1, AF2, AF3, AF4, BE, CS6, or CS7.

Views

100GE interface view, 10G LAN interface view, 10G WAN interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, PW-VE sub-interface view, EVC view of an Eth-Trunk interface, Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

This command is used to specify the CoS of the queue that the upstream traffic on an interface enters to implement congestion avoidance. In the DiffServ model, the system reserves eight service queues for each port, and their CoSs are respectively BE, AF1, AF2, AF3, AF4, EF, CS6, and CS7. For the queue whose CoS is AF1, AF2, AF3, AF4, or BE, WFQ is used to assign bandwidth to queue taking part in the scheduling according to the weights of the queues by default. For the queue whose CoS is EF, CS6, or CS7, PQ scheduling is configured by default.

If the qos default-service-class command is run on an interface for incoming traffic for multiple times, the last configuration takes effect. After this command is executed, other queue configuration commands cannot be enabled. This command is mutually exclusive with BA classification command.

Example

# Configure the upstream traffic on GE 0/1/0 to enter the queue whose CoS is AF1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] qos default-service-class af1
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >