09-Segment Routing Command Reference

HomeSupportSwitchesS7500X-G SeriesReference GuidesCommand ReferencesH3C S7500X-G Switch Series Command References-R7761Pxx-6W10009-Segment Routing Command Reference
02-SRv6 network slicing commands
Title Size Download
02-SRv6 network slicing commands 231.31 KB

SRv6 network slicing commands

advertise slice-prefix-route

Use advertise slice-prefix-route to enable IS-IS to advertise IPv6 source address prefixes used for NSI ID encapsulation.

Use undo advertise slice-prefix-route to disable IS-IS from advertising IPv6 source address prefixes used for NSI ID encapsulation.

Syntax

advertise slice-prefix-route

undo advertise slice-prefix-route

Default

IS-IS does not advertise IPv6 source address prefixes used for NSI ID encapsulation.

Views

IS-IS IPv6 address family view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

When the SRv6 source node uses source address slicing for NSI ID encapsulation and has IPv6 source address prefixes configured by using the index prefix-name command, use this command to enable IS-IS to advertise these prefixes to other devices. This allows other devices to use the prefix routes for returning the backward packets to the SRv6 source node.

 

CAUTION

CAUTION:

An IPv6 source address prefix carrying an NSI ID needs to be advertised by IS-IS for network-wide IS-IS route convergence. If IS-IS route convergence time and BFD time are not synchronized, BFD service anomalies might occur.

 

Examples

# Enable IS-IS to advertise IPv6 source address prefixes used for NSI ID encapsulation.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] address-family ipv6

[Sysname-isis-1-ipv6] advertise slice-prefix-route

Related commands

index prefix-name

color network-slice

Use color network-slice to map an NSI to a color value in the color extended community attribute of BGP routes.

Use undo color network-slice to remove the mapping between an NSI and a color value in the color extended community attribute of BGP routes.

Syntax

color color-value network-slice slice-instance-id [ slice-prefix slice-prefix-name ] [ strict-mode ]

undo color color-value network-slice

Default

No NSI is mapped to any color values in the color extended community attribute of BGP routes.

Views

NSI and color mapping view

Predefined user roles

network-admin

mdc-admin

Parameters

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

slice-instance-id: Specifies an NSI ID in the range of 0 to 1023.

slice-prefix slice-prefix-name: Specifies an IPv6 source address prefix used for NSI ID encapsulation when the source address slicing method is used. The slice-prefix-name argument represents the name of the IPv6 source address prefix, which is a case-sensitive string of 1 to 31 characters. If you do not specify an IPv6 source address prefix, the device selects the default IPv6 source address prefix or the IPv6 source address prefix with the minimum index value specified by the index prefix-name command.

strict-mode: Sets the Strict-Flag bit to 1. In strict mode, network slice packets encapsulated by using the source address slicing method must be forwarded through the network slice channels bound to the NSI ID in the packets. If no network slice channel is bound to the NSI ID, the device discards the packets. If you do not specify the strict mode, the Strict-Flag bit is set to 0. In this case, if no network slice channel is bound to the NSI ID, the device can still forward network slice packets as common SRv6 packets.

Usage guidelines

Application scenarios

Use this command in the IP L3VPN over SRv6, EVPN L3VPN over SRv6, and public network IP over SRv6 scenarios. With this command, an SRv6 node generates mappings between BGP route colors and NSIs. When the SRv6 node learns a BGP route that includes the color extended community attribute, it forwards the traffic that matches the route through the NSI mapped to the color of the route.

Restrictions and guidelines

An SRv6 node might receive routes that do not have the color extended community attribute. You can use one of the following methods to configure colors for BGP EVPN routes:

·     Routing policy-based coloring—Configure a routing policy to add the color extended community attribute to BGP EVPN routes or modify the existing color extended community attribute in BGP EVPN routes.

When you configure NSI and color mappings, follow these restrictions and guidelines:

·     One color value can be mapped only to one NSI.

·     Multiple color values can be mapped to the same NSI.

Make sure the NSI specified for the slice-instance-id argument has been created by using the instance command.

If the slice-prefix slice-prefix-name option is not specified, the device modifies the IPv6 source address of network slice packets by selecting an IPv6 source address prefix in the following order:

1.     The IPv6 source address prefix specified by using the index prefix-name command with the default keyword.

2.     If no IPv6 source address prefix is specified with the default keyword, the device searches for the IPv6 source address prefix with the smallest index value and configured by using the index prefix-name command with the prefix-length argument specified.

Examples

# Map NSI 100 to BGP route color 200.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] network-slice color-mapping

[Sysname-network-slice-color-mapping] color 200 network-slice 100

Related commands

index prefix-name

instance (network slice view)

description

Use description to specify the description for an NSI.

Use undo description to restore the default.

Syntax

description text

undo description

Default

No description is specified for an NSI.

Views

NSI view

Predefined user roles

network-admin

mdc-admin

Parameters

text: Specifies the description for the NSI, a case-sensitive string of 1 to 80 characters.

Examples

# Specify the description as specific-instance for NSI 1.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] instance 1

[Sysname-network-slice-instance-1] description specific-instance

display bgp slice-prefix

Use display bgp slice-prefix to display information about IPv6 source address prefixes learned by BGP for NSI ID encapsulation.

Syntax

display bgp slice-prefix [ name prefix-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name prefix-name: Specifies an IPv6 source address prefix by its name, a case-sensitive string of 1 to 31 characters. If you do not specify an IPv6 source address prefix, this command displays information for all IPv6 source address prefixes.

Usage guidelines

BGP can learn an IPv6 source address prefix and flushes it to the local routing table after you execute the index prefix-name command with the prefix-length argument specified. The device will create a direct route entry in the local FIB table based on that IPv6 source address prefix. You can use the display bgp slice-prefix command to identify whether BGP has successfully learned that IPv6 source address prefix.

Examples

# Display information about IPv6 source address prefixes learned by BGP for NSI ID encapsulation.

<Sysname> display bgp slice-prefix

 

Total number: 2

 

   Index                    : 1

   Name                     : SrcPrefix1

   IPv6 prefix              : 100:200:DB8:ABCD::

   Common length            : 48

   Prefix length            : 80

 

   Index                    : 2

   Name                     : SrcPrefix2

   IPv6 prefix              : 200:200:DB8:ABCD:0:1::

   Common length            : 64

   Prefix length            : 96

Table 1 Command output

Field

Description

Total number

Total number of IPv6 source address prefixes for NSI ID encapsulation.

Index

Index value of an IPv6 source address prefix.

Name

Name of the IPv6 source address prefix.

IPv6 prefix

IPv6 source address prefix.

Common length

Length of the slice common prefix.

Prefix length

Length of the IPv6 source address prefix.

Related commands

index prefix-name

display network-slice bandwidth usage statistics

Use display network-slice bandwidth usage statistics to display the bandwidth usage of SRv6 network slices on interfaces.

Syntax

display network-slice bandwidth usage statistics [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays bandwidth usage of SRv6 network slices on all interfaces.

Examples

# Display the bandwidth usage of SRv6 network slices on all interfaces.

<Sysname> display network-slice bandwidth usage statistics

 

Network slice bandwidth usage of interface

  Ten-GigabitEthernet3/0/1

    Total bandwidth               : 1000 Mbps

    Network slice bandwidth       : 950 Mbps

    Remaining bandwidth           : 50 Mbps

 

Table 2 Command output

Field

Description

Network slice bandwidth usage of interface

Bandwidth usage information for SRv6 network slices on a base interface.

Total bandwidth

Total bandwidth of the interface.

Network slice bandwidth

Bandwidth used by SRv6 network slices on the current interface.

Remaining bandwidth

Remaining bandwidth of the current interface, which is obtained by the total bandwidth minus the bandwidth used by SRv6 network slices.

Related commands

slice-id

display network-slice binding-list

Use display network-slice binding-list to display the associations between NSIs and interfaces.

Syntax

display network-slice binding-list [ slice-id slice-instance-id ] [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slice-id slice-instance-id: Specifies an NSI by its ID in the range of 0 to 1023. If you do not specify an NSI, this command displays associated interfaces for all NSIs.

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays NSI information for all interfaces.

Examples

# Display interfaces associated with NSI 1.

<Sysname> display network-slice binding-list slice-id 1

 

Slice ID      Interface                                       State

---------------------------------------------------------------------

1             Ten-GigabitEthernet3/0/1                            Active

              Ten-GigabitEthernet3/0/3                            Active

Table 3 Command output

Field

Description

Slice ID

ID of the NSI.

Interface

Interface associated with the NSI.

State

Active state:

·     Active—The network slice channel is issued to the driver successfully.

·     Inactive—Failed to issue the network slice channel to the driver.

Related commands

slice-id

display network-slice color-mapping

Use display network-slice color-mapping to display mappings between NSIs and BGP route colors.

Syntax

display network-slice color-mapping [ color color-value | slice-id slice-instance-id ] *

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

color color-value: Specifies a BGP route color by its value, in the range of 0 to 4294967295. If you do not specify a BGP route color, this command displays NSI mappings for all colors.

slice-id slice-instance-id: Specifies an NSI by its ID, in the range of 0 to 1023. If you do not specify an NSI, this command displays BGP route color mappings for all NSIs.

Examples

# Display all mappings between NSIs and BGP route colors.

<Sysname> display network-slice color-mapping

 

   Slice ID          Color     Strict mode    Prefix name

------------------------------------------------------

   1                 1         -              -

   2                 2         N              abc

   3                 3         S              def

Table 4 Command output

Field

Description

Slice ID

NSI ID.

Color

Color mapped to the NSI.

Strict mode

Forwarding mode flag. Supported values:

·     S—The source address slicing method uses strict forwarding. The Strict-Flag flag bit is set to 1.

·     N—The source address slicing method uses non-strict forwarding. The Strict-Flag flag bit is set to 0.

Prefix name

IPv6 source address prefix name for the source address slicing method.

 

Related commands

color network-slice

display network-slice configuration

Use display network-slice configuration to display network slicing configuration.

Syntax

display network-slice configuration

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display network slicing configuration.

<Sysname> display network-slice configuration

 

Protocol number        : 0

Statistics             : Enabled

Statistics interval(s) : 100

MaxSliceNum            : 1216

MaxInterfaceSliceNum   : 256

Slice-Type              SlicePrefix

MaxIndexPrefixNum      : 32

Table 5 Command output

Field

Description

Protocol number

This field is not supported in the current software version.

Protocol number of the IPv6 hop-by-hop extension header.

Statistics

Enabling state of network slice packet statistics:

·     Enabled

·     Disabled

Statistics interval

Intervals (in seconds) at which the device collects network slice packet statistics.

MaxSliceNum

Maximum number of NSIs that can be configured in the system.

MaxInterfaceSliceNum

Maximum number of network slice channels that can be configured on the interface.

Slice-Type

Slicing method. Supported values:

·     SlicePrefix—Source address slicing method.

MaxIndexPrefixNum

Maximum number of configurable IPv6 source address prefixes carrying slice IDs.

display network-slice slice-prefix

Use display network-slice slice-prefix to display information about IPv6 source address prefixes used for NSI ID encapsulation.

Syntax

display network-slice slice-prefix [ name prefix-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name prefix-name: Specifies an IPv6 source address prefix by its name, a case-sensitive string of 1 to 31 characters. If you do not specify an IPv6 source address prefix, this command displays information for all IPv6 source address prefixes.

Examples

# Display information about IPv6 source address prefixes used for NSI ID encapsulation.

<Sysname> display network-slice slice-prefix

 

Total number:      1

----------------------------------

Index:                        1

Name:                         aaa

IPv6 prefix:                  100:1:2::

Common length:                48

Prefix length:                80

Table 6 Command output

Field

Description

Total number

Total number of IPv6 source address prefixes used for NSI ID encapsulation on the device.

Index

Index value of an IPv6 source address prefix.

IPv6 prefix

IPv6 source address prefix.

Common length

Length of the slice common prefix.

Prefix length

Length of the IPv6 source address prefix.

 

Related commands

index prefix-name

display network-slice statistics

Use display network-slice statistics to display network slice packet statistics.

Syntax

display network-slice statistics [ slice-id slice-instance-id ] [ interface interface-type interface-number ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slice-id slice-instance-id: Specifies an NSI by its ID in the range of 0 to 1023. If you do not specify an NSI, this command displays network slice packet statistics for all NSIs.

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays network slice packet statistics for all interfaces.

verbose: Displays detailed network slice packet statistics. If you do not specify this keyword, this command displays brief network slice packet statistics.

Examples

# Display brief network slice packet statistics for NSI 200.

<Sysname> display network-slice statistics slice-id 200 interface ten-gigabitethernet 3/0/1

 

Network slice statistics

 Interface  : Ten-GigabitEthernet3/0/1

 Slice ID   : 200

 

 [total]

  Pass:               42,430,945 packets,                 0 bytes

  Discard:            2,368,695,114 packets,              0 bytes

  Last 50 seconds pass rate:

                      72,498 pps,                         0 bps

  Last 50 seconds discard rate:

                      4,048,135 pps,                      0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

# Display detailed network slice packet statistics for NSI 200.

<Sysname> display network-slice statistics slice-id 200 interface ten-gigabitethernet 3/0/1 verbose

 

Network slice statistics

 Interface : Ten-GigabitEthernet3/0/1

 SliceID   : 200

     

 [be]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [af1]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [af2]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [af3]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [af4]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [ef]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [cs6]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [cs7]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

 [total]

  Pass:               0 packets,                          0 bytes

  Discard:            0 packets,                          0 bytes

  Last 50 seconds pass rate:

                      0 pps,                              0 bps

  Last 50 seconds discard rate:

                      0 pps,                              0 bps

  Last 5 seconds pass rate:

                      7298 pps,                           0 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       0 bps

Table 7 Command output

Field

Description

Network slice statistics

Network slice packet statistics.

Interface

Interface with network slicing enabled.

SliceID

ID of the NSI.

service-class

Service class:

·     be

·     af1

·     af2

·     af3

·     af4

·     ef

·     cs6

·     cs7

Slot ID

Slot ID of a member interface of a Layer 3 aggregate interface. This field is displayed only when the specified interface is a Layer 3 aggregate interface.

Total

Summarized packet statistics for all service classes.

Pass

Number of packets and bytes that have passed through.

Only the number of packets can be collected. The number of bytes cannot be collected.

Discard

Number of packets and bytes discarded.

Only the number of packets can be collected. The number of bytes cannot be collected.

Last m seconds pass rate

Number of packets and bits that have passed through per second during the last m seconds. Value m equals 10 times the collection interval. You can use the statistics interval command to set the collection interval.

Only the number of packets can be collected. The number of bits cannot be collected.

Last m seconds discard rate

Number of packets and bits discarded per second during the last m seconds. Value m equals 10 times the collection interval. You can use the statistics interval command to set the collection interval.

Only the number of packets can be collected. The number of bits cannot be collected.

Last n seconds pass rate

Number of packets and bytes that have passed through per second during the last n seconds. Value bits equals the collection interval. You can use the statistics interval command to set the collection interval.

Only the number of packets can be collected. The number of bits cannot be collected.

Last n seconds discard rate

Number of packets and bits discarded per second during the last n seconds. Value n equals the collection interval. You can use the statistics interval command to set the collection interval.

Only the number of packets can be collected. The number of bits cannot be collected.

Related commands

reset network-slice statistics

statistics interval

index prefix-name

Use index prefix-name to configure an IPv6 source address prefix for NSI ID encapsulation.

Use undo index prefix-name to delete an IPv6 source address prefix for NSI ID encapsulation.

Syntax

index index-number prefix-name prefix-name ipv6-prefix ipv6-address common-length common-length [ prefix-length prefix-length [ default ] ]

undo index index-number

Default

No IPv6 source address prefixes are configured for NSI ID encapsulation.

Views

Slice prefix view

Predefined user roles

network-admin

mdc-admin

Parameters

index-number: Specifies an index value for the IPv6 source address prefix, in the range of 1 to 65535.

prefix-name: Specifies a name for the IPv6 source address prefix, which is a case-sensitive string of 1 to 31 characters.

ipv6-prefix ipv6-address: Specifies the IPv6 source address prefix.

common-length common-length: Specifies the length of the slice common prefix, in the range of 32 to 95.

prefix-length prefix-length: Specifies the length of the IPv6 source address prefix, in the range of 33 and 96. If you do not specify the length of the IPv6 source address prefix, the prefix only contains a slice common prefix and does not contain a node ID, and the IPv6 source address prefix will not be advertised through IGP.

default: Specifies the IPv6 source address prefix as the default IPv6 source address prefix. If you do not specify an IPv6 source address prefix when you configure the mapping between an NSI and the color extended community attribute value of a BGP route, the device will use the default IPv6 source address prefix and its associated NSI ID as the IPv6 source address of network slice packets. If you do not specify the default keyword, the current IPv6 source address prefix will not be used as the default IPv6 source address prefix.

Usage guidelines

Application scenarios

If the SRv6 source node uses source address slicing for NSI ID encapsulation, you must configure IPv6 source address prefixes on the SRv6 source node. The source node will encapsulate an IPv6 source address in network slice packets based on the IPv6 source address prefixes.

You must also configure the IPv6 source address prefixes on the transit nodes along the SRv6 forwarding path. When a transit node receives a packet, it compares the highest significant common-length bits of the IPv6 source address in the packet with the slice common prefixes configured in the IPv6 source address prefixes. If they are identical, the packet is a network slice packet with NSI ID information carried in its source address.

Operating mechanism

As shown in Figure 1, when the source address slicing method is used to encapsulate NSI ID information, the IPv6 source address that carries an NSI ID includes the following components:

·     Slice common prefix—Used to identify that the IPv6 source address carries NSI ID information. The component is dedicated to slicing, and it is located in the highest significant bits of the IPv6 source address. You can specify the length of the slice common prefix by using the common-length common-length option in the index prefix-name command. Typically, all devices in the same SRv6 slicing network use the same slice common prefix.

·     Node ID—Used to identify different devices in the same SRv6 slicing network. The length of the node ID equals the value of the prefix-length argument minus the value of the common-length argument. The slice common prefix and node ID together form the prefix of the IPv6 source address that carries an NSI ID. BGP can learn an IPv6 source address prefix and flushes it to the local routing table after you execute the index prefix-name command with the prefix-length argument specified. In addition, the device creates a direct route entry in the local FIB table based on the IPv6 source address prefix. If you execute the advertise slice-prefix-route command, the device imports the IPv6 source address prefix to IS-IS and use IS-IS to advertise the prefix to other devices. After advertisement, the IPv6 source address prefix can be used for inter-device routing.

·     NSI ID (slice ID)—Least significant 32 bits of the IPv6 source address. The first bit is the Strict-Flag flag bit.

¡     If this flag bit is set to 1 in a network slice packet, the device must forward the packet through a network slice channel bound to the NSI ID. If no network slice channels are bound to the NSI ID, the device discards the packet.

¡     If this flag bit is set to 0 in a network slice packet, the device searches for a network slice channel bound to the NSI ID to forward the packet. If no network slice channels are bound to the NSI ID, the device does not discard the packet. Instead, it forwards the packet according to the SRv6 packet forwarding process.

·     Padding—If the total length of the slice common prefix, node ID, and NSI ID is less than 128 bits, fill with 0s after the IPv6 source address prefix to make up for it.

Figure 1 Components of the IPv6 source address that carries an NSI ID

 

Restrictions and guidelines

·     You can repeat the index prefix-name command to configure multiple IPv6 source address prefixes and specify different index values for the IPv6 source address prefixes. Two IPv6 source address prefixes with different index values and names cannot be completely identical or have overlapping relationships.

·     If you execute the index prefix-name command multiple times to configure multiple IPv6 source address prefixes but specify the same index value, only the most recent configuration takes effect.

·     To ensure that an IPv6 source address prefix can be advertised by IGP and the reverse packets can be routed back to the SRv6 source node, you must specify the prefix-length prefix-length option when using the index prefix-name command to configure the IPv6 source address prefix on the SRv6 source node. You do not need to specify the prefix-length prefix-length option on the SRv6 transit nodes. These transit nodes only use the slice common prefix to identify whether the received IPv6 packets are network slice packets.

·     On the same device, you can specify the default keyword for only one IPv6 source address prefix.

·     Use caution when you plan IPv6 source addresses carrying an NSI ID. If the IPv6 source address prefixes for NSI ID encapsulation (configured by the index prefix-name command) and the source address for SRv6 VPN encapsulation (configured by the encapsulation source-address command) overlap, the VPN packets will be forwarded through the network slice channel.

 

CAUTION

CAUTION:

An IPv6 source address prefix carrying an NSI ID needs to be advertised by IS-IS for network-wide IS-IS route convergence. If IS-IS route convergence time and BFD time are not synchronized, BFD service anomalies might occur.

 

Examples

# Configure an IPv6 source address prefix. The index of the IPv6 source address prefix is 1, the name of the IPv6 source address prefix is SrcPrefix1, the IPv6 source address prefix is 1001:0:1::, the length of the slice common prefix is 48 bits, and the length of the IPv6 source address prefix is 80 bits.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] slice-prefix

[Sysname-network-slice-prefix] index 1 prefix-name SrcPrefix1 ipv6-prefix 1001:0:1:: common-length 48 prefix-length 80

Related commands

color network-slice

instance (network slice view)

Use instance to create an NSI and enter its view or enter the view of an existing NSI.

Use undo instance to delete the specified NSI.

Syntax

instance slice-instance-id

undo instance slice-instance-id

Default

No NSIs exist.

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Parameters

slice-instance-id: Specifies an NSI ID in the range of 0 to 1023.

Usage guidelines

If the network slice channel is in queue group mode (specified with the queue-group mode enable command), the device supports creating a maximum of 16 NSIs.

You can use the display network-slice configuration command to view the maximum number of NSIs supported by the device.

If an NSI is associated with an interface through the slice-id command, use the undo slice-id command to cancel the association before you delete the NSI.

Examples

# Create NSI 1 and enter its view.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] instance 1

[Sysname-network-slice-instance-1]

Related commands

slice-id

display network-slice configuration

network-slice (system view)

Use network-slice to enable network slicing and enter network slice view.

Use undo network-slice to disable network slicing.

Syntax

network-slice

undo network-slice

Default

Network slicing is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

You can configure network slicing settings in network slice view.

Examples

# Enable network slicing and enter network slice view.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice]

network-slice color-mapping

Use network-slice color-mapping to create the NSI and color mapping view and enter the view, or enter the view of the existing NSI and color mapping view.

Use undo network-slice color-mapping to delete the NSI and color mapping view and the NSI-to-color mappings in the view.

Syntax

network-slice color-mapping

undo network-slice color-mapping

Default

The NSI and color mapping view does not exist.

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

You can configure mappings between BGP route colors and NSIs in the NSI and color mapping view.

Examples

# Create the NSI and color mapping view.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] network-slice color-mapping

[Sysname-network-slice-color-mapping]

network-slice enable

Use network-slice enable to enable network slicing for an interface and enter network slice view of the interface.

Use undo network-slice enable to disable network slicing for an interface.

Syntax

network-slice enable

undo network-slice enable

Default

Network slicing is disabled for an interface.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

An output interface with network slicing enabled forwards packets carrying an NSI ID through a network slice channel (matching the NSI ID) on the interface. In different network slicing scenarios, you can execute this command to enable network slicing on the interface, but the mechanisms and interface types used for network slicing vary by scenario. For example, in the SRv6 network slicing scenario, packets will be encapsulated with and carry the NSI ID information. Typically, network slicing is enabled for Layer 3 Ethernet interfaces or FlexE logical interfaces. In the campus network slicing scenario, an NSI ID is bound to packets and is not carried in the packets. In this case, network slicing can be enabled on Layer 2 Ethernet aggregate interfaces.

If you configure the network-slice enable command to enable network slicing for the interface, you cannot add the interface to a link aggregate group.

This command is supported only on physical interfaces and Layer 2 aggregate interfaces. In the current software version, the command is not supported on Layer 3 aggregate interfaces or their member interfaces (including the associated Layer 3 aggregate subinterfaces).

Examples

# Enable network slicing for Ten-GigabitEthernet 3/0/1 and enter network slice view of the interface.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 3/0/1

[Sysname-Ten-GigabitEthernet3/0/1] network-slice enable

[Sysname-Ten-GigabitEthernet3/0/1-network-slice]

queue-buffer-class

Use queue-buffer-class to configure queue buffer class for a network slice channel.

Use undo queue-buffer class to restore the default.

Syntax

queue-buffer-class number

undo queue-buffer-class

Default

The queue buffer class for a network slice channel is 7.

Views

NSI view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies a queue buffer class by its number for a network slice channel. The value range for this argument is 0 to 10. The greater the number, the larger the available buffer space.

Usage guidelines

Operating mechanism

The queue buffer size on the output interface is fixed. The higher the queue buffer class, the larger the buffer space available for packets in the network slice channel. If network congestion occurs on the output interface, packets are less likely to be discarded when a larger buffer space is available.

Restrictions and guidelines

For applications that are sensitive to packet loss, you can set a larger queue buffer class to reduce the packet loss probability.

As a best practice, do not manually adjust this parameter setting.

Examples

# Configure the queue buffer class as 3 for a network slice channel.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] instance 1

[Sysname-network-slice-instance-1] queue-buffer-class 3

queue-group mode enable

Use queue-group mode enable to configure the queue group mode for network slice channels.

Use undo queue-group mode enable to restore the default.

Syntax

queue-group mode enable

undo queue-group mode enable

Default

The network slice channels are in queue mode. That is, each network slice channel corresponds to one queue on an interface.

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

This command takes effect only on SF series interface modules. As a best practice when you configure this feature, make sure all interface modules on the device are the SF series. If other series of interface modules exist, use queue-mode network slicing.

Only default MDCs support this command.

This feature allows for further classification of service packets within a network slice channel. It first performs queue scheduling based on service granularity and then performs queue scheduling based on the same network slice channel.

After you configure the queue group mode for network slice channels, each network slice channel corresponds to one queue on an interface. Each queue group contains eight queues. For the first scheduling, different types of service packets are mapped to different network slice channels based on the bindings between packets and NSI IDs configured with the index binding-type command. Then, a secondary scheduling is performed, which maps the packets to different queues within the network slice channels based on the packets' local priorities, achieving hierarchical scheduling management.

You cannot directly switch the network slice channel from queue mode to queue group mode by using this command. To do that, enable the network slicing feature again, execute this command, and then restart the device for the queue group mode to take effect.

Examples

# Configure the queue group mode for network slice channels.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] queue-group mode enable

reset network-slice statistics

Use reset network-slice statistics to clear network slice packet statistics.

Syntax

reset network-slice statistics [ slice-id slice-instance-id ] [ interface interface-type interface-number ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

slice-id slice-instance-id: Specifies an NSI by its ID in the range of 0 to 1023. If you do not specify an NSI, this command clears network slice packet statistics for all NSIs.

interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command clears network slice packet statistics for all interfaces.

Examples

# Clear network slice packet statistics for NSI 200.

<Sysname> reset network-slice statistics slice-id 200

Related commands

display network-slice statistics

slice-encapsulation ipv6-source

Use slice-encapsulation ipv6-source to enable the feature of carrying an NSI ID in the IPv6 source address.

Use undo slice-encapsulation to disable the feature of carrying an NSI ID in the IPv6 source address.

Syntax

slice-encapsulation ipv6-source

undo slice-encapsulation

Default

An NSI ID is encapsulated in the IPv6 hop-by-hop extension header.

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

An NSI ID can be encapsulated in different positions in an IPv6 packet. According to the NSI ID encapsulation position, the device supports the following encapsulation methods:

·     Source address slicing method—Uses the least significant 32 bits of the source address in IPv6 packets to carry NSI ID information. To use this method, you must plan the 128-bit source address properly. The advantage is that the device only needs to parse the IPv6 basic header to obtain the NSI ID information and does not need to increase the length of IPv6 packets. The overhead of the packet header is small, and the device can parse and forward packets more efficiently.

This command enables the SRv6 source node to use the source address slicing method to encapsulate an NSI ID.

Examples

# Enable the feature of carrying an NSI ID in the IPv6 source address.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] slice-encapsulation ipv6-source

slice-id

Use slice-id to create a network slice channel for an interface, and specify the bandwidth for the network slice channel.

Use undo slice-id to remove a network slice channel from an interface.

Syntax

slice-id slice-instance-id flex-channel flex-channel-value [ shared ]

undo slice-id slice-instance-id flex-channel

Default

No network slice channels are configured on an interface.

Views

Network slice view of the interface

Predefined user roles

network-admin

mdc-admin

Parameters

slice-instance-id: Specifies an NSI by its ID associated with the network slice channel, in the range of 0 to 1023.

flex-channel flex-channel-value: Specifies the bandwidth for the network slice channel, in the range of 1 to 4294967295, in Mbps.

shared: Specifies the shared mode. In this mode, non-network slice packets and network slice packets carrying the specified NSI ID can share the bandwidth of this network slice channel. If you do not specify this keyword, the network slice channel is in exclusive mode. In exclusive mode, only network slice packets carrying the specified NSI ID can be forwarded through this network slice channel.

Usage guidelines

Operating mechanism

Use this command to create network slice channels on interfaces. The device supports the following types of network slice channels:

·     Network slice channels in exclusive mode—When you configure a network slice channel on an interface, specify the flex-channel keyword without the shared keyword. The device will allocate exclusive-mode scheduling queue resources to this network slice channel. Network slice packets from other network slice channels and non-network slice packets cannot preempt the scheduling queue resources of this network slice channel. When the NSI ID carried by a network slice packet matches the NSI ID of this network slice channel, the device uses this channel to forward that packet. For example, a network slice channel with NSI ID 10 is operating in exclusive mode and 100 Mbps of bandwidth resources is allocated to this channel. Network slice packets matching other network slice channels and non-network slice packets cannot occupy the resources of this network slice channel, even if this network slice channel does not have traffic.

·     Network slice channels in shared mode—When you configure a network slice channel on an interface, specify the flex-channel keyword with the shared keyword. The device will assign shared-mode scheduling queue resources to this network slice channel. Non-network slice packets can compete for the scheduling queue resources of this network slice channel during network congestion. When the NSI ID carried by a network slice packet matches the NSI ID of this network slice channel, the device uses this channel to forward the network slice packet. For example, a network slice channel with NSI ID 20 is operating in shared mode and 100 Mbps of bandwidth resources is allocated to this network slice channel. When this network slice channel does not have traffic but congestion exists on the interface, the resources of this network slice channel can be used by other traffic. Network slice channels in shared mode enable more flexible traffic scheduling.

Restrictions and guidelines

Make sure the NSI specified for the slice-instance-id argument has been created by using the instance command.

You can configure multiple network slice channels on an interface.

If you execute the slice-id { data-plane | flex-channel } command multiple times to specify the same channel but different bandwidths for the same interface, the most recent configuration takes effect.

Examples

# Enable network slicing for Ten-GigabitEthernet 3/0/1, create a network slice channel associated with NSI 10, and set the bandwidth to 50 Mbps for the channel.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 3/0/1

[Sysname-Ten-GigabitEthernet3/0/1] network-slice enable

[Sysname-Ten-GigabitEthernet3/0/1-network-slice] slice-id 10 flex-channel 50

Related commands

instance (network slice view)

slice-prefix

Use slice-prefix to enter slice prefix view from network slice view.

Use undo slice-prefix to delete all slice prefix settings.

Syntax

slice-prefix

undo slice-prefix

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

When the source address slicing method is used to encapsulate NSI ID information, the IPv6 source address carrying NSI ID information contains an IPv6 source address prefix, an NSI ID, and the padding bits. The IPv6 source address prefix includes a slice common prefix and a node ID. The slice common prefix is dedicated for slicing. You must plan and manually configure the slice common prefix.

To configure IPv6 source address prefixes for NSI ID encapsulation, you must execute this command to enter slice prefix view.

Examples

# Enter slice prefix view from network slice view.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] slice-prefix

[Sysname-network-slice-prefix]

statistics enable

Use statistics enable to enable network slice packet statistics.

Use undo statistics enable to disable network slice packet statistics.

Syntax

statistics enable

undo statistics enable

Default

Network slice packet statistics is disabled.

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

With network slice packet statistics enabled, you can use the display network-slice statistics command to display statistics of packets forwarded through the specified network slice.

Examples

# Enable network slice packet statistics.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] statistics enable

Related commands

display network-slice statistics

statistics interval

Use statistics interval to set the interval for collecting network slice packet statistics.

Use undo statistics interval to restore the default.

Syntax

statistics interval time

undo statistics interval

Default

The device collects network slice packet statistics at 30-second intervals.

Views

Network slice view

Predefined user roles

network-admin

mdc-admin

Parameters

time: Specifies an interval in the range of 5 to 65535 seconds.

Usage guidelines

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

Examples

# Set the interval to 100 seconds for collecting network slice packet statistics.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] statistics interval 100

Related commands

statistics 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
新华三官网