index dscp match (SRv6 flow group DSCP view)

Function

The index dscp match command configures the mapping between DSCP values and the colors of SRv6 TE Policies or native IP links.

The undo index dscp match command deletes the mapping between DSCP values and the colors of SRv6 TE Policies or native IP links.

By default, the mapping between DSCP values and the colors of SRv6 TE Policies or native IP links in an SRv6 TE flow group is not configured.

Format

index index-value dscp { { dscpBegin [ to dscpEnd ] } &<1-64> } match { srv6-te-policy color color-value | native-ip }

undo index index-value [ dscp { { dscpBegin [ to dscpEnd ] } &<1-64> } match { srv6-te-policy color color-value | native-ip } ]

Parameters

Parameter Description Value
dscpBegin

Specifies the start DSCP value.

The value is an integer ranging from 0 to 63.

to dscpEnd

Specifies the end DSCP value.

The value is an integer ranging from 0 to 63.

srv6-te-policy

Indicates an SRv6 TE Policy.

-

color color-value

Specifies the color of an SRv6 TE Policy.

The value is an integer ranging from 0 to 4294967295.

native-ip

Indicates IPv6 forwarding.

-

index index-value

Specifies the index of an SRv6 TE flow group mapping rule.

The value is an integer ranging from 1 to 4294967294.

Views

SRv6 flow group DSCP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
teflowgroup write

Usage Guidelines

Usage Scenario

This command is used together with the default match command.

The index dscp match srv6-te-policy color command configures the mapping between DSCP values and the colors of SRv6 TE Policies. In an SRv6 TE flow group, DSCP values and SRv6 TE Policies are associated using the color attribute. IP packets can then be steered into the specified SRv6 TE Policy based on their DSCP values.

The index dscp match native-ip command configures the mapping between DSCP values and native IP links. When an IP packet carries a specified DSCP value, it is forwarded through IPv6.

The default match { srv6-te-policy color | native-ip } command enables a device to steer packets that do not match the DSCP value configured using the index dscp match command to a specified SRv6 TE Policy or forward them through IPv6.

Precautions

The mapping between DSCP values and SRv6 TE Policies or native IP links in an SRv6 TE flow group does not distinguish between IPv4 and IPv6 address families. In an SRv6 TE flow group, you can configure the mapping between DSCP values and SRv6 TE Policies or native IP links. Each DSCP value can be mapped to only one SRv6 TE Policy or native IP link. Only an up SRv6 TE Policy or a reachable IPv6 route can be mapped to a DSCP value.

When traffic carrying DSCP values enters an SRv6 TE flow group, it is forwarded based on the following rules:

  1. The packets are first strictly matched against the SRv6 TE Policy-specific or native IP link-specific rule configured with the corresponding DSCP value.
  2. If the matching fails, the packets are matched against the SRv6 TE Policy-specific or native IP link-specific rule configured with the default priority
  3. If the matching fails, the packets are matched against the SRv6 TE Policy-specific or native IP link-specific rule configured with the smallest DSCP value.

Example

# Configure the mapping between DSCP values and native IP links in an SRv6 TE flow group.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] srv6-te flow-group flowgroup1
[*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1] match-type dscp
[*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1-dscp] index 10 dscp 6 match native-ip
# Configure the mapping between DSCP values and the colors of SRv6 TE Policies in an SRv6 TE flow group.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] srv6-te flow-group flowgroup1
[*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1] match-type dscp
[*HUAWEI-segment-routing-ipv6-flow-group-flowgroup1-dscp] index 10 dscp 6 to 10 match srv6-te-policy color 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >