diffserv-mode ingress egress (Bridge domain view)

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

Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

To configure different DiffServ modes for multiple BDs accessing the same VPLS, run the diffserv-mode ingress egress command.

When configuring DiffServ modes, note the following:

  • If you want to distinguish service priorities on a BD network, use the uniform mode.
  • If you do not want to distinguish service priorities on a BD network, use the pipe or short-pipe mode.

    If downstream PHB is configured, the egress can have the trust inner-vlan-8021p configuration only if it works in short-pipe mode. If the trust inner-vlan-8021p configuration is available, an egress forwards packets based on the 802.1p value carried in the inner VLAN tags of packets. If the trust ip-dscp configuration is available, an egress forwards packets based on the IP DSCP value carried in packets.

    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.

    NOTE:

    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.

Configuration Impact

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.

Precautions

If the diffserv-mode ingress egress (BD view) and diffserv-mode ingress egress (VSI view) commands are both configured, only the diffserv-mode ingress egress (BD view) command takes effect.

VXLAN allows only the uniform mode for BDs. If a BD is bound to a VNI, the BD cannot work in pipe or short-pipe mode. Conversely, a BD working in pipe or short-pipe cannot be bound to a VNI.

Example

# Configure the MPLS Diffserv mode by setting the pipe mode, af1 service class, and green color on the ingress and the short-pipe mode and trust 802.1p on the egress.
<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI-bd10] diffserv-mode ingress pipe af1 green egress short-pipe trust inner-vlan-8021p
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >