diffserv-mode ingress egress (EVPN)

Function

The diffserv-mode ingress egress command configures an MPLS DiffServ mode to implement end-to-end QoS.

The undo diffserv-mode command restores the default MPLS DiffServ mode.

By default, the MPLS DiffServ mode is uniform.

Format

diffserv-mode ingress uniform egress uniform

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

diffserv-mode ingress { 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
ingress

Indicates an MPLS ingress.

-

uniform

Indicates the uniform mode.

-

egress

Indicates an MPLS egress.

If the uniform or pipe mode is configured on an egress, the egress forwards packets based on EXP values.

By default, if the short-pipe mode is configured on an egress, the egress forwards packets based on VLAN priority values. If the packets do not carry VLAN priority values, the egress forwards the packets based on IP DSCP values.

-

pipe

Indicates the pipe mode.

-

short-pipe

Indicates the short-pipe mode.

-

trust

Specifies the label value trusted by the egress node in short-pipe mode.

-

inner-vlan-8021p

Enables an egress working in short-pipe mode to forward packets based on 802.1p values carried in inner VLAN tags.

-

ip-dscp

Enables an egress working in short-pipe mode to forward packets based on IP DSCP values.

-

domain ds-name

Specifies the name of a DiffServ domain that uses a specified PHB on an egress node in short-pipe mode.

The value is a string of 1 to 48 characters.

service-class

Specifies a class of service (CoS) value for packets that enter a public network from a private network.

The value can be cs7, cs6, ef, af4, af3, af2, af1, or be.

color

Specifies the color of a packet that enters a public network from a private network. The color marks the discard priority of the packet.

The value can be green, yellow, or red.

Views

EVPL view, EVPN instance view, bd-evpn-instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
evpnbgp 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 outer 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 pipe or short-pipe mode takes precedence over behavior aggregate classification or forcible traffic classification.

Multi-field classification takes precedence over the pipe or short-pipe mode.

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 an MPLS DiffServ mode in the EVPN view. On the ingress PE, set the pipe mode, the CoS to a1, and the color to green. On the egress PE, set the short-pipe mode and trust to the 8021.p field.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evpn1 bd-mode
[*HUAWEI-evpn-instance-evpn1] diffserv-mode ingress pipe af1 green egress short-pipe trust inner-vlan-8021p
# Configure the MPLS DiffServ mode in the EVPN instance view. On the ingress, set the pipe mode, the CoS to af1, and the color to green.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evpn1
[*HUAWEI-evpn-instance-evpn1] diffserv-mode ingress pipe af1 green egress pipe
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >