Disclosure of Invention
The invention aims to provide a method, a device and a system for testing the stability of a server link signal and a computer readable storage medium, which are used for testing the stability of the quality of the link signal after the server is subjected to temperature change in the process from power-on to operation.
In order to solve the above technical problem, the present invention provides a method for testing signal stability of a server link, including:
detecting a first temperature in the running process of a server to be detected after the server to be detected is powered on;
when the difference value between the first temperature and the second temperature of the server to be tested during power-on reaches a preset threshold value, controlling the server to be tested to perform data link pressure performance test to obtain a link signal quality parameter value of the server to be tested;
and comparing the link signal quality parameter value with a preset parameter value to obtain a link signal stability test result of the server to be tested.
Optionally, the types of link signal quality parameters include a pressure performance value and a link rate bit width value.
Optionally, the detecting a first temperature in the operation process after the server to be detected is powered on specifically includes:
and detecting the temperature of the case of the server to be detected in the operation process after the server to be detected is powered on by using a temperature sensor, and recording the temperature as the first temperature.
Optionally, the detecting a first temperature in the operation process after the server to be detected is powered on specifically includes:
and acquiring the temperature detected by the BMC of the server to be detected, and recording as the first temperature.
Optionally, before detecting the first temperature in the operation process after the server to be tested is powered on, the method further includes:
when the server to be tested is powered on, adjusting the temperature of the server to be tested to the second temperature by using a temperature adjusting device;
and when the server to be tested enters the running state, the first temperature of the server to be tested is regulated to a third temperature which meets the preset threshold value with the second temperature by using the temperature regulating device.
Optionally, when a difference between the first temperature and a second temperature of the server to be tested during power-on reaches a preset threshold, controlling the server to be tested to perform a data link pressure performance test to obtain a link signal quality parameter value of the server to be tested, specifically:
when the first temperature reaches the third temperature, controlling the server to be tested to perform a data link pressure performance test to obtain a first link signal quality parameter value of the server to be tested;
after the obtaining of the first link signal quality parameter value of the server to be tested, before the comparing of the link signal quality parameter value with a preset parameter value to obtain a link signal stability test result of the server to be tested, the method further includes:
after controlling the server to be tested to be powered off, controlling the server to be tested to be powered on at the third temperature;
when the server to be tested enters the running state, the temperature adjusting device is utilized to adjust the first temperature of the server to be tested to the second temperature, and the server to be tested is controlled to carry out data link pressure performance test to obtain a second link signal quality parameter value of the server to be tested;
correspondingly, the step of comparing the link signal quality parameter value with a preset parameter value to obtain a link signal stability test result of the server to be tested specifically includes:
and comparing the first link signal quality parameter value and the second link signal quality parameter value with the preset parameter values respectively to obtain a link signal stability test result of the server to be tested.
Optionally, when a difference between the first temperature and a second temperature of the server to be tested during power-on reaches a preset threshold, controlling the server to be tested to perform a data link pressure performance test to obtain a link signal quality parameter value of the server to be tested, specifically:
when the first temperature reaches the third temperature, controlling the server to be tested to perform a data link pressure performance test to obtain a first link signal quality parameter value of the server to be tested;
after the obtaining of the first link signal quality parameter value of the server to be tested, before the comparing of the link signal quality parameter value with a preset parameter value to obtain a link signal stability test result of the server to be tested, the method further includes:
after controlling the server to be tested to be powered off, controlling the server to be tested to be powered on at the third temperature;
when the server to be tested enters the running state, the temperature adjusting device is utilized to adjust the first temperature of the server to be tested to the second temperature, and the server to be tested is controlled to carry out data link pressure performance test to obtain a second link signal quality parameter value of the server to be tested;
judging whether the test frequency of the server to be tested reaches a preset frequency or not;
if so, comparing the first link signal quality parameter value and the second link signal quality parameter value with the preset parameter value respectively to obtain a link signal stability test result of the server to be tested;
and if not, controlling the server to be tested to be powered off and then powered on at the second temperature, and returning to the step of adjusting the first temperature of the server to be tested to a third temperature meeting the preset threshold value with the second temperature by using the temperature adjusting device when the server to be tested enters the running state.
In order to solve the above technical problem, the present invention further provides a device for testing signal stability of a server link, including:
the detection unit is used for detecting a first temperature in the running process after the server to be detected is powered on;
the test unit is used for controlling the server to be tested to perform data link pressure performance test when the difference value between the first temperature and the second temperature of the server to be tested during power-on reaches a preset threshold value, so as to obtain a link signal quality parameter value of the server to be tested;
and the analysis unit is used for comparing the link signal quality parameter value with a preset parameter value to obtain a link signal stability test result of the server to be tested.
In order to solve the above technical problem, the present invention further provides a system for testing signal stability of a server link, including:
the system comprises a temperature sensor arranged on a server to be tested, an electronic switch connected with the server to be tested, and a controller respectively connected with the temperature sensor, the electronic switch and the server to be tested;
the controller is configured to implement the steps of the method for testing the signal stability of the server link according to any one of the above items.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for testing the stability of the server link signal according to any one of the above items.
According to the method for testing the stability of the link signal of the server, provided by the invention, the first temperature in the operation process after the server to be tested is electrified is detected, when the difference value between the first temperature and the second temperature when the server to be tested is electrified reaches the preset threshold value, the server to be tested is controlled to carry out the data link pressure performance test, the link signal quality parameter value of the server to be tested under certain pressure is obtained, finally, the link signal quality parameter value is compared with the preset parameter value, the link signal stability test result of the server to be tested is obtained, the test of the quality stability of the link signal after the temperature change of the server to be tested in the process from the electrification to the operation is realized, and the capability of the server to adapt to the temperature change is better mastered. The invention also provides a testing device, a testing system and a computer readable storage medium for the stability of the server link signal, which have the beneficial effects and are not repeated herein.
Detailed Description
The core of the invention is to provide a method, a device, a system and a computer readable storage medium for testing the stability of the link signal quality of a server after the server is subjected to temperature change during the process from power-on to operation.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a first method for testing signal stability of a server link according to an embodiment of the present invention.
As shown in fig. 1, the method for testing the signal stability of the server link according to the embodiment of the present invention includes:
s101: and detecting a first temperature in the running process of the server to be detected after the server to be detected is powered on.
In specific implementation, the temperature sensor may be used to detect the temperature of the chassis of the server to be tested in the running process after the server to be tested is powered on, and the detected temperature is recorded as the first temperature. Preferably, the temperature detected by the BMC of the server to be detected is acquired through communication with the BMC of the server to be detected and recorded as the first temperature.
S102: and when the difference value between the first temperature and the second temperature of the server to be tested during power-on reaches a preset threshold value, controlling the server to be tested to perform data link pressure performance test to obtain a link signal quality parameter value of the server to be tested.
And controlling the server to be tested to perform the pressure performance test of the data link when the difference value between the first temperature in the operation process of the server and the second temperature during power-on meets the preset threshold value of the temperature change standard.
The step of controlling the server to be tested to perform the data link pressure performance test may specifically be that a control program is set in the server to be tested, so that when the BMC detection temperature of the server to be tested reaches a third temperature at which a difference between the BMC detection temperature and the second temperature meets a preset threshold, the internal data link is controlled to perform a data transmission test of a certain scale, and the transmission scale may be determined according to the optimal link transmission performance of the server to be tested. The step of controlling the server to be tested to perform the data link pressure performance test can also be a step of performing a certain scale data transmission test on the server to be tested through the external equipment.
The types of the link signal quality parameters may specifically include a pressure performance value, a link rate bit width value, and the like.
S103: and comparing the link signal quality parameter value with a preset parameter value to obtain a link signal stability test result of the server to be tested.
And comparing the link signal quality parameter value with a preset parameter value according to the type of the link signal quality parameter, and grading the link signal stability of the server to be tested under the temperature change of a preset threshold value according to a preset grading rule to obtain a link signal stability test result of the server to be tested.
According to the method for testing the stability of the link signal of the server, provided by the embodiment of the invention, the first temperature in the operation process after the server to be tested is electrified is detected, when the difference value between the first temperature and the second temperature when the server to be tested is electrified reaches the preset threshold value, the server to be tested is controlled to carry out the data link pressure performance test, the link signal quality parameter value of the server to be tested under certain pressure is obtained, finally, the link signal quality parameter value is compared with the preset parameter value, the link signal stability test result of the server to be tested is obtained, the test of the quality stability of the link signal after the temperature change of the server to be tested in the process from the electrification to the operation is realized, and the capability of the server to adapt to the temperature change is better mastered.
Fig. 2 is a flowchart of a second method for testing signal stability of a server link according to an embodiment of the present invention.
On the basis of the foregoing embodiment, in order to accelerate the test progress, as shown in fig. 2, in the method for testing the signal stability of the server link according to the embodiment of the present invention, in step S101: before detecting the first temperature in the operation process after the server to be tested is powered on, the method further comprises the following steps:
s201: and when the server to be tested is powered on, regulating the temperature of the server to be tested to a second temperature by using the temperature regulating device.
S202: when the server to be tested enters the running state, the first temperature of the server to be tested is adjusted to a third temperature which meets a preset threshold value with the second temperature by using the temperature adjusting device.
In particular implementations, the second temperature may be 0 ℃ and the third temperature 40 ℃. Step S101 is executed after step S202.
The temperature adjusting device enables the server to be tested to rapidly reach the temperature meeting the testing requirements. The temperature adjusting device can adopt a rapid temperature change experimental box, the server to be measured is arranged in the temperature adjusting device, the rapid change of the environmental temperature of the server to be measured can be realized, and therefore the rapid change of the running temperature of the server to be measured is realized.
Further, in order to ensure the accuracy of the test result, a high-temperature and low-temperature alternative test may be performed on the server to be tested, and then step S102: when the difference value between the first temperature and the second temperature of the server to be tested during power-on reaches a preset threshold value, controlling the server to be tested to perform data link pressure performance test to obtain a link signal quality parameter value of the server to be tested, specifically:
s203: and when the first temperature reaches the third temperature, controlling the server to be tested to perform a data link pressure performance test to obtain a first link signal quality parameter value of the server to be tested.
In step S103: before comparing the link signal quality parameter value with a preset parameter value and obtaining a link signal stability test result of the server to be tested, the method further comprises the following steps:
s204: and after controlling the power-off of the server to be tested, controlling the power-on of the server to be tested at a third temperature.
S205: when the server to be tested enters the running state, the first temperature of the server to be tested is regulated to the second temperature by the temperature regulating device, the server to be tested is controlled to carry out the data link pressure performance test, and a second link signal quality parameter value of the server to be tested is obtained.
Correspondingly, step S103 specifically includes:
s206: and comparing the first link signal quality parameter value and the second link signal quality parameter value with a preset parameter value respectively to obtain a link signal stability test result of the server to be tested.
In specific implementation, the link signal stability of the server to be tested is tested under high-low temperature alternation, for example, the server to be tested is powered on at low temperature, and a data link pressure performance test is carried out under a high-temperature operation state, so as to obtain a first link signal quality parameter value; and then powering up after powering down in a high-temperature environment, and carrying out a data link pressure performance test in a low-temperature running state to obtain a second link signal quality parameter value. And comparing the first link signal quality parameter value and the second link signal quality parameter value with a preset parameter value respectively, or averaging the first link signal quality parameter value and the second link signal quality parameter value and comparing with the preset parameter value to obtain a link signal stability test result of the server to be tested.
Fig. 3 is a flowchart of a third method for testing signal stability of a server link according to an embodiment of the present invention.
In order to further improve the accuracy of the test result, the circulation test can be performed again on the basis of performing high-low temperature alternative test on the server to be tested. As shown in fig. 3, in the method for testing the signal stability of the server link according to the embodiment of the present invention, steps S201, S202, S101, S203, S204, and S205 are as shown in fig. 2, and after step S205, the method further includes:
s301: judging whether the test frequency of the server to be tested reaches a preset frequency or not; if yes, go to step S302; if not, the process proceeds to step S303.
S302: and comparing the quality parameter value of each first link signal and the quality parameter value of each second link signal with a preset parameter value respectively to obtain a link signal stability test result of the server to be tested.
S303: and after controlling the server to be tested to be powered off and powered on again at the second temperature, returning to the step S202.
In specific implementation, the server link signal stability provided by the embodiment of the invention is subjected to a cycle test under high-low temperature alternation, wherein one test time is one high-low temperature alternation test, and a preset test time is multiple times.
In different test times, the value of the second temperature and the value of the third temperature may be different, the pressure of the data link pressure performance test may also be different, and one variable may be selected to set the comparison group, so that the link signal quality of the server to be tested under different temperature change conditions may be obtained.
On the basis of the above detailed description of the embodiments corresponding to the method for testing the stability of the server link signal, the invention also discloses a system, a device and a computer readable storage medium for testing the stability of the server link signal corresponding to the method.
Fig. 4 is a schematic structural diagram of a system for testing signal stability of a server link according to an embodiment of the present invention.
As shown in fig. 4, the system for testing signal stability of a server link according to an embodiment of the present invention includes:
the system comprises a temperature sensor 401 arranged on a server to be tested, an electronic switch 402 of the server to be tested, and a controller 404 respectively connected with the temperature sensor 401, the electronic switch 402 and the server 403 to be tested;
the controller 404 is configured to implement the steps of the method for testing the signal stability of the server link according to the above embodiment.
In a specific implementation, the electronic switch 402 may employ an electromagnetic relay, and is connected to the PSU module of the server under test 403 to control power on or power off of the server under test 403.
The system for testing the signal stability of the server link provided by the embodiment of the invention may further include a temperature adjustment device 405 connected to the controller 404. The temperature adjusting device 405 performs temperature adjustment under the control of the controller 404. The temperature adjusting device 405 may employ a rapid temperature change experimental box, and the server under test 403 is placed therein to adjust the temperature of the server under test 403.
Since the embodiments of the apparatus part correspond to the embodiments of the method part, the embodiments of the apparatus part are described with reference to the embodiments of the method part.
Fig. 5 is a schematic structural diagram of a device for testing signal stability of a server link according to an embodiment of the present invention.
As shown in fig. 5, the apparatus for testing signal stability of a server link according to an embodiment of the present invention includes:
the detection unit 501 is used for detecting a first temperature in the running process of the server to be detected after being powered on;
the test unit 502 is configured to control the server to be tested to perform a data link pressure performance test when a difference between the first temperature and a second temperature of the server to be tested during power-on reaches a preset threshold, so as to obtain a link signal quality parameter value of the server to be tested;
the analyzing unit 503 is configured to compare the link signal quality parameter value with a preset parameter value, and obtain a link signal stability test result of the server to be tested.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 6 is a schematic structural diagram of a testing apparatus for server link signal stability according to an embodiment of the present invention.
As shown in fig. 6, the testing apparatus for server link signal stability according to the embodiment of the present invention includes:
a memory 610 for storing instructions, the instructions including the steps of the method for testing the signal stability of the server link according to any one of the above embodiments;
a processor 620 for executing the instructions.
Among other things, processor 620 may include one or more processing cores, such as a 3-core processor, an 8-core processor, and so forth. The processor 620 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 620 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 620 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 620 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 610 may include one or more computer-readable storage media, which may be non-transitory. Memory 610 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 610 is at least used for storing the following computer program 611, wherein after the computer program 611 is loaded and executed by the processor 620, the relevant steps in the method for testing the signal stability of the server link disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored by the memory 610 may also include an operating system 612, data 613, and the like, and the storage manner may be a transient storage or a permanent storage. The operating system 612 may be Windows, among others. The data 613 may include, but is not limited to, data involved in the above-described methods.
In some embodiments, the testing equipment for server link signal stability may further include a display screen 630, a power supply 640, a communication interface 650, an input output interface 660, a sensor 670, and a communication bus 680.
Those skilled in the art will appreciate that the configuration shown in fig. 6 does not constitute a limitation of the testing device for server link signal stability and may include more or fewer components than those shown.
The testing device for the stability of the server link signal provided by the embodiment of the application comprises the memory and the processor, and when the processor executes the program stored in the memory, the testing method for the stability of the server link signal can be realized, and the effect is the same as that of the testing method for the stability of the server link signal.
It should be noted that the above-described embodiments of systems, apparatuses, and devices are merely illustrative, for example, the division of modules is only one division of logical functions, and there may be other divisions when the actual implementation is performed, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form. Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution.
To this end, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the test method, such as the server link signal stability.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer program contained in the computer-readable storage medium provided in this embodiment can implement the steps of the method for testing the stability of the server link signal as described above when being executed by the processor, and the effect is the same as above.
The method, the device, the system and the computer readable storage medium for testing the stability of the server link signal provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The system, the device, the equipment and the computer readable storage medium disclosed by the embodiments correspond to the method disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method part. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.