Customized Stream Test

Function

Test Principle

The custom stream test supports the following modes:

Preparations

Parameters

You can run either of the following commands to list the parameters of the stream test command:

ascend-dmi --prbs-check -h

ascend-dmi --prbs-check --help

Table 1 lists only a test-specific parameter. For details about other common parameters, see Common Parameters.

  • Before the stream test, run the --clear command to clear the historical information stored in the current device register.
  • For the Ascend 950PR and 950DT products, if stream is sent for multiple consecutive times, the command execution interval must be greater than 15 seconds.
Table 1 Parameters

Parameter

Description

Restrictions

Mandatory

[-pc, --pc, --prbs-check]

Performs a PRBS stream test.

-

Yes

[--prbs-mode]

Specifies whether to switch the stream test status.

-- EN (Enable): enabled

-- DS (Disable): disabled

  • The value is case-sensitive.
  • If --prbs-mode is set to EN or DS, the configuration takes effect in both the signal TX and RX directions, regardless of whether --generator-lanes or --checker-lanes is specified.
  • If --prbs-mode is set to EN, --generator-lanes and --checker-lanes can be specified.
  • If --prbs-mode is set to DS, the stream test stops. --generator-lanes and --checker-lanes cannot be specified.
  • This parameter cannot be specified together with --show or --clear.

This parameter is not supported by the Ascend 950PR and 950DT products.

Yes

[--generator-lanes]

Specifies the lane of the TX end.

  • You can specify one or more lanes at a time. Use commas (,) to separate multiple lanes. If multiple lanes are specified, they must be consecutive, for example, 0,1,2. Non-consecutive sequence is not supported, for example, 0,1,3.
  • If this parameter is not specified, all lanes are tested by default.
  • This parameter cannot be specified together with --show or --clear.
  • Its value can be 0, 1, 2, or 3.

This parameter is not supported by the Ascend 950PR and 950DT products.

No

[--checker-lanes]

Specifies the lane of the RX end.

  • You can specify one or more lanes at a time. Use commas (,) to separate multiple lanes. If multiple lanes are specified, they must be consecutive, for example, 0,1,2. Non-consecutive sequence is not supported, for example, 0,1,3.
  • If this parameter is not specified, all lanes are tested by default.
  • This parameter cannot be specified together with --show or --clear.
  • Its value can be 0, 1, 2, or 3.

This parameter is not supported by the Ascend 950PR and 950DT products.

No

[-show, --show, --show-diagnostic-info]

Displays the stream test result.

  • This parameter cannot be specified together with --clear, --prbs-mode, --generator-lanes, or --checker-lanes.
  • After the information is displayed, the test result is cleared.

This parameter is not supported by the Ascend 950PR and 950DT products.

No

[-clear, --clear, --clear-diagnostic-info]

Clears the stream test result.

  • This parameter cannot be specified together with --show, --prbs-mode, --generator-lanes, or --checker-lanes.
  • You can specify other parameters excluding the aforementioned parameters at the same time.

This parameter is not supported by the Ascend 950PR and 950DT products.

No

[-dur, --dur, --duration]

Specifies the duration of a stream test.

  • The value ranges from 3 to 10, in seconds.
  • If the parameter value is not specified, 3 is used by default.

This parameter is supported only by the Ascend 950PR and 950DT products.

No

[-ds, --ds, --device-src]

Specifies the ID of the source device for a stream test. This parameter cannot be specified together with [-dd, --dd, --device-dst].

This parameter is supported only by the Ascend 950PR and 950DT products.

No

[-dd, --dd, --device-dst]

Specifies the ID of the destination device for a stream test. This parameter cannot be specified together with [-ds, --ds, --device-src].

This parameter is supported only by the Ascend 950PR and 950DT products.

No

[-lt, --lt, --link-type]

Specifies the link type corresponding to a port. For customized stream testing, only the value uboe is supported, indicating the UnifiedBus over Ethernet (UBoE) link.

This parameter is supported only by the Ascend 950PR and 950DT products.

Yes

Example (Ascend 950 Product)

Figure 2 describes how to perform a customized stream test.

Figure 2 Stream testing flowchart for the Ascend 950PR and 950DT products

The following uses device 0 as an example to describe how to perform a stream test.

First, execute the following command to enable TX stream testing on device 0, configuring the transmitting end with 4 lanes and a PRBS31 pattern:

[***@***]# ascend-dmi -pc -ds 0 -lt uboe -q
TX enabled on device 0, waiting for 13s.
TX disabled on device 0

Then, open a separate terminal session and execute the following command to enable RX stream testing on device 0, configuring the receiving end with 4 lanes and a PRBS31 pattern:

[***@***]# ascend-dmi -pc -dd 0 -lt uboe -q
PRBS31 on device 0:
----------------------------------------------------------------------------------------------------
lane                error count         error rate          alos                time(ms)
----------------------------------------------------------------------------------------------------
0                   1                   0.0000000003%       0                   3000
1                   1                   0.0000000003%       0                   3000
2                   35                  0.0000000104%       0                   3000
3                   2                   0.0000000006%       0                   3000
----------------------------------------------------------------------------------------------------

Table 2 describes the parameters in the command output.

Table 2 Parameters in the command output

Parameter

Description

device

Logic ID of an NPU

lane

Lane ID of a port

error count

Number of errors.

The maximum value is 67108863, indicating that the number of errors reaches the upper limit.

error rate

Bit error rate.

If the BER is less than 10-5, the signal quality is normal.

alos

The value options are as follows:

The value 0 indicates that the input signal amplitude is normal.

The value 1 indicates that the input signal amplitude is too low.

time(ms)

Stream test duration

The number of bit errors may reach 67108863 in the following situations:

  • Incorrect activation sequence: RX is enabled prior to TX.
  • No loopback is configured.

Example (Other Products)

Figure 3 describes how to perform a customized stream test.

Figure 3 Stream testing procedure for other products

Table 3 describes the parameters in the command output.

Table 3 Parameters in the command outputs

Parameter

Description

Lane

Lane ID of the corresponding RoCE link.

Check Enable

Check status of the RX end.

0: disabled

1: enabled

Pattern

Check code pattern in the RX direction.

Error-Bits

Number of bit errors. The upper limit is 67092480.

Bit-Error Rate(BER)

BER = Number of bit errors/Total number of transmitted bits x 100%

If the BER is less than 0.001%, the signal quality is normal.

ALOS

The value must be 0 for a normal stream test. If the value is 1, the signal amplitude is too low.

If no stream test is conducted, ignore it.

Period

Time since the last operation of controlling streams or reading the check result.

The number of bit errors may reach 67092480 in the following situations:

  • The stream test is performed without using --clear to clear the register.
  • The code types specified in the TX and RX directions are inconsistent.
  • Incorrect sequence: RX is enabled prior to TX, or RX is enabled before TX is completely enabled.
  • The NPU and CDR adaptation is automatically disabled during the stream test. However, multiple executions of the stream test command can repeatedly enable and disable adaptation. If the adaptation process is not completed in a timely manner, the number of bit errors can reach 67092480 at certain time.
  • In the CDR loopback scenario, no CDR loopback is configured.

Follow-up Procedure