- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Network slicing commands | 193.04 KB |
display network-slice bandwidth usage statistics
display network-slice binding-list
display network-slice instance
display network-slice nsi-mapping slice-id
display network-slice statistics
reset network-slice statistics
Network slicing commands
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
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 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
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 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
Ten-GigabitEthernet3/0/1
Total bandwidth : 1000 Mbps
Network slice bandwidth : 850 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. |
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
mdc-admin
mdc-operator
Parameters
slice-id slice-instance-id: Specifies an NSI by its ID. In queue mode, the value range for the slice-instance-id argument is 0 to 6. In queue group mode, the value range for the slice-instance-id argument is 0 to 1023. 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 Ten-GigabitEthernet3/0/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
mdc-admin
mdc-operator
Parameters
slice-id slice-id: Specifies an NSI by its ID. In queue mode, the value range for the slice-id argument is 0 to 6. In queue group mode, the value range for the slice-id argument is 0 to 1023. 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 3 4
2 5 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 |
Scheduling priority for the network slice channel. |
Queue buffer class |
Class of the queue buffer. |
Related commands
slice-priority
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
mdc-admin
mdc-operator
Parameters
slice-id slice-id: Specifies an NSI by its ID. . In queue mode, the value range for the slice-id argument is 0 to 6. In queue group mode, the value range for the slice-id argument is 0 to 1023. 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
index : 1
type : vsi-name
value : abcd
replace dscp : -
Table 4 Command output
Field |
Description |
index |
Bound attribute index. |
type |
Attribute type bound to the NSI. Options include: · dscp · vlan · vxlan-list · vsi-name · 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
mdc-admin
mdc-operator
Parameters
slice-id slice-instance-id: Specifies an NSI by its ID. In queue mode, the value range for the slice-instance-id argument is 0 to 6. In queue group mode, the value range for the slice-instance-id argument is 0 to 1023. 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 ten-gigabitethernet 3/0/1
Network slice statistics
Interface : Ten-GigabitEthernet3/0/1
Slice ID : 1
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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
Current queue length: 0 cells
[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 5 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 |
total |
Total packet statistics for all service classes. |
Pass |
Number of packets and bytes that have passed through. For SF series interface modules, only the number of packets can be collected. The number of bytes cannot be collected. |
Discard |
Number of packets and bytes discarded. For SF series interface modules, 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. For SF series interface modules, 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. For SF series interface modules, only the number of packets can be collected. The number of bits cannot be collected. |
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. For SF series interface modules, 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. For SF series interface modules, only the number of packets can be collected. The number of bits cannot be collected. |
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> | vlan { vlan-startvalue [ to vlan-endvalue ] } &<1-32> | vxlan-list { vxlan-startvalue [ to vxlan-endvalue ] } &<1-32> }* slice slice-id [ replace dscp dscp-value ]
index index-value binding-type { interface interface-type interface-number | vsi-name vsi-name }* slice slice-id
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
mdc-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.
vsi-name vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. Packets with the specified VSI will be scheduled and forwarded in the network slice channel identified by the specified NSI ID.
vxlan-list { vxlan-startvalue [ to vxlan-endvalue ] } &<1-32>: Specifies VXLAN IDs or VXLAN ID ranges. Packets carrying the specified VXLAN IDs will be scheduled and forwarded in the network slice channel identified by the specified NSI ID. The vxlan-startvalue argument specifies the start VXLAN ID in the range of 0 to 16777215. The vxlan-endvalue argument specifies the end VXLAN ID in the range of 0 to 16777215. The end VXLAN ID cannot be smaller than the start VXLAN ID. To specify a single VXLAN ID, do not specify the to xlan-endvalue option. & <1-32> indicates that you can specify up to 32 VXLAN IDs or VXLAN ID ranges.
slice slice-id: Specifies an NSI by its ID. In queue mode, the value range for the slice-id argument is 0 to 6. In queue group mode, the value range for the slice-id argument is 0 to 1023. 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/VXLAN value or interface/VSI to an NSI ID, you cannot bind the DSCP/VLAN/VXLAN value or interface/VSI 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 10. The device schedules and forwards matching packets through the network slice channel identified by NSI ID 10.
· Binding 2: Binds packets carrying VLANs 10 through 20 to NSI ID 20. The device schedules and forwards matching packets through the network slice channel identified by NSI ID 20, 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 10
[Sysname-network-slice-nsi-mapping] index 2 binding-type vlan 10 to 20 slice 20 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
mdc-admin
Parameters
slice-instance-id: Specifies an NSI ID. In queue mode, the value range for the slice-instance-id argument is 0 to 6. In queue group mode, the value range for the slice-instance-id argument is 0 to 1023. 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
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 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, 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 Ten-GigabitEthernet3/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]
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
mdc-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
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 queue mode, the value range for the slice-instance-id argument is 0 to 6. In queue group mode, the value range for the slice-instance-id argument is 0 to 1023. 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 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 [ 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 queue mode, the value range for the slice-instance-id argument is 0 to 6. In queue group mode, the value range for the slice-instance-id argument is 0 to 1023. 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. Make sure the value does not exceed the actual interface rate.
shared: Specifies the shared mode. In this mode, network slice packets with different network slice channel IDs 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 with the specified network slice channel ID can be forwarded through this network slice channel.
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.
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.
· 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 and network slice packets from other network slice channels can compete for the scheduling queue resources of this network slice channel during network congestion. Network slice channels in shared mode enable more flexible traffic scheduling.
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.
When the network slice channels are in queue group mode, first configure the binding between packets and NSI IDs. Then, execute this command on the interface to specify the bandwidth for network slice channels. If you do not perform the configuration in this way, the network slice channels might not take effect correctly.
When the network slice channels are in queue mode, the network slice channel bandwidth configuration is mutually exclusive with the queue-based traffic shaping configuration and interface WFQ queue configuration. For more information about queue-based traffic shaping and interface WFQ configuration, see QoS configuration in ACL and QoS Configuration Guide.
Examples
# Binding interface Ten-GigabitEthernet3/0/1 to NSI ID 10, create a network slice channel, and set the bandwidth to 50 Mbps for the network slice 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-priority
Use slice-priority to configure the scheduling priority for a network slice channel.
Use undo slice-priority to restore the default.
Syntax
slice-priority priority-number
undo slice-priority
Default
The scheduling priority for a network slice channel is 0.
Views
NSI view
Predefined user roles
network-admin
mdc-admin
Parameters
priority-number: Specifies a scheduling priority. The value range for this argument is 0 to 3. The greater the value, the higher the priority.
Usage guidelines
This command is supported only in queue group mode.
After you configure the queue-group mode enable command, you can use the slice-priority command in queue group mode to configure scheduling priorities for different network slice channels. Network slice channels with the same scheduling priority are scheduled in a round-robin manner. If the queue-group mode enable command is not configured, each network slice channel represents a queue in queue mode. Different network slice channels are scheduled with strict priority. The higher the NSI ID, the higher the scheduling priority.
When multiple network slice channels exist on the output interface, the device performs strict priority-based scheduling according to the scheduling priority of the network slice channels. If network congestion occurs on the output interface, packets in higher-priority network slice channels are forwarded first. Packets in lower-priority network slice channels can be scheduled in sequence only after all packets from the high-priority network slice channels are forwarded out of the queue.
Examples
# Set the scheduling priority to 3 for a network slice channel.
<Sysname> system-view
[Sysname] network-slice
[Sysname-network-slice] instance 1
[Sysname-network-slice-instance-1] slice-priority 3
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.
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
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
vxlan reserved enable
Use vxlan reserved enable to include NSI IDs in the reserved field of VXLAN packet headers.
Use undo vxlan reserved enable to not include NSI IDs in the reserved field of VXLAN packet headers.
Syntax
vxlan reserved enable
undo vxlan reserved enable
Default
NSI IDs are not included in the reserved field of VXLAN packet headers.
Views
Network slice view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
Application scenarios
You can enable this feature on VTEPs and non-VTEPs in a VXLAN network to carry different service packets through network slices and achieve differentiated scheduling for various services.
Operating mechanism
· Enable this feature on a VTEP:
When the VTEP receives the original packet, it first matches the packet's characteristics with the bindings configured with the index binding-type command to associate the original packet with the NSI ID. Then, it encapsulates the packet with a VXLAN header. During VXLAN packet encapsulation, the VTEP uses the higher 20 bits of the Reserved field in the VXLAN header to carry the NSI ID. On the output interface, the device schedules and forwards the packet based on the NSI ID through the associated network slice channel.
· Enable this feature on a non-VTEP in a VXLAN network:
The non-VTEP can read the NSI ID from the VXLAN header in a received packet. On the output interface, the device schedules and forwards the packet based on the NSI ID through the associated network slice channel.
Restrictions and guidelines
If you configure both the index binding-type and vxlan reserved enable commands on a non-VTEP in a VXLAN network, the device first compares the packet with the bindings configured with the index binding-type command.
· If a matching NSI ID is found, the device schedules the packet on the output interface based on the NSI ID.
· If no matching NSI ID is found, the device reads the NSI ID from the VXLAN header of the packet, and then schedules the packet on the output interface based on the NSI ID.
If the index binding-type command is not configured on the non-VTEP in a VXLAN network, you can use this feature as a supplementary measure to obtain the NSI ID from packets.
For the same VXLAN packet, all devices in the VXLAN network will obtain the same NSI ID for configuring unified scheduling mechanism.
Examples
# Include NSI IDs in the reserved field of VXLAN packet headers.
<Sysname> system-view
[Sysname] network-slice
[Sysname-network-slice] vxlan reserved enable