Server test method and device, equipment and storage medium
The method and device automate NCSI link testing using high-speed network cards and optical fiber, reducing costs and improving signal coverage by adjusting transmission rates and signal types, thus enhancing test efficiency and accuracy.
Patent Information
- Application Number
- CN202411287561.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-10
AI Technical Summary
Current server NCSI test methods incur high costs due to the need for optical network switch environments and manual labor, and using low-speed PCIe network cards reduces signal coverage.
A method and device that utilize a high-speed network card, connector assembly, and optical fiber line to automatically adjust transmission rates and signal types for NCSI link testing, eliminating the need for optical networks and manual IP address checks.
Reduces costs by avoiding the setup of optical networks and manual labor, while ensuring high-speed PCIe signal coverage and accurate NCSI link testing.
Smart Images

Figure CN119109844A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a server testing method, device, equipment and storage medium. Background Art
[0002] NCSI (Network Controller Sideband Interface) is a protocol used for communication between a network controller and a host system. It allows the host system to interact with the network controller through the sideband interface for configuration, status monitoring, and link management. In some server designs, the BMC may need to communicate with the network controller integrated on the motherboard through the NCSI protocol for remote management and monitoring, while the PCIe network card can integrate the network controller function and needs to communicate with the BMC when using this function. Currently, the BMC is usually integrated as an independent chip or module on the PCBA (Printed Circuit Board Assembly) of the motherboard. The existing PC BA factory production line uses a copper cable network with a lower network transmission rate, while the Pcie network card uses a high-speed network of more than 25G.
[0003] When performing NCSI link function test on the server motherboard, you first need to build an optical network switch environment or server in the PCBA factory, or directly use a low-speed PCB, or add an operation of changing the PCB during the test. After the above operations are completed, manually execute the search command to determine whether the BMC obtains the Internet Protocol address, so as to determine whether the link is normal.
[0004] However, setting up an optical network switch environment or server will greatly increase costs. Using a low-speed PCIE network card will reduce the coverage of the PCIE signal. Adding a replacement of the PCIE network card and manually executing search commands will increase labor costs. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a server testing method, device, equipment and storage medium to solve the problem that the current server NCSI test will lead to a high cost increase. The specific technical solution is as follows:
[0006] In a first aspect of the present invention, a server testing method is provided, the method comprising:
[0007] In the case of detecting that the network controller side band interface link of the server is connected to the target high-speed network card, performing the network controller side band interface link test, and obtaining the first transmission rate and the first test signal type of the first test signal in the target high-speed network card;
[0008] Adjusting the first transmission rate and the first test signal type of the first test signal by the target device to obtain a second test signal including a second transmission rate and a second test signal type;
[0009] In the case where it is determined that the second transmission rate is less than a target preset value and the second test signal type is converted to a target signal type, triggering a determination as to whether an Internet Protocol address exists on the target LAN port;
[0010] If so, it is determined that the network controller side band interface link test is successful, and a test success log is fed back to the server.
[0011] Optionally, the target device includes a connector assembly;
[0012] In the case where it is detected that the network controller side band interface link of the server is connected to the target high-speed network card, before executing the network controller side band interface link test, it also includes:
[0013] Pre-setting connector components;
[0014] Setting a first end interface and a second end interface for the connector assembly, wherein the first end interface is a dual-channel small pluggable optical module port, and the second end interface is a small pluggable optical module port;
[0015] Setting a first number of first pins for the first end interface, and setting a second number of second pins for the first end interface;
[0016] setting a target pin definition for each of the first pins and each of the second pins;
[0017] interconnecting the first pin and the second pin according to the target pin definition;
[0018] Implementing data transmission between the first end interface and the second end interface in the connector assembly through interconnected pins;
[0019] A target control module is provided for the connector component, and the target control module is used to monitor the operation status of the connector component and to perform diagnosis and alarm when it is determined that the connector component is abnormal.
[0020] Optionally, the target device further comprises a target optical fiber line and an optical-to-electrical module, the input end of the target optical fiber line comprises a first optical fiber plug, and the output end comprises a plurality of second optical fiber plugs;
[0021] In the case where it is detected that the network controller side band interface link of the server is connected to the target high-speed network card, before executing the network controller side band interface link test, it also includes:
[0022] Connecting the first optical fiber plug of the target optical fiber line to the target high-speed network card;
[0023] Select any second optical fiber plug to connect to the first end interface of the connector assembly;
[0024] Connect the second end interface of the connector assembly to the optical-to-electrical module.
[0025] Optionally, the adjusting, by the target device, the first transmission rate and the first test signal type of the first test signal to obtain a second test signal including a second transmission rate and a second test signal type includes:
[0026] Input the first test signal into the first optical fiber plug of the target optical fiber line at a first transmission rate, and output the first test signal at a third transmission rate at any second optical fiber plug;
[0027] Inputting the first test signal of the third transmission rate into the connector component, and adjusting the third transmission rate of the first test signal to the second transmission rate according to the preset rule of the target control module;
[0028] A first test signal with the second transmission rate is input into the optical-to-electrical module, and a second test signal with the second transmission rate and the second test signal type is output.
[0029] Optionally, adjusting the third transmission rate of the first test signal to the second transmission rate according to a preset rule of the target control module includes:
[0030] Determining whether the third transmission rate is less than or equal to a target preset value;
[0031] If yes, determining the third transmission rate as the second transmission rate;
[0032] If not, reducing the third transmission rate according to a preset standard;
[0033] If the reduced third transmission rate is still not less than or equal to the target preset value, then after the target waiting time has passed, continue to reduce the reduced third transmission rate according to the preset standard;
[0034] If the reduced third transmission rate is less than or equal to the target preset value, the reduced third transmission rate is determined as the second transmission rate.
[0035] Optionally, after adjusting the first transmission rate and the first test signal type of the first test signal by the target device to obtain the second test signal including the second transmission rate and the second test signal type, the method further includes:
[0036] comparing the second transmission rate with a target preset value, and the second test signal type with a target signal type;
[0037] When it is determined that the second transmission rate is greater than the target preset value and / or the second test signal type is not converted to the target signal type, it is determined that the interface link test on the network controller side has failed, and the first test failure log is fed back to the server.
[0038] Optionally, after triggering the judgment on whether the target LAN port has an Internet Protocol address, the method further includes:
[0039] If it is determined that the target LAN port does not have an Internet Protocol address, it is determined that the network controller side band interface link test has failed, and a second test failure log is fed back to the server.
[0040] In a second aspect of the present invention, a server testing device is provided, comprising:
[0041] A first acquisition module is used to perform a network controller side band interface link test when it is detected that the network controller side band interface link of the server is connected to the target high-speed network card, and obtain a first transmission rate and a first test signal type of a first test signal in the target high-speed network card;
[0042] an adjustment module, configured to adjust the first transmission rate and the first test signal type of the first test signal through a target device to obtain a second test signal including a second transmission rate and a second test signal type;
[0043] a trigger judgment module, configured to trigger a judgment on whether there is an Internet Protocol address on the target LAN port when it is determined that the second transmission rate is less than a target preset value and the second test signal type is converted to a target signal type;
[0044] The first determination module is used to determine whether the network controller side band interface link test is successful, if any, and to feed back the test success log to the server.
[0045] In a third aspect of the implementation of the present invention, there is also provided a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor;
[0046] The processor is used to read the program in the memory to implement and execute any of the above-mentioned server testing methods.
[0047] In a fourth aspect of the implementation of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute any of the above-mentioned server testing methods.
[0048] The server testing method provided by the embodiment of the present invention performs a network controller side interface link test when it is detected that the network controller side of the server is connected to the target high-speed network card with an interface link, and obtains the first transmission rate and the first test signal type of the first test signal in the target high-speed network card, adjusts the first transmission rate and the first test signal type of the first test signal through the target device, and obtains a second test signal including a second transmission rate and a second test signal type. When it is determined that the second transmission rate is less than the target preset value and the second test signal type is converted to the target signal type, it triggers the judgment of whether the target LAN port has an Internet Protocol address. If so, it is determined that the network controller side interface link test is successful, and the test success log is fed back to the server. In the embodiment of the present invention, the target high-speed network card is used to meet the high-speed requirement of the Pcie signal and to meet the coverage of the Pcie signal as much as possible. By adjusting the transmission rate and the signal type, it supports the functional test of the NCSI link of the server mainboard under the copper cable network with a low network transmission rate, and there is no need to build an optical network switch environment or a server, which greatly reduces the cost. By automatically judging whether the target LAN port has an Internet Protocol address, there is no need for manual search, which reduces the labor cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0050] Figure 1 A flow chart of the steps of a server testing method in the prior art;
[0051] Figure 2 A flow chart of the steps of a server testing method provided by an embodiment of the present invention;
[0052] Figure 3 for Figure 2 The illustrated embodiment of the present invention provides a schematic diagram of pin definition of a first end interface of a connector component in a server test;
[0053] Figure 4 for Figure 2 The illustrated embodiment of the present invention provides a schematic diagram of pin definition of a second end interface of a connector component in a server test;
[0054] Figure 5 for Figure 2 An architectural diagram of a server testing method provided by an embodiment of the present invention is shown;
[0055] Figure 6 for Figure 2 The flowchart of step 102 in a server test provided by an embodiment of the present invention is shown;
[0056] Figure 7 A flowchart of another server testing method provided by an embodiment of the present invention;
[0057] Figure 8 is a structural schematic diagram of a fault handling device provided by an embodiment of the present invention;
[0058] Fig. 9 It is a structural diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0059] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0060] The test method of the NCSI interface link in the prior art is based on the optical network. The network card is connected to the optical port network with routing function using optical fiber for testing, so as to ensure the coverage of PCIE signal. As a basic function of the network card, NCSI should also be tested during the PCBA diagnosis process. However, there is no optical network on the current PCBA factory production line, only a low-speed (1000M network) copper cable network, and the BMC is integrated as an independent chip or module on the PCBA of the motherboard. When performing the NCSI link function test, the BMC firmware supports judging whether the link is normal by obtaining the IP. Therefore, the current test method of the NCSI interface link, such as Figure 1As shown, first use the third-generation network card below 25G to connect the dynamic host configuration protocol network (wherein the dynamic host configuration protocol network can be a gigabit network, which is used to automatically assign IP addresses to devices in the network so that they can communicate through the IP network) to the network card of the motherboard to be tested. After the computer (server) to be tested is powered on, switch the interface channel on the network controller side, and then manually input commands to check whether there is an IP address at the LAN port 8 (LAN port 8 is the port for the BMC to obtain the IP address). If there is no IP address, it is judged that the test has failed. If there is an IP address, shut down the computer to be tested, and then replace it with a fifth-generation network card above 25G. At this time, detect the PCIE signal. If the signal coverage is complete, it is determined that the test is successful. It can be seen that in the above process, it is necessary to manually input a query command to query the IP address, and it is also necessary to add an operation of changing the Pcie card during the test process. The test is cumbersome and error-prone, and increases the cost of test tooling. Therefore, a server testing method provided in an embodiment of the present invention. Refer to Figure 2 , shows a flow chart of the steps of a server testing method provided by an embodiment of the present invention, the method may include:
[0061] Step 101, when it is detected that the network controller side interface link of the server is connected to the target high-speed network card, a network controller side interface link test is performed, and a first transmission rate and a first test signal type of a first test signal in the target high-speed network card are obtained.
[0062] The application scenario in the embodiment of the present invention is in a PCBA factory that does not have an optical network and uses a low-speed copper cable network. The target high-speed network card can be a fifth-generation PCIE network card above 25G, through which the coverage of the PCIE signal can be guaranteed as much as possible. It should be noted that the PCIE network card is an interface card used to provide high-speed data transmission inside the computer, and they communicate with the motherboard through the PCI Express bus. The PCIE standard defines the electrical signal specifications for data transmission inside the computer, but when it comes to network speeds above 25G, this usually refers to the data transmission rate supported by the network interface (such as an Ethernet interface) on the network card. These high-speed network interfaces may use optical fiber as a transmission medium to support long-distance and high-speed data transmission. In this case, the network interface on the network card will be equipped with an optical module (optical transceiver) to convert the electrical signal into an optical signal for transmission. Therefore, the target high-speed network card is equipped with an optical module (optical transceiver), and the first test signal type of the first test signal generated is an optical signal. Because it is a fifth-generation PCIE network card above 25G, the first transmission rate of the generated signal is greater than 25G, and can be 100G or 40G. The present invention is not specifically limited here.
[0063] Furthermore, when the embodiment of the present invention performs a network controller side band interface link test on the BMC of the PCBA factory, due to the network environment restrictions of the PCBA factory, it is necessary to adjust the first transmission rate and the first test signal type of the first test signal to meet the network environment requirements of the PCBA factory. In order to achieve this purpose, a connector component is set in the embodiment of the present invention. This connector component uses a universal asynchronous receiver-transmitter to connect and communicate with the server to be tested, and then executes functions such as issuing test instructions, switching test interfaces, and controlling the opening and closing states of relay switch circuits, so as to achieve the function of automatically testing the NCSI interface of the mainboard, thereby increasing the degree of test automation, improving test efficiency, reducing uncertainties caused by manual operations, and improving test accuracy.
[0064] When setting up the connector assembly, two ports are set for the connector assembly. One is the first end interface, the DSFP (Dual Small Form-factor Pluggable) optical module port, which is designed to support the insertion of DSFP modules. Network devices (such as switches, routers, and servers) may have ports specially designed for DSFP modules so that users can insert DSFP modules into these ports to achieve dual-channel fiber optic connections. The other is the second end interface, the SFP (Small Form-factor Pluggable) optical module port, which is designed to insert SFP modules. The SFP port provides a physical and electrical interface so that the SFP module can be inserted and connected to it, thereby achieving a network connection of optical fiber or copper cable. This setting can realize the conversion from DSFP to SFP. Different pins are also set on different ports, and each pin is also set with a corresponding definition. The pin definition on DSFP, such as Figure 3 As shown, the pins on the SFP are Figure 4As shown, according to the above pin definition, the DSFP interface has more pin 3, pin VEET and pin 22, pin-INT / RSTn than the SFP interface, wherein the pin 3 is used for grounding, and the pin 22 is used for dual-function module interrupt and reset, so the remaining pins are defined to be connected, and the pin 3 and pin 22 are left floating. In addition, in the embodiment of the present invention, a target control module (specifically, a microcontroller unit controller) is also set in the connector assembly, which has configuration and management functions: the target control module is responsible for the configuration and management of the entire connector assembly. The user can set the conversion parameters of the connector component through the target control module, such as conversion rate, data format, etc., to adapt to different network environments and equipment requirements. That is, when using a 100G network, the conversion rate can be set to 1:4 through the target control module. Then, the network transmission rate will be switched to a 1:4 mode link through the connector component. For example, when using a 100G network, 100G is converted to a 25G 1:4 mode link. When using a 40G network, 40 is converted to a 40G to 10G 1:4 mode link. The target control module can also be used to monitor the operating status of the connector component, including indicators such as data flow and error rate, and to diagnose and alarm when a fault occurs. The specific steps include:
[0065] Pre-setting connector components;
[0066] Setting a first end interface and a second end interface for the connector assembly, wherein the first end interface is a dual-channel small pluggable optical module port, and the second end interface is a small pluggable optical module port;
[0067] Setting a first number of first pins for the first end interface and setting a second number of second pins for the first end interface;
[0068] setting a target pin definition for each first pin and each second pin;
[0069] interconnecting the first pin and the second pin according to the target pin definition;
[0070] Implementing data transmission between a first end interface and a second end interface in a connector assembly through interconnected pins;
[0071] A target control module is set for the connector component, and the target control module is used to monitor the operating status of the connector component and perform diagnosis and alarm when it is determined that the connector component is abnormal.
[0072] In addition to setting the connector assembly, a target optical fiber line and an optical-to-electrical module are also set. The target optical fiber line can split and convert the transmission rate obtained from the network card. For example, the target optical fiber line can be a one-to-four-mode optical fiber line. At this time, if a 40G to 10G QSFP to SFP one-to-four-mode optical fiber line is used, the 40G network transmission rate can be converted into four 10G network transmission rates. If a 100G to 25G QSFP to SFP one-to-four-mode optical fiber line is used, the 100G network transmission rate can be converted into four 25G network transmission rates. It should be noted that the target optical fiber line can be a one-to-three-mode optical fiber line, a one-to-two-mode optical fiber line, etc., and the specific setting is made according to the actual situation. The present invention is not specifically limited here.
[0073] In the embodiment of the present invention, the first optical fiber plug of the target optical fiber line is connected to the target high-speed network card to obtain a high-speed network transmission rate, and then any second optical fiber plug is connected to the connector assembly, so that the connector assembly obtains the low-speed network transmission rate after the split. In addition, because the PCBA factory uses a low-speed copper cable network, the second end interface of the connector assembly is also required to be connected to the optical-to-electrical module so that the transmitted test signal can be transmitted to the PCBA factory for use. The specific steps include:
[0074] Connecting a first optical fiber plug of a target optical fiber line to a target high-speed network card;
[0075] Select any second optical fiber plug to connect to the first end interface of the connector assembly;
[0076] Connect the second end interface of the connector assembly to the optical-to-electrical module.
[0077] The above connection architecture, such as Figure 5 As shown, a target high-speed network card is inserted into the server, and an optical signal transmission interface is set. The optical signal transmission interface is connected to the first optical fiber plug of the target optical fiber line, and any second optical fiber plug is selected to be connected to the first end interface of the connector assembly, and the second end interface of the connector assembly is connected to the optical-to-electrical module.
[0078] Step 102: adjusting the first transmission rate and the first test signal type of the first test signal through the target device to obtain a second test signal including a second transmission rate and a second test signal type.
[0079] In the embodiment of the present invention, the target device includes a connector assembly, a target optical fiber line and an optical-to-electrical module. The first transmission rate and the first test signal type of the first test signal are adjusted by the target device, including the adjustment of the first transmission rate and the adjustment of the first test signal type, wherein the first test signal is input into the first optical fiber plug of the target optical fiber line at the first transmission rate. This means that the test signal is transmitted through the optical fiber line at a specific rate (the first transmission rate), and the target optical fiber line evenly distributes the first transmission rate according to the number of second optical fiber plugs, so that each second optical fiber plug obtains a partial transmission rate of the first transmission rate, that is, the third transmission rate, and then the third transmission rate is further adjusted by the preset rules of the target control module in the connector assembly until the preset conditions are met. At this time, the second transmission rate is obtained, and then the optical signal is converted into an electrical signal by the optical-to-electrical module to meet the network environment requirements of the PCBA factory.
[0080] Further, step 102, such as Figure 6 As shown:
[0081] Step 1021: input a first test signal into a first optical fiber plug of a target optical fiber line at a first transmission rate, and output a first test signal at a third transmission rate at any second optical fiber plug.
[0082] Step 1022: input the first test signal of the third transmission rate into the connector assembly, and adjust the third transmission rate of the first test signal to the second transmission rate according to a preset rule of the target control module.
[0083] Step 1023: input the first test signal of the second transmission rate into the optical-to-electrical module, and output the second test signal including the second transmission rate and the second test signal type.
[0084] The whole process involves signal transmission, rate adjustment and signal conversion in the optical fiber communication system, ensuring that the signal can be correctly transmitted and processed between different devices and media. At the same time, the above settings can meet the testing of BMC in the subsequent process, and the NCSI interface link can be tested on the server motherboard without an optical network environment.
[0085] It should be noted that in the above process, when the third transmission rate is adjusted by the preset rules of the target control module, it needs to be executed according to the parameter setting of the optical-to-electrical module. First, the target preset value is determined according to the parameter setting of the optical-to-electrical module (for example, the optical-to-electrical module is set to be a 10G optical-to-electrical module, then the set target preset value is 10G), and then the third transmission rate and the target preset value are compared. If the third transmission rate is less than or equal to the target preset value, it is proved that the adjusted transmission rate meets the parameter requirements of the optical-to-electrical module. If it is greater than the target preset value, it indicates that it needs to be adjusted downward. When adjusting, a preset standard for reduction can be set once, and after reduction, it is continued to be compared with the target preset value. If it is not satisfied, it is continued to be reduced until the third transmission rate is less than or equal to the target preset value. Because the transmission rate needs to be adjusted, the adjustment takes time, and the judgment again also takes time, so each time the transmission rate is adjusted, the waiting time will be increased. The overall logic is as follows:
[0086] While true
[0087] If sign>10G;
[0088] Sign--;
[0089] ChkSign;
[0090] Time++;
[0091] else
[0092] break.
[0093] Wherein, sign is the third transmission rate of the first test signal, ChkSign is to check the state of the first test signal, Time is the target waiting time, Sign-- is the third transmission rate reduced by 1 each time according to the preset standard, and Time++ is the target waiting time increased by 1 each time according to the target preset standard. Wherein, the preset standard can be 1G, 1000M, etc., and the target preset standard can be 1S, 1min, etc., which are not specifically limited in the present invention. The specific steps for adjusting the transmission rate include:
[0094] Determining whether the third transmission rate is less than or equal to a target preset value;
[0095] If yes, determining the third transmission rate as the second transmission rate;
[0096] If not, reducing the third transmission rate according to a preset standard;
[0097] If the reduced third transmission rate is still not less than or equal to the target preset value, then after the target waiting time has passed, the reduced third transmission rate continues to be reduced according to the preset standard;
[0098] If the reduced third transmission rate is less than or equal to the target preset value, the reduced third transmission rate is determined as the second transmission rate.
[0099] Through the above settings, the second transmission rate can meet the network rate requirement of the optical-to-electrical module, thereby enabling the test of the BMC in the subsequent process.
[0100] Step 103 , when it is determined that the second transmission rate is less than the target preset value and the second test signal type is converted into the target signal type, triggering a determination on whether the target LAN port has an Internet Protocol address.
[0101] In the embodiment of the present invention, if the first test signal is adjusted successfully, it will trigger the judgment of whether the target LAN port has an Internet Protocol address, wherein the target LAN port is the port from which the BMC obtains the Internet Protocol address. By judging whether the target LAN port has an Internet Protocol address, it can be determined whether the BMC obtains the Internet Protocol address. The judgment triggered at this time is a pre-set program, and there is no need to manually enter a command line for querying, thereby reducing labor costs.
[0102] It should be noted that the second test signal including the second transmission rate and the second test signal type is obtained, and when judging it, the second transmission rate is compared with the target preset value, and the second test signal type is compared with the target signal type. If the comparison meets the preset situation, it triggers the judgment of whether there is an Internet Protocol address on the target LAN port. If the comparison does not meet the preset situation, it is considered that the adjustment has failed. At this time, the network controller side band interface link test fails, and it is necessary to record the first test failure log and feedback to the server. The specific steps include:
[0103] comparing the second transmission rate with a target preset value, and the second test signal type with a target signal type;
[0104] When it is determined that the second transmission rate is greater than the target preset value and / or the second test signal type is not converted to the target signal type, it is determined that the network controller side band interface link test has failed, and the first test failure log is fed back to the server.
[0105] Step 104: If yes, determine that the network controller side band interface link test is successful, and feed back the test success log to the server.
[0106] In the embodiment of the present invention, the BMC determines whether to obtain the Internet Protocol address by judging whether the target LAN port has an Internet Protocol address, and then determines whether the interface link test on the network controller side is successful. If it exists, it indicates that the interface link test on the network controller side is successful. However, further verification is required at this time to determine whether there is a difference between the obtained Internet Protocol address and the Internet Protocol address initially assigned by the Dynamic Host Configuration Protocol. If there is a difference, it indicates that there is still an abnormality in the interface link test on the network controller side. The specific steps include:
[0107] Pre-connect the DHCP network to the target high-speed network card;
[0108] When it is determined that the server is powered on, configuring a first Internet Protocol address for a baseboard management controller of the server through a dynamic host configuration protocol network;
[0109] When it is determined that the target LAN port has an Internet Protocol address, obtaining a second Internet Protocol address from the target LAN port;
[0110] comparing the first Internet Protocol address and the second Internet Protocol address;
[0111] If they are consistent, it is determined that the network controller side band interface link test is successful;
[0112] If they are inconsistent, it is determined that the network controller side band interface link test has failed.
[0113] Verify the correctness and reliability of the interface link on the network controller side through the above steps. If the IP addresses are inconsistent, it may mean that there is a problem with the network configuration or the BMC fails to obtain the IP address correctly.
[0114] In addition, if the target LAN port does not have an Internet Protocol address, it indicates that the interface link test on the network controller side has failed. At this time, it is necessary to record the second test failure log and feedback it to the server. The specific steps include:
[0115] If it is determined that the target LAN port does not have an Internet Protocol address, it is determined that the interface link test on the network controller side has failed, and a second test failure log is fed back to the server.
[0116] The server testing method provided by the embodiment of the present invention performs a network controller side interface link test when it is detected that the network controller side of the server is connected to the target high-speed network card with an interface link, and obtains the first transmission rate and the first test signal type of the first test signal in the target high-speed network card, adjusts the first transmission rate and the first test signal type of the first test signal through the target device, generates a second test signal including a second transmission rate and a second test signal type, and triggers the judgment of whether the target LAN port has an Internet Protocol address when it is determined that the second transmission rate is less than the target preset value and the second test signal type is converted to the target signal type. If it exists, it is determined that the network controller side interface link test is successful, and the test success log is fed back to the server. In the embodiment of the present invention, the target high-speed network card is used to meet the high-speed requirements of the Pcie signal and to meet the coverage of the Pcie signal as much as possible. By adjusting the transmission rate and the signal type, it supports the functional testing of the NCSI link of the server mainboard under the copper cable network with a low network transmission rate, and there is no need to build an optical network switch environment or a server, which greatly reduces the cost. By automatically judging whether the target LAN port has an Internet Protocol address, there is no need for manual search, which reduces the labor cost.
[0117] Reference Figure 7 , shows a flow chart of steps of another server testing method provided by an embodiment of the present invention, the method may include:
[0118] First, use a fifth-generation network card of 25G or above, and then use the target optical fiber line to connect the network card, use the connector assembly to connect the target optical fiber line and the optical-to-electrical module, connect the dynamic host configuration protocol network to the optical-to-electrical module, and after the server to be tested is powered on, switch the network controller side band interface channel, control the optical signal rate, monitor errors (that is, adjust the first transmission rate and the first test signal type of the first test signal through the target device to generate a second test signal including a second transmission rate and a second test signal type). If the control is successful and there is no error, it triggers the judgment of whether there is an Internet Protocol address on the target LAN port. If the control fails, it is judged that the test has failed. After triggering the judgment of whether there is an Internet Protocol address on the target LAN port, if it is detected that the target LAN port has an Internet Protocol address, the test success log is recorded and fed back to the server, and the test is determined to be successful. If it is detected that the target LAN port does not have an Internet Protocol address, it is judged that the test has failed.
[0119] It should be noted that when adjusting the first transmission rate of the first test signal, the obtained second transmission rate may be affected by various factors, such as the performance of the hardware platform, the design of the software architecture, the optimization of the algorithm, etc. In the above process, by providing a test log, human-computer interaction is reduced, and the test results can be directly and clearly fed back to the tester. By using the target high-speed network card, the interface test coverage is effectively improved, and the stability and test efficiency of the board test are improved.
[0120] Reference Figure 8 , shows a schematic diagram of the structure of a server testing device provided by an embodiment of the present invention, such as Figure 8 As shown, the device may include:
[0121] The first acquisition module 201 is used to perform a network controller side interface link test when it is detected that the network controller side interface link of the server is connected to the target high-speed network card, and obtain the first transmission rate and the first test signal type of the first test signal in the target high-speed network card.
[0122] The adjustment module 202 is configured to adjust the first transmission rate and the first test signal type of the first test signal through the target device to obtain a second test signal including a second transmission rate and a second test signal type.
[0123] The trigger judgment module 203 is used to trigger the judgment of whether there is an Internet Protocol address on the target LAN port when it is determined that the second transmission rate is less than the target preset value and the second test signal type is converted to the target signal type.
[0124] The first determination module 204 is used to determine whether the network controller side band interface link test is successful, and feed back the test success log to the server, if it exists.
[0125] Optionally, the target device includes a connector assembly.
[0126] The server test setup also includes:
[0127] The first setting module is used to pre-set the connector component.
[0128] The second setting module is used to set a first end interface and a second end interface for the connector assembly, wherein the first end interface is a dual-channel small pluggable optical module port, and the second end interface is a small pluggable optical module port.
[0129] The third setting module is used to set a first number of first pins for the first end interface and a second number of second pins for the first end interface.
[0130] The fourth setting module is used to set a target pin definition for each first pin and each second pin.
[0131] The interconnection module is used to interconnect the first pin and the second pin according to the target pin definition.
[0132] The data transmission module is used to realize data transmission between a first end interface and a second end interface in a connector assembly through interconnected pins.
[0133] The fifth setting module is used to set a target control module for the connector component, and the target control module is used to monitor the operating status of the connector component and perform diagnosis and alarm when it is determined that the connector component is abnormal.
[0134] Optionally, the target device further includes a target optical fiber line and an optical-to-electrical module, the input end of the target optical fiber line includes a first optical fiber plug, and the output end includes a plurality of second optical fiber plugs.
[0135] The server test setup also includes:
[0136] The first connection module is used to connect the first optical fiber plug of the target optical fiber line to the target high-speed network card.
[0137] The second connection module is used to select any second optical fiber plug to connect to the first end interface of the connector assembly.
[0138] The third connecting module is used to connect the second end interface of the connector assembly to the optical-to-electrical module.
[0139] Optionally, the adjustment module 202 specifically includes:
[0140] The first input-output submodule is used to input the first test signal into the first optical fiber plug of the target optical fiber line at the first transmission rate, and output the first test signal at the third transmission rate at any second optical fiber plug.
[0141] The adjustment submodule is used to input the first test signal of the third transmission rate into the connector component, and adjust the third transmission rate of the first test signal to the second transmission rate according to the preset rule of the target control module.
[0142] The second input-output submodule is used to input the first test signal of the second transmission rate into the optical-to-electrical module, and output the second test signal including the second transmission rate and the second test signal type.
[0143] Optionally, the adjustment submodule specifically includes:
[0144] The determining unit is used to determine whether the third transmission rate is less than or equal to a target preset value.
[0145] The first determining unit is configured to determine the third transmission rate as the second transmission rate if yes.
[0146] The first rate reducing unit is configured to reduce the third transmission rate according to a preset standard if the third transmission rate is not the same as the preset standard.
[0147] The second rate reducing unit is used to continue reducing the reduced third transmission rate according to a preset standard after a target waiting time if the reduced third transmission rate is still not less than or equal to the target preset value.
[0148] The second determining unit is configured to determine the reduced third transmission rate as the second transmission rate if the reduced third transmission rate is less than or equal to the target preset value.
[0149] Optionally, the server testing device further includes:
[0150] The comparison module is used for comparing the second transmission rate with the target preset value, and the second test signal type with the target signal type.
[0151] The second determination module is used to determine that the network controller side band interface link test fails when it is determined that the second transmission rate is greater than the target preset value and / or the second test signal type is not converted to the target signal type, and to feed back the first test failure log to the server.
[0152] Optionally, the server testing device further includes:
[0153] The third determination module is used to determine that the interface link test on the network controller side has failed if it is determined that the target LAN port does not have an Internet Protocol address, and to feed back a second test failure log to the server.
[0154] The server testing method provided by the embodiment of the present invention performs a network controller side interface link test when it is detected that the network controller side of the server is connected to the target high-speed network card with an interface link, and obtains the first transmission rate and the first test signal type of the first test signal in the target high-speed network card, adjusts the first transmission rate and the first test signal type of the first test signal through the target device, generates a second test signal including a second transmission rate and a second test signal type, and triggers the judgment of whether the target LAN port has an Internet Protocol address when it is determined that the second transmission rate is less than the target preset value and the second test signal type is converted to the target signal type. If it exists, it is determined that the network controller side interface link test is successful, and the test success log is fed back to the server. In the embodiment of the present invention, the target high-speed network card is used to meet the high-speed requirements of the Pcie signal and to meet the coverage of the Pcie signal as much as possible. By adjusting the transmission rate and the signal type, it supports the functional testing of the NCSI link of the server mainboard under the copper cable network with a low network transmission rate, and there is no need to build an optical network switch environment or a server, which greatly reduces the cost. By automatically judging whether the target LAN port has an Internet Protocol address, there is no need for manual search, which reduces the labor cost.
[0155] The embodiment of the present invention also provides a communication device, such as Fig. 9 As shown, it includes a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304.
[0156] Memory 303, used for storing computer programs;
[0157] The processor 301 is used to execute the program stored in the memory 303 to implement the following steps:
[0158] In the case of detecting that the network controller side band interface link of the server is connected to the target high-speed network card, performing the network controller side band interface link test, and obtaining the first transmission rate and the first test signal type of the first test signal in the target high-speed network card;
[0159] Adjusting the first transmission rate and the first test signal type of the first test signal by the target device to obtain a second test signal including a second transmission rate and a second test signal type;
[0160] In the case where it is determined that the second transmission rate is less than a target preset value and the second test signal type is converted to a target signal type, triggering a determination as to whether an Internet Protocol address exists on the target LAN port;
[0161] If so, it is determined that the network controller side band interface link test is successful, and a test success log is fed back to the server.
[0162] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into a physical address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0163] The communication interface is used for communication between the above terminal and other devices.
[0164] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0165] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0166] The present invention also provides a readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the server testing method of the aforementioned embodiment.
[0167] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0168] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. According to the above description, it is obvious that the structure required for constructing this type of device is. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific language is to disclose the best mode of the present invention.
[0169] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0170] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0171] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0172] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0173] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0174] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0175] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0176] It should be noted that the various data-related processes in the embodiments of the present application are all carried out in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.
Claims
1. A server testing method, characterized in that: The method comprises: In the case of detecting that the network controller side band interface link of the server is connected to the target high-speed network card, performing the network controller side band interface link test, and obtaining the first transmission rate and the first test signal type of the first test signal in the target high-speed network card; Adjusting the first transmission rate and the first test signal type of the first test signal by the target device to obtain a second test signal including a second transmission rate and a second test signal type; In the case where it is determined that the second transmission rate is less than a target preset value and the second test signal type is converted to a target signal type, triggering a determination as to whether an Internet Protocol address exists on the target LAN port; If so, it is determined that the network controller side band interface link test is successful, and a test success log is fed back to the server.
2. The method according to claim 1, characterized in that The target device includes a connector assembly; In the case where it is detected that the network controller side band interface link of the server is connected to the target high-speed network card, before executing the network controller side band interface link test, it also includes: Pre-setting connector components; Setting a first end interface and a second end interface for the connector assembly, wherein the first end interface is a dual-channel small pluggable optical module port, and the second end interface is a small pluggable optical module port; Setting a first number of first pins for the first end interface, and setting a second number of second pins for the first end interface; setting a target pin definition for each of the first pins and each of the second pins; interconnecting the first pin and the second pin according to the target pin definition; Implementing data transmission between the first end interface and the second end interface in the connector assembly through interconnected pins; A target control module is provided for the connector component, and the target control module is used to monitor the operation status of the connector component and to perform diagnosis and alarm when it is determined that the connector component is abnormal.
3. The method according to claim 2, characterized in that The target device also includes a target optical fiber line and an optical-to-electrical module, wherein the input end of the target optical fiber line includes a first optical fiber plug, and the output end includes a plurality of second optical fiber plugs; In the case where it is detected that the network controller side band interface link of the server is connected to the target high-speed network card, before executing the network controller side band interface link test, it also includes: Connecting the first optical fiber plug of the target optical fiber line to the target high-speed network card; Select any second optical fiber plug to connect to the first end interface of the connector assembly; Connect the second end interface of the connector assembly to the optical-to-electrical module.
4. The method according to claim 3, characterized in that The step of adjusting the first transmission rate and the first test signal type of the first test signal by the target device to obtain a second test signal including a second transmission rate and a second test signal type includes: Input the first test signal into the first optical fiber plug of the target optical fiber line at a first transmission rate, and output the first test signal at a third transmission rate at any second optical fiber plug; Inputting the first test signal of the third transmission rate into the connector component, and adjusting the third transmission rate of the first test signal to the second transmission rate according to the preset rule of the target control module; A first test signal with the second transmission rate is input into the optical-to-electrical module, and a second test signal with the second transmission rate and the second test signal type is output.
5. The method according to claim 4, characterized in that The adjusting the third transmission rate of the first test signal to the second transmission rate according to the preset rule of the target control module includes: Determining whether the third transmission rate is less than or equal to a target preset value; If yes, determining the third transmission rate as the second transmission rate; If not, reducing the third transmission rate according to a preset standard; If the reduced third transmission rate is still not less than or equal to the target preset value, then after the target waiting time has passed, continue to reduce the reduced third transmission rate according to the preset standard; If the reduced third transmission rate is less than or equal to the target preset value, the reduced third transmission rate is determined as the second transmission rate.
6. The method according to claim 1, characterized in that After adjusting the first transmission rate and the first test signal type of the first test signal by the target device to obtain a second test signal including a second transmission rate and a second test signal type, the method further includes: comparing the second transmission rate with a target preset value, and the second test signal type with a target signal type; When it is determined that the second transmission rate is greater than the target preset value and / or the second test signal type is not converted to the target signal type, it is determined that the interface link test on the network controller side has failed, and the first test failure log is fed back to the server.
7. The method according to claim 1, characterized in that After the triggering of the judgment on whether the target LAN port has an Internet Protocol address, the method further includes: If it is determined that the target LAN port does not have an Internet Protocol address, it is determined that the network controller side band interface link test has failed, and a second test failure log is fed back to the server.
8. A server testing device, characterized in that: include: A first acquisition module is used to perform a network controller side band interface link test when it is detected that the network controller side band interface link of the server is connected to the target high-speed network card, and obtain a first transmission rate and a first test signal type of a first test signal in the target high-speed network card; an adjustment module, configured to adjust the first transmission rate and the first test signal type of the first test signal through a target device to obtain a second test signal including a second transmission rate and a second test signal type; a trigger judgment module, configured to trigger a judgment on whether there is an Internet Protocol address on the target LAN port when it is determined that the second transmission rate is less than a target preset value and the second test signal type is converted to a target signal type; The first determination module is used to determine whether the network controller side band interface link test is successful, if any, and to feed back the test success log to the server.
9. A communication device, characterized in that: include: A transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; The processor is used to read the program in the memory to implement the steps in the server testing method as described in any one of claims 1-7.
10. A readable storage medium for storing a program, characterized in that: When the stored program is executed by the processor, the steps in the server testing method as described in any one of claims 1 to 7 are implemented.
