diffserv-mode (interface)

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.

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.

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

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 10G LAN interface view, 10G WAN 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 interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, L2VE interface view, XGE sub-interface view, XGE interface 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.

Example

# Configure the MPLS DiffServ mode to be Pipe in the interface view, the service class to be af1, and the packet color to be green.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/8
[~HUAWEI-GigabitEthernet0/1/8] diffserv-mode pipe af1 green
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
Next topic >