14-Network Slicing Command Reference

HomeSupportReference GuidesCommand ReferencesH3C S5100[S5500]-D-G&S5130S-G[-V2] Command References-R8336Pxx-6W10014-Network Slicing Command Reference
01-Network slicing commands
Title Size Download
01-Network slicing commands 131.53 KB

Network slicing commands

 

NOTE:

Network slicing is available only on the S5130S-HI-G or S5130S-EI-G-V2 series switches.

description

Use description to configure a description for a network slice instance (NSI).

Use undo description to restore the default.

Syntax

description text

undo description

Default

No description is configured 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 bandwidth usage statistics

Use display network-slice bandwidth usage statistics to display the bandwidth usage of 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

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 network slices on all interfaces.

Examples

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

<Sysname> display network-slice bandwidth usage statistics

 

Network slice bandwidth usage of interface

  GigabitEthernet1/0/1

    Total bandwidth               : 1000 Mbps

    Network slice bandwidth       : 850 Mbps

    Channelization bandwidth      : 100 Mbps

    Remaining bandwidth           : 50 Mbps

 

Table 1 Command output

Field

Description

Network slice bandwidth usage of interface

Bandwidth usage information for network slices on a base interface.

Total Bandwidth

Total bandwidth of the interface.

Network slice bandwidth

Bandwidth used by network slices on the current interface.

Channelization bandwidth

Bandwidth used by slicing interfaces on the base interface.

Remaining bandwidth

Remaining bandwidth of the current interface.

 

Related commands

slice-id flex-channel

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.  The value range for the slice-instance-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect. 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             GigabitEthernet1/0/1                            Active

              GigabitEthernet1/0/1.1                          Active

 

Table 2 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 flex-channel

display network-slice instance

Use display network-slice instance to display network slice configuration information.

Syntax

display network-slice instance [ slice-id slice-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slice-id slice-id: Specifies an NSI by its ID.  The value range for the slice-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect. If you do not specify an NSI, this command displays configuration information for all network slices.

Examples

# Display configuration information for all network slices.

<Sysname> display network-slice instance

 

Total number: 2

 

Statistics                : Enabled

Statistics interval(s) : 100

Slice ID         Priority         Queue buffer class

1                  0                 4

2                  0                 3

 

Table 3 Command output

Field

Description

Total number

Total number of network slices.

Statistics

Enabling status for network slice packet statistics:

·     Enabled.

·     Disabled.

Statistics interval

Interval for network slice packet statistics, in seconds.

Slice ID

ID of the NSI.

Priority

This field is not supported in the current software version.

Scheduling priority for the network slice channel.

Queue buffer class

Class of the queue buffer.

 

Related commands

queue-buffer-class

display network-slice nsi-mapping slice-id

Use display network-slice nsi-mapping slice-id to display binding information for a specific NSI.

Syntax

display network-slice nsi-mapping slice-id slice-id

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slice-id slice-id: Specifies an NSI by its ID. The value range for the slice-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect.

Examples

# Display bind information for NSI 1.

<Sysname> display network-slice nsi-mapping slice-id 1

 

  index        : 3

  type         : dscp

  value        : 1 3 4 to 8 10 11 to 30

  replace dscp : 10

Table 4 Command output

Field

Description

index

Bound attribute index.

type

Attribute type bound to the NSI. Options include:

·     dscp

·     vlan

·     interface

value

Attribute value bound to the NSI.

replace dscp

DSCP value to be replaced. If the DSCP value is not replaced, a hyphen (-) is displayed.

 

Related commands

index binding-type

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. The value range for the slice-instance-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect. 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 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 1.

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

 

Network slice statistics

 Interface  : GigabitEthernet1/0/1

 Slice ID   : 1

 

 [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

Table 5 Command output

Field

Description

Network slice statistics

Network slice packet statistics.

Interface

Interface with network slicing enabled.

SliceID

ID of the NSI.

total

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

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.

Last n seconds pass rate

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

 

Related commands

reset network-slice statistics

statistics interval

index binding-type

Use index binding-type to bind packets to NSI IDs.

Use undo index binding-type to delete the bindings between packets and NSI IDs.

Syntax

index index-value binding-type { dscp { dscp-startvalue [ to dscp-endvalue ] } &<1-32> | interface interface-type interface-number | vlan { vlan-startvalue [ to vlan-endvalue ] } &<1-32> } slice slice-id [ replace dscp dscp-value ]

undo index index-value binding-type

Default

The bindings between packets and NSI IDs are not configured. That is, no packets are scheduled or forwarded through the network slice channels identified by NSI IDs on an interface.

Views

NSI-to-packet mapping view

Predefined user roles

network-admin

Parameters

index-value: Specifies an index for the binding between packets and NSI ID. The value range for this argument is 1 to 65535.

dscp { dscp-startvalue [ to dscp-endvalue ] } &<1-32>: Specifies DSCP values or value ranges. Packets carrying the specified DSCP values will be scheduled and forwarded in the network slice channel identified by the specified NSI ID. The dscp-startvalue argument specifies the start DSCP value in the range of 0 to 63. The dscp-endvalue argument specifies the end DSCP value in the range of 0 to 63. The end DSCP value cannot be smaller than the start DSCP value. To specify a single DSCP value, do not specify the to dscp-endvalue option. & <1-32> indicates that you can specify up to 32 DSCP values or value ranges.

interface interface-type interface-number: Specifies an interface by its type and number. Packets received on this interface will be scheduled and forwarded in the network slice channel identified by the specified NSI ID.

vlan { vlan-startvalue [ to vlan-endvalue ] } &<1-32>: Specifies VLAN IDs or VLAN ID ranges. Packets carrying the specified VLAN IDs will be scheduled and forwarded in the network slice channel identified by the specified NSI ID. The vlan-startvalue argument specifies the start VLAN ID in the range of 1 to 4094. The vlan-endvalue argument specifies the end VLAN ID in the range of 1 to 4094. The end VLAN ID cannot be smaller than the start VLAN ID. To specify a single VLAN ID, do not specify the to vlan-endvalue option. & <1-32> indicates that you can specify up to 32 VLAN IDs or VLAN ID ranges.

slice slice-id: Specifies an NSI by its ID in the range of 0 to 6. If you configure the value as 0, the configuration does not take effect.

replace dscp dscp-value: Replaces the DSCP value in matching packets with the specified value.

Usage guidelines

Operating mechanism

With this feature configured, the device binds the specified packets to NSI IDs. When forwarding the packets through an output interface, the device searches for the network slice channel configured on the output interface. The device then schedules and forwards the packets through the network slice channel identified by the bound NSI ID. If no network slice channel identified by the bound NSI ID exists on the output interface, the device forwards the packets according to routing table lookup.

You can repeatedly execute the index binding-type command to configure multiple bindings between packets and NSI IDs identified by different index-value values. Upon receiving a packet, the system compares it with packet match criteria in ascending order of index values specified with the index binding-type command. If a match is found, the system does not continue to compare the packet with other bindings.

Restrictions and guidelines

If you repeatedly execute the index binding-type command and specify the same index value, the most recent configuration takes effect.

If you bind a DSCP/VLAN value or interface to an NSI ID, you cannot bind the DSCP/VLAN value or interface to any other NSI IDs.

In the current software version, only Layer 2 Ethernet interfaces, Layer 2 aggregate interfaces, and Layer 3 Ethernet interfaces support scheduling and forwarding the packets through the network slice channel identified by the bound NSI ID.

Examples

# Configure two bindings between packets and NSI IDs:

·     Binding 1: Binds packets carrying DSCP values 10 through 20 to NSI ID 1. The device schedules and forwards matching packets through the network slice channel identified by NSI ID 1.

·     Binding 2: Binds packets carrying VLANs 10 through 20 to NSI ID 2. The device schedules and forwards matching packets through the network slice channel identified by NSI ID 2, and replaces the DSCP values in the packets with 63.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] nsi-mapping

[Sysname-network-slice-nsi-mapping] index 1 binding-type dscp 10 to 20 slice 1

[Sysname-network-slice-nsi-mapping] index 2 binding-type vlan 10 to 20 slice 2 replace dscp 63

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. The value range for the slice-instance-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect.

Usage guidelines

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

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

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

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.

In the current software version, this command is not supported by Layer 3 aggregate interfaces and their member ports (including the associated Layer 3 aggregate subinterfaces).

Examples

# Enable network slicing for GigabitEthernet1/0/1 and enter network slice view of the interface.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] network-slice enable

[Sysname-GigabitEthernet1/0/1-network-slice]

nsi-mapping

Use nsi-mapping to create and enter NSI-to-packet mapping view.

Use undo nsi-mapping to delete the NSI-to-packet mapping view and all settings in NSI-to-packet mapping view.

Syntax

nsi-mapping

undo nsi-mapping

Default

No NSI-to-packet mapping view exists.

Views

Network slice view

Predefined user roles

network-admin

Usage guidelines

You can configure bindings between packets and NSI IDs only in NSI-to-packet mapping view created with this command.

Examples

# Create and enter NSI-to-packet mapping view.

<Sysname> system-view

[Sysname] network-slice

[Sysname-network-slice] nsi-mapping

[Sysname-network-slice-nsi-mapping]

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

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

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. The value range for the slice-instance-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect. 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 2.

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

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. The value range for the slice-instance-id argument is 0 to 6. If you configure the value as 0, the configuration does not take effect.

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

Usage guidelines

Operating mechanism

The device allocates independent scheduling queue resources for network slice channels on the interface. Packets matching an NSI ID are forwarded through the associated network slice channel. The bandwidth specified for the network slice channel created on the interface serves as both the guaranteed bandwidth and the upper limit for the channel. Traffic exceeding this bandwidth is processed by traffic shaping for buffering.

Restrictions and guidelines

The NSI ID specified in this command must already be created with the instance command.

You can configure multiple network slice channels for an interface.

Examples

# Binding interface GigabitEthernet1/0/1 to NSI ID 1, create a network slice channel, and set the bandwidth to 50 Mbps for the network slice channel.

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] network-slice enable

[Sysname-GigabitEthernet1/0/1-network-slice] slice-id 1 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.

After you create a mapping rule by executing the index binding-type command in NSI-to-packet mapping view, packets can be assigned to the configured slice. At this point, you must execute the slice-id flex-channel command for the interface to configure the network slice channel for the interface, so that packets can be counted for the corresponding network slice channel. Without the configuration, no slice channel is configured, and the network slice traffic data cannot be collected.

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