Enable the shortcut function for static SRv6 TE flow groups so that an IGP uses an SRv6 TE flow group that is up to perform enhanced SPF calculation.
Before configuring the shortcut function for static SRv6 TE flow groups, complete one of the following tasks:
An SRv6 TE flow group is a set of SRv6 TE Policies and can be used to implement DSCP-based traffic steering. It contains multiple SRv6 TE Policies with the same endpoint but different color values. During service recursion, service traffic is matched against SRv6 TE Policies in the SRv6 TE flow group according to the DSCP values carried by the traffic.
The mapping between DSCP values and SRv6 TE Policies can be statically configured in an SRv6 TE flow group and applies to both IPv4 and IPv6 services. Only an SRv6 TE Policy in the up state can be mapped to a DSCP value.
In the implementation of the shortcut function for a static SRv6 TE flow group, the SRv6 TE flow group is considered a local direct link. An IGP uses the SRv6 TE flow group as an outbound interface to perform enhanced SPF calculation. If the headend and endpoint of the SRv6 TE flow group match the ingress and egress of a physical link on the SPF tree, respectively, the IGP uses the SRv6 TE flow group to replace the physical link, implementing the shortcut function for the SRv6 TE flow group. During data forwarding, a node steers data traffic into the corresponding SRv6 TE flow group based on DSCP values, thereby meeting SLA requirements.
Although a device on which the shortcut function for SRv6 TE flow groups is enabled uses an SRv6 TE flow group as an outbound interface, it does not advertise the SRv6 TE flow group to its neighbors. As such, other devices cannot use the SRv6 TE flow group.
The system view is displayed.
SRv6 is enabled, and the SRv6 view is displayed.
The SRv6 TE Policy view is displayed.
An endpoint address is configured for the SRv6 TE flow group.
During route recursion, the device checks whether the next hop address of the route matches the endpoint address of the SRv6 TE flow group. If they match, route recursion succeeds.
The shortcut function is enabled for the SRv6 TE flow group.
If the route-policy route-policy-name parameter is not configured, only 128-bit host routes can recurse to the SRv6 TE flow group by default. However, if the route-policy route-policy-name parameter is configured, the specified route-policy is used to selectively recurse routes to the SRv6 TE flow group after path calculation is complete.
IS-IS IPv6 is enabled for the SRv6 TE flow group and the ID of the IS-IS process to be associated is specified.
The mapping type of the SRv6 mapping policy is set to DSCP.
A rule is configured either for the mapping between the color values of SRv6 TE Policies in an SRv6 TE flow group and the DSCP values of packets or for the mapping between native IP links in an SRv6 TE flow group and the DSCP values of packets.
When packets with DSCP values enter an SRv6 TE flow group, they are matched against the following rules in sequence to achieve forwarding:
Only an SRv6 TE Policy in the up state can be mapped to a DSCP value.
The mapping rule takes effect for an SRv6 TE flow group only when it is up.
The configuration is committed.
After the configuration is complete, verify the configuration.