Link test method, device, equipment and medium

By obtaining and verifying the device and link attribute information, reading the state information before and after restart of the device to be tested, and obtaining the link equalization parameter value, the problem of server restart testing in the prior art is solved, and testing efficiency and accuracy are improved.

CN120086079APending Publication Date: 2025-06-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510199090.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

In the prior art, server restart testing takes a long time, resulting in low testing efficiency.

Method used

By obtaining the device attribute information and link attribute information of the device to be tested, the link attribute verification result is determined, and when the verification is passed, the status information before and after restart of the device to be tested is read, the parameter value of the link equalization signal is obtained, and the test result is determined.

Benefits of technology

The restart test process of the device to be tested is shortened, the efficiency of link testing is improved, and the link instability caused by omissions in the link testing process is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120086079A_ABST
    Figure CN120086079A_ABST
Patent Text Reader

Abstract

The invention provides a link testing method and device, equipment and a medium, and can be applied to the technical field of server testing. The method comprises the following steps: acquiring equipment attribute information of to-be-tested equipment and link attribute information of a to-be-tested link; determining a link attribute verification result according to the link attribute information and preset link attribute information; under the condition that the link attribute verification result indicates that verification is passed, first state information before the to-be-tested device is restarted is read, the to-be-tested device is disconnected from the connection control register, the to-be-tested device is connected with the connection control register after the to-be-tested device is disconnected for a preset duration, and second state information after the to-be-tested device is restarted is read; acquiring a first equalization parameter value and a second equalization parameter value of a link equalization signal under the condition that link state information determined according to the first state information and the second state information represents that the state of the to-be-tested equipment is correct; and determining a test result according to the first equalization parameter value and the second equalization parameter value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of server testing, and particularly to a link testing method, device, equipment and medium. Background Art

[0002] With the development of technology, the rate of Peripheral Component Interconnect express (PCIe) devices supported by servers has gradually increased. Servers are connected to PCIe devices through external PCIe slots, and data is transmitted between multiple PCIe devices through PCIe links.

[0003] In the process of implementing this application, the inventors found that in the related art, the server is mainly restarted as a whole for testing. During the server restart process, there are many initialization actions, which takes a long time and results in low test efficiency. Summary of the Invention

[0004] In view of the above problems, this application provides a link testing method, device, equipment and medium.

[0005] According to the first aspect of this application, a link testing method is provided, including: obtaining device attribute information of a device under test and link attribute information of a link under test, where the link under test is a link for data transmission between multiple devices under test; determining a link attribute verification result according to the link attribute information and preset link attribute information; in the case where the link attribute verification result indicates that the verification is passed, reading first state information of the device under test before restart, disconnecting the device under test from a connection control register, and reconnecting the device under test to the connection control register after a preset duration, and reading second state information of the device under test after restart, where the device under test is electrically connected to at least one connection control register; in the case where the link state information determined according to the first state information and the second state information represents that the state of the device under test is correct, obtaining a first equalization parameter value and a second equalization parameter value of a link equalization signal, where the first equalization parameter value represents an equalization parameter value related to the link under test, and the second equalization parameter value represents an equalization parameter value related to the device under test; determining a test result according to the first equalization parameter value and the second equalization parameter value.

[0006] According to an embodiment of this application, determining a test result according to the first equalization parameter value and the second equalization parameter value includes: performing intensity conversion processing on the first equalization parameter value and the second equalization parameter value to obtain a first intensity value corresponding to the first equalization parameter value and a second intensity value corresponding to the second equalization parameter value; determining a target parameter value according to the first intensity value, the second intensity value and a preset parameter range; determining a test result according to the target parameter value.

[0007] According to an embodiment of the present application, the device under test is disposed in the server under test, and the link test method further includes: configuring a pre-boot execution environment service, where the pre-boot execution environment service is used to provide a transmission service for the mirror file to the server under test; providing a mirror file to the server under test; and implementing the configuration of the control server according to the mirror file.

[0008] According to an embodiment of the present application, the mirror file is generated through the following steps: obtaining a Red Hat package from a software repository and decompressing the Red Hat package to obtain a configuration file, where the software repository is pre-configured; installing a target parameter value reading tool; modifying the configuration file and using the target parameter value reading tool to obtain the Internet protocol address of the control server; and compressing the Internet protocol address to generate a mirror file.

[0009] According to an embodiment of the present application, the device attribute information includes device model information and device slot information, and the method further includes: before determining the link attribute verification result, determining the device attribute verification result according to the first device attribute verification result and the second device attribute verification result, where the first device attribute verification result is obtained by comparing the device model configuration information and the device model information, and the second device attribute verification result is obtained by comparing the device slot configuration information and the device slot information.

[0010] According to an embodiment of the present application, the preset link attribute information includes preset link rate information and preset link bandwidth information; determining the link attribute verification result according to the link attribute information and the preset link attribute information includes: obtaining a first link attribute verification result by comparing the link rate information and the preset link rate information; obtaining a second link attribute verification result by comparing the link bandwidth information and the preset link bandwidth information; and determining the link attribute verification result according to the first link attribute verification result and the second link attribute verification result; where the link rate information and the link bandwidth information are obtained by splitting the link attribute information.

[0011] According to an embodiment of the present application, the link test method further includes: after performing the step of disconnecting the device under test from the connection control register and reconnecting the device under test to the connection control register after a preset duration, incrementing the test times to obtain the current test times; and ending the test of the link under test when the current test times reach the preset times.

[0012] A second aspect of the present application provides a link test apparatus, including: a first acquisition module, a first determination module, a reading module, a second acquisition module, and a second determination module.

[0013] A first acquisition module, configured to acquire device attribute information of a device under test and link attribute information of a link under test, where the link under test is a link for data transmission between multiple devices under test.

[0014] A first determination module, configured to determine a link attribute verification result according to the link attribute information and preset link attribute information.

[0015] A reading module, configured to, when the link attribute verification result indicates that the verification is passed, read first status information of the device under test before restart, disconnect the device under test from a connection control register, and after a preset duration of disconnection, connect the device under test to the connection control register, and read second status information of the device under test after restart, where the device under test is electrically connected to at least one connection control register.

[0016] A second acquisition module, configured to, when link status information determined according to the first status information and the second status information indicates that the status of the device under test is correct, acquire a first equalization parameter value and a second equalization parameter value of a link equalization signal, where the first equalization parameter value represents an equalization parameter value related to the link under test, and the second equalization parameter value represents an equalization parameter value related to the device under test.

[0017] A second determination module, configured to determine a test result according to the first equalization parameter value and the second equalization parameter value.

[0018] A third aspect of the present application provides an electronic device, including: one or more processors; a memory, configured to store one or more computer programs, where the above one or more processors execute the above one or more computer programs to implement the steps of the above method.

[0019] A fourth aspect of the present application further provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the computer program or instruction is executed by a processor, the steps of the above method are implemented.

[0020] A fifth aspect of the present application further provides a computer program product, including a computer program or instruction, and when the computer program or instruction is executed by a processor, the steps of the above method are implemented.

[0021] According to the link testing method provided by the present application, by obtaining the device attribute information and link attribute information, the link attribute verification result can be determined. When the link attribute verification result indicates that the verification is passed, the link status information can be determined by the first status information and the second status information read before and after the restart of the device under test. When the link status information indicates that the status of the device under test is correct, the first equalization parameter value and the second equalization parameter value are obtained, and then the link test result is determined. Since the first status information and the second status information are read before and after the restart of the device under test, the restart test process of the device under test takes less time than the restart test process based on the server, improving the test efficiency of the link. In addition, the first equalization parameter value and the second equalization parameter value are obtained during the test process of the link under test, and both can include multiple values. By processing the first equalization parameter value and the second equalization parameter value, the test result can be obtained, reducing the link instability caused by the omission of problems during the link test process. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Through the following description of the embodiments of the present application with reference to the drawings, the above content and other objects, features and advantages of the present application will become clearer. In the drawings:

[0023] Figure 1 Schematically shows an application scenario diagram of the link testing method according to an embodiment of the present application;

[0024] Figure 2 Schematically shows a flowchart of the link testing method according to an embodiment of the present application;

[0025] Figure 3 Schematically shows a topology diagram of the link testing system according to an embodiment of the present application;

[0026] Figure 4 Schematically shows a structural diagram of the configuration control server according to an embodiment of the present application;

[0027] Figure 5 Schematically shows a flowchart of the link testing method according to another embodiment of the present application;

[0028] Figure 6 Schematically shows a flowchart of the link testing method according to still another embodiment of the present application;

[0029] Figure 7 Schematically shows a structural block diagram of the link testing device according to an embodiment of the present application; and

[0030] Figure 8 Schematically shows a block diagram of an electronic device suitable for implementing the link testing method according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0031] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present application. In the following detailed description, for the sake of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present application.

[0032] The terms used herein are merely for describing specific embodiments and are not intended to limit the present application. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0033] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0034] In cases where expressions similar to "at least one of A, B, and C, etc." are used, generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0035] In the technical solution of the present application, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data that have been authorized by the user or fully authorized by all parties. Moreover, the processing of relevant data, such as collection, storage, use, processing, transmission, provision, disclosure, and application, etc., all comply with relevant laws, regulations, and standards, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0036] In the process of implementing this application, it is found that the PCIe link, as a key high-speed communication link connecting the Central Processing Unit (CPU) and various peripheral devices, plays an important role in the server hardware system. With the continuous development of PCIe technology, the data transmission rate has increased exponentially. For example, the link rate of PCIe 6.0 has reached 128 GT / s. As the rate increases, signals are more vulnerable to attenuation and distortion during transmission. Therefore, link equalization technology is required to compensate for these effects to ensure accurate and stable data transmission. The Preset value is a key parameter in the link equalization process.

[0037] However, in the actual link equalization process of the server, due to the complex diversity of supported PCIe devices, the result of link equalization may not meet the usage requirements, resulting in the probability of link anomalies such as speed reduction and bandwidth reduction of PCIe devices during restart or stress, causing instability of the PCIe link, and further affecting the normal operation of the server. In the related art, when testing the PCIe link, the server can be restarted as a whole for testing. Since more initialization actions such as CPU initialization, memory initialization, and Operating System (OS) restart are required during the server restart process, the single server restart test time is relatively long. In addition, in the related art, the connection switch bit of the connection control register corresponding to the PCIe device can be modified to simulate the restart method. This method is difficult to specifically measure the link equalization state. The PCIe link may be in a normal state for a short time, but due to the rapid switching of the connection switch bit, the test is carried out again before entering the abnormal state, resulting in the omission of problems.

[0038] In view of this, an embodiment of this application provides a link testing method, including: obtaining device attribute information of a device under test and link attribute information of a link under test, where the link under test is a link for data transmission between multiple devices under test; determining a link attribute verification result according to the link attribute information and preset link attribute information; when the link attribute verification result indicates that the verification is passed, reading first state information of the device under test before restart, disconnecting the device under test from the connection control register, and reconnecting the device under test to the connection control register after a preset duration, and reading second state information of the device under test after restart, where the device under test is electrically connected to at least one connection control register; when the link state information determined according to the first state information and the second state information indicates that the state of the device under test is correct, obtaining a first equalization parameter value and a second equalization parameter value of the link equalization signal, where the first equalization parameter value represents an equalization parameter value related to the link under test, and the second equalization parameter value represents an equalization parameter value related to the device under test; determining a test result according to the first equalization parameter value and the second equalization parameter value.

[0039] Figure 1 The figure schematically shows an application scenario diagram of the link test method according to an embodiment of the present application.

[0040] As Figure 1 shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0041] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0042] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0043] The server 105 may be a server that provides various services, such as a background management server that supports the websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (only for example). The background management server may analyze and process data such as received user requests, and feedback the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0044] Note that the link test method provided by the embodiments of the present application can generally be executed by the server 105. Correspondingly, the link test device provided by the embodiments of the present application can generally be set in the server 105. The link test method provided by the embodiments of the present application can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105. Correspondingly, the link test device provided by the embodiments of the present application can also be set in a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105.

[0045] It should be understood that Figure 1 the numbers of the first terminal device, the second terminal device, the third terminal device, the network, and the server in

[0046] Figure 2 is only illustrative. According to the implementation requirements, there can be any number of first terminal devices, second terminal devices, third terminal devices, networks, and servers.

[0047] As Figure 2 shown, the link test method 200 of this embodiment includes operations S210 to S250.

[0048] In operation S210, obtain the device attribute information of the device to be tested and the link attribute information of the link to be tested.

[0049] In operation S220, determine the link attribute verification result according to the link attribute information and the preset link attribute information.

[0050] In operation S230, when the link attribute verification result indicates that the verification is passed, read the first state information of the device to be tested before restart, disconnect the device to be tested from the connection control register, and after a preset duration of disconnection, connect the device to be tested to the connection control register, and read the second state information of the device to be tested after restart.

[0051] In operation S240, when the link state information determined according to the first state information and the second state information indicates that the state of the device to be tested is correct, obtain the first equalization parameter value and the second equalization parameter value of the link equalization signal.

[0052] In operation S250, determine the test result according to the first equalization parameter value and the second equalization parameter value.

[0053] According to an embodiment of the present application, there may be multiple devices under test, and the devices under test may include PCIe devices. For example, the PCIe device may be a network card, a solid state drive (SSD), or other devices. The link under test may be a link for data transmission between multiple devices under test. When the device under test is a PCIe device, the link under test is a PCIe link. The attribute information of the device under test may characterize the attributes of the device under test in the present application. For example, the device model of the device under test. The attribute information of the link under test may characterize the attributes of the link under test. For example, the link rate of the link under test.

[0054] According to an embodiment of the present application, the preset link attribute information may be designed according to requirements or experience. For example, when the preset link attribute information is stored in a configuration file, it can be obtained from the configuration file. According to the link attribute information and the preset link attribute information, the link attribute verification result can be determined. For example, when the link attribute information is consistent with the preset link attribute information, the link attribute verification result may indicate that the state of the device under test is correct. Another example is that when the link attribute information is inconsistent with the preset link attribute information, the link attribute verification result may indicate that the state of the device under test is incorrect.

[0055] According to an embodiment of the present application, when the link attribute verification result indicates that the verification is passed, the first state information before the device under test is restarted can be read. The first state information may characterize each state information before the device under test is restarted. For example, the alarm information of the PCIe device, etc.

[0056] According to an embodiment of the present application, the device under test can be electrically connected to at least one connection control register through a connection switch. The restart process of the device under test is to disconnect the device under test from the connection control register and reconnect the device under test to the link control register after a preset time period. After the device under test is restarted, the second state information after the device under test is restarted is read. The second state information after the device under test is restarted corresponds to the first state information before the device under test is restarted. The second state information may characterize each state information after the device under test is restarted. For example, the alarm information of the PCIe device, etc.

[0057] According to an embodiment of the present application, by comparing the first state information and the second state information, the link state information can be determined. When the first state information is consistent with the second state information, it can indicate that the link state information verification is passed. When the first state information is inconsistent with the second state information, it can indicate that the link state information verification fails.

[0058] According to an embodiment of the present application, the first equalization parameter value can represent an equalization parameter value related to the link to be tested, and the second equalization parameter value can represent an equalization parameter value related to the device to be tested. When the link status information indicates that the status of the device to be tested is correct, the first equalization parameter value and the second equalization parameter value of the link equalization signal can be obtained.

[0059] According to an embodiment of the present application, by processing the first equalization parameter value and the second parameter value, a target parameter value can be obtained, and then the test result can be determined according to the target parameter value.

[0060] According to an embodiment of the present application, through the obtained device attribute information and link attribute information, the link attribute verification result can be determined. When the link attribute verification result indicates that the verification is passed, through the first status information and the second status information before and after the restart of the device to be tested read, the link status information can be determined. When the link status information indicates that the status of the device to be tested is correct, the first equalization parameter value and the second equalization parameter value can be obtained, and then the link test result can be determined. Since the first status information and the second status information are read before and after the restart of the device to be tested, the restart test process of the device to be tested takes less time than the restart test process based on the server, improving the test efficiency of the link. In addition, the first equalization parameter value and the second equalization parameter value are obtained during the test process of the link to be tested, and both can include multiple values. By processing the first equalization parameter value and the second equalization parameter value, the test result can be obtained, reducing the link instability caused by the omission of problems in the link test process.

[0061] Figure 3 Schematically shows a topology diagram of a link test system according to an embodiment of the present application.

[0062] As Figure 3 shown, the link test system includes a control server 310, a switch 320, a server under test 1 "330", a server under test 2 "340", and a server under test 3 "350". The control server 310 can be connected to multiple servers under test based on the switch 320, so as to realize the network interconnection of the server under test 1 "330", the server under test 2 "340", and the server under test 3 "350" through the switch 320 and the control server 310, and then realize the control of the control server 310 over the server under test 1 "330", the server under test 2 "340", and the server under test 3 "350".

[0063] According to an embodiment of the present application, there can be multiple servers under test. For example, the above Figure 3It includes 3 servers to be tested. Before conducting the link test, it is necessary to set up the servers to be tested in the PCIe link and configure the devices to be tested. For example, the maximized PCIe device insertion methods supported by the servers to be tested can be configured to achieve the coverage test of multiple slots of the same PCIe device or the simultaneous coverage test of different PCIe devices.

[0064] According to the embodiments of the present application, since the purpose of the link test is mainly to test the stability of the PCIe link and the equalization process of the PCIe link is jointly affected by the CPU and the PCIe device, only the CPU and PCIe device to be configured on the server to be tested have relevant requirements, and the memory capacity can be relatively small to save the use of memory. The server to be tested does not need to install other storage devices, but the server to be tested needs to install a Universal Serial Bus (USB) network card with the Preboot Execution Environment (PXE) function to achieve network interconnection through the switch and the control server.

[0065] According to the embodiments of the present application, the control of the server to be tested by the control server can be realized based on the configuration of the control server. The following will specifically introduce the configuration process of the control server.

[0066] According to the embodiments of the present application, the above link test method further includes: configuring the Preboot Execution Environment service; providing an image file to the server to be tested; and realizing the configuration of the control server according to the image file.

[0067] According to the embodiments of the present application, the device to be tested is set on the server to be tested, and multiple slots can be set on the server to be tested. The device to be tested is installed on the server to be tested based on the slots.

[0068] According to the embodiments of the present application, the Preboot Execution Environment (PXE) service may include a Dynamic Host Configuration Protocol (DHCP) sub-service and a Trivial File Transfer Protocol (TFTP) sub-service. The Dynamic Host Configuration Protocol sub-service is used to assign Internet Protocol (IP) addresses to the servers to be tested. The Trivial File Transfer Protocol sub-service is used to provide the transmission service of the image file to the servers to be tested. By configuring and starting the execution environment service, an image file can be provided to the servers to be tested. The configuration of the control server can be realized according to the image file, and then the control of the server to be tested can be realized.

[0069] According to an embodiment of the present application, the image file generally consists of two parts, namely vmlinuz and initrd.img. vmlinuz is a bootable and compressed Linux kernel image file. The vmlinuz file contains the Linux kernel itself and related functions, and is one of the key files when the Linux operating system starts. initrd.img is an image file used to initialize the Random Access Memory (RAM) disk in the Linux system. The initrd.img file is a compressed image file. When the Linux system starts, the boot loader will load initrd.img into memory, decompress and mount it as the root file system, providing necessary support files and drivers for the kernel initialization process. For example, the boot loader can be the GRand Unified Bootloader (GRUB).

[0070] Figure 4 Schematically shows a structural diagram of a configuration control server according to an embodiment of the present application.

[0071] As Figure 4 shown, the Preboot Execution Environment (PXE) service includes the Dynamic Host Configuration Protocol (DHCP) sub-service and the Trivial File Transfer Protocol (TFTP) sub-service. The configuration file can control the test process of the device under test. After the test is completed, the first equilibrium parameter value and the second equilibrium parameter value obtained during the test process are processed to obtain the target parameter value, so that the test result can be obtained, and after the test result is processed, it is stored in the test database.

[0072] According to an embodiment of the present application, the image file is generated through the following steps: obtaining Red Hat packages from the software repository, decompressing the Red Hat packages to obtain the configuration file; installing the target parameter value reading tool; modifying the configuration file and using the target parameter value reading tool to obtain the Internet Protocol (IP) address of the control server; compressing the IP address to generate the image file.

[0073] According to an embodiment of the present application, the operating system of the control server can include the basic operating system and other operating systems. The software repository (abbreviated as YUM source) is pre-configured under the operating system of the control server, and the software repository can provide the Red Hat packages (abbreviated as RPM packages) required to install the basic operating system.

[0074] According to an embodiment of the present application, by using an instruction to decompress a Red Hat package under a specified folder path, a configuration file can be obtained. The target parameter value reading tool can be referred to as the Preset value reading tool. By copying the target parameter value reading tool to the installation path of the basic operating system and using an instruction to complete the installation of the target parameter value reading tool.

[0075] According to an embodiment of the present application, by modifying the configuration file, the Internet Protocol address of the control server can be obtained by using the target parameter value reading tool, and then the Internet Protocol address can be compressed to generate an image file.

[0076] According to an embodiment of the present application, the image file can be placed in a fixed path, so that when the PXE boot of the server to be tested is started, the boot file can be automatically obtained from the control server, realizing the installation of the diskless operating system for testing.

[0077] According to an embodiment of the present application, the configuration file of the control server may include the IP address of the Baseboard Management Controller (BMC) of the server to be tested, the PCIe device model installed on the server to be tested, and the slot information of the server to be tested.

[0078] According to an embodiment of the present application, the information of the server to be tested can be read through the configuration file to start the test. After the test is completed, the test report processing program of the control server and the test database analyze and process the data transmitted back by the server to be tested, so as to obtain the target parameter value, and further obtain the stability of the link to be tested.

[0079] According to an embodiment of the present application, by modifying the configuration file, the Internet Protocol address of the control server can be obtained by using the target parameter value reading tool, and then the Internet Protocol address can be compressed to generate an image file. Based on the image file, the configuration server can be configured, and the configured control server can realize the control of the server to be tested.

[0080] According to an embodiment of the present application, by reading the IP address of the BMC of the server to be tested in the test configuration file, the out-of-band control instruction of the BMC can achieve out-of-band power-on of the server to be tested. After the server to be tested is powered on, since there is no storage device, it performs PXE boot through a USB network card with PXE function under the control of the Basic Input / Output System (BIOS). During the PXE boot process, the server to be tested sends a DHCP service request, and the control server responds to the request, allocates an IP and a startup file to the server to be tested. The server to be tested configures the IP, then receives the startup file, loads the startup file, and requests an image file including the vmlinuz file and the initrd.img file from the control server according to the description in the startup file. After receiving the vmlinuz file, it starts the linux system kernel and configures and starts the system services according to the initrd.img file.

[0081] According to an embodiment of the present application, the link test method further includes: before determining the link attribute verification result, determining the device attribute verification result according to the first device attribute verification result and the second device attribute verification result.

[0082] According to an embodiment of the present application, the device model information can represent the device model of the PCIe device. The device slot information can represent the slot information of the PCIe device installed in the server to be tested using the slot. The device attribute information can include the device model information and the device slot information.

[0083] According to an embodiment of the present application, by scanning the number of PCIe device links of the server to be tested, checking the existing PCIe devices currently, for example, network card devices, and obtaining the corresponding bus number: device number: function number (abbreviated as BDF number), and obtaining the device model of the device to be tested from the BDF.

[0084] According to an embodiment of the present application, the first device attribute verification result is obtained by comparing the device model configuration information and the device model information. The second device attribute verification result is obtained by comparing the device slot configuration information and the device slot information. The device model configuration information and the device slot configuration information can be obtained from the configuration file.

[0085] According to an embodiment of the present application, when the device attribute result indicates that the verification passes, continue to execute the test. When the device attribute result indicates that the verification fails, report an error and exit the test.

[0086] According to an embodiment of the present application, first determine the device attribute verification result based on the first device attribute verification result and the second device attribute verification result. When the device attribute verification result indicates that the verification is passed, then determine the link attribute verification result. When the device attribute verification result indicates that the verification is passed, report an error and exit the test, which improves the test efficiency of the link test.

[0087] According to an embodiment of the present application, determining the link attribute verification result based on the link attribute information and the preset link attribute information includes: obtaining the first link attribute verification result by comparing the link rate information and the preset link rate information; obtaining the second link attribute verification result by comparing the link bandwidth information and the preset link bandwidth information; and determining the link attribute verification result based on the first link attribute verification result and the second link attribute verification result.

[0088] According to an embodiment of the present application, the preset link attribute information can represent the rate and bandwidth supported by the device under test, and the preset link attribute information includes the preset link rate information and the preset link bandwidth information. When the device under test is a network card, the preset link attribute information can be the rate gen5 and the bandwidth x16 supported by the network card. By performing a segmentation process on the link attribute information, a status reading tool can be used to read the connection status of the link, so as to obtain the link rate information and the link bandwidth information.

[0089] According to an embodiment of the present application, the first link attribute verification result can be obtained by comparing the link rate information and the preset link rate information. The second link attribute verification result is obtained by comparing the link bandwidth information and the preset link bandwidth information. The link attribute verification result can be determined based on the first link attribute verification result and the second link attribute verification result.

[0090] According to an embodiment of the present application, the first link attribute verification result is obtained by comparing the link rate information and the preset link rate information, the second link attribute verification result is obtained by comparing the link bandwidth information and the preset link bandwidth information, and then the link attribute verification result is determined based on the first link attribute verification result and the second link attribute verification result. When the link attribute verification result indicates that the verification is passed, read the first status information of the device under test before restart. When the link attribute verification result indicates that the verification fails, exit the current test process, which improves the test efficiency of the link.

[0091] According to an embodiment of the present application, the above link test method further includes: after performing the step of disconnecting the device under test from the connection control register and reconnecting the device under test to the connection control register after a preset duration, incrementing the test times to obtain the current test times; and ending the test of the link under test when the current test times reach the preset times.

[0092] According to an embodiment of the present application, the preset number of times can be set according to requirements and experience. For example, the preset number of times can be 500 times.

[0093] According to an embodiment of the present application, by setting the connection control register of the upstream bridge device of the PCIe device, the disconnection (link down) control of the upstream bridge is triggered, so that the device under test is connected to the connection control register. By scanning the PCIe device link tree of the server under test with lspci -tv, the BDF corresponding to the upstream Bridge device of the device under test is obtained and recorded as bridge_bdf. At this time, querying the connection status of the device under test will show that it is not linked.

[0094] According to an embodiment of the present application, reset the connection control register of the upstream Bridge device of the PCIe device to trigger the connection (link up) control of the Bridge device, so that the PCIe device resumes connection. After waiting for a preset duration, querying the device status will show that the link is connected. For example, the preset duration can be 3s.

[0095] According to an embodiment of the present application, after performing the steps of disconnecting the device under test from the connection control register and reconnecting the device under test to the connection control register after a preset disconnection duration, it represents the completion of one test process, and the test count is incremented, that is, adding one to the test count to obtain the current test count.

[0096] According to an embodiment of the present application, when the current test count reaches the preset number of times, the test of the link under test is ended. In addition, the test process may also exit due to errors during the test. After ending the test of the link under test, enter the test report processing section. In the test report processing section, it will be judged whether the test end status is ending the test process by reaching the preset number of times or ending the test process due to errors, and the test end status will be output in the test report.

[0097] According to an embodiment of the present application, after each restart of the device under test, the test count is incremented to obtain the current test count. When the current test count reaches the preset number of times, the test of the link under test is ended. After the test is ended, the first equalization parameter value and the second equalization parameter value can be processed to obtain the target parameter value, and then the stability of the link under test can be obtained, realizing the measurement of the equalization state of the link under test.

[0098] According to an embodiment of the present application, the status of the Advanced Error Reporting (AER) link register of a PCIe device is detected. The AER link is a link in the PCIe link for transmitting information related to advanced error reporting. For example, in the case where the register status of the advanced error reporting link before the device under test is restarted is included in the first status information and the register status of the AER link after the device under test is restarted is included in the second status information, by comparing the AER registers read before and after the device under test is restarted, that is, by performing a non-zero determination on the bits of the AER registers before and after restart, the second link status information can be determined. When the second link status information indicates that the verification passes, the subsequent test is continued; when the second link status information indicates that the verification fails, an error is reported and the test is exited.

[0099] According to an embodiment of the present application, by detecting the second status information of the Advanced Error Reporting (AER) link register after the PCIe device is restarted, it can be further compared with the first status information before the device under test is restarted. When the second link status information indicates that the verification passes, the subsequent test is continued; when the second link status information indicates that the verification fails, an error is reported and the test is exited, further improving the test efficiency of the link under test.

[0100] According to an embodiment of the present application, based on the first equalization parameter value and the second equalization parameter value, a test result is determined, including: performing a strength conversion process on the first equalization parameter value and the second equalization parameter value to obtain a first strength value corresponding to the first equalization parameter value and a second strength value corresponding to the second equalization parameter value; determining a target parameter value according to the first strength value, the second strength value, and a preset parameter range; and determining the test result according to the target parameter value.

[0101] According to an embodiment of the present application, by performing a strength conversion process on the first equalization parameter value and the second equalization parameter value, a first strength value corresponding to the first equalization parameter value and a second strength value corresponding to the second equalization parameter value can be obtained.

[0102] For example, when the second equalization parameter value includes a channel (Lane), a pre-cursor (Pre-cursor (Cm1)), a cursor (Cursor (C0)), and a post-cursor (Post-cursor (Cp1)), by using the following formulas (1) to (3), three second strength values corresponding to the second equalization parameter value can be obtained respectively.

[0103] (1)

[0104] (2)

[0105] (3)

[0106] Wherein, represents the 1st second strength corresponding to the second equalization parameter value, represents the 2nd second strength corresponding to the second equalization parameter value, represents the 3rd second strength corresponding to the second equalization parameter value.

[0107] According to the embodiments of the present application, the process of obtaining the first strength value corresponding to the first equalization parameter value by strengthening the first equalization parameter value is similar to the process of strengthening the second equalization parameter value, except that the parameters included in the first equalization parameter value are substituted for the parameters in the second equalization parameter value in the above formulas (1)-(3), which will not be elaborated here.

[0108] According to the embodiments of the present application, the preset parameter range can represent a set of parameters, and the preset parameter range can include multiple parameter sub-ranges. For example, the preset parameter range can be a Preset value table. In one embodiment, the Preset value table can include 10 parameter sub-ranges, denoted by Preset1, Preset2, Preset3, Preset4, Preset5, Preset6, Preset7, Preset8, Preset9, and Preset10 respectively. By performing range judgment on the first strength value and the second strength value with the preset parameter range, the target sub-parameter range to which the first strength value belongs, that is, the target parameter value corresponding to the first strength value, can be determined from multiple sub-parameter ranges, and the target sub-parameter range to which the second strength value belongs, that is, the target parameter value corresponding to the second strength value, can also be determined from multiple sub-parameter ranges. Therefore, the target parameter value can include at least one, and then the link test result is determined according to the target parameter value.

[0109] For example, when multiple target parameter values are stable at P8 or P9, it can be determined that the test result of the link to be tested is that the link is stable. For another example, when the target parameter values are P8, P9, P2, and P6, it can be determined that the test result of the link to be tested is that the link is unstable.

[0110] According to the embodiments of the present application, by performing strength conversion processing on the first equalization parameter value and the second equalization parameter value, the first strength value corresponding to the first equalization parameter value and the second strength value corresponding to the second equalization parameter value can be obtained, and by performing range judgment on the first strength value and the second strength value with the preset parameter range, the target parameter value can be determined, and then the test result can be determined, improving the link test efficiency and reducing the link instability caused by missing problems in the link test process.

[0111] According to an embodiment of the present application, by recording the first equalization parameter value, the second equalization parameter value, the first strength value, the second strength value, and the corresponding Preset value during the test, the data during one test process is shown in Table 1. In this embodiment, the test is performed 500 times, and the final Preset values that appear are P8 for 5210 times and P9 for 2790 times. At the same time, a search comparison is made with the test database to determine whether there is test data under the same scenario. If not, a new test data record is added. The Preset values of this device under test are stable at P8 and P9 in the test scenario, and no abnormal Preset values appear, indicating that the stability of the link under test is good.

[0112] Table 1 Parameter Table during the Test of the Link under Test

[0113]

[0114] According to an embodiment of the present application, in Table 1 above, the link under test includes 16 channels, namely lane0, lane1, lane2, lane3, lane4, lane5, lane6, lane7, lane8, lane9, lane10, lane11, lane12, lane13, lane14, and lane15. Pre-cursor (Cm1), Cursor (C0), and Post-cursor (Cp1) are respectively the second equalization parameter values, and Preshoot (dB), Boost, and De-emphasis (dB) are respectively 3 second strength values corresponding to the second equalization parameter values, and preset represents the target parameter value.

[0115] Figure 5 The flowchart of the link test method according to another embodiment of the present application is schematically shown.

[0116] As Figure 5 shown, the link test method 500 of this embodiment includes operations S510 to S550.

[0117] In operation S510, set up the server under test and configure the device under test.

[0118] In operation S520, configure the control server to obtain a test control environment.

[0119] In operation S530, restart the server under test to boot and load the test control environment.

[0120] In operation S540, execute the test process of the link under test and process the data obtained during the test process.

[0121] In operation S550, the test results are sent back to the control server, and a test report is generated.

[0122] According to an embodiment of the present application, by processing the first equalization parameter value and the second equalization parameter value obtained during the test, a target parameter value can be obtained, and then based on the target parameter value, the test results can be obtained.

[0123] Figure 6 Schematically shows a flowchart of a link test method according to another embodiment of the present application.

[0124] As Figure 6 shown, the link test method 600 of this embodiment includes operations S610 to S550.

[0125] In operation S601, device attribute information and link attribute information are obtained.

[0126] In operation S602, the first device attribute verification result is obtained by comparing the device model configuration information and the device model information, the second device attribute verification result is obtained by comparing the device slot configuration information and the device slot information, and based on the first device attribute verification result and the second device attribute verification result, the device attribute verification result is determined.

[0127] In operation S603, it is determined whether the device attribute verification result passes. If it passes, operation S604 is executed; if it does not pass, operation S611 is executed.

[0128] In operation S604, based on the device attribute information and the link attribute information, the link attribute verification result is determined.

[0129] In operation S605, it is determined whether the link attribute verification result passes. If it passes, operation S606 is executed; if it does not pass, operation S611 is executed.

[0130] In operation S606, the device under test is disconnected from the connection control register, and after a preset duration of disconnection, the device under test is connected to the connection control register again to complete the restart of the device under test. After the restart of the device under test is completed, the test sequence number is incremented to obtain the current test number.

[0131] In operation S607, the status of the advanced error reporting register of the device under test is detected compared with that before the restart of the device under test, and a second link attribute verification result related to the status of the advanced error reporting register is obtained.

[0132] In operation S608, it is determined whether the second link attribute verification result passes. If it passes, operation S609 is executed; if it does not pass, operation S611 is executed.

[0133] In operation S609, the first equalization parameter value and the second equalization parameter value are read and recorded in the test database.

[0134] In operation S610, it is determined whether the number of tests has reached a preset number. If so, operation S611 is executed; if not, operation S602 is executed.

[0135] Based on the above link test method, the present application also provides a link test device. The following will be combined with Figure 7 to describe this device in detail.

[0136] Figure 7 The structural block diagram of the link test device according to an embodiment of the present application is schematically shown.

[0137] As Figure 7 shown, the link test device 700 of this embodiment includes a first acquisition module 710, a first determination module 720, a reading module 730, a second acquisition module 740, and a second determination module 750.

[0138] The first acquisition module 710 is configured to acquire the device attribute information of the device under test and the link attribute information of the link under test, where the link under test is a link for data transmission between multiple devices under test. In one embodiment, the first acquisition module 710 may be configured to execute operation S210 described above, which will not be elaborated here.

[0139] The first determination module 720 is configured to determine the link attribute verification result according to the link attribute information and the preset link attribute information. In one embodiment, the first determination module 720 may be configured to execute operation S220 described above, which will not be elaborated here.

[0140] The reading module 730 is configured to, when the link attribute verification result indicates that the verification is passed, read the first status information of the device under test before restart, disconnect the device under test from the connection control register, and after a preset duration of disconnection, connect the device under test to the connection control register, and read the second status information of the device under test after restart, where the device under test is electrically connected to at least one connection control register. In one embodiment, the reading module 730 may be configured to execute operation S230 described above, which will not be elaborated here.

[0141] The second acquisition module 740 is configured to, when the link status information determined according to the first status information and the second status information indicates that the status of the device under test is correct, acquire the first equalization parameter value and the second equalization parameter value of the link equalization signal, where the first equalization parameter value represents the equalization parameter value related to the link under test, and the second equalization parameter value represents the equalization parameter value related to the device under test. In one embodiment, the second acquisition module 740 may be configured to execute operation S240 described above, which will not be elaborated here.

[0142] The second determination module 750 is configured to determine a test result according to a first equalization parameter value and a second equalization parameter value. In one embodiment, the second determination module 750 may be configured to perform the operation S250 described above, which will not be elaborated herein.

[0143] According to an embodiment of the present application, the second determination module 750 includes: a first determination sub-module, a second determination sub-module, and a third determination sub-module.

[0144] The first determination sub-module is configured to perform intensity conversion processing on the first equalization parameter value and the second equalization parameter value to obtain a first intensity value corresponding to the first equalization parameter value and a second intensity value corresponding to the second equalization parameter value.

[0145] The second determination sub-module is configured to determine a target parameter value according to the first intensity value, the second intensity value, and a preset parameter range.

[0146] The third determination sub-module is configured to determine a test result according to the target parameter value.

[0147] According to an embodiment of the present application, the device under test is disposed in the server under test, and the link test apparatus 700 further includes: a configuration module, a providing module, and an implementation module.

[0148] The configuration module is configured to configure a pre-boot execution environment service, where the pre-boot execution environment service is used to provide a transmission service of an image file to the server under test.

[0149] The providing module is configured to provide an image file to the server under test, where the image file is generated through the following steps: obtaining a Red Hat package from a software repository, decompressing the Red Hat package to obtain a configuration file, where the software repository is pre-configured; installing a target parameter value reading tool; modifying the configuration file, and using the target parameter value reading tool to obtain the Internet protocol address of the control server; compressing the Internet protocol address to generate an image file.

[0150] The implementation module is configured to implement the configuration of the control server according to the image file.

[0151] According to an embodiment of the present application, the link test apparatus 700 further includes: a third determination module.

[0152] The third determination module is configured to determine a device attribute verification result according to a first device attribute verification result and a second device attribute verification result before determining a link attribute verification result, where the first device attribute verification result is obtained by comparing device model configuration information and device model information, and the second device attribute verification result is obtained by comparing device slot configuration information and device slot information.

[0153] According to an embodiment of the present application, the preset link attribute information includes preset link rate information and preset link bandwidth information; the first determination module 720 includes: a fourth determination sub-module, a fifth determination sub-module, and a sixth determination sub-module.

[0154] The fourth determination sub-module is configured to obtain a first link attribute verification result by comparing the link rate information with the preset link rate information.

[0155] The fifth determination sub-module is configured to obtain a second link attribute verification result by comparing the link bandwidth information with the preset link bandwidth information.

[0156] The sixth determination sub-module is configured to determine a link attribute verification result according to the first link attribute verification result and the second link attribute verification result; wherein, the link rate information and the link bandwidth information are obtained by splitting the link attribute information.

[0157] According to an embodiment of the present application, the link test device 700 further includes: an obtaining module and an ending module.

[0158] The obtaining module is configured to increment the test times to obtain the current test times after performing the steps of disconnecting the device under test from the connection control register and reconnecting the device under test to the connection control register after a preset duration.

[0159] The ending module is configured to end the test of the link under test when the current test times reach the preset times.

[0160] According to embodiments of the present application, any multiple of the first acquisition module 710, the first determination module 720, the reading module 730, the second acquisition module 740, and the second determination module 750 may be combined and implemented in one module, or any one of them may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to embodiments of the present application, at least one of the first acquisition module 710, the first determination module 720, the reading module 730, the second acquisition module 740, and the second determination module 750 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging circuits, etc., implemented by hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in any appropriate combination of several of them. Alternatively, at least one of the first acquisition module 710, the first determination module 720, the reading module 730, the second acquisition module 740, and the second determination module 750 may be at least partially implemented as a computer program module, and when the computer program module is run, corresponding functions may be executed.

[0161] Figure 8 Schematically shows a block diagram of an electronic device suitable for implementing the link test method according to an embodiment of the present application.

[0162] As Figure 8 shown, the electronic device 800 according to an embodiment of the present application includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. The processor 801 may include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present application.

[0163] In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present application by executing the programs in the ROM 802 and / or the RAM 803. It should be noted that the programs can also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 can also perform various operations of the method flow according to the embodiments of the present application by executing the programs stored in the one or more memories.

[0164] According to an embodiment of the present application, the electronic device 800 may further include an input / output (I / O) interface 805, and the input / output (I / O) interface 805 is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input part 806 including a keyboard, a mouse, etc.; an output part 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage part 808 including a hard disk, etc.; and a communication part 809 including a network interface card such as a LAN card, a modem, etc. The communication part 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read from it can be installed into the storage part 808 as needed.

[0165] The present application also provides a computer-readable storage medium, which may be included in the device / device / system described in the above embodiments; or may exist separately without being assembled into the device / device / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present application is implemented.

[0166] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or apparatus. For example, according to an embodiment of the present application, the computer-readable storage medium may include one or more memories other than the above-described ROM 802 and / or RAM 803 and / or ROM 802 and RAM 803.

[0167] An embodiment of the present application further includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the link test method provided by the embodiment of the present application.

[0168] When the computer program is executed by the processor 801, it executes the above functions defined in the system / apparatus of the embodiment of the present application. According to an embodiment of the present application, the above-described systems, apparatuses, modules, units, etc. can be implemented by computer program modules.

[0169] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and is downloaded and installed through the communication part 809, and / or installed from the removable medium 811. The program code included in the computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0170] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, it executes the above functions defined in the system of the embodiment of the present application. According to an embodiment of the present application, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.

[0171] According to embodiments of the present application, program code for executing the computer programs provided by the embodiments of the present application can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0172] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0173] Those skilled in the art can understand that the features described in the various embodiments of the present application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments of the present application can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present application.

[0174] The above describes the embodiments of the present application. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present application. Although the embodiments are described separately above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Without departing from the scope of the present application, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present application.

Claims

1. A link testing method, characterized in that: The method comprises: Acquire device attribute information of the device under test and link attribute information of the link under test, wherein the link under test is a link for data transmission between multiple devices under test; Determine a link attribute verification result according to the link attribute information and preset link attribute information; When the link attribute check result indicates that the check is passed, first state information of the device under test before restart is read, the device under test is disconnected from the connection control register, and the device under test is connected to the connection control register after the disconnection is preset for a period of time, and second state information of the device under test after restart is read, wherein the device under test is electrically connected to at least one of the connection control registers; When the link state information determined according to the first state information and the second state information represents that the state of the device under test is correct, obtaining a first equalization parameter value and a second equalization parameter value of a link equalization signal, wherein the first equalization parameter value represents an equalization parameter value related to the link under test, and the second equalization parameter value represents an equalization parameter value related to the device under test; A test result is determined according to the first equalization parameter value and the second equalization parameter value.

2. The method according to claim 1, characterized in that The determining a test result according to the first equalization parameter value and the second equalization parameter value includes: Performing intensity conversion processing on the first equalization parameter value and the second equalization parameter value to obtain a first intensity value corresponding to the first equalization parameter value and a second intensity value corresponding to the second equalization parameter value; Determining a target parameter value according to the first intensity value, the second intensity value and a preset parameter range; The test result is determined according to the target parameter value.

3. The method according to claim 1, characterized in that The device to be tested is arranged on the server to be tested, and the method further comprises: Configuring a pre-startup execution environment service, wherein the pre-startup execution environment service is used to provide a mirror file transmission service to the server under test; Providing the image file to the server to be tested; According to the image file, the configuration of the control server is realized.

4. The method according to claim 3, characterized in that The image file is generated by the following steps: Obtaining a Red Hat package from a software warehouse and decompressing the Red Hat package to obtain a configuration file, wherein the software warehouse is pre-configured; Install the target parameter value reading tool; By modifying the configuration file, the Internet Protocol address of the control server is acquired using the target parameter value reading tool; The Internet Protocol address is compressed to generate the image file.

5. The method according to claim 1, characterized in that: The device attribute information includes device model information and device slot information, and the method further includes: Before determining the link attribute verification result, the device attribute verification result is determined according to the first device attribute verification result and the second device attribute verification result, wherein the first device attribute verification result is obtained by comparing the device model configuration information with the device model information, and the second device attribute verification result is obtained by comparing the device slot configuration information with the device slot information.

6. The method according to claim 5, characterized in that The preset link attribute information includes preset link rate information and preset link bandwidth information; and determining the link attribute verification result according to the link attribute information and the preset link attribute information includes: Obtaining a first link attribute verification result by comparing the link rate information with the preset link rate information; Obtaining the second link attribute verification result by comparing the link bandwidth information with the preset link bandwidth information; and Determining the link attribute verification result according to the first link attribute verification result and the second link attribute verification result; The link rate information and the link bandwidth information are obtained by segmenting the link attribute information.

7. The method according to claim 1, characterized in that The method further comprises: After executing the steps of disconnecting the device under test from the connection control register and connecting the device under test to the connection control register after being disconnected for a preset time, incrementing the number of tests to obtain a current number of tests; When the current test number reaches a preset number, the test on the link to be tested is terminated.

8. A link testing device, characterized in that: The device comprises: A first acquisition module is used to acquire device attribute information of a device under test and link attribute information of a link under test, wherein the link under test is a link for data transmission between a plurality of the devices under test; A first determination module, used to determine a link attribute verification result according to the link attribute information and preset link attribute information; A reading module, configured to read the first state information of the device under test before restarting if the link attribute check result indicates that the check is passed, disconnect the device under test from the connection control register, and connect the device under test to the connection control register after the disconnection for a preset time, and read the second state information of the device under test after restarting, wherein the device under test is electrically connected to at least one of the connection control registers; A second acquisition module, configured to acquire a first equalization parameter value and a second equalization parameter value of a link equalization signal when the link state information determined according to the first state information and the second state information represents that the state of the device under test is correct, wherein the first equalization parameter value represents an equalization parameter value related to the link under test, and the second equalization parameter value represents an equalization parameter value related to the device under test; The second determining module is used to determine a test result according to the first equalization parameter value and the second equalization parameter value.

9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.