qos-profile pe-vid

Function

The qos-profile pe-vid command applies the QoS template to a sub-interface for QinQ VLAN tag termination.

The undo qos-profile pe-vid command removes the QoS template that is applied to a sub-interface for QinQ VLAN tag termination.

By default, no QoS profile is applied to a sub-interface for QinQ VLAN tag termination.

Format

qos-profile qos-profile-name { inbound | outbound } pe-vid pe-vlan-id ce-vid { ce-vlan-id-begin [ to ce-vlan-id-end ] } [ identifier { pe-vid | ce-vid | pe-ce-vid | none } ] [ group group-name ]

qos-profile qos-profile-name { inbound | outbound } pe-vid pe-vlan-id ce-vid { ce-vlan-id-begin [ to ce-vlan-id-end ] } [ identifier { pe-vid | ce-vid | pe-ce-vid | none } ] linkage-bandwidth

undo qos-profile { inbound | outbound } pe-vid pe-vlan-id ce-vid { ce-vlan-id-begin [ to ce-vlan-id-end ] }

Parameters

Parameter Description Value
qos-profile-name

Specifies the name of a QoS template.

The value is a string of 1 to 63 characters.

inbound

Specifies the inbound direction of an interface.

-

outbound

Specifies the outbound direction of an interface.

-

pe-vid

Indicates that packets enter different queues for scheduling according to the VLAND ID of the PE. Packets with the same PE-VID use the bandwidth of one SQ alone.

-

pe-vid pe-vlan-id

Specifies the PE VLAN ID of packets.

The value is an integer ranging from 1 to 4094.

ce-vid

Indicates that packets enter different queues for scheduling according to the VLAND ID of the CE. Packets with the same CE-VID use the bandwidth of one SQ alone.

-

ce-vlan-id-begin

Specifies the start CE VLAN ID of a packet (the value of the inner tag) of a packet.

The value is an integer ranging from 1 to 4094.

to ce-vlan-id-end

Specifies the end CE VLAN ID of a packet (the value of the inner tag).

The value is an integer ranging from 1 to 4094.

identifier

Specifies which queue packets should enter.

When the identifier is not specified, all users share the bandwidth of one SQ.

-

pe-ce-vid

Indicates that packets enter different queues for scheduling according to the PE-CE VLAND ID. Packets with the same PE-CE VLANID use the bandwidth of one SQ alone.

-

none

Indicates that the allocation mode is not specified. Indicates that users share the bandwidth of one SQ.

-

group group-name

Specifies the name of a shared group of QoS template instances.

The value is a string of 1 to 31 characters.

linkage-bandwidth

Enables bandwidth association. By default, bandwidth association is disabled.

This parameter is mutually exclusive with the group parameter.

  • If bandwidth association is disabled, the percentage base value of the CIR and PIR in the user-queue command is the physical bandwidth of the interface.
  • If bandwidth association is enabled, the percentage base value of the CIR and PIR in the user-queue command is the interface bandwidth configured using the bandwidth command.

Views

Eth-Trunk sub-interface view, GE sub-interface view, GE electrical interface view, Global VE interface view, VE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To achieve uniform scheduling of incoming traffic flows on multiple interfaces, you need to implement traffic management by user levels. Profile-based HQoS, by comparison, allows traffic on multiple interfaces to enter an SQ for scheduling. It implements uniform scheduling of traffic on multiple interfaces by defining a QoS profile and applying the profile to different interfaces. In addition, an identity attribute allows traffic with different P-VLAN and C-VLAN tags on an interface to share an SQ bandwidth or individually use an SQ bandwidth.

When QinQ termination is configured on an Ethernet-interface, the qos-profile pe-vid command can be used to apply a QoS profile to all double-tagged packets.

Precautions

If an interface is configured with user-queue or Layer 2 suppression, you can apply a QoS profile to the interface only after you delete these configurations.

If the direction configured in the QoS template is different from the direction to which the QoS template is applied on the interface, the template does not take effect. If directionless traffic control is configured in the QoS template, the QoS template takes effect on traffic in the direction that is specified when the QoS template is applied to the interface.

When the identifier is not specified, all users share the bandwidth of one SQ.

An outbound QoS profile cannot be configured based on VLANs on a sub-interface for QinQ VLAN tag termination that works in symmetric mode.

Example

# Apply a QoS template named p1 to the incoming traffic on GE 0/1/0.1.
<HUAWEI> system-view
[~HUAWEI] qos-profile p1
[*HUAWEI-qos-profile-p1] quit
[*HUAWEI] interface GigabitEthernet 0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] encapsulation qinq-termination
[*HUAWEI-GigabitEthernet0/1/0.1] vlan-group 1
[*HUAWEI-GigabitEthernet0/1/0.1-vlangroup1] commit
[~HUAWEI-GigabitEthernet0/1/0.1-vlangroup1] quit
[~HUAWEI-GigabitEthernet0/1/0.1] qinq termination pe-vid 1000 ce-vid 100 vlan-group 1
[*HUAWEI-GigabitEthernet0/1/0.1] qos-profile p1 inbound pe-vid 1000 ce-vid 100 identifier pe-vid
# Apply a QoS template named test to the outbound traffic on Eth-Trunk1.1.
<HUAWEI> system-view
[~HUAWEI] qos-profile test
[*HUAWEI-qos-profile-test] quit
[~HUAWEI] interface Eth-Trunk1.1
[*HUAWEI-Eth-Trunk1.1] encapsulation qinq-termination
[*HUAWEI-Eth-Trunk1.1] qinq termination pe-vid 1 ce-vid 1
[*HUAWEI-Eth-Trunk1.1] qos-profile test outbound pe-vid 1 ce-vid 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >