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.
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. |
- |
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
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.<HUAWEI> system-view [~HUAWEI] diffserv domain 1 [*HUAWEI-dsdomain-1] quit [*HUAWEI] interface GigabitEthernet0/1/16 [*HUAWEI-GigabitEthernet0/1/16] trust upstream 1
<HUAWEI> system-view [~HUAWEI] diffserv domain t1 [*HUAWEI-dsdomain-t1] quit [*HUAWEI] interface eth-trunk 10 [*HUAWEI-Eth-Trunk10] trust upstream t1