CN111786855B - Network card pressure testing method and device, electronic equipment and storage medium - Google Patents

Network card pressure testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111786855B
CN111786855B CN202010625572.4A CN202010625572A CN111786855B CN 111786855 B CN111786855 B CN 111786855B CN 202010625572 A CN202010625572 A CN 202010625572A CN 111786855 B CN111786855 B CN 111786855B
Authority
CN
China
Prior art keywords
tested
network
test
determining
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010625572.4A
Other languages
Chinese (zh)
Other versions
CN111786855A (en
Inventor
赵亚飞
付卿峰
秦晓宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Sugon Information Industry Chengdu Co ltd
Dawning Information Industry Beijing Co Ltd
Original Assignee
Zhongke Sugon Information Industry Chengdu Co ltd
Dawning Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongke Sugon Information Industry Chengdu Co ltd, Dawning Information Industry Beijing Co Ltd filed Critical Zhongke Sugon Information Industry Chengdu Co ltd
Priority to CN202010625572.4A priority Critical patent/CN111786855B/en
Publication of CN111786855A publication Critical patent/CN111786855A/en
Application granted granted Critical
Publication of CN111786855B publication Critical patent/CN111786855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a network card pressure testing method and device, electronic equipment and a storage medium. The method comprises the following steps: determining that a network card and a driver of a tested device are respectively designated versions; acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system; determining a network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested; detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed; and automatically configuring the IP address of the network port to be tested and starting the test. The embodiment of the application automatically configures parameters required during testing, automatically selects the network port to be tested, automatically tests the network port to be tested, does not need manual testing, and improves the testing efficiency.

Description

Network card pressure testing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a method and an apparatus for testing a network card pressure, an electronic device, and a storage medium.
Background
The network card is an indispensable basic device in a computer network and can influence the normal operation of the whole network, so the pressure test for testing the stability of the network card is one of the main test items in the current computer network hardware diagnosis, the test process is to connect two or more network ports to the same switch, mutually transmit data at the rate close to the theoretical bandwidth of the network port for a long time, check the stability and the connection state of the operation of the network port during the period, if the network port can stably operate at the rate close to the theoretical bandwidth for a long time during the period, the function of the network card is qualified, otherwise, the network card is not qualified.
The network interface pressure test software has various types, the network card pressure test environment is built, the test results are continuously checked under most conditions, the network card pressure test environment is also manually built step by step and intermittently checked, and the test efficiency is low.
Disclosure of Invention
An embodiment of the present application aims to provide a method and an apparatus for testing a network card, an electronic device, and a storage medium, so as to solve the problem of low testing efficiency in the prior art.
In a first aspect, an embodiment of the present application provides a method for testing a network card, including: determining that a network card and a driver of a tested device are respectively designated versions; acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system; determining a network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested; detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed; and automatically configuring the IP address of the network port to be tested and starting the test.
According to the embodiment of the application, parameters required during testing are automatically configured, the network ports to be tested are automatically selected, the network ports to be tested are automatically tested, manual testing is not needed, and testing efficiency is improved.
Further, after initiating the test, the method further comprises: and capturing a log file generated in the test process, and storing the log file to a specified path. So that the later period tester can analyze the log file generated during the test.
Further, after the log file generated in the test process is grabbed, the method further comprises the following steps: and extracting the keywords in the log file, and obtaining a test result according to the keywords. According to the embodiment of the application, the keywords in the log file are automatically extracted, the test result is given according to the keywords, the test result does not need to be judged manually, and the labor cost is saved.
Further, after obtaining the test result according to the keyword, the method further comprises: and if the test result is failure, acquiring and outputting a corresponding failure reason and a corresponding maintenance suggestion according to the keyword. According to the embodiment of the application, the reason of the test failure and the maintenance suggestion are automatically given by using the keywords, so that the possibility of manual participation is reduced, and the labor cost is saved.
Further, after obtaining the test result according to the keyword, the method further comprises: if the test result is successful, outputting a prompt of successful test, and quitting the test.
Further, the configuring the preset parameter corresponding to the operating system includes: closing a firewall of the operating system, closing an exchange partition related to the operating system, closing terminal balance service, closing CPU frequency adjustment service, and adding a parameter for closing the cstate in a kernel of the operating system. The preset parameters of the operating system are configured, so that the operating system meets the requirement of a network card test on the environment.
Further, the determining the network interface to be tested of the network card includes: and acquiring all network ports corresponding to the network card, and determining the network ports to be tested from all the network ports according to preset conditions. Because a network card comprises a plurality of network ports, the network port to be tested can be selected from the plurality of network ports, and the test is more flexible.
Further, the method is based on IxChariot platform for testing.
In a second aspect, an embodiment of the present application provides a pressure testing apparatus for a network card, including: the version determining module is used for determining that the network card and the driver of the tested device are respectively the appointed versions; the parameter configuration module is used for acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system and configuring preset parameters corresponding to the operating system; the network interface determining module is used for determining a network interface to be tested of the network card and determining a configuration file corresponding to the network interface to be tested; the parameter determining module is used for detecting the speed of the network port to be tested and determining a parameter related to the size of the cache according to the speed; and the IP setting module is used for receiving the IP address of the network port to be tested input by the tester and starting the test.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a bus, wherein the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor being capable of performing the method of the first aspect when invoked by the program instructions.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, including: the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method of the first aspect.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a pressure testing method for a network card according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of another pressure testing method provided in the embodiments of the present application;
fig. 3 is a schematic structural diagram of a pressure testing apparatus provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In the existing network card production pressure test software, part of the network card production pressure test software selects LoadRunner, iperf, netperf and other test software, and by using the test software, on one hand, the pressure test of the network card hardly reaches a pressure level of 99% or above, so that the pressure of the network card cannot reach a pressure limit, and the working stability of the network card under the limit condition cannot be simulated; on the other hand, the multithreading test of software such as iperf and netperf is limited, and the condition that the pressure is lower when the number of pressure threads is larger can occur under certain conditions, so that the test effect of the multithreading pressure test method is unstable, and when the multithreading pressure test method is applied to a test environment, the unstable condition can bring more debugging time, so that the test time is prolonged, and the test cost is increased.
IxChariot software is a soft testing tool for application layer performance testing, introduced by IXIA, USA. IxChariot has gained wide acceptance in the field of application layer performance testing. IxChariot can evaluate the performance and capacity of network application, and perform pressure test on the network and equipment to obtain performance parameters such as throughput, time delay, packet loss, reaction time and the like of the equipment and the network under different applications and different parameters.
Therefore, in the embodiment of the present application, the pressure of the network card may be tested by using an ixchar test platform, and it should be noted that other test software may also be used for the test, which is not specifically limited in this embodiment of the present application.
Fig. 1 is a schematic flowchart of a pressure testing method for a network card according to an embodiment of the present application, where as shown in fig. 1, the method includes:
step 101: and determining that the network card and the driver of the tested device are respectively the appointed versions.
The device to be tested may be a computer, in which a driver of the network card and an operating system are installed, and the operating system may be a linux operating system, or a Windows operating system, etc. The network card is inserted on the device under test, and it is understood that the network card is a piece of computer hardware designed to allow a computer to communicate over a computer network. It belongs to layer 2 of the OSI model because it possesses a MAC address. It allows users to connect to each other by cable or wirelessly. Each network card has a unique 48-bit serial number, called the MAC address, which is written in a ROM on the card. Each computer on the network must have a unique MAC address.
Before testing, the device to be tested can automatically judge whether the Firmware of the network card and the version of the driver are the specified versions, and if not, the device to be tested can be refreshed to the specified versions. The specified version may be a version preset by a tester, and then it is determined whether the versions of the current firmware and the driver in the device under test are consistent with the specified version. If the versions are different, the versions can be obtained from the official website of the network card manufacturer.
Step 102: and acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system.
The device under test may also obtain the installed operating system, and the test software corresponding to different operating systems is different, for example: the linux operating system and the windows operating system are different in applicable test software, so that the test software matched with the linux operating system needs to be selected and installed according to the operating system.
And automatically configuring preset parameters in the operating system after the corresponding test software is installed. The preset parameters comprise a firewall for closing the operating system, an exchange swap partition related to the operating system, irqbalance for closing terminal balancing service, CPU frequency adjustment service cpulse closing and a parameter for adding and closing cstate in a kernel of the operating system. It can be understood that different test software may need to configure different parameters, and therefore, what parameters need to be configured may be set in the corresponding test software in advance, and after the corresponding test software is installed, the parameters are configured according to the execution program in the test software.
Step 103: and determining the network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested.
Because one network card includes a plurality of network ports, it may not be necessary to test all the network ports on the network card when testing the network ports, and therefore, before testing, it is necessary to determine the network ports to be tested from the network ports included in the network card. Therefore, of all the network ports corresponding to the network card, the network port used for performing the pressure test is called a network port to be tested. The way of selecting the net port to be tested may be: and judging which network ports in the network card meet preset conditions, and calling the network ports meeting the preset conditions as the network ports to be tested. For example: the preset conditions are as follows: and taking the network port with the network port rate of 10G as the network port to be tested, if one network card comprises 6 network ports, the network port rates of the first network port and the second network port are both 1G, the network port rates of the third network port and the fourth network port are both 10G, and the network port rates of the fifth network port and the sixth network port are both 25G, then the third network port and the fourth network port meet the preset conditions, and taking the third network port and the fourth network port as the network ports to be tested.
In addition, the network ports on the network card all have different serial numbers, which can be ranked from 0 to 5, namely eth0, eth1, … and eth 5. The preset conditions are assumed to be: the first 2 net ports are taken as the net ports to be tested, then eth0 and eth1 are the net ports to be tested.
After the network port to be tested is determined, whether the ifcfg-ethX configuration file of the network port to be tested is stored behind the tested device or not is judged, and if the configuration file does not exist, the corresponding configuration file is added. And automatically starting a Large package receiving and unloading (LRO) function of the network port to be tested.
Step 104: and detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed.
The speed of the network port to be tested is detected, and the optimal cache parameters used by the network ports to be tested with different speeds are different, so that after the network port to be tested is determined, parameters related to the cache size in a file corresponding to the/etc/syscfig/sysstat are modified according to the speed of the network port to be tested, and specifically, the parameters can be data receiving cache parameters and data sending cache parameters.
Step 105: and automatically configuring the IP address of the network port to be tested, and starting the test.
In a specific implementation process, when the network card is tested, a default IP address of the network port to be tested may be preset, and the default IP address may be directly used, or a corresponding IP address may be manually configured for each network port to be tested.
And starting the test after the configuration of each step is completed.
The embodiment of the application automatically configures parameters required during testing, automatically selects the network port to be tested, automatically tests the network port to be tested, does not need manual testing, and improves the testing efficiency.
On the basis of the above embodiment, after the test is started, the method further comprises:
and capturing a log file generated in the test process, and storing the log file to a specified path.
In a specific implementation process, during a process of performing a pressure test on the network port to be tested, a related log file is generated, the generated log file can be captured immediately during the test process, or the log file can be captured after the test is completed, and the captured log file is stored in a specified path. It should be noted that, when the log file is captured, a list may be listed in advance, and what logs are written in the list are required logs. And log files listed in the list are captured, so that the efficiency of analyzing the log files can be improved.
On the basis of the above embodiment, after the fetching the log file generated in the test process, the method further includes:
And extracting the keywords in the log file, and obtaining a test result according to the keywords.
In a specific implementation process, the captured contents of the log file are analyzed, and keywords in the japanese file are extracted, wherein the method for extracting the keywords may be to preset which keywords are related to the test result, and then match the keywords related to the test result with the contents of the log file, so as to determine the corresponding test result according to the keywords which are successfully matched. The keywords related to the test result may include error, fail, drop, missed, link down, pass, success, and the like. If any one of error, fail, drop, missed and link down is contained in the log file, the test is failed; if the log file contains related words such as pass or success, the test is successful, a successful test prompt can be output, and the test is quit.
In another embodiment, if the test fails, the failure reason and repair recommendations are determined based on matching keywords. It is understood that an analysis table may be preset, and the analysis table has a failure reason and a repair suggestion corresponding to the keyword for which the test failed. Therefore, after the matched keywords are obtained, the corresponding failure reason and the maintenance suggestion can be obtained from the analysis table, and the failure reason and the maintenance suggestion are displayed or sent to the specified terminal.
Fig. 2 is a schematic flow chart of another pressure testing method provided in the embodiment of the present application, and as shown in fig. 2, the method includes:
step 201: whether the Firmware version of the network card is a specified version; if yes, go to step 203; otherwise, go to step 202;
step 202: automatically refreshing the network card Firmware to a specified version; the information can be acquired from the official website corresponding to the network card;
step 203: whether the drive version of the network card is a designated version or not; if yes, go to step 205, otherwise go to step 204;
step 204: automatically refreshing the network card drive to a specified version;
step 205: automatically judging whether the version of the operating system is Redhat6.x or 7.x or Suse11.x or 12. x;
step 206: selecting and installing a proper Endpoint test software version;
step 207: closing a system firewall, closing a system swap partition, closing irqbalance and cpulse services, and adding a parameter for closing the cstate in an operating system kernel;
step 208: automatically grabbing all network ports under the system and judging which network ports are to-be-detected network ports according to preset conditions; taking the net mouth meeting the preset condition as a net mouth to be tested;
step 209: whether the ifcfg-ethX configuration file of the network port to be tested exists or not; if not, go to step 210; otherwise, go to step 211;
Step 210: adding an ifcfg-ethX configuration file of a network port to be tested;
step 211: starting an LRO function of the network port to be tested;
step 212: modifying a data receiving cache parameter and a data sending cache parameter in the/etc/sysconfig/sysstat according to the rate of the network port to be tested;
step 213: manually inputting an IP address of a network port to be tested; it will be appreciated that the default IP address may also be used directly;
step 214: automatically configuring IxChariot parameters and starting testing;
step 215: capturing all logs in a preset list and storing the logs in a specified position;
step 216: analyzing the log content;
step 217: whether the log has error, fail, link down and sritical keywords or not; if any of the above keywords exist, go to step 219; otherwise, go to step 218;
step 218: testing the Pass, outputting a test result, and quitting the test;
step 219: testing Fail and outputting a test result;
step 220: giving out possible reasons for testing Fail and providing maintenance suggestions according to preset rules; specifically, an analysis table may be preset, and the possible reasons for failure and the repair suggestions may be obtained from the analysis table by matching the successful keywords.
According to the embodiment of the application, whether the network card is in a healthy state or not can be judged through the pressure test of the network card, and the repetitive work of testers is reduced and the test efficiency is improved through the automatic test; furthermore, the fault cause can be rapidly positioned according to preset experience aiming at the fault in the test.
Fig. 3 is a schematic structural diagram of a pressure testing apparatus according to an embodiment of the present disclosure, where the apparatus may be a module, a program segment, or a code on an electronic device. It should be understood that the apparatus corresponds to the above-mentioned embodiment of the method of fig. 1, and can perform various steps related to the embodiment of the method of fig. 1, and the specific functions of the apparatus can be referred to the description above, and the detailed description is appropriately omitted here to avoid redundancy. The device includes: a version determining module 301, a parameter configuring module 302, an internet access determining module 303, a parameter determining module 304 and an IP setting module 305, wherein:
the version determination module 301 is configured to determine that a network card and a driver of the device under test are respectively designated versions; the parameter configuration module 302 is configured to obtain an operating system corresponding to the device under test, install corresponding test software according to the operating system, and configure preset parameters corresponding to the operating system; the network port determining module 303 is configured to determine a network port to be tested of the network card, and determine a configuration file corresponding to the network port to be tested; the parameter determining module 304 is configured to detect a rate of the network port to be tested, and determine a data receiving cache parameter and a data sending cache parameter according to the rate; the IP setting module 305 is used to automatically configure the IP address of the portal to be tested and start the test.
On the basis of the above embodiment, the apparatus further includes a log crawling module, configured to:
and capturing a log file generated in the test process, and storing the log file to a specified path.
On the basis of the above embodiment, the apparatus further includes a keyword extraction module, configured to:
and extracting the keywords in the log file, and obtaining a test result according to the keywords.
On the basis of the above embodiment, the apparatus further includes an analysis module configured to:
and if the test result is failure, acquiring and outputting a corresponding failure reason and a corresponding maintenance suggestion according to the keyword.
On the basis of the foregoing embodiment, the parameter configuration module 302 is specifically configured to:
closing a firewall of the operating system, closing an exchange partition related to the operating system, closing terminal balance service, closing CPU frequency adjustment service, and adding a parameter for closing the cstate in a kernel of the operating system.
On the basis of the foregoing embodiment, the portal determination module 303 is specifically configured to:
and acquiring all network ports corresponding to the network card, and determining the network ports to be tested from all the network ports according to preset conditions.
In summary, the embodiment of the application can judge whether the network card is in a healthy state by testing the pressure of the network card, and reduce the repetitive work of testers and improve the testing efficiency by automatic testing; furthermore, the fault cause can be rapidly positioned according to preset experience aiming at the fault in the test.
Fig. 4 is a schematic structural diagram of an entity of an electronic device according to an embodiment of the present application, where as shown in fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403; wherein, the first and the second end of the pipe are connected with each other,
the processor 401 and the memory 402 complete communication with each other through the bus 403;
the processor 401 is configured to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: determining that a network card and a driver of a tested device are respectively designated versions; acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system; determining a network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested; detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed; and automatically configuring the IP address of the network port to be tested and starting the test.
The processor 401 may be an integrated circuit chip having signal processing capabilities. The Processor 401 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 402 may include, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an Electrically Erasable Read Only Memory (EEPROM), and the like.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above method embodiments, for example, including: determining that a network card and a driver of a tested device are respectively designated versions; acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system; determining a network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested; detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed; and automatically configuring the IP address of the network port to be tested, and starting the test.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: determining that a network card and a driver of a tested device are respectively designated versions; acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system; determining a network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested; detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed; and automatically configuring the IP address of the network port to be tested and starting the test.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (7)

1. A pressure test method of a network card is characterized by comprising the following steps:
determining that a network card and a driver of a tested device are respectively designated versions; if not, refreshing to the appointed version;
acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system, and configuring preset parameters corresponding to the operating system;
determining a network interface to be tested of the network card, and determining a configuration file corresponding to the network interface to be tested;
detecting the speed of the network port to be tested, and determining a data receiving cache parameter and a data sending cache parameter according to the speed; the received data caching parameter and the sent data caching parameter are used for determining the caching size;
automatically configuring the IP address of the network port to be tested, and starting testing;
the configuring of the preset parameters corresponding to the operating system includes:
closing a firewall of the operating system, closing an exchange partition of the operating system, closing terminal balance service, closing CPU frequency adjustment service and adding a parameter for closing the cstate in a kernel of the operating system;
the method further comprises the following steps:
capturing a log file generated in a test process, extracting keywords in the log file, and obtaining a test result according to the keywords;
If the test result is failure, matching the keyword with a preset analysis table, and acquiring and outputting a corresponding failure reason and a corresponding maintenance suggestion; the analysis table comprises keywords of test failure and corresponding failure reasons and maintenance suggestions.
2. The method of claim 1, wherein after initiating a test, the method further comprises:
and storing the log file to a specified path.
3. The method of claim 1, wherein after obtaining test results from the keywords, the method further comprises:
and if the test result is successful, outputting a prompt of successful test and quitting the test.
4. The method of claim 1, wherein the determining the network interface to be tested of the network card comprises:
and acquiring all network ports corresponding to the network card, and determining the network ports to be tested from all the network ports according to preset conditions.
5. A pressure testing device of a network card is characterized by comprising:
the version determining module is used for determining that the network card and the driver of the tested device are respectively the appointed versions; if not, refreshing to the specified version;
The parameter configuration module is used for acquiring an operating system corresponding to the tested device, installing corresponding test software according to the operating system and configuring preset parameters corresponding to the operating system;
the network interface determining module is used for determining a network interface to be tested of the network card and determining a configuration file corresponding to the network interface to be tested;
the parameter determining module is used for detecting the speed of the network port to be tested and determining a data receiving cache parameter and a data sending cache parameter according to the speed; wherein, the data receiving cache parameter and the data sending cache parameter are used for determining the cache size;
the IP setting module is used for receiving the IP address of the network port to be tested input by a tester and starting the test;
the parameter configuration module is specifically configured to:
closing a firewall of the operating system, closing an exchange partition of the operating system, closing terminal balance service, closing CPU frequency adjustment service and adding a parameter for closing the cstate in a kernel of the operating system;
the device further comprises:
the key word extraction module is used for capturing a log file generated in the test process, extracting key words in the log file and obtaining a test result according to the key words;
And the analysis module is used for acquiring and outputting corresponding failure reasons and maintenance suggestions according to the keywords if the test result is failure.
6. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the program instructions being invoked by the processor to perform the method of any of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-4.
CN202010625572.4A 2020-06-30 2020-06-30 Network card pressure testing method and device, electronic equipment and storage medium Active CN111786855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010625572.4A CN111786855B (en) 2020-06-30 2020-06-30 Network card pressure testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010625572.4A CN111786855B (en) 2020-06-30 2020-06-30 Network card pressure testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111786855A CN111786855A (en) 2020-10-16
CN111786855B true CN111786855B (en) 2022-06-28

Family

ID=72757725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010625572.4A Active CN111786855B (en) 2020-06-30 2020-06-30 Network card pressure testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111786855B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489625B (en) * 2021-07-21 2023-04-07 宁畅信息产业(北京)有限公司 Network card testing method and device, electronic equipment and computer readable storage medium
CN113923145A (en) * 2021-09-30 2022-01-11 苏州浪潮智能科技有限公司 Server network card automatic test method and device and electronic equipment
CN114390030B (en) * 2021-11-30 2024-04-19 深圳市科陆电子科技股份有限公司 Power grid modular terminal testing method, system and medium for intelligently setting IP
CN114338457B (en) * 2021-12-23 2023-12-01 绿盟科技集团股份有限公司 Test system, method, device, equipment and medium for network card switching effectiveness
CN114301808B (en) * 2021-12-23 2023-11-10 北京集智达智能科技有限责任公司 Method and device for testing network port performance of X86 platform based on DPDK technology
CN114629831B (en) * 2022-03-11 2023-10-24 江苏为是科技有限公司 Network card performance test method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995068A (en) * 2017-12-20 2018-05-04 北京百度网讯科技有限公司 Network interface test method and equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850495A (en) * 2015-05-14 2015-08-19 曙光信息产业(北京)有限公司 Automatic detection method and device
CN105071982A (en) * 2015-07-16 2015-11-18 浪潮电子信息产业股份有限公司 Method for rapid measurement of performance of network card under Linux
CN105930261B (en) * 2016-01-16 2018-06-22 平安科技(深圳)有限公司 test method and test terminal
CN107977241A (en) * 2016-10-20 2018-05-01 英业达科技有限公司 Automated procedures deployment system and method for computer testing
CN107124335A (en) * 2017-06-30 2017-09-01 郑州云海信息技术有限公司 One kind is based on cloud sea operating system platform test method and system
CN107391379B (en) * 2017-07-28 2021-01-01 武汉斗鱼网络科技有限公司 Automatic interface testing method and device
CN107942134A (en) * 2017-11-17 2018-04-20 郑州云海信息技术有限公司 A kind of apparatus and method for being suitable for measuring PCIe card power consumption under a variety of environment
CN107948019A (en) * 2017-12-21 2018-04-20 郑州云海信息技术有限公司 A kind of method of automatic test network interface card pressure under linux system
CN108965062A (en) * 2018-08-07 2018-12-07 郑州云海信息技术有限公司 A kind of network interface test method, device, equipment and the storage medium of Onboard NIC

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995068A (en) * 2017-12-20 2018-05-04 北京百度网讯科技有限公司 Network interface test method and equipment

Also Published As

Publication number Publication date
CN111786855A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN111786855B (en) Network card pressure testing method and device, electronic equipment and storage medium
CN107995068B (en) Network port testing method, equipment and computer readable storage medium
CN109634258B (en) Bus message checking method, device and system for hardware-in-loop test
CN109408338B (en) Method, device, equipment and system for grabbing trace of NVME (network video management entity) hard disk
CN112653600A (en) Network card performance testing method and device based on USB network card and electronic equipment
US10809298B2 (en) Batch testing system and method thereof
CN110896366B (en) Network card function testing method and device of multi-network card equipment and storage medium
CN113572760A (en) Equipment protocol vulnerability detection method and device
CN108306787B (en) Application monitoring method and related equipment
CN111506047A (en) Vehicle diagnosis method, device and storage medium
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
US11442831B2 (en) Method, apparatus, device and system for capturing trace of NVME hard disc
US7721260B2 (en) Embedded Test I/O Engine
CN110753363A (en) Intelligent device wireless debugging system and method
CN112148537A (en) Bus monitoring device and method, storage medium, and electronic device
CN115129021B (en) Method and device for testing vehicle-mounted Ethernet
CN112003759B (en) Automatic test method and device for hardware TCP/IP network accelerator
CN111722997B (en) Abnormality detection method for automated test and computer-readable storage medium
CN109039813B (en) Method, system and equipment for detecting internet access
CN112148621A (en) Test method and device and electronic equipment
CN116382968B (en) Fault detection method and device for external equipment
CN116224976B (en) Test method and device
CN115357513B (en) Program ambiguity test method, device, equipment and storage medium
CN109753431B (en) Integrated test method for hardware function diagnosis
CN117424834A (en) Vehicle-mounted communication diagnosis method, device and system based on SOA and DDS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20211012

Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing

Applicant after: Dawning Information Industry (Beijing) Co.,Ltd.

Applicant after: ZHONGKE SUGON INFORMATION INDUSTRY CHENGDU Co.,Ltd.

Address before: Building 36, yard 8, Dongbei Wangxi Road, Haidian District, Beijing

Applicant before: Dawning Information Industry (Beijing) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant