diffserv-mode

Function

The diffserv-mode command configures a DiffServ mode for an SR-MPLS TE Policy to provide end-to-end QoS guarantee.

The undo diffserv-mode command deletes the DiffServ mode configured for an SR-MPLS TE Policy.

By default, no DiffServ mode is configured for an SR-MPLS TE Policy.

Format

diffserv-mode { pipe { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } { green | yellow | red } | uniform }

undo diffserv-mode

Parameters

Parameter Description Value
pipe

Sets the DiffServ mode to pipe for an SR-MPLS TE Policy.

-

be

Service name is BE.

-

af1

Service name is AF1.

-

af2

Service name is AF2.

-

af3

Service name is AF3.

-

af4

Service name is AF4.

-

ef

Service name is EF.

-

cs6

Service name is CS6.

-

cs7

Service name is CS7.

-

green

Green Color.

-

yellow

Yellow Color.

-

red

Red Color.

-

uniform

Sets the DiffServ mode to uniform for an SR-MPLS TE Policy.

-

Views

SR-MPLS TE policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

In DiffServ mode configuration:

  • If you want to prioritize services on an SR MPLS network, set the DiffServ mode to uniform.
  • If you do not want to prioritize services on an SR MPLS network, set the DiffServ mode to pipe.

    The DiffServ mode helps achieve differential control on the classification and forwarding behaviors of packets steered into an SR-MPLS TE Policy. Only one DiffServ mode can be configured for each SR-MPLS TE Policy.

Example

# Set the DiffServ mode to pipe, service class to af1, and service color to green for an SR-MPLS TE Policy.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] sr-te policy policy1 endpoint 1.1.1.1 color 100
[*HUAWEI-segment-routing-te-policy-policy1] diffserv-mode pipe af1 green
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >