CN116170354B - Network performance test method, device, equipment and medium - Google Patents

Network performance test method, device, equipment and medium Download PDF

Info

Publication number
CN116170354B
CN116170354B CN202310178261.1A CN202310178261A CN116170354B CN 116170354 B CN116170354 B CN 116170354B CN 202310178261 A CN202310178261 A CN 202310178261A CN 116170354 B CN116170354 B CN 116170354B
Authority
CN
China
Prior art keywords
network performance
expected value
delay
server
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
Application number
CN202310178261.1A
Other languages
Chinese (zh)
Other versions
CN116170354A (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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202310178261.1A priority Critical patent/CN116170354B/en
Publication of CN116170354A publication Critical patent/CN116170354A/en
Application granted granted Critical
Publication of CN116170354B publication Critical patent/CN116170354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • 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/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • 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/0852Delays
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The application provides a network performance test method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring an expected value of a network performance index; generating a corresponding test instruction based on the expected value of the network performance index; generating an execution script according to the corresponding test instruction; testing network performance between the client and the server based on the corresponding test instruction and the execution script; and obtaining and outputting a network performance test result. The application can cover various scenes, graphically and intuitively display the test result and the expected value of each scene, automatically realize the coverage of various scenes, reduce the human participation in execution, save the manpower and improve the analysis efficiency of the test result file.

Description

Network performance test method, device, equipment and medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a medium for testing network performance.
Background
The internet of things is to realize the connection of things, and a network is required to be used as a bridge for connection. With the wide application field, the network performance of the embedded device is increasingly required. Ipref is a network performance testing tool, and provides various parameter configurations, and can test bandwidth performance, delay jitter, data packet loss and the like. However, the iporf only provides the test under each condition and the output of the corresponding test result, so that not only is the coverage of a single instruction on a test scene limited, but also the search and analysis on the test result are relatively complex, and the test efficiency is restricted.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present application is to provide a network performance testing method, apparatus, device and medium for solving the following technical problems: the network performance testing tool only provides testing under each condition and corresponding test result output, not only is the limitation of single instruction to coverage of a testing scene, but also the searching and analysis of the test result are relatively complex, and the testing efficiency is restricted.
In view of the foregoing technical problems, in a first aspect, the present application provides a network performance testing method, including:
Acquiring an expected value of a network performance index;
Generating a corresponding test instruction based on the expected value of the network performance index;
generating an execution script according to the corresponding test instruction;
Testing network performance between the client and the server based on the corresponding test instruction and the execution script;
and obtaining and outputting a network performance test result.
In one embodiment of the present application, obtaining the expected value of the network performance index includes:
acquiring network performance indexes including network bandwidth, packet loss rate and delay;
Judging the type of the network performance index, and if the type is the network bandwidth, respectively acquiring expected values of the network bandwidths corresponding to the message packets to be transmitted with different sizes under a specified transmission rate in a transmission control protocol mode;
If the type is the packet loss rate and the delay, respectively acquiring expected values of the packet loss rate and the delay corresponding to the message packets to be sent with different sizes under the specified transmission rate in a user data packet protocol mode;
And storing the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
In an embodiment of the present application, generating the corresponding test instruction based on the expected value of the network performance index includes:
And constructing a corresponding test instruction of a transmission control protocol and a corresponding test instruction of a user datagram protocol based on the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
In an embodiment of the present application, a test instruction for constructing a corresponding transmission control protocol includes:
Generating a test instruction of a transmission control protocol of a server through a server command parameter;
Generating test instructions based on corresponding transmission control protocols of message packets to be sent in different sizes at the client according to the designated transmission rate;
In an embodiment of the present application, a test instruction for constructing a corresponding user datagram protocol includes:
Generating a test instruction of the user datagram protocol of the server through the server execution parameter;
And generating test instructions based on the corresponding user datagram protocols of the message packets to be sent in different sizes at the client according to the designated transmission rate.
In an embodiment of the present application, testing network performance between the client and the server based on the corresponding test instruction and the execution script includes:
Executing the server command parameter at the server through the execution script, and executing the test instruction of the transmission control protocol at the client to obtain the actual value of the network bandwidth;
executing server execution parameters at the server through the execution script, and executing the test instruction of the user datagram protocol at the client to obtain the actual value of the packet loss rate and the actual value of the delay.
In one embodiment of the present application, a network performance test result is obtained and output, including:
Performing standard number matrix format conversion on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay;
Drawing a corresponding first two-dimensional line graph based on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay after standard number matrix format conversion;
Drawing a corresponding second two-dimensional line graph for the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay;
and comparing the first two-dimensional line graph with the second two-dimensional line graph to form the network performance test result, and outputting the network performance test result.
On the one hand, the application also provides a network performance testing device, which is characterized by comprising:
the acquisition module is used for acquiring expected values of network performance indexes;
The first generation module is used for generating a corresponding test instruction based on the expected value of the network performance index;
the second generation module is used for generating an execution script according to the corresponding test instruction;
The test module is used for testing the network performance between the client and the server based on the corresponding test instruction and the execution script;
and the output module is used for obtaining the network performance test result and outputting the network performance test result.
In one aspect, the application also provides an electronic device comprising a processor, a memory, and a communication bus;
the communication bus is used for connecting the processor and the memory;
the processor is configured to execute the computer program stored in the memory to implement the method as described above.
In one aspect, the present application also provides a computer-readable storage medium, characterized in that it has stored thereon a computer program for causing a computer to perform the method as described above.
As described above, the network performance testing method, device, equipment and medium provided by the application have the following beneficial effects: the method and the device acquire the expected value of the network performance index; generating a corresponding test instruction based on the expected value of the network performance index; generating an execution script according to the corresponding test instruction; testing network performance between the client and the server based on the corresponding test instruction and the execution script; and obtaining and outputting a network performance test result. The application can cover various scenes, graphically and intuitively display the test result and the expected value of each scene, automatically realize the coverage of various scenes, reduce the human participation in execution, save the manpower and improve the analysis efficiency of the test result file.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a flow chart of a method of network performance testing provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method for obtaining a desired value of a network performance indicator according to one embodiment of the present application;
FIG. 3 is a flow chart of a method for constructing test instructions of a corresponding transmission control protocol according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for constructing test instructions for a corresponding user data packet protocol in accordance with one embodiment of the present application;
FIG. 5 is a flow chart of a method for testing network performance between a client and a server based on corresponding test instructions and execution scripts provided in an embodiment of the present application;
FIG. 6 is a flow chart of a method for outputting network performance test results provided in an embodiment of the present application;
FIG. 7 is a block diagram of a network performance testing apparatus provided in an embodiment of the application;
FIG. 8 is a schematic diagram of an electronic device according to an embodiment of the present application;
Detailed Description
Other advantages and effects of the present application will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present application with reference to specific examples. The application may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present application. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present application by way of illustration, and only the components related to the present application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the shape, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present application, it will be apparent, however, to one skilled in the art that embodiments of the present application may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present application.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
The internet of things is to realize the connection of things, and a network is required to be used as a bridge for connection. With the wide application field, the network performance of the embedded device is increasingly required. Ipref is a network performance testing tool, and provides various parameter configurations, and can test bandwidth performance, delay jitter, data packet loss and the like. However, the iporf only provides the test under each condition and the output of the corresponding test result, so that not only is the coverage of a single instruction on a test scene limited, but also the search and analysis on the test result are relatively complex, and the test efficiency is restricted.
Referring to fig. 1, a flowchart of a method for testing network performance according to an embodiment of the application is shown;
As shown in fig. 1, the method for testing network performance includes the following steps: step S101, obtaining expected values of network performance indexes; step S102, generating a corresponding test instruction based on the expected value of the network performance index; step S103, generating an execution script according to the corresponding test instruction; step S104, testing the network performance between the client and the server based on the corresponding test instruction and the execution script; step S105, obtaining the network performance test result and outputting the result. In the TCP scheme, expected values of network bandwidth based on 64b,512b,1k,4k,8k, etc. and the number of threads specified are input, and in the UDP scheme, delay times and packet loss rates of packets 64b,512b,1k,4k,8k of the respective sizes are input. According to the input expected value, analyzing the specified parameters, setting default parameters, automatically generating each corresponding iserf instruction, generating shell scripts executed every 10s according to the preset, and outputting the result of each iserf instruction to a specified command rule corresponding file. The network test needs a client and a server, the client and the server respectively create corresponding servers through the iperf, execute the shell script generated above at the other end, and store the corresponding results in the corresponding catalogue. The method comprises the steps of processing an iperf output data format into a standard number matrix format by using shell instructions, and drawing a corresponding two-dimensional line graph by using Matplotlib and comparing the line graph with a line graph formed by expected values.
Referring to fig. 2, a flowchart of a method for obtaining an expected value of a network performance index according to an embodiment of the application is shown;
As shown in fig. 2, the method for obtaining the expected value of the performance index includes the following steps:
S201, acquiring network performance indexes including network bandwidth, packet loss rate and delay; s202, judging the type of the network performance index, and if the type is the network bandwidth, respectively acquiring expected values of the network bandwidths corresponding to message packets to be transmitted with different sizes under a specified transmission rate in a transmission control protocol mode; s203, if the type is the packet loss rate and the delay, respectively acquiring expected values of the packet loss rate and the delay corresponding to the message packets to be transmitted with different sizes under the specified transmission rate in a user data packet protocol mode; s204, storing the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay. The test network bandwidth is divided into UDP and tcp by tcp, the types described herein are divided into tcp type, in which the size of the message packet such as 64b,512b,1k,4k,8k needs to be specified and the expected value of the network bandwidth under the condition is input, in UDP type, in which the expected packet loss rate and delay value need to be input under the condition of the size of the message packet such as 64b,512b,1k,4k,8k needs to be specified and the parameters are stored correspondingly so as to generate the corresponding iperf instruction subsequently.
Inputting indexes which need to be preset with expected values, namely network bandwidth, packet loss rate and delay; judging the test type according to the index, wherein the network bandwidth adopts a TCP mode, and the packet loss rate and delay adopt a udp mode; under tcp mode, respectively inputting delay time and packet loss rate of different message packet sizes (64 b,512b,1k,4k,8 k) at a designated transmission rate of 1000M/sec; the expected values for various buffer sizes are stored.
Generating a corresponding test instruction based on the expected value of the network performance index, including: and constructing a corresponding test instruction of a transmission control protocol and a corresponding test instruction of a user datagram protocol based on the expected value of the network broadband, the expected value of the packet loss rate and the expected value of the delay.
Referring to fig. 3, a flowchart of a method for constructing a test instruction of a corresponding transmission control protocol according to an embodiment of the present application is shown;
as shown in fig. 3, the test instruction for constructing the corresponding transmission control protocol includes: s301, generating a test instruction of a transmission control protocol of a server through a server command parameter; s302, generating test instructions based on corresponding transmission control protocols of message packets to be sent in different sizes at the client according to the designated transmission rate.
Referring to fig. 4, a flowchart of a method for constructing a test instruction of a corresponding user data packet protocol according to an embodiment of the present application is shown;
As shown in fig. 4, the steps of the method for constructing the test instruction of the corresponding user data packet protocol include: s401, generating a test instruction of the user datagram protocol of the server through a server execution parameter; s402, generating test instructions of corresponding user datagram protocols based on message packets to be sent in different sizes at the client according to the designated transmission rate.
According to each expected value, analyzing the specified parameters, setting default parameters, automatically generating each corresponding iserf instruction, generating shell scripts executed every 10s according to the preset, and outputting the result of each iserf instruction to a specified command rule corresponding file.
Respectively analyzing and constructing corresponding tcp and udp test instructions according to expected values:
# construction attempt network bandwidth instruction
And respectively analyzing and constructing corresponding tcp and udp test instructions, specifically, a server instruction, wherein the tcp mode is 'iperf-s'. The udp method "iperf-u-s". The client instructions are generated according to different buffer sizes and the specified transmission rate of 1000M/sec in a tcp mode, and different instructions are generated according to the template of 'iperf-c xxx.xxx.xxx-i 1-t 10000-l$i-b 1000M', wherein $i is 64b,512b,1k,4k and 8k. Under the UDP mode, instructions are constructed according to the template of 'iporf-c xxx.xxx.xxx-t 10000-u-l $i-b 1000M', wherein $i is 64b,512b,1k,4k and 8k respectively. The obtained iperf instruction generates shell scripts according to the interval of 10 s.
Referring to fig. 5, a flowchart of a method for testing network performance between a client and a server based on corresponding test instructions and execution scripts is provided in an embodiment of the present application;
As shown in fig. 5, the method for testing the network performance between the client and the server based on the corresponding test instructions and the execution script comprises the following steps: step S501, executing the server command parameter at the server through the execution script, and executing the test instruction of the transmission control protocol at the client to obtain the actual value of the network bandwidth; step S502, executing a server execution parameter at the server through the execution script, and executing a test instruction of the user datagram protocol at the client to obtain an actual value of the packet loss rate and an actual value of the delay.
The network test needs a client and a server, the client and the server respectively create corresponding servers through the iperf, execute the shell script generated above at the other end, and store the corresponding results in the corresponding catalogue. The network test is based on a C/S architecture, a test tcp and a udp server are respectively constructed through the iperf-S and the iperf-u-S, instruction execution of an instruction construction module is respectively executed at automatic intervals, and test results are correspondingly stored. In the tcp mode, the server executes the iperf-s, and the client executes the corresponding instruction in the tcp mode. Under the UDP mode, the server executes the iperf-u-s, the client executes the instruction corresponding to the mode of generating the UDP, and the results of the corresponding scenes are respectively stored in the corresponding directory files.
Fig. 6 is a flowchart of a method for outputting network performance test results according to an embodiment of the present application;
As shown in fig. 6, the output method of the network performance test result includes the following steps: step 601, performing standard number matrix format conversion on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay; step 602, drawing a corresponding first two-dimensional line graph based on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay after standard number matrix format conversion; step 603, drawing a corresponding second two-dimensional line graph for the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay; step 604, comparing the first two-dimensional line graph with the second two-dimensional line graph to form the network performance test result, and outputting the network performance test result. And processing the data format of the iperf output into a standard number matrix format by using shell instructions, and drawing a corresponding two-dimensional line graph by using Matplotlib and comparing the line graph with a line graph formed by expected values. Processing the result data using shell commands into data in the following format:
Bandwidth network data format:
message size 64 512 1k 4k 8k 16k
Anticipated bandwidth
Actual bandwidth
Packet loss rate and delay value:
A Matplotlib library is used for drawing a coordinate system graph according to the data, and actual values and expected values are drawn in different linearity in the same graph. The actual value and the expected value result are clear at a glance.
The application has the beneficial effects that: the shell-based method for testing the IPerf performance enriches the method for testing the IPerf, can adjust the testing parameters according to different requirements to meet different testing scene requirements, and is displayed in the same two-dimensional graph with expected values, so that the result is clear at a glance.
The indexes to be measured in the application include data packet throughput, packet loss rate and delay, and although the indexes are used for UDP data packet throughput, packet loss rate and delay, the UDP protocol is a non-connection-oriented lightweight transmission protocol and does not provide reliable data transmission service, so that the attention to UDP application is not how fast data is transmitted, but the packet loss rate and delay index. TCP is a connection-oriented, reliable, byte-stream-based transport layer traffic protocol, so TCP is used to test bandwidth, UDP to test packet loss and delay metrics.
The test network bandwidth is passed through tcp mode, the packet loss rate and delay are passed through UDP mode, and the types described herein are classified into UDP and tcp. In the tcp type, it is necessary to specify the size of a message packet of inputs 64b,512b,1k,4k,8k, etc., and input a network bandwidth expected value in this case. In the udp mode, the expected packet loss rate and delay value need to be input under the specified network bandwidth under the condition of the sizes of message packets such as instruction inputs 64b,512b,1k,4k,8k and the like. And store each parameter correspondence for subsequent generation of a corresponding iperf instruction.
The application aims to solve the technical problem of providing the method for testing the iporf, which can cover various scenes and graphically and intuitively display the test result and the expected value of each scene. The automatic coverage of various scenes is realized, the manual participation is reduced, the labor is saved, the analysis efficiency of the test result file is improved, and the whole test efficiency is improved.
FIG. 7 is a block diagram of a network performance testing apparatus according to an embodiment of the application;
As shown in fig. 7, the network performance testing apparatus 700 includes an acquisition module 701, a first generation module 702, a second generation module 703, a testing module 704, and an output module 705;
an obtaining module 701, configured to obtain an expected value of a network performance index;
A first generating module 702, configured to generate a corresponding test instruction based on an expected value of the network performance index;
A second generating module 703, configured to generate an execution script according to the corresponding test instruction;
A test module 704, configured to test network performance between the client and the server based on the corresponding test instruction and the execution script;
and the output module 705 is used for obtaining and outputting the network performance test result.
In an embodiment, the acquisition module 701 is configured to: acquiring network performance indexes including network bandwidth, packet loss rate and delay; judging the type of the network performance index, and if the type is the network bandwidth, respectively acquiring expected values of the network bandwidths corresponding to the message packets to be transmitted with different sizes under a specified transmission rate in a transmission control protocol mode; if the type is the packet loss rate and the delay, respectively acquiring expected values of the packet loss rate and the delay corresponding to the message packets to be sent with different sizes under the specified transmission rate in a user data packet protocol mode; and storing the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
In an embodiment, the first generation module 702 is configured to: and constructing a corresponding test instruction of a transmission control protocol and a corresponding test instruction of a user datagram protocol based on the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
In an embodiment, the first generation module 702 further comprises a first test instruction construction module configured to: generating a test instruction of a transmission control protocol of a server through a server command parameter; generating test instructions based on corresponding transmission control protocols of message packets to be sent in different sizes at the client according to the designated transmission rate;
In an embodiment, the first generation module 702 further comprises a second test instruction construction module configured to: generating a test instruction of the user datagram protocol of the server through the server execution parameter; and generating test instructions based on the corresponding user datagram protocols of the message packets to be sent in different sizes at the client according to the designated transmission rate.
In one embodiment, test module 704 is configured to: executing the server command parameter at the server through the execution script, and executing the test instruction of the transmission control protocol at the client to obtain the actual value of the network bandwidth; executing server execution parameters at the server through the execution script, and executing the test instruction of the user datagram protocol at the client to obtain the actual value of the packet loss rate and the actual value of the delay.
In one embodiment, the output module 705 is configured to: performing standard number matrix format conversion on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay; drawing a corresponding first two-dimensional line graph based on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay after standard number matrix format conversion; drawing a corresponding second two-dimensional line graph for the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay; and comparing the first two-dimensional line graph with the second two-dimensional line graph to form the network performance test result, and outputting the network performance test result.
In this embodiment, the network performance testing apparatus is substantially provided with a plurality of modules for executing the method in the above embodiment, and specific functions and technical effects are only required by referring to the above method embodiment, and are not repeated herein.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the application;
As shown in fig. 8, an embodiment of the present application also provides an electronic device 800 comprising a processor 801, a memory 802, and a communication bus 803;
a communication bus 803 is used to connect the processor 801 and memory connection 802;
The processor 801 is configured to execute computer programs stored in the memory 802 to implement the method as described in one or more of the above embodiments.
The embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program for causing a computer to perform the method according to any one of the embodiments described above.
The embodiment of the application also provides a non-volatile readable storage medium, where one or more modules (programs) are stored, where the one or more modules are applied to a device, and the instructions (instructions) may cause the device to execute the steps included in the embodiment of the application.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor apparatus, device, or means, or any combination of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the above-described respective embodiments.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above embodiments are merely illustrative of the principles of the present application and its effectiveness, and are not intended to limit the application. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the application. Accordingly, it is intended that all equivalent modifications and variations of the application be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.

Claims (9)

1. A network performance testing method for testing network performance between a client and a server, the method comprising:
Acquiring an expected value of a network performance index;
Generating a corresponding test instruction based on the expected value of the network performance index;
generating an execution script according to the corresponding test instruction;
Testing network performance between the client and the server based on the corresponding test instruction and the execution script;
Obtaining a network performance test result and outputting the network performance test result;
the network performance indexes comprise network bandwidth, packet loss rate and delay;
generating a corresponding test instruction based on the expected value of the network performance index, including:
And constructing a corresponding test instruction of a transmission control protocol and a corresponding test instruction of a user datagram protocol based on the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
2. The method of claim 1, wherein obtaining the desired value of the network performance indicator comprises:
Acquiring network performance indexes;
Judging the type of the network performance index, and if the type is the network bandwidth, respectively acquiring expected values of the network bandwidths corresponding to the message packets to be transmitted with different sizes under a specified transmission rate in a transmission control protocol mode;
If the type is the packet loss rate and the delay, respectively acquiring expected values of the packet loss rate and the delay corresponding to the message packets to be sent with different sizes under the specified transmission rate in a user data packet protocol mode;
And storing the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
3. The method of claim 1, wherein constructing test instructions for a corresponding transmission control protocol comprises:
Generating a test instruction of a transmission control protocol of a server through a server command parameter;
And generating test instructions based on corresponding transmission control protocols of message packets to be sent in different sizes at the client according to the designated transmission rate.
4. The method of claim 1, wherein constructing the test instructions of the corresponding user datagram protocol comprises:
Generating a test instruction of the user datagram protocol of the server through the server execution parameter;
And generating test instructions of corresponding user datagram protocols based on message packets to be sent in different sizes at the client according to the designated transmission rate.
5. The method of claim 4, wherein testing network performance between the client and the server based on the corresponding test instructions and the execution script comprises:
Executing the server command parameter at the server through the execution script, and executing the test instruction of the transmission control protocol at the client to obtain the actual value of the network bandwidth;
executing server execution parameters at the server through the execution script, and executing the test instruction of the user datagram protocol at the client to obtain the actual value of the packet loss rate and the actual value of the delay.
6. The method of claim 5, wherein obtaining and outputting network performance test results comprises:
Performing standard number matrix format conversion on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay;
Drawing a corresponding first two-dimensional line graph based on the actual value of the network bandwidth, the actual value of the packet loss rate and the actual value of the delay after standard number matrix format conversion;
Drawing a corresponding second two-dimensional line graph for the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay;
and comparing the first two-dimensional line graph with the second two-dimensional line graph to form the network performance test result, and outputting the network performance test result.
7. A network performance testing apparatus, comprising:
the acquisition module is used for acquiring expected values of network performance indexes;
The first generation module is used for generating a corresponding test instruction based on the expected value of the network performance index;
the second generation module is used for generating an execution script according to the corresponding test instruction;
The test module is used for testing the network performance between the client and the server based on the corresponding test instruction and the execution script;
the output module is used for obtaining a network performance test result and outputting the network performance test result;
the network performance indexes comprise network bandwidth, packet loss rate and delay;
The first generation module is specifically configured to:
And constructing a corresponding test instruction of a transmission control protocol and a corresponding test instruction of a user datagram protocol based on the expected value of the network bandwidth, the expected value of the packet loss rate and the expected value of the delay.
8. An electronic device comprising a processor, a memory, and a communication bus;
the communication bus is used for connecting the processor and the memory;
The processor is configured to execute a computer program stored in the memory to implement the method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon for causing a computer to perform the method according to any one of claims 1 to 6.
CN202310178261.1A 2023-02-28 2023-02-28 Network performance test method, device, equipment and medium Active CN116170354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310178261.1A CN116170354B (en) 2023-02-28 2023-02-28 Network performance test method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310178261.1A CN116170354B (en) 2023-02-28 2023-02-28 Network performance test method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN116170354A CN116170354A (en) 2023-05-26
CN116170354B true CN116170354B (en) 2024-05-14

Family

ID=86411273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310178261.1A Active CN116170354B (en) 2023-02-28 2023-02-28 Network performance test method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116170354B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5303166A (en) * 1992-04-14 1994-04-12 International Business Machines Corporation Method and system for automated network benchmark performance analysis
CN103780454A (en) * 2013-12-06 2014-05-07 重庆邮电大学 Distributed network performance measuring system and method based on access gateways
WO2016180127A1 (en) * 2015-09-16 2016-11-17 中兴通讯股份有限公司 Network performance evaluation method and system
CN107820227A (en) * 2017-10-23 2018-03-20 北京航空航天大学 A kind of bus or train route wireless communication network service quality parameter test device
CN108234246A (en) * 2018-01-22 2018-06-29 郑州云海信息技术有限公司 A kind of method and system of multidirectional server network performance
CN110798373A (en) * 2019-09-20 2020-02-14 苏州浪潮智能科技有限公司 Method for realizing performance test, test server and computer storage medium
CN110855520A (en) * 2019-11-11 2020-02-28 苏州科达科技股份有限公司 Network performance test method and test device, electronic device and storage medium
CN111224848A (en) * 2020-01-17 2020-06-02 腾讯科技(深圳)有限公司 Network quality testing method, device, equipment and storage medium
WO2020172569A1 (en) * 2019-02-21 2020-08-27 Sparta Systems, Inc. Method, apparatus, and computer-readable medium for maintaining visual consistency
CN112468265A (en) * 2020-11-10 2021-03-09 南京大学 Wireless local area network modulation coding self-adaptive selection method based on reinforcement learning and wireless equipment
CN113986746A (en) * 2021-11-05 2022-01-28 中国工商银行股份有限公司 Performance test method and device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210045125A1 (en) * 2019-10-11 2021-02-11 Intel Corporation Multiplexing transmission types in multiple-panel user equipments

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5303166A (en) * 1992-04-14 1994-04-12 International Business Machines Corporation Method and system for automated network benchmark performance analysis
CN103780454A (en) * 2013-12-06 2014-05-07 重庆邮电大学 Distributed network performance measuring system and method based on access gateways
WO2016180127A1 (en) * 2015-09-16 2016-11-17 中兴通讯股份有限公司 Network performance evaluation method and system
CN107820227A (en) * 2017-10-23 2018-03-20 北京航空航天大学 A kind of bus or train route wireless communication network service quality parameter test device
CN108234246A (en) * 2018-01-22 2018-06-29 郑州云海信息技术有限公司 A kind of method and system of multidirectional server network performance
WO2020172569A1 (en) * 2019-02-21 2020-08-27 Sparta Systems, Inc. Method, apparatus, and computer-readable medium for maintaining visual consistency
CN110798373A (en) * 2019-09-20 2020-02-14 苏州浪潮智能科技有限公司 Method for realizing performance test, test server and computer storage medium
CN110855520A (en) * 2019-11-11 2020-02-28 苏州科达科技股份有限公司 Network performance test method and test device, electronic device and storage medium
CN111224848A (en) * 2020-01-17 2020-06-02 腾讯科技(深圳)有限公司 Network quality testing method, device, equipment and storage medium
CN112468265A (en) * 2020-11-10 2021-03-09 南京大学 Wireless local area network modulation coding self-adaptive selection method based on reinforcement learning and wireless equipment
CN113986746A (en) * 2021-11-05 2022-01-28 中国工商银行股份有限公司 Performance test method and device and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Two new normalized EWMA-based indices for control loop performance assessment;T. I. Salsbury and C. F. Alcala;《2015 American Control Conference (ACC)》;20150730;全文 *
基于Roofline性能模型的深度神经网络推理优化;张泽桐;《中国优秀硕士论文电子期刊网》;20220415;全文 *

Also Published As

Publication number Publication date
CN116170354A (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN110008045B (en) Method, device and equipment for aggregating microservices and storage medium
CN112328419B (en) Test case generation method and device of remote procedure call interface, storage medium and electronic equipment
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN110909521A (en) Synchronous processing method and device for online document information and electronic equipment
CN110753089A (en) Method, device, medium and electronic equipment for managing client
CN112150490B (en) Image detection method, device, electronic equipment and computer readable medium
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN110489474B (en) Data processing method, device, medium and electronic equipment
CN105550246A (en) System and method for loading network picture under Android platform
CN113596017A (en) Protocol analysis method, device, soft gateway and storage medium
CN116170354B (en) Network performance test method, device, equipment and medium
CN112150491B (en) Image detection method, device, electronic equipment and computer readable medium
CN111600787B (en) Information processing method, information processing apparatus, electronic device, and medium
CN110740138B (en) Data transmission method and device
CN111898061A (en) Method, device, electronic equipment and computer readable medium for searching network
CN115374048A (en) Polynomial processing method, FPGA (field programmable Gate array) terminal, PC (personal computer) terminal and storage medium
CN112732979B (en) Information writing method, information writing device, electronic equipment and computer readable medium
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN113778956B (en) Resource processing method, device, electronic equipment and computer readable medium
CN112883697B (en) Workflow form generation method, device, electronic equipment and computer readable medium
CN109739652A (en) Real-time long connection method and device based on Go language
CN117251035B (en) Heat dissipation control method, heat dissipation control device, electronic equipment and computer readable medium
CN115550464B (en) System monitoring method based on industrial internet cloud platform, electronic equipment and medium
CN112559087B (en) Information generation method, apparatus, electronic device and computer readable 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