qinq 8021p-mode

Function

The qinq 8021p-mode command configures a mapping mode of 802.1p values on a sub-interface for QinQ VLAN tag termination.

The undo qinq 8021p-mode command deletes the mapping mode of 802.1p values configured on a sub-interface for QinQ VLAN tag termination.

By default, a sub-interface for QinQ VLAN tag termination trusts the 802.1p priority in the outer VLAN tag of packets. The sub-interface for QinQ VLAN tag termination deploys QoS policies based on the 802.1p priority in the outer VLAN tag of received packets.

Format

qinq 8021p-mode { trust { ce-vid-8021p | pe-vid-8021p } | precedence-value }

undo qinq 8021p-mode

Parameters

Parameter Description Value
trust

Specifies that a sub-interface for QinQ VLAN tag termination trusts the 802.1p priority in the outer VLAN tag.

-

ce-vid-8021p

Specifies that the 802.1p value in the inner VLAN tag is mapped to the DSCP field in IP packets or EXP field in MPLS packets.

-

pe-vid-8021p

Specifies that the 802.1p value in the outer VLAN tag is mapped to the DSCP field in IP packets or EXP field in MPLS packets.

-

precedence-value

Specifies the value of the 802.1p priority.

The larger the value, the higher the priority.

The value is an integer ranging from 0 to 7.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ethernet write

Usage Guidelines

Usage Scenario

According to relevant standards, six bits of the Type of Service (ToS) field in an IPv4 packet header serve as the DiffServ Code Point (DSCP), which provides reference for differentiated services (DiffServ) and is used to implement QoS guarantee on an IP network. The operation of the traffic controller on the gateway depends on the DSCP field.

After QinQ termination is configured, packets are sent to carrier IP networks. To ensure that the QoS information in user packets is not lost, run the qinq 8021p-mode command to map the 802.1p value in QinQ packets to the DSCP field.

The EXP field in an MPLS packet is used for Class of Service (CoS). The operation of the traffic controller on the gateway depends on the EXP field.

After QinQ termination is configured, packets are sent to carrier MPLS networks. To ensure that the QoS information in user packets is not lost, run the qinq 8021p-mode command to map the 802.1p value in QinQ packets to the EXP field.

Prerequisites

  • QinQ termination has been configured on the sub-interface using the encapsulation qinq-termination command.
  • The encapsulation qinq-termination command is replaced by the control-vid vid qinq-termination command.
  • VLAN tag termination has been enabled for double-tagged packets using the qinq termination pe-vid ce-vid command in the sub-interface view.

Example

# Configure the mapping mode of 802.1p values on GE 0/1/1.1 to map the 802.1p value in the outer VLAN tag to the DSCP field or EXP field.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] encapsulation qinq-termination
[*HUAWEI-GigabitEthernet0/1/1.1] qinq termination pe-vid 100 ce-vid 500 to 600
[*HUAWEI-GigabitEthernet0/1/1.1] qinq 8021p-mode trust pe-vid-8021p
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >