diffserv-mode(l3vpn)

Function

The diffserv-mode 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 { pipe service-class color | short-pipe service-class color [ domain ds-name ] | uniform }

undo diffserv-mode

Parameters

Parameter Description Value
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 value can be cs7, cs6, ef, af4, af3, af2, af1, or be. The default value is 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 value can be green, yellow, or red. The default value is green.

short-pipe

Specifies that the MPLS DiffServ mode is Short-pipe.

-

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.

uniform

Specifies that the MPLS DiffServ mode is Uniform.

-

Views

VPN instance IPv4 address family view, VPN instance IPv6 address family view, VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-base write

Usage Guidelines

Usage Scenario

To configure a Diff-Serv mode:

  • If service priorities on an MPLS network need to be distinguished, configure the Uniform mode.
  • If service priorities do not need to be distinguished, configure the Pipe or Short-pipe mode.

    When service class is configured for the packets that enter the public network from a private network:
  • To transmit signaling protocol, set service class to cs7 and cs6.
  • To ensure the QoS for low-delay services, set the service class to ef.
  • To ensure the bandwidth for key services, set service class to af4, af3, af2, or af1.
  • Set the service class to be (a service class) for the services that do not need strict QoS assurance.

    The packets with the preceding service classes are arranged in descending order of sending priorities.

    The colors of packets that enter the public network from a private network are in ascending order of discard priorities. That is green, yellow, and red.

Precautions

Before configuring the MPLS Diff-Serv mode for IPv4 services, ensure that an IPv4 address family is configured in the VPN instance view using the ipv4-family (VPN instance view) command.

Before configuring the MPLS Diff-Serv mode for IPv6 services, ensure that an IPv6 address family is configured in the VPN instance view using the ipv6-family (VPN instance view) command.

In SRv6 over VPN scenarios, the diffserv-mode command can be run to configure a DiffServ mode.

Example

# Configure the MPLS DiffServ mode to be Pipe in the VPN instance view, the service class to be af1, and the packet color to be green.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[~HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] diffserv-mode pipe af1 green
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >