CN112073128A - Communication equipment performance test method and device - Google Patents

Communication equipment performance test method and device Download PDF

Info

Publication number
CN112073128A
CN112073128A CN202010830985.6A CN202010830985A CN112073128A CN 112073128 A CN112073128 A CN 112073128A CN 202010830985 A CN202010830985 A CN 202010830985A CN 112073128 A CN112073128 A CN 112073128A
Authority
CN
China
Prior art keywords
characteristic
total number
sent
messages
control information
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.)
Pending
Application number
CN202010830985.6A
Other languages
Chinese (zh)
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.)
Jiangsu Creatcomm Electronic Co ltd
Original Assignee
Jiangsu Creatcomm Electronic 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 Jiangsu Creatcomm Electronic Co ltd filed Critical Jiangsu Creatcomm Electronic Co ltd
Priority to CN202010830985.6A priority Critical patent/CN112073128A/en
Publication of CN112073128A publication Critical patent/CN112073128A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for testing the performance of communication equipment, wherein the method comprises the following steps: receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test; and counting the total number of the received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time. The embodiment of the invention can test the performance of the communication equipment only by the communication equipment, can adapt to various complex environments, does not need the participation of third-party software, and simplifies the test process under the condition of ensuring the reliability of the test result.

Description

Communication equipment performance test method and device
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for testing performance of a communication device.
Background
The performance of a wireless communication device is directly related to the stability and reliability of network data transmission. With the rapid development of wireless communication, the performance of wireless communication devices is concerned more and more.
At present, the existing method for testing the performance of the communication device is to test the data transmission rate, packet loss, etc. of the communication device by means of a third-party tool. No matter in which environment the test is carried out, the participation of a client and a server is needed, and test software needs to be deployed at each participating end, so that the real-time test on the performance of the equipment in a complex environment cannot be met.
In summary, the existing testing method needs to deploy testing software at each participating end, the testing is complex, and the real-time performance of the testing in a complex environment cannot be satisfied.
Disclosure of Invention
The embodiment of the invention provides a method and a device for testing the performance of communication equipment, which are used for overcoming the defects of complex performance test and poor real-time performance of the communication equipment in the prior art, realizing the real-time performance test of the communication equipment which is suitable for various complex environments without the participation of third-party software, and having simple method.
The embodiment of the invention provides a method for testing the performance of communication equipment, which comprises the following steps:
receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test;
and counting the total number of the received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
According to the performance test method of the communication equipment, the characteristic message is sent to the drive sending queue of the opposite terminal by the kernel data sending module of the opposite terminal, and then is sent to the local terminal by the drive data sending module of the opposite terminal within the preset time according to the sending rate of the characteristic message;
and the sending rate of the characteristic message is calculated and obtained by a kernel data sending module of the opposite terminal according to a preset test bandwidth sent by the server terminal.
According to the performance testing method of the communication equipment, the opposite terminal sends the total number of the feature messages sent by the control information to the drive sending queue of the opposite terminal after being obtained by the kernel data sending module of the opposite terminal according to the sending rate of the feature messages and the preset testing time, and then the drive data sending module of the opposite terminal sends the drive sending queue to the server terminal or the client terminal.
According to the method for testing the performance of the communication equipment, the step of calculating the packet loss rate and the transmission rate of the feature messages according to the total number of the received feature messages, the total number of the feature messages sent by the opposite terminal according to the control information and the preset test time comprises the following steps:
dividing the total number of the received feature messages by the total number of the feature messages sent by the opposite terminal according to the control information to obtain the packet loss rate of the feature messages;
and dividing the total number of the received characteristic messages by the preset test time to obtain the transmission rate of the characteristic messages.
According to the method for testing the performance of the communication equipment, according to the total number of the received feature messages, the total number of the feature messages sent by the opposite terminal according to the control information and the preset test time, the steps of calculating the packet loss rate and the transmission rate of the feature messages further include:
calculating a difference between the preset test bandwidth and the transmission rate;
comparing the packet loss rate with a first preset threshold value, and comparing the difference value with a second preset threshold value;
and determining whether the opposite end fails according to the comparison result of the packet loss rate and a first preset threshold value and the comparison result of the difference value and a second preset threshold value.
The method for testing the performance of the communication equipment according to one embodiment of the invention further comprises the following steps:
and sending the feature messages to the opposite terminal according to the control information so that the opposite terminal can count the total number of the received feature messages, acquiring the total number of the feature messages sent by the local terminal according to the control information, and calculating the packet loss rate and the transmission rate of the feature messages according to the total number of the feature messages received by the opposite terminal, the total number of the feature messages sent by the local terminal according to the control information and preset test time.
An embodiment of the present invention further provides a device for testing performance of communication equipment, including: the device comprises a driving data receiving module and a user layer data processing module;
the drive data receiving module is used for receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test;
the user layer data processing module is used for counting the total number of received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
According to the performance testing device of the communication equipment, the characteristic message is sent to the drive sending queue of the opposite end by the kernel data sending module of the opposite end, and then is sent to the server or the client by the drive data sending module of the opposite end within the preset time according to the sending rate of the characteristic message;
and the sending rate of the characteristic message is calculated and obtained by a kernel data sending module of the opposite terminal according to a preset test bandwidth sent by the server terminal.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of any one of the above-mentioned communication device performance testing methods when executing the program.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for testing the performance of a communication device as described in any one of the above.
According to the method and the device for testing the performance of the communication equipment, the characteristic message is sent between the two ends which are communicated according to the control information sent by the server, the messages transmitted between the two ends are counted, and the performance test result of the communication equipment is determined according to the counting result.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for testing performance of a communication device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a sending flow of performance test performed on a communication device in a method for testing performance of a communication device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a receiving flow of performance testing performed on a communication device in a method for testing performance of a communication device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a method for testing performance of communication equipment provided by an embodiment of the present invention with reference to fig. 1, where the method includes: s101, receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performing performance test on the communication equipment;
the main execution body of the method in this embodiment is any end that performs communication, and generally includes a server and a client. Firstly, the server sends control information to the local terminal and the client terminal. The control information comprises a start-stop mark, preset test time and preset test bandwidth. The start-stop mark is used for marking the starting time and the ending time of the performance test of the communication equipment. The preset test time is the predetermined duration for carrying out the performance test on the communication equipment, and the preset test bandwidth is the predetermined bandwidth for carrying out the performance test on the communication equipment.
And after the server and the client receive the control information, constructing a characteristic message. The protocol layer of the characteristic message is added with a test identifier for identifying whether the message is a message for performing performance test on the communication equipment. Then the server side sends the characteristic message constructed by the server side to the client side, and the client side sends the characteristic message constructed by the client side to the server side.
S102, counting the total number of received feature messages, acquiring the total number of the feature messages sent by the opposite terminal according to the control information, calculating the packet loss rate and the transmission rate of the feature messages according to the total number of the received feature messages, the total number of the feature messages sent by the opposite terminal according to the control information and preset test time, and determining the performance test result of the communication equipment according to the packet loss rate and the transmission rate.
And after the preset test time is up, the server side counts the total number of the received characteristic messages, acquires the total number of the characteristic messages sent by the client side from the client side, analyzes the total number of the received characteristic messages, the total number of the characteristic messages sent by the client side and the preset test time, calculates the packet loss rate and the transmission rate, and takes the calculated packet loss rate and the calculated transmission rate as the performance test result of the client side.
The method comprises the steps that after the preset test time is up, the client side counts the total number of the received characteristic messages, obtains the total number of the characteristic messages sent by the server side from the server side, analyzes according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the server side and the preset test time, calculates the packet loss rate and the transmission rate, and takes the calculated packet loss rate and the calculated transmission rate as the performance test result of the server side.
According to the embodiment, the characteristic message is sent between the two ends for communication according to the control information sent by the server, the message transmitted between the two ends is counted, and the performance test result of the communication equipment is determined according to the statistical result.
On the basis of the above embodiment, in this embodiment, the feature packet is sent to the drive sending queue of the opposite end by the kernel data sending module of the opposite end, and then sent to the local end by the drive data sending module of the opposite end within the preset time according to the sending rate of the feature packet; and the sending rate of the characteristic message is calculated and obtained by a kernel data sending module of the opposite terminal according to a preset test bandwidth sent by the server terminal.
Specifically, as shown in fig. 2, after the server and the client receive control information sent by an application layer control module of the server, kernel data sending modules of the server and the client calculate sending rates of the feature messages, that is, the number of packets sent by the feature messages in unit time, according to preset test bandwidths in the control information, and send the feature messages to a driving sending queue first. And the driving data sending modules of the server and the client send the characteristic messages to the opposite terminal at the calculated sending rate within the preset testing time. The larger the preset test bandwidth is, the larger the sending rate of the feature message is; the smaller the preset test bandwidth is, the smaller the sending rate of the feature message is, so that the normal sending of the feature message is ensured, and the network congestion is avoided.
On the basis of the above embodiment, in this embodiment, the total number of the feature packets sent by the opposite end according to the control information is obtained by the kernel data sending module of the opposite end according to the sending rate of the feature packets and the preset test time, and then sent to the drive sending queue of the opposite end, and then sent to the server or the client by the drive data sending module of the opposite end.
Specifically, the kernel data sending module of the server or the client multiplies the preset test time by the sending rate to obtain the total number of the feature messages sent by the server and the client within the preset test time, and sends the feature messages to the drive sending queue. And the driving data sending modules of the server and the client send the characteristic messages to the opposite terminal at the calculated sending rate within the preset testing time.
On the basis of the foregoing embodiment, in this embodiment, the step of calculating the packet loss rate and the transmission rate of the feature packet according to the total number of the received feature packets, the total number of the feature packets sent by the opposite end according to the control information, and the preset test time includes: dividing the total number of the received feature messages by the total number of the feature messages sent by the opposite terminal according to the control information to obtain the packet loss rate of the feature messages; and dividing the total number of the received characteristic messages by the preset test time to obtain the transmission rate of the characteristic messages.
Specifically, as shown in fig. 3, a receiving flow chart for performing a performance test on the communication device is that driving data receiving modules in the server and the client perform data statistics on received feature packets sent by the opposite end, and send the total number of feature packets sent by the opposite end according to the control information, the total number of actually received packets, and preset test time to respective user layer data processing modules. And the user layer data processing modules of the server and the client analyze the received data and calculate the packet loss rate and the actual transmission rate of the characteristic message. The client reports the test result to the user layer data query module of the client, and the server acquires the test result from the user layer data query module of the client and stores the data by combining the test result of the server.
On the basis of the foregoing embodiments, in this embodiment, after the step of calculating the packet loss rate and the transmission rate of the feature packet according to the total number of the received feature packets, the total number of the feature packets sent by the opposite end according to the control information, and the preset test time, the method further includes: calculating a difference between the preset test bandwidth and the transmission rate; comparing the packet loss rate with a first preset threshold value, and comparing the difference value with a second preset threshold value; and determining whether the opposite end fails according to the comparison result of the packet loss rate and a first preset threshold value and the comparison result of the difference value and a second preset threshold value.
Specifically, in this embodiment, the actual bandwidth of the feature packet transmission is compared with the preset test bandwidth, and when the difference between the actual bandwidth and the preset test bandwidth is large and the packet loss rate is also large, the fault of the communication device is known.
On the basis of the above embodiments, the present embodiment further includes: and sending the feature messages to the opposite terminal according to the control information so that the opposite terminal can count the total number of the received feature messages, acquiring the total number of the feature messages sent by the local terminal according to the control information, and calculating the packet loss rate and the transmission rate of the feature messages according to the total number of the feature messages received by the opposite terminal, the total number of the feature messages sent by the local terminal according to the control information and preset test time.
Specifically, the opposite end performs statistical calculation according to the locally transmitted feature packet in the same manner, and obtains the packet loss rate and the transmission rate of the feature packet, thereby obtaining the performance test result of the local end.
The following describes the performance testing apparatus for communication devices according to the embodiments of the present invention, and the performance testing apparatus for communication devices described below and the performance testing method for communication devices described above may be referred to correspondingly.
As shown in fig. 3, the performance testing apparatus for communication equipment provided in this embodiment includes a driving data receiving module and a user layer data processing module;
the drive data receiving module is used for receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test;
firstly, the server sends control information to the local terminal and the client terminal. The control information comprises a start-stop mark, preset test time and preset test bandwidth. The start-stop mark is used for marking the starting time and the ending time of the performance test of the communication equipment. The preset test time is the predetermined duration for carrying out the performance test on the communication equipment, and the preset test bandwidth is the predetermined bandwidth for carrying out the performance test on the communication equipment.
And after the server and the client receive the control information, constructing a characteristic message. The protocol layer of the characteristic message is added with a test identifier for identifying whether the message is a message for performing performance test on the communication equipment. Then the server side sends the characteristic message constructed by the server side to the client side, and the client side sends the characteristic message constructed by the client side to the server side.
The user layer data processing module is used for counting the total number of received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
And after the preset test time is up, the server side counts the total number of the received characteristic messages, acquires the total number of the characteristic messages sent by the client side from the client side, analyzes the total number of the received characteristic messages, the total number of the characteristic messages sent by the client side and the preset test time, calculates the packet loss rate and the transmission rate, and takes the calculated packet loss rate and the calculated transmission rate as the performance test result of the client side.
The method comprises the steps that after the preset test time is up, the client side counts the total number of the received characteristic messages, obtains the total number of the characteristic messages sent by the server side from the server side, analyzes according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the server side and the preset test time, calculates the packet loss rate and the transmission rate, and takes the calculated packet loss rate and the calculated transmission rate as the performance test result of the server side.
According to the embodiment, the characteristic message is sent between the two ends for communication according to the control information sent by the server, the message transmitted between the two ends is counted, and the performance test result of the communication equipment is determined according to the statistical result.
On the basis of the above embodiment, in this embodiment, the feature packet is sent to the drive sending queue of the opposite end by the kernel data sending module of the opposite end, and then sent to the server or the client by the drive data sending module of the opposite end within the preset time according to the sending rate of the feature packet; and the sending rate of the characteristic message is calculated and obtained by a kernel data sending module of the opposite terminal according to a preset test bandwidth sent by the server terminal.
On the basis of the above embodiment, in this embodiment, the total number of the feature packets sent by the opposite end according to the control information is obtained by the kernel data sending module of the opposite end according to the sending rate of the feature packets and the preset test time, and then sent to the drive sending queue of the opposite end, and then sent to the server or the client by the drive data sending module of the opposite end.
On the basis of the foregoing embodiment, the user layer data processing module in this embodiment is specifically configured to: dividing the total number of the received feature messages by the total number of the feature messages sent by the opposite terminal according to the control information to obtain the packet loss rate of the feature messages; and dividing the total number of the received characteristic messages by the preset test time to obtain the transmission rate of the characteristic messages.
On the basis of the foregoing embodiment, this embodiment further includes a determining module, configured to calculate a difference between the preset test bandwidth and the transmission rate; comparing the packet loss rate with a first preset threshold value, and comparing the difference value with a second preset threshold value; and determining whether the opposite end fails according to the comparison result of the packet loss rate and a first preset threshold value and the comparison result of the difference value and a second preset threshold value.
On the basis of the foregoing embodiment, the present embodiment further includes a driving data sending module, configured to send a feature packet to the opposite end according to the control information, so that the opposite end counts a total number of received feature packets, obtains a total number of feature packets sent by the local end according to the control information, and calculates a packet loss rate and a transmission rate of the feature packet according to the total number of feature packets received by the opposite end, the total number of feature packets sent by the local end according to the control information, and a preset test time.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)401, a communication Interface (communication Interface)402, a memory (memory)403 and a communication bus 404, wherein the processor 401, the communication Interface 402 and the memory 403 complete communication with each other through the communication bus 404. Processor 401 may invoke logic instructions in memory 403 to perform a communication device performance testing method comprising: receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test; and counting the total number of the received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
In addition, the logic instructions in the memory 403 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the method for testing performance of a communication device provided by the above-mentioned method embodiments, where the method includes: receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test; and counting the total number of the received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
In yet another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the method for testing the performance of a communication device provided in the foregoing embodiments, where the method includes: receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test; and counting the total number of the received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
The above-described embodiments of the apparatus are merely illustrative, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for testing performance of a communication device, comprising:
receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test;
and counting the total number of the received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
2. The method for testing the performance of the communication equipment according to claim 1, wherein the characteristic packet is sent to the drive sending queue of the opposite end by the kernel data sending module of the opposite end, and then sent to the local end by the drive data sending module of the opposite end within the preset time according to the sending rate of the characteristic packet;
and the sending rate of the characteristic message is calculated and obtained by a kernel data sending module of the opposite terminal according to a preset test bandwidth sent by the server terminal.
3. The method according to claim 2, wherein the total number of the feature packets sent by the opposite end according to the control information is obtained by a kernel data sending module of the opposite end according to the sending rate of the feature packets and the preset test time, and then sent to the drive sending queue of the opposite end, and then sent to the server or the client by a drive data sending module of the opposite end.
4. The method according to claim 1, wherein the step of calculating the packet loss rate and the transmission rate of the feature packets according to the total number of the received feature packets, the total number of the feature packets sent by the opposite end according to the control information, and a preset test time comprises:
dividing the total number of the received feature messages by the total number of the feature messages sent by the opposite terminal according to the control information to obtain the packet loss rate of the feature messages;
and dividing the total number of the received characteristic messages by the preset test time to obtain the transmission rate of the characteristic messages.
5. The method for testing performance of communication equipment according to any one of claims 1 to 4, wherein the step of calculating the packet loss rate and the transmission rate of the feature packet according to the total number of the received feature packets, the total number of the feature packets sent by the opposite end according to the control information, and the preset test time further comprises:
calculating a difference between the preset test bandwidth and the transmission rate;
comparing the packet loss rate with a first preset threshold value, and comparing the difference value with a second preset threshold value;
and determining whether the opposite end fails according to the comparison result of the packet loss rate and a first preset threshold value and the comparison result of the difference value and a second preset threshold value.
6. The method for testing the performance of the communication device according to any one of claims 1 to 4, further comprising:
and sending the feature messages to the opposite terminal according to the control information so that the opposite terminal can count the total number of the received feature messages, acquiring the total number of the feature messages sent by the local terminal according to the control information, and calculating the packet loss rate and the transmission rate of the feature messages according to the total number of the feature messages received by the opposite terminal, the total number of the feature messages sent by the local terminal according to the control information and preset test time.
7. A performance testing device of communication equipment is characterized by comprising a driving data receiving module and a user layer data processing module;
the drive data receiving module is used for receiving a characteristic message sent by an opposite terminal according to control information sent by a server terminal; the control information comprises a preset test bandwidth and a preset test time; the characteristic message is a message with a protocol layer provided with a test identifier, and the test identifier is used for identifying the characteristic message as a message for performance test;
the user layer data processing module is used for counting the total number of received characteristic messages, acquiring the total number of the characteristic messages sent by the opposite terminal according to the control information, and calculating the packet loss rate and the transmission rate of the characteristic messages according to the total number of the received characteristic messages, the total number of the characteristic messages sent by the opposite terminal according to the control information and preset test time.
8. The apparatus according to claim 7, wherein the characteristic packet is sent to the driver transmission queue of the opposite end by the kernel data transmission module of the opposite end, and then sent to the server or the client by the driver data transmission module of the opposite end within the preset time according to the transmission rate of the characteristic packet;
and the sending rate of the characteristic message is calculated and obtained by a kernel data sending module of the opposite terminal according to a preset test bandwidth sent by the server terminal.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for testing the performance of a communication device according to any of claims 1 to 6 are performed when the program is executed by the processor.
10. A non-transitory computer readable storage medium, having stored thereon a computer program, which, when being executed by a processor, carries out the steps of the method for performance testing of a communication device according to any one of claims 1 to 6.
CN202010830985.6A 2020-08-18 2020-08-18 Communication equipment performance test method and device Pending CN112073128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010830985.6A CN112073128A (en) 2020-08-18 2020-08-18 Communication equipment performance test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010830985.6A CN112073128A (en) 2020-08-18 2020-08-18 Communication equipment performance test method and device

Publications (1)

Publication Number Publication Date
CN112073128A true CN112073128A (en) 2020-12-11

Family

ID=73662082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010830985.6A Pending CN112073128A (en) 2020-08-18 2020-08-18 Communication equipment performance test method and device

Country Status (1)

Country Link
CN (1) CN112073128A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006838A (en) * 2021-10-30 2022-02-01 杭州迪普信息技术有限公司 Testing method and system of flow control equipment
CN114286378A (en) * 2021-12-28 2022-04-05 湖南智领通信科技有限公司 System and method for testing network performance of ad hoc network wireless communication equipment
CN114338474A (en) * 2021-12-27 2022-04-12 南京创通微新通信有限公司 Instrument-free testing system, method and storage medium for air interface link
CN114585001A (en) * 2022-02-10 2022-06-03 武汉迈威通信股份有限公司 Wireless performance test method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984035A (en) * 2013-01-04 2013-03-20 盛科网络(苏州)有限公司 Loopback test method and system of packet loss probability of network data
CN106487605A (en) * 2015-08-26 2017-03-08 中兴通讯股份有限公司 packet loss detection method and device
CN106487613A (en) * 2016-11-16 2017-03-08 北京华为数字技术有限公司 A kind of bandwidth test methods, devices and systems
CN109728967A (en) * 2017-10-31 2019-05-07 迈普通信技术股份有限公司 Communication quality detection method, communication equipment and system
CN109921962A (en) * 2019-04-16 2019-06-21 腾讯科技(深圳)有限公司 Bandwidth Measurement Method, device, computer readable storage medium and computer equipment
CN110650067A (en) * 2019-10-16 2020-01-03 大庆石油管理局有限公司 Broadband network performance test evaluation method and system
CN111490907A (en) * 2019-01-25 2020-08-04 华为技术有限公司 Method and device for determining VX L AN network performance parameters

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984035A (en) * 2013-01-04 2013-03-20 盛科网络(苏州)有限公司 Loopback test method and system of packet loss probability of network data
CN106487605A (en) * 2015-08-26 2017-03-08 中兴通讯股份有限公司 packet loss detection method and device
CN106487613A (en) * 2016-11-16 2017-03-08 北京华为数字技术有限公司 A kind of bandwidth test methods, devices and systems
CN109728967A (en) * 2017-10-31 2019-05-07 迈普通信技术股份有限公司 Communication quality detection method, communication equipment and system
CN111490907A (en) * 2019-01-25 2020-08-04 华为技术有限公司 Method and device for determining VX L AN network performance parameters
CN109921962A (en) * 2019-04-16 2019-06-21 腾讯科技(深圳)有限公司 Bandwidth Measurement Method, device, computer readable storage medium and computer equipment
CN110650067A (en) * 2019-10-16 2020-01-03 大庆石油管理局有限公司 Broadband network performance test evaluation method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006838A (en) * 2021-10-30 2022-02-01 杭州迪普信息技术有限公司 Testing method and system of flow control equipment
CN114338474A (en) * 2021-12-27 2022-04-12 南京创通微新通信有限公司 Instrument-free testing system, method and storage medium for air interface link
CN114286378A (en) * 2021-12-28 2022-04-05 湖南智领通信科技有限公司 System and method for testing network performance of ad hoc network wireless communication equipment
CN114286378B (en) * 2021-12-28 2024-01-30 湖南智领通信科技有限公司 Ad hoc network wireless communication device network performance test system and method
CN114585001A (en) * 2022-02-10 2022-06-03 武汉迈威通信股份有限公司 Wireless performance test method and system
CN114585001B (en) * 2022-02-10 2024-03-22 武汉迈威通信股份有限公司 Wireless performance test method and system

Similar Documents

Publication Publication Date Title
CN112073128A (en) Communication equipment performance test method and device
US10674390B2 (en) Monitoring report generation method and apparatus, and user equipment
CN111835579B (en) Method and system for testing effectiveness of network traffic scheduling simulation
CN104202212A (en) System and method for obtaining distributed cluster system alarm
US20180062972A1 (en) Methods, systems and computer readable media for quiescence-informed network testing
US20170163505A1 (en) Application centric network experience monitoring
CN114553730B (en) Application identification method and device, electronic equipment and storage medium
CN109257335A (en) It keeps back the method for source link, return source method, relevant apparatus and storage medium
CN111343135B (en) Network security situation detection method
CN114416933A (en) Complaint processing method and device, electronic equipment and storage medium
CN107360012A (en) A kind of Link State processing method and apparatus for network node
CN109547287B (en) Bandwidth testing method and device and storage medium
CN110224872B (en) Communication method, device and storage medium
CN104104555B (en) Monitoring method, system, control terminal and actuating station
US20170111256A1 (en) Hierarchical query response limiter
CN114710801B (en) Processing method and device of evaluation parameters of network performance, storage medium and equipment
CN116264592A (en) Virtual desktop performance detection method, device, equipment and storage medium
WO2017131777A1 (en) Application aware cluster monitoring
CN105553781A (en) Method and device for measuring bottleneck bandwidth
CN112422303B (en) Alarm data processing method, manager entity and network element
EP3910881A1 (en) Poor-qoe assessment method and related device
CN105704057B (en) The method and apparatus for determining the type of service of burst port congestion packet loss
CN109639528A (en) A kind of test method and device of log receptivity
CN114489730A (en) Remote upgrading method, terminal equipment and computer readable storage medium
CN114697319A (en) Tenant business management method and device of public cloud

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