Method for automatically testing stability of PCIE adapter plate
By installing network performance software on the server side and the test machine side, the PCIE signal output stability is automatically detected, which solves the problem of low manual detection efficiency in the existing technology, and realizes efficient, automated testing and stability monitoring of PCIE signals.
Patent Information
- Application Number
- CN202411279333.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-11-29
AI Technical Summary
The existing PCIE signal output stability detection relies on manual detection, which has poor efficiency and timeliness, making it difficult to maximize the use of PCIE signals in fields such as fully reinforced security computers.
The network performance software is installed on the server side and the tester side respectively. Through the iperf and automatic restart verification script, the PCIE signal function verification is carried out after the system restarts, including enumeration scanning, performance testing and logging, and the stability of the PDF format is generated. to realize automated testing of PCIE adapter board.
It realizes long-term stable performance testing of multiple PCIE output signals, monitors stability test results in real time, improves test automation and work efficiency, and promptly alerts and problem positioning.
Smart Images

Figure CN119044734A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic component testing, for example, to a method for automatically testing the stability of a PCIE adapter board. Background Art
[0002] PCI-E (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard. It is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices are allocated exclusive channel bandwidth and do not share bus bandwidth. It mainly supports active power management, error reporting, end-to-end reliable transmission, hot plugging, and quality of service (QOS) and other functions. PCIE has become the mainstream expansion interface on modern motherboards with its high-speed serial transmission, multiple specifications and wide applicability.
[0003] However, in the field of fully reinforced secure computers, the number of PCIE slots on the motherboard is limited due to factors such as the size of the motherboard. In order to meet the needs of PCIE signal usage, it is often necessary to use PCIE signal expansion and switching technology to maximize the use of PCIE signals. Currently, the commonly used implementation methods are PCIE slot expansion and PCIE signal switching. Because of the additional expansion and switching, the transmitted signal may have stability problems. Therefore, for the application of the above-mentioned expansion cards and adapter boards, the stability of the PCIE signal output is the focus of the test.
[0004] However, in the existing technical solutions, the stability of PCIE signal output still relies on manual detection, so the efficiency and timeliness of the detection are relatively poor.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The present disclosure provides a method for automatically testing the stability of a PCIE adapter board, the method comprising: The server and the companion test machine are installed with network performance software respectively. The companion test machine acts as the server and executes iperf-s -p8000 -P 2 -B serverIP to cooperate with the server to test and verify the maximum TCP and UDP bandwidth performance of the network in the LAN environment, so as to reflect the performance of the PCIE extension signal. The server side acts as the client side, imports the automatic restart verification script, sets the number of automatic restarts according to requirements, and performs PCIE signal function verification after each restart.
[0008] In some embodiments, the PCIE signal function check includes: Based on the preset number of restarts, the stability verification of the PCIE adapter board connection after the system restart is simulated. If the PCIE external device cannot be identified, an alarm message of unrecognized PCIE adapter board is generated and recorded in the log file.
[0009] In some embodiments, the PCIE signal function check further includes: Enumerate and scan the external devices of the PCIE expansion board, read the VID of each device through BIOS, and determine whether the returned value is FFFF. If the read value is not FFFF, it means that this slot has an external device. If the read value is FFFF, it means that this slot has no external device. Generate an alarm message that the slot does not recognize the PCIE external device and record it in the log file.
[0010] In some embodiments, the PCIE signal function check further includes: Perform a performance test on the PCIE output signal. In the BIOS, specify and operate the PCIE plug-in devices in sequence starting from the first slot using the VID value. Ping ServerIP -s 65500 -c 1800 is used. Based on the network packet loss rate recorded in the log, iperf -c ServerIP -p 8000 -P 2 -t 100 -i 10 is further executed. The network bandwidth and delay jitter are recorded in the log to verify the stability of the PCIE output signal.
[0011] In some embodiments, the PCIE signal function check further includes: Automatically collect alarm information and function and performance verification data during the iterative test process, output a stability test report in PDF format, and save it in the system home folder so that testers can check the stability of the PCIE adapter board based on the generated stability test report.
[0012] In some embodiments, the PCIE signal includes at least one of X4, X8, and X16 format signals.
[0013] In some embodiments, the above-mentioned process of stability verification of the PCIE adapter board connection after the system restart is simulated based on a preset number of restart times, and the iterative stability verification of the PCIE adapter board connection is performed using a model training method.
[0014] In some embodiments, the above-mentioned server side is connected to a PCIE expansion board, and all PCIE expansion card slots are plugged with a preset number of PCIE 100G network cards according to test requirements. A 100G network card of the same type is plugged into the PCIE card slot of the companion test machine. All network ports are connected to switches, and the network port IP addresses are configured to ensure that the server side and the companion test machine are normally connected and interoperable.
[0015] The PCIE adapter board stability automatic testing method provided by the embodiment of the present disclosure can achieve the following technical effects: The server side can set up automatic restart of the server system according to needs through self-written scripts. After each restart of the system, it will search whether all PCIE plug-in devices are in place and perform PCIE signal performance tests on all PCIE plug-in devices in place. It can realize long-term stable performance testing of multi-channel PCIE output signals, and can monitor the stability test results in real time according to the log file, and realize alarm function for abnormal scenarios, thereby effectively improving test automation and work efficiency.
[0016] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 It is a topological diagram of a PCIE adapter board stability automatic test environment provided by an embodiment of the present disclosure; Figure 2 It is a flow chart of a method for automatically testing the stability of a PCIE adapter board provided in an embodiment of the present disclosure; Figure 3 It is a schematic diagram of a model training process for automatic stability testing of a PCIE adapter board provided by an embodiment of the present disclosure; Figure 4 It is a structural schematic diagram of another PCIE adapter board stability automatic testing system provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0019] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0020] Unless otherwise stated, the term "plurality" means two or more.
[0021] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0022] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0023] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0024] The following is a description of the automatic stability testing method for the PCIE adapter board provided by the embodiment of the present disclosure in conjunction with the accompanying drawings.
[0025] Figure 1 This is a topology diagram of an automatic test environment for stability of a PCIE adapter board provided in an embodiment of the present disclosure.
[0026] based on Figure 1 The topology diagram shown describes the test environment. The motherboard expands multiple PCIE signal outputs, and multiple 100G X16 network cards are plugged into the PCIE expansion slots and connected to the 100G X16 network card on the companion test machine through a switch to build a basic test environment.
[0027] The server is connected to the PCIE expansion board, and all PCIE expansion slots are plugged with a preset number of PCIE100G network cards according to the test requirements. The PCIE card slot on the companion test machine is plugged with a 100G network card of the same type. All network ports are connected to the switch and the network port IP addresses are configured to ensure that the server and companion test machine networks can be connected and communicated normally.
[0028] Figure 2 is a flow chart of a method for automatically testing the stability of a PCIE adapter board provided by an embodiment of the present disclosure, such as Figure 2 As shown, the PCIE adapter board stability automatic testing method may include: S01, the server and the companion test machine install network performance software respectively. The companion test machine acts as the server and executes iperf -s -p8000 -P 2 -B serverIP to cooperate with the server to test and verify the maximum TCP and UDP bandwidth performance of the network in the LAN environment, so as to reflect the performance of PCIE extension signal; S02, the server side acts as the client side, imports the automatic restart verification script, sets the number of automatic restarts according to requirements, and performs PCIE signal function verification after each restart.
[0029] In the present disclosure, the server side can set up automatic restart of the server system according to needs through self-written scripts. After each restart of the system, it will search whether all PCIE external devices are in place under the system and perform PCIE signal performance tests on all PCIE external devices in place respectively. It can realize long-term stable performance testing of multi-channel PCIE output signals, and can monitor the stability test results in real time according to the log file, and realize alarm function for abnormal scenarios, thereby effectively improving test automation and work efficiency.
[0030] In some embodiments, the process of performing the PCIE signal function check may include: Based on the preset number of restarts, the stability verification of the PCIE adapter board connection after the system restart is simulated. If the PCIE external device cannot be identified, an alarm message of unrecognized PCIE adapter board is generated and recorded in the log file.
[0031] In some embodiments, the above process of performing PCIE signal function verification may further include: Enumerate and scan the external devices of the PCIE expansion board, read the VID of each device through BIOS, and determine whether the returned value is FFFF. If the read value is not FFFF, it means that this slot has an external device. If the read value is FFFF, it means that this slot has no external device. Generate an alarm message that the slot does not recognize the PCIE external device and record it in the log file.
[0032] In some embodiments, the above process of performing PCIE signal function verification may further include: Perform a performance test on the PCIE output signal. In the BIOS, specify and operate the PCIE plug-in devices in sequence starting from the first slot using the VID value. Ping ServerIP -s 65500 -c 1800 is used. Based on the network packet loss rate recorded in the log, iperf -c ServerIP -p 8000 -P 2 -t 100 -i 10 is further executed. The network bandwidth and delay jitter are recorded in the log to verify the stability of the PCIE output signal.
[0033] In some embodiments, the above process of performing PCIE signal function verification may further include: Automatically collect alarm information and function and performance verification data during the iterative test process, output a stability test report in PDF format, and save it in the system home folder so that testers can check the stability of the PCIE adapter board based on the generated stability test report.
[0034] In some embodiments, the PCIE signal includes at least one of X4, X8, and X16 format signals.
[0035] In some embodiments, the above-mentioned process of stability verification of the PCIE adapter board connection after the system restart is simulated based on a preset number of restart times, and the iterative stability verification of the PCIE adapter board connection is performed using a model training method.
[0036] Figure 3 This is a schematic diagram of a model training process for automatic testing of PCIE adapter stability provided by an embodiment of the present disclosure, combined with Figure 3 , the process of automatic stability testing of the above-mentioned PCIE adapter board is further described.
[0037] In a specific example, the process of automatic testing of PCIE adapter board stability may include: 1. LAN environment construction Reference Figure 1 Build a LAN test environment according to the test environment topology diagram in the test environment topology diagram. The server is connected to the PCIE expansion board. All PCIE expansion slots are plugged with a certain number of PCIE 100G 10G network cards according to the test requirements. The PCIE card slot on the companion test machine is plugged with a 100G 10G network card of the same type. All network ports are connected to the 10G switch. The network port IP address is manually configured to ensure that the server and companion test machine networks can be connected and communicated normally.
[0038] 2. Test software installation The server and the test machine are installed with network performance software respectively. The test machine acts as the server and executes iperf-s -p8000 -P 2 -B serverIP. It cooperates with the server to test and verify the maximum TCP and UDP bandwidth performance of the network in the LAN environment, so as to intuitively reflect the performance of the PCIE extended signal.
[0039] The server side acts as the client side and imports the automatic restart verification script. The number of automatic restarts can be set according to needs, and a series of PCIE signal function checks are performed after each restart.
[0040] 3. PCIE output stability test The server starts the automatic restart script. After setting the restart times and interval, the client will automatically perform stability test verification. The test points involved are as follows: The restart times N can infinitely simulate the stability verification of the PCIE adapter board connection after the system restarts. If the system cannot identify the PCIE external device, an alarm message is directly thrown: "PCIE adapter board not identified!" and recorded in the log file.
[0041] The PCIE expansion board external device enumeration scan can read the VID of each device through BIOS and determine whether the return value is FFFF. If it is not FFFF, it means that there is an external device in this slot. If it is FFFF, it means that there is no external device in this slot. At this time, an alarm message is thrown: "The Nth slot does not recognize the PCIE external device!" and recorded in the log file.
[0042] PCIE output signal performance test: In BIOS, the PCIE plug-in devices are specified and operated in sequence starting from the first slot through the VID value. Ping ServerIP -s 65500 -c 1800 is used. According to the network packet loss rate recorded in the log, iperf -c ServerIP -p 8000 -P 2 -t 100 -i 10 is further executed. The network bandwidth and delay jitter are recorded in the log to verify the stability of the PCIE output signal.
[0043] 4. Test report output: the system script automatically collects the alarm information and function and performance verification data during the iterative test process, outputs the stability test report in PDF format, and saves it in the system home folder. The tester can wait for the test time to end and then analyze the test report produced by the system to intuitively view the stability of the PCIE adapter board.
[0044] The automatic stability test method of the PCIE adapter board provided in the embodiment of the present disclosure can test all PCIE slots on the PCIE adapter board at the same time, without limiting the number of PCIE slots, and can verify the PCIE signal output in parallel at the same time, so as to test and verify the function and performance of the material to the maximum extent. Moreover, the real-time monitoring and early warning mechanism can record all test results and throw out alarm information in time, so as to facilitate the test personnel to analyze and locate the problem in time. It is also suitable for mainstream PCIE adapter boards, supports the testing of multiple PCIE signal formats, and can seamlessly replace related materials.
[0045] Combination Figure 4 As shown, the embodiment of the present disclosure provides another PCIE adapter board stability automatic test system 400, including a processor 404 and a memory 401. Optionally, the system may also include a communication interface 402 and a bus 403. Among them, the processor 404, the communication interface 402, and the memory 401 can communicate with each other through the bus 403. The communication interface 402 can be used for information transmission. The processor 404 can call the logic instructions in the memory 401 to execute the PCIE adapter board stability automatic test method of the above embodiment.
[0046] In addition, the logic instructions in the memory 401 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0047] The memory 401 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 404 executes the function application and data processing by running the program instructions / modules stored in the memory 401, that is, the automatic test method for the stability of the PCIE adapter board in the above embodiment is implemented.
[0048] The memory 401 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 401 may include a high-speed random access memory and may also include a non-volatile memory.
[0049] The embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as a method for automatically testing the stability of a PCIE adapter board.
[0050] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0051] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0052] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. As used in the description of the embodiments, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0053] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0054] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0055] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A PCIE adapter board stability automatic testing method, characterized in that: The method comprises: The server and the companion test machine are installed with network performance software respectively. The companion test machine acts as the server and executes iperf -s-p8000 -P 2 -B serverIP to cooperate with the server to test and verify the maximum TCP and UDP bandwidth performance of the network in the LAN environment, so as to reflect the performance of the PCIE extension signal. The server side acts as the client side, imports the automatic restart verification script, sets the number of automatic restarts according to requirements, and performs PCIE signal function verification after each restart.
2. The method according to claim 1, characterized in that The PCIE signal function check includes: Based on the preset number of restarts, the stability verification of the PCIE adapter board connection after the system restart is simulated. If the PCIE external device cannot be identified, an alarm message of unrecognized PCIE adapter board is generated and recorded in the log file.
3. The method according to claim 2, characterized in that The PCIE signal function verification further includes: Enumerate and scan the external devices of the PCIE expansion board, read the VID of each device through BIOS, and determine whether the returned value is FFFF. If the read value is not FFFF, it means that this slot has an external device. If the read value is FFFF, it means that this slot has no external device. Generate an alarm message that the slot does not recognize the PCIE external device and record it in the log file.
4. The method according to claim 3, characterized in that The PCIE signal function verification further includes: Perform a performance test on the PCIE output signal. In the BIOS, specify and operate the PCIE plug-in devices in sequence starting from the first slot using the VID value. Ping ServerIP -s 65500 -c 1800 is used. Based on the network packet loss rate recorded in the log, iperf -c ServerIP -p 8000 -P 2 -t 100 -i 10 is further executed. The network bandwidth and delay jitter are recorded in the log to verify the stability of the PCIE output signal.
5. The method according to any one of claims 1 to 4, characterized in that: The PCIE signal function verification further includes: Automatically collect alarm information and function and performance verification data during the iterative test process, output a stability test report in PDF format, and save it in the system home folder so that testers can check the stability of the PCIE adapter board based on the generated stability test report.
6. The method according to claim 1, characterized in that The PCIE signal includes at least one of X4, X8, and X16 format signals.
7. The method according to claim 2, characterized in that The method simulates the process of stability verification of the PCIE adapter board connection after the system restarts based on the preset number of restart times, and uses model training to perform iterative stability verification of the PCIE adapter board connection.
8. The method according to claim 1, characterized in that The server end is connected to the PCIE expansion board, and all PCIE expansion slots are plugged with a preset number of PCIE 100G network cards according to test requirements. The PCIE card slot on the companion test machine is plugged with a 100G network card of the same type. All network ports are connected to the switch, and the network port IP address is configured to ensure that the server end and the companion test machine end are normally connected and interoperable.
