19-Deterministic Network Technologies Command Reference

HomeSupportRoutersH3C SR8800-X Router SeriesReference GuidesCommand ReferencesH3C SR8800-X Routers Command Reference-R8530Pxx-6W10119-Deterministic Network Technologies Command Reference
01-DetNet commands
Title Size Download
01-DetNet commands 98.72 KB

DetNet commands

apply flow

Use apply flow to apply the DetNet path to a DetNet flow for forwarding.

Use undo apply flow to delete a DetNet flow from the DetNet path.

Syntax

apply flow flow-id

undo apply flow flow-id

Default

A DetNet path is not applied to any DetNet flows.

Views

DetNet path view

Predefined user roles

network-admin

Parameters

flow-id: Specifies a DetNet flow by its flow ID in the range of 1 to 16000. For the configuration to take effect, specify a flow ID that exists and is valid.

Usage guidelines

Application scenarios

Use this command to apply a DetNet path to a DetNet flow, and the flow will be automatically forwarded along the path.

Restrictions and guidelines

Configure this command only on the ingress edge node of a DetNet path.

Execute this command multiple times to apply the DetNet path to multiple flows.

Examples

# Apply DetNet path 9 to DetNet flow 10.

<Sysname> system-view

[Sysname] detnetip path 9

[Sysname-detnet-path9] apply flow 10

Related commands

·     detnetip flow

·     detnetip path

·     display detnetip path

detnetip flow

Use detnetip flow to configure parameters for a DetNet flow.

Use undo detnetip flow to delete parameter settings for a DetNet flow.

Syntax

detnetip flow flow-id { { destination-ip ipv4-address mask mask-length | destination-ipv6 ipv6-address prefix prefix-length } | destination-port port-number | dscp dscp-value | protocol protocol-value | { source-ip ipv4-address mask mask-length | source-ipv6 ipv6-address prefix prefix-length } | source-port port-number }*

undo detnetip flow flow-id

Default

No parameters are configured for a DetNet flow.

Views

System view

Predefined user roles

network-admin

Parameters

flow-id: Specifies a flow ID in the range of 1 to 16000.

destination-ip ipv4-address: Specifies a destination IPv4 address for packets.

mask mask: Specifies a mask length for the destination IPv4 address, in the range of 1 to 32.

destination- ipv6 ipv6-address: Specifies a destination IPv6 address for packets.

prefix prefix-length: Specifies a prefix length for the destination IPv6 address, in the range of 1 to 128.

destination-port port-number: Specifies a destination port number in the range of 0 to 65535.

dscp dscp-value: Specifies a DSCP value for the packets in the range of 0 to 63.

protocol protocol-value: Specifies a protocol by its type value in the range of 0 to 255.

source-ip ipv4-address: Specifies a source IPv4 address for packets.

source-ipv6 ipv6-address: Specifies a source IPv6 address for packets.

source-port port-number: Specifies a source port number for packets, in the range of 0 to 65535.

Usage guidelines

Operating mechanism

Use this command to configure parameters for a DetNet flow, including the flow ID, source address, destination address, source port, destination port, protocol type, and DSCP value. If you do not configure a parameter for the DetNet flow, the device does not use that characteristic to filter the flow entering the corresponding DetNet path.

Configure this command only on the ingress edge node of a DetNet path.

Restrictions and guidelines

If you execute this command multiple times for a DetNet flow, the most recent configuration takes effect.

If a DetNet path has been applied to a DetNet flow by the apply flow command, you cannot edit or delete the DetNet flow. To edit or delete the DetNet flow, first use the undo apply flow command in the view of the corresponding DetNet path to delete the applying relationship.

Examples

# Create a DetNet flow and configure the flow ID as 10, the destination IPv6 address as AD80::ABAA:0000:00C2:0002, and the IPv6 prefix length as 112.

<Sysname> system-view

[Sysname] detnetip flow 10 destination-ipv6 AD80::ABAA:0000:00C2:0002 prefix 112

Related commands

display detnetip flow

detnetip path

Use detnetip path to create a DetNet path and enter its view, or enter the view of an existing DetNet path.

Use undo detnetip path to delete a DetNet path.

Syntax

detnetip path path-id

undo detnetip path path-id

Default

No DetNet paths exist.

Views

System view

Predefined user roles

network-admin

Parameters

path-id: Specifies a path ID in the range of 1 to 4000.

Usage guidelines

Operating mechanism

A path ID uniquely identifies a DetNet path. In DetNet path view, you can configure parameters for a DetNet path to define the forwarding of DetNet flows to which the path is applied, including the supported network type, source interface, path policy, and forwarding timeslot.

Restrictions and guidelines

Configure this command only on the ingress edge node of a DetNet path.

Examples

# Create a DetNet path with path ID 10 and enter its view.

<Sysname> system-view

[Sysname] detnetip path 10

[Sysname-detnet-path10]

Related commands

display detnetip path

display detnetip capability

Use display detnetip capability to display DetNet capability information of an interface.

Syntax

display detnetip capability interface interface-type interface-number

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface interface-type interface-number: Displays DetNet capability information of the specified interface. interface-type interface-number specifies an interface by its type and number.

Examples

# Display DetNet capability information of Ten-GigabitEthernet3/1/1.

<Sysname> display detnetip capability interface ten-gigabitethernet 3/1/1

 DetNet capability:

   Interface        : Ten-GigabitEthernet3/1/1

   Bandwidth        : 12 kbps

   Number of queues : 15

   Queue timeslot   : 10 us

Table 1 Command output

Field

Description

DetNet capability

DetNet capability information.

Interface

Interface name.

Bandwidth

Interface bandwidth in kbps.

Number of queues

Number of queues on the interface.

Queue timeslot

Packet sending duration for each queue on the interface, in microseconds.

display detnetip flow

Use display detnetip flow to display DetNet flow information.

Syntax

display detnetip flow [ id flow-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

id flow-id: Specifies a DetNet flow by its flow ID in the range of 1 to 16000. If you do not specify a DetNet flow, this command displays parameter settings for all DetNet flows.

Examples

# Display parameter settings for DetNet flow 10.

<Sysname> display detnetip flow id 10

 DetNet IP flow information:

   Maximum DetNet IP flows: 1024

   Flow ID            : 10

     destination-ip   : 1.1.1.1/24

     source-ip        : -

     destination-ipv6 : 1::1/112

     source-ipv6      : 1::2/112

     destination-port : 8000

     source-port      : 7000

     protocol         : 2

     dscp             : 30

Table 2 Command output

Field

Description

Maximum DetNet IP flows

The maximum number of DetNet flows currently supported.

Flow ID

DetNet flow ID.

destination-ip

Destination IPv4 address/mask length.

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

source-ip

Source IPv4 address/mask length.

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

destination-ipv6

Destination IPv6 address/prefix length.

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

source-ipv6

Source IPv6 address/prefix length.

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

destination-port

Destination port number.

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

source-port

Source port number.

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

protocol

Predefined protocol type value.

dscp

DSCP value for packets.

Related commands

detnetip flow

display detnetip path

Use display detnetip path to display DetNet path information.

Syntax

display detnetip path [ id path-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

id path-id: Specifies a DetNet path by its path ID in the range of 1 to 4000. If you do not specify a DetNet path, this command displays information about all DetNet paths on the device.

Examples

# Display information about DetNet path 1.

<Sysname> display detnetip path id 1

 DetNet IP path information:

   path id          : 1

   type             : SRv6

   source-interface : Ten-GigabitEthernet3/1/1

   policy color     : 15

   end-point        : 1::1

   flow list        : 1,2

   timeslot         : 1,3,5,10,15

   group id         : 0

Table 3 Command output

Field

Description

path id

Path ID.

type

Network type for the path.

source-interface

Source interface for DetNet flows on the path.

policy color

Color value of the path policy.

end-point

Destination endpoint of the path policy.

flow list

Flow ID list of DetNet flows to which the path is applied.

timeslot

Forwarding timeslots on the path.

group id

This field is not supported in the current software version.

ID of the DetNet path group to which the path is bound.

policy color end-point

Use policy color end-point to configure the path policy attributes for a DetNet path.

Use undo policy to delete path policy attribute settings for a DetNet path.

Syntax

policy color color-value end-point ipv6 ipv6-address

undo policy

Default

No path policy attributes are configured for an SRv6 DetNet path.

Views

SRv6 DetNet path View

Predefined user roles

network-admin

Parameters

Color-value:: Specifies a Color value for an SRv6 path policy, in the range of 0 to 4294967295.

ipv6 ipv6-address: Specifies a destination endpoint by its IPv6 address for an SRv6 path policy.

Usage guidelines

Operating mechanism

After you configure the path policy attributes for a DetNet path, if the corresponding SRv6 TE policy exists on the current node, the DetNet path will automatically take effect for packet forwarding. The specified Color value is the Color attribute for the forwarding path, which is used to distinguish an SRv6 DetNet path from other SRv6 DetNet paths that are configured for the same source and destination endpoints. The specified destination endpoint IPv6 address is the IPv6 address of the destination endpoint for the SRv6 DetNet path.

Restrictions and guidelines

Configure this command only on the ingress edge node of a DetNet path.

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

You cannot configure the same policy attributes for different DetNet paths.

Examples

# Configure the Color value as 20 and the destination endpiont IPv6 address as 1000::1 for SRv6 DetNet path 10.

<Sysname> system-view

[Sysname] detnetip path 10

[Sysname-detnet-path10] type srv6

[Sysname-detnet-path10-srv6] policy color 20 end-point ipv6 1000::1

Related commands

display detnetip path

source interface

Use source interface to specify a source interface for a DetNet path.

Use undo source interface to restore the default.

Syntax

source interface interface-type interface-number

undo source interface

Default

No source interface is specified for a DetNet path.

Views

DetNet path view

Predefined user roles

network-admin

Parameters

interface-type interface-number: Specifies an interface by its type and number. Currently, only Layer 3 Ethernet interfaces and Layer 3 Ethernet sub-interfaces are supported as the source interfaces for DetNet paths.

Usage guidelines

Use this command to specify a source interface for packets to enter a DetNet path. If the source interface is not specified, the path will not take effect.

Configure this command only on the ingress edge node of a DetNet path.

Make sure the specified source interface has DetNet capability. You can use the display detnetip capability command to view DetNet capability information about an interface.

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

Examples

Configure the source interface for DetNet path 10 as Ten-GigabitEthernet3/1/1.

<Sysname> system-view

[Sysname] detnetip path 10

[Sysname-detnet-path10] source interface ten-gigabitethernet 3/1/1

Related commands

display detnetip capability

display detnetip path

timeslot

Use timeslot to configure a forwarding timeslot for a node on a DetNet path.

Use undo timeslot to delete the forwarding timeslot configuration for the specified node or all nodes.

Syntax

timeslot hop hop-index value value

undo timeslot [ hop hop-index ]

Default

The forwarding timeslot is not configured for a node on a DetNet path.

Views

DetNet path view

Predefined user roles

network-admin

Parameters

hop hop-index: Specifies a node by its index in the range of 1 to 11. The index for the ingress edge node on a DetNet path is 1, and the index of each subsequent node is increased by 1 in the packet forwarding order.

value value: Specifies a queue by its queue number for the outgoing interface of the node, in the range of 1 to 15.

Usage guidelines

Operating mechanism

Use this command to specify a queue for the outgoing interface on each node of a DetNet path. After the configuration, each node will forward the incoming packets through its outgoing interface in the timeslot for the corresponding queue.

In most cases, the SDN controller performs parameter detection and latency deviation calculation for a DetNet path, and then automatically deploys the forwarding timeslot configuration to the ingress edge node of the path. Manual configuration through the CLI is usually used for debugging.

Restrictions and guidelines

You must configure the forwarding timeslot for each node in the forwarding order of a path, which starts from the ingress edge node and ends at the egress edge node.

To add transit nodes, perform one of the following tasks:

·     Delete the forwarding timeslot configuration for all existing nodes after the new nodes, and then configure a forwarding timeslot for each node starting from the new node closest to the ingress edge node.

·     Execute the undo timeslot command to delete the forwarding timeslot configuration for all nodes on the path, and then configure a forwarding timeslot for each node in the planned forwarding order.

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

When using the undo timeslot hop hop-index command to delete the forwarding timeslot configuration for a node, make sure the node is the last node with forwarding timeslot configuration on a path.

Examples

# On DetNet path 10, specify queue 5 for the outgoing interface on the ingress edge node whose index is 1, queue 8 for the outgoing interface on node 2 and queue 10 for the outgoing interface on the egress edge node whose index is 3.

<Sysname> system-view

[Sysname] detnetip path 10

[Sysname-detnet-path10] timeslot hop 1 value 5

[Sysname-detnet-path10] timeslot hop 2 value 8

[Sysname-detnet-path10] timeslot hop 3 value 10

Related commands

display detnetip path

type

Use type to specify a path type for a DetNet path and enter the DetNet path view of the specified type.

Use undo type to restore the default.

Syntax

type srv6

undo type

Default

No path type is specified for a DetNet path.

Views

DetNet path view

Predefined user roles

network-admin

Parameters

srv6: Specifies the SRv6 type.

Usage guidelines

Currently, DetNet paths only support the SRv6 type. After entering the DetNet path view of the specified type, you can configure the corresponding network parameters for the DetNet path.

Configure this command only on the ingress edge node of a DetNet path.

Examples

# Configure DetNet path 10 as an SRv6 DetNet path and enter its SRv6 view.

<Sysname> system-view

[Sysname] detnetip path 10

[Sysname-detnet-path10] type srv6

[Sysname-detnet-path10-srv6]

Related commands

display detnetip path

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