CN111786855A - 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
CN111786855A
CN111786855A CN202010625572.4A CN202010625572A CN111786855A CN 111786855 A CN111786855 A CN 111786855A CN 202010625572 A CN202010625572 A CN 202010625572A CN 111786855 A CN111786855 A CN 111786855A
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.)
Granted
Application number
CN202010625572.4A
Other languages
Chinese (zh)
Other versions
CN111786855B (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
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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing 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 a speed 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 speed 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 pressure test software of the network interface is diversified, the network card pressure test environment is built, the test result is 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 object of the embodiments of the present application is to provide a method and an apparatus for testing a pressure of 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.
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.
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 later period testers can analyze the log files generated during the test.
Further, after the capturing the log file generated in the test process, the method further includes: and extracting 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: and 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 requirements of network card tests on the environment.
Further, the determining the network port 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 flow chart 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 according to an embodiment of the present disclosure;
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 software, on one hand, the pressure test of the network card hardly reaches the pressure level of 99% or above, so that the pressure of the network card cannot reach the 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 the software such as iperf, netperf and the like is limited, and the condition that the pressure is lower instead of the larger the number of pressure threads occurs under certain conditions, so that the test effect of the multithreading pressure test method is unstable.
IxChariot software is a soft testing tool for application layer performance testing, introduced by IXIA corporation, 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 the equipment to obtain performance parameters of the equipment and the network such as throughput, time delay, packet loss, reaction time and the like 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 IxChariot test platform, it should be noted that other test software may also be used for testing, which is not specifically limited in this embodiment of the present application.
Fig. 1 is a schematic flow chart of a pressure testing method for a network card according to an embodiment of the present application, and 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, and a driver and an operating system of the network card are installed in the device to be tested, and the operating system may be a linux operating system, a Windows operating system, or the like. 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 a 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, the network ports to be tested need to be determined 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 to select 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: 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 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 determining the network port to be tested, judging whether the ifcfg-ethX configuration file of the network port to be tested is stored behind the tested device, and if the configuration file does not exist, adding the corresponding configuration file. And automatically starting a Large packet receiving Offload (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 method comprises the steps of detecting the speed of a network port to be tested, wherein 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/sysconfig/sysstat are modified according to the speed of the network port to be tested, and the parameters can be specifically 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 includes:
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 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, misssed, linkdown, pass, success, and the like. If the log file contains any one of error, fail, drop, misssed and link down, 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 quitted.
In another embodiment, if the test fails, the failure reason and repair recommendations are determined based on the 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, as shown in fig. 2, including:
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 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 provided in an embodiment of the present application, and as shown in fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403; wherein the content of the first and second substances,
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, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), 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-mentioned method embodiments, for example, comprising: 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.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, 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 by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

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;
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.
2. The method of claim 1, wherein after initiating a test, the method further comprises:
and capturing a log file generated in the test process, and storing the log file to a specified path.
3. The method of claim 2, wherein after crawling log files generated during the testing, the method further comprises:
and extracting keywords in the log file, and obtaining a test result according to the keywords.
4. The method of claim 3, wherein after obtaining the test results from the keywords, 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.
5. The method of claim 3, wherein after obtaining the 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.
6. The method according to claim 1, wherein 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.
7. 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.
8. 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;
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.
9. 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 processor invoking the program instructions to perform the method of any one of claims 1-7.
10. 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-7.
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 true CN111786855A (en) 2020-10-16
CN111786855B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489625A (en) * 2021-07-21 2021-10-08 宁畅信息产业(北京)有限公司 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
CN114301808A (en) * 2021-12-23 2022-04-08 北京集智达智能科技有限责任公司 DPDK technology-based X86 platform network port performance test method and device
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness
CN114629831A (en) * 2022-03-11 2022-06-14 江苏为是科技有限公司 Network card performance test method, device, equipment and storage medium
CN115550221A (en) * 2022-10-10 2022-12-30 苏州浪潮智能科技有限公司 Integrated management method, system and device for network card test
CN114390030B (en) * 2021-11-30 2024-04-19 深圳市科陆电子科技股份有限公司 Power grid modular terminal testing method, system and medium for intelligently setting IP

Citations (10)

* 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 rapidly measuring network card performance under Linux
WO2017121400A1 (en) * 2016-01-16 2017-07-20 平安科技(深圳)有限公司 Method, system and device for testing and readable storage medium
CN107124335A (en) * 2017-06-30 2017-09-01 郑州云海信息技术有限公司 One kind is based on cloud sea operating system platform test method and system
CN107391379A (en) * 2017-07-28 2017-11-24 武汉斗鱼网络科技有限公司 Interface automatic test approach 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
CN107977241A (en) * 2016-10-20 2018-05-01 英业达科技有限公司 Automated procedures deployment system and method for computer testing
CN107995068A (en) * 2017-12-20 2018-05-04 北京百度网讯科技有限公司 Network interface test method and equipment
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 (11)

* 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 rapidly measuring network card performance under Linux
WO2017121400A1 (en) * 2016-01-16 2017-07-20 平安科技(深圳)有限公司 Method, system and device for testing and readable storage medium
US20180173618A1 (en) * 2016-01-16 2018-06-21 Ping An Technology (Shenzhen) Co., Ltd. Test method, system, and device, and readable storage medium
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
CN107391379A (en) * 2017-07-28 2017-11-24 武汉斗鱼网络科技有限公司 Interface automatic test approach 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
CN107995068A (en) * 2017-12-20 2018-05-04 北京百度网讯科技有限公司 Network interface test method and equipment
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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489625A (en) * 2021-07-21 2021-10-08 宁畅信息产业(北京)有限公司 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
CN114301808A (en) * 2021-12-23 2022-04-08 北京集智达智能科技有限责任公司 DPDK technology-based X86 platform network port performance test method and device
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing 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
CN114338457B (en) * 2021-12-23 2023-12-01 绿盟科技集团股份有限公司 Test system, method, device, equipment and medium for network card switching effectiveness
CN114629831A (en) * 2022-03-11 2022-06-14 江苏为是科技有限公司 Network card performance test method, device, equipment and storage medium
CN114629831B (en) * 2022-03-11 2023-10-24 江苏为是科技有限公司 Network card performance test method, device, equipment and storage medium
CN115550221A (en) * 2022-10-10 2022-12-30 苏州浪潮智能科技有限公司 Integrated management method, system and device for network card test

Also Published As

Publication number Publication date
CN111786855B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN111786855B (en) Network card pressure testing method and device, electronic equipment and storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107995068B (en) Network port testing method, equipment and computer readable storage medium
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
CN108306787B (en) Application monitoring method and related equipment
CN110896366A (en) Network card function testing method and device of multi-network card equipment and storage medium
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN109471763B (en) Method, device, equipment and system for grabbing trace of NVME (network video management entity) hard disk
CN112181749A (en) Hardware testing method and device, electronic equipment and storage medium
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
CN109660386B (en) Software upgrading method for semiconductor memory aging test system
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN116684333A (en) Automatic test method, device, equipment and storage medium based on communication protocol
CN114338492B (en) Virtual network performance testing method and device, computer equipment and medium
CN115129021B (en) Method and device for testing vehicle-mounted Ethernet
CN109039813B (en) Method, system and equipment for detecting internet access
CN113656302A (en) WAF rule automatic testing method, system, storage medium and terminal equipment
CN111722997B (en) Abnormality detection method for automated test and computer-readable storage medium
CN112148621A (en) Test method and device and electronic equipment
CN111261271A (en) Service availability diagnosis method and device for video monitoring environment
CN116382968B (en) Fault detection method and device for external equipment
CN116224976B (en) Test method and device
CN114048081A (en) VPN device testing method and device, electronic device and storage medium
CN113900866B (en) Hardware-in-loop bench, diagnosis test method and diagnosis test system

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
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.

GR01 Patent grant
GR01 Patent grant