trust upstream

Function

The trust upstream command binds a DS domain to an interface to support BA classification and modify the priorities of IP packets and MPLS packets.

The undo trust upstream command unbinds a DS domain from an interface.

By default, no DS domain is bound to an interface.

Format

trust upstream { 5p3d | ds-domain-name | default } [ inbound | outbound ]

undo trust upstream [ inbound | outbound ]

trust upstream { ds-domain-name | default }

undo trust upstream

Parameters

Parameter Description Value
ds-domain-name

Specifies the name of a DS domain. A DS domain consists of a group of connected DS nodes that provide the same service policy and implement the same PHB set.

The value is a string of 1 to 48 case-sensitive characters.

default

Specifies the default DS domain, which is predefined in the system.

-

5p3d

Specifies the 5p3d DS domain, which is predefined in the system.

-

inbound

Specifies the inbound direction of a interface which the DS domain is bound.

-

outbound

Specifies the outbound direction of a interface which the DS domain is bound.

-

Views

100GE interface view, EVC view of a 10GE interface, 25GE interface view, 400GE interface view, 50GE interface view, EVC view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE electrical interface view, GMPLS-UNI interface view, Global-VE layer2 subinterface view, Global VE sub-interface view, MTI interface view, PW-VE sub-interface view, PW-VE interface view, Tunnel interface view, VE layer2 subinterface view, VE sub-interface view, Layer 2 sub-interface view, EVC view of an Ethernet interface, EVC view of a GE interface, Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To configure the traffic policy based on BA classification on an interface (such as the priorities of IP packets and MPLS packets), you can configure a DS domain on the interface and configure the mappings between priorities and DS domains.

You can specify inbound or outbound to have the command take effect for only incoming or outgoing packets. If neither inbound nor outbound is specified, the command takes effect for both incoming and outgoing packets. If the inbound parameter is specified, the priority fields, dscp, exp, 8021p, configured in the DS domain is mapped to the internal priorities (queue, color) for the inbound interface traffic. If the outbound parameter is specified, the internal priorities (queue, color) configured in the DS domain is mapped to the priority fields, dscp, exp, 8021p, for the outbound interface traffic.

Prerequisites

The DS domain specified by ds-domain-name has been created.

Precautions

After a physical interface is added to a trunk interface, BA classification is not supported on the physical interface.

The command cannot be configured on VLANIF interface.

Packets enter queues based on the DSCP value in the outer VLAN tag when entering the interface, and the queue priority is reversely mapped to the DSCP value when packets leave the interface. The mapping in the user-defined DS domain is trusted.

Example

# Bind a DS domain to GE 0/1/16.
<HUAWEI> system-view
[~HUAWEI] diffserv domain 1
[*HUAWEI-dsdomain-1] quit
[*HUAWEI] interface GigabitEthernet0/1/16
[*HUAWEI-GigabitEthernet0/1/16] trust upstream 1
# Bind a DS domain to Eth-Trunk 10.
<HUAWEI> system-view
[~HUAWEI] diffserv domain t1
[*HUAWEI-dsdomain-t1] quit
[*HUAWEI] interface eth-trunk 10
[*HUAWEI-Eth-Trunk10] trust upstream t1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >