diffserv-mode ingress egress(interface)

Function

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.

Format

diffserv-mode ingress { uniform | pipe service-class color | short-pipe service-class color } egress { uniform | pipe | short-pipe [ trust { inner-vlan-8021p | ip-dscp } ] [ domain ds-name ] }

undo diffserv-mode

Parameters

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.

-

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE electrical interface view, Global VE sub-interface view, L2VE interface view, XGE sub-interface view, XGE interface view, EVC view of an Eth-Trunk interface, EVC view of a GE interface, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-base write

Usage Guidelines

Usage Scenario

Diff-Serv models include Pipe, Short Pipe, and Uniform.

  • In the Pipe model, the EXP value in the label assigned by the ingress PE to the packet is determined by the user-defined parameters. Before the packet leaves the MPLS network, the MPLS label is popped out, but the DSCP value of the IP packet remains unchanged. The egress PE then forwards the packet based on the EXP value in the MPLS label.
  • In short-pipe mode, the EXP value assigned by the ingress to a packet is determined by the user-defined parameters. When the packet leaves the MPLS network, the egress removes the MPLS label, but the DSCP value of the IP packet remains unchanged. The egress forwards the packet based on the trust field in the MPLS label. If no trust field is configured, the egress forwards the packet based on its VLAN priority. If the packet does not have a VLAN priority, the egress forwards the packet based on its IP DSCP value.
  • In uniform mode, the EXP value assigned by the ingress is determined by the inbound queue and egress DS domain. When the packet leaves the MPLS network, the egress removes the MPLS label and maps the EXP value to the DSCP value of the IP packet. The egress then forwards the packet based on the mapped DSCP value.

    When you configure the service type of packets transmitted from a private network to the public network:
  • Configure the service type as cs7 or cs6 to send signaling protocol packets.
  • Configure the service type as ef to ensure low latency.
  • Configure the service type as af4, af3, af2, or af1 to ensure the bandwidth key data.
  • Configure the service type as be for the best effort delivery without strict QoS assurance.

    The preceding service types are listed in the descending order of sending priorities.

    The colors of the packets sent from private network to the public network are arranged in the ascending order of the discard priorities, specifically, green, yellow, and red.

Precautions

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.

Example

# Configure the MPLS diffserv mode in the interface view. Set the ingress to uniform and egress to Pipe.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/8
[~HUAWEI-GigabitEthernet0/1/8] diffserv-mode ingress uniform egress pipe
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >