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.
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 }
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. |
- |
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.
<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