A communication testing apparatus and method

CN120276921BActive Publication Date: 2026-08-18WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510344789.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2026-08-18
Estimated Expiration
2045-03-21

AI Technical Summary

Technical Problem

[0003]有鉴于此,本发明提供了一种通信测试装置及方法,以解决对PCIe设备的测试不够全面的问题

Benefits of technology

[0033] Send the target test code to the trainer so that the trainer can send a configuration request to determine the endpoint device to which the intermediate connection device is connected;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276921B_ABST
    Figure CN120276921B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, and discloses a communication testing device and method, which comprises a host, a disk adapter, a trainer and an intermediate connection device; a plurality of direct memory access modules are arranged in the disk adapter; the host and the disk adapter are connected through the intermediate connection device; the trainer is connected with the disk adapter and / or the intermediate connection device based on testing requirements, and the trainer is used for configuring a test link of the communication testing device. Therefore, the trainer is arranged, the trainer is controlled to be connected with the disk adapter and / or the intermediate device according to the testing requirements, different test links are configured, the different functions and logical behaviors of the PCIe device are tested, and the comprehensiveness of the PCIe device testing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically to a communication testing device and method. Background Technology

[0002] To ensure the compliance and stability of PCIe devices in terms of basic functions, they are typically tested and certified. Certification covers test items at the link layer, transaction layer, physical layer, and configuration space. However, current commonly used testing schemes mainly focus on the basic functional interactions of devices in standardized environments, failing to cover the various business scenarios and behavioral performance under extreme conditions that may be encountered in complex application scenarios, resulting in insufficient comprehensive testing of PCIe devices. Summary of the Invention

[0003] In view of this, the present invention provides a communication testing apparatus and method to solve the problem of insufficient testing of PCIe devices.

[0004] In a first aspect, the present invention provides a communication testing device, which includes: a host, a disk adapter, a trainer, and an intermediate connection device; the disk adapter is provided with multiple direct memory access modules.

[0005] The host and disk adapter are connected via an intermediate connection device;

[0006] The trainer connects to a disk adapter and / or intermediate connection device based on testing requirements. The trainer is used to configure the test link of the communication test device.

[0007] In one alternative implementation, the device further includes an interference analyzer for modifying requests passed through the interference analyzer.

[0008] The intermediate connection device includes a first connection device; the interference analyzer is connected to the first connection device;

[0009] The first connection device is connected to the root port of the host and the endpoint device of the disk adapter, respectively;

[0010] A first test link is formed between the host, the first connection device, the interference analyzer, and the disk adapter.

[0011] In one alternative implementation, the intermediate connection device includes a second connection device;

[0012] The trainer and disk adapter are respectively connected to the downlink port of the second connection device;

[0013] The root port of the host is connected to the uplink port of the second connected device;

[0014] A second test link is formed between the trainer and the disk adapter.

[0015] In one alternative implementation, the trainer is connected to the root port of the disk adapter and / or the downlink port of an intermediate connection device.

[0016] A third test link is formed between the host, the trainer, and the disk adapter and / or intermediate connection device.

[0017] In one alternative implementation, the trainer is connected to the uplink port of the endpoint device and / or intermediate connection device of the disk adapter.

[0018] A fourth test link is formed between the trainer and the disk adapter and / or intermediate connection device.

[0019] The communication testing device provided in this embodiment of the invention sets up a trainer and controls the trainer to connect to the disk adapter and / or intermediate devices according to the test requirements, thereby configuring different test links to test different functions and logical behaviors of PCIe devices, thereby improving the comprehensiveness of PCIe device testing.

[0020] In a second aspect, the present invention provides a communication testing method, applied to the communication testing apparatus described in the first aspect or any embodiment thereof, the method comprising:

[0021] Enable the target testing link based on the trainer configuration;

[0022] The target test code is distributed to the current host device and / or trainer to test the target test link based on the target test code and obtain the test results.

[0023] In one optional implementation, if the target test link is the first test link, then target test code is issued to the current host device and / or trainer to test the target test link based on the target test code, and the test results are obtained, including:

[0024] In response to the interference analyzer's interception of a passing request, the request is modified so that the interference analyzer can transmit the modified request.

[0025] The test results are determined based on the device's response to the modified request.

[0026] In one optional implementation, if the target test link is a second test link, then target test code is issued to the current host device and / or trainer to test the target test link based on the target test code, and the test results are obtained, including:

[0027] The target test code is sent to the trainer so that the trainer can send exception message data to the disk adapter based on the target test code;

[0028] The test results are determined based on the disk adapter's response to abnormal message data.

[0029] In one optional implementation, if the target test link is a third test link, then target test code is issued to the current host device and / or trainer to test the target test link based on the target test code, and the test results are obtained, including:

[0030] Send the target test code to the current host device so that the current host device can initiate access or control to the trainer through the disk adapter or intermediate connection device;

[0031] The test results are determined based on the current host device's access to or control of the trainer.

[0032] In one optional implementation, if the target test link is the fourth test link, then target test code is issued to the current host device and / or trainer to test the target test link based on the target test code, and the test results are obtained, including:

[0033] Send the target test code to the trainer so that the trainer can send a configuration request to determine the endpoint device to which the intermediate connection device is connected;

[0034] The trainer and the intermediate connection device are controlled to interact separately, and the intermediate connection device interacts with the trainer.

[0035] The test results are determined based on the interaction between the trainer and the intermediate connection device.

[0036] The communication testing method provided in this invention enables target test links based on the configuration of the trainer, thereby allowing the construction of different test links according to testing requirements and testing the corresponding test functions of different test links. Simultaneously, target test code is issued to the current host device and / or trainer to test the target test links based on the target test code and obtain test results. Thus, the target test links are tested according to the instructions of the target test code, improving the comprehensiveness of PCIe device testing. Attached Figure Description

[0037] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0038] Figure 1 This is a schematic diagram of the structure of a communication testing device according to an embodiment of the present invention;

[0039] Figure 2 This is a topology diagram of the first test link of the communication test apparatus according to an embodiment of the present invention;

[0040] Figure 3 This is a topology diagram of the second test link of the communication test apparatus according to an embodiment of the present invention;

[0041] Figure 4 This is a topology diagram of the third test link of the communication test apparatus according to an embodiment of the present invention;

[0042] Figure 5 This is a topology diagram of a third test link of the communication test apparatus according to an embodiment of the present invention;

[0043] Figure 6 This is a topology diagram of the fourth test link of the communication test apparatus according to an embodiment of the present invention;

[0044] Figure 7 This is a topology diagram of a fourth test link of the communication test apparatus according to an embodiment of the present invention;

[0045] Figure 8 This is a flowchart of a communication testing method according to an embodiment of the present invention. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0047] To ensure the compliance and stability of PCIe devices in terms of basic functions, they are typically tested and certified. Certification covers tests at the link layer, transaction layer, physical layer, and configuration space. However, current testing solutions mainly focus on the basic functional interactions of devices in standardized environments, failing to cover the various business scenarios and behavioral performance under extreme conditions that may be encountered in complex application scenarios, resulting in incomplete testing of PCIe devices. Currently, the industry's existing PCIe protocol-related testing solution is the PCI-SIG certification test. The PCI-SIG certification test is a standard certification solution provided by the PCI Association, but its testing coverage is limited, only covering electrical testing, configuration space testing, link transaction layer testing, interconnect operability testing, and lane margining testing.

[0048] Basic test items only cover the basic functional interactions between devices and cannot fully cover the in-depth implementation of all PCIe functions supported by the device, such as AER (Advanced Error Reporting), DPC (Downstream Port Containment), PM (Power Management), ACS (Access Control Services), and other actual operational logical system-level application scenarios, as well as the specific functions of configuration space control fields. If certain field functions have design flaws in real-world scenarios and are triggered during normal business interactions, it may lead to device malfunctions or business interruptions. Therefore, a test scheme is needed that can perform comprehensive testing of PCIe devices.

[0049] Based on this, embodiments of the present invention provide, on one hand, a communication testing device, comprising: a host, a disk adapter, a trainer, and an intermediate connection device; the disk adapter includes multiple direct memory access modules; the host and the disk adapter are connected via the intermediate connection device; the trainer connects to the disk adapter and / or the intermediate connection device based on testing requirements, and the trainer is used to configure the test links of the communication testing device. On the other hand, a communication testing method is provided, comprising: enabling a target test link based on the configuration of the trainer; issuing target test code to the current host device and / or the trainer, and testing the target test link based on the target test code to obtain test results. Thus, by controlling the trainer to connect to the disk adapter and / or the intermediate device according to testing requirements, different test links are configured to form, allowing for testing of different functions and logical behaviors of PCIe devices, thereby improving the comprehensiveness of PCIe device testing.

[0050] According to an embodiment of the present invention, a communication testing apparatus is provided. Figure 1 This is a schematic diagram of the structure of a communication testing device according to an embodiment of the present invention, such as... Figure 1 As shown, the device includes a host, a disk adapter, a trainer, and an intermediate connection device. The disk adapter contains multiple Direct Memory Access (DMA) modules, enabling external devices to directly transfer data with system memory, thus improving data transfer efficiency. The host and disk adapter are connected via the intermediate connection device. The trainer connects to the disk adapter and / or the intermediate connection device based on testing requirements, and is used to configure the test links of the communication testing device. Therefore, different test links are configured through different connection methods between the trainer and the disk adapter and / or the intermediate connection device. Different test links correspond to different test functions, thereby enabling the testing of different functions and logical behaviors of PCIe devices.

[0051] In this embodiment of the invention, the connection method of the trainer in the communication testing device varies depending on the different configurations of the trainer, thereby forming different test links. These different test links can test different functions and logical behaviors of PCIe devices. Specifically, in this embodiment of the invention, four different test links can be formed according to different configurations of the trainer to test the AER, DPC, PM, ACS functions of the PCIe device, as well as its logical functions under abnormal conditions.

[0052] In one optional implementation, the communication testing apparatus further includes an interference analyzer (Analyzer_Jammer), which modifies requests passing through it. The interference analyzer can capture passing requests, and its content can be modified via an API interface. This allows the interference analyzer to modify request content during communication, artificially introducing anomalies to test the PCIe device's processing logic under abnormal conditions. In this case, the intermediate connection device includes a first connection device, which can be an interposer; interposers are commonly used in distributed systems to facilitate information exchange between upper or lower layer nodes.

[0053] Specifically, Figure 2 This is a topology diagram of the first test link of the communication testing apparatus according to an embodiment of the present invention, such as... Figure 2 As shown, the interference analyzer is connected to the first connection device, which in turn is connected to the host's root port (RP) and the disk adapter's endpoint device (EP). This forms a first test link between the host, the first connection device, the interference analyzer, and the disk adapter. In this first test link, requests from the host to the various DMA modules in the disk adapter, and requests from the various DMA modules in the disk adapter to the host, pass through the interference analyzer. The interference analyzer captures and modifies these requests, causing anomalies in the information carried by the requests. This allows the test to assess the PCIe device's response when anomalies occur in the requests on the first test link.

[0054] In one alternative implementation, in the first test link, the trainer does not directly participate in the testing of the PCIe device; that is, the trainer is not part of the hardware structure in the first test link, but controls the interaction process of the first test link through software code.

[0055] In one optional implementation, the intermediate connection device includes a second connection device, which is a PCIe switch. The PCIe switch handles high-speed data transmission between PCIe devices, can expand the number of connected PCIe devices, and provides device isolation and redundancy. Accordingly, Figure 3 This is a topology diagram of the second test link of the communication testing apparatus according to an embodiment of the present invention, such as... Figure 3 As shown, the trainer and disk adapter are connected to the downstream port (DP) of the second connection device; the root port of the host is connected to the upstream port (UP) of the second connection device. Thus, a second test link is formed between the trainer and the disk adapter, which is a peer-to-peer link between the trainer and the disk adapter formed through the second connection device. In the second test link, the response of the disk chip to abnormal messages is tested through the interaction between the trainer and the disk adapter.

[0056] In one alternative implementation, Figure 4 This is a topology diagram of the third test link of the communication testing apparatus according to an embodiment of the present invention. Figure 5 This is a topology diagram of a third test link of the communication test apparatus according to an embodiment of the present invention, such as... Figure 4 and Figure 5 As shown, the trainer is connected to the root port of the disk adapter and / or the downlink port of the intermediate connection device. In this case, the trainer acts as a device, and a third test link is formed between the host, the trainer, and the disk adapter and / or the intermediate connection device. Specifically, for different test objectives, such as... Figure 4 As shown, a third test link is formed between the host, disk adapter, and trainer. In this link, the root port of the host is connected to the endpoint device of the disk adapter, and the root port of the disk adapter is connected to the trainer. The relevant functions of the root port are then tested. Figure 5 As shown, a third test link is formed between the host, intermediate connection device, and trainer. At this time, the root port of the host is connected to the uplink port of the intermediate connection device, and the downlink port of the intermediate connection device is connected to the trainer. The relevant functions of the downlink port and the uplink port are tested.

[0057] In one alternative implementation, Figure 6 This is a topology diagram of the fourth test link of the communication testing apparatus according to an embodiment of the present invention. Figure 7 This is a topology diagram of a fourth test link of the communication test apparatus according to an embodiment of the present invention, as shown below. Figure 6 and Figure 7As shown, the trainer connects to the uplink port of the endpoint device and / or intermediate connection device of the disk adapter; in this case, the trainer acts as the host, and a fourth test link is formed between the trainer and the disk adapter and / or intermediate connection device. Specifically, for different test objectives, such as... Figure 6 As shown, a fourth test link is formed between the trainer and the disk adapter. At this point, the endpoint devices of the trainer and disk adapter are connected to test the PCIe functionality of the PCIe device; as shown... Figure 7 As shown, another fourth test link is formed between the trainer and the intermediate connection device. At this time, the trainer is connected to the uplink port of the intermediate connection device, and the downlink port of the intermediate connection device is also connected to multiple endpoint devices to test the behavior logic of the uplink and downlink ports.

[0058] The communication testing device provided in this embodiment of the invention sets up a trainer and controls the trainer to connect to the disk adapter and / or intermediate devices according to the test requirements, thereby configuring different test links to test different functions and logical behaviors of PCIe devices, thereby improving the comprehensiveness of PCIe device testing.

[0059] According to an embodiment of the present invention, a communication testing method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0060] This embodiment provides a communication testing method, which can be used in the aforementioned communication testing apparatus. Figure 8 This is a flowchart of a communication testing method according to an embodiment of the present invention, such as... Figure 8 As shown, the process includes the following steps:

[0061] Step S801: Enable the target test link based on the configuration of the trainer.

[0062] In this embodiment of the invention, the trainer is configured according to the testing requirements, thereby enabling the target testing link to complete the testing requirements through the interaction between the devices or apparatuses in the target testing link.

[0063] In this embodiment of the invention, a trainer can be configured on the software side to enable the target test link.

[0064] Step S802: Target test code is sent to the current host device and / or trainer to test the target test link based on the target test code and obtain test results.

[0065] In this embodiment of the invention, the user terminal sends target test code to the current host device and / or the trainer respectively, controlling the interaction of the current measurement link, thereby testing the target test link based on the current test code, and obtaining the test result based on the response generated by the target test link. Here, the current host device is the device acting as the host device in the target test link, and is not necessarily the host in the communication testing device.

[0066] In one optional implementation, the test link includes a first test link, a second test link, a third test link, and a fourth test link, and the corresponding target test link is enabled according to different test requirements.

[0067] In one optional implementation, if the target test link is the first test link, then refer to Figure 2 The link structure shown is such that the trainer participates in the interaction process of the first test link through software code. The above step S802 specifically includes: in response to the interference analyzer's interception of the passing request, modifying the request so that the interference analyzer transmits the modified request; and determining the test result based on the response of the device corresponding to the request to the modified request.

[0068] In this system, the user terminal remotely interacts with the host and trainer, controlling the interaction process of the first test link through software code. Different I / O types are used to cover requests initiated by different DMA modules in the disk adapter. Requests are captured by the interference analyzer as they pass through it. These requests can be initiated or responded to by the host and sent to the disk adapter. After being sent from the host, the request travels through an intermediate connection device to the interference analyzer, where it is captured. The analyzer then modifies the request via the API interface and outputs it back to the disk adapter through the intermediate connection device. Alternatively, requests can be initiated by the DMA module within the disk adapter. After being sent from the disk adapter, the request travels through an intermediate connection device to the interference analyzer, where it is captured. The analyzer then modifies the request via the API interface and outputs it back to the host through the intermediate connection device. Therefore, by transmitting an abnormal request through the interference analyzer, an error occurs in the PCIe communication link. PCIe requires that some packets be dropped directly, but at the same time, the content must be returned to the disk adapter. At this time, the corresponding DMA module will malfunction. Therefore, the test result is determined by whether the processing logic of the corresponding DMA module after receiving the abnormal request will result in data inconsistency, thus completing the first test of the impact of the abnormal link on the internal logic of the chip.

[0069] In one optional implementation, if the target test link is the second test link, then refer to Figure 3In the link structure shown, the trainer acts as an endpoint device connected to the downlink port of the intermediate connection device. Step S802 specifically includes: sending the target test code to the trainer so that the trainer can send abnormal message data to the disk adapter based on the target test code; and determining the test result based on the disk adapter's response to the abnormal message data.

[0070] In this system, the user terminal remotely interacts with the host and the trainer, controlling the interaction process of the second test link through software code. Different I / O types are used to cover requests initiated by different DMA modules in the disk adapter. The trainer and the disk adapter form a peer-to-peer link, while the ACS and DPC functions of the uplink and downlink ports of the intermediate connection devices are disabled to ensure that packets initiated by the trainer reach the disk adapter as much as possible. Target test code is sent to the trainer, which then sends abnormal message data to the disk adapter based on the target test code. Specifically, this is a P2P CPLD request containing poisoned data. This tests whether the disk adapter handles the abnormal message data upon receipt, whether data inconsistencies occur, and determines the test results, thus completing the test of the impact of abnormalities in the second test link on the chip's internal logic.

[0071] In one optional implementation, if the target test link is a third test link, then refer to Figure 4 and Figure 5 The link structure shown here is such that the trainer acts as a device and is connected to the root port of the disk adapter or the downlink port of the intermediate connection device. The current host device is the host. Step S802 specifically includes: sending the target test code to the current host device so that the current host device can initiate access or control to the trainer through the disk adapter or intermediate connection device; and determining the test result based on the access or control process of the current host device to the trainer.

[0072] In this system, the user terminal remotely interacts with the host and trainer, controlling the interaction process of the third testing link through software code. For example... Figure 4 As shown, when the trainer connects to the root port of the disk adapter, target test code is sent to both the host and the trainer. The host then accesses the trainer and controls the link behavior on the trainer side, thus completing the functional test of the root port. Figure 5 As shown, when the trainer is connected to the downlink port of the intermediate connection device, the interaction behavior of the third test link is enabled on the trainer side by sending target test code to the host and the trainer. The behavior logic of the receiving port (Reciver, RX) of the downlink port of the intermediate connection device and the control logic of the transmitting port (Transmitter, TX) of the uplink port are tested.

[0073] In an optional implementation, if the target test link is the fourth test link, then refer to Figure 6 and Figure 7 The link structure shown here, in which the trainer acts as the host, i.e., the current host device is the host, connected to the endpoint device of the disk adapter, or connected to the uplink port of the intermediate connection device. The above step S802 specifically includes: sending the target test code to the trainer so that the trainer sends a configuration request to determine the endpoint device connected to the intermediate connection device; controlling the interaction between the trainer and the intermediate connection device, and the interaction between the intermediate connection device and the trainer; and determining the test result based on the interaction process between the trainer and the intermediate connection device.

[0074] In this system, the user terminal interacts remotely with the trainer, controlling the interaction process of the fourth testing link through software code. For example... Figure 6 As shown, when the trainer connects to the endpoint device of the disk adapter, the TRACE32 debugging tool is used to control the various DMA modules within the disk adapter to initiate various types of messages and control the link interaction on the trainer side, thereby completing the test of PCIe functionality. Figure 7 As shown, when the trainer is connected to the uplink port of the intermediate connection device, the user terminal sends a configuration request through the trainer, enumerates the endpoint devices connected to the downlink port of the intermediate connection device, and controls each uplink and downlink port of the intermediate connection device through the serial port to perform functional testing of the routing logic. By controlling the link interaction on the trainer side, the behavior logic of the receiver (Reciver, RX) port of the uplink port and the control logic of the transmitter (Transmitter, TX) port of the downlink port of the intermediate connection device are tested.

[0075] The communication testing method provided in this invention enables target test links based on the configuration of the trainer, thereby allowing the construction of different test links according to testing requirements and testing the corresponding test functions of different test links. Simultaneously, target test code is issued to the current host device and / or trainer to test the target test links based on the target test code and obtain test results. Thus, the target test links are tested according to the instructions of the target test code, improving the comprehensiveness of PCIe device testing.

[0076] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0077] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0078] Although embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the present invention.

Claims

1. A communication testing device, characterized in that, The device includes: a host, a disk adapter, a trainer, and an intermediate connection device; the disk adapter is provided with multiple direct memory access modules, which are used for external devices to directly transmit data with the system memory; The host and the disk adapter are connected via the intermediate connection device; The trainer is connected to the disk adapter and / or the intermediate connection device based on testing requirements, and the trainer is used to configure the test link of the communication testing device. Different test links are configured by using different connection methods between the trainer and the disk adapter and / or the intermediate connection device. By configuring the trainer on the software side to enable the target test link, the AER, DPC, PM, ACS functions of the PCIe device and the logical functions under abnormal conditions are tested respectively.

2. The apparatus according to claim 1, characterized in that, The device further includes an interference analyzer for modifying requests that have passed through the interference analyzer; The intermediate connection device includes a first connection device; the interference analyzer is connected to the first connection device. The first connection device is connected to the root port of the host and the endpoint device of the disk adapter, respectively; A first test link is formed between the host, the first connection device, the interference analyzer, and the disk adapter.

3. The apparatus according to claim 1, characterized in that, The intermediate connection device includes a second connection device; The trainer and the disk adapter are respectively connected to the downlink port of the second connection device; The root port of the host is connected to the uplink port of the second connected device; A second test link is formed between the trainer and the disk adapter.

4. The apparatus according to claim 1, characterized in that, The trainer is connected to the root port of the disk adapter and / or the downlink port of the intermediate connection device; A third test link is formed between the host, the trainer, the disk adapter, and / or the intermediate connection device.

5. The apparatus according to claim 1, characterized in that, The trainer is connected to the endpoint device of the disk adapter and / or the uplink port of the intermediate connection device; The trainer forms a fourth test link with the disk adapter and / or the intermediate connection device.

6. A communication testing method, characterized in that, The method, applied to the communication testing apparatus according to any one of claims 1-5, comprises: By configuring a trainer on the software side, the target test link is enabled; wherein, by different connection methods between the trainer and the disk adapter and / or intermediate connection device, different test links are configured to form, and the AER, DPC, PM, ACS functions of the PCIe device and the logical functions under abnormal conditions are tested respectively. The target test code is issued to the current host device and / or the trainer to test the target test link based on the target test code and obtain the test results.

7. The method according to claim 6, characterized in that, If the target test link is the first test link, then the step of issuing target test code to the current host device and / or the trainer to test the target test link based on the target test code and obtain test results includes: In response to the interference analyzer's interception of a passing request, the request is modified so that the interference analyzer transmits the modified request; The test result is determined based on the device's response to the modified request.

8. The method according to claim 6, characterized in that, If the target test link is the second test link, then the step of issuing target test code to the current host device and / or the trainer to test the target test link based on the target test code and obtain test results includes: The target test code is sent to the trainer so that the trainer sends an exception message to the disk adapter based on the target test code; The test result is determined based on the disk adapter's response to the abnormal message data.

9. The method according to claim 6, characterized in that, If the target test link is a third test link, then the step of issuing target test code to the current host device and / or the trainer to test the target test link based on the target test code and obtain test results includes: The target test code is sent to the current host device so that the current host device can initiate access or control to the trainer through a disk adapter or intermediate connection device. The test result is determined based on the current host device's access to or control of the trainer.

10. The method according to claim 6, characterized in that, If the target test link is the fourth test link, then the step of issuing target test code to the current host device and / or the trainer to test the target test link based on the target test code and obtain test results includes: The target test code is sent to the trainer so that the trainer sends a configuration request to determine the endpoint device to which the intermediate connection device is connected. The trainer and the intermediate connection device are controlled to interact respectively, and the intermediate connection device interacts with the trainer. The test results are determined based on the interaction process between the trainer and the intermediate connection device.

Citation Information

Patent Citations

  • Synchronous test method and system supporting multiple PCIE cards

    CN112416682A