match dscp

Function

The match dscp command sets a DSCP value for IPv4 and IPv6 packets to be imported into the SR-MPLS TE tunnel.

The undo match dscp command deletes the DSCP value for IPv4 and IPv6 packets.

By default, IPv4/IPv6 packets are not sent to an SR-MPLS TE tunnel based on DSCP values.

Format

match dscp ipv4 { dscp-value [ to dscp-value ] } &<1-32>

match dscp ipv4 default

match dscp ipv6 { dscp-value [ to dscp-value ] } &<1-32>

match dscp ipv6 default

undo match dscp ipv4 default

undo match dscp ipv4 { dscp-value [ to dscp-value ] } &<1-32>

undo match dscp ipv6 default

undo match dscp ipv6 { dscp-value [ to dscp-value ] } &<1-32>

undo match dscp { ipv4 | ipv6 }

Parameters

Parameter Description Value
dscp-value

Sets a start DSCP value for packets that enter an SR-MPLS TE tunnel.

The value is an integer ranging from 0 to 63.

to dscp-value

Sets an end DSCP value for packets that enter an SR-MPLS TE tunnel.

The value is an integer ranging from 0 to 63.

ipv4

Specifies a DSCP value of IPv4 packets that enter an SR-MPLS TE tunnel.

-

default

Forwards traffic to pass through the default SR-MPLS TE tunnel if the traffic has the DSCP values that do not match the specified value.

-

ipv6

Specifies a DSCP value of IPv6 packets that enter an SR-MPLS TE tunnel.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

In an SR-MPLS TE scenario, DSCP values can be set for packets so that the packets can pass through tunnels that match the specified DSCP values. The priority setting in CBTS mode for traffic transmitted over TE tunnels cannot meet service requirements because service segments are increasing. Similar to CBTS, DSCP values can be set for IPv4 and IPv6 packets. Each packet with a specified DSCP value enters a specific SR-MPLS TE tunnel.

Prerequisites

SR-MPLS TE tunnels have been configured on tunnel interfaces.

Precautions

The match dscp command takes effect on IPv4 and IPv6 services only in the EVPN L3VPN, IP/L3VPN over SR-MPLS TE, and IP/L3VPN over LDP over SR-MPLS TE (on a node where LDP and SR-MPLS TE LSPs overlap) scenarios.

  • When L3VPNv4/v6 services are transmitted, they can enter intra-domain SR-MPLS TE tunnels or inter-domain E2E SR-MPLS TE tunnels that match specified DSCP values in the following scenarios:
  • L3VPNv4/v6 over SR-MPLS TE and its load balancing scenarios
  • L3VPNv4/v6 over LDP over SR-MPLS TE and its load balancing scenarios
  • When IPv4 (IPv6) services are transmitted, they can enter intra-domain SR-MPLS TE tunnels or inter-domain E2E SR-MPLS TE tunnels that match specified DSCP values in the following scenarios:
  • IPv4 (IPv6) over SR-MPLS TE scenario
  • IPv4 (IPv6) over LDP over SR-MPLS TE scenario

    If the match dscp command is run repeatedly on a tunnel interface, the latest configuration overrides the previous one.

    Both the match dscp ipv4 and match dscp ipv6 commands can be run to set a maximum of 32 DSCP values (DSCP ranges) in total.

    The match dscp command is mutually exclusive with the service-class command on the SR-MPLS TE tunnel interface. If both commands are run, an error message is displayed.

    When services are load balanced among multiple SR-MPLS TE tunnels, the service-class command is run for some tunnels and the DSCP values are set for the other tunnels. In this case, the DSCP function does not take effect.

    When IPv4 (IPv6) packets enter SR-MPLS TE tunnels based on DSCP values, a maximum of 16 public network tunnels that match the same DSCP value can work in load balancing mode.

Example

# Set a DSCP range from 20 to 30 for IPv4 packets that can pass through SR-MPLS TE tunnels.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[~HUAWEI] interface tunnel 102
[~HUAWEI-tunnel102] tunnel-protocol mpls te
[~HUAWEI-tunnel102] mpls te signal-protocol segment-routing
[*HUAWEI-tunnel102] match dscp ipv4 20 to 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >