11-Segment Routing Command Reference

HomeSupportRoutersCR16000-F SeriesReference GuidesCommand ReferencesH3C CR16000-F Routers Command Reference-R838x-6W10111-Segment Routing Command Reference
07-SRv6 network slicing commands
Title Size Download
07-SRv6 network slicing commands 213.00 KB

SRv6 network slicing commands

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

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

Parameters

slice-id slice-instance-id: Specifies an NSI by its ID in the range of 0 to 4294967295. 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  : 1

   Interface :

     Ten-GigabitEthernet3/1/1.2

     Ten-GigabitEthernet3/1/2

     Ten-GigabitEthernet3/1/3

     Ten-GigabitEthernet3/1/4.1

Table 1 Command output

Field

Description

Slice ID

ID of the NSI.

Interface

Interface associated with the NSI.

Related commands

slice-id flex-channel

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

Examples

# Display network slicing configuration.

<Sysname> display network-slice configuration

 

Protocol number        : 160

Statistics             : Enabled

Statistics interval(s) : 100

MaxSliceNum            : 1000

MaxInterfaceSliceNum   : 200

Table 2 Command output

Field

Description

Protocol number

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.

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

Parameters

slice-id slice-instance-id: Specifies an NSI by its ID in the range of 0 to 4294967295. 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/1/1

 

Network slice statistics

 Interface  : Ten-GigabitEthernet3/1/1

 Slice ID   : 200

 

 [total]

  Pass:               42,430,945 packets,                 7,298,122,540 bytes

  Discard:            2,368,695,114 packets,              407,415,559,608 bytes

  Last 50 seconds pass rate:

                      72,498 pps,                         99,757,056 bps

  Last 50 seconds discard rate:

                      4,048,135 pps,                      5,570,233,752 bps

  Last 5 seconds pass rate:

                      7298 pps,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 bps

# Display detailed network slice packet statistics for NSI 200.

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

 

Network slice statistics

 Interface : Ten-GigabitEthernet3/1/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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 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,                           99,757,056 bps

  Last 5 seconds discard rate:

                      4148,135 pps,                       5,570,233,752 bps

Table 3 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.

Discard

Number of packets and bytes discarded.

Last m seconds pass rate

Number of packets and bytes 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.

Last m seconds discard rate

Number of packets and bytes 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.

Last n seconds pass rate

Number of packets and bytes that have passed through 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.

Last n seconds discard rate

Number of packets and bytes 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.

Related commands

reset network-slice statistics

statistics interval

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

Parameters

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

Usage guidelines

The maximum number of NSIs supported by the device is 6000. 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 flex-channel command, use the undo slice-id flex-channel 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 flex-channel

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

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 (SRv6 TE policy path preference view)

Use network-slice to specify an NSI ID for an SRv6 TE policy candidate path.

Use undo network-slice to restore the default.

Syntax

network-slice slice-instance-id

undo network-slice

Default

No NSI ID is specified for an SRv6 TE policy candidate path.

Views

SRv6 TE policy path preference view

Predefined user roles

network-admin

Parameters

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

Usage guidelines

You can specify an NSI ID for an SRv6 TE policy candidate path. If the path is selected, the device encapsulates an IPv6 hop-by-hop extension header that contains the NSI ID into packets forwarded through the path. The packets are called network slice packets.

If an output interface on the path contains a network slice channel that matches the NSI ID of a network slice packet, the packet is forwarded through the channel.

If no output interface on the path contains a network slice channel that matches the NSI ID of a network slice packet, the device processes the packet depending on scenarios.

·     Typically, the value for the first bit (D flag) in the Flags field of the IPv6 hop-by-hop extension header is 0. The device ignores the NSI ID in the network slice packet and forwards the packet out of the output interface as a common IPv6 packet.

·     In some special scenarios, for example, BFD/SBFD or ping/tracert scenarios in an SRv6 network, the value for the first bit (D flag) in the Flags field of the IPv6 hop-by-hop extension header can be set to 1. In this case, the device cannot ignore the NSI ID in the network slice packet. The packet is dropped.

Examples

# Specify NSI ID 10 for candidate path 20 of SRv6 TE policy a1.

<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-pref20] network-slice 10

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

Usage guidelines

A Layer 3 output interface with network slicing enabled forwards packets carrying an NSI ID through a network slice channel (matching the NSI ID) on the interface.

Only the following interfaces support this feature:

·     Layer 3 Ethernet interfaces.

·     Layer 3 Ethernet subinterfaces.

·     Layer 3 aggregate interfaces.

·     Layer 3 aggregate subinterfaces.

·     FlexE logical interfaces.

·     FlexE logical subinterfaces.

You can enable this feature for a Layer 3 aggregate interface or its subinterface only when all member interfaces of the Layer 3 aggregate interface are on the following cards:

 

Card category

Cards

CEPC

CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1802X, CSPEX-1802XA, CSPEX-2612XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA

SPE

RX-SPE200-E

 

After enabling the feature, you cannot add physical interfaces on a card that does not support this feature to the Layer 3 aggregate interface.

Examples

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

<Sysname> system-view

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

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

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

protocol-number

Use protocol-number to specify the protocol number for IPv6 hop-by-hop extension headers.

Use undo protocol-number to restore the default.

Syntax

protocol-number number

undo protocol-number

Default

The protocol number of IPv6 hop-by-hop extension headers is 0.

Views

Network slice view

Predefined user roles

network-admin

Parameters

number: Specifies a number. The value takes 0 or is in the range of 160 to 252.

Usage guidelines

With SRv6 network slicing enabled, an SRv6 source node adds an IPv6 hop-by-hop extension header to a packet. The IPv6 hop-by-hop extension header contains an NSI ID. By default, the protocol number in an IPv6 hop-by-hop extension header is 0, indicating that the Next Header field of the preceding IPv6 header is 0. Upon receiving a packet, a network slicing incapable device cannot parse the IPv6 hop-by-hop extension header with protocol number 0. As a result, the packet processing becomes slow or the packet is dropped. To avoid such issues, you can use this feature to set the protocol number to a value other than 0. After that, the network slicing incapable device ignores the IPv6 hop-by-hop extension header with protocol number 0, and forwards the packet based on its IPv6 basic header. The protocol number of IPv6 hop-by-hop extension headers varies by vendor. You can edit the protocol number for interoperability between devices from different vendors.

Examples

# Specify the protocol number as 160 for IPv6 hop-by-hop extension headers.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] protocol-number 160

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

Parameters

slice-id slice-instance-id: Specifies an NSI by its ID in the range of 0 to 4294967295. 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-id flex-channel

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

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

Syntax

slice-id slice-instance-id flex-channel flex-channel-value

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

Parameters

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

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

Usage guidelines

After you create network slice channels on the interface, the device assigns an independent scheduling queue to each network slice channel identified by an NIS ID. Packets matching an NSI ID will be forwarded through the associated channel. The protocol number of the IPv6 hop-by-hop extension headers of packets is the protocol number specified for the NSI ID associated with the channel.

The NSI specified in this command must already exist.

You can configure multiple network slice channels on an interface.

You can execute this command on an interface for multiple times. The most recent configuration takes effect.

Examples

# Enable network slicing for Ten-GigabitEthernet 3/1/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/1/1

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

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

Related commands

instance (network slice view)

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

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

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
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
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
新华三官网