One-click stream test: Supported exclusively in direct-connection scenarios. For two NPUs directly connected through a UB, a test stream is transmitted from NPU A (TX) and then received and verified by NPU B (RX). This is used to inspect the signal quality of the direct link between the two NPUs.

After streams are sent in the TX direction on the SerDes port of a specified NPU, data flows are transmitted to the loopback unit (CDR or fiber optic circulator) through the link under test, and then sent back through the link in the RX direction. The RX side tracks the bit errors that occur as the data stream traverses the link during stream generation, allowing the system to evaluate the link's signal quality.
One-click stream test supports the following two modes:

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.
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.
Parameter |
Description |
Restrictions |
Mandatory |
|---|---|---|---|
[-pc, --pc, --prbs-check] |
Performs a PRBS stream test. |
- |
Yes |
[-dur, --dur, --duration] |
Specifies the duration of a stream test.
|
- |
No |
[-ds, --ds, --device-src] |
Specifies the ID of the source device for a stream test. This parameter must be used together with [-dd, --dd, --device-dst]. The values following the parameters must be different. If neither of the two parameters is specified, all Ascend NPUs are tested. |
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 must be used together with [-ds, --ds, --device-src]. The values following the parameters must be different. If neither of the two parameters is specified, all Ascend NPUs are tested. |
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 one-click stream testing, the value can only be mesh, indicating UB direct-connect links. |
This parameter is supported only by the Ascend 950PR and 950DT products. |
No |
[***@***]# ascend-dmi --prbs-check -d 8,9 -dur 5 This operation will make network port on devices down, please make sure no business is running on devices. Do you want to continue?(Y/N)y PRBS31 on device 8: ----------------------------------------------------------------------------------------------- lane error count error rate alos time(ms) ----------------------------------------------------------------------------------------------- 0 21 0.0000000079% 0 5020 1 12 0.0000000045% 0 5020 2 34 0.0000000128% 0 5014 3 4 0.0000000015% 0 5015 ----------------------------------------------------------------------------------------------- PRBS31 on device 9: -----------------------------------------------------------------------------------------------lane error count error rate alos time(ms) ----------------------------------------------------------------------------------------------- 0 24 0.0000000090% 0 5033 1 71 0.0000000266% 0 5027 2 12 0.0000000045% 0 5026 3 70 0.0000000262% 0 5023 -----------------------------------------------------------------------------------------------
[***@***]# ascend-dmi --prbs-check -ds 0 -dd 1 -dur 5 This operation will make network port on devices down, please make sure no business is running on devices. Do you want to continue?(Y/N)y PRBS31 from device 0 to device 1: ----------------------------------------------------------------------------------------------- lane error count error rate alos time(ms) ----------------------------------------------------------------------------------------------- 0 25321 0.0000071528% 0 5023 1 5483 0.0000015489% 0 5015 2 884 0.0000002497% 0 5032 3 5346 0.0000015102% 0 5020 -----------------------------------------------------------------------------------------------
ascend-dmi -pc -d 9 -dur 5 -fmt json
If the following information is displayed, the bit error rate (BER) falls in a normal range.
[***@***]# ascend-dmi -pc -d 9 -dur 5 -fmt json
This operation will make network port on devices down, please make sure no business is running on devices.
Do you want to continue?(Y/N)y
{
"prbs": [
{
"device": 9,
"pattern": "PRBS31",
"prbs_result": [
{
"alos": 0,
"error_cnt": 19,
"error_rate": "0.0000000071%",
"lane": 0,
"time": 5018
},
{
"alos": 0,
"error_cnt": 194,
"error_rate": "0.0000000728%",
"lane": 1,
"time": 5017
},
{
"alos": 0,
"error_cnt": 12,
"error_rate": "0.0000000045%",
"lane": 2,
"time": 5019
},
{
"alos": 0,
"error_cnt": 6,
"error_rate": "0.0000000023%",
"lane": 3,
"time": 5017
}
]
}
]
}
ascend-dmi -pc -ds 0 -dd 1 -dur 5 -fmt json
If the following information is displayed, the BER falls in a normal range.
[***@***]# ascend-dmi -pc -ds 0 -dd 1 -dur 5 -fmt json
This operation will make network port on devices down, please make sure no business is running on devices.
Do you want to continue?(Y/N)y
{
"prbs": [
{
"device": 1,
"pattern": "PRBS31",
"prbs_result": [
{
"alos": 0,
"error_cnt": 33683,
"error_rate": "0.0000075185%",
"lane": 0,
"time": 5015
},
{
"alos": 0,
"error_cnt": 4359,
"error_rate": "0.0000009730%",
"lane": 1,
"time": 5015
},
{
"alos": 0,
"error_cnt": 14223,
"error_rate": "0.0000031748%",
"lane": 2,
"time": 5015
},
{
"alos": 0,
"error_cnt": 2123,
"error_rate": "0.0000004739%",
"lane": 3,
"time": 5015
}
],
"src_device": 0
}
]
}
The table below describes the parameters in the command output.
Parameter |
Description |
|---|---|
device |
Logic ID of an NPU |
lane |
Lane ID of a link. |
error count |
Number of errors. In JSON format, the parameter is represented by error_cnt. The maximum value is 67108863 for the Ascend 950PR and 950DT products and 67092480 for other products, both of which indicate full bit errors. |
error rate |
Bit error rate. In JSON format, the parameter is represented by 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 generation duration. In the JSON format, the parameter is represented by time. |
src_device |
Logical ID of the NPU at the stream's transmitting end. |
For products other than the Ascend 950PR and 950DT products, the number of bit errors may reach 67092480 in the following situations:
|
|