The color match dscp command configures mappings between the color values of SR-MPLS TE Policies in an SR-MPLS TE Policy group and the DSCP values of packets to be steered into the SR-MPLS TE Policies.
The undo color match dscp command deletes the mappings configured.
By default, mappings between the color values of SR-MPLS TE Policies in an SR-MPLS TE Policy group and the DSCP values of packets to be steered into the SR-MPLS TE Policies are not configured.
Parameter | Description | Value |
---|---|---|
color-value |
Specifies color values for SR-MPLS TE Policies in an SR-MPLS TE Policy group. |
The value is an integer ranging from 0 to 4294967295. |
ipv4 |
Maps color values to the DSCP values of IPv4 packets to be steered into SR-MPLS TE Policies. |
- |
ipv6 |
Maps color values to the DSCP values of IPv6 packets to be steered into SR-MPLS TE Policies. |
- |
default |
Steers packets whose DSCP values are out of the specified range into the default SR-MPLS TE Policy. |
- |
dscp-value1 |
Specifies a begin DSCP value. |
The value is an integer ranging from 0 to 63. |
to dscp-value2 |
Specifies an end DSCP value. |
The value is an integer ranging from 0 to 63. |
Usage Scenario
Each SR-MPLS TE Policy in the SR-MPLS TE Policy group has its own color attribute. To configure mappings between the color values of SR-MPLS TE Policies in an SR-MPLS TE Policy group and the DSCP values of packets to be steered into the SR-MPLS TE Policies, run the color match dscp command. In this way, DSCP values, color values, and SR-MPLS TE Policies are associated within the SR-MPLS TE Policy group. Based on the association, packets with the specified DSCP values can be steered into SR-MPLS TE Policies with the mapping color values.
Precautions
The mappings between color and DSCP values can be separately configured for IPv4 and IPv6 address families. However, in the same IPv4 or IPv6 address family, each DSCP value can be associated with only one SR-MPLS TE Policy. Only up SR-MPLS TE Policies can be associated with DSCP values.
You can run the color color-value match dscp { ipv4 | ipv6 } default command to specify a default SR-MPLS TE Policy for an IPv4 or IPv6 address family. When a DSCP value is not associated with any SR-MPLS TE Policy in an SR-MPLS TE Policy group, the packets with this DSCP value are forwarded through the default SR-MPLS TE Policy. In an SR-MPLS TE Policy group, only one default SR-MPLS TE Policy can be specified for an IPv4 or IPv6 address family. In scenarios where no default SR-MPLS TE Policy is specified for an IPv4 or IPv6 address family in an SR-MPLS TE Policy group:<HUAWEI> system-view [*HUAWEI] segment-routing [*HUAWEI-segment-routing] sr-te-policy group 1 [*HUAWEI-segment-routing-te-policy-group-1] color 100 match dscp ipv4 20 to 30 [*HUAWEI-segment-routing-te-policy-group-1] color 200 match dscp ipv4 default