11-Network Management and Monitoring Command Reference

HomeSupportReference GuidesCommand ReferencesH3C S6805 & S6825 & S6850 & S9850 Command References-Release 66xx-6W10311-Network Management and Monitoring Command Reference
23-NetAnalysis commands
Title Size Download
23-NetAnalysis commands 82.52 KB

NetAnalysis commands

NetAnalysis is supported only in R6635 and later.

display netanalysis rocev2 cache

Use display netanalysis rocev2 cache to display the configuration and status of the RoCEv2 cache.

Syntax

display netanalysis rocev2 cache [ destination destination-ip | source source-ip ]*

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

destination destination-ip: Specifies a server IP address.

source source-ip: Specifies a client IP address.

Usage guidelines

The device uses the RoCEv2 cache to save RoCEv2 traffic statistics after receiving RoCEv2 flows. When an RoCEv2 flow ages out, the device deletes the related traffic statistics from the RoCEv2 cache.

Examples

# Display the configuration and status of the RoCEv2 cache when bidirectional mode is used for RoCEv2 traffic analysis.

<Sysname> display netanalysis rocev2 cache source 1.1.1.2 destination 2.2.2.1

NOTE:

S2D: source to destination              D2S: destination to source

RTT: round trip time                    RPT: packet throughput in read mode

WPT: packet throughput in write mode    SPT: packet throughput in send mode

I: input          O: output             L: local          R: remote

NetAnalysis cache information:

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

Flow created at      Service type

Src IP               Src QP        S2D RTT          S2D RPT       S2D SPT/WPT

S2D NAK Pkts         S2D Interface(I)               S2D Interface(O)

Dst IP               Dst QP        D2S RTT          D2S RPT       D2S SPT/WPT

D2S NAK Pkts         D2S Interface(I)               D2S Interface(O)

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

01/22/2019 09:08:15  RC

1.1.1.2              93309         50               11            11

2                    GE1/0/1(L)                     GE1/0/2(L)

2.2.2.1              85353         50               11            11

8373                 WGE1/0/2(L)                    WGE1/0/1(L)

Table 1 Command output

Field

Description

NOTE: 

S2D: source to destination              D2S: destination to source

RTT: round trip time                    RPT: packet throughput in read mode

WPT: packet throughput in write mode    SPT: packet throughput in send mode

I: input                                O: output

L: local                               R: remote

Meanings of the acronyms:

·     S2D—Statistics about an RoCEv2 flow sent from a client to a server.

·     D2S—Statistics about an RoCEv2 flow sent from a server to a client.

·     RTT—RTT for an RoCEv2 flow.

·     RPT—Read packet throughput.

·     WPT—Write packet throughput.

·     SPT—Send packet throughput.

·     I—Incoming interface for an RoCEv2 flow.

·     O—Outgoing interface for an RoCEv2 flow.

·     L—Local interface.

·     R—Interface on a DR peer.

NetAnalysis cache information

Configuration and status of the RoCEv2 cache.

Flow created at

Time when the RoCEv2 flow was created.

Service type

Service type of the RoCEv2 flow:

·     RC—Reliable connection.

·     UD—Unreliable datagram.

Src IP

Client IP address for the RoCEv2 flow.

Dst IP

Server IP address for the RoCEv2 flow.

Src QP

Client QP for the RoCEv2 flow.

Dst QP

Server QP for the RoCEv2 flow.

S2D RPT

Throughput in KBps for the Read packets sent from the client.

D2S RPT

Throughput in KBps for the Read packets sent from the server.

S2D SPT/WPT

Throughput in KBps for the Send and Write packets sent from the client.

D2S SPT/WPT

Throughput in KBps for the Send and Write packets sent from the server.

S2D RTT

RTT in microseconds for the RoCEv2 flow sent from the client.

D2S RTT

RTT in microseconds for the RoCEv2 flow sent from the server.

S2D NAK Pkts

Number of NAK packets sent from the client. Packet loss has occurred if this field is not 0.

D2S NAK Pkts

Number of NAK packets sent from the server. Packet loss has occurred if this field is not 0.

S2D Interface(I)

Incoming interface for the RoCEv2 flow sent from the client.

S2D Interface(O)

Outgoing interface for the RoCEv2 flow sent from the client.

D2S Interface(I)

Incoming interface for the RoCEv2 flow sent from the server.

D2S Interface(O)

Outgoing interface for the RoCEv2 flow sent from the server.

 

# Display the configuration and status of the RoCEv2 cache when unidirectional mode is used for RoCEv2 traffic analysis.

<sysname> display netanalysis rocev2 cache source 1.1.1.2 destination 2.2.2.1

NOTE: 

RPT: packet throughput in read mode    WPT: packet throughput in write mode

SPT: packet throughput in send mode

I: input          O: output            L: local          R: remote

NetAnalysis cache information:

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

Flow created at          Service type

Src IP                   Dst IP                   Src QP        Dst QP

Interface(I)             Interface(O)             RPT           SPT/WPT

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

01/22/2019 09:08:15      RC

1.1.1.2                  2.2.2.1                  0           8373

WGE1/0/1(L)              WGE1/0/2(L)              11            11

Table 2 Command output

Field

Description

NOTE: 

RPT: packet throughput in read mode    WPT: packet throughput in write mode

SPT: packet throughput in send mode

I: input                               O: output

L: local                              R: remote

Meanings of the acronyms:

·     RPT—Read packet throughput.

·     WPT—Write packet throughput.

·     SPT—Send packet throughput.

·     I—Incoming interface for an RoCEv2 flow.

·     O—Outgoing interface for an RoCEv2 flow.

·     L—Local interface.

·     R—Interface on a DR peer.

NetAnalysis cache information

Configuration and status of the RoCEv2 cache.

Flow created at

Time when the RoCEv2 flow was created.

Service type

Service type of the RoCEv2 flow:

·     RC—Reliable connection.

·     UD—Unreliable datagram.

Src IP

Source IP address for the RoCEv2 flow.

Dst IP

Destination IP address for the RoCEv2 flow.

Src QP

Source QP for the RoCEv2 flow.

Dst QP

Destination QP for the RoCEv2 flow.

RPT

Throughput in KBps for Read packets.

SPT/WPT

Throughput in KBps for the Send and Write packets

NAK Pkts

Number of NAK packets. Packet loss has occurred if this field is not 0.

Interface(I)

Incoming interface for the RoCEv2 flow.

Interface(O)

Outgoing interface for the RoCEv2 flow.

 

display netanalysis rocev2 statistics

Use display netanalysis rocev2 statistics to display RoCEv2 traffic statistics.

Syntax

display netanalysis rocev2 statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display RoCEv2 traffic statistics when bidirectional mode is used for RoCEv2 traffic analysis.

<Sysname> display netanalysis rocev2 statistics

Last statistics resetting time: Never

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

Received packets: 1833088

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

Type

         Active         Aged           Created         Reported

        (Sessions)     (Sessions)     (Sessions)      (Sessions)

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

RoCEv2

        2               0               2              10

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

# Display RoCEv2 traffic statistics when unidirectional mode is used for RoCEv2 traffic analysis.

<Sysname> display netanalysis rocev2 statistics

Last statistics resetting time: Never

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

Received packets: 2833088

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

Type

         Active        Aged           Created        Reported

        (Flows)       (Flows)         (Flows)        (Flows)

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

RoCEv2

        4              0              4              20

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

Table 3 Command output

Field

Description

Last statistics resetting time

Time when the RoCEv2 traffic statistics were last cleared.

Received packets

Number of received RoCEv2 packets.

Type

Flow type. The current software version supports only the RoCEv2 flow type.

Active (Flows)

Number of active flows.

Aged (Flows)

Number of aged flows.

Created (Flows)

Number of created flows.

Reported (Flows)

Number of flows reported to the NDA.

Active (Sessions)

Number of active sessions.

Aged (Sessions)

Number of aged sessions.

Created (Sessions)

Number of created sessions.

Reported (Sessions)

Number of sessions reported to the NDA.

 

Related commands

reset netanalysis rocev2 statistics

netanalysis rocev2 ai-ecn enable

Use netanalysis rocev2 ai-ecn enable to enable AI ECN for RoCEv2 traffic statistics collection.

Use undo netanalysis rocev2 ai-ecn enable to disable AI ECN for RoCEv2 traffic statistics collection.

Syntax

netanalysis rocev2 ai-ecn enable

undo netanalysis rocev2 ai-ecn enable

Default

AI ECN is disabled for RoCEv2 traffic statistics collection.

Views

System view

Predefined user roles

network-admin

Usage guidelines

AI ECN allows the device to collect RoCEv2 traffic statistics on a per-session basis on the outgoing interfaces for RoCEv2 traffic and send the RoCEv2 traffic statistics to the NDA. Based on the RoCEv2 traffic statistics, the NDA automatically adjusts the ECN threshold for lossless queues to ensure low latency and high throughput for lossless traffic. For more information about ECN, see QoS configuration in ACL and QoS Configuration Guide.

Examples

# Enable AI ECN for RoCEv2 traffic statistics collection.

<Sysname> system-view

[Sysname] netanalysis rocev2 ai-ecn enable

Related commands

netanalysis rocev2 mode

netanalysis rocev2 drop global

Use netanalysis rocev2 drop global to enable RoCEv2 packet loss analysis globally.

Use undo netanalysis rocev2 drop global to disable RoCEv2 packet loss analysis globally.

Syntax

netanalysis rocev2 drop global

undo netanalysis rocev2 drop global

Default

RoCEv2 packet loss analysis is disabled globally.

Views

System view

Predefined user roles

network-admin

Usage guidelines

For RoCEv2 packet loss analysis to take effect, first enable bidirectional mode for RoCEv2 traffic analysis.

This command enables the device to perform RoCEv2 packet loss analysis for all received RoCEv2 packets.

To view RoCEv2 packet loss statistics, examine the S2D NAK Pkts and D2S NAK Pkts fields in the output from the display netanalysis rocev2 cache command.

Examples

# Enable RoCEv2 packet loss analysis globally.

<Sysname> system-view

[Sysname] netanalysis rocev2 drop global

Related commands

netanalysis rocev2 mode

netanalysis rocev2 mode

Use netanalysis rocev2 mode to set the mode of RoCEv2 traffic analysis.

Use undo netanalysis rocev2 mode to restore the default.

Syntax

netanalysis rocev2 mode { bidir | single }

undo netanalysis rocev2 mode

Default

RoCEv2 traffic analysis is disabled, and the mode of RoCEv2 traffic analysis is not set.

Views

System view

Predefined user roles

network-admin

Parameters

bidir: Specifies bidirectional mode. In this mode, NetAnalysis collects RoCEv2 traffic statistics based on RoCEv2 sessions and provides the RTT and lost packet count for each RoCEv2 session.

single: Specifies unidirectional mode. In this mode, NetAnalysis collects RoCEv2 traffic statistics based on RoCEv2 flows and does not provides the flow-specific RTT or lost packet count.

Usage guidelines

For NetAnalysis features to take effect, first set the mode of RoCEv2 traffic analysis.

When you change the mode of RoCEv2 traffic analysis, all NetAnalysis configuration and the RoCEv2 cache are cleared. Make sure you are fully aware of the impact of this operation when you perform it on a live network.

When multiple paths exist between an RDMA client and an RDMA server, set the mode of RoCEv2 traffic analysis as follows to ensure correct RoCEv2 traffic analysis:

·     Enable bidirectional mode on the devices attached to the server and the client.

·     Enable unidirectional mode on the intermediate devices.

Examples

# Enable unidirectional RoCEv2 traffic analysis.

<Sysname> system-view

[Sysname] netanalysis rocev2 mode single

This operation will erase all the net analysis configuration.

Continue?[Y/N]:y

# Enable bidirectional RoCEv2 traffic analysis.

<Sysname> system-view

[Sysname] netanalysis rocev2 mode bidir

This operation will erase all the net analysis configuration.

Continue?[Y/N]:y

netanalysis rocev2 report-interval

Use netanalysis rocev2 report-interval to set the interval for reporting RoCEv2 traffic statistics to the NDA.

Use undo netanalysis rocev2 report-interval to restore the default.

Syntax

netanalysis rocev2 report-interval interval

undo netanalysis rocev2 report-interval

Default

The device reports RoCEv2 traffic statistics to the NDA at an interval of 10 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

seconds: Specifies an interval value in seconds, in the range of 5 to 500.

Usage guidelines

Use this command to adjust the interval at which the device reports RoCEv2 traffic statistics to the NDA.

Examples

# Configure the device to report RoCEv2 traffic statistics to the NDA at an interval of 15 seconds.

<Sysname> system-view

[Sysname] netanalysis rocev2 report-interval 15

netanalysis rocev2 statistics

Use netanalysis rocev2 statistics to enable RoCEv2 traffic statistics collection.

Use undo netanalysis rocev2 statistics to disable RoCEv2 traffic statistics collection.

Syntax

netanalysis rocev2 statistics { global | acl name acl-name }

undo netanalysis rocev2 statistics

Default

RoCEv2 traffic statistics collection is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

global: Specifies all received RoCEv2 traffic.

acl name acl-name: Specifies an advanced ACL for filtering RoCEv2 traffic by its name, a case-insensitive string of 1 to 63 characters. The ACL name must begin with an uppercase or lowercase letter and cannot be all. If the specified ACL is nonexistent or contains only rules not supported by NetAnalysis, this command does not take effect.

Usage guidelines

Use this command to enable NetAnalysis to analyze RoCEv2 traffic and send the analysis results to the NAP. You can use an ACL to match the RoCEv2 traffic of interest. The deny or permit action in the ACL does not take effect. NetAnalysis supports the following rules of advanced ACLs:

·     Rule 1—Matches the UDP protocol and destination IPv4 address.

·     Rule 2—Matches the UDP protocol and source IPv4 address.

·     Rule 3—Matches the UDP protocol and source and destination IPv4 addresses.

To ensure correct collection and reporting of RoCEv2 traffic statistics, use the rules supported by NetAnalysis. For more information about ACLs, see ACL and QoS Configuration Guide.

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

Examples

# Enable NetAnalysis to collect statistics about all received RoCEv2 traffic.

<Sysname> system-view

[Sysname] netanalysis rocev2 statistics global

# Enable NetAnalysis to collect statistics about the received RoCEv2 traffic that matches ACL abc.

<Sysname> system-view

[Sysname] netanalysis rocev2 statistics acl name abc

netanalysis rocev2 timeout inactive

Use netanalysis rocev2 timeout inactive to set the aging timer for inactive RoCEv2 flows.

Use undo netanalysis rocev2 timeout inactive to restore the default.

Syntax

netanalysis rocev2 timeout inactive seconds

undo netanalysis rocev2 timeout inactive

Default

The aging timer for inactive RoCEv2 flows is set to 30 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

seconds: Sets the aging timer for inactive RoCEv2 flows, in seconds. The value range for this argument is 5 to 500 seconds.

Usage guidelines

When an inactive RoCEv2 flow ages out, the device outputs the related traffic statistics to the NDA and deletes these traffic statistics from the RoCEv2 cache.

Examples

# Set the aging timer for inactive RoCEv2 flows to 10 seconds.

<Sysname> system-view

[Sysname] netanalysis rocev2 timeout inactive 10

reset netanalysis rocev2 statistics

Use reset netanalysis rocev2 statistics to clear RoCEv2 traffic statistics.

Syntax

reset netanalysis rocev2 statistics

Views

User view

Predefined user roles

network-admin

Usage guidelines

Use this command to clear RoCEv2 traffic statistics if you want to collect RoCEv2 traffic statistics for a specific time period.

You cannot recover cleared RoCEv2 traffic statistics. Make sure you are fully aware of the impact of this command when you use it on a live network.

Examples

# Clear RoCEv2 traffic statistics.

<Sysname> reset netanalysis rocev2 statistics

Related commands

display netanalysis rocev2 statistics

  • 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 Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网