23-Segment Routing Command Reference

HomeSupportRoutersMSR5600 Series(Comware V7)Reference GuidesCommand ReferencesH3C MSR 5600 Routers Command Reference(V7)-R6749-6W10123-Segment Routing Command Reference
03-SRv6 TE policy commands
Title Size Download
03-SRv6 TE policy commands 685.96 KB

Contents

SRv6 TE policy commands· 1

address-family ipv6 sr-policy· 1

advertise ebgp enable· 1

autoroute enable· 2

autoroute metric· 3

backup hot-standby· 3

bestroute encap-type· 4

bfd echo· 5

bfd srv6-encapsulation-mode encap· 6

binding-sid (SRv6 TE policy group view) 7

binding-sid (SRv6 TE policy view) 8

bypass enable· 9

candidate-paths· 9

color end-point 10

color match dscp (DSCP forward type view) 11

color match dscp (SRv6 TE policy group view) 12

default match (APN ID-based traffic steering) 14

default-color (public instance IPv4/IPv6 address family view) 16

default-color (VPN instance IPv4/IPv6 address family view) 17

description· 18

display bgp mirror remote-sid· 18

display bgp routing-table ipv6 sr-policy· 20

display segment-routing ipv6 te bfd· 25

display segment-routing ipv6 te forwarding· 26

display segment-routing ipv6 te policy· 29

display segment-routing ipv6 te policy last-down-reason· 35

display segment-routing ipv6 te policy statistics· 36

display segment-routing ipv6 te policy status· 37

display segment-routing ipv6 te policy-group· 39

display segment-routing ipv6 te policy-group apn-id-ipv6· 41

display segment-routing ipv6 te policy-group last-down-reason· 42

display segment-routing ipv6 te policy-group statistics· 44

display segment-routing ipv6 te sbfd· 46

display segment-routing ipv6 te segment-list 47

distribute bgp-ls· 49

drop-upon-invalid enable· 50

drop-upon-mismatch enable· 51

encapsulation-mode· 52

encapsulation-mode encaps include local-end.x· 53

encapsulation-mode insert include local-end.x· 55

end-point 56

explicit segment-list 56

fast-reroute mirror delete-delay· 57

fast-reroute mirror enable· 58

forwarding statistics· 59

forward-type (SRv6 TE ODN policy group view) 60

forward-type (SRv6 TE Policy group view) 61

group-color 62

import-route sr-policy· 63

index· 63

index apn-id match· 65

mirror remote-sid delete-delay· 67

on-demand· 68

on-demand-group· 68

policy· 69

policy-group· 70

preference· 70

rate-limit 71

reset segment-routing ipv6 te forwarding statistics· 72

restrict 73

router-id filter 73

sbfd· 74

segment-list 76

service-class· 76

shutdown· 77

sr-policy steering· 78

sr-te frr enable· 79

srv6-policy autoroute enable· 80

srv6-policy backup hot-standby enable· 80

srv6-policy bfd echo· 81

srv6-policy encapsulation-mode· 82

srv6-policy encapsulation-mode encaps include local-end.x· 84

srv6-policy encapsulation-mode insert include local-end.x· 85

srv6-policy forwarding statistics enable· 86

srv6-policy forwarding statistics interval 86

srv6-policy locator 87

srv6-policy sbfd· 88

srv6-policy switch-delay delete-delay· 89

traffic-engineering· 90

ttl-mode· 90

validation-check enable· 91

 


SRv6 TE policy commands

address-family ipv6 sr-policy

Use address-family ipv6 sr-policy to create the BGP IPv6 SR policy address family and enter its view, or enter the view of the existing BGP IPv6 SR policy address family.

Use undo address-family ipv6 sr-policy to delete the BGP IPv6 SR policy address family and all the configuration in the BGP IPv6 SR policy address family.

Syntax

address-family ipv6 sr-policy

undo address-family ipv6 sr-policy

Default

The BGP IPv6 SR policy address family does not exist.

Views

BGP instance view

Predefined user roles

network-admin

Usage guidelines

The configuration in BGP IPv6 SR policy address family view applies only to routes and peers in the BGP IPv6 SR policy address family.

Examples

# In BGP instance view, create the BGP IPv6 SR policy address family and enter its view.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family ipv6 sr-policy

[Sysname-bgp-default-srpolicy-ipv6]

advertise ebgp enable

Use advertise ebgp enable to enable advertising BGP IPv6 SR policy routes to EBGP peers.

Use undo advertise ebgp enable to restore the default.

Syntax

advertise ebgp enable

undo advertise ebgp enable

Default

BGP IPv6 SR policy routes are not advertised to EBGP peers.

Views

BGP IPv6 SR policy address family

Predefined user roles

network-admin

Usage guidelines

By default, BGP IPv6 SR policy routes are advertised among IBGP peers. To advertise BGP IPv6 SR policy routes to EBGP peers, you must execute this command to enable the advertisement capability.

Examples

# Enable advertising BGP IPv6 SR policy routes to EBGP peers.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address ipv6 sr-policy

[Sysname-bgp-default-srpolicy-ipv6] advertise ebgp enable

autoroute enable

Use autoroute enable to enable automatic route advertisement for an SRv6 TE policy.

Use undo autoroute enable to disable automatic route advertisement for an SRv6 TE policy.

Syntax

autoroute enable [ isis | ospfv3 ]

undo autoroute enable

Default

Automatic route advertisement is disabled for an SRv6 TE policy.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

isis: Enables automatic route advertisement for IPv6 IS-IS.

ospfv3: Enables automatic route advertisement for OSPFv3.

Usage guidelines

The automatic route advertisement feature advertises an SRv6 TE policy to IGP (IPv6 IS-IS or OSPFv3) for route computation.

An SRv6 TE policy supports only automatic route advertisement in IGP shortcut mode, which is also called autoroute announce. Autoroute announce regards the SRv6 TE policy tunnel as a link that connects the tunnel ingress and egress. The tunnel ingress includes the SRv6 TE policy tunnel in IGP route computation.

If you do not specify the isis or ospfv3 keyword, both OSPFv3 and IPv6 IS-IS will include the SRv6 TE policy tunnel in route computation.

Examples

# Enable automatic route advertisement for an SRv6 TE policy.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy srv6policy

[Sysname-srv6-te-policy-srv6policy] autoroute enable

Related commands

autoroute metric

autoroute metric

Use autoroute metric to configure an autoroute metric for an SRv6 TE policy.

Use undo autoroute metric to restore the default.

Syntax

autoroute metric { absolute value | relative value }

undo autoroute metric

Default

The autoroute metric of an SRv6 TE policy equals its IGP metric.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

absolute value: Specifies an absolute metric, an integer in the range of 1 to 65535.

relative value: Specifies a relative metric, an integer in the range of –10 to +10. The specified relative metric plus the IGP metric is the actual metric of the SRv6 TE policy.

Usage guidelines

After automatic route advertisement is enabled for an SRv6 TE policy, the policy is included in IGP route computation as a link. You can use this command to configure the metric of this link used for IGP route computation.

Examples

# Set an absolute metric of 15 for SRv6 TE policy srv6policy.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy srv6policy

[Sysname-srv6-te-policy-srv6policy] autoroute metric absolute 15

Related commands

autoroute enable

backup hot-standby

Use backup hot-standby to configure hot standby for an SRv6 TE policy.

Use undo backup hot-standby to restore the default.

Syntax

backup hot-standby { disable | enable }

undo backup hot-standby

Default

Hot standby is not configured for an SRv6 TE policy.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

disable: Disables hot standby for the SRv6 TE policy.

enable: Enables hot standby for the SRv6 TE policy.

Usage guidelines

The hot standby feature takes the candidate path with the greatest preference value in the SRv6 TE policy as the primary path and that with the second greatest preference value as the standby path. When the forwarding paths corresponding to all SID lists of the primary path fail, the standby path immediately takes over to minimize service interruption.

You can enable hot standby for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

Examples

# Enable hot standby for SRv6 TE policy 1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] backup hot-standby enable

Related commands

srv6-policy backup hot-standby enable

bestroute encap-type

Use bestroute encap-type to specify the packet encapsulation type preferred in optimal route selection.

Use undo bestroute encap-type to restore the default.

Syntax

bestroute encap-type { mpls | srv6 } [ preferred ]

undo bestroute encap-type

Default

The device does not select optimal routes according to the packet encapsulation type.

Views

BGP-VPN instance view.

Predefined user roles

network-admin

Parameters

mpls: Prefers to use MPLS-encapsulated routes during optimal route selection.

srv6: Prefers to use SRv6-encapsulated routes during optimal route selection.

preferred: Increases the priority of packet encapsulation type in BGP route selection.

Usage guidelines

For more information about the priority order of the configuration in this command in BGP route selection, see BGP overview in Layer 3—IP Routing Configuration Guide.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Configure BGP to prefer SRv6-encapsulated routes during optimal route selection.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] ip vpn-instance vpn1

[Sysname-bgp-default-vpn1] bestroute encap-type srv6

bfd echo

Use bfd echo to configure the echo packet mode BFD for an SRv6 TE policy.

Use undo bfd echo to restore the default.

Syntax

bfd echo { disable | enable [ source-ipv6 ipv6-address ] [ template template-name ] [ backup-template backup-template-name ] [ oam-sid sid ] }

undo bfd echo

Default

The echo packet mode BFD is not configured for an SRv6 TE policy. An SRv6 TE policy uses the echo BFD settings configured in SRv6 TE view.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

disable: Disables the echo packet mode BFD for the SRv6 TE policy.

enable: Enables the echo packet mode BFD for the SRv6 TE policy.

source-ipv6 ipv6-address: Specifies the source IPv6 address of the BFD session. If you do not specify this option, the configuration in SRv6-TE view applies.

template template-name: Specifies a BFD session parameter template by its name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, the template specified in SRv6 TE view applies.

backup-template backup-template-name e: Specifies a BFD session parameter template for the backup SID list. The backup-template-name argument indicates the template name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, the backup template specified in SRv6 TE view applies.

oam-sid sid: Adds an OAM SID to BFD packets to identify the destination node. The sid argument represents the SRv6 SID of the destination node. If you do not specify this option, no OAM SID will be added to BFD packets. As a best practice, configure the End SID of the destination node as the OAM SID.

Usage guidelines

You can configure the echo packet mode BFD for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

The device supports the echo packet mode BFD and the SBFD for an SRv6 TE policy. If both modes are configured for the same SRv6 TE policy, the SBFD takes effect.

Examples

# Enable the echo packet mode BFD for SRv6 TE policy 1, and specify the source IPv6 address of the BFD session as 11::11.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] bfd echo enable source-ipv6 11::11

Related commands

explicit segment-list

display segment-routing ipv6 te bfd

srv6-policy bfd echo

bfd srv6-encapsulation-mode encap

Use bfd srv6-encapsulation-mode encap to specify the Encap mode for the BFD or SBFD packets used for SRv6 forwarding paths connectivity detection.

Use undo bfd srv6-encapsulation-mode encap to restore the default.

Syntax

bfd srv6-encapsulation-mode encap

undo bfd srv6-encapsulation-mode encap

The following compatibility matrixes show the support of hardware platforms for this command:

 

Hardware platform

MPU model

Command compatibility

MSR5620

MPU-60

No

MSR 56-60

MSR 56-80

MPU-100

No

MPU-100-X1

No

MPU-100-G

Yes

 

Default

The device uses the Insert mode to encapsulate the BFD or SBFD packets for SRv6 forwarding paths connectivity detection.

Views

System view

Predefined user roles

network-admin

Usage guidelines

To use BFD or SBFD to detect an SRv6 TE policy, the device needs to encapsulate the SID list of the SRv6 TE policy for the BFD or SBFD packets. The following encapsulation modes are available:

·     Insert—Insertion mode. It inserts an SRH after the original IPv6 header. All SIDs in the SID list of the SRv6 TE policy are encapsulated in the SRH. If the length of the SID list is 0, the SRH is not inserted.

·     Encaps—Normal encapsulation mode. It adds a new IPv6 header and an SRH to the original packets. All SIDs in the SID list of the SRv6 TE policy are encapsulated in the SRH. If the length of the SID list is 0, the SRH is not inserted.

The encapsulation mode configured using this command cannot take effect immediately when a BFD or SBFD session has been established. You must first execute the bfd echo or sbfd command with the disable keyword specified to disable BFD or SBFD for the SRv6 TE policy and then enable BFD or SBFD for the SRv6 TE policy.

Examples

# Configure the device to use the Encap mode to encapsulate the BFD or SBFD packets for SRv6 forwarding paths connectivity detection.

<Sysname> system-view

[Sysname] bfd srv6-encapsulation-mode encap

Related commands

bfd echo

sbfd

binding-sid (SRv6 TE policy group view)

Use binding-sid to configure a BSID for an SRv6 TE policy group.

Use undo binding-sid to delete the BSID of an SRv6 TE policy group.

Syntax

binding-sid ipv6 ipv6-address

undo binding-sid

Default

No BSID is configured for an SRv6 TE policy group.

Views

SRv6 TE policy group view

Predefined user roles

network-admin

Parameters

ipv6 ipv6-address: Specifies the BSID value, which is an IPv6 address.

Usage guidelines

You can use only this command to manually configure a BSID for an SRv6 TE policy group. Traffic will be steered to the SRv6 TE policy group based on the BSID.

The BSID configured by this command must be on the locator specified for SRv6 TE policies in SRv6 TE view. Otherwise, the SRv6 TE policy group cannot forward packets.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the BSID of an SRv6 TE policy group to 1000::1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 1

[Sysname-srv6-te-policy-group-1] binding-sid ipv6 1000::1

binding-sid (SRv6 TE policy view)

Use binding-sid to configure a BSID for an SRv6 TE policy.

Use undo binding-sid to delete the BSID.

Syntax

binding-sid ipv6 ipv6-address

undo binding-sid

Default

No BSID is configured for an SRv6 TE policy.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

ipv6 ipv6-address: Specifies the BSID value, which is an IPv6 address.

Usage guidelines

You can use this command to manually configure a BSID for an SRv6 TE policy or leave the SRv6 TE policy to obtain a BSID automatically. If an SRv6 TE policy has only color and endpoint configuration, the SRv6 TE policy will automatically request a BSID.

The manually configured BSID has a higher priority over the automatically obtained BSID.

The BSID configured by this command must be on the locator specified for SRv6 TE policies in SRv6 TE view. Otherwise, the SRv6 TE policy cannot forward packets.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the BSID of SRv6 TE policy srv6policy to 1000::1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic engineering

[Sysname-srv6-te] policy srv6policy

[Sysname-srv6-te-policy-srv6policy] binding-sid ipv6 1000::1

bypass enable

Use bypass enable to enable the bypass feature for an SRv6 TE policy.

Use undo bypass enable to disable the SRv6 TE policy bypass feature.

Syntax

bypass enable

undo bypass enable

Default

The SRv6 TE policy bypass feature is disabled.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Usage guidelines

If the first SID in the SID list of an SRv6 TE policy is unreachable, the source node of the SRv6 TE policy will place the policy to down state. The device cannot forward packets through the SRv6 TE policy or trigger SRv6 TE FRR.

To resolve this issue, you can enable the bypass feature for the SRv6 TE policy on the source node. This feature enables the source node to generate a route that uses the first SID as the destination address and the NULL0 interface as the outgoing interface. The route ensures that the SRv6 TE policy is in up state when the first SID is unreachable, so as to trigger SRv6 TE FRR.

Examples

# Enable the bypass feature for an SRv6 TE policy.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6–te] policy 1

[Sysname-srv6–te-policy-1] bypass enable

Related commands

sr-te frr enable

candidate-paths

Use candidate-paths to create and enter the candidate path view for an SRv6 TE policy, or enter the existing SRv6 TE policy candidate path view.

Use undo candidate-paths to delete the SRv6 TE policy candidate path view and all the configurations in the view.

Syntax

candidate-paths

undo candidate-paths

Default

The candidate path view for an SRv6 TE policy does not exist.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Examples

# Create the SRv6 TE policy candidate paths instance and enter its view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy srv6policy

[Sysname-srv6-te-policy-srv6policy] candidate-paths

[Sysname-srv6-te-policy-srv6policy-path]

color end-point

Use color end-point to configure the color and endpoint attributes of an SRv6 TE policy.

Use undo color to delete the color and endpoint settings of an SRv6 TE policy.

Syntax

color color-value end-point ipv6 ipv6-address

undo color

Default

The color and endpoint attributes of an SRv6 TE policy are not configured.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

color-value: Specifies the color attribute value, in the range of 0 to 4294967295.

Ipv6-address: Specifies the endpoint IPv6 address.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Different SRv6 TE policies cannot have the same color or endpoint IP address.

Examples

# Configure the color as 20 and endpoint IPv6 address as 1000::1 for SRv6 TE policy srv6policy.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy srv6policy

[Sysname-srv6-te-policy-srv6policy] color 20 end-point ipv6 1000::1

color match dscp (DSCP forward type view)

Use color match dscp to create color-to-DSCP mappings for the SRv6 TE policy group ODN template.

Use undo color match dscp to delete color-to-DSCP mappings from the SRv6 TE policy group ODN template.

Syntax

color color-value match dscp { ipv4 | ipv6 } dscp-value-list

undo color color-value match dscp { ipv4 | ipv6 }

color color-value match dscp { ipv4 | ipv6 } default

undo color color-value match dscp { ipv4 | ipv6 } default

Default

No color-to-DSCP mappings are created for the SRv6 TE policy group ODN template.

Views

DSCP forward type view

Predefined user roles

network-admin

Parameters

color-value: Specifies the color attribute value of an SRv6 TE policy, in the range of 0 to 4294967295.

ipv4: Specifies DSCP values of IPv4 packets.

ipv6: Specifies DSCP values of IPv6 packets.

dscp-value-list: Specifies a space-separated list of up to 32 DSCP value items. Each item specifies a DSCP value in the range of 0 to 63 or a range of DSCP values in the form of dscp-value1 to dscp-value2. The value for the dscp-value2 argument must be greater than or equal to the value for the dscp-value1 argument.

default: Configures a default color-to-DSCP mapping. Packets that do not match any mappings are steered to the SRv6 TE policy associated with the color attribute value in the default mapping. This SRv6 TE policy is used as the default SRv6 TE policy for packets in the specified address family.

Usage guidelines

About this task

Typically, an SRv6 TE policy group created by an ODN template has multiple SRv6 TE policy tunnels with the same endpoint address but different color attribute values. After traffic is steered to the SRv6 TE policy group, the device matches the DSCP value of the traffic with the color-to-DSCP mappings configured by using this command. If a match is found, the device will forward the traffic through the SRv6 TE policy associated with the color attribute value in the matching mapping.

Operating mechanism

After a packet is steered to an SRv6 TE policy group, the device searches for a matching forwarding policy for the packet based on the DSCP value in the packet and the configuration status of the color match dscp and drop-upon-mismatch enable commands. If the device finds a matching forwarding policy by a match criterion and the forwarding policy is valid, it uses the forwarding policy to forward the packet. If no matching forwarding policy is found or the matching forwarding policy is invalid, the device proceeds to use the next match criterion to find a matching forwarding policy. The procedure to find a matching forwarding policy is as follows:

1.     Matches the DSCP value in the packet with the mappings configured by using the color match dscp command for the address family of the packet. If a match is found, the device uses the matching SRv6 TE policy to forward the packet.

2.     Uses the default SRv6 TE policy specified by using the color match dscp default command for the address family of the packet to forward the packet.

3.     Uses the default SRv6 TE policy specified by using the color match dscp default command for the other address family to forward the packet.

4.     Handles the packet according to whether the drop-upon-mismatch enable command is used.

¡     If the drop-upon-mismatch enable command is used, the device discards the packet.

¡     If the drop-upon-mismatch enable command is not used, the device identifies whether the SRv6 TE policy group is configured with color-to-DSCP mappings in the current address family:

-     If yes, the device searches the current address family for a mapping with the smallest DSCP value and a valid SRv6 TE policy. The device will use that SRv6 TE policy to forward the packet.

-     If not, the device turns to other address families (where the SRv6 TE policy group is configured with color-to-DSCP mappings) for a mapping with the smallest DSCP value and a valid SRv6 TE policy. The device will use that SRv6 TE policy to forward the packet.

Restrictions and guidelines

In an SRv6 TE policy group, you can configure DSCP-based traffic steering separately for the IPv4 address family and IPv6 address family. For a specific address family, a DSCP value can be mapped to only one SRv6 TE policy or to only the SRv6 BE mode.

Only one default SRv6 TE policy can be specified for an address family in an SRv6 TE policy group.

Examples

# In an SRv6 TE policy group ODN template, map DSCP value 30 to color value 20 for IPv4 packets, so that IPv4 packets with DSCP value 30 are steered to the SRv6 TE policy with color value 20.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1] forward-type dscp

[Sysname-srv6-te-odn-group-1-dscp] color 20 match dscp ipv4 30

Related commands

drop-upon-mismatch enable

color match dscp (SRv6 TE policy group view)

Use color match dscp to create color-to-DSCP mappings for an SRv6 TE policy group.

Use undo color match dscp to delete color-to-DSCP mappings for the SRv6 TE policy group.

Syntax

color color-value match dscp { ipv4 | ipv6 } dscp-value-list

undo color color-value match dscp { ipv4 | ipv6 } dscp-value-list

color color-value match dscp { ipv4 | ipv6 } default

undo color color-value match dscp { ipv4 | ipv6 } [ default ]

Default

No color-to-DSCP mappings are created for an SRv6 TE policy group.

Views

SRv6 TE policy group view

Predefined user roles

network-admin

Parameters

color-value: Specifies the color attribute value of an SRv6 TE policy, in the range of 0 to 4294967295.

ipv4: Specifies DSCP values of IPv4 packets.

ipv6: Specifies DSCP values of IPv6 packets.

dscp-value-list: Specifies a space-separated list of up to 32 DSCP value items. Each item specifies a DSCP value in the range of 0 to 63 or a range of DSCP values in the form of dscp-value1 to dscp-value2. The value for the dscp-value2 argument must be greater than or equal to the value for the dscp-value1 argument.

default: Configures a default color-to-DSCP mapping. Packets that do not match any mappings are steered to the default SRv6 TE policy (the policy specified in the default mapping).

Usage guidelines

About this task

Typically, an SRv6 TE policy group has multiple SRv6 TE policy tunnels with the same endpoint address but different color attribute values. After traffic is steered to the SRv6 TE policy group, the device matches the DSCP value of the traffic with the color-to-DSCP mappings configured by using this command. If a match is found, the device will forward the traffic through the SRv6 TE policy associated with the color attribute value in the matching mapping.

Operating mechanism

After a packet is steered to an SRv6 TE policy group, the device searches for a matching forwarding policy for the packet based on the DSCP value in the packet and the configuration status of the color match dscp and drop-upon-mismatch enable commands. If the device finds a matching forwarding policy by a match criterion and the forwarding policy is valid, it uses the forwarding policy to forward the packet. If no matching forwarding policy is found or the matching forwarding policy is invalid, the device proceeds to use the next match criterion to find a matching forwarding policy. The procedure to find a matching forwarding policy is as follows:

1.     Matches the DSCP value in the packet with the mappings configured by using the color match dscp command for the address family of the packet. If a match is found, the device uses the matching SRv6 TE policy to forward the packet.

2.     Uses the default SRv6 TE policy specified by using the color match dscp default command for the address family of the packet to forward the packet.

3.     Uses the default SRv6 TE policy specified by using the color match dscp default command for the other address family to forward the packet.

4.     Handles the packet according to whether the drop-upon-mismatch enable command is used.

¡     If the drop-upon-mismatch enable command is used, the device discards the packet.

¡     If the drop-upon-mismatch enable command is not used, the device identifies whether the SRv6 TE policy group is configured with color-to-DSCP mappings in the current address family:

-     If yes, the device searches the current address family for a mapping with the smallest DSCP value and a valid SRv6 TE policy. The device will use that SRv6 TE policy to forward the packet.

-     If not, the device turns to other address families (where the SRv6 TE policy group is configured with color-to-DSCP mappings) for a mapping with the smallest DSCP value and a valid SRv6 TE policy. The device will use that SRv6 TE policy to forward the packet.

Restrictions and guidelines

In an SRv6 TE policy group, you can configure DSCP-based traffic steering separately for the IPv4 address family and IPv6 address family. For a specific address family, a DSCP value can be mapped to only one SRv6 TE policy.

You can map the color values of only valid SRv6 TE policies to DSCP values.

Only one default SRv6 TE policy can be specified for an address family in an SRv6 TE policy group.

Examples

# In SRv6 TE policy group 10, map DSCP value 30 to color value 20 for IPv4 packets, so that IPv4 packets with a matching DSCP value are steered to the associated SRv6 TE policy.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 10

[Sysname-srv6-te-policy-group-10] color 20 match dscp ipv4 30

Related commands

drop-upon-mismatch enable

default match (APN ID-based traffic steering)

Use default match to configure the default forwarding policy for APN ID-based traffic forwarding.

Use undo default match to remove a default forwarding policy setting for APN ID-based traffic forwarding.

Syntax

default match best-effort

default match srv6-policy color color-value

undo default match { best-effort | srv6-policy }

Default

The default forwarding policy is not configured for APN ID-based traffic forwarding.

Views

SRv6 TE policy group view

APN ID forward type view

Predefined user roles

network-admin

Parameters

best-effort: Specifies SRv6 BE mode in the default forwarding policy.

srv6-policy color color-value: Specifies an SRv6 TE policy by its color attribute value in the default forwarding policy. The value range for the color-value argument is 0 to 4294967295.

Usage guidelines

Prerequisites

This command can take effect only when the forward type of the SRv6 TE policy group is APN ID. To configure the forward type, you can use the forward-type apn-id command in SRv6 TE policy group view or SRv6 TE ODN policy group view.

Application scenario

Once service traffic is steered to an SRv6 TE policy group for forwarding, the device matches the APN ID value in IPv6 packets with the APN ID mappings in the SRv6 TE policy group. If a matching mapping is found, the device forwards the traffic through the SRv6 TE policy associated with the color attribute value in the mapping or forwards the traffic in SRv6 BE mode. The default forwarding policy configured by using the default match command can be applied to the following scenarios:

·     When forwarding different types of service flows through the same SRv6 TE policy or through the SRv6 BE mode can meet the service quality requirements, you can use this command to configure the default forwarding policy. The service flows identified by an APN ID will be forwarded through the default forwarding policy.

·     When the device receives a packet that does not carry an APN ID, whose APN ID does not match any mapping configured by using the index apn-id match command, or whose APN ID matches an invalid SRv6 TE policy or matches the SRv6 BE mode that is invalid, the device forwards the packet through the default forwarding policy.

Operating mechanism

In SRv6 BE mode, the device encapsulates a new IPv6 header to packets, with the destination address in the new IPv6 header set to the VPN SID assigned to public or private network routes by the egress node of the SRv6 TE policy group. Then, the device performs an IPv6 routing table lookup to forward the encapsulated packets.

After traffic is steered to an SRv6 TE policy group for forwarding, when the device receives a packet that does not carry an APN ID, whose APN ID does not match any APN ID mapping, or whose APN ID matches an invalid SRv6 TE policy or matches the SRv6 BE mode that is invalid, it forwards the packet as follows:

1.     If the default match command is used to specify a default SRv6 TE policy and the specified default SRv6 TE policy is valid, the device uses the default SRv6 TE policy to forward the packet.

If the default match command is used to configure packet forwarding in SRv6 BE mode and the SRv6 BE mode is valid, the device forwards the packet in SRv6 BE mode.

2.     If the default match command is not executed or the forwarding policy specified in the command is invalid, the device handles the packet depending on whether the drop-upon-mismatch enable command is used.

¡     If the drop-upon-mismatch enable command is used, the device discards the packet.

¡     If the drop-upon-mismatch enable command is not used and the index apn-id match command is used, the device searches for the APN ID-to-forwarding policy mapping with the smallest APN ID that is mapped to a valid SRv6 TE policy or to the SRv6 BE mode that is valid. The device will use the SRv6 TE policy pointed by the mapping to forward the packet or forward the packet in SRv6 BE mode.

Restrictions and guidelines

In an SRv6 TE policy group, you can specify only one SRv6 TE policy in the default forwarding policy.

You can specify both SRv6 TE policy forwarding and SRv6 BE forwarding in the default forwarding policy. The device preferentially uses SRv6 TE policy forwarding.

Examples

# In a manually created SRv6 TE policy group, specify the SRv6 TE policy associated with color attribute value 20 in the default forwarding policy for APN ID-based traffic forwarding.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 10

[Sysname-srv6-te-policy-group-10] forward-type apn-id

[Sysname-srv6-te-policy-group-10] default match srv6-policy color 20

# In an SRv6 TE policy group ODN template, specify the SRv6 TE policy associated with color attribute value 20 in the default forwarding policy for APN ID-based traffic forwarding.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1] forward-type apn-id

[Sysname-srv6-te-odn-group-1-apn-id] default match srv6-policy color 20

Related commands

index apn-id match

drop-upon-mismatch enable

forward-type (SRv6 TE policy group view)

forward-type (SRv6 TE ODN policy group view)

default-color (public instance IPv4/IPv6 address family view)

Use default-color to configure a default color value for public route recursion to an SRv6 TE policy.

Use undo default-color to restore the default.

Syntax

default-color color-value

undo default-color

Default

No default color value is configured.

Views

Public instance IPv4 address family view

Public instance IPv6 address family view

Predefined user roles

network-admin

Parameters

color-value: Default color value in the range of 0 to 4294967295.

Usage guidelines

The local PE uses the default color value to match an SRv6 TE policy for a received public network route if the route does not carry a color extended community and no color is added to the route through a routing policy.

This command applies only to the public network routes learned from a remote PE.

The default color value configured by this command is used only for SRv6 TE policy traffic steering. It does not used in route advertisement.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# In public instance IPv4 address family view, set the default color to 100 for public network route recursion to an SRv6 TE policy.

<Sysname> system-view

[Sysname] ip public-instance

[Sysname-public-instance] address-family ipv4

[Sysname-public-instance-ipv4] default-color 100

default-color (VPN instance IPv4/IPv6 address family view)

Use default-color to configure a default color value for L3VPN route recursion to an SRv6 TE policy.

Use undo default-color to restore the default.

Syntax

default-color color-value [ evpn ]

undo default-color [ evpn ]

Default

No default color value is configured.

Views

VPN instance IPv4 address family view

VPN instance IPv6 address family view

Predefined user roles

network-admin

Parameters

color-value: Default color value in the range of 0 to 4294967295.

evpn: Specifies the EVPN L3VPN service. If you do not specify this keyword, the default color applies to MPLS L3VPN route recursion to an SRv6 TE policy.

Usage guidelines

The local PE uses the default color value to match an SRv6 TE policy for a received VPNv4, VPNv6, or EVPN IP prefix route if the route does not carry a color extended community and no color is added to the route through a routing policy.

This command applies only to the VPN routes learned from a remote PE.

The default color value configured by this command is used only for SRv6 TE policy traffic steering. It does not used in route advertisement.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# In IPv4 address family view for VPN instance vpn1, set the default color to 100 for EVPN L3VPN route recursion to an SRv6 TE policy.

<Sysname> system-view

[Sysname] ip vpn-instance vpn1

[Sysname-vpn-instance-vpn1] address-family ipv4

[Sysname-vpn-ipv4-vpn1] default-color 100 evpn

description

Use description to configure the description of the SRv6 TE policy group ODN template.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The description of the SRv6 TE policy group ODN template is not configured.

Views

SRv6 TE ODN policy group view

Predefined user roles

network-admin

Parameters

text: Specifies the description of the SRv6 TE policy group ODN template, a case-sensitive string of 1 to 242 characters.

Usage guidelines

To facilitate management, use this command to configure the description of the SRv6 TE policy group ODN template.

Examples

# Configure the description of the SRv6 TE policy group ODN template.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1] description abc

display bgp mirror remote-sid

Use display bgp mirror remote-sid to display remote SRv6 SIDs protected by mirror SIDs.

Syntax

display bgp [ instance instance-name ] mirror remote-sid [ end-dt4 | end-dt46 | end-dt6 ] [ sid ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a BGP instance, this command displays information about the default instance.

end-dt4: Specifies remote SRv6 SIDs of the End.DT4 type.

end-dt46: Specifies remote SRv6 SIDs of the End.DT46 type.

end-dt6: Specifies remote SRv6 SIDs of the End.DT6 type.

sid: Specifies a remote SRv6 SID.

Usage guidelines

This command can display information about remote SRv6 SIDs protected by mirror SIDs on MPLS L3VPN over SRv6 or EVPN L3VPN over SRv6 networks.

If you do not specify any parameters, this command displays all remote SRv6 SIDs protected by mirror SIDs.

Examples

# Display remote SRv6 SIDs protected by mirror SIDs on L3VPN over SRv6 networks.

<Sysname> display bgp mirror remote-sid

 

Remote SID: 3001::1:0:0

Remote SID type: End.DT4

Mirror locator: 3001::1/64

VPN instance name: vrf1

 

Remote SID: 3001::1:0:1

Remote SID type: End.DT6

Mirror locator: 3001::1/64

VPN instance name: vrf2

 

Remote SID: 1111:2222:3333:4444::1

Remote SID type: End.DT6

Mirror locator: 1111:2222:3333:4444:5555:6666:7777:8888/64

VPN instance name: vrf1

Table 1 Command output

Field

Description

Remote SID

Remote SRv6 SID.

Remote SID type

Type of the remote SRv6 SID:

·     End.DT4.

·     End.DT6.

·     End.DT46.

Mirror locator

IPv6 prefix and prefix length of the locator for the remote SRv6 SID.

VPN instance name

Name of the VPN instance associated with the remote SRv6 SID.

Remaining retention time

Remaining time before the mapping of the remote SRv6 SID and the VPN instance is deleted.

display bgp routing-table ipv6 sr-policy

Use display bgp routing-table ipv6 sr-policy to display route information of a BGP IPv6 SR policy.

Syntax

display bgp [ instance instance-name ] routing-table ipv6 sr-policy [ sr-policy-prefix [ advertise-info ]

display bgp [ instance instance-name ] routing-table ipv6 sr-policy [ peer ipv6-address { advertised-routes | received-routes } ] [ sr-policy-prefix [ advertise-info ]

display bgp [ instance instance-name ] routing-table ipv6 sr-policy [ peer ipv6-address { advertised-routes | received-routes } ] [ statistics | color color-value | end-point ipv6 ipv6-address ] *

display bgp [ instance instance-name ] routing-table ipv6 sr-policy  color color-value end-point ipv6 ipv6-address

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a BGP instance, this command displays information about the default instance.

sr-policy-prefix: Specifies a BGP IPv6 SR policy route prefix, which is a case-insensitive string of 1 to 512 characters in the format of BGP IPv6 SR policy route/prefix length.

color color-value: Specifies the color attribute value of a BGP IPv6 SR policy, in the range of 1 to 4294967295.

end-point ipv6 ipv6-address: Specifies the endpoint IPv6 address of a BGP IPv6 SR policy.

advertise-info: Displays advertisement information about BGP IPv6 SR policy routes.

peer ipv6-address: Specifies a peer by its IPv6 address.

advertised-routes: Displays detailed information about the BGP IPv6 SR policy routes advertised to the specified peer.

received-routes: Displays detailed information about the BGP IPv6 SR policy routes received from the specified peer.

statistics: Displays route statistics.

Usage guidelines

If you do not specify any parameters, this command displays brief information about all BGP IPv6 SR policy routes.

Examples

# Display brief information about all BGP IPv6 SR policy routes.

<Sysname> display bgp routing-table ipv6 sr-policy

 

 Total number of routes: 1

 

 BGP local router ID is 2.2.2.2

 Status codes: * - valid, > - best, d - dampened, h - history

               s - suppressed, S - stale, i - internal, e - external

               a – additional-path

       Origin: i - IGP, e - EGP, ? - incomplete

 

>i Network : [46][46][8::8]/192

   NextHop : 1::2                                  LocPrf    : 100

   PrefVal : 0                                     MED       : 0

   Path/Ogn: i

Table 2 Command output

Field

Description

Status codes

Status codes of the route.

Origin

Origin of the route:

·     i – IGP—Originated in the AS.

·     e – EGP—Learned through an EGP.

·     ? – incomplete—Unknown origin.

Network

BGP IPv6 SR policy route, comprised of the following elements:

·     SRv6 TE policy candidate path preference.

·     SRv6 TE policy color attribute value.

·     Endpoint IPv6 address.

NextHop

Next hop IP address.

LocPrf

Local preference value.

PrefVal

Preferred value of the route.

MED

Multi-Exit Discriminator attribute value.

Path/Ogn

AS_PATH and ORIGIN attributes of the route:

·     AS_PATH—Records the ASs the route has passed.

·     ORIGIN—Identifies the origin of the route.

# Display detailed information about BGP IPv6 SR policy route [46][46][8::8]/192.

<Sysname> display bgp routing-table ipv6 sr-policy [46][46][8::8]/192

 

BGP local router ID: 5.5.5.1

Local AS number: 100

 

Paths: 1 available, 1 best

 

 BGP routing table information of [46][46][8::8]/192

 Imported route.

 Original nexthop: ::

 Output interface: p1

 Route age       : 19h45m02s

 OutLabel        : NULL

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : (null)

 Origin          : igp

 Attribute value : MED 0, localpref 100, pref-val 32768

 State           : valid, local, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 Tunnel encapsulation info:

    Type: 15 (SR policy)

     Policy name: p1

     Binding SID: 2::6

     Preference: 100

     Path: 1

      Weight: 1

      SIDs: {2::2}

Table 3 Command output

Field

Description

Paths

Route information:

·     available—Number of valid routes.

·     best—Number of optimal routes.

BGP routing table information of [46][46][8::8]/192

Information of the BGP IPv6 SR policy route [46][46][8::8]/192, where:

·     [46] is the SRv6 TE policy candidate path preference

·     [46] is the SRv6 TE policy color attribute value.

·     [8::8] is the endpoint IPv6 address.

From

IP address of the BGP peer that advertised the route.

Rely Nexthop

Recursive nexthop IP address. If no next hop is found by route recursion, this field displays not resolved.

Original nexthop

Original nexthop IP address. If the route was obtained from a BGP update message, the original next hop is the nexthop IP address in the message.

Route age

Time elapsed since the last update for the route.

OutLabel

Outgoing label of the route.

RxPathID

Received Add-Path ID of the route.

TxPathID

Advertised Add-Path ID of the route.

AS-path

AS_PATH attribute of the route.

Origin

Origin of the route:

·     igp—Originated in the AS.

·     egp—Learned through an EGP.

·     incomplete—Unknown origin.

Attribute value

BGP path attributes:

·     MED—MED value.

·     localprefLocal preference value.

·     pref-val—Preferred value.

·     pre—Protocol preference.

State

Current state of the route. Options include:

·     valid—Valid route.

·     internal—Internal route.

·     external—External route.

·     local—Locally generated route.

·     synchronize—Synchronized route.

·     best—Optimal route.

·     delay—Delayed route. The route will be delayed for optimal route selection. This value is available only in detailed information of the route.

·     not preferred for reason—Reason why the route is not selected as the optimal route. For more information, see Table 4.

IP precedence

IP precedence of the route, in the range of 0 to 7. N/A indicates that the route does not support this field.

QoS local ID

QoS local ID of the route, in the range of 1 to 4095. N/A indicates that the route does not support this field.

Traffic index

Traffic index in the range of 1 to 64. N/A indicates that the route does not support this field.

Type: 15 (SR Policy)

The tunnel encryption type is 15, which represents SR policy.

Preference

Candidate path preference.

Binding SID

BSID value.

Path

Candidate path.

Weight

Weight of the SID list.

SIDs

List of SIDs. A G-SID is displayed in the format of {sid-value, coc32, prefix-length}, where sid-value is the SID value and prefix-length is the common prefix length.

Table 4 Reason why the route is not selected as the optimal route

Reason

Description

preferred-value

Routes with larger preferred values exist.

local-preference

Routes with larger local preference values exist.

as-path

Routes with smaller AS_PATH attribute values exist.

origin

There are routes whose origin has a higher priority. The route origins are IGP, EGP, and INCOMPLETE in descending order of priority.

med

Routes with smaller MED values exist.

remote-route

There are routes whose remote-route attribute has a higher priority.

BGP selects the optimal route from remote routes in this order:

·     Route learned from an EBGP peer.

·     Route learned from a confederation EBGP peer.

·     Route learned from a confederation IBGP peer.

·     Route learned from an IBGP peer.

igp-cost

Routes with smaller IGP metrics exist.

relydepth

Routes with smaller recursion depth values exist.

rfc5004

A route received from an EBGP peer is the current optimal route. BGP does not change the optimal route when it receives routes from other EBGP peers.

router-id

Routes with smaller router IDs exist.

If one of the routes is advertised by a route reflector, BGP compares the ORIGINATOR_ID of the route with the router IDs of other routes. Then, BGP selects the route with the smallest ID as the optimal route.

cluster-list

Routes with smaller CLUSTER_LIST attribute values exist.

peer-address

Routes advertised by peers with lower IP addresses exist.

received

Earlier learned routes exist.

# Displays advertisement information about the BGP IPv6 SR policy route [46][46][8::8]/192.

<Sysname> display bgp routing-table ipv6 sr-policy [46][46][8::8]/192 advertise-info

 

 

 BGP local router ID: 2.2.2.2

 Local AS number: 1

 

 Paths:   1 best

 

 BGP routing table information of [46][46][8::8]/192(TxPathID:0):

 Advertised to peers (2 in total):

    1::1

    3::3

Table 5 Command output

Field

Description

Paths

Number of optimal paths to reach the destination network.

BGP routing table information of [46][46][8::8]/192(TxPathID:0)

Advertisement information about the BGP IPv6 SR policy route [46][46][8::8]/192. TxPathID represents the advertised Add-Path ID of the route.

Advertised to peers (2 in total)

Indicates the peers to which the route has been advertised. The number in the parentheses indicates the total number of the peers.

# Display statistics about the BGP IPv6 SR policy routes advertised to peer 2::2.

<Sysname> display bgp routing-table ipv6 sr-policy peer 2::2 advertised-routes statistics

 

 Advertised routes total: 2

# Display statistics about the BGP IPv6 SR policy routes received from peer 2::2.

<Sysname> display bgp routing-table ipv6 sr-policy peer 2::2 received-routes statistics

 

 Received routes total: 1

Table 6 Command output

Field

Description

Advertised routes total

Total number of routes advertised to the specified peer.

Received routes total

Total number of routes received from the specified peer.

# Display statistics about BGP IPv6 SR policy routes.

<Sysname> display bgp routing-table ipv6 sr-policy statistics

 

 Total number of routes: 3

display segment-routing ipv6 te bfd

Use display segment-routing ipv6 te bfd to display BFD information for SRv6 TE policies.

Syntax

display segment-routing ipv6 te bfd [ down | policy { { color color-value | end-point ipv6 ipv6-address } * | name policy-name } | up ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

down: Displays BFD information for SRv6 TE policies in down state.

policy: Displays BFD information for the specified SRv6 TE policy.

color color-value: Specifies the color attribute value of an SRv6 TE policy, in the range of 0 to 4294967295.

end-point ipv6 ipv6-address: Specifies the IPv6 address of the endpoint of an SRv6 TE policy.

name policy-name: Specifies the name of an SRv6 TE policy, a case-sensitive string of 1 to 59 characters.

up: Displays BFD information for SRv6 TE policies in up state.

Usage guidelines

If you do not specify any parameters, this command displays BFD information for all SRv6 TE policies.

Examples

# Display BFD information for all SRv6 TE policies.

<Sysname> display segment-routing ipv6 te policy bfd

 Color: 10

 Endpoint: 4::4

 Policy name: p1

 State: Up

   Nid: 2149580801

   BFD type: ECHO

   Source IPv6: 1::1

   State: Up

   Timer: 37

   VPN index: 1

   Template name: abc

Table 7 Command output

Field

Description

Color

Color attribute value of an SRv6 TE policy.

Endpoint

Endpoint IP address of the SRv6 TE policy.

Policy name

Name of the SRv6 TE policy.

State

SBFD session state:

·     Up

·     Down

·     Delete

Nid

Forwarding entry index for an SID list.

BFD type

The current software version supports only the BFD echo mode.

Source IPv6

Source IPv6 address of the BFD session.

Timer

BFD session timer, in seconds.

VPN index

Index of the VPN instance.

Template name

Name of the echo mode BFD template.

display segment-routing ipv6 te forwarding

Use display segment-routing ipv6 te forwarding to display SRv6 TE forwarding information.

Syntax

display segment-routing ipv6 te forwarding [ policy { name policy-name | { color color-value | end-point ipv6 ipv6-address } * } ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

policy: Displays forwarding information of the specified SRv6 TE policy. If you do not specify an SRv6 TE policy, this command displays forwarding information of all SRv6 TE policies.

name policy-name: Specifies the name of an SRv6 TE policy, a case-sensitive string of 1 to 59 characters.

color color-value: Specifies the color of an SRv6 TE policy, in the range of 0 to 4294967295.

end-point ipv6 ip-address: Specifies the endpoint IPv6 address of an SRv6 TE policy.

verbose: Displays detailed SRv6 TE forwarding information. If you do not specify this keyword, the command displays brief SRv6 TE forwarding information.

Examples

# Display brief information about all SRv6 TE policies.

<Sysname> display segment-routing ipv6 te forwarding

Total forwarding entries: 1

 

Policy name/ID: p1/0

 Binding SID: 8000::1

 Forwarding index: 2150629377

 Main path:

   Seglist ID: 1

     Seglist forwarding index: 2149580801

     Weight: 1

     Outgoing forwarding index: 2148532225

       Interface: GE1/0/1

       Nexthop: FE80::6CCE:CBFF:FE91:206

 Backup path:

   Seglist ID: 2

     Seglist forwarding index: 2149580802

       Weight: 1

       Outgoing forwarding index: 2148532226

         Interface: GE1/0/2

         Nexthop: FE80::6CCE:CBFF:FE91:207

# Display detailed information about all SRv6 TE policies.

<Sysname> display segment-routing ipv6 te forwarding verbose

 

Total forwarding entries: 1

 

Policy name/ID: p1/0

 Binding SID: 8000::1

 Forwarding index: 2150629377

 Inbound statistics:

   Total octets: 525

   Total packets: 1

   Erroneous packets: 0

   Dropped packets: 0

Outbound statistics:

   Total octets: 750

   Total packets: 1

   Erroneous packets: 0

   Dropped packets: 0

Main path:

   Seglist ID: 1

     Seglist forwarding index: 2149580801

     Weight: 1

     Outbound statistics:

       Total octets: 750

       Total packets: 1

       Erroneous packets: 0

       Dropped packets: 0

     Outgoing forwarding index: 2148532225

       Interface: GE1/0/1

       Nexthop: FE80::6CCE:CBFF:FE91:206

         Path ID: 1

         SID list: {44::44, 45::45}

       Outbound statistics:

         Total octets: 750

         Total packets: 1

         Erroneous packets: 0

         Dropped packets: 0

 

Backup path:

   Seglist ID: 2

     Seglist forwarding index: 2149580802

     Weight: 1

       Outgoing forwarding index: 2148532226

         Interface: GE1/0/2

         Nexthop: FE80::6CCE:CBFF:FE91:207

           Path ID: 2

           SID list: {44::44, 45::47}

Table 8 Command output

Field

Description

Total forwarding entries

Total number of SRv6 TE forwarding entries.

Policy name/ID

Name/ID of an SRv6 TE policy.

Binding SID

SID value of the ingress node.

Forwarding index

Index of the SRv6 TE policy forwarding entry.

Inbound statistics

Statistics on inbound traffic (the traffic received by the BSID).

Total octets

Total number of octets forwarded.

Total packets

Total number of packets forwarded.

Erroneous packets

Number of erroneous packets.

Dropped packets

Number of dropped packets.

Outbound statistics

Statistics on outbound traffic.

Main path

Main path for traffic forwarding.

Backup path

Backup path for traffic forwarding.

Seglist ID

ID of the SID list.

Seglist forwarding index

Forwarding entry index of the SID list.

Weight

Weight of the SID list.

Outgoing forwarding index

The nexthop forwarding entry index of the first address in the SID list.

Interface

Brief name of the outgoing interface.

Nexthop

Next hop IPv6 address.

Path ID

ID of the SRv6 TE policy candidate path.

SID list

List of SIDs.

SID

SID of the node, which is an IPv6 address.

Common prefix length

Common prefix length of the next G-SID. If the next SID is a non-compressed SID, the common prefix length is 0.

G-SID length

Length of the next G-SID. If the next SID is a non-compressed SID, the SID length is 128.

display segment-routing ipv6 te policy

Use display segment-routing ipv6 te policy to display SRv6 TE policy information.

Syntax

display segment-routing ipv6 te policy [ name policy-name | down | up | { color color-value | end-point ipv6 ipv6-address } * ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

name policy-name: Specifies an SRv6 TE policy by its name, a case-sensitive string of 1 to 59 characters.

down: Specifies the SRv6 TE policies in down state.

up: Specifies the SRv6 TE policies in up state.

color color-value: Specifies the color of an SRv6 TE policy, in the range of 0 to 4294967295.

end-point ipv6 ipv6-address: Specifies the endpoint IPv6 address of an SRv6 TE policy.

Usage guidelines

If you do not specify any parameters, this command displays information about all SRv6 TE policies.

Examples

# Display information about all SRv6 TE policies.

<Sysname> display segment-routing ipv6 te policy

 

Name/ID: p1/0

 Color: 10

 Endpoint: 1000::1

 Name from BGP:

 BSID:

  Mode: Dynamic              Type: Type_2              Request state: Succeeded

  Current BSID: 8000::1      Explicit BSID: -          Dynamic BSID: 8000::1

 Reference counts: 3

 Flags: A/BS/NC

 Status: Up

 AdminStatus: Not configured

 Up time: 2020-03-09 16:09:40

 Down time: 2020-03-09 16:09:13

 Hot backup: Not configured

 Statistics: Not configured

  Statistics by service class: Not configured

 Path verification: Not configured

 Drop-upon-invalid: Disabled

 BFD trigger path-down: Disabled

 SBFD: Enabled

  Encapsulation mode: -

  Remote: 1000

  SBFD template name: abc

  SBFD backup-template name: -

  OAM SID: -

  Reverse path type: None

 BFD Echo: Not configured

  Encapsulation mode: -

  Source IPv6 address: 1::1

  Echo BFD template name: -

  Echo BFD backup template name: -

  OAM SID: -

  Reverse path type: Reverse BSID

 Forwarding index: 2150629377

 Association ID: 0

 Service-class: -

 Rate-limit: -

 Encapsulation mode: -

 Flapping suppression Remaining interval: -

 Expect bandwidth(kbps): 20000

 Candidate paths state: Configured

 Candidate paths statistics:

  CLI paths: 1          BGP paths: 0          PCEP paths: 0

 Candidate paths:

  Preference : 20

   CpathName:

   Instance ID: 0          ASN: 0          Node address: 0.0.0.0

   Peer address:  ::

   Optimal: Y              Flags: V/A

   Explicit SID list:

    ID: 1                     Name: Sl1

    Weight: 1                 Forwarding index: 2149580801

    State: Up                 State(SBFD): -

    Verification State: -

    Path MTU: 1500            Path MTU Reserved: 72

    SID list flags: None

    Local BSID: -

    Reverse BSID: 100:1:2:3::10

Table 9 Command output

Field

Description

Name/ID

SRv6 TE policy name/ID.

Color

Color attribute of the SRv6 TE policy.

Endpoint

Endpoint IPv6 address of the SRv6 TE policy. If the endpoint is not configured, this field displays None.

Name from BGP

Name of the SRv6 TE policy obtained from BGP. If no SRv6 TE policy was obtained from BGP, this field is empty.

BSID

SID value of the ingress node.

Mode

BSID configuration mode:

·     Explicit—Manually configured.

·     Dynamic—Dynamically requested.

·     None—Not configured.

Type

BSID type:

·     None—Not configured.

·     Type_2—IPv6 address.

Request state

BSID request state:

·     Conflicted.

·     Failed.

·     Succeeded.

Explicit BSID

Manually configured BSID.

Dynamic BSID

Dynamically requested BSID.

Reference counts

Number of times that the SRv6 TE policy has been referenced.

Flags

SRv6 TE policy flags:

·     A—Active SRv6 TE policy.

·     C—Optimal SRv6 TE policy.

·     N—In optimal SRv6 TE policy selection progress.

·     BA—Requesting BSID.

·     BS—Optimal BSID.

·     D—Deleted SRv6 TE policy.

·     CF—Conflicted with an existing BSID.

·     NC—Manually configured SRv6 TE policy.

·     NB—SRv6 TE policy obtained from a BGP route.

Status

SRv6 TE policy state:

·     Up—A minimum of one SID list in the candidate paths of the SRv6 TE policy is up.

·     Down—No SID list in the candidate paths of the SRv6 TE policy is up.

AdminStatus

Whether the shutdown command has been configured for the SRv6 TE policy:

·     Configured—The policy is administratively down.

·     Not configured—The policy is administratively up.

Up time

Date and time when the SRv6 TE policy became up.

Down time

Date and time when the SRv6 TE policy became down.

Hot backup

Hot standby status for the SRv6 TE policy:

·     Enabled.

·     Disabled.

·     Not configured.

Statistics

Traffic statistics status for the SRv6 TE policy:

·     Disabled.

·     Enabled.

·     Not configured.

Statistics by service class

Service class based traffic statistics status for the SRv6 TE policy:

·     Enabled.

·     Not configured.

Path verification

Status of the path verification feature:

·     Enabled—Verifies the validity of all SIDs in the segment list.

·     Specified SIDs—Verifies the validity of the specified SIDs in the segment list.

·     Disabled.

·     Not configured.

Drop-upon-invalid

Drops traffic when the SRv6 TE policy becomes invalid:

·     Disabled.

·     Enabled.

BFD trigger path-down

Places the SRv6 TE policy to down state when the BFD session for the SRv6 TE policy goes down:

·     Disabled.

·     Enabled.

SBFD

SBFD status for the SRv6 TE policy:

·     Enabled.

·     Disabled.

·     Not configured.

Encapsulation mode

Encapsulation mode for BFD or SBFD packets:

·     Encaps—Normal encapsulation mode.

·     Insert—Insertion encapsulation mode.

If the encapsulation mode for BFD or SBFD packets is not configured, this field displays a hyphen (-).

Remote

Remote discriminator of the SBFD session.

SBFD template name

Name of the SBFD template for the main path.

SBFD backup-template name

Name of the SBFD template for the backup SID list.

OAM SID

OAM SID added to SBFD packets or Echo BFD packets.

Reverse path type

Reverse path type for SBFD packets:

·     Reverse BSID—Uses the SID list associated with the reverse BSID as the reverse path for SBFD packets.

·     None—The reverse path for SBFD packets is not configured. The SBFD packets are forwarded back to the source node through IP forwarding.

BFD Echo

Echo packet mode BFD status for the SRv6 TE policy:

·     Enabled.

·     Disabled.

·     Not configured.

Source IPv6 address

Source IPv6 address of the echo packet mode BFD session.

Echo template name

Name of the echo BFD template.

Echo backup-template name

Name of the echo BFD template for the backup SID list.

Reverse path type

Reverse path type for BFD echo packets:

·     Reverse BSID—Uses the SID list associated with the reverse BSID as the reverse path for BFD packets.

·     None—The reverse path for BFD packets is not configured.

Forwarding index

Forwarding entry index of the SRv6 TE policy.

Association ID

Association ID for the candidate path of the SRv6 TE policy. An association ID can identify an SRv6 TE policy.

Service-class

Service class value of the SRv6 TE policy. If the default service class is used, this field displays a hyphen (-).

Rate-limit

Rate limit for the SRv6 TE policy. If no rate limit is configured, this field displays a hyphen (-).

Encapsulation mode

Encapsulation mode for the SRv6 TE policy:

·     Encaps.

·     Encaps Reduced.

·     Encaps include local End.X.

·     Insert.

·     Insert Reduced.

·     Insert include local End.X.

If the encapsulation mode is not configured for the SRv6 TE policy, this field displays a hyphen (-).

Flapping suppression Remaining interval

Remaining interval for flapping suppression.

Expect bandwidth(kbps)

Expected bandwidth of the SRv6 TE policy, in kbps. If no expected bandwidth is configured, this field displays a hyphen (-).

Candidate paths state

Whether candidate paths are configured:

·     Configured.

·     Not configured.

Candidate paths statistics

Candidate paths statistics by path origin.

CLI paths

Number of manually configured candidate paths.

BGP paths

Number of candidate paths obtained from BGP SRv6 Policy routes.

PCEP paths

This field is not supported in the current software version.

Number of candidate paths obtained from PCEP.

Candidate paths

SRv6 TE policy candidate path information.

Preference

SRv6 TE policy candidate path preference.

CPathName

Name of the candidate path obtained from a BGP route. If no path name was obtained, this field is empty.

Instance ID

BGP instance ID. A value of 0 indicates that the device does not obtain SRv6 TE policy information from BGP peers.

ASN

AS number. A value of 0 indicates that the device does not obtain SRv6 TE policy information from BGP peers.

Node address

BGP node address.

For an SRv6 TE policy obtained from a BGP peer, the node address is the Router ID of the BGP peer.

For an SRv6 TE policy obtained in other methods, the node address is 0.0.0.0.

Peer address

BGP peer address.

For a manually configured SRv6 TE policy, the peer address is ::.

For an SRv6 TE policy obtained from a BGP peer, the peer address is the address of the BGP peer.

Optimal

Whether the path is the optimal path:

·     Y—Yes.

·     N—No.

Flags

Flags of the SRv6 TE policy candidate path:

·     V—Valid candidate path.

·     A—Active candidate path.

·     None—No candidate path.

Explicit SID list

Explicit SID list in the candidate path of the SRv6 TE policy.

ID

SID list ID.

Name

SID list name.

Weight

Weight of the SID list in the candidate path.

Forwarding index

Forwarding entry index of the SID list.

State

SID list state:

·     UP—The first hop on the forwarding path of the SID list is available.

·     DOWN—The first hop on the forwarding path of the SID list is not available.

State(type)

SBFD or echo BFD session state for the SID list:

·     Up.

·     Down.

·     Path Inactive—The candidate path contains no available SID list.

·     Unknown—The SBFD or echo BFD result is unknown.

If SBFD or echo BFD is not configured, this field displays a hyphen (-).

Verification state

Verification result of the SID list:

·     Down—The verification fails.

·     Up—The verification succeeds.

If verification is not configured, this field displays a hyphen (-).

Path MTU

Path MTU.

Path MTU Reserved

Reserved path MTU.

SID list flags

SID list flags of the SRv6 TE policy:

·     O—The number of SIDs in the SID list exceeds the maximum depth for the SID label stack on the device.

·     None—Stateless.

Local BSID

 

Reverse BSID

 

display segment-routing ipv6 te policy last-down-reason

Use display segment-routing ipv6 te policy last-down-reason to display information about the most recent down event for SRv6 TE policies.

Syntax

display segment-routing ipv6 te policy last-down-reason [ binding-sid bsid | color color-value endpoint ipv6 ipv6-address | policy-name policy-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

binding-sid bsid: Specifies an SRv6 TE policy by its BSID, which is an IPv6 address.

color color-value endpoint ipv6 ipv6-address: Specifies an SRv6 TE policy by its color attribute value and endpoint IPv6 address. The value range for the color attribute value is 0 to 4294967295.

policy-name policy-name: Specifies an SRv6 TE policy by its name, a case-sensitive string of 1 to 59 characters.

Usage guidelines

If you do not specify any parameters, this command displays information about the most recent down event for all SRv6 TE policies.

Examples

# Display information about the most recent down event for SRv6 TE policy abc.

<Sysname> display segment-routing ipv6 te policy last-down-reason policy-name abc

Name/ID: p1/1

  Color: 10

  Endpoint: 4::4

  BSID: 5000::2

  Up time: 2020-06-23 15:42:14

  Down time: 2020-06-23 15:41:15

  Down reason: Candidate path invalid segment list

  Candidate paths:

    Preference : 10

      CPathName:

      Explicit SID list:

        ID: 1                     Name: s1

        Up time: 2020-06-23 15:42:14

        Down time: 2020-06-23 15:41:15

        Down reason: No SRv6 SID Out

Table 10 Command output

Field

Description

Name/ID

Name/ID of an SRv6 TE policy.

Color

Color attribute value of the SRv6 TE policy. If the color attribute is not configured, this field displays 0.

Endpoint

Endpoint address of the SRv6 TE policy. If the endpoint address is not configured, this field displays None.

BSID

SID value of the ingress node.

Up time

Time when the SRv6 TE policy came up.

Down time

Time when the SRv6 TE policy went down.

Down reason

Reason for the down event of the SRv6 TE policy:

·     Admin down—The SRv6 TE policy has been shut down by the shutdown command.

·     No Endpoint.

·     No candidate path.

·     No valid candidate path.

·     Candidate path invalid segment list—All SID lists in the candidate path are down.

·     Policy unconfigured—The SRv6 TE policy is being deleted.

·     Internal error.

Candidate paths

Candidate path information of the SRv6 TE policy.

Preference

Preference of the candidate path.

CPathName

Name of the candidate path. If no candidate path name is obtained from BGP, this field is empty.

Explicit SID List

SID list in the candidate path of the SRv6 TE policy.

ID

SID list index.

Name

SID list name.

Up time

Time when the SID list came up.

Down time

Time when the SID list went down.

Down reason

Reason for the down event of the SID list:

·     No SID list—The SID list does not exist.

·     No SRv6 SID Out—The first SID in the SID list has no outgoing interface.

·     Internal error.

display segment-routing ipv6 te policy statistics

Use display segment-routing ipv6 te policy statistics to display SRv6 TE policy statistics.

Syntax

display segment-routing ipv6 te policy statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display SRv6 TE policy statistics.

<Sysname> display segment-routing ipv6 te policy statistics

 

         IPv6 TE Policy Database Statistics

Total policies: 1 (1 up 0 down)

    Configured: 1 (1 up 0 down)

    From BGP: 0 (Added 0 deleted 0   0 up 0 down)

Total candidate paths: 1

    Configured: 1

    From BGP: 0 (Added 0 deleted 0)

Total SID lists: 1 (1 up 0 down)

    Configured: 1 (1 up 0 down)

    From BGP: 0 (0 up 0 down)

Table 11 Command output

Field

Description

Total policies

Total number of SRv6 TE policies:

·     up—Number of SRv6 TE policies in up state.

·     down—Number of SRv6 TE policies in down state.

Configured

Number of manually configured SR policies.

·     up—Number of SRv6 TE policies in up state.

·     down—Number of SRv6 TE policies in down state.

From BGP

Number of SR policies learned through BGP.

·     Added—Number of BGP-added SRv6 TE policies.

·     deleted—Number of BGP-deleted SRv6 TE policies.

·     up—Number of SRv6 TE policies in up state.

·     down—Number of SRv6 TE policies in down state.

display segment-routing ipv6 te policy status

Use display segment-routing ipv6 te policy status to display status information about SRv6 TE policies.

Syntax

display segment-routing ipv6 te policy status [ policy-name policy-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

policy-name policy-name: Specifies an SRv6 TE policy by its name, a case-sensitive string of 1 to 59 characters. If you do not specify this option, the command displays status information about all SRv6 TE policies.

Usage guidelines

The device executes the check items for an SRv6 TE policy one by one.

If the result for a check item is Passed, it means that the SRv6 TE policy passed the check for this item and the next item check starts.

If the result for a check item is Failed, the subsequent items will not be checked and the check result for those items is displayed as a hyphen (-).

Examples

# Display status information about all SRv6 TE policies.

<Sysname> display segment-routing ipv6 te policy status

Name/ID: p1/0

Status: Up

  Check admin status                  : Passed

  Check for endpoint & color          : Passed

  Check for segment list              : Passed

  Check valid candidate paths         : Passed

  Check for BSIDs                     : Passed

Table 12 Command output

Field

Description

Name/ID

Name/ID of an SRv6 TE policy.

Status

State of the SRv6 TE policy:

·     Up.

·     Down.

Check admin status

Check the administrative status of the SRv6 TE policy:

·     Passed—The SRv6 TE policy is administratively up.

·     Failed—The SRv6 TE policy is administratively shut down by using the shutdown command.

Check for endpoint & color

Check for the endpoint and color configuration for the SRv6 TE policy:

·     Passed—The endpoint address and color are configured.

·     Failed—The endpoint address or color is not configured.

Check for segment lists

Check for valid SID lists in the candidate paths of the SRv6 TE policy:

·     Passed—A valid SID list exists.

·     Failed—No valid SID list exists.

Check valid candidate paths

Check for an up candidate path in the SRv6 TE policy:

·     Passed—An up candidate path exists.

·     Failed—No up candidate path exists.

Check for BSIDs

Check for the binding SID configuration for the SRv6 TE policy:

·     Passed—A BSID is specified for the SRv6 TE policy.

·     Failed—No BSID is specified for the SRv6 TE policy.

display segment-routing ipv6 te policy-group

Use display segment-routing ipv6 te policy-group to display information about SRv6 TE policy groups.

Syntax

display segment-routing ipv6 te policy-group [ odn ] [ group-id | { color color-value | end-point ipv6 ipv6-address } * ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

odn: Specifies SRv6 TE policy groups automatically created by ODN. If you do not specify this keyword, the command displays information about both SRv6 TE policy groups automatically created by ODN and statically created SRv6 TE policy groups.

group-id: Specifies an SRv6 TE policy group by its ID in the range of 1 to 4294967295. If you do not specify this argument, the command displays information about all SRv6 TE policy groups.

color color-value: Specifies an SRv6 TE policy group by its color attribute value in the range of 0 to 4294967295.

end-point ipv6 ipv6-address: Specifies an SRv6 TE policy group by its endpoint IPv6 address.

verbose: Displays detailed SRv6 TE policy information. If you do not specify this keyword, the command displays brief SRv6 TE policy information.

Examples

# Display brief information about all SRv6 TE policy groups.

<Sysname> display segment-routing ipv6 te policy-group

Total number of policy groups: 1

 

GroupID      GroupState    UPMappings     TotalMappings

10           Up            26             26

# Display detailed information about all SRv6 TE policy groups.

<Sysname> display segment-routing ipv6 te policy-group verbose

Total number of policy groups: 2

 

GroupID: 20                     GroupState: Up

GroupNID: 2151677953            Referenced: 1

Flags: A                        Group type: Static DSCP

Group color: -

StateChangeTime: 2024-05-27 10:30:14

Endpoint: 4::4

BSID:

  Explicit BSID: -                       Request state: -

Best-effort NID: 0

Drop upon mismatch: Disabled

UP/Total Mappings: 0/0

IPv4 Best-effort: Not configured  IPv6 Best-effort: Not configured

 

GroupID: 40                          GroupState: Up

GroupNID: 2151677953                 Referenced: 1

Flags: A                             Group type: Dynamic APN-ID

Group color: 100

StateChangeTime: 2022-10-18 09:57:43

Endpoint: 444::444

UP/Total Mappings: 26/26

  Index     APN-ID/APN-INSTANCE       Color/Best-effort

  10        test1                     100

  15        test2                     200

  20        test3                     best-effort

Table 13 Command output

Field

Description

UPMappings

Number of mappings in up (valid) state in the SRv6 TE policy group.

TotalMappings

Total number of mappings in the SRv6 TE policy group.

GroupNID

Index of the forwarding entry for the SRv6 TE policy group.

Referenced

Number of times that the SRv6 TE policy group has been used.

Flags

Flags of the SRv6 TE policy group:

·     A—Assign the forwarding entry index of the SRv6 TE policy group.

·     F—Issue the forwarding entry of the SRv6 TE policy group.

·     W—Waiting for assigning the forwarding  entry index of the SRv6 TE policy group.

·     D—Delete the SRv6 TE policy group.

·     None—The SRv6 TE policy group is in initialized or stable state.

Group type

SRv6 TE policy group type:

·     Static DSCP—Statically created SRv6 TE policy group that uses DSCP-based traffic steering.

·     Static APN-ID—Statically created SRv6 TE policy group that uses APN ID-based traffic steering.

·     Dynamic—Dynamically created SRv6 TE policy group. No forward type is configured.

·     Dynamic APN-ID—Dynamically created SRv6 TE policy group that uses APN ID-based traffic steering.

·     Dynamic DSCP—Dynamically created SRv6 TE policy group that uses DSCP-based traffic steering.

Group color

Color value of the SRv6 TE policy group.

StateChangeTime

Time when the SRv6 TE policy group state changed.

Endpoint

Destination node IP address of the SRv6 TE policy group. None indicates that the endpoint is not configured.

BSID

BSID information of the SRv6 TE policy group:

·     Explicit BSID—BSID allocated by the system.

·     Request state—Request state of the BSID. Supported values:

¡     Succeeded.

¡     Failed.

Best-effort NID

NID for best effort forwarding.

Drop upon mismatch

Whether the feature of discarding packets that do not match any valid SRv6 TE policy or SRv6 BE path is enabled:

·     Disabled.

·     Enabled.

UP/Total Mappings

·     If DSCP-based traffic steering is used, this field represents the number of valid color-to-DSCP mappings and the total number of configured color-to-DSCP mappings in the SRv6 TE policy group.

·     If APN ID-based traffic steering is used, this field represents the number of valid APN ID-to-forwarding policy mappings and the total number of configured APN ID-to-forwarding policy mappings in the SRv6 TE policy group.

Color

Color value

Type

Packet type: IPv4 or IPv6.

DSCP

DSCP value.

Index

Index for a mapping between an APN ID and a forwarding policy.

APN-ID/APN-INSTANCE

APN ID instance name.

Color/Best-effort

Forwarding policy mapped to the APN ID.

·     When the value is a number, it represents the color attribute value of an SRv6 TE policy. Traffic with the specified APN ID will be forwarded through this SRv6 TE policy.

·     When the value is best-effort, traffic with the specified APN ID will be forwarded in SRv6 BE mode.

Default SRv6 TE Policy Color

If the default forwarding policy is SRv6 TE policy forwarding, this field represents the color attribute value of an SRv6 TE policy.

If the default forwarding policy is not SRv6 TE policy forwarding, this field displays a hyphen (-).

display segment-routing ipv6 te policy-group apn-id-ipv6

Use display segment-routing ipv6 te policy-group apn-id-ipv6 instance to display APN ID instance information for SRv6 TE policies.

Syntax

display segment-routing ipv6 te policy-group apn-id-ipv6 instance [ name inatnce-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

name instance-name: Specifies an APN ID instance by its name, a case-sensitive string of 1 to 31 characters.

Usage guidelines

After an APN ID instance is created, the SRv6 TE policy module can obtain information about that APN ID instance to perform APN ID-based traffic steering. To identify whether the APN6 module and the SRv6 TE policy module correctly exchange APN ID instance information, use this command. For more information about APN ID instances, see APN6 configuration in Application-aware Networking Configuration Guide.

Examples

# Display APN ID instance information for SRv6 TE policies.

<Sysname> display segment-routing ipv6 te policy-group apn-id-ipv6 instance

 

Instance name  : inst1

Instacne ID    : 1          APN ID length      : 64

App Group Len  : 32         App Group Mask Len : 10

Usr Group Len  : 32         Usr Group Mask Len : 8

APN ID         : 0x4b400000 0xc9000000

APN mask       : 0xffc00000 0xff000000

Table 14 Command output

Field

Description

Instance name

Name of the APN ID instance.

Instance ID

Instance ID assigned to the APN ID instance.

APN ID length

Total length of the APN ID. An APN ID consists of the APP-Group-ID, User-Group-ID, and Reserved fields.

AppGroupLen

Length of the APP-Group-ID field.

AppGroupMaskLen

Mask length of the APP-Group-ID field.

UsrGroupLen

Length of the User-Group-ID field.

UsrGroupMaskLen

Mask length of the User-Group-ID field.

APN ID

Hexadecimal values for the APP-Group-ID and User-Group-ID fields. The value for the APP-Group-ID field is followed by that for the User-Group-ID field.

APN mask

Mask length values for the APP-Group-ID and User-Group-ID fields. The value for the APP-Group-ID field is followed by that for the User-Group-ID field. For example, if the value for the APP-Group-ID field is 0x02000000 and its mask length is 0xff000000, only the highest eight bits carry a value of 2.

Related commands

index apn-id match

display segment-routing ipv6 te policy-group last-down-reason

Use display segment-routing ipv6 te policy-group last-down-reason to display the reason why the specified or all SRv6 TE policy groups went down most recently.

Syntax

display segment-routing ipv6 te policy-group last-down-reason [ group-id | endpoint ipv6-address color color-value ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

group-id: Specifies an SRv6 TE policy group by its ID in the range of 1 to 4294967295. If you do not specify this argument, the command displays information about all SRv6 TE policy groups.

endpoint ipv6-address color color-value: Specifies the IPv6 address of the destination node and the color value in the range of 0 to 4294967295.

Examples

# Display the reason why SRv6 TE policy group 10 went down most recently.

<Sysname> display segment-routing ipv6 te policy-group last-down-reason 10

 

Group ID   : 10                        Group type : Static DSCP

Group color: 100                       Endpoint   : 4::4

Group NID  : 2151677956

Create time: 2021-03-18 09:57:43

Up time    : -

Down time  : 2021-03-18 09:57:43

Down reason: No active SRv6-TE Policies

  Color: 20                     Address family: IPv4

    Up time    : 2021-03-18 01:52:20.785

    Down time  : 2021-03-18 09:59:23

    Down reason: No endpoint

Table 15 Command output

Field

Description

Group type

SRv6 TE policy group type:

·     Static DSCP—Statically created SRv6 TE policy group that uses DSCP-based traffic steering.

·     Static APN-ID—Statically created SRv6 TE policy group that uses APN ID-based traffic steering.

·     Dynamic—Dynamically created SRv6 TE policy group. No forward type is configured.

·     Dynamic DSCP—Dynamically created SRv6 TE policy group that uses DSCP-based traffic steering.

·     Dynamic APN-ID—Dynamically created SRv6 TE policy group that uses APN ID-based traffic steering.

Group color

Color value of the SRv6 TE policy group.

Endpoint

Destination node IP address of the SRv6 TE policy group.

Group NID

Index of the forwarding entry for the SRv6 TE policy group.

Create time

Time when the SRv6 TE policy group state was created.

Up time

Time when the SRv6 TE policy group came up.

Down time

Time when the SRv6 TE policy group went down.

Down reason

Reason why the SRv6 TE policy group went down:

·     No endpoint.

·     No color-DSCP mappings.

·     No active SRv6 TE policies.

·     No color-apn-id mappings—No color-to-APN ID mappings are configured.

·     Forwarding down—No FIB entries exist.

Color

Color value mapped to the DSCP value.

Up time

Time when the color-to-DSCP mapping came up.

Down time

Time when the color-to-DSCP mapping went down.

Down reason

Reason why the color-to-DSCP mapping went down.

·     No endpoint.

·     No color-DSCP mappings.

·     The SRv6-TE policy is used by another group.

·     SRv6-TE policy does't exist.

·     SRv6-TE policy down.

·     No selected by intelligent route policy.

·     APNID conflict.

display segment-routing ipv6 te policy-group statistics

Use display segment-routing ipv6 te policy-group statistics to display SRv6 TE policy group statistics.

Syntax

display segment-routing ipv6 te policy-group statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display SRv6 TE policy group statistics.

<Sysname> display segment-routing ipv6 te policy-group statistics

Statistics type                 Total                Up

Dynamic DSCP groups             0                    0

Static DSCP groups              1                    0

Color-DSCP mappings             0                    0

SRv6-BE-DSCP mappings           0                    0

Static Dot1p groups             0                    0

Color-Dot1p mappings            0                    0

Dynamic service-class groups    0                    0

Static service-class groups     0                    0

Color-service-class mappings    0                    0

SRv6-BE-service-class mappings  0                    0

Dynamic apn-id groups           0                    0

Static apn-id groups            0                    0

Color-apn-id mappings           0                    0

SRv6-BE-apn-id mappings         0                    0

Dynamic TE Class groups         0                    0

Static TE Class groups          0                    0

Color-TE Class mappings         0                    0

IPR-TE Class mappings           0                    0

SRv6-BE-TE Class mappings       0                    0

Table 16 Command output

Field

Description

Statistics type

Statistics objects:

·     Dynamic DSCP groups—Dynamically created SRv6 TE policy groups that use DSCP-based traffic steering.

·     Static DSCP groups—Statically created SRv6 TE policy groups that use DSCP-based traffic steering.

·     Color-DSCP mappings—Color-to-DSCP mappings in all SRv6 TE policy groups.

·     SRv6-BE-DSCP mappings—SRv6 BE-to-DSCP mappings in all SRv6 TE policy groups.

·     Static Dot1p groups—Statically created SRv6 TE policy groups that use 802.1p-based traffic steering.

·     Color-Dot1p mappings—Color-to-802.1p mappings in all SRv6 TE policy groups.

·     Dynamic service-class groups—Dynamically created SRv6 TE policy groups that use service class-based traffic steering.

·     Static service-class groups—Statically created SRv6 TE policy groups that use service class-based traffic steering.

·     Color-service-class mappings—Color-to-service class mappings in all SRv6 TE policy groups.

·     SRv6-BE-service-class mappings—SRv6 BE-to-service class mappings in all SRv6 TE policy groups.

·     Dynamic APN ID groups—Dynamically created SRv6 TE policy groups that use APN ID-based traffic steering.

·     Static APN ID groups—Statically created SRv6 TE policy groups that use APN ID-based traffic steering.

·     Color-APN ID mappings—Color-to-APN ID mappings in all SRv6 TE policy groups.

·     SRv6-BE-APN ID mappings—SRv6 BE-to-APN ID mappings in all SRv6 TE policy groups.

·     Dynamic TE Class groups—Dynamically created SRv6 TE policy groups that use TE class ID-based traffic steering.

·     Static TE Class groups—Statically created SRv6 TE policy groups that use TE class ID-based traffic steering.

·     Color-TE Class mappings—Color-to-TE class ID mappings in all SRv6 TE policy groups.

·     IPR-TE Class mappings—All IPR policy-to-TE class ID mappings.

·     SRv6-BE-TE Class mappingsSRv6 BE-to-TE class ID mappings in all SRv6 TE policy groups.

Total

Total number of statistics objects.

UP

Number of effective statistics objects.

display segment-routing ipv6 te sbfd

Use display segment-routing ipv6 te sbfd to display SBFD information for SRv6 TE policies.

Syntax

display segment-routing ipv6 te sbfd [ down | policy { { color color-value | end-point ipv6 ipv6-address } * | name policy-name } | up ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

down: Displays SBFD information for SRv6 TE policies in down state.

policy: Displays SBFD information for the specified SRv6 TE policy.

color color-value: Specifies the color attribute value of an SRv6 TE policy, in the range of 0 to 4294967295.

end-point ipv6 ipv6-address: Specifies the IPv6 address of the endpoint of an SRv6 TE policy.

name policy-name: Specifies the name of an SRv6 TE policy, a case-sensitive string of 1 to 59 characters.

up: Displays SBFD information for SRv6 TE policies in up state.

Usage guidelines

If you do not specify any parameters, this command displays SBFD information for all SRv6 TE policies.

Examples

# Display SBFD information for all SRv6 TE policies.

<Sysname> display segment-routing ipv6 te policy sbfd

 Color: 10

 Endpoint: 4::4

 Policy name: p1

 State: Down

 

   Nid: 2149580801

   BFD type: SBFD

   Remote Discr: 100

   State: Down

   Timer: 30

   VPN index: 0

   Template name: abc

Table 17 Command output

Field

Description

Color

Color attribute value of an SRv6 TE policy.

Endpoint

Endpoint IP address of the SRv6 TE policy.

Policy name

Name of the SRv6 TE policy.

State

SBFD session state:

·     Up.

·     Down.

·     Delete.

Nid

Forwarding entry index for an SID list.

BFD type

The current software version supports only the SBFD type.

Remote Discr

Remote discriminator.

Timer

SBFD session timer, in seconds.

display segment-routing ipv6 te segment-list

Use display segment-routing ipv6 te segment-list to display SRv6-TE SID list information.

Syntax

display segment-routing ipv6 te segment-list [ name seglist-name | id id-value ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

name segment-list-name: Specifies a SID list by its name, a case-sensitive string of 1 to 128 characters.

id id-value: Specifies a SID list by its ID. The value range for the SID list ID is 1 to 4294967295.

Usage guidelines

If you do not specify a SID list name or ID, this command displays information about all SRv6-TE SID lists.

To view SID list ID information, execute the display segment-routing ipv6 te policy command.

Examples

# Display information about all SRv6-TE SID lists.

<Sysname> display segment-routing ipv6 te segment-list

 

Total Segment lists: 2

 

Name/ID: A/1

 Origin: CLI

 Status: Up

 Nodes: 1

 

  Index            : 10                           SID: 101::1

  Type             : Type_2                     Flags: None

  Coc Type         : -           Common prefix length: 0

  Function length  : 0                    Args length: 0

  Endpoint Behavior: -

 

  Index            : 2                            SID: 101::2

  Type             : Type_13                    Flags: None

  Coc Type         : COC32       Common prefix length: 72

  Function length  : 64                   Args length: 0

  Endpoint Behavior: End with COC

Table 18 Command output

Field

Description

Total Segment lists

Number of SID lists.

Name/ID

SID list name/ID.

Origin

Origin of the SID list. Options include:

·     CLI—Locally configured in the CLI.

·     BGP—Issued by BGP.

·     PCE—Issued by a PCE. (This option is not supported in the current software version.)

If the SID list does not have a valid origin, this field displays a hyphen (-).

Status

SID list status, Down or Up.

Nodes

Number of nodes in the SID list.

Index

Node index.

SID

SID value (IPv6 address) of the node.

Type

SID type of the node:

·     None—Not configured.

·     Type 2—IPv6 address.

·     Type 13—Compressed IPv6 address.

Flags

Node flags, which are not defined and displayed as None.

Coc Type

Compression type of the SID, which is COC32, representing the 32-bit compression.

If the SID is not compressed, this field displays a hyphen (-).

Common prefix length

Common prefix length of the G-SID.

Function length

Function length of the SID.

Args length

Args length of the SRv6 SID.

Endpoint Behavior

Endpoint behavior:

·     End (no PSP, no USP)

·     End with PSP

·     End with USP

·     End with PSP&USP

·     End.X (no PSP, no USP)

·     End.X with PSP

·     End.X with USP

·     End.X with PSP&USP

·     End.T (no PSP, no USP)

·     End.T with PSP

·     End.T with USP

·     End.T with PSP&USP

·     End with USD

·     End with PSP&USD

·     End with USP&USD

·     End with PSP&USP&USD

·     End.X with USD

·     End.X with PSP&USD

·     End.X with USP&USD

·     End.X with PSP&USP&USD

·     End.T with USD

·     End.T with PSP&USD

·     End.T with USP&USD

·     End.T with PSP&USP&USD

·     End with COC

·     End with PSP&COC

·     End with PSP&USP&COC

·     End.X with COC

·     End.X with PSP&COC

·     End.X with PSP&USP&COC

·     End.T with COC

·     End.T with PSP&COC

·     End.T with PSP&USP&COC

·     End with PSP&USD&COC

·     End with PSP&USP&USD&COC

·     End.X with PSP&USD&COC

·     End.X with PSP&USP&USD&COC

·     End.T with PSP&USD&COC

·     End.T with PSP&USP&USD&COC

This field displays a hyphen (-) for an invalid endpoint behavior.

distribute bgp-ls

Use distribute bgp-ls to enable the device to distribute SRv6 TE policy candidate path information to BGP-LS.

Use undo distribute bgp-ls to restore the default.

Syntax

distribute bgp-ls

undo distribute bgp-ls

Default

The device does not distribute SRv6 TE policy candidate path information to BGP-LS.

Views

SRv6 TE view

Predefined user roles

network-admin

Usage guidelines

After this command is executed, the device distributes SRv6 TE policy candidate path information to BGP-LS. BGP-LS advertises the SRv6 TE policy candidate path information in routes to meet application requirements.

Examples

# Enable the device to distribute SRv6 TE policy candidate path information to BGP-LS.

<Sysname> system-view

[Sysname] segment-routing-ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] distribute bgp-ls

drop-upon-invalid enable

Use drop-upon-invalid enable to enable the device to drop traffic when an SRv6 TE policy becomes invalid.

Use undo drop-upon-invalid enable to disable the drop-upon-invalid feature for an SRv6 TE policy.

Syntax

drop-upon-invalid enable

undo drop-upon-invalid enable

Default

The drop-upon-invalid feature is disabled for an SRv6 TE policy. The device does not drop traffic when the SRv6 TE policy becomes invalid.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Usage guidelines

Enable this feature for an SRv6 TE policy if you want to use only the SRv6 TE policy to forward traffic.

By default, if all forwarding paths of an SRv6 TE policy become invalid, the device forwards the packets through IPv6 routing table lookup based on the packet destination IPv6 addresses.

After you execute the drop-upon-invalid enable command, the device drops the packets if all forwarding paths of the SRv6 TE policy become invalid.

The drop-upon-invalid enable command does not take effect in the following cases:

·     BSID request failed or BSID conflict occurred for the SRv6 TE policy. To view the BSID request state, see the Request state field in the display segment-routing ipv6 te policy command output.

·     The SRv6 TE policy is invalid. To check the SRv6 TE policy validity, see the Forwarding index field in the display segment-routing ipv6 te policy command output. If the value is 0, the SRv6 TE policy is invalid.

Examples

# Enable the device to drop traffic when SRv6 TE policy a1 becomes invalid.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy a1

[Sysname-srv6-te-policy-a1] drop-upon-invalid enable

drop-upon-mismatch enable

Use drop-upon-mismatch enable to enable the feature of discarding packets that do not match any valid SRv6 TE policy or SRv6 BE path.

Use undo drop-upon-mismatch enable to disable the feature of discarding packets that do not match any valid SRv6 TE policy or SRv6 BE path.

Syntax

drop-upon-mismatch enable

undo drop-upon-mismatch enable

Default

The device disables the feature of discarding packets that do not match any valid SRv6 TE policy or SRv6 BE path.

Views

SRv6 TE ODN policy group view

SRv6 TE policy group view

Predefined user roles

network-admin

Usage guidelines

Use this command if you want to forward traffic only through SRv6 TE policies based on color-to-DSCP, color-to-802.1p, and color-to-service class mappings, through the default SRv6 TE policy, or in SRv6 BE mode.

Examples

# In SRv6 TE policy group 10, enable the feature of discarding packets that do not match any valid SRv6 TE policy or SRv6 BE path.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 10

[Sysname-srv6-te-policy-group-10] drop-upon-mismatch enable

# In SRv6 TE ODN policy group view, enable the feature of discarding packets that do not match any valid SRv6 TE policy or SRv6 BE path.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1] drop-upon-mismatch enable

Related commands

color match dscp (SRv6 TE policy group view)

forward-type (SRv6 TE ODN policy group view)

forward-type (SRv6 TE policy group view)

encapsulation-mode

Use encapsulation-mode to configure the encapsulation mode for an SRv6 TE policy.

Use undo encapsulation-mode to restore the default.

Syntax

encapsulation-mode encaps reduced [ disable ]

undo encapsulation-mode encaps reduced

encapsulation-mode insert

undo encapsulation-mode insert

encapsulation-mode insert reduced [ disable ]

undo encapsulation-mode insert reduced

Default

The encapsulation mode is not configured for an SRv6 TE policy, and the encapsulation mode configured in SRv6 TE view applies.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

encaps reduced: Specifies the encapsulation mode as reduced encapsulation mode.

insert: Specifies the encapsulation mode as insertion mode.

insert reduced: Specifies the encapsulation mode as reduced insertion mode.

disable: Disables the specified encapsulation mode.

Usage guidelines

If the traffic steering mode is BSID, packets whose destination IPv6 address is the same as the BSID of an SRv6 TE policy will be forwarded by the SRv6 TE policy. In this case, the device needs to encapsulate the SID list of the SRv6 TE policy into the packets. The following encapsulation modes are available:

·     Encaps—Normal encapsulation mode. It adds a new IPv6 header and an SRH to the original packets. All SIDs in the SID list of the SRv6 TE policy are encapsulated in the SRH.

·     Encaps.Red—Reduced mode of the normal encapsulation mode. It adds a new IPv6 header and an SRH to the original packets. The first SID in the SID list of the SRv6 TE policy is not encapsulated in the SRH to reduce the SRH length. All other SIDs in the SID list are encapsulated in the SRH.

·     Insert—Insertion mode. It inserts an SRH after the original IPv6 header. All SIDs in the SID list of the SRv6 TE policy are encapsulated in the SRH.

·     Insert.Red—Reduced insertion mode. It inserts an SRH after the original IPv6 header. The first SID in the SID list of the SRv6 TE policy is not encapsulated in the SRH to reduce the SRH length. All other SIDs in the SID list are encapsulated in the SRH.

In Encaps or Encaps.Red encapsulation mode, the destination IPv6 address in the new IPv6 header is the first SID in the SID list of the SRv6 TE policy. The source IPv6 address is the IPv6 address specified by using the encapsulation source-address command.

In Insert or Insert.Red encapsulation mode, the destination IPv6 address in the original IPv6 header is changed to the first SID in the SID list of the SRv6 TE policy. The source IPv6 address in the original IPv6 header is not changed.

You can configure the encapsulation mode for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

The normal encapsulation modes are exclusive with the insertion modes. If you configure a normal encapsulation mode and an insertion mode for an SRv6 TE policy, the most recent configuration takes effect.

If you configure the Insert or Insert.Red mode for an SRv6 TE policy, it uses the Encaps mode to encapsulate received IPv4 packets.

If you execute both the encapsulation-mode encaps reduced command and the encapsulation-mode encaps include local-end.x command for an SRv6 TE policy, the encapsulation-mode encaps include local-end.x command takes effect.

If you execute both the encapsulation-mode insert reduced command and the encapsulation-mode insert include local-end.x command for an SRv6 TE policy, the encapsulation-mode insert include local-end.x command takes effect.

Examples

# Configure SRv6 TE policy 1 to use the Encaps.Red encapsulation.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] encapsulation-mode encaps reduced

Related commands

encapsulation source-address

srv6-policy encapsulation-mode

encapsulation-mode encaps include local-end.x

Use encapsulation-mode encaps include local-end.x to configure local End.X SID encapsulation in the SRH of the packets forwarded by an SRv6 TE policy with a normal encapsulation mode.

Use undo encapsulation-mode encaps include local-end.x to restore the default.

Syntax

encapsulation-mode encaps include local-end.x [ disable ]

undo encapsulation-mode encaps include local-end.x

Default

The local End.X SID encapsulation is not configured for an SRv6 TE policy with a normal encapsulation mode, and the local End.X SID encapsulation setting configured in SRv6 TE view applies.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

disable: Disables encapsulating the local End.X SID into the SRH header of packets forwarded by an SRv6 TE policy with a normal encapsulation mode. If you do not specify this keyword, the local End.X SID will be encapsulated into the SRH of the packets.

Usage guidelines

If the traffic steering mode is BSID and the SRv6 SID of the ingress node is an End.X SID, the device does not encapsulate the End.X SID into the SRH by default.

To obtain complete SRv6 forwarding path information from the SRH of packets, use this command to configure the device to encapsulate the local End.X SID in the SRH.

You can configure the local End.X SID encapsulation for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

If you execute the encapsulation-mode encaps include local-end.x command and the encapsulation-mode insert include local-end.x command for an SRv6 TE policy, the most recent configuration takes effect.

If you execute both the encapsulation-mode encaps include local-end.x command and the encapsulation-mode encaps reduced command for an SRv6 TE policy, the encapsulation-mode encaps include local-end.x command takes effect.

Examples

# Include the End.X SID in the SRH of the packets forwarded by an SRv6 TE policy with a normal encapsulation mode.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] encapsulation-mode encaps include local-end.x

Related commands

srv6-policy encapsulation-mode encaps include local-end.x

encapsulation-mode insert include local-end.x

Use encapsulation-mode insert include local-end.x to configure local End.X SID encapsulation in the SRH of the packets forwarded by an SRv6 TE policy with an insertion encapsulation mode.

Use undo encapsulation-mode insert include local-end.x to restore the default.

Syntax

encapsulation-mode insert include local-end.x [ disable ]

undo encapsulation-mode insert include local-end.x

Default

The local End.X SID encapsulation is not configured for an SRv6 TE policy with an insertion encapsulation mode, and the local End.X SID encapsulation setting configured in SRv6 TE view applies.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

disable: Disables encapsulating the local End.X SID into the SRH header inserted into the packets forwarded by an SRv6 TE policy with an insertion encapsulation mode. If you do not specify this keyword, the local End.X SID will be encapsulated into the SRH of the packets.

Usage guidelines

If the traffic steering mode is BSID and the SRv6 SID of the ingress node is an End.X SID, the device does not encapsulate the End.X SID into the SRH by default.

To obtain complete SRv6 forwarding path information from the SRH of packets, use this command to configure the device to encapsulate the local End.X SID in the SRH.

You can configure the local End.X SID encapsulation for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

If you execute the encapsulation-mode encaps include local-end.x command and the encapsulation-mode insert include local-end.x command alternately for an SRv6 TE policy, the most recent configuration takes effect.

If you execute both the encapsulation-mode insert include local-end.x command and the encapsulation-mode insert reduced command for an SRv6 TE policy, the encapsulation-mode insert include local-end.x command takes effect.

Examples

# Include the End.X SID in the SRH of the packets forwarded by an SRv6 TE policy with an insertion encapsulation mode.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] encapsulation-mode insert include local-end.x

Related commands

srv6-policy encapsulation-mode insert include local-end.x

end-point

Use end-point to configure the endpoint IP address for the SRv6 TE policy group.

Use undo end-point to restore the default.

Syntax

end-point ipv6 ipv6-address

undo end-point ipv6

Default

No endpoint address is configured for the SRv6 TE policy group.

Views

SRv6 TE policy group view

Predefined user roles

network-admin

Parameters

ipv6 ipv6-address: Specifies the endpoint IPv6 address for the SRv6 TE policy group.

Usage guidelines

The SRv6 TE policies added to the SRv6 TE policy group must use the same endpoint IPv6 address as the SRv6 TE policy group.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Configure the endpoint address as 100::2 for SRv6 TE policy group 10.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 10

[Sysname-srv6-te-policy-group-10] end-point ipv6 100::2

explicit segment-list

Use explicit segment-list to specify a SID list for a candidate path.

Use undo explicit segment-list to delete a SID list of a candidate path or restore the default weight of a SID list.

Syntax

explicit segment-list segment-list-name [ weight weight-value ]

undo explicit segment-list segment-list-name [ weight ]

Default

No SID lists are specified for an SRv6 TE policy candidate path.

Views

SRv6 TE policy path preference view

Predefined user roles

network-admin

Parameters

segment-list-name: Specifies an SID list name, a case-sensitive string of 1 to 128 characters.

weight weight-value: Specifies a weight for the SID list, in the range of 1 to 4294967295. The default weight is 1.

Usage guidelines

An SRv6 TE policy uses the SID list specified for the highest-preference candidate path as a traffic forwarding subpath.

An SRv6 TE policy candidate path can have multiple SID lists. All the SID lists can be used to forward traffic for load sharing based on their weights. Assume SID lists a, b, and c are assigned weights x, y, z, respectively. The load of SID list a is x/(x+y+z) of the total traffic.

If you assign weight values for the same SID list multiple times, the most recent configuration takes effect.

Examples

# Configure SID list abc for the SRv6 TE policy candidate path with preference 20, and the set the SID list weight to 20.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy a1

[Sysname-srv6-te-policy-a1] candidate-paths

[Sysname-srv6-te-policy-a1-path] preference 20

[Sysname-srv6-te-policy-a1-path-pref-20] explicit segment-list abc weight 20

Related commands

segment-list

fast-reroute mirror delete-delay

Use fast-reroute mirror delete-delay to configure the mirror FRR deletion delay time.

Use undo fast-reroute mirror delete-delay to restore the default.

Syntax

fast-reroute mirror delete-delay delete-delay-time

undo fast-reroute mirror delete-delay

Default

The mirror FRR deletion delay time is 60 seconds.

Views

IS-IS IPv6 unicast address family view

OSPFv3 view

Predefined user roles

network-admin

Parameters

delete-delay-time: Specifies the deletion delay time, in the range of 1 to 21845 seconds.

Usage guidelines

In an egress protection scenario, the transit node deletes the mirror FRR path after completing route convergence. If the deletion occurs before the ingress node switches traffic back from the mirror FRR path, the traffic will be dropped because of no mirror FRR path.

To resolve this issue, you can configure a proper mirror FRR deletion delay time on the transit node to delay the deletion of the mirror FRR route. So, packets can be forwarded over the mirror FRR path before the ingress finishes the path switchover.

Examples

# In IS-IS process 1, set the mirror FRR deletion delay time to 100 seconds.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] fast-reroute mirror delete-delay 100

# In OSPFv3 process 1, set the mirror FRR deletion delay time to 100 seconds.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] fast-reroute mirror delete-delay 100

Related commands

fast-reroute mirror enable

fast-reroute mirror enable

Use fast-reroute mirror enable to enable egress protection.

Use undo fast-reroute mirror enable to disable egress protection.

Syntax

fast-reroute mirror enable

undo fast-reroute mirror enable

Default

Egress protection is disabled.

Views

IS-IS IPv6 unicast address family view

OSPFv3 view

Predefined user roles

network-admin

Usage guidelines

Operating mechanism

Egress protection enables an SRv6 node to compute a backup path (mirror FRR path) for the egress node based on the End.M SID carried in a received IPv6 IS-IS route or OSPFv3 route. When the egress node fails, the transit node can forward traffic to the node that protects the egress node according to the End.M SID.

Restrictions and guidelines

To enable egress protection in a view on a transit node, you must also enable TI-LFA FRR in that view for the transit node to compute a backup path.

Examples

# Enable IS-IS egress protection.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] fast-reroute mirror enable

# Enable OSPFv3 egress protection.

<Sysname> system-view

[Sysname] ospfv3 1

[Sysname-ospfv3-1] fast-reroute mirror enable

forwarding statistics

Use forwarding statistics to configure traffic forwarding statistics for an SRv6 TE policy.

Use undo forwarding statistics to restore the default.

Syntax

forwarding statistics { disable | [ service-class ] enable }

undo forwarding statistics

Default

An SRv6 TE policy uses the traffic forwarding statistics configuration in SRv6 TE view.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

disable: Disables the SRv6 TE policy forwarding statistics.

enable: Enables the SRv6 TE policy forwarding statistics.

service-class: Enables the SRv6 TE policy forwarding statistics by service class. This feature collects statistics on the total traffic as well as the traffic of each service class that are forwarded by the SRv6 TE policy tunnel. If you do not specify this keyword, the device only collects statistics on the total traffic forwarded by the SRv6 TE policy tunnel.

Usage guidelines

You can configure traffic forwarding statistics for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Enable traffic forwarding statistics for SRv6 TE policy 1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] forwarding statistics enable

Related commands

display segment-routing ipv6 te forwarding

reset segment-routing ipv6 te forwarding statistics

srv6-policy forwarding statistic enable

srv6-policy forwarding statistic interval

forward-type (SRv6 TE ODN policy group view)

Use forward-type to create a forward type and enter its view, or enter the view of an existing forward type.

Use undo forward-type to restore the default.

Syntax

forward-type { apn-id | dscp }

undo forward-type { apn-id | dscp }

Default

No forward type is created. Traffic cannot be steered to the SRv6 TE policy group automatically created by the ODN template.

Views

SRv6 TE ODN policy group view

Predefined user roles

network-admin

Parameters

apn-id: Specifies the APN ID forward type, that is, APN ID-based traffic steering.

dscp: Specifies the DSCP forward type, that is, DSCP-based traffic steering.

Usage guidelines

Use this command to specify the method for steering traffic in to the SRv6 TE policy group automatically created by the ODN template. SRv6 TE policy groups automatically created by an ODN template only support APN ID-, and DSCP-based traffic steering in the current software version.

When the forward type is DSCP, the device steers traffic by using the following procedure:

1.     Matches the DSCP value in a packet with the mappings configured by using the color match dscp command.

2.     If the DSCP value matches a color-to-DSCP mapping and the SRv6 TE policy assigned the color attribute value in the mapping is valid, the device uses that SRv6 TE policy to forward the packet.

When the forward type is APN ID, the device steers traffic by using the following procedure:

1.     Matches the APN ID value in the traffic with the mappings configured by using the index apn-id match command.

2.     If a match is found and the forwarding policy (SRv6 TE policy or SRv6 BE) pointed by the matching mapping is valid, the device uses the forwarding policy for traffic forwarding.

3.     If no match is found, the device forwards the traffic according to the forwarding steps in the usage guidelines of the index apn-id match command.

On the source node of the SRv6 TE policy group, you can perform the following tasks:

·     Use the remark apn-id ipv6 instance command in a QoS policy to mark the APN ID value for traffic that matches rules in the QoS policy.

Examples

# Create the DSCP forward type and enter DSCP forward type view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1] forward-type dscp

[Sysname-srv6-te-odn-group-1-dscp]

Related commands

color match dscp (DSCP forward type view)

default match (APN ID-based traffic steering)

index apn-id match

remark apn-id ipv6 instance (ACL and QoS Command Reference)

forward-type (SRv6 TE Policy group view)

Use forward-type to configure the forward type for an SRv6 TE policy group.

Use undo forward-type to restore the default.

Syntax

forward-typeapn-id

undo forward-typeapn-id

Default

DSCP-based traffic steering is used for packets that match an SRv6 TE policy group.

Views

SRv6 TE policy group view

Predefined user roles

network-admin

Parameters

apn-id: Sets the forward type to APN ID, which represents APN ID-based traffic steering.

Usage guidelines

Use this command to specify the method for steering traffic in to a statically created SRv6 TE policy group. Statically created SRv6 TE policy groups only support DSCP-, and APN ID-based traffic steering in the current software version.

On the source node of the SRv6 TE policy group, you can perform the following tasks:

·     Use the remark apn-id ipv6 instance command in a QoS policy to mark the APN ID value for traffic that matches rules in the QoS policy.

When the forward type is DSCP, the device steers traffic by using the following procedure:

1.     Matches the DSCP value in a packet with the mappings configured by using the color match dscp command.

2.     If the DSCP value matches a color-to-DSCP mapping and the SRv6 TE policy assigned the color attribute value in the mapping is valid, the device uses that SRv6 TE policy to forward the packet.

When the forward type is APN ID, the device steers traffic by using the following procedure:

1.     Matches the APN ID value in the traffic with the mappings configured by using the index apn-id match command.

2.     If a match is found and the forwarding policy (SRv6 TE policy or SRv6 BE) pointed by the matching mapping is valid, the device uses the forwarding policy for traffic forwarding.

3.     If no match is found, the device forwards the traffic according to the forwarding steps in the usage guidelines of the index apn-id match command.

Examples

# Specify APN ID-based traffic steering for SRv6 TE policy group 1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 1

[Sysname-srv6-te-policy-group-1] forward-type apn-id

Related commands

color match dscp (SRv6 TE policy group view)

default match (APN ID-based traffic steering)

index apn-id match

remark apn-id ipv6 instance (ACL and QoS Command Reference)

group-color

Use group-color to configure the color value for an SRv6 TE policy group.

Use undo group-color to restore the default.

Syntax

group-color color-value

undo group-color

Default

The color value is not configured for an SRv6 TE policy group.

Views

SRv6 TE policy group view

Predefined user roles

network-admin

Parameters

color-value: Specifies the color attribute value, in the range of 0 to 4294967295.

Usage guidelines

You can use the color value specified in this command to perform color-based traffic steering to the specified SRv6 TE policy group.

You can specify the same color value for an SRv6 TE policy group and an SRv6 TE policy in it. The color values do not affect each other.

Examples

# Configure the color value as 1 for the SRv6 TE policy group.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 1

[Sysname-srv6-te-policy-group-1] group-color 1

import-route sr-policy

Use import-route sr-policy to enable BGP to redistribute routes from the BGP IPv6 SR policy.

Use undo import-route sr-policy to restore the default.

Syntax

import-route sr-policy

undo import-route sr-policy

Default

BGP does not redistribute BGP IPv6 SR policy routes.

Views

BGP IPv6 SR policy address family

Predefined user roles

network-admin

Usage guidelines

After you execute this command, the system will redistribute the local BGP IPv6 SR policy routes to the BGP routing table and advertise the routes to IBGP peers. Then, the peers can forward traffic based on the SRv6 TE policy.

Examples

# In BGP IPv6 SR policy address family view, enable BGP to redistribute routes from the BGP IPv6 SR policy.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family ipv6 sr-policy

[Sysname-bgp-default-srpolicy-ipv6] import-route sr-policy

index

Use index to add a node to a SID list.

Use undo index to delete a node from a SID list.

Syntax

index index-number ipv6 ipv6-address

index index-number coc32 ipv6 ipv6-address common-prefix-length

undo index index-number

Default

No nodes exist in a SID list.

Views

SID list view

Predefined user roles

network-admin

Parameters

index-number: Specifies the node index, in the range of 1 to 65535.

ipv6 ipv6-address: Specifies the IPv6 address of the node.

coc32: Adds the COC flavor. It indicates that the next node of the current node is a 32-bit G-SID.

common-prefix-length: Specifies the length of the common prefix of the next G-SID. The value range for this argument is 1 to 94.

Usage guidelines

When you add a G-SID to the SID list, follow these restrictions and guidelines:

·     The common prefix length configured by this command must be the same as that of the locator where the next node belongs.

·     The SRv6 SID corresponding to the previous node of the G-SID must be an End(COC32) SID or End.X(COC32) SID.

·     The SRv6 SID corresponding to the last node in the SID list cannot carry the COC flavor.

Examples

# Add a node to SID list abc, and set the node index to 1 and IPv6 address to 1000::1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] segment-list abc

[Sysname-srv6-te-sl-abc] index 1 ipv6 1000::1

# Add nodes to SID list text as follows:

·     Add a node whose index is 10, IPv6 address is 100::1, next node as 32-bit G-SID, and the common prefix length of the G-SID is 64.

·     Add a node whose index is 20, IPv6 address is 200::1:0:0, next node as 32-bit G-SID, and the common prefix length of the G-SID is 64.

·     Add a node whose index is 30, IPv6 address is 200::2:0:0, next node as 32-bit G-SID, and the common prefix length of the G-SID is 64.

·     Add a node whose index is 40, IPv6 address is 200::3:0:0, next node as 32-bit G-SID, and the common prefix length of the G-SID is 64.

·     Add a node whose index is 50 and IPv6 address is 200::4:0:0.

·     Add a node whose index is 60 and IPv6 address is 300::3.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] segment-list text

[Sysname-srv6-te-sl-abc] index 10 coc32 ipv6 100::1 64

[Sysname-srv6-te-sl-abc] index 20 coc32 ipv6 200::1:0:0 64

[Sysname-srv6-te-sl-abc] index 30 coc32 ipv6 200::2:0:0 64

[Sysname-srv6-te-sl-abc] index 40 coc32 ipv6 200::3:0:0:0 64

[Sysname-srv6-te-sl-abc] index 50 ipv6 200::4:0:0

[Sysname-srv6-te-sl-abc] index 60 ipv6 300::3

Related commands

locator

index apn-id match

Use index apn-id match to configure a mapping between an APN ID and a forwarding policy.

Use undo index to delete the mapping between an APN ID and a forwarding policy.

Syntax

index index-value apn-id instance instance-name match { best-effort | srv6-policy color color-value }

undo index index-value

Default

No mapping is configured between an APN ID and a forwarding policy.

Views

SRv6 TE policy group view

APN ID forward type view

Predefined user roles

network-admin

Parameters

index-value: Specifies an index for the mapping, in the range of 1 to 4294967294.

instance instance-name: Specifies an APN ID instance by its name, a case-sensitive string of 1 to 31 characters.

best-effort: Forwards traffic identified by the specified APN ID in SRv6 BE mode.

srv6-policy color color-value: Specifies a color attribute value. If you specify a color attribute value, the device will forward traffic identified by the specified APN ID through the SRv6 TE policy associated with the specified color attribute value. The value range for the color-value argument is 0 to 4294967295.

Usage guidelines

Prerequisites

This command can take effect only when the forward type of the SRv6 TE policy group is APN ID. To configure the forward type, you can use the forward-type apn-id command in SRv6 TE policy group view or SRv6 TE ODN policy group view.

Application scenarios

Once service traffic is steered to an SRv6 TE policy group for forwarding, the device matches the APN ID value in IPv6 packets with the APN ID mappings in the SRv6 TE policy group. If a matching mapping is found, the device forwards the traffic through the SRv6 TE policy associated with the color attribute value in the mapping or forwards the traffic in SRv6 BE mode.

Operating mechanism

In SRv6 BE mode, the device encapsulates a new IPv6 header to packets, with the destination address in the new IPv6 header set to the VPN SID assigned to public or private network routes by the egress node of the SRv6 TE policy group. Then, the device performs an IPv6 routing table lookup to forward the encapsulated packets.

After traffic is steered to an SRv6 TE policy group for forwarding, when the device receives a packet that does not carry an APN ID, whose APN ID does not match any APN ID mapping, or whose APN ID matches an invalid SRv6 TE policy or matches the SRv6 BE mode that is invalid, it forwards the packet as follows:

1.     If the default match command is used to specify a default SRv6 TE policy and the specified default SRv6 TE policy is valid, the device uses the default SRv6 TE policy to forward the packet.

If the default match command is used to configure packet forwarding in SRv6 BE mode and the SRv6 BE mode is valid, the device forwards the packet in SRv6 BE mode.

2.     If the default match command is not executed or the forwarding policy specified in the command is invalid, the device handles the packet depending on whether the drop-upon-mismatch enable command is used.

¡     If the drop-upon-mismatch enable command is used, the device discards the packet.

¡     If the drop-upon-mismatch enable command is not used, the device searches for the APN ID-to-forwarding policy mapping with the smallest index value and the forwarding policy in the mapping is valid. The device will use the SRv6 TE policy pointed by the mapping to forward the packet or forward the packet in SRv6 BE mode.

Restrictions and guidelines

An APN ID can establish a mapping relationship with an SRv6 TE policy only when that SRv6 TE policy is valid. Only when the mapping relationship is established, traffic that carries the APN ID can be forwarded through that SRv6 TE policy.

An APN ID can establish a mapping relationship with the SRv6 BE mode only when the SRv6 BE mode is valid. The SRv6 BE mode is valid when the IPv6 routing table on the device has routes whose destination address is the VPN SID assigned to public or private network routes by the egress node of the SRv6 TE policy group. Only when the mapping relationship is established, traffic that carries the APN ID can be forwarded in SRv6 BE mode.

For an SRv6 TE policy group, an APN ID value can be mapped only to the SRv6 BE mode or to one SRv6 TE policy associated with a color attribute value.

If you execute the index apn-id match command multiple times for the same APN ID, only the most recent configuration can take effect.

You can execute the index apn-id match command multiple times in an SRv6 TE policy group to map multiple APN ID instance names to the same forwarding policy. If those APN ID instance names all correspond to the same APN ID, the forwarding policy forwards packets by using the path corresponding to the mapping with the smallest index.

If you execute the index apn-id match command multiple times for the same index value, only the most recent configuration can take effect.

Examples

# Map APN ID 3 and color attribute value 20 in an SRv6 TE policy group. Packets with APN ID 3 will be steered to the SRv6 TE policy associated with color attribute value 20 for forwarding.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 10

[Sysname-srv6-te-policy-group-10] forward-type apn-id

[Sysname-srv6-te-policy-group-10] index 10 apn-id instance aa match srv6-policy color 20

# Map APN ID 3 and color attribute value 20 in an SRv6 TE policy group ODN template. Packets with APN ID 3 will be steered to the SRv6 TE policy associated with color attribute value 20 for forwarding.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1] forward-type apn-id

[Sysname-srv6-te-odn-group-1-apn-id] index 10 apn-id instance aa match srv6-policy color 20

Related commands

default match

drop-upon-mismatch enable

forward-type (SRv6 TE policy group view)

forward-type (SRv6 TE ODN policy group view)

mirror remote-sid delete-delay

Use mirror remote-sid delete-delay to configure the deletion delay time for remote SRv6 SID mappings with VPN instances/cross-connects/VSIs.

Use undo mirror remote-sid delete-delay to restore the default.

Syntax

mirror remote-sid delete-delay delete-delay-time

undo mirror remote-sid delete-delay

Default

The deletion delay time for remote SRv6 SID and VPN instance/cross-connect/VSI mappings is 60 seconds.

Views

SRv6 view

Predefined user roles

network-admin

Parameters

delete-delay-time: Specifies the deletion delay time, in the range of 1 to 21845 seconds.

Usage guidelines

In an egress protection scenario, if the egress node and the egress node's protection node are disconnected, the protection node will delete the BGP routes received from the egress node. The remote SRv6 SID and VPN instance/cross-connect/VSI mappings will then be deleted as a result. To avoid this issue, you can configure the mappings deletion delay time on the protection node. This ensures that traffic is forwarded through the protection node before the ingress detects the egress failure and computes a new forwarding path.

Examples

# Set the deletion delay time for remote SRv6 SID and VPN instance/cross-connect/VSI mappings to 100 seconds.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] mirror remote-sid delete-delay 100

on-demand

Use on-demand to create an on-demand next-hop (ODN) template for creating SRv6 TE policies and enter SRv6 TE ODN view, or enter the SRv6 TE ODN view of an existing ODN template.

Use undo on-demand to delete an ODN template and all the configuration in the view.

Syntax

on-demand color color-value

undo on-demand color color-value

Default

No SRv6 TE policy ODN templates exist.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

color color-value: Specifies the color value for the ODN template, in the range of 0 to 4294967295.

Usage guidelines

When the device receives a BGP route, it compares the color extended attribute value of the BGP route with the color value of the ODN template. If the color values match, the device automatically generates an SRv6 TE policy and two candidate paths for the policy.

·     The policy uses the BGP route's next hop address as the end-point address and the ODN template's color value as the color attribute value of the policy.

·     The candidate paths use preferences 100 and 200. You need to manually configure the SID lists for the candidate path with preference 200, and use PCE to compute the SID lists for the candidate path with preference 100.

You can also manually create candidate paths for an ODN-created SRv6 TE policy.

Examples

# Create an SRv6 TE policy ODN template with color value 1 and enter SRv6 TE ODN view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand color 1

[Sysname-srv6-te-odn-1]

on-demand-group

Use on-demand-group to create an ODN template for creating SRv6 TE policy groups and enter SRv6 TE ODN policy group view, or enter the SRv6 TE ODN policy group view of an existing ODN template.

Use undo on-demand-group to delete an ODN template and all the configuration in the view.

Syntax

on-demand-group color color-value

undo on-demand-group color color-value

Default

No SRv6 TE policy group ODN templates exist.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

color color-value: Specifies the color value for the ODN template, in the range of 0 to 4294967295.

Usage guidelines

When the device receives a BGP route, it compares the color extended attribute value of the BGP route with the color value of the ODN template. If the color values match, the device automatically generates an SRv6 TE policy group. The device will assign the smallest ID that are not in use to the SRv6 TE policy group.

After an SRv6 TE policy group is automatically generated, you need to configure color-to-DSCP mappings for the template for DSCP-based traffic steering.

Examples

# Create an SRv6 TE policy group ODN template with color value 1 and enter SRv6 TE ODN policy group view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand-group color 1

[Sysname-srv6-te-odn-group-1]

policy

Use policy to create an SRv6 TE policy and enter its view, or enter the view of an existing SRv6 TE policy.

Use undo policy to delete an SRv6 TE policy and all the configuration in the SRv6 TE policy.

Syntax

policy policy-name

undo policy policy-name

Default

No SRv6 TE policies exist.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

policy-name: Specifies an SRv6 TE policy name, a case-sensitive string of 1 to 59 characters.

Examples

# Create an SRv6 TE policy named srv6policy and enter its view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy p1

[Sysname-srv6-te-policy-p1]

policy-group

Use policy-group to create an SRv6 TE policy group and enter its view, or enter the view of an existing SRv6 TE policy group.

Use undo policy-group to delete an SRv6 TE policy group and all the configuration in the SRv6 TE policy group.

Syntax

policy-group group-id

undo policy-group group-id

Default

No SRv6 TE policy groups exist.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

group-name: Specifies an SRv6 TE policy group by its ID in the range of 1 to 4294967295.

Usage guidelines

You can add SRv6 TE policies to an SRv6 TE policy group to implement SRv6 TE policy based forwarding according to DSCP values of packets.

Examples

# Create SRv6 TE policy group 1 and enter its view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy-group 1

[Sysname-srv6-te-policy-group-1]

preference

Use preference to set the preference for an SRv6 TE policy candidate path and enter SRv6 TE policy path preference view, or enter an existing SRv6 TE policy path preference view.

Use undo preference to delete an SRv6 TE policy candidate path preference and all the configuration in the SRv6 TE policy path preference view.

Syntax

preference preference-value

undo preference preference-value

Default

No preference is set for an SRv6 TE policy candidate path.

Views

SRv6 TE policy candidate path view

Predefined user roles

network-admin

Parameters

preference-value: Specifies a candidate path preference in the range of 1 to 65535. A bigger value represents a higher preference.

Usage guidelines

A preference represents a candidate path of an SRv6 TE policy.

Examples

# Set the preference of an SRv6 TE policy candidate path to 20, and enter SRv6 TE policy path preference view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy a1

[Sysname-srv6-te-policy-a1] candidate-paths

[Sysname-srv6-te-policy-a1-path] preference 20

[Sysname-srv6-te-policy-a1-path-pref-20]

rate-limit

Use rate-limit to set a rate limit for an SRv6 TE policy.

Use undo rate-limit to restore the default.

Syntax

rate-limit kbps

undo rate-limit

Default

No rate limit is set for an SRv6 TE policy.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

kbps: Specifies the rate limit, in the range of 1 to 4294967295, in kbps.

Usage guidelines

When the rate of the packets forwarded by an SRv6 TE policy exceeds the rate limit, the device drops the packets that exceed the rate limit.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the rate limit for SRv6 TE policy aaa to 15000 kbps.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy aaa

[Sysname-srv6-te-policy-aaa] rate-limit 15000

reset segment-routing ipv6 te forwarding statistics

Use reset segment-routing ipv6 te forwarding statistics to clear forwarding statistics for all SRv6 TE policies.

Syntax

reset segment-routing ipv6 te forwarding statistics [ binding-sid binding-sid | color color-value endpoint endpoint-ipv6 | name name-value ]

Views

User view

Predefined user roles

network-admin

Parameters

binding-sid bsid: Specifies the BSID of an SRv6 TE policy, which is an IPv6 address.

color color-value endpoint endpoint-ipv6: Specifies the color value and end-point IPv6 address of an SRv6 TE policy. The value range for the color-value argument is 0 to 4294967295.

name policy-name: Specifies the name of an SRv6 TE policy, a case-sensitive string of 1 to 59 characters.

Usage guidelines

If you do not specify any parameters, this command clears forwarding statistics for all SRv6 TE policies.

Examples

# Clear forwarding statistics for all SRv6 TE policies.

<Sysname> reset segment-routing ipv6 te forwarding statistics

Related commands

display segment-routing ipv6 te forwarding

forwarding statistics

srv6-policy forwarding statistics enable

srv6-policy forwarding statistics interval

restrict

Use restrict to configure the ODN SRv6 TE policy generation policy.

Use undo restrict to restore the default.

Syntax

restrict prefix-list-name

undo restrict

Default

A BGP route can trigger ODN to create an SRv6 TE policy when the route's color attribute value is the same as the ODN color value.

Views

SRv6 TE ODN view

Predefined user roles

network-admin

Parameters

prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.

Usage guidelines

You can specify an IPv6 prefix list to filter BGP routes. The BGP routes permitted by the specified IPv6 prefix list can trigger ODN to create SRv6 TE policies. The BGP routes denied by the specified IPv6 prefix list cannot trigger ODN to create SRv6 TE policies.

Examples

# Permit the BGP routes in subnet 1000::/96 to trigger ODN to create SRv6 TE policies.

<Sysname> system-view

[Sysname] ipv6 prefix-list policy permit 1000:: 96

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] on-demand color 1

[Sysname-srv6-te-odn-1] restrict policy

Related commands

ipv6 prefix-list (Layer 3—IP Routing Command Reference)

router-id filter

Use router-id filter to enable Router ID filtering.

Use undo router-id filter to disable Router ID filtering.

Syntax

router-id filter [ bgp-rib-only ]

undo router-id filter

Default

Router ID filtering is disabled.

Views

BGP IPv6 SR policy address family.

Predefined user roles

network-admin

Parameters

bgp-rib-only: Enables the device to accept the route without generating an SRv6 TE policy accordingly when it receives a BGP IPv6 SR policy route and the Route Target attribute of the route does not carry the local router ID.

Usage guidelines

For the device to process only part of the received BGP IPv6 SR policy routes, you can execute this command to enable filtering the routes by Router ID.

This command enables the device to check the Route Target attribute of a received BGP IPv6 SR policy route.

·     If the Route Target attribute contains the Router ID of the local device, the device accepts the route and generates an SRv6 TE policy accordingly.

·     If the Route Target attribute does not contain the Router ID of the local device, the device processes the route as follows:

¡     If the bgp-rib-only keyword is not specified in the command, the device drops the route.

¡     If the bgp-rib-only keyword is specified in the command, the device accepts the route but does not generate the corresponding SRv6 TE policy.

When the controller advertises a BGP IPv6 SR policy route to the source node, the transit nodes between the controller and the source node only need to forward the BGP IPv6 SR policy route. They do not need to generate the SRv6 TE policy. In this case, you can execute the router-id filter bgp-rib-only command on the transit nodes. Then, when a transit node receives a BGP IPv6 SR policy route, it forwards the route even if the route's Route Target attribute does not contain the Router ID of the local device. Meanwhile, it does not generate an SRv6 TE policy in order to not affect packet forwarding.

If you execute this command multiple times, the most recent configuration takes effect.

To use Router ID filtering, make sure you add Route Target attributes to BGP IPv6 SR policy routes properly by using routing policy or other methods. Otherwise, Router ID filtering might learn or drop BGP IPv6 SR policy routes incorrectly.

Examples

# Enable Router ID filtering.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family ipv6 sr-policy

[Sysname-bgp-default-srpolicy-ipv6] router-id filter

sbfd

Use sbfd to configure SBFD for an SRv6 TE policy.

Use undo sbfd to restore the default.

Syntax

sbfd { disable | enable [ remote remote-id ] [ template template-name ] [ backup-template backup-template-name ] [ oam-sid sid ] }

undo sbfd

Default

SBFD is disabled for an SRv6 TE policy. An SRv6 TE policy uses the SBFD configuration in SRv6 TE view.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

disable: Disables SBFD for the SRv6 TE policy.

enable: Enables SBFD for the SRv6 TE policy.

remote remote-id: Specifies the remote discriminator of the SBFD session, in the range of 1 to 4294967295. If you do not specify this option, the configuration in SRv6 TE view applies.

template template-name: Specifies a BFD session parameter template by its name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, the template specified in SRv6 TE view applies.

backup-template backup-template-name: Specifies as SBFD session parameter template for the backup SID list. The backup-template-name argument indicates the template name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, the backup template specified in SRv6 TE view applies.

oam-sid sid: Adds an OAM SID to SBFD packets to identify the destination node. The sid argument represents the SRv6 SID of the endpoint destination node. If you do not specify this option, no OAM SID will be added to BFD packets. As a best practice, configure the End SID of the destination node as the OAM SID.

Usage guidelines

You can configure SBFD for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

The remote discriminator specified in this command must be the same as that specified in the sbfd local-discriminator command on the reflector. Otherwise, the reflector will not send responses to the initiator.

The device supports the echo packet mode BFD and the SBFD for an SRv6 TE policy. If both modes are configured for the same SRv6 TE policy, the SBFD takes effect.

Examples

# Enable SBFD for SRv6 TE policy 1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] sbfd enable

Related commands

display segment-routing ipv6 te sbfd

explicit segment-list

sbfd local-discriminator (High Availability Command Reference)

srv6-policy sbfd

segment-list

Use segment-list to create a SID list and enter its view, or enter the view of an existing SID list.

Use undo segment-list to delete a SID list and all the configuration in the SID list.

Syntax

segment-list segment-list-name

undo segment-list segment-list-name

Default

No SID lists exist.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

segment-list-name: Specifies the SID list name, a case-sensitive string of 1 to 128 characters.

Examples

# Create a SID list named abc and enter its view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] segment-list abc

[Sysname-srv6-te-sl-abc]

service-class

Use service-class to set a service class value for an SRv6 TE policy.

Use undo service-class to restore the default.

Syntax

service-class service-class-value

undo service-class

Default

No service class value is set for an SRv6 TE policy.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Parameters

service-class-value: Specifies a service class value in the range of 0 to 127. The smaller the service class value, the lower the SRv6 TE policy priority. An SRv6 TE policy that is not assigned a service class value has the lowest priority.

Usage guidelines

The device compares the service class value of the traffic with the service class values of SRv6 TE policies and forwards the traffic to a matching tunnel. The device uses the following rules to select an SRv6 TE policy to forward the traffic:

·     If the traffic matches only one SRv6 TE policy, the device uses this SRv6 TE policy.

·     If the traffic matches multiple SRv6 TE policies, the device selects an SRv6 TE policy based on the flow forwarding mode:

¡     If there is only one flow and flow-based forwarding is used, the device randomly selects a matching SRv6 TE policy for packets of the flow.

¡     If there are multiple flows or if there is one flow but packet-based forwarding is used, the device uses all matching SRv6 TE policies to load share the packets.

For more information about the flow identification and load sharing mode, see the ip load-sharing mode command.

·     If the traffic does not match any SRv6 TE policy, the device randomly selects an SRv6 TE policy from all SRv6 TE policies with the smallest service class value.

To set a service class value for traffic, use the remark service-class command in traffic behavior view.

Examples

# Set the service class value to 5 for SRv6 TE policy.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] service-class 5

Related commands

ip load-sharing mode (Layer 3IP Services Command Reference)

remark service-class (ACL and QoS Command Reference)

shutdown

Use shutdown to shut down an SRv6 TE policy.

Use undo shutdown to bring up an SRv6 TE policy.

Syntax

shutdown

undo shutdown

Default

An SRv6 TE policy is not administratively shut down.

Views

SRv6 TE policy view

Predefined user roles

network-admin

Usage guidelines

If multiple SRv6 TE policies exist on the device, you can shut down unnecessary SRv6 TE policies to prevent them from affecting traffic forwarding.

Examples

# Shut down SRv6 TE policy 1.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] policy 1

[Sysname-srv6-te-policy-1] shutdown

sr-policy steering

Use sr-policy steering to configure the traffic steering mode for SRv6 TE policies.

Use undo sr-policy steering to restore the default.

Syntax

sr-policy steering { disable | policy-based }

undo sr-policy steering

Default

The device steering data packets to SRv6 TE policies based on colors of the packets.

Views

BGP instance view

Predefined user roles

network-admin

Parameters

disable: Disables color-based traffic steering to an SRv6 TE policy.

policy-based: Steers traffic to an SRv6 TE policy based on the bound policy, color, and load sharing tunnel policy in a descending order of priority.

Usage guidelines

The following traffic steering modes are available for SRv6 TE policies:

·     Based on color—The device searches for an SRv6 TE policy that has the same color and endpoint address as the color and nexthop address of a BGP route. If a matching SRv6 TE policy exists, the device recurse the BGP route to that SRv6 TE policy. Then, when the device receives packets that match the BGP route, it forwards the packets through the SRv6 TE policy.

·     Based on tunnel policy—On an IPv6 L3VPN over SRv6 network or EVPN L3VPN over SRv6 network, deploy a tunnel policy that uses an SRv6 TE policy. In this way, the SRv6 TE policy will be used as the public tunnel to carry the packets of the VPN. For more information about the tunnel policy configuration, see MPLS Configuration Guide.

This command does not take effect on L2VPN networks.

Examples

# Configure the SRv6-TE traffic steering mode as tunnel policy.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] sr-policy steering policy-based

sr-te frr enable

Use sr-te frr enable to enable SRv6 TE FRR.

Use undo sr-te frr enable to disable SRv6 TE FRR.

Syntax

sr-te frr enable

undo sr-te frr enable

Default

SRv6 TE FRR is disabled.

Views

SRv6 view

Predefined user roles

network-admin

Usage guidelines

After SRv6 TE FRR is enabled, when a transit node of an SRv6 TE policy fails, the upstream node of the faulty node can take over to forward packets. The upstream node is called a proxy forwarding node.

After SRv6 TE FRR is enabled on a node, upon receiving a packet that contains an SRH and the SL in the SRH is greater than 1 (SL>1), the node will act as a proxy forwarding node in any of the following scenarios:

·     The node does not find a matching forwarding entry in the IPv6 FIB.

·     The next hop address of the packet is the destination address of the packet, and the outgoing interface for the destination address is in DOWN state.

·     The matching local SRv6 SID is an END.X SID, and the outgoing interface for the END.X SID is in DOWN state.

·     The outgoing interface in the matching route is NULL0.

A proxy forwarding node forwards packets as follows:

·     Decrements the SL value in the SRH of a packet by 1.

·     Copies the next SID to the DA field in the outer IPv6 header, so as to use the SID as the destination address of the packet.

·     Looks up the forwarding table by the destination address and then forwards the packet.

In this way, the proxy forwarding node bypasses the faulty node. This transit node failure protection technology is referred to as SRv6 TE FRR.

In a complex network, any node might act as a transit node. As a best practice to improve the whole network security, enable SRv6 TE FRR on all nodes.

Examples

# Enable SRv6 TE FRR.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] sr-te frr enable

Related commands

bfd echo

srv6-policy autoroute enable

Use srv6-policy autoroute enable to enable automatic route advertisement for SRv6 TE policies.

Use undo srv6-policy autoroute enable to disable automatic route advertisement for SRv6 TE policies.

Syntax

srv6-policy autoroute enable [ level-1 | level-2 ]

undo srv6-policy autoroute enable

Default

Automatic route advertisement for SRv6 TE policies is disabled.

Views

IS-IS IPv6 address family view

Predefined user roles

network-admin

Parameters

level-1: Enables automatic route advertisement for Level-1 IS-IS SRv6 TE policies.

level-2: Enables automatic route advertisement for Level-2 IS-IS SRv6 TE policies.

Usage guidelines

This command advertises SRv6 TE policies to IGP (IPv6 IS-IS) for route computation.

If you do not specify the level-1 or level-2 keyword in IS-IS IPv6 address family view, this command enables automatic route advertisement for all levels of IS-IS SRv6 TE policies.

For this command to take effect on an SRv6 TE policy, you must also execute the autoroute enable command in the view of the SRv6 TE policy.

Examples

# Enable automatic route advertisement for SRv6 TE policies of IS-IS process 1.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] srv6-policy autoroute enable

Related commands

autoroute enable

srv6-policy backup hot-standby enable

Use srv6-policy backup hot-standby enable to enable hot standby for all SRv6 TE policies.

Use undo srv6-policy backup hot-standby enable to disable hot standby for all SRv6 TE policies.

Syntax

srv6-policy backup hot-standby enable

undo srv6-policy backup hot-standby enable

Default

Hot standby is disabled for all SRv6 TE policies.

Views

SRv6 TE view

Predefined user roles

network-admin

Usage guidelines

The hot standby feature takes the candidate path with the greatest preference value in the SRv6 TE policy as the primary path and that with the second greatest preference value as the standby path. When the forwarding paths corresponding to all SID lists of the primary path fails, the standby path immediately takes over to minimize service interruption.

You can enable hot standby for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

Examples

# Enable hot standby for all SRv6 TE policies.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy backup hot-standby enable

Related commands

backup hot-standby

srv6-policy bfd echo

Use srv6-policy bfd echo to enable the echo packet mode BFD for all SRv6 TE policies.

Use undo srv6-policy bfd echo to disable the echo packet mode BFD for all SRv6 TE policies.

Syntax

srv6-policy bfd echo source-ipv6 ipv6-address [ template template-name ] [ backup-template backup-template-name ]

undo srv6-policy bfd echo

Default

The echo packet mode BFD is disabled for all SRv6 TE policies.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

source-ipv6 ipv6-address: Specifies the source IPv6 address of the BFD session.

template template-name: Specifies a BFD session parameter template by its name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, the BFD session uses multihop BFD session settings configured in system view.

backup-template backup-template-name e: Specifies a BFD session parameter template for the backup SID list. The backup-template-name argument indicates the template name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, the BFD session uses multihop BFD session settings configured in system view.

Usage guidelines

You can configure the echo packet mode BFD for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

The device supports the echo packet mode BFD and the SBFD for an SRv6 TE policy. If both modes are configured for the same SRv6 TE policy, the SBFD takes effect.

Examples

# Enable the echo packet mode BFD for all SRv6 TE policies, and specify the source IPv6 address of the BFD session as 11::11.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy bfd echo source-ipv6 11::11

Related commands

bfd echo

display segment-routing ipv6 te bfd

srv6-policy encapsulation-mode

Use srv6-policy encapsulation-mode to enable the reduced encapsulation mode for all SRv6 TE policies globally.

Use undo srv6-policy encapsulation-mode to restore the default.

Syntax

srv6-policy encapsulation-mode encaps reduced

undo srv6-policy encapsulation-mode encaps reduced

srv6-policy encapsulation-mode insert

undo srv6-policy encapsulation-mode insert

srv6-policy encapsulation-mode insert reduced

undo srv6-policy encapsulation-mode insert reduced

Default

An SRv6 TE policy uses the normal encapsulation (Encaps) mode.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

encaps reduced: Specifies the encapsulation mode as reduced encapsulation mode.

insert: Specifies the encapsulation mode as insertion mode.

insert reduced: Specifies the encapsulation mode as reduced insertion mode.

Usage guidelines

If the traffic steering mode is BSID, packets whose destination IPv6 address is the same as the BSID of an SRv6 TE policy will be forwarded by the SRv6 TE policy. In this case, the device needs to encapsulate the SID list of the SRv6 TE policy into the packets. The following encapsulation modes are available:

·     Encaps—Normal encapsulation mode. It adds a new IPv6 header and an SRH to the original packets. All SIDs in the SID list of the SRv6 TE policy are encapsulated in the SRH.

·     Encaps.Red—Reduced mode of the normal encapsulation mode. It adds a new IPv6 header and an SRH to the original packets. The first SID in the SID list of the SRv6 TE policy is not encapsulated in the SRH to reduce the SRH length. All other SIDs in the SID list are encapsulated in the SRH.

·     Insert—Insertion mode. It inserts an SRH after the original IPv6 header. All SIDs in the SID list of the SRv6 TE policy are encapsulated in the SRH.

·     Insert.Red—Reduced insertion mode. It inserts an SRH after the original IPv6 header. The first SID in the SID list of the SRv6 TE policy is not encapsulated in the SRH to reduce the SRH length. All other SIDs in the SID list are encapsulated in the SRH.

In Encaps or Encaps.Red encapsulation mode, the destination IPv6 address in the new IPv6 header is the first SID in the SID list of the SRv6 TE policy. The source IPv6 address is the IPv6 address specified by using the encapsulation source-address command.

In Insert or Insert.Red encapsulation mode, the destination IPv6 address in the original IPv6 header is changed to the first SID in the SID list of the SRv6 TE policy. The source IPv6 address in the original IPv6 header is not changed.

You can configure the encapsulation mode for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

The normal encapsulation modes are exclusive with the insertion modes. If you configure a normal encapsulation mode and an insertion mode alternately, the most recent configuration takes effect.

If you configure the Insert or Insert.Red mode for an SRv6 TE policy, it uses the Encaps mode to encapsulate received IPv4 packets.

If you execute both the srv6-policy encapsulation-mode encaps reduced command and the srv6-policy encapsulation-mode encaps include local-end.x command, the srv6-policy encapsulation-mode encaps include local-end.x command takes effect.

If you execute both the srv6-policy encapsulation-mode insert reduced command and the srv6-policy encapsulation-mode insert include local-end.x command, the srv6-policy encapsulation-mode insert include local-end.x command takes effect.

Examples

# Configure the Encaps.Red mode for all SRv6 TE policies globally.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy encapsulation-mode encaps reduced

Related commands

encapsulation source-address

encapsulation-mode

srv6-policy encapsulation-mode encaps include local-end.x

Use srv6-policy encapsulation-mode encaps include local-end.x to configure local End.X SID encapsulation for all SRv6 TE policies using a normal encapsulation mode.

Use undo srv6-policy encapsulation-mode encaps include local-end.x to restore the default.

Syntax

srv6-policy encapsulation-mode encaps include local-end.x

undo srv6-policy encapsulation-mode encaps include local-end.x

Default

The device does not encapsulate the local End.X SID into the SRH of the packets forwarded by an SRv6 TE policy using a normal encapsulation mode.

Views

SRv6 TE view

Predefined user roles

network-admin

Usage guidelines

If the traffic steering mode is BSID and the SRv6 SID of the ingress node is an End.X SID, the device does not encapsulate the End.X SID into the SRH by default.

To obtain complete SRv6 forwarding path information from the SRH of packets, use this command to configure the device to encapsulate the local End.X SID into the SRH.

You can configure the local End.X SID encapsulation for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

If you execute the srv6-policy encapsulation-mode encaps include local-end.x command and the srv6-policy encapsulation-mode insert include local-end.x command for multiple times, the most recent configuration takes effect.

If you execute both the srv6-policy encapsulation-mode encaps include local-end.x command and the srv6-policy encapsulation-mode encaps reduced command, the srv6-policy encapsulation-mode encaps include local-end.x command takes effect.

Examples

# Configure the device to include the local End.X SID in the SRH of the packets forwarded by SRv6 TE policies using a normal encapsulation mode.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy encapsulation-mode encaps include local-end.x

Related commands

encapsulation-mode encaps include local-end.x

srv6-policy encapsulation-mode insert include local-end.x

Use srv6-policy encapsulation-mode insert include local-end.x to configure local End.X SID encapsulation for all SRv6 TE policies with an insertion encapsulation mode.

Use undo srv6-policy encapsulation-mode insert include local-end.x to restore the default.

Syntax

srv6-policy encapsulation-mode insert include local-end.x

undo srv6-policy encapsulation-mode insert include local-end.x

Default

The device does not encapsulate the local End.X SID into the SRH of the packets forwarded by an SRv6 TE policy with an insertion encapsulation mode.

Views

SRv6 TE view

Predefined user roles

network-admin

Usage guidelines

If the traffic steering mode is BSID and the SRv6 SID of the ingress node is an End.X SID, the device does not encapsulate the End.X SID into the SRH by default.

To obtain complete SRv6 forwarding path information from the SRH of packets, use this command to configure the device to encapsulate the local End.X SID into the SRH.

You can configure the local End.X SID encapsulation for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

If you execute the srv6-policy encapsulation-mode encaps include local-end.x command and the srv6-policy encapsulation-mode insert include local-end.x command multiple times, the most recent configuration takes effect.

If you execute both the srv6-policy encapsulation-mode insert include local-end.x command and the srv6-policy encapsulation-mode insert reduced command, the srv6-policy encapsulation-mode insert include local-end.x command takes effect.

Examples

# Enable the device to include the local End.X SID in the SRH of the packets forwarded by SRv6 TE policies with an insertion encapsulation mode.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy encapsulation-mode insert include local-end.x

Related commands

encapsulation-mode insert include local-end.x

srv6-policy forwarding statistics enable

Use srv6-policy forwarding statistics enable to enable traffic forwarding statistics for all SRv6 TE policies.

Use undo srv6-policy forwarding statistics enable to disable traffic forwarding statistics for all SRv6 TE policies.

Syntax

srv6-policy forwarding statistics [ service-class ] enable

undo srv6-policy forwarding statistics enable

Default

Traffic forwarding statistics is disabled for all SRv6 TE policies.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

service-class: Enables the SRv6 TE policy forwarding statistics by service class. This feature collects statistics on the total traffic as well as the traffic of each service class that are forwarded by SRv6 TE policies. If you do not specify this keyword, the device only collects statistics on the total traffic forwarded by SRv6 TE policies.

Usage guidelines

You can configure traffic forwarding statistics for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Enable traffic forwarding statistics for all SRv6 TE policies.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy forwarding statistics enable

Related commands

display segment-routing ipv6 te forwarding

forwarding statistic

reset segment-routing ipv6 te forwarding statistics

srv6-policy forwarding statistics interval

srv6-policy forwarding statistics interval

Use srv6-policy forwarding statistics interval to configure the traffic forwarding statistics interval for all SRv6 TE policies.

Use undo srv6-policy forwarding statistics interval to restore the default.

Syntax

srv6-policy forwarding statistics interval interval

undo srv6-policy forwarding statistics interval

Default

The SRv6 TE policies forwarding statistics interval is 30 seconds.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

interval: Specifies the SRv6 TE policy traffic forwarding statistics interval in the range of 5 to 65535, in seconds.

Predefined user roles

This command takes effect only all SRv6 TE policies.

Examples

# Set the SRv6 TE policy traffic forwarding statistics interval to 90 seconds.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy forwarding statistics interval 90

Related commands

display segment-routing ipv6 te forwarding

forwarding statistic

reset segment-routing ipv6 te forwarding statistics

srv6-policy forwarding statistics enable

srv6-policy locator

Use srv6-policy locator to specify a locator for SRv6 TE.

Use undo srv6-policy locator to cancel the locator configuration.

Syntax

srv6-policy locator locator-name

undo srv6-policy locator

Default

No locator is specified for SRv6 TE.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

locator-name: Specifies a locator by its name, a case-sensitive string of 1 to 31 characters.

Usage guidelines

The locator specified in SRv6 TE view restricts the BSID range. Only BSIDs within the range of the locator can take effect.

You cannot change the locator for SRv6 TE by repeatedly executing this command. To change the locator, first execute the undo srv6-policy locator command to remove the specified locator and then execute the srv6-policy locator command to specify a new locator.

Examples

# Specify locator test1 in SRv6 TE view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy locator test1

srv6-policy sbfd

Use srv6-policy sbfd to enable SBFD for all SRv6 TE policies and configure the SBFD session parameters.

Use undo srv6-policy sbfd to disable SBFD for all SRv6 TE policies.

Syntax

srv6-policy sbfd remote remote-id [ template template-name ] [ backup-template backup-template-name ]

undo srv6-policy sbfd

Default

SBFD for all SRv6 TE policies is disabled.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

remote remote-id: Specifies the remote discriminator of the SBFD session, in the range of 1 to 4294967295.

template template-name: Specifies a BFD session parameter template by its name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, SBFD uses the multihop BFD session settings configured in system view.

backup-template backup-template-name: Specifies an SBFD session parameter template for the backup SID list. The backup-template-name argument indicates the template name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, SBFD uses the multihop BFD session settings configured in system view.

Predefined user roles

You can configure SBFD for all SRv6 TE policies globally in SRv6 TE view or for a specific SRv6 TE policy in SRv6 TE policy view. The policy-specific configuration takes precedence over the global configuration. An SRv6 TE policy uses the global configuration only when it has no policy-specific configuration.

The remote discriminator specified in this command must be the same as that specified in the sbfd local-discriminator command on the reflector. Otherwise, the reflector will not send responses to the initiator.

The device supports the echo packet mode BFD and the SBFD for an SRv6 TE policy. If both modes are configured for the same SRv6 TE policy, the SBFD takes effect.

Examples

# Enable SBFD for all SRv6 TE policies, and specify the SBFD session remote discriminator as 1000001.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy sbfd remote 1000001

Related commands

display segment-routing ipv6 te sbfd

sbfd

sbfd local-discriminator (High Availability Command Reference)

srv6-policy switch-delay delete-delay

Use srv6-policy switch-delay delete-delay to configure the switchover delay time and deletion delay time for the SRv6 TE policy forwarding path.

Use undo srv6-policy switch-delay to restore the default.

Syntax

srv6-policy switch-delay switch-delay-time delete-delay delete-delay-time

undo srv6-policy switch-delay

Default

The switchover delay time and deletion delay time for the SRv6 TE policy forwarding path is 5000 milliseconds and 20000 milliseconds, respectively.

Views

SRv6 TE view

Predefined user roles

network-admin

Parameters

switch-delay-time: Sets the forwarding path switchover delay time in the range of 0 to 600000 milliseconds.

delete-delay-time: Sets the forwarding path deletion delay time in the range of 0 to 600000 milliseconds.

Predefined user roles

The switchover delay and deletion delay mechanism is used to avoid traffic forwarding interruption during a forwarding path switchover.

When updating an SRv6 TE policy forwarding path, the device first establishes the new forwarding path before it deletes the old one. During the new path setup process, the device uses the old path to forward traffic until the switchover delay timer expires. When the switchover delay timer expires, the device switches traffic to the new path. The old path is deleted when the deletion delay timer expires.

Examples

# Set the SRv6 TE policy forwarding path switchover delay time to 8000 milliseconds and the deletion delay time to 15000 milliseconds.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te] srv6-policy switch-delay 8000 delete-delay 15000

traffic-engineering

Use traffic-engineering to create and enter the SRv6 TE view, or enter the existing SR TE view.

Use undo traffic-engineering to delete the SRv6 TE view and all the configuration in the view.

Syntax

traffic-engineering

undo traffic-engineering

Default

The SRv6 TE view does not exist.

Views

SRv6 view

Predefined user roles

network-admin

Examples

# Create and enter the SRv6 TE view.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] traffic-engineering

[Sysname-srv6-te]

ttl-mode

Use ttl-mode to configure the TTL processing mode of SRv6 TE policies.

Use undo ttl-mode to restore the default.

Syntax

ttl-mode { pipe | uniform }

undo ttl-mode

Default

The TTL processing mode of SRv6 TE policies is pipe.

Views

SRv6 view

Predefined user roles

network-admin

Parameters

pipe: Specifies the pipe TTL processing mode.

uniform: Specifies the uniform TTL processing mode.

Predefined user roles

An SRv6 TE policy used as a public tunnel supports the following TTL processing modes:

·     Uniform—When the ingress node adds a new IPv6 header to an IP packet, it copies the TTL value of the original IP packet to the Hop Limit field of the new IPv6 header. Each node on the SRv6 TE policy forwarding path decreases the Hop Limit value in the new IPv6 header by 1. The node that de-encapsulates the packet copies the remaining Hop Limit value back to the original IP packet when it removes the new IPv6 header. The TTL value can reflect how many hops the packet has traversed in the public network. The tracert facility can show the real path along which the packet has traveled.

·     Pipe—When the ingress node adds a new IPv6 header to an IP packet, it does not copy the TTL value of the original IP packet to the Hop Limit field of the new IPv6 header. It sets the Hop Limit value in the new IPv6 header to 255. Each node on the SRv6 TE policy forwarding path decreases the Hop Limit value in the new IPv6 header by 1. The node that de-encapsulates the packet does not change the IPv6 Hop Limit value according to the remaining Hop Limit value in the new IPv6 header. Therefore, the public network nodes are invisible to user networks, and the tracert facility cannot show the real path in the public network.

Examples

# Configure the TTL processing mode of SRv6 TE policies to uniform.

<Sysname> system-view

[Sysname] segment-routing ipv6

[Sysname-segment-routing-ipv6] ttl-mode uniform

validation-check enable

Use validation-check enable to enable validity check for BGP IPv6 SR policy routes.

Use undo validation-check enable to disable validity check for BGP IPv6 SR policy routes.

Syntax

validation-check enable

undo validation-check enable

Default

Validity check for BGP IPv6 SR policy routes is disabled. The device does not check the validity of the BGP IPv6 SR policy routes received from peers or peer groups.

Views

BGP IPv6 SR policy address family view

Predefined user roles

network-admin

Usage guidelines

After validity check is enabled for BGP IPv6 SR policy routes, the device determines that a BGP IPv6 SR policy route is invalid and will not preferentially select the route if the route does not contain the IPv4 address format RT extended community attribute or the NO_ADVERTISE community attribute.

You can configure this feature on the RR in networks where the controller and the RR establish BGP peer relationship and the RR establishes BGP peer relationship with the source nodes of multiple SRv6 TE policies.

The RR checks whether the BGP IPv6 SR policy routes issued by the controller carry the IPv4 address format RT attribute or the NO_ADVERTISE attribute. If yes, the RR accepts the routes and reflects the routes that do not carry the NO_ADVERTISE attribute to the source nodes of the SRv6 TE policies.

On the source nodes, you can use the router-id filter command to enable BGP IPv6 SR policy route filtering by router ID. After a source node receives a BGP IPv6 SR policy route, it compares the local router ID with the IPv4 address in the RT attribute of the route. If they are the same, the source node accepts the route. If they are different, the source node drops the route.

Examples

# Enable validity check for BGP IPv6 SR policy routes.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address ipv6 sr-policy

[Sysname-bgp-default-srpolicy-ipv6] validation-check enable

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网