A USB network card reliability testing method, system and storage medium
Through the USB network card reliability test method, the test problems caused by PCIE slot occupation are solved, the USB network card reliability test is provided, the test efficiency and accuracy are improved, and the maximum use of resources is ensured.
Patent Information
- Application Number
- CN202310172138.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-02-27
AI Technical Summary
In server testing, the occupation of PCIE slots leads to inaccurate test results and waste of resources. At the same time, the existing technology lacks USB network card reliability testing methods, which affects test efficiency and accuracy.
Provides a USB network card reliability testing method, including configuring the test environment, installing the operating system and testing tools, and conducting basic information check, hot plug test, stress test, performance test and stability test to ensure the reliability of the USB network card.
Through the USB network card reliability testing method, the testing efficiency is improved, the occupation of server resources is reduced, and the accuracy of the test results is ensured and the resource utilization of other components is maximized.
Smart Images

Figure CN116192715B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of network card testing, and in particular relates to a USB network card reliability testing method, system and storage medium. Background Art
[0002] It is essential to access the network environment when testing the server. The most commonly used network card for accessing the network is generally the PCIE network card. Different types of network cards need to be selected according to different projects during testing. Different network cards have different interface types, which requires different switches and optical modules. Network cards with different speeds need to use different switches, which will increase the testing cost. Due to the particularity of the configuration, a lot of time is required to build the test environment, resulting in reduced testing efficiency. In addition, if the PCIE network card is only used to access the network for interaction, there will be a waste of resources.
[0003] Since accessing the network environment during normal testing requires occupying a PCIE slot, which is generally used to obtain the operating system IP, this results in the inability to perform the network card maximum performance and stress test during the network card performance and stress test, that is, because there is always one less PCIE slot, it is impossible to perform the test when the network card is fully configured. At this time, if the server model has more PCIE slots, the performance stress data of the final test may not be much different from the actual full configuration test results, but if it is for a server model with fewer PCIE slots, the performance stress data results of the final test will be quite different from the actual full configuration test results, and have no reference value. And it is not just for network card testing. From a macro perspective, the entire PCIE link, such as memory, NVME, PCIE SSD, etc., if only to access the network to occupy a slot, it will inevitably allocate some unnecessary resources, resulting in the performance of memory, NVME, etc. cannot reach the best.
[0004] Using a USB network card to access the network during server testing can effectively avoid occupying the PCIE slot, but the USB network card needs to be reliable and stable. There is no method for USB network card reliability testing in the prior art.
[0005] This is a shortcoming of the prior art. Therefore, it is very necessary to provide a USB network card reliability testing method, system and storage medium to address the above defects in the prior art. Summary of the invention
[0006] In view of the problem in the prior art that the server accesses the network through the PCIE slot during the test, which occupies PCIE network card resources, resulting in inaccurate test results and waste of resources, and the defect that the USB network card is lacking in the USB network card testing method, the present invention provides a USB network card reliability testing method, system and storage medium to solve the above technical problems.
[0007] In a first aspect, the present invention provides a USB network card reliability testing method, comprising the following steps:
[0008] S 1. Configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system;
[0009] S 2. Start the server, use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standards.
[0010] Furthermore, the specific steps of step S1 are as follows:
[0011] S 11. Prepare two servers and install the appropriate version of Linux operating system on both servers;
[0012] S 12. Connect all USB interfaces of each server to the USB network card to be tested;
[0013] S 13. Install a network performance test tool, a network performance measurement tool, and a stability test tool in the server Linux operating system.
[0014] Furthermore, the specific steps of step S2 are as follows:
[0015] S 21. Start the two servers and enter the Linux operating system;
[0016] S 22. Check whether the network card information and quantity in the configuration information of each server are consistent with the actual USB network card to be tested, and restart the server to repeat the check according to the set number of checks;
[0017] S 23. Select a USB network card from each of the two servers and configure an IP address for the network port of the selected USB network card. Check whether the ping is successful when the two network ports are connected and both USB network cards are in place, and whether the ping is unsuccessful when the two network ports are disconnected or the two USB network cards are not in place.
[0018] S 24. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, and configure the two network ports in each group to have the same network segment, while the IP network segments of different groups of network ports are different, connect the two network ports in each group in sequence, and specify the server and the client in the two servers. On the server that serves as the server, use the stress tester to perform a stress test on the network ports in the same group of the server that corresponds to the client in parallel for each network port, and check whether there is any abnormality in the stress test;
[0019] S 25. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, configure the two network ports in each group to have the same network segment, and the IP network segments of different groups of network ports are different, connect the two network ports in each group in sequence, and specify the server and the client in the two servers, and use the performance testing tool to perform performance testing on the same group of network ports of the server corresponding to the client for each network port in parallel on the server serving as the server, and check whether there is any abnormality in the performance test;
[0020] S 26. Connect each USB interface of the two servers to the USB network card to be tested, use the stability test tool to perform a set number of restarts on each server, and check whether any USB network card related errors occur during the restart process.
[0021] Furthermore, the specific steps of step S22 are as follows:
[0022] S 221. Use the ifconfig –a command on each server to view the network card device, number of network cards, and MAC address of the network card in the configuration information, and verify whether the number of USB network cards to be tested is consistent with the actual number installed and the information matches;
[0023] S 222. Use the ethtool command to view the network card information of each server and verify whether the corresponding information is displayed correctly;
[0024] S 223. Restart the server and determine whether the number of restarts reaches the set number;
[0025] If yes, go to step S223;
[0026] If not, return to step S221;
[0027] S 224. Verify whether the USB network card information to be tested can be recognized each time the operating system is entered after restart, and whether each USB network card can recognize the corresponding USB network card information to be tested.
[0028] Furthermore, the specific steps of step S23 are as follows:
[0029] S 231. Select a USB network card from each of the two servers, and configure an IP address in the same network segment for the network port of the selected USB network card;
[0030] S 232. Connect the network ports of the two servers with IP addresses configured via network cables;
[0031] S 233. Set a server to use the ping command to ping another server according to the configured IP address, and check whether the ping is successful and whether the rate is stable when the ping is successful;
[0032] S 234. Unplug the network cable at either end of the two servers, set one server to use the ping command to ping the other server according to the configured IP address, and check whether the ping is successful and whether the rate is stable when the ping is successful;
[0033] S 235. After waiting for the set time period, plug the unplugged network cable back into the original server;
[0034] S 236. Unplug the network card of either end of the two servers, set one server to use the ping command to ping the other server according to the configured IP address, and check whether it can ping successfully and whether the rate is stable when ping successfully;
[0035] S 237. Determine whether the number of tests reaches the hot plug threshold;
[0036] If yes, go to step S24;
[0037] If not, return to step S233.
[0038] Furthermore, the specific steps of step S24 are as follows:
[0039] S 241. Divide each network port in the two servers into one-to-one corresponding network port groups, where the network ports in the network port groups are located in different servers;
[0040] S 242. Configure an IP address for each network port of a server, and set the IP address of each network port of the server in a different network segment;
[0041] S 243. Configure an IP address for each network port of another server, set the IP address of each network port of the server in a different network segment, and set the network ports of the same network port group in the same network segment;
[0042] S 244. Use a cable with the highest rate supported by the chip of the USB network card to be tested to connect the two network ports of each network port group;
[0043] S 245. Designate one of the two servers as the server and the other as the client;
[0044] S 246. Execute an iperf command once on the server as the server end, write data to the client server according to the set data block size, and test each group of network ports at the same time;
[0045] S 247. Execute an i perf command once on each network port of the server serving as the client, and each network port writes data to the server network port of the network port group in parallel according to the set data block size, the agreed time interval, the set total transmission time, and the set number of threads;
[0046] S 248. Check whether the i perf network stress test generates no abnormalities, whether the operating system log meets the inspection standards, and whether the system log is normal without any errors.
[0047] Furthermore, the specific steps of step S24 are as follows:
[0048] S 251. Divide each network port in the two servers into one-to-one corresponding network port groups, where the network ports in the network port groups are located in different servers;
[0049] S 252. Configure IP addresses for each network port of a server, and set the IP addresses of each network port of the server in different network segments;
[0050] S 253. Configure an IP address for each network port of another server, set the IP address of each network port of the server in a different network segment, and set the network ports of the same network port group in the same network segment;
[0051] S 254. Use a cable with the highest rate supported by the chip of the USB network card to be tested to connect the two network ports of each network port group;
[0052] S 255. Designate one of the two servers as the server and the other as the client;
[0053] S 256. Execute the net server command once on the server as the server, and test each group of network ports at the same time;
[0054] S 257. Execute a netperf command once on each network port of the server serving as the client, and each network port writes data to the server network port of the same network port group in parallel according to the agreed test time and the agreed test group data size;
[0055] S 258. Check whether the netperf network performance test produces no abnormalities, whether the operating system log meets the inspection standards, and whether the system log is normal and has no errors.
[0056] Furthermore, the specific steps of step S26 are as follows:
[0057] S 261. Connect each USB interface of the two servers to the USB network card to be tested, and connect each network port to the network;
[0058] S 262. Use the stability testing tool to restart each server according to the set number of times;
[0059] S 263. Check whether there is any downtime during the restart process, whether there are any USB network card related errors in the system log after the test, and whether the USB network card speed is stable.
[0060] In a second aspect, the present invention provides a USB network card reliability testing system, comprising:
[0061] The test environment configuration module is used to configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system;
[0062] The USB network card test module is used to start the server and use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standards.
[0063] In a third aspect, the present invention provides a storage medium.
[0064] The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.
[0065] The beneficial effects of the present invention are:
[0066] The USB network card reliability test method, system and storage medium provided by the present invention realize the reliability and stability test of the USB network card, ensure the improvement of subsequent test efficiency, reduce the test cost, and reduce the occupation of server resources, thereby ensuring the maximization of resources for testing other components such as PCIE slots.
[0067] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.
[0068] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] 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 will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0070] Figure 1 It is a flow chart of Example 1 of the USB network card reliability testing method of the present invention.
[0071] Figure 2 It is a flow chart of Embodiment 2 of the USB network card reliability testing method of the present invention.
[0072] Figure 3 It is a schematic diagram of a USB network card reliability testing system of the present invention. DETAILED DESCRIPTION
[0073] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0074] Embodiment 1:
[0075] like Figure 1 As shown, the present invention provides a USB network card reliability testing method, comprising the following steps:
[0076] S 1. Configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system;
[0077] S 2. Start the server, use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standards.
[0078] Embodiment 2:
[0079] like Figure 2 As shown, the present invention provides a USB network card reliability testing method, comprising the following steps:
[0080] S 1. Configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system; the specific steps of step S1 are as follows:
[0081] S 11. Prepare two servers and install the appropriate version of Linux operating system on both servers;
[0082] S 12. Connect all USB interfaces of each server to the USB network card to be tested;
[0083] S 13. Installing a network performance test tool, a network performance measurement tool, and a stability test tool in the server Linux operating system;
[0084] S 2. Start the server, use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standard; the specific steps of step S 2 are as follows:
[0085] S 21. Start the two servers and enter the Linux operating system;
[0086] S 22. Check whether the network card information and quantity in the configuration information of each server are consistent with the actual USB network card to be tested, and restart the server to repeat the check according to the set number of checks;
[0087] S 23. Select a USB network card from each of the two servers and configure an IP address for the network port of the selected USB network card. Check whether the ping is successful when the two network ports are connected and both USB network cards are in place, and whether the ping is unsuccessful when the two network ports are disconnected or the two USB network cards are not in place.
[0088] S 24. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, and configure the two network ports in each group to have the same network segment, while the IP network segments of different groups of network ports are different, connect the two network ports in each group in sequence, and specify the server and the client in the two servers. On the server that serves as the server, use the stress tester to perform a stress test on the network ports in the same group of the server that corresponds to the client in parallel for each network port, and check whether there is any abnormality in the stress test;
[0089] S 25. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, configure the two network ports in each group to have the same network segment, and the IP network segments of different groups of network ports are different, connect the two network ports in each group in sequence, and specify the server and the client in the two servers, and use the performance testing tool to perform performance testing on the same group of network ports of the server corresponding to the client for each network port in parallel on the server serving as the server, and check whether there is any abnormality in the performance test;
[0090] S 26. Connect each USB interface of the two servers to the USB network card to be tested, use the stability test tool to perform a set number of restarts on each server, and check whether any USB network card related errors occur during the restart process.
[0091] Embodiment 3:
[0092] like Figure 2 As shown, the present invention provides a USB network card reliability testing method, comprising the following steps:
[0093] S 1. Configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system; the specific steps of step S1 are as follows:
[0094] S 11. Prepare two servers and install the appropriate version of Linux operating system on both servers;
[0095] S 12. Connect all USB interfaces of each server to the USB network card to be tested;
[0096] S 13. Installing a network performance test tool, a network performance measurement tool, and a stability test tool in the server Linux operating system;
[0097] S 2. Start the server, use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standard; the specific steps of step S 2 are as follows:
[0098] S 21. Start the two servers and enter the Linux operating system;
[0099] S22. Check whether the network card information and quantity in each server configuration information are consistent with the actual USB network card to be tested, and restart the server to repeat the check according to the set number of checks; the specific steps of step S22 are as follows:
[0100] S 221. Use the ifconfig –a command on each server to view the network card device, number of network cards, and MAC address of the network card in the configuration information, and verify whether the number of USB network cards to be tested is consistent with the actual number installed and the information matches;
[0101] S 222. Use the ethtool command to view the network card information of each server and verify whether the corresponding information is displayed correctly;
[0102] S 223. Restart the server and determine whether the number of restarts reaches a set number, such as 5 times;
[0103] If yes, go to step S223;
[0104] If not, return to step S221;
[0105] S 224. Verify whether the USB network card information to be tested can be recognized each time the operating system is entered after restart, and whether the network card of each USB network card can recognize the corresponding USB network card information to be tested;
[0106] S23. Select a USB network card from each of the two servers, and configure an IP address for the network port of the selected USB network card, and check whether the ping is successful when the two network ports are connected and both USB network cards are in place, and whether the ping is unsuccessful when the two network ports are disconnected or the two USB network cards are not in place; the specific steps of step S23 are as follows:
[0107] S 231. Select a USB network card from each of the two servers, and configure an IP address in the same network segment for the network port of the selected USB network card;
[0108] S 232. Connect the network ports of the two servers with IP addresses configured via network cables;
[0109] S 233. Set a server to use the ping command to ping another server according to the configured IP address, and check whether the ping is successful and whether the rate is stable when the ping is successful;
[0110] S 234. Unplug the network cable at either end of the two servers, set one server to use the ping command to ping the other server according to the configured IP address, and check whether the ping is successful and whether the rate is stable when the ping is successful;
[0111] S 235. After waiting for a set period of time, for example, 20 seconds, the unplugged network cable is plugged back into the original server;
[0112] S 236. Unplug the network card of either end of the two servers, set one server to use the ping command to ping the other server according to the configured IP address, and check whether it can ping successfully and whether the rate is stable when ping successfully;
[0113] S 237. Determine whether the number of tests reaches a hot plug threshold, for example, 10 times;
[0114] If yes, go to step S24;
[0115] If not, return to step S233;
[0116] S 24. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, and configure the two network ports in each group to be in the same network segment, while the IP network segments of different groups of network ports are different, connect the two network ports in each group in sequence, and specify the server and the client in the two servers, and use the stress tester to perform stress testing on the same group of network ports of the server corresponding to the client for each network port in parallel on the server as the server, and check whether there is any abnormality in the stress test; the specific steps of step S24 are as follows:
[0117] S 241. Divide each network port in the two servers into one-to-one corresponding network port groups, where the network ports in the network port groups are located in different servers;
[0118] S 242. Configure an IP address for each network port of a server, and set the IP address of each network port of the server in a different network segment;
[0119] S 243. Configure an IP address for each network port of another server, set the IP address of each network port of the server in a different network segment, and set the network ports of the same network port group in the same network segment;
[0120] S 244. Use a cable with the highest rate supported by the chip of the USB network card to be tested to connect the two network ports of each network port group;
[0121] S 245. Designate one of the two servers as the server and the other as the client;
[0122] S 246. Execute the iperf command iperf –s –w 512k on the server as the server end, write data to the client server in 512k data blocks, and test each group of network ports at the same time;
[0123] S 247. Execute the iperf command i perf-c1.1.1.1-w 512k-i 2-t 43200–P 2 once on each network port of the server that serves as the client, and each network port writes data to the server network port with the IP address of 1.1.1.1 of the network port group in parallel according to 512k, a time interval of 2s, a total transmission time of 43200s, and 2 threads;
[0124] S 248. Check whether the i perf network stress test generates no abnormalities, whether the operating system log meets the inspection standards, and whether the system log is normal without errors;
[0125] S 25. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, configure the two network ports in each group to be in the same network segment, and the IP network segments of different groups of network ports are different, connect the two network ports in each group in sequence, and specify the server and the client in the two servers, and use the performance testing tool to perform performance testing on the same group of network ports of the server corresponding to the client for each network port in parallel on the server as the server, and check whether there is any abnormality in the performance test; the specific steps of step S25 are as follows:
[0126] S 251. Divide each network port in the two servers into one-to-one corresponding network port groups, where the network ports in the network port groups are located in different servers;
[0127] S 252. Configure IP addresses for each network port of a server, and set the IP addresses of each network port of the server in different network segments;
[0128] S 253. Configure an IP address for each network port of another server, set the IP address of each network port of the server in a different network segment, and set the network ports of the same network port group in the same network segment;
[0129] S 254. Use a cable with the highest rate supported by the chip of the USB network card to be tested to connect the two network ports of each network port group;
[0130] S 255. Designate one of the two servers as the server and the other as the client;
[0131] S 256. Execute the net server command once on the server as the server, and test each group of network ports at the same time;
[0132] S 257. Execute the netperf command netperf-H1.1.1.1-l 1800---m 64k once on each network port of the server that serves as the client, and each network port writes data to the server network port with the same network port group IP address of 1.1.1.1 in parallel according to the time of 1800s and the test group data size of 64k;
[0133] S 258. Check whether the netperf network performance test produces no abnormalities, whether the operating system log meets the inspection standards, and whether the system log is normal without errors;
[0134] S 26. Connect each USB interface of the two servers to the USB network card to be tested, use the stability test tool to perform a set number of restarts on each server, and check whether any USB network card related errors occur during the restart process; the specific steps of step S 26 are as follows:
[0135] S 261. Connect each USB interface of the two servers to the USB network card to be tested, and connect each network port to the network;
[0136] S 262. Use the stability test tool to restart each server a set number of times, such as 200 times;
[0137] S 263. Check whether there is any downtime during the restart process, whether there are any USB network card related errors in the system log after the test, and whether the USB network card speed is stable.
[0138] Embodiment 4:
[0139] like Figure 3 As shown, the present invention provides a USB network card reliability testing system, characterized in that it includes:
[0140] The test environment configuration module is used to configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system;
[0141] The USB network card test module is used to start the server and use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standards.
[0142] Embodiment 5:
[0143] The present invention provides a storage medium, wherein instructions are stored in the storage medium, and when the storage medium is run on a computer, the computer executes the method described in any one of Embodiment 1, Embodiment 2, or Embodiment 3.
[0144] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A USB network card reliability testing method, characterized in that: The steps include: S1. Configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system; the specific steps of step S1 are as follows: S11. Prepare two servers and install the appropriate version of the Linux operating system on both servers; S12. Connect all USB interfaces of each server to the USB network card to be tested; S13. Install network performance testing tools, network performance measurement tools and stability testing tools in the server Linux operating system; S2. Start the server and use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standard; the specific steps of step S2 are as follows: S21. Start the two servers and enter the Linux operating system; S22. Check whether the network card information and quantity in each server configuration information are consistent with the actual USB network card to be tested, and restart the server to repeat the check according to the set number of checks; the specific steps of step S22 are as follows: S221. Use the ifconfig -a command on each server to view the network card device, number of network cards, and MAC address of the network card in the configuration information, and verify whether the number of USB network cards to be tested is consistent with the actual number installed and the information matches; S222. Use the ethtool command to view the network card information of each server and verify whether the corresponding information is displayed correctly; S223. Restart the server and determine whether the number of restarts reaches the set number; If yes, go to step S223; If not, return to step S221; S224. Verify whether the USB network card information to be tested can be recognized each time the operating system is entered after restart, and whether each USB network card can recognize the corresponding USB network card information to be tested; S23. Select a USB network card from each of the two servers, and configure an IP address for the network port of the selected USB network card, check whether it can be pinged when the two network ports are connected and both USB network cards are in place, and whether it cannot be pinged when the two network ports are disconnected or the two USB network cards are not in place; the specific steps of step S23 are as follows: S231. Select a USB network card in each of the two servers, and configure an IP address in the same network segment for the network port of the selected USB network card; S232. Connect the network ports of the two servers with IP addresses configured via network cables; S233. Set a server to use the ping command to ping another server according to the configured IP address, and check whether it can be pinged, and whether the rate is stable when pinged; S234. Unplug the network cable at either end of the two servers, set one server to use the ping command to ping the other server according to the configured IP address, and check whether it can be pinged and whether the rate is stable when pinged; S235. After waiting for the set time period, plug the unplugged network cable back into the original server; S236. Unplug the network card of either end of the two servers, set one server to use the ping command to ping the other server according to the configured IP address, and check whether it can be pinged and whether the rate is stable when pinged; S237. Determine whether the number of tests reaches the hot plug threshold; If yes, go to step S24; If not, return to step S233; S24. Configure the network ports in the two servers to correspond one to one, configure the two corresponding network ports as a group, and configure the two network ports of each group to be in the same network segment, while the IP network segments of different groups of network ports are different, connect the two network ports of each group in turn, and specify the server and the client in the two servers. In parallel, the server as the server performs a stress test for each network port to the same group of network ports of the server corresponding to the client using a stress tester to check whether there is any abnormality in the stress test; the specific steps of step S24 are as follows: S241. Divide each network port in the two servers into one-to-one corresponding network port groups, where the network ports in the network port groups are located on different servers; S242. Configure IP addresses for each network port of a server, and set the IP addresses of each network port of the server in different network segments; S243 configures IP addresses for each network port of another server, sets the IP addresses of each network port of the server in different network segments, and sets the network ports of the same network port group in the same network segment; S244. Connect the two network ports of each network port group using a cable with the highest rate supported by the chip of the USB network card to be tested; S245. designate one of the two servers as a server and the other as a client; S246. Execute an iperf command on the server as the server end, write data to the client server according to the set data block size, and test each group of network ports at the same time; S247. Execute an iperf command once on each network port of the server as a client, and each network port writes data to the server network port of the network port group in parallel according to the set data block size, agreed time interval, set total transmission time and set number of threads; S248. Check whether the iperf network stress test produces no abnormalities, whether the operating system log meets the inspection standards, and whether the system log is normal without errors; S25. Configure the network ports in the two servers to correspond to each other one by one, configure the two corresponding network ports as a group, configure the two network ports of each group to be in the same network segment, and the IP network segments of different groups of network ports are different, connect the two network ports of each group in turn, and specify the server and the client in the two servers. The server as the server performs a performance test for each network port in parallel to the same group of network ports of the server corresponding to the client using a performance test tool to check whether there is any abnormality in the performance test; the specific steps of step S25 are as follows: S251. Divide each network port in the two servers into one-to-one corresponding network port groups, where the network ports in the network port groups are located on different servers; S252. Configure IP addresses for each network port of a server, and set the IP addresses of each network port of the server in different network segments; S253 configures IP addresses for each network port of another server, sets the IP addresses of each network port of the server in different network segments, and sets the network ports of the same network port group in the same network segment; S254. Connect the two network ports of each network port group using a cable with the highest rate supported by the chip of the USB network card to be tested; S255. designate one of the two servers as the server and the other as the client; S256. Execute the netserver command once on the server serving as the server, and test each group of network ports simultaneously; S257. Execute a netperf command once on each network port of the server as a client, and each network port writes data to the server network port of the same network port group in parallel according to the agreed test time and the agreed test group data size; S258. Check whether the netperf network performance test produces no abnormalities, whether the operating system log meets the inspection standards, and whether the system log is normal without errors; S26. Connect each USB interface of the two servers to the USB network card to be tested, use the stability test tool to perform a set number of restarts on each server, and check whether the USB network card related errors occur during the restart process; the specific steps of step S26 are as follows: S261. Configure each USB interface of the two servers to be connected to the USB network card to be tested, and connect each network port to the network; S262. Use the stability test tool to restart each server according to the set number of times; S263. Check whether there is a crash during the restart process, whether there are USB network card related errors in the system log after the test, and whether the USB network card speed is stable.
2. A USB network card reliability testing system is used to implement the method of claim 1, characterized in that: include: The test environment configuration module is used to configure the test environment, prepare the server and connect the USB network card to be tested to the server, install the operating system and install the test tool in the operating system; The USB network card test module is used to start the server and use the test tool to perform basic information check test, hot plug test, stress test, performance test and stability test on the USB network card, collect the test results and check whether the USB network card reliability test passes according to the preset standards.
3. A storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to claim 1.
