Network card testing method, device, computer equipment and storage medium
By conducting component pressure tests and network card pressure tests on network card, combined with the operating status of multiple different components in the processing mode, the problem of insufficient accuracy of network card stability test results in the existing technology is solved, and a higher accuracy stability test is achieved.
Patent Information
- Application Number
- CN202410440369.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-04-11
AI Technical Summary
The results of network card stability tests in the prior art are not accurate enough to fully detect the stability of network card under different load pressures.
By responding to the test instructions of the network card to be tested, it is controlled to be in the preset processing mode, and collecting component pressure test data of multiple different components, combining the network card pressure test data to determine the stability test results of the network card.
The comprehensive test of network card stability is achieved, the accuracy of stability test results is improved, the test error caused by manual participation is reduced, and the test time is shortened.
Smart Images

Figure CN118264589B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a network card testing method, device, computer equipment and storage medium. Background Art
[0002] With the development of communication technology, network cards came into being and are widely used in data centers, cloud computing, the Internet of Things and other fields.
[0003] For enterprises, they not only pay attention to the transmission performance of the network card, but also pay attention to the stability of the network card during operation. Therefore, testing the stability of the network card is one of the technologies that the communication field pays close attention to.
[0004] However, in the related art, when testing the stability of the network card, there is a problem that the stability test results are not accurate enough. Summary of the invention
[0005] Based on this, it is necessary to provide a network card testing method, device, computer equipment and storage medium to address the above technical problems, which can comprehensively test the stability of the network card and improve the accuracy of the determined stability test results.
[0006] In a first aspect, an embodiment of the present application provides a network card testing method, the method comprising:
[0007] In response to the test instruction of the network card to be tested, the network card to be tested is controlled to be in a preset processing mode, and component stress test data of multiple different components in the network card to be tested are collected; in the processing mode, multiple different components are all in operation;
[0008] According to the stress test data of each component and the network card stress test data of the network card to be tested, the stability test result of the network card to be tested is determined.
[0009] The technical solution in the embodiment of the present application, in response to the test instruction of the network card to be tested, controls the network card to be tested to be in a preset processing mode, and collects component stress test data of multiple different components in the network card to be tested, and then determines the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested, and multiple different components are in a running state in the processing mode; the above method can control the network card to be tested to be in the processing mode, so that multiple different components in the network card to be tested are in a running state, so that the component stress test data of multiple different components in the processing running state of the network card to be tested can be comprehensively collected, and the stability test result of the network card to be tested can be accurately determined according to the stress test data of each component and the network card stress test data of the network card to be tested; at the same time, the above method does not require manual participation, which can not only shorten the test time, but also reduce the test error caused by manual participation, and can greatly improve the accuracy of the determined stability test result.
[0010] In one embodiment, controlling the network card to be tested to be in a preset processing mode includes:
[0011] Get the current function mode of the network card to be tested;
[0012] If the functional mode is the processing mode, it is determined that the network card to be tested is in the processing mode;
[0013] If the functional mode is the network card mode, the functional mode of the network card to be tested is adjusted from the network card mode to the processing mode.
[0014] The technical solution in the embodiment of the present application obtains the current functional mode of the network card to be tested, and when the functional mode is the processing mode, determines that the network card to be tested is in the processing mode, and when the functional mode is the network card mode, adjusts the functional mode of the network card to be tested from the network card mode to the processing mode; the above method can configure the network card to be tested to be in the processing mode by obtaining the current functional module of the network card to be tested, and the processing process is relatively simple, does not require the participation of complex algorithms, and can improve the speed of controlling the network card to be tested to be in the processing mode to a certain extent.
[0015] In one embodiment, obtaining the current functional mode of the network card to be tested includes:
[0016] Determine the link operation status of each network port according to the link information of each network port in the network card to be tested in the connected state;
[0017] When the operation status of each link is stable, obtain the function mode identifier of the network card to be tested;
[0018] Determine the current functional mode of the network card to be tested according to the functional mode identifier.
[0019] The technical solution in the embodiment of the present application determines the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state, obtains the functional mode identification of the network card to be tested when the operation status of each link is in a stable state, and determines the current functional mode of the network card to be tested according to the functional mode identification; the above method can obtain the functional mode identification of the network card to be tested only when it is determined that the operation status of each link in the network card to be tested is in a stable state, so that the accuracy of the obtained functional mode identification is higher.
[0020] In one embodiment, determining the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state includes:
[0021] For any network port, if the link information of the network port in the connected state meets the preset link stability condition, the link operation state of the network port is determined to be a stable state;
[0022] If the link information of the network port in the connected state does not meet the link stability condition, it is determined that the link operation state of the network port is in an unstable state.
[0023] According to the technical solution in the embodiment of the present application, for any network port, if the link information of the network port in a connected state satisfies a preset link stability condition, the link operation state of the network port is determined to be a stable state; if the link information of the network port in a connected state does not satisfy the link stability condition, the link operation state of the network port is determined to be an unstable state; the above method can quickly determine the link operation state of each network port in the network card to be tested through the link stability condition, so as to ensure the effectiveness of executing subsequent processing procedures for the network port to be tested.
[0024] In one embodiment, before collecting component stress test data of multiple different components in the network card to be tested, the method further includes:
[0025] Get the Internet Protocol IP address of the network card to be tested;
[0026] According to the IP address of the network card to be tested, log in to the network card to be tested, access the network card to be tested to call the test system, and collect component stress test data of each component at preset time intervals.
[0027] The technical solution in the embodiment of the present application obtains the Internet Protocol IP address of the network card to be tested, logs in to the network card to be tested according to the IP address of the network card to be tested, and accesses the network card to be tested to call the test system, and collects the component stress test data of each component at preset time intervals; the above method does not require a test system outside the network card to be tested to collect data, and can directly call the test system deployed in the network card to be tested to accurately collect the component stress test data of each component to determine the stability test result of the network card to be tested. In this way, the accuracy of the stability test result can be improved on the basis of ensuring the accuracy of the collected data.
[0028] In one embodiment, the multiple different components include a data processing unit, a memory, a storage, and a network port; collecting component stress test data of the multiple different components in the network card to be tested includes:
[0029] Collect stress test data of the data processing unit in the network card to be tested, stress test data of the memory, stress test data of the storage and stress test data of each network port.
[0030] The technical solution in the embodiments of the present application can respectively collect the stress test data of the data processing unit in the network card to be tested, the stress test data of the memory, the stress test data of the storage and the stress test data of each network port, so as to obtain more comprehensive stress test data corresponding to the network card to be tested, so as to provide basic data for further determining the stability test results of the network card to be tested with higher accuracy.
[0031] In one embodiment, the component stress test data and the network card stress test data both include test data under multiple different load pressures; according to the component stress test data and the network card stress test data of the network card to be tested, the stability test result of the network card to be tested is determined, including:
[0032] According to the test data under different load pressures in the pressure test data of each component, the pressure of the corresponding component is analyzed to determine the component pressure test result of each component;
[0033] Determine preliminary stability test results of the network card to be tested under different load pressures based on the stress test results of each component and the test data under different load pressures in the network card stress test data;
[0034] According to each preliminary stability test result, the stability test result of the network card to be tested is determined.
[0035] The technical solution in the embodiment of the present application analyzes the pressure of the corresponding component according to the test data under different load pressures in the stress test data of each component, determines the component stress test result of each component, determines the preliminary stability test result of the network card to be tested under different load pressures according to the stress test results of each component and the test data under different load pressures in the network card stress test data, and determines the stability test result of the network card to be tested according to each preliminary stability test result; the above method can first determine the component stress test result of each component in the network card to be tested, and then comprehensively determine the stability test result of the network card to be tested in combination with the test data of the network card to be tested under different load pressures, so that the stability test result of the network card to be tested that is finally determined is more accurate. At the same time, the above process does not require the participation of complex algorithms, can reduce the amount of data processed by the network card testing process, and thus can also improve the network card testing speed and efficiency.
[0036] In a second aspect, an embodiment of the present application provides a network card testing device, the device comprising:
[0037] The control module is used to respond to the test instruction of the network card to be tested, control the network card to be tested to be in a preset processing mode, and collect component stress test data of multiple different components in the network card to be tested; in the processing mode, multiple different components are in operation;
[0038] The determination module is used to determine the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested.
[0039] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of any one of the embodiments of the first aspect when executing the computer program.
[0040] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method of any embodiment in the above-mentioned first aspect are implemented.
[0041] In a fifth aspect, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method of any embodiment of the first aspect above.
[0042] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a flow chart of a network card testing method in an embodiment;
[0044] Figure 2 A schematic diagram of a flow chart of a network card testing method in another embodiment;
[0045] Figure 3 A schematic diagram of a flow chart of a network card testing method in another embodiment;
[0046] Figure 4 A schematic diagram of a flow chart of a network card testing method in another embodiment;
[0047] Figure 5 A schematic diagram of a flow chart of a network card testing method in another embodiment;
[0048] Figure 6 is a structural block diagram of a network card testing device in an embodiment;
[0049] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] In communication technology, a network card is a piece of computer hardware designed to allow computers to communicate on a computer network, and is widely used in data centers, cloud computing, the Internet of Things, and other fields. For enterprises, they not only pay attention to the transmission performance of the network card, but also pay attention to the stability of the network card during operation. Therefore, testing the stability of the network card is one of the technologies that are currently of great concern in the field of communication. In the related art, the network card to be tested is mainly installed in the server, the network card to be tested is configured to be interconnected with the service network card installed in the test end through a switch, and the IP address of the network card to be tested and the service network card are configured to ensure that each network port in the network card to be tested and the service network card can ping each other, and then the stability of the network card to be tested is tested through the test end. However, when the stability of the network card is tested in the related art, the test is not comprehensive enough, and there will be a problem that the stability test result is not accurate enough. Based on this, the embodiment of the present application provides a network card testing method, which can comprehensively detect the stability of the network card and improve the accuracy of the determined stability test result.
[0052] The network card testing method provided in the embodiment of the present application can be applied to a server, in which at least one network card is installed. The embodiment of the present application is described by taking the network card to be tested as any network card in the server as an example. Optionally, the above-mentioned server can be but is not limited to a web server, a database server, a file server, a middleware application server, a log server, a monitoring server, and a program version control server. In the embodiment of the present application, the above-mentioned network card to be tested can be called an intelligent network card, in which a data processing unit (DPU) is integrated, and virtualization can also be supported.
[0053] In an embodiment of the present application, the network card to be tested includes two network ports. Before executing the network card test process, the corresponding cable bandwidth can be determined according to the provisions of the smart network card, and then the two network ports of the network card to be tested are connected through the corresponding cables according to the cable bandwidth. Compared with the traditional technology, the configuration process of the network card test system is relatively simple. Only one network card is required to implement the network card test process, which can save configuration costs, and does not require network card communication through a switch, which can save cable configuration and manpower deployment costs. Optionally, the provisions of the smart network card may include the bandwidth of each network port of the smart network card. For example, when the bandwidth of the network port is 100G, the corresponding cable bandwidth is 100G. At the same time, the above-mentioned cable can be a cable with a larger bandwidth, such as an infinite bandwidth (Quad Small Form-factor Pluggable, QSFP) cable, a high-speed (Small Form Pluggable, SFP) cable, etc. The following embodiment uses a server as the execution subject of the network card test method to introduce the specific process of the network card test method.
[0054] like Figure 1 FIG. 1 is a flow chart of a network card testing method provided in an embodiment of the present application, and the method can be implemented by the following steps:
[0055] S100, in response to a test instruction of the network card to be tested, control the network card to be tested to be in a preset processing mode, and collect component stress test data of multiple different components in the network card to be tested, wherein the multiple different components are all in a running state in the processing mode.
[0056] In actual applications, the user can input the test instructions of the network card to be tested through gestures, voice, buttons, touch screens, etc. Correspondingly, the server can receive the test instructions of the network card to be tested.
[0057] It should be noted here that the above-mentioned processing mode can be understood as a DPU mode; the multiple different components in the network card to be tested may include a DPU, a main control chip, multiple network ports, memory, a transformer, storage and other components. In an embodiment of the present application, multiple different components including a DPU, multiple network ports, memory and storage are taken as an example for explanation.
[0058] Among them, the network card to be tested is in processing mode, and the DPU, memory, storage and network ports in the network card to be tested are all in operation. Correspondingly, component stress test data of multiple different components in the network card to be tested can be collected.
[0059] Specifically, the server can respond to the test instruction of the network card under test, execute the processing mode control instruction, control the network card under test to be in a preset processing mode, and when the network card under test is in the processing mode, trigger the collection instruction to execute the collection of component stress test data of each component in the network card under test.
[0060] In addition, when the network card to be tested is in the processing mode, the server can trigger the collection instructions of different components to respectively execute and collect the component stress test data of each component in the network card to be tested.
[0061] S200 , determining a stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested.
[0062] In the embodiment of the present application, the stability test result of the network card to be tested may include the result of whether the stability of the network card to be tested passes, and may also include the results of the stability and resource utilization of the network card to be tested.
[0063] In one embodiment, the server may pre-train a stability analysis model, and then input the stress test data of each component and the network card stress test data of the network card to be tested into the stability analysis model, and the stability analysis model outputs the stability test result of the network card to be tested.
[0064] Optionally, the above stability analysis model can be a combination of at least one of a convolutional neural network model, a fully connected neural network model, a recurrent neural network model, and a long short-term memory neural network model.
[0065] In another embodiment, the server can calculate the quantitative value of the server's stability evaluation index based on the stress test data of each component and the network card stress test data of the network card to be tested, and then determine the stability test result of the network card to be tested based on the quantitative value of the server's stability evaluation index.
[0066] The above stability evaluation index may include throughput, response time, error rate, number of concurrent connections, resource utilization, etc. In practical applications, if the quantified value of the stability evaluation index of the server is greater than or equal to the preset threshold, it can be determined that the stability test result of the network card to be tested is passed; if the quantified value of the stability evaluation index of the server is less than the preset threshold, it can be determined that the stability test result of the network card to be tested is failed.
[0067] Optionally, the preset threshold may be determined based on historical experience values, or may be user-defined, which is not limited in the embodiments of the present application.
[0068] In one embodiment, the server may also calculate the quantitative value of the stability evaluation index of each component according to the stress test data of each component, and then process the quantitative value of the stability evaluation index of each component and the network card stress test data of the network card to be tested to determine the stability test result of the network card to be tested. Optionally, the stability evaluation indexes of different components may be different.
[0069] The technical solution in the embodiment of the present application, in response to the test instruction of the network card to be tested, controls the network card to be tested to be in a preset processing mode, and collects component stress test data of multiple different components in the network card to be tested, and then determines the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested, and multiple different components are in a running state in the processing mode; the above method can control the network card to be tested to be in the processing mode, so that multiple different components in the network card to be tested are in a running state, so that the component stress test data of multiple different components in the processing running state of the network card to be tested can be comprehensively collected, and the stability test result of the network card to be tested can be accurately determined according to the stress test data of each component and the network card stress test data of the network card to be tested; at the same time, the above method does not require manual participation, which can not only shorten the test time, but also reduce the test error caused by manual participation, and can greatly improve the accuracy of the determined stability test result.
[0070] The process of controlling the network card to be tested to be in a preset processing mode is described below. Figure 2As shown, the step of controlling the network card to be tested to be in a preset processing mode in the above S100 can be implemented in the following manner:
[0071] S110: Obtain the current function mode of the network card to be tested.
[0072] In the embodiment of the present application, the above-mentioned functional mode can be a network card (Network Interface Card, NIC) mode, or a DPU mode, which is not limited in the embodiment of the present application.
[0073] Specifically, the server can execute a scan instruction to obtain the current functional mode of the network card to be tested; in addition, the server can also read relevant setting parameters of the network card, extract functional mode setting parameters from the relevant setting parameters, and determine the current functional mode of the network card to be tested according to the functional mode setting parameters.
[0074] S120: If the functional mode is the processing mode, determine whether the network card to be tested is in the processing mode.
[0075] Based on the current functional mode of the network card to be tested determined in the previous steps, when the current functional mode of the network card to be tested is the processing mode, it can be determined that the network card to be tested is in the processing mode.
[0076] S130: If the functional mode is the network card mode, adjust the functional mode of the network card to be tested from the network card mode to the processing mode.
[0077] When determining that the current functional mode of the network card to be tested is the processing mode, the server may receive a functional mode adjustment instruction, and respond to the functional mode adjustment instruction to adjust the functional mode of the network card to be tested from the network card mode to the processing mode. Optionally, the functional mode adjustment instruction may include an identifier of the processing mode.
[0078] Optionally, the input method of the above-mentioned function mode adjustment instruction can be voice, gesture, button, keyboard, touch screen, etc., which is not limited to this embodiment of the present application.
[0079] In the embodiment of the present application, after the functional mode of the network card to be tested is adjusted from the network card mode to the processing mode, the server can be restarted to ensure that the functional mode of the network card to be tested is successfully adjusted.
[0080] The technical solution in the embodiment of the present application obtains the current functional mode of the network card to be tested, and when the functional mode is the processing mode, determines that the network card to be tested is in the processing mode, and when the functional mode is the network card mode, adjusts the functional mode of the network card to be tested from the network card mode to the processing mode; the above method can configure the network card to be tested to be in the processing mode by obtaining the current functional module of the network card to be tested, and the processing process is relatively simple, does not require the participation of complex algorithms, and can improve the speed of controlling the network card to be tested to be in the processing mode to a certain extent.
[0081] In one embodiment, if Figure 3 As shown, the step of obtaining the current functional mode of the network card to be tested in the above S110 can be implemented in the following way:
[0082] S111 . Determine the link operation status of each network port according to the link information of each network port in the network card to be tested in a connected state.
[0083] Before executing the step in S111 above, the enabled state of each network port in the network card to be tested may be configured as yes, so that the server can identify each network port and ensure that each network port is in a connected state.
[0084] Specifically, the server can receive the network port identification instruction of the network card to be tested, and respond to the network port identification instruction of the network card to be tested, and identify each network port of the network card to be tested installed inside itself. If each network port of the network card to be tested is identified, it is determined that each network port in the network card to be tested has been enabled and each network port is in a connected state.
[0085] In an embodiment of the present application, the server can verify whether the RShim service is running through a verification instruction. If it is determined that the RShim service is running and the server's Basic Input Output System (BIOS) has relevant configuration information of the network port to be tested, then it is determined that the network card to be tested can be identified, that is, each network port of the network card to be tested can be identified, and naturally, it is determined that each network port is in a connected state.
[0086] At the same time, the server can collect link information of each network port in the network card to be tested when determining that each network port in the network card to be tested is in a connected state, and determine the link operation state of each network port according to the link information of each network port. Optionally, the link operation state of the network port can be a stable state or an unstable state.
[0087] In one embodiment, the server may pre-train an algorithm model, and then for any network port, input the link information of the network port into the algorithm model, and the algorithm model outputs the link operation status of the network port.
[0088] In another embodiment, the server can also search for the link information of each network port in a mapping relationship table between different link information and different link operation states, and then obtain the link operation state corresponding to each link information found from the mapping relationship table as the link operation state of each network port.
[0089] It should be noted here that after the server determines that each network port in the network card to be tested can be identified, it can call the MST instruction to obtain the driver information, firmware information, and information used for upgrading the firmware of the network card to be tested. In actual applications, before determining whether each network port in the network card to be tested is connected, the server can install the driver of the network card to be tested according to the driver information of the network card to be tested, so that the network card to be tested can achieve the Internet access function.
[0090] Meanwhile, after determining that all network ports in the network card to be tested are in a connected state, the server can install the firmware of the network card to be tested according to the firmware information of the network card to be tested, so as to ensure that the network card to be tested and the server can communicate and connect normally.
[0091] S112: When the operation status of each link is stable, obtain a function mode identifier of the network card to be tested.
[0092] In addition, when the server determines that the link operation status of at least one network port in the network card to be tested is in an unstable state, the server can repeatedly control the network card to be tested to restart (complete the main link restart of the network card to be tested), and re-plug and unplug the cables of each network port (complete the internal link restart of the network card to be tested), until the link operation status of each network port in the network card to be tested is stable, and then read the functional mode identifier of the network card to be tested through the functional mode identifier reading instruction.
[0093] In the embodiment of the present application, when the server determines that the link operation status of each network port in the network card to be tested is stable, the server can read the functional mode identification of the network card to be tested through the functional mode identification reading instruction. Optionally, the functional mode identification can be represented by letters or numbers.
[0094] S113: Determine the current functional mode of the network card to be tested according to the functional mode identifier.
[0095] Based on the functional mode identifier of the network card to be tested obtained in the previous steps, the current functional mode of the network card to be tested can be determined. In the embodiment of the present application, different functional modes correspond to different functional mode identifiers.
[0096] The technical solution in the embodiment of the present application determines the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state, obtains the functional mode identification of the network card to be tested when the operation status of each link is in a stable state, and determines the current functional mode of the network card to be tested according to the functional mode identification; the above method can obtain the functional mode identification of the network card to be tested only when it is determined that the operation status of each link in the network card to be tested is in a stable state, so that the accuracy of the obtained functional mode identification is higher.
[0097] In one embodiment, the step of determining the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state in the above S111 may include:
[0098] For any network port, if the link information of the network port in the connected state meets the preset link stability condition, the link operation state of the network port is determined to be a stable state; if the link information of the network port in the connected state does not meet the link stability condition, the link operation state of the network port is determined to be an unstable state.
[0099] Among them, the link information of the above-mentioned network port may include information such as the usage time, service life, and factory time of the network port, but in an embodiment of the present application, the link information of the above-mentioned network port may include information such as the current bandwidth, rate, and device status of the network port, and the device status of the above-mentioned network port can represent the enabled status of the network port.
[0100] In an embodiment of the present application, the above-mentioned link stability conditions may include that the bandwidth of the network card is less than or equal to the maximum bandwidth of the network port, the rate of the network port is less than or equal to the maximum rate of the network port, and the device status of the network port is yes.
[0101] Specifically, for any network port, the server can respectively determine whether the current bandwidth of the network port is less than or equal to the maximum bandwidth of the network port, determine whether the current rate of the network port is less than or equal to the maximum rate of the network port, and determine whether the current device status of the network port is yes. If the current bandwidth of the network port is less than or equal to the maximum bandwidth of the network port, the current rate of the network port is less than or equal to the maximum rate of the network port, and the current device status of the network port is yes, it indicates that the link information of the network port in the connected state meets the link stability condition, and the link operation state of the network port is determined to be a stable state; otherwise, it indicates that the link information of the network port in the connected state does not meet the link stability condition, and the link operation state of the network port is determined to be an unstable state.
[0102] According to the technical solution in the embodiment of the present application, for any network port, if the link information of the network port in a connected state satisfies a preset link stability condition, the link operation state of the network port is determined to be a stable state; if the link information of the network port in a connected state does not satisfy the link stability condition, the link operation state of the network port is determined to be an unstable state; the above method can quickly determine the link operation state of each network port in the network card to be tested through the link stability condition, so as to ensure the effectiveness of executing subsequent processing procedures for the network port to be tested.
[0103] In some scenarios, the test system of the network card to be tested is deployed in the network card to be tested. The following describes how to call the test system in the network card to be tested to implement the network card test process. In one embodiment, before executing the step of collecting component stress test data of multiple different components in the network card to be tested in S100, as shown in FIG. Figure 4As shown, the above method may further include the following steps:
[0104] S300: Obtain the Internet Protocol IP address of the network card to be tested.
[0105] Specifically, the server can obtain the IP address corresponding to the management network port in the network card to be tested through the network port IP address acquisition instruction (i.e., the ip addr command), and then search for the IP address of the management network port in the network card to be tested in the mapping relationship between the IP address of the management network port and the IP address of the network card, and use the IP address of the network card corresponding to the found IP address of the management network port as the IP address of the network card to be tested.
[0106] In one implementation, the server can obtain instructions through the network port IP address, obtain the IP address corresponding to the management network port in the network card to be tested, and then input the IP address corresponding to the management network port into an algorithm model, which outputs the IP address of the network card to be tested.
[0107] S400 , according to the IP address of the network card to be tested, log in to the network card to be tested, access the network card to be tested to call the test system, and collect component stress test data of each component at preset time intervals.
[0108] Specifically, the server can receive a login instruction of the network card to be tested input by a response user, open the login interface of the network card to be tested, obtain the IP address of the network card to be tested according to the login interface of the network card to be tested, and verify the IP address of the network card to be tested. After the verification passes, the server logs in to the network card to be tested, and accesses the network card to be tested to detect whether the test system has been installed. If it is determined that it has been installed, the test system call instruction is triggered to allow the network card to be tested to call the test system and collect component stress test data of each component.
[0109] Optionally, the above-mentioned network card to be tested login interface may include an IP address input area for the network card to be logged in; correspondingly, the user can input the IP address of the network card to be tested in the IP address input area for the network card to be logged in, and input a submission command for the IP address of the network card to be tested, so as to submit the IP address of the network card to be tested to the server. In addition, the submission command can be input by triggering a confirmation control in the login interface of the network card to be tested, or by voice, gesture, keyboard, etc.
[0110] In addition, the above verification of the IP address of the network card to be tested can be understood as whether the network card to be tested can be accessed; if the network card to be tested can be accessed, the IP address verification of the network card to be tested passes.
[0111] It should be noted here that the server can use a synchronous collection method to synchronously collect component stress test data of each component. In an embodiment of the present application, the server can use an asynchronous method to collect component stress test data of different components in the network card to be tested according to preset time intervals; the above preset time intervals may include the corresponding collection intervals between different components when collecting component stress test data of different components; during the stress test data collection process, the collection intervals between every two adjacent components may be equal or unequal.
[0112] In addition, the server can output the IP address of the network card to be tested so that the user can view the IP address of the network card to be tested, and log in to the network card to be tested on other devices according to the IP address of the network card to be tested, and access the network card to be tested to trigger the test system call instruction, collect component stress test data of each component through the test system, and perform subsequent processing during the network card test. This can reduce the load pressure of the server and speed up the network card test.
[0113] In an embodiment of the present application, the above-mentioned test system integrates the network card stress test software and the dependency packages required to run the network card stress test software, and the dependency packages may include software packages such as the DOCA library and python3.
[0114] The technical solution in the embodiment of the present application obtains the Internet Protocol IP address of the network card to be tested, logs in to the network card to be tested according to the IP address of the network card to be tested, and accesses the network card to be tested to call the test system, and collects the component stress test data of each component at preset time intervals; the above method does not require a test system outside the network card to be tested to collect data, and can directly call the test system deployed in the network card to be tested to accurately collect the component stress test data of each component to determine the stability test result of the network card to be tested. In this way, the accuracy of the stability test result can be improved on the basis of ensuring the accuracy of the collected data.
[0115] In one embodiment, the multiple different components in the above-mentioned network card to be tested include a data processing unit, a memory, a storage and a network port; the step of collecting component stress test data of the multiple different components in the network card to be tested in the above-mentioned S100 may include: collecting stress test data of the data processing unit in the network card to be tested, stress test data of the memory, stress test data of the storage and stress test data of each network port.
[0116] In the embodiment of the present application, the components that affect the stability of the network card to be tested may be determined to be multiple different components in the network card to be tested.
[0117] Specifically, the server may collect the stress test data of the data processing unit in the network card to be tested, the stress test data of the memory, the stress test data of the storage, and the stress test data of each network port at preset time intervals.
[0118] The technical solution in the embodiments of the present application can respectively collect the stress test data of the data processing unit in the network card to be tested, the stress test data of the memory, the stress test data of the storage and the stress test data of each network port, so as to obtain more comprehensive stress test data corresponding to the network card to be tested, so as to provide basic data for further determining the stability test results of the network card to be tested with higher accuracy.
[0119] In one embodiment, the component stress test data and the network card stress test data both include test data under multiple different load pressures; Figure 5 As shown, the step of determining the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested in the above S200 can be implemented in the following manner:
[0120] S210 , analyzing the pressure of the corresponding component according to the test data under different load pressures in the pressure test data of each component, and determining the component pressure test result of each component.
[0121] In practical applications, pressurization software can be used to perform pressurization operations on the network cards to be tested, so that the load pressure of the network cards to be tested is at different pressure thresholds at different times, and the network cards to be tested are determined to be under different load pressures.
[0122] It should be noted here that before applying pressure to the network card to be tested, the server can clear the historical logs related to the network card to be tested to ensure that the test data corresponding to each component collected during the network card test and the test data corresponding to the network card to be tested are accurately obtained in the end, in preparation for determining the accurate stability test results of the network card to be tested.
[0123] Furthermore, for any component, the server can call the test system to collect test data corresponding to the component under different load pressures of the network card to be tested.
[0124] Optionally, the above test data may be the operation data of the corresponding component. If the component is a data processing unit, the test data corresponding to the component may be data such as the operation rate, data loading speed, and failure rate of the component; if the component is a memory, the test data corresponding to the component may be data such as the capacity, used capacity, and remaining capacity of the component; if the component is a storage, the test data corresponding to the component may be data such as the capacity, used capacity, remaining capacity, and storage speed of the component; if the component is a network port, the test data corresponding to the component may be the traffic, type, number of received data packets, and number of sent data packets of the network port, etc. In addition, the component stress test results of the above components may include the stability test of the component passing, or the stability test of the component failing.
[0125] Specifically, for any component, the server can analyze the pressure of the component according to the test data under different load pressures in the component pressure test data of the component, and determine the component pressure test results of the component under different load pressures. Optionally, the component pressure test results of the component under different load pressures can be the same or different.
[0126] In one embodiment, the method of analyzing the pressure of the component based on the test data under different load pressures in the component pressure test data of the component can be to compare the test data of the component under different load pressures with the standard data respectively, and determine the component pressure test results of the component under different load pressures based on the comparison results.
[0127] In another embodiment, the method of analyzing the pressure of the component based on the test data under different load pressures in the component pressure test data of the component can also be to pre-train a pressure analysis model, and then input the test data under different load pressures in the component pressure test data of the component into the pressure analysis model, and the pressure analysis model outputs the component pressure test results of the component under different load pressures.
[0128] Optionally, the above-mentioned pressure analysis model can be a combination of at least one of a convolutional neural network model, a fully connected neural network model, a recurrent neural network model, a long short-term memory neural network model, etc.
[0129] It should be noted here that the functional modes of different network ports in the network card to be tested may be different, and the corresponding stress analysis methods may be different for the same network port in different functional modes.
[0130] S220, determining preliminary stability test results of the network card to be tested under different load pressures according to the stress test results of each component and the test data under different load pressures in the network card stress test data.
[0131] In the embodiment of the present application, the server calls the test system and can execute the ipmitool command to collect the test data corresponding to the network card under test under different load pressures. Optionally, the test data corresponding to the network card under test under different load pressures may include data such as the packet processing speed, packet processing delay, processing capacity, temperature, bandwidth, power consumption, etc. of the network card under test, and may also include data such as the speed of the fan in the server and the power consumption of the server.
[0132] In actual applications, the server can perform analysis, comprehensive evaluation, and comparison based on the component stress test results of each component under different load pressures and the test data under different load pressures in the network card stress test data to determine the preliminary stability test results of the network card to be tested under different load pressures.
[0133] In addition, for any load pressure, the server can also search the corresponding relationship table for the component stress test results of each component under the load pressure and the test data under the load pressure in the network card stress test data, and obtain the stability test results corresponding to the found component stress test results and the test data under the load pressure in the network card stress test data from the corresponding relationship table as the preliminary stability test results of the network card to be tested under the load pressure.
[0134] Optionally, the above correspondence table may include the correlation between component pressure test results of different components under different load pressures, test data of network cards under different load pressures, and different stability test results. The preliminary stability test results of the network cards to be tested under different load pressures may be the same or different.
[0135] S230. Determine the stability test result of the network card to be tested according to each preliminary stability test result.
[0136] In actual applications, the server can determine the load pressures that pass the stability and the load pressures that fail the stability from the preliminary stability test results of the network card to be tested under different load pressures, and then based on the load pressures that pass the stability and the load pressures that fail the stability, if the load pressures that pass the stability are all less than the preset pressure threshold, then the stability test result of the network card to be tested is determined to be the stability test passed; otherwise, the stability test result of the network card to be tested is determined to be the stability test failed.
[0137] In addition, the server can also count the number of stability passes and the number of stability failures from the preliminary stability test results of the network card to be tested under different load pressures. If the number of stability passes is greater than the number of stability failures, the stability test result of the network card to be tested is determined to be a stability test pass, otherwise, the stability test result of the network card to be tested is determined to be a stability test failure. Optionally, the above pressure threshold can be customized or determined based on historical experience values.
[0138] In actual applications, the network test process may be executed repeatedly, and the final stability test result of the network card to be tested may be determined based on the stability test results of the network card to be tested obtained through multiple network card tests.
[0139] Furthermore, in the embodiment of the present application, the server can also analyze the potential bottlenecks of the network card to be tested based on the accurate stability test results of the network card to be tested to optimize the performance of the network card to be tested.
[0140] The technical solution in the embodiment of the present application analyzes the pressure of the corresponding component according to the test data under different load pressures in the stress test data of each component, determines the component stress test result of each component, determines the preliminary stability test result of the network card to be tested under different load pressures according to the stress test results of each component and the test data under different load pressures in the network card stress test data, and determines the stability test result of the network card to be tested according to each preliminary stability test result; the above method can first determine the component stress test result of each component in the network card to be tested, and then comprehensively determine the stability test result of the network card to be tested in combination with the test data of the network card to be tested under different load pressures, so that the stability test result of the network card to be tested that is finally determined is more accurate. At the same time, the above process does not require the participation of complex algorithms, can reduce the amount of data processed by the network card testing process, and thus can also improve the network card testing speed and efficiency.
[0141] In one embodiment, the present application also provides a network card testing method, which is applied to a server and includes the following process:
[0142] (1) In response to a test instruction of the network card to be tested, for any network port, if the link information of the network port in a connected state meets a preset link stability condition, then the link operation state of the network port is determined to be a stable state.
[0143] (2) If the link information of the network port in the connected state does not meet the link stability condition, it is determined that the link operation state of the network port is an unstable state.
[0144] (3) When the operating status of each link is stable, obtain the functional mode identifier of the network card to be tested.
[0145] (4) Determine the current functional mode of the network card under test based on the functional mode identifier.
[0146] (5) If the functional mode is the processing mode, it is determined that the network card under test is in the processing mode; in the processing mode, multiple different components are in operation; the multiple different components include a data processing unit, a memory, a storage, and a network port.
[0147] (6) If the functional mode is the network card mode, adjust the functional mode of the network card to be tested from the network card mode to the processing mode.
[0148] (7) Obtain the Internet Protocol IP address of the network card to be tested.
[0149] (8) According to the IP address of the network card to be tested, log in to the network card to be tested, access the network card to be tested to call the test system, and collect component stress test data of multiple different components in the network card to be tested at preset time intervals; the component stress test data includes test data under multiple different load pressures.
[0150] (9) Based on the test data under different load pressures in the pressure test data of each component, the pressure of the corresponding component is analyzed to determine the component pressure test result of each component.
[0151] (10) Based on the stress test results of each component and the test data of the network card under test under different load pressures, determine the preliminary stability test results of the network card under test under different load pressures.
[0152] (11) Based on the preliminary stability test results, determine the stability test results of the network card to be tested.
[0153] The execution process of the above (1) to (11) can be specifically referred to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0154] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0155] Based on the same inventive concept, the embodiment of the present application also provides a network card testing device for implementing the network card testing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more network card testing device embodiments provided below can refer to the limitations of the network card testing method above, and will not be repeated here.
[0156] In one embodiment, Figure 6 This is a schematic diagram of the structure of a network card testing device in an embodiment of the present application. The network card testing device provided in the embodiment of the present application can be applied to a server. Figure 6 As shown, the network card testing device of the embodiment of the present application may include: a control module 11 and a determination module 12, wherein:
[0157] The control module 11 is used to respond to the test instruction of the network card to be tested, control the network card to be tested to be in a preset processing mode, and collect component stress test data of multiple different components in the network card to be tested; in the processing mode, multiple different components are in operation;
[0158] The determination module 12 is used to determine the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested.
[0159] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0160] In one embodiment, the control module 11 includes: an acquisition unit, a determination unit and a mode adjustment unit, wherein:
[0161] An acquisition unit, used to acquire the current functional mode of the network card to be tested;
[0162] A determination unit, used for determining that the network card to be tested is in the processing mode when the functional mode is the processing mode;
[0163] The mode adjustment unit is used to adjust the functional mode of the network card to be tested from the network card mode to the processing mode when the functional mode is the network card mode.
[0164] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0165] In one embodiment, the acquisition unit includes: a first determination subunit, an acquisition subunit, and a second determination subunit, wherein:
[0166] The first determination subunit is used to determine the link operation status of each network port according to the link information of each network port in the network card to be tested in the connected state;
[0167] The acquisition subunit is used to acquire the functional mode identifier of the network card to be tested when the operation status of each link is stable;
[0168] The second determining subunit is used to determine the current functional mode of the network card to be tested according to the functional mode identifier.
[0169] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0170] In one embodiment, the first determining subunit is specifically configured to:
[0171] For any network port, if the link information of the network port in the connected state meets the preset link stability condition, the link operation state of the network port is determined to be a stable state;
[0172] If the link information of the network port in the connected state does not meet the link stability condition, it is determined that the link operation state of the network port is in an unstable state.
[0173] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0174] In one embodiment, the network card testing device further includes: an address acquisition module and a login module, wherein:
[0175] An address acquisition module, used to obtain the Internet Protocol IP address of the network card to be tested;
[0176] The login module is used to log in to the network card to be tested according to the IP address of the network card to be tested, and access the network card to be tested to call the test system, and collect component stress test data of each component at preset time intervals.
[0177] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0178] In one embodiment, the plurality of different components include a data processing unit, a memory, a storage and a network port; the control module 11 includes: a collection unit, wherein:
[0179] The acquisition unit is used to acquire the stress test data of the data processing unit in the network card to be tested, the stress test data of the memory, the stress test data of the storage and the stress test data of each network port.
[0180] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0181] In one embodiment, both the component stress test data and the network card stress test data include test data under multiple different load pressures; the determination module 12 is specifically used to:
[0182] According to the test data under different load pressures in the pressure test data of each component, the pressure of the corresponding component is analyzed to determine the component pressure test result of each component;
[0183] Determine preliminary stability test results of the network card to be tested under different load pressures based on the stress test results of each component and the test data under different load pressures in the network card stress test data;
[0184] According to each preliminary stability test result, the stability test result of the network card to be tested is determined.
[0185] The network card testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned network card testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0186] The specific definition of the network card testing device can be found in the definition of the network card testing method above, which will not be repeated here. Each module in the above network card testing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0187] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide processing power. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store component stress test data of multiple different components in the network card to be tested and network card stress test data of the network card to be tested. The network interface of the computer device is used to communicate with an external endpoint through a network connection. When the computer program is executed by the processor, a network card testing method is implemented.
[0188] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0189] In one embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the technical solution in the above-mentioned network card testing method embodiment of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0190] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the technical solution of the above-mentioned network card testing method of the present application is implemented. Its implementation principle and technical effect are similar and will not be repeated here.
[0191] In one embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the technical solution of the above-mentioned network card testing method of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0192] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0193] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0194] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A network card testing method, characterized in that: The method comprises: In response to a test instruction of the network card to be tested, determining the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state; When the operation status of each link is a stable state, obtaining a function mode identifier of the network card to be tested, and determining a current function mode of the network card to be tested according to the function mode identifier; According to the functional mode, the network card to be tested is controlled to be in a preset processing mode, and component stress test data of multiple different components in the network card to be tested are collected; the collecting component stress test data of multiple different components in the network card to be tested includes: the multiple different components include a data processing unit, a memory, a storage and multiple network ports; the multiple different components are all in a running state in the preset processing mode; The stability test result of the network card to be tested is determined according to the stress test data of each component and the network card stress test data of the network card to be tested.
2. The method according to claim 1, characterized in that The controlling the network card to be tested to be in a preset processing mode according to the functional mode includes: If the functional mode is the preset processing mode, determining that the network card to be tested is in the preset processing mode; If the functional mode is the network card mode, the functional mode of the network card to be tested is adjusted from the network card mode to the preset processing mode.
3. The method according to claim 1, characterized in that The step of determining the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state includes: For any network port, if the link information of the network port in a connected state meets a preset link stability condition, then the link operation state of the network port is determined to be a stable state; If the link information of the network port in the connected state does not meet the link stability condition, it is determined that the link operation state of the network port is an unstable state.
4. The method according to claim 1, characterized in that: Before determining the link operation status of each network port in the network card to be tested according to the link information of each network port in the connected state, the method further includes: Identifying each network port in the network card to be tested; If the network ports are identified, it is determined that the network ports are all in a connected state.
5. The method according to any one of claims 1 to 4, characterized in that Before collecting component stress test data of a plurality of different components in the network card to be tested, the method further includes: Obtaining the Internet Protocol IP address of the network card to be tested; According to the Internet Protocol IP address of the network card to be tested, the network card to be tested is logged in, and the network card to be tested is accessed to call a test system, and component stress test data of the multiple different components are respectively collected at preset time intervals.
6. The method according to any one of claims 1 to 4, characterized in that The component stress test data and the network card stress test data both include test data under multiple different load pressures; Determining the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested includes: Analyze the pressure of the corresponding component according to the test data under different load pressures in the component pressure test data to determine the component pressure test result of each component; Determine preliminary stability test results of the network card to be tested under different load pressures according to the stress test results of each component and the test data under different load pressures in the network card stress test data; According to each of the preliminary stability test results, the stability test result of the network card to be tested is determined.
7. A network card testing device, characterized in that: The device comprises: A control module, for responding to a test instruction of a network card to be tested, determining the link operation state of each network port in the network card to be tested according to the link information of each network port in a connected state, obtaining a function mode identifier of the network card to be tested when all the link operation states are in a stable state, determining the current function mode of the network card to be tested according to the function mode identifier, controlling the network card to be tested to be in a preset processing mode according to the function mode, and collecting component stress test data of multiple different components in the network card to be tested; the multiple different components are all in a running state in the preset processing mode; the multiple different components include a data processing unit, a memory, a storage and multiple network ports; A determination module, used to determine the stability test result of the network card to be tested according to the stress test data of each component and the network card stress test data of the network card to be tested; Wherein, the control module comprises: The collection unit is used to collect the stress test data of the data processing unit in the network card to be tested, the stress test data of the memory, the stress test data of the storage and the stress test data of each network port.
8. The device according to claim 7, characterized in that The control module also includes: A determination unit, configured to determine that the network card to be tested is in the preset processing mode when the functional mode is the preset processing mode; The mode adjustment unit is used to adjust the function mode of the network card to be tested from the network card mode to the preset processing mode when it is determined that the network card to be tested is in the preset processing mode.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Server pressure testing method and device
CN110413462A
DPU network card TCP protocol stack memory leak detection method, apparatus and device, and storage medium
CN117478547A