Ascend DMI supports the eye diagram test on the network to query the current signal quality.
This function can query the specific data of signal quality. To check the signal quality of the current port, diagnose signal quality. For details, see Eye Diagram Diagnosis.
Query the signal quality of the PCIe, HCCS, RoCE, and UB communication ports on the NPU.
You can run either of the following commands to view the available parameters of the signal quality query command:
ascend-dmi --sq -h
ascend-dmi --sq --help
Table 1 lists only a test-specific parameter. For details about other common parameters, see Common Parameters.
Parameter |
Description |
Mandatory |
|---|---|---|
[-sq, --sq, --signal-quality] |
Queries the PCIe, HCCS, RoCE, and UB communication ports on the NPU and the signal quality of the HCCS communication ports on the CPU. |
Yes |
[-d, --device] |
Specifies the device ID of the NPU or CPU to be queried. If multiple chips are specified, use commas (,) to separate them. If this parameter is not specified, all NPUs or CPUs on the device are queried by default.
|
No |
[-t, --type] |
Specifies the type of the communication port. Currently, PCIe, HCCS, RoCE, and UB are supported. Use commas (,) to separate multiple communication port types.
The options are as follows:
|
No |
[-m, --module] |
Queries the CPU and NPU eye diagrams. If this parameter is not specified, the NPU eye diagram is queried by default. This parameter is supported only by the The options are as follows:
|
No |
[-r, --result] |
Specifies the output path for the full eye diagram results, for example, /test. The specified path must meet security requirements and cannot contain the wildcard (*).
|
No |
The command output on an inference server is similar to that on a training server. The following uses the screenshots on a training server as an example.
ascend-dmi --sq -t hccs,pcie,roce -d 0,1
If information shown in Figure 1 is displayed, the tool is running properly.
If information shown in Figure 2 is displayed, the tool is running properly.
ascend-dmi --signal-quality -t roce -d 0 --fmt json
The following table describes the parameters in the command outputs of Figure 1 and Figure 2.
Parameter |
Description |
|---|---|
type |
Type of the communication port |
device |
Logic ID of an NPU |
M* (macro port) |
Macro port. For example, M0 and M1 indicate macro ports 0 and 1 respectively. |
L* (LANE) |
Lane ID in an HCCS link. For example, L0 and L1 indicate lane 0 and lane 1, respectively. |
S (SNR) |
SNR of a lane |
H (HEH) |
Half-eye height of a lane |
B/T/L/R |
Values of the bottom, top, left, and right positions of the quad-eye diagram |
Description:
|
|
Parameter |
Description |
|---|---|
type |
Type of the communication port |
device |
Logic ID of an NPU |
M* (macro port) |
macro port number. For example, M9 and M10 indicate macro ports 9 and 10, respectively. |
L* (LANE) |
Lane ID in a PCIe link. For example, L0 and L1 indicate lane 0 and lane 1, respectively. |
B/T/L/R |
Values of the bottom, top, left, and right positions of the quad-eye diagram The Atlas 350 accelerator card does not support this parameter. |
S (SNR) |
SNR of a lane. Only the Atlas 350 accelerator card supports this parameter. |
Description:
|
|
Parameter |
Description |
|---|---|
type |
Specifies the type of the communication port. |
device |
Logic ID of an NPU |
M* (macro port) |
macro port number. For example, M0 indicates macro port 0. |
S (SNR) |
SNR of a lane |
H (HEH) |
Half-eye height of a lane The Atlas 850E/Atlas 650E server does not support this parameter. |
L* (LANE) |
Lane ID in a RoCE link. For example, L0 and L1 indicate lane 0 and lane 1, respectively. |
Description:
|
|
Parameter |
Description |
|---|---|
type |
Type of the communication port. |
device |
Logic ID of an NPU |
M* (macro port) |
macro port number. For example, M1 and M3 indicate macro ports 1 and 3, respectively. |
L* (LANE) |
Lane ID in a UB link. For example, L0 and L1 indicate lane 0 and lane 1, respectively. |
S (SNR) |
SNR of a lane |
Description:
|
|
[root@*****~]# ascend-dmi --sq -t roce
type: roce
Prompt message: M*: macro port, L*: lane, S: SNR, H: HEH
100G Optical Normal range: S(SNR) >= 260000 and H(HEH) >= 350
200G Optical Normal range: S(SNR) >= 400000 and H(HEH) >= 350
----------------------------------------------------------------------------------------------
device signal-to-noise ratio
----------------------------------------------------------------------------------------------
0 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
1 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
2 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
3 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
4 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
5 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
6 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
7 M0: L0: S:0 H:0 L1: S:0 H:0
L2: S:0 H:0 L3: S:0 H:0
----------------------------------------------------------------------------------------------
ascend-dmi -sq -t pcie -d 0 -r /home/
If information shown in Figure 4 is displayed, the tool is running properly.
The full eye diagram result is saved as a CSV file. It is advised to generate a scatter chart based on the data in the file and observe the distribution of sampling points. Figure 5 shows a normal full eye diagram, and Figure 6 shows an abnormal one.