default match (SRv6 mapping policy service-class view)

Function

The default match command configures the mapping between service class values and SRv6 TE Policies or native IP links that are not exactly matched.

The undo default match command deletes the mapping between service class values and SRv6 TE Policies or native IP links that are not exactly matched.

By default, no SRv6 TE Policy or native IP link is mapped to a specified service class.

Format

default match { srv6-te-policy color color-value | native-ip }

undo default [ match { srv6-te-policy color color-value | native-ip } ]

Parameters

Parameter Description Value
srv6-te-policy

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

-

default

Specifies the default service class.

-

Views

SRv6 mapping policy service-class view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
teflowgroup write

Usage Guidelines

Usage Scenario

Each SRv6 TE Policy in an SRv6 TE Flow Group has its own color attribute.

This command is used together with the index service-class match command.

Using the index service-class { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } * match srv6-te-policy color command, you can configure the mapping between a color and a service class.

Using the index service-class { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } * match native-ip command, you can configure the mapping between native IPv6 links and service classes.

In an SRv6 mapping policy, the Service Class->Color->SRv6 TE Policy mapping is formed through the association of colors. After the service class value is associated with an SRv6 TE Policy, IP packets can be diverted to the SRv6 TE Policy based on the service class value. If the mapping between the service class and native IP link is configured, traffic is forwarded through IPv6 after the service class is associated with the native IP link.

The default match srv6-te-policy color command enables a device to redirect packets that do not match the service class configured using the index service-class match command to a specified SRv6 TE Policy.

The default match native-ip command configures the device to forward packets that do not match the service class configured using the index service-class match command through IPv6 by default.

Precautions

In an SRv6 mapping policy, you can specify a rule for the mapping between the color values of SRv6 TE Policies and the service class values of packets or for the mapping between native IP links and the service class values of packets. Each service class value can be associated with only one SRv6 TE Policy or native IP link.

Furthermore, such a mapping rule can be configured for an SRv6 TE Policy only if this policy is up.

When packets with service class values enter an SRv6 TE Policy group, they are matched against the following rules in sequence to achieve forwarding:

  1. The packets are first strictly matched against the SRv6 TE Policy-specific or native IP link-specific rule configured with the corresponding service class 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 rule configured with the default priority does not exist or it fails to go up, the packets are matched against the SRv6 mapping policy rule that is configured with the smallest index and remains up.
  4. The SRv6 mapping policy mapping rule with a smaller index value (BE < AF1 < AF2 < AF3 < AF4 < EF < CS6 < CS7) is preferred for traffic steering. As such, it is recommended that low-priority service classes (BE < AF1 < AF2 < AF3 < AF4 < EF < CS6 < CS7) be specified in the SRv6 mapping policy rule with a small index. This ensures that unmatched traffic preferentially preempts the low-priority bandwidth instead of the high-priority bandwidth.

Example

# Configure the default traffic steering mode in an SRv6 mapping policy.
<~HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] mapping-policy a color 1
[*HUAWEI-segment-routing-ipv6-mapping-policy-a] match-type service-class
[*HUAWEI-segment-routing-ipv6-mapping-policy-a-service-class] default match srv6-te-policy color 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >