CN108234246B - Method and system for multi-directionally testing network performance of server - Google Patents
Method and system for multi-directionally testing network performance of server Download PDFInfo
- Publication number
- CN108234246B CN108234246B CN201810058995.5A CN201810058995A CN108234246B CN 108234246 B CN108234246 B CN 108234246B CN 201810058995 A CN201810058995 A CN 201810058995A CN 108234246 B CN108234246 B CN 108234246B
- Authority
- CN
- China
- Prior art keywords
- test
- server
- script
- node
- network
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 227
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000013515 script Methods 0.000 claims abstract description 82
- 238000004891 communication Methods 0.000 claims abstract description 7
- 238000012545 processing Methods 0.000 claims description 17
- 238000011056 performance test Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
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 embodiment of the invention discloses a method and a system for testing the network performance of servers in multiple directions, wherein the method comprises the steps of setting the IP of a plurality of servers in the same network segment, establishing network communication among the servers, and installing a network testing tool on each server; simultaneously creating a service node test script and a test node test script on each server; and each server simultaneously runs the service node test script and the test node test script to perform multi-thread test. The invention creates and runs the service node test script and the test node test script in a plurality of servers, realizes the simultaneous test of the network performance of the plurality of servers, greatly improves the test efficiency and saves the test time cost.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for testing the network performance of a server in a multi-way mode.
Background
With the continuous development of the current testing technology, various testing tools, testing software and methods are increasingly applied to the testing of server products and various components. And the transmission rate of the network card is higher and higher, so that the network performance cannot be accurately tested sometimes by single-thread operation, and multithreading simultaneous testing is developed on the basis, so that the highest utilization rate of the network card is achieved, and the transmission rate of the network card is accurately obtained.
For the test of the network performance of the server, in the prior art, the network performance of the test end is tested by setting the test server and the test end.
In the actual test process, a plurality of servers are required to be tested, and the test method in the prior art is utilized to test the servers one by one, so that the test efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a method and a system for multi-directionally testing the network performance of a server, which aim to solve the problem of low efficiency of multi-server network performance testing in the prior art.
In order to solve the technical problem, the embodiment of the invention discloses the following technical scheme:
the invention provides a method for testing the network performance of a server in multiple directions, which comprises the following steps:
setting the IP of a plurality of servers in the same network segment, establishing network communication among the servers, and installing a network testing tool on each server;
simultaneously creating a service node test script and a test node test script on each server;
and each server simultaneously runs the service node test script and the test node test script to perform multi-thread test.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the step further includes analyzing the test result, and determining whether the network performance of the server meets the standard.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the specific process of analyzing the test result and determining whether the network performance of the server meets the standard includes:
acquiring the speed of the network card in the test process;
capturing the packet loss information of the network card before the service node test script and the test node test script are operated, and capturing the packet loss information of the network card again after the multithreading test is finished to obtain the packet loss rate of the network card;
if the network card rate and the packet loss rate both meet the requirements, the network performance reaches the standard, otherwise, the network performance does not reach the standard.
With reference to the first aspect, in a third possible implementation manner of the first aspect, each server runs a service node test script and a test node test script at the same time, and a specific process of the multithread test is set as follows:
inputting the IP and the test duration of the server to be tested in the service node test script, setting a multi-thread test, and running the service node test script;
and the server to be tested runs the test script of the test node and returns the test result to the server node which inputs the IP of the node.
In a second aspect, the invention provides a system for multi-directionally testing the performance of a server network, the system comprising
The test environment building module is used for setting the IP of a plurality of servers in the same network segment, building network communication among the servers and installing a network test tool on each server;
the test script creating module is used for simultaneously creating a service node test script and a test node test script on each server;
and the test script running module is used for controlling each server to run the service node test script and the test node test script at the same time, and setting multithread test.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the system further includes a data processing module, where the data processing module is configured to analyze the test result and determine whether the network performance of the server meets a standard.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the data processing module includes
The first data processing unit is used for acquiring the speed of the network card in the test process;
the second data processing unit is used for capturing the packet loss information of the network card before the service node test script and the test node test script are operated, and capturing the packet loss information of the network card again after the multithreading test is finished to obtain the packet loss rate of the network card;
and the test result generating unit is used for judging whether the network card speed and the packet loss rate both meet the requirements to obtain a result whether the network performance test reaches the standard.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the test script execution module includes
The first testing unit is used for inputting the IP and the testing duration of the server to be tested in the service node testing script, setting multi-thread testing and running the service node testing script;
and the second testing unit is used for running a testing node testing script by the server to be tested and returning a testing result to the server node which inputs the IP of the node.
The network service control apparatus according to the second aspect of the present invention can implement the methods according to the first aspect and the respective implementation manners of the first aspect, and achieve the same effects.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
1. the service node test script and the test node test script are created and run in the plurality of servers, so that the network performance of the plurality of servers can be tested simultaneously, the test efficiency is greatly improved, and the test time cost is saved.
2. The IP of the node end to be tested is input into the service node end, the network performance of the node to be tested is tested, and the operation is simple and convenient.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of one embodiment of a testing method of the present invention;
FIG. 2 is a schematic structural diagram of another embodiment of the testing method of the present invention;
FIG. 3 is a schematic diagram of two servers performing a two-way test according to the present invention;
FIG. 4 is a schematic diagram of a multi-server multi-direction test of the present invention;
FIG. 5 is a schematic diagram of a test system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a test structure of another embodiment of the test system of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
As shown in fig. 1, the testing method of the present invention comprises the following steps:
s1, setting the IP of multiple servers in the same network segment, establishing network communication between servers, and installing a network test tool on each server;
s2, creating a service node test script and a test node test script on each server simultaneously;
and S3, each server simultaneously runs the service node test script and the test node test script to perform multi-thread test.
In step S1, the network performance test requires at least two servers capable of communicating with each other to perform the test, taking two servers as an example, directly connecting two servers to be tested by using a network cable, setting the IP to be the same network segment, installing the Netperf network test tool, and smoothly debugging the network of the two nodes. And the two nodes open the netperf service and inform the execution of the netserver start command to open the netperf service.
In step S3, inputting the IP and the test duration of the server to be tested in the service node test script, setting a multi-thread test, and running the service node test script;
and the server to be tested runs the test script of the test node and returns the test result to the server node which inputs the IP of the node.
As shown in fig. 2, on the basis of the above method, the testing step of this embodiment further includes S4, analyzing the testing result, and determining whether the network performance of the server meets the standard. The method specifically comprises the following steps:
acquiring the speed of the network card in the test process;
capturing the packet loss information of the network card before the service node test script and the test node test script are operated, and capturing the packet loss information of the network card again after the multithreading test is finished to obtain the packet loss rate of the network card;
if the network card rate and the packet loss rate both meet the requirements, the network performance reaches the standard, otherwise, the network performance does not reach the standard.
As shown in fig. 3 and 4, the multi-direction test is exemplified, in fig. 3, two servers are selected for the two-way test, when the test starts, the IP address of the server 2 is input into the service node test script of the server 1, the IP address of the server 1 is input into the service node test script of the server 2, and the test scripts are run simultaneously, so that the network performance of the two servers is tested simultaneously, and the test efficiency is greatly improved. In fig. 3, taking four servers as an example, the IP address of another server may be input into the service node test script of each server, each server runs the script at the same time and tests the network performance of each server at the same time, if the IP address of the same server is input into a different server, the IP of the server 1 shown in fig. 4 is input into the server 2, the server 3 and the server 4 at the same time, after the test is finished, the results of the network performance test of the server 1 by the server 2, the server 3 and the server 4 are obtained respectively, and the comparison and judgment are performed, so that the network performance index of the server 1 can be obtained accurately without performing a loop test.
As shown in fig. 5, the test system of the present invention includes a test environment setup module 1, a test script creation module 2, and a test script execution module 3. The testing environment building module 1 is used for setting the IP of a plurality of servers in the same network segment, building network communication among the servers and installing a network testing tool on each server; the test script creating module 2 is used for creating a service node test script and a test node test script on each server at the same time; the test script running module 3 is used for controlling each server to run the service node test script and the test node test script at the same time, and setting multithread test.
The test script running module 3 further includes a first test unit 31 and a second test unit 32, where the first test unit 31 is configured to input an IP and a test duration of a server to be tested in the service node test script, set a multi-thread test, and run the service node test script; the second testing unit 32 is configured to run a testing node testing script by the server to be tested, and return a testing result to the server node that inputs the IP of the node.
As shown in fig. 6, on the basis of the test system, the system of this embodiment further includes a data processing module 4, configured to analyze the test result and determine whether the network performance of the server meets the standard. The data processing module 4 further comprises a first data processing unit 41, a second data processing unit 42 and a test result generating unit 43. The first data processing unit 41 is configured to obtain a rate of the network card in the test process; the second data processing unit 42 is configured to capture packet loss information of the network card before the service node test script and the test node test script are run, and capture packet loss information of the network card again after the multi-thread test is finished, so as to obtain a packet loss rate of the network card; the test result generating unit 43 is configured to determine whether the network card rate and the packet loss rate both meet the requirements, and obtain a result of whether the network performance test meets the standard.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the invention, and such modifications and improvements are also considered to be within the scope of the invention.
Claims (6)
1. A method for testing the network performance of a server in multiple directions is characterized in that: the method comprises the following steps:
setting the IP of a plurality of servers in the same network segment, establishing network communication among the servers, and installing a network testing tool on each server;
simultaneously creating a service node test script and a test node test script on each server;
each server simultaneously runs a service node test script and a test node test script to perform multi-thread test;
each server simultaneously runs a service node test script and a test node test script, and the specific process of the multithread test is as follows:
inputting the IP and the test duration of the server to be tested in the service node test script, setting a multi-thread test, and running the service node test script;
and the server to be tested runs the test script of the test node and returns the test result to the server node which inputs the IP of the node.
2. The method of claim 1, wherein the method comprises: the step also comprises analyzing the test result and judging whether the network performance of the server reaches the standard.
3. The method of claim 2, wherein the method comprises: the specific process of analyzing the test result and judging whether the network performance of the server reaches the standard is as follows:
acquiring the speed of the network card in the test process;
capturing the packet loss information of the network card before the service node test script and the test node test script are operated, and capturing the packet loss information of the network card again after the multithreading test is finished to obtain the packet loss rate of the network card;
if the network card rate and the packet loss rate both meet the requirements, the network performance reaches the standard, otherwise, the network performance does not reach the standard.
4. A system for multi-directionally testing the network performance of a server is characterized in that: the system comprises
The test environment building module is used for setting the IP of a plurality of servers in the same network segment, building network communication among the servers and installing a network test tool on each server;
the test script creating module is used for simultaneously creating a service node test script and a test node test script on each server;
the test script running module is used for controlling each server to run the service node test script and the test node test script at the same time and setting multi-thread test;
the test script running module comprises
The first testing unit is used for inputting the IP and the testing duration of the server to be tested in the service node testing script, setting multi-thread testing and running the service node testing script;
and the second testing unit is used for running a testing node testing script by the server to be tested and returning a testing result to the server node which inputs the IP of the node.
5. The system of claim 4, wherein the system is further configured to: the system also comprises a data processing module, wherein the data processing module is used for analyzing the test result and judging whether the network performance of the server reaches the standard or not.
6. The system of claim 5, wherein the system is further configured to: the data processing module comprises
The first data processing unit is used for acquiring the speed of the network card in the test process;
the second data processing unit is used for capturing the packet loss information of the network card before the service node test script and the test node test script are operated, and capturing the packet loss information of the network card again after the multithreading test is finished to obtain the packet loss rate of the network card;
and the test result generating unit is used for judging whether the network card speed and the packet loss rate both meet the requirements to obtain a result whether the network performance test reaches the standard.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810058995.5A CN108234246B (en) | 2018-01-22 | 2018-01-22 | Method and system for multi-directionally testing network performance of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810058995.5A CN108234246B (en) | 2018-01-22 | 2018-01-22 | Method and system for multi-directionally testing network performance of server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108234246A CN108234246A (en) | 2018-06-29 |
CN108234246B true CN108234246B (en) | 2021-04-27 |
Family
ID=62668225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810058995.5A Active CN108234246B (en) | 2018-01-22 | 2018-01-22 | Method and system for multi-directionally testing network performance of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234246B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417616A (en) * | 2019-06-28 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of method and device of automatic carry out multi-threaded network performance test |
CN111355636A (en) * | 2020-02-23 | 2020-06-30 | 苏州浪潮智能科技有限公司 | Test method and system for delay tuning of server network |
CN112162891B (en) * | 2020-10-14 | 2024-05-03 | 腾讯科技(深圳)有限公司 | Performance test method in server cluster and related equipment |
CN112882773B (en) * | 2021-04-29 | 2021-07-30 | 鹏城实验室 | Network performance detection method, device, test terminal and storage medium |
CN116170354B (en) * | 2023-02-28 | 2024-05-14 | 重庆长安汽车股份有限公司 | Network performance test method, device, equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020058767A (en) * | 2000-12-30 | 2002-07-12 | 이계철 | Apparatus and Method for an efficiency test of Internet Quality Measurement System |
CN101873234A (en) * | 2009-04-25 | 2010-10-27 | 鸿富锦精密工业(深圳)有限公司 | Network card performance testing system and method |
CN104009879A (en) * | 2013-02-21 | 2014-08-27 | 鸿富锦精密工业(深圳)有限公司 | Server testing system and method |
CN104468388A (en) * | 2014-11-04 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Linux system based test method for network card load balancing |
CN104734909A (en) * | 2015-01-23 | 2015-06-24 | 北京奥普维尔科技有限公司 | Network bio-directional testing method |
CN104811353A (en) * | 2015-05-05 | 2015-07-29 | 浪潮电子信息产业股份有限公司 | Linux system based automatic network card performance test environment construction method |
CN105429816A (en) * | 2015-10-28 | 2016-03-23 | 曙光信息产业(北京)有限公司 | Network interface card test system |
CN106230655A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of network pressure testing method and device |
CN107317727A (en) * | 2017-06-30 | 2017-11-03 | 迈普通信技术股份有限公司 | Loop testing method, device and router |
-
2018
- 2018-01-22 CN CN201810058995.5A patent/CN108234246B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020058767A (en) * | 2000-12-30 | 2002-07-12 | 이계철 | Apparatus and Method for an efficiency test of Internet Quality Measurement System |
CN101873234A (en) * | 2009-04-25 | 2010-10-27 | 鸿富锦精密工业(深圳)有限公司 | Network card performance testing system and method |
CN104009879A (en) * | 2013-02-21 | 2014-08-27 | 鸿富锦精密工业(深圳)有限公司 | Server testing system and method |
CN104468388A (en) * | 2014-11-04 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Linux system based test method for network card load balancing |
CN104734909A (en) * | 2015-01-23 | 2015-06-24 | 北京奥普维尔科技有限公司 | Network bio-directional testing method |
CN104811353A (en) * | 2015-05-05 | 2015-07-29 | 浪潮电子信息产业股份有限公司 | Linux system based automatic network card performance test environment construction method |
CN105429816A (en) * | 2015-10-28 | 2016-03-23 | 曙光信息产业(北京)有限公司 | Network interface card test system |
CN106230655A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of network pressure testing method and device |
CN107317727A (en) * | 2017-06-30 | 2017-11-03 | 迈普通信技术股份有限公司 | Loop testing method, device and router |
Also Published As
Publication number | Publication date |
---|---|
CN108234246A (en) | 2018-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108234246B (en) | Method and system for multi-directionally testing network performance of server | |
CN109525461B (en) | Network equipment testing method, device, equipment and storage medium | |
CN104717337A (en) | Method for testing mobile application in batch and equipment used in method | |
CN106326088B (en) | Method and device for realizing construction of test object and device for realizing service configuration test | |
CN106708748B (en) | Method and system for improving mounting performance of OpenStack block storage volume | |
CN111666217B (en) | Method and apparatus for testing code | |
CN107070752B (en) | Testing method and testing system for long connection capacity | |
CN114281680A (en) | Web automatic testing method and system | |
CN104123397A (en) | Automatic test device and method for Web page | |
CN110750453B (en) | HTML 5-based intelligent mobile terminal testing method, system, server and storage medium | |
CN102750143B (en) | Based on the DSP development approach that MATLAB com component calls | |
CN105025254A (en) | Multi-platform monitoring terminal system development method | |
CN111104336A (en) | Online service interface testing method and device based on container and VNC | |
CN115542875A (en) | Vehicle detection method based on SOA service and related equipment | |
CN114629831A (en) | Network card performance test method, device, equipment and storage medium | |
CN110730112A (en) | Method, system, equipment and storage medium for testing network running speed | |
CN108009086B (en) | System automation test method based on case decomposition and function learning | |
CN113535586A (en) | Test environment switching method, device, equipment and readable storage medium | |
CN106875765B (en) | Electronic classroom implementation method and device based on VDI | |
CN106612213B (en) | Equipment testing method and device | |
CN116545891A (en) | Automatic distribution network testing method based on intelligent equipment | |
CN113641575B (en) | Test method, device, equipment and storage medium | |
CN114745749A (en) | Virtual network element testing method and device, electronic equipment and readable storage medium | |
CN109831353B (en) | Automatic testing device for multiple network services | |
CN111162969A (en) | RSU and OBU online debugging method, system and medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |