The diffserv-mode ingress egress command configures an MPLS DiffServ mode to ensure end-to-end QoS.
The undo diffserv-mode command restores an MPLS DiffServ mode to the default configuration.
By default, the MPLS DiffServ mode is Uniform.
Parameter | Description | Value |
---|---|---|
uniform |
Specifies that the MPLS DiffServ mode is Uniform. |
- |
pipe |
Specifies that the MPLS DiffServ mode is Pipe. |
- |
service-class |
Specifies the Class of Service (CoS) for the packets that enter the public network from a private network. |
The available values are cs7, cs6, ef, af4, af3, af2, af1, be. |
color |
Specifies the color of a packet that enters the public network from a private network. The color marks the discard priority of the packet. |
The available values are green, yellow, and red. |
short-pipe |
Specifies that the MPLS DiffServ mode is Short-pipe. |
- |
egress |
Specifies that the node is an MPLS egress. If the uniform or pipe mode is configured on an egress, the egress forwards packets based on the EXP value. By default, if the short-pipe mode is configured on an egress, the egress forwards packets based on the VLAN priority. If packets do not carry the VLAN priority, the egress forwards packets based on the IP DSCP value. |
- |
trust |
Specifies the label value trusted by the egress node in short-pipe mode. |
- |
inner-vlan-8021p |
Specifies that an egress working in short-pipe mode forwards packets based on the 802.1p value carried in inner VLAN tags. |
- |
ip-dscp |
Specifies that an egress working in short-pipe mode forwards packets based on the IP DSCP value. |
- |
domain ds-name |
Specifies the name of a Diff-Serv domain that uses a specified PHB on an egress node in Short-pipe mode. |
The value is a string of 1 to 48 characters. |
ingress |
Specifies that the node is an MPLS ingress. |
- |
Usage Scenario
Diff-Serv models include Pipe, Short Pipe, and Uniform.
Precautions
The Pipe or Short Pipe model has high priority over the simple or forcible traffic classification.
The complex traffic classification has high priority over the Pipe or Short Pipe model. The diffserv-mode ingress egress command and diffserv-mode command can overwrite each other. The two commands provide the same function. The only difference is that the diffserv-mode ingress egress command allows you to configure different DiffServ modes on the ingress and egress, whereas the diffserv-mode command allows you to configure only the same DiffServ mode on the ingress and egress. VXLAN does not support Pipe/Short-pipe mode. A VSI that is added to a VXLAN cannot be configured to work in Pipe/Short-pipe mode. A VSI that is configured to work in Pipe/Short-pipe mode cannot be added to a VXLAN.<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls l2vpn [*HUAWEI-l2vpn] commit [~HUAWEI-l2vpn] quit [~HUAWEI] vsi vsia [*HUAWEI-vsi-vsia] diffserv-mode ingress pipe af1 egress pipe