CN112134754A - Pressure testing method and device, network equipment and storage medium - Google Patents

Pressure testing method and device, network equipment and storage medium Download PDF

Info

Publication number
CN112134754A
CN112134754A CN202010988654.5A CN202010988654A CN112134754A CN 112134754 A CN112134754 A CN 112134754A CN 202010988654 A CN202010988654 A CN 202010988654A CN 112134754 A CN112134754 A CN 112134754A
Authority
CN
China
Prior art keywords
pressure
pressure testing
test
tool
pressure test
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
CN202010988654.5A
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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010988654.5A priority Critical patent/CN112134754A/en
Publication of CN112134754A publication Critical patent/CN112134754A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a pressure testing method, which comprises the following steps: deploying a pressure testing tool at a pressure testing end, wherein the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of a UDP protocol; and calling the pressure testing tool to control the pressure testing terminal to perform pressure testing of the UDP protocol on the target service terminal. The embodiment of the invention also discloses a pressure testing device, network equipment and a storage medium. The pressure test method, the pressure test device, the network equipment and the storage medium provided by the embodiment of the invention can realize the pressure test of the UDP protocol and are effectively applied to the pressure test aiming at the UDP protocol.

Description

Pressure testing method and device, network equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a pressure testing method, apparatus, network device, and storage medium.
Background
The User Datagram Protocol (UDP) is a simple Datagram-oriented communication Protocol, is located in a transport layer of an Open System Interconnection (OSI) model, and provides a method for sending an encapsulated IP packet without establishing a connection for an application.
With the rapid development of internet services, more and more applications communicate between a client and an application server in a UDP manner in order to maintain the response speed of services. And the UDP mode is adopted for communication, so that instantaneous high concurrent flow can be processed, and the transmission efficiency between the backstage of the super-large-scale data is ensured.
However, the inventors found that the related art has at least the following problems: at present, pressure testing methods are all directed to Transmission Control Protocol (TCP), and there is no pressure testing method directed to UDP, and a pressure testing method directed to TCP cannot be effectively applied to pressure testing directed to UDP.
Disclosure of Invention
An object of embodiments of the present invention is to provide a pressure testing method, apparatus, network device, and storage medium, which can implement a pressure test of a UDP protocol and can be effectively applied to a pressure test for the UDP protocol.
In order to solve the above technical problem, an embodiment of the present invention provides a pressure testing method, including: deploying a pressure testing tool at a pressure testing end, wherein the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of a UDP protocol; and calling a pressure testing tool to control the pressure testing end to perform pressure testing of the UDP protocol on the target service end.
An embodiment of the present invention further provides a pressure testing apparatus, including: the deployment module is used for deploying the pressure testing tool at a pressure testing end, and the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of the UDP protocol; and the test module is used for calling the pressure test tool to control the pressure test end to carry out the pressure test of the UDP protocol on the target service end.
An embodiment of the present invention further provides a network device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the stress testing method.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the pressure testing method described above.
Compared with the related art, the embodiment of the invention can realize the pressure test of the UDP protocol of the target service end by deploying the pressure test tool developed based on the Netty framework at the pressure test end and calling the pressure test tool to control the pressure test end to carry out the pressure test of the UDP protocol on the target service end, and is effectively applied to the pressure test of the UDP protocol.
In addition, the pressure testing end comprises a plurality of pressure testing machines; deploying a pressure testing tool at a pressure testing end, specifically: a deployment script is invoked to deploy a pressure testing tool at each pressure tester. The pressure testing tools are deployed on each pressure testing machine by calling the deployment script, so that the automation degree of pressure testing can be improved, and the deployment efficiency of the pressure testing tools can be effectively improved when the pressure testing ends comprise more pressure testing machines; in addition, when the concurrency of the pressure test requirements is large and more pressure test machines are needed to perform the pressure test of the UDP protocol on the target service end, the capacity of the pressure test machine used for the pressure test can be conveniently expanded by calling the deployment tool.
In addition, before the pressure testing tool is deployed at the pressure testing end, the method further comprises the following steps: adding a test indicator to the stress testing tool; calling a pressure testing tool to control a pressure testing end to perform pressure testing of a UDP protocol on a target server, comprising the following steps: when a pressure test of a UDP protocol is carried out on a target server, a pressure test tool is used for obtaining the numerical value of a test index of a pressure test end; and if the numerical value of the test index does not reach the preset standard, sending a prompt message. By adding the test indexes into the pressure test tool, the test indexes can be automatically obtained, and the efficiency of obtaining the test indexes is improved; when the numerical value of the test index does not reach the preset standard, a prompt message is sent, so that automatic alarm of the pressure test can be effectively realized, managers of the pressure test can conveniently and effectively intervene in the process of the pressure test, and the efficiency of the pressure test is improved.
In addition, the target server comprises a plurality of application servers; after the pressure testing tool is called to control the pressure testing end to perform the pressure test of the UDP protocol on the target service end, the method further comprises the following steps: acquiring pressure test results of a plurality of application servers; and counting the pressure test results to generate a pressure test report of the target server.
In addition, the pressure test results of a plurality of application servers are obtained, specifically: and acquiring pressure test results of the plurality of application servers through the monitoring script.
In addition, after the pressure testing tool is deployed at the pressure testing end, the method further comprises the following steps: collecting operation logs of a plurality of application servers; after the statistical stress test result is obtained to generate a stress test report of the target server, the method further comprises the following steps: acquiring abnormal information in the test report; and acquiring the running log according to the abnormal information so as to analyze the abnormal information. By acquiring the operation log according to the abnormal information, the abnormal information can be conveniently analyzed, so that the problem is positioned, and the problem is favorably solved.
In addition, calling a pressure test tool to control a pressure test end to perform pressure test of the UDP protocol on the target service end comprises the following steps: when the pressure test of the UDP protocol is carried out on the target server, the pressure test tool is used for controlling the pressure test end to send the UDP message to the target server at regular time so as to monitor a UDP protocol data link for the pressure test. By sending the UDP message to the target server, the channel for pressure test can be ensured to normally exist, so that the normal operation of the pressure test of the UDP protocol of the target server is ensured.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
FIG. 1 is a schematic flow chart of a pressure testing method according to a first embodiment of the present invention;
FIG. 2 is a schematic illustration of a pressure testing method provided in a first embodiment of the present invention;
FIG. 3 is a diagram illustrating an application flow of a pressure testing method according to a first embodiment of the present invention;
FIG. 4 is a diagram illustrating another exemplary process of the pressure testing method according to the first embodiment of the present invention;
FIG. 5 is a schematic flow chart of a pressure testing method according to a second embodiment of the present invention;
FIG. 6 is a diagram illustrating an application example of a pressure testing method according to a second embodiment of the present invention;
fig. 7 is a schematic block diagram of a pressure testing apparatus according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a pressure testing method, which is characterized in that a pressure testing tool is deployed at a pressure testing end, wherein the pressure testing tool is developed on the basis of a Netty framework and is used for the pressure testing of a UDP (user Datagram protocol); the pressure testing tool is called to control the pressure testing end to carry out the pressure testing of the UDP protocol on the target server end, so that the pressure testing of the UDP protocol of the target server end can be realized, and the pressure testing tool is effectively applied to the pressure testing of the UDP protocol.
It should be noted that the execution main body of the pressure testing method provided by the embodiment of the present invention may be a monitoring server connected to the pressure testing terminal, where the monitoring server may be implemented by a single server or a cluster of multiple servers. The following description will take the monitoring server as an example.
The specific flow of the pressure testing method provided by the embodiment of the invention is shown in fig. 1, and specifically comprises the following steps:
s101: and deploying a pressure testing tool at a pressure testing end, wherein the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of the UDP protocol.
The Netty framework is a java open source framework, provides asynchronous and event-driven network application program frameworks and tools for developing high-performance and high-reliability network servers and client programs, is a programming framework of a non-blocking (NIO) based client and server terminal, and can simplify and streamline the programming development process of network applications, such as socket (socket) service development based on TCP and UDP.
It can be understood that, when a pressure test tool of different services is developed based on a Netty framework, configuration can be performed according to a similar method, but when the applied services are different, UDP messages sent may be different; likewise, different pressure parameters can be set according to the needs of the actual service, wherein the pressure parameters can include: a stress test protocol, a maximum new number, a target server IP, a port, a start time, an end time, a Transaction Per Second (TPS), a response time, and the like.
Optionally, the pressure parameters may be added through a class of the Netty framework, so that the pressure testing tool may control the pressure testing end to perform the pressure test on the target service end according to the added pressure parameters, for example, the pressure parameters may be put into an Excel file by processing specific requirements of the pressure test through a getprefinedvals class in the Netty framework, so that the getprefinedvals class may process the pressure requirements corresponding to the pressure parameters.
S102: and calling a pressure testing tool to control the pressure testing end to perform pressure testing of the UDP protocol on the target service end.
It should be noted that, in the pressure test of the UDP protocol, the pressure test includes concurrent and instant new pressure tests, where the instant new pressure test refers to a test released immediately after a specified number of connections are newly established, and is used to evaluate the instant acceptance capability of the target server; and the concurrency means that the corresponding connection is maintained after the new connection is established, so that a certain number of connections are maintained to evaluate the bearing capacity of the target server.
Since the UDP protocol is a connectionless transport protocol, in order to ensure that the pressure test always operates normally, in a specific example, invoking a pressure test tool to control the pressure test end to perform the pressure test on the UDP protocol on the target server, including:
when the pressure test of the UDP protocol is carried out on the target server, the pressure test tool is used for controlling the pressure test end to send the UDP message to the target server at regular time so as to monitor a UDP protocol data link for the pressure test.
That is, by means of sending UDP messages at regular time (heartbeat), it is ensured that a channel between two parties (a pressure testing end and a target server end) of a pressure test normally exists, thereby ensuring that the pressure test of the UDP protocol of the target server end is normally performed.
Optionally, sending the UDP packet periodically may be implemented by an idlestatehandle class in the Netty framework.
In a specific example, the target server includes a plurality of application servers, and after the pressure testing tool is invoked to control the pressure testing terminal to perform a UDP protocol pressure test on the target server, the method further includes:
and acquiring the pressure test results of the plurality of application servers, and counting the pressure test results to generate a pressure test report of the target server.
The pressure test result may be obtained by setting a corresponding pressure test index in advance, for example, a CPU usage rate, a content usage rate, an IO wait time, a TPS, a response time, and the like of the application server, and forming the pressure test result of each application server according to an actual value of each pressure test index.
When the pressure test results of the application servers are obtained, optionally, the pressure test results of a plurality of application servers can be obtained through the monitoring script. Wherein, the monitoring script can be a ServerMonitor. Optionally, a monitoring script is deployed in each application server, so as to conveniently obtain the stress test result of the application server.
After the pressure testing tool is deployed at the pressure testing end, the method further comprises the following steps: collecting operation logs of a plurality of application servers; after the statistical stress test result is obtained to generate a stress test report of the target server, the method further comprises the following steps: and acquiring abnormal information in the test report, and acquiring the running log according to the abnormal information so as to analyze the abnormal information.
Optionally, when collecting the operation logs of each application server, the collection of the operation logs may be started before the stress test is performed on each application server, or may be started when the stress test is performed on each application server right before, and specifically, a tool such as an ELK may be used to collect the operation logs.
Optionally, when the test report is generated, each test index in the pressure test result may be compared with a preset standard value, and if a certain test index in the pressure test result does not reach the preset standard value, the test index is taken as one of the abnormal information.
Acquiring the running log according to the abnormal information means acquiring the corresponding time and the corresponding running log of the application server according to the abnormal information, so as to analyze the abnormal information according to the corresponding running log.
By acquiring the operation log according to the abnormal information, the abnormal information can be conveniently analyzed, so that the problem is positioned, and the problem is favorably solved.
In a specific example, tools such as Zabbix and the like can be used for collecting resource information (such as memory, CPU and the like) of each application server, and when abnormal information is analyzed, analysis is performed according to the running log and the resource information of each application server, which is beneficial to more comprehensively and rapidly positioning and solving problems.
Please refer to fig. 2, which is a schematic diagram illustrating a pressure testing method according to an embodiment of the present invention. Specifically, the deployment tool automatically deploys the pressure test tool at the pressure test end, calls the pressure test tool to control the pressure test end to perform pressure test of a UDP protocol on the target service end, generates a test report of the target service end by using the performance index generation report system, and performs statistics on performance data of the target service end by using the performance data statistics system.
Please refer to fig. 3, which is a flowchart illustrating an application process of the pressure testing method according to an embodiment of the present invention. Specifically, pressure test indexes such as the CPU utilization rate, the content utilization rate, the IO waiting time and the like of a target server are collected through an automatic monitor, real-time monitoring is carried out according to the collected pressure test indexes, a visual statistical index is formed, and meanwhile, an automatic performance test report of a pressure test can be generated; then, acquiring a corresponding running log according to the test report, and performing problem troubleshooting; after the problem is solved, the optimization of the pressure test tool and the pressure test service is carried out, so that the subsequent pressure test is further optimized.
Please refer to fig. 4, which is a flowchart illustrating another application of the pressure testing method according to the embodiment of the present invention. Specifically, a pressure testing tool and a deployment tool are developed, the pressure testing tool is deployed at a pressure testing end in a one-key mode through the deployment tool, and then pressure testing of a UDP (user datagram protocol) is conducted on a target server end; after the pressure test is started, respectively carrying out data monitoring on a pressure test end, F5 pressure test index monitoring and data monitoring on a target service end; collecting and counting index data (such as TPS, response time, number of concurrent connections, number of newly-built connections and the like) according to the monitored data; on the basis of statistics, pushing a message to a monitoring server according to early warning setting and alarm setting; if the resources, TPS or response time of the pressure test end are alarmed, optimizing the pressure test tool, and then performing pressure test after optimization; if the resource alarm or the pressure test index of the target service end does not reach the standard, optimizing the code or the frame of the service to be tested, and then performing the pressure test after optimization; and if no alarm occurs, executing the pressure test until the pressure test is finished.
Compared with the prior art, the pressure testing method provided by the embodiment of the invention can realize the pressure testing of the UDP protocol of the target service end by deploying the pressure testing tool developed based on the Netty framework at the pressure testing end and calling the pressure testing tool to control the pressure testing end to carry out the pressure testing of the UDP protocol on the target service end, and is effectively applied to the pressure testing of the UDP protocol.
A second embodiment of the present invention relates to a pressure testing method. The second embodiment is substantially the same as the first embodiment, and mainly differs therefrom in that: in this embodiment, before the deployment of the pressure testing tool at the pressure testing end, the method further includes: adding a test indicator to the stress testing tool; and calling a pressure test tool to control the pressure test end to perform pressure test of the UDP protocol on the target service end, comprising the following steps: when the pressure test of the UDP protocol is carried out on the target server, the pressure test tool is used for obtaining the numerical value of the test index of the pressure test end, and if the numerical value of the test index does not reach the preset standard, a prompt message is sent out.
A specific flow of the pressure testing method provided by the embodiment of the present invention is shown in fig. 5, and specifically includes the following steps:
s201: a test indicator is added to the stress testing tool.
Optionally, a Handler may be added to the ChannelPipeline responsibility chain in the Netty framework, a channelRead0() method is defined in the Handler, and then a test indicator is added to the method, so that the test indicator needing attention is added to the pressure test tool, wherein the test indicator may be TPS, average response time or pressure test duration, for example.
S202: and deploying a pressure testing tool at a pressure testing end, wherein the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of the UDP protocol.
In a specific example, the pressure testing end includes a plurality of pressure testers, and the deploying of the pressure testing tool at the pressure testing end may specifically be: a deployment script is invoked to deploy a pressure testing tool at each pressure tester.
The deployment script may be a script developed by using JAVA, and is used for installing various supported conditions (for example, various supported conditions of a Netty framework) of the pressure testing tool in the pressure testing machine, so as to implement the deployment of the pressure testing tool.
The pressure testing tools are deployed on each pressure testing machine by calling the deployment script, so that the automation degree of pressure testing can be improved, and the deployment efficiency of the pressure testing tools can be effectively improved when the pressure testing ends comprise more pressure testing machines; in addition, when the concurrency of the pressure test requirements is large and more pressure test machines are needed to perform the pressure test of the UDP protocol on the target service end, the capacity of the pressure test machine used for the pressure test can be conveniently expanded by calling the deployment tool.
Please refer to fig. 6, which is a diagram illustrating an application example of the pressure testing method according to the present embodiment. In fig. 6, reading the user-defined data refers to reading data set by a user for checking whether the pressure tester is normal, and reading the Excel file refers to reading an Excel file of pressure parameters set by the user. Specifically, when deployment is carried out, user defined data is read, remote login is carried out, a deployment script is automatically executed, a pressure testing tool is deployed on each pressure testing machine (1 to n) through the deployment script, and each pressure testing machine feeds back response success or deployment failure information to a monitoring service end; and then reading the Excel file by the pressure testing tool, automatically starting or stopping the pressure test according to the Excel file setting, and finally counting the deployment result and starting and stopping the pressure test execution result so as to conveniently check the deployment condition and the pressure test execution condition.
S203: when the pressure test of the UDP protocol is carried out on the target server side, the numerical value of the test index of the pressure test side is obtained by using the pressure test tool.
Since the test index is added to the pressure test tool, when the target server is subjected to the pressure test of the UDP protocol, the pressure test tool can be used to obtain a specific numerical value of the test index in the pressure test terminal.
S204: and if the numerical value of the test index does not reach the preset standard, sending a prompt message.
The preset standard may be specifically set according to an actual situation, and is not specifically limited herein. The prompt message is used for prompting the user that the test index does not meet the preset standard, and the specific prompt message can be specifically set according to the actual index and the situation, and is not specifically limited here.
Specifically, the monitoring server compares the obtained value of the test index with a preset standard, and if the value of the test index reaches the preset standard, the pressure test is continued normally until the pressure test is finished; if the numerical value of the test index does not reach the preset standard, a prompt message is sent, and the pressure test can be continuously carried out at the moment, or the pressure test can be stopped according to the instruction of the user.
Compared with the prior art, the pressure testing method provided by the embodiment of the invention can realize automatic acquisition of the test indexes by adding the test indexes into the pressure testing tool, thereby improving the efficiency of obtaining the test indexes; when the numerical value of the test index does not reach the preset standard, a prompt message is sent, so that automatic alarm of the pressure test can be effectively realized, managers of the pressure test can conveniently and effectively intervene in the process of the pressure test, and the efficiency of the pressure test is improved.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps contain the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
The third embodiment of the present invention relates to a pressure testing apparatus 300, as shown in fig. 7, including a deployment module 301 and a testing module 302, and the functions of the modules are described in detail as follows:
the deployment module 301 is configured to deploy a pressure testing tool at a pressure testing end, where the pressure testing tool is developed based on a Netty framework and used for a pressure test of a UDP protocol;
the testing module 302 is configured to invoke a pressure testing tool to control the pressure testing terminal to perform a UDP pressure test on the target server.
Further, the pressure testing end includes a plurality of pressure testing machines, and the deployment module 301 is specifically configured to: a deployment script is invoked to deploy a pressure testing tool at each pressure tester.
Further, the pressure testing apparatus 300 according to the embodiment of the present invention further includes an adding module, where the adding module is configured to add the test index to the pressure testing tool, and the testing module 302 is specifically configured to:
when a pressure test of a UDP protocol is carried out on a target server, a pressure test tool is used for obtaining the numerical value of a test index of a pressure test end;
and if the numerical value of the test index does not reach the preset standard, sending a prompt message.
Further, the target server includes several application servers, and the pressure testing apparatus 300 provided in the embodiment of the present invention further includes a reporting module, where the reporting module is configured to:
acquiring pressure test results of a plurality of application servers;
and counting the pressure test results to generate a pressure test report of the target server.
Further, the reporting module is specifically configured to:
and acquiring pressure test results of the plurality of application servers through the monitoring script.
Further, the pressure testing apparatus 300 provided by the embodiment of the present invention further includes an acquisition module and an analysis module, where the acquisition module is configured to: collecting operation logs of a plurality of application servers; the analysis module is used for: acquiring abnormal information in the test report; and acquiring the running log according to the abnormal information so as to analyze the abnormal information.
Further, the testing module 302 is further configured to: when the pressure test of the UDP protocol is carried out on the target server, the pressure test tool is used for controlling the pressure test end to send the UDP message to the target server at regular time so as to monitor a UDP protocol data link for the pressure test.
It should be understood that this embodiment is an example of the apparatus corresponding to the first and second embodiments, and may be implemented in cooperation with the first and second embodiments. The related technical details mentioned in the first and second embodiments are still valid in this embodiment, and are not described herein again to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first and second embodiments.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the invention relates to a network device, as shown in fig. 8, comprising at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401 to enable the at least one processor 401 to perform the stress testing method described above.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. 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.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A pressure testing method, comprising:
deploying a pressure testing tool at a pressure testing end, wherein the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of a UDP protocol;
and calling the pressure testing tool to control the pressure testing terminal to perform pressure testing of the UDP protocol on the target service terminal.
2. The pressure testing method of claim 1, wherein the pressure testing end comprises a plurality of pressure testers;
the pressure testing tool is deployed at a pressure testing end, and specifically comprises:
and calling a deployment script to deploy the pressure testing tool in each pressure testing machine.
3. The pressure testing method of claim 1, further comprising, prior to said deploying the pressure testing tool at the pressure testing end:
adding a test indicator to the stress testing tool;
the step of calling the pressure testing tool to control the pressure testing terminal to perform pressure testing of a UDP protocol on a target service terminal includes:
when the target server side is subjected to pressure test of a UDP protocol, the pressure test tool is utilized to obtain the numerical value of the test index of the pressure test side;
and if the numerical value of the test index does not reach the preset standard, sending a prompt message.
4. The pressure testing method of claim 1, wherein the target server comprises a plurality of application servers;
after the calling of the pressure testing tool controls the pressure testing terminal to perform the pressure test of the UDP protocol on the target service terminal, the method further includes:
acquiring pressure test results of the plurality of application servers;
and counting the pressure test result to generate a pressure test report of the target server.
5. The pressure testing method according to claim 4, wherein the obtaining of the pressure testing results of the plurality of application servers specifically comprises:
and acquiring the pressure test results of the plurality of application servers through the monitoring script.
6. The pressure testing method of claim 4, further comprising, after said deploying the pressure testing tool at the pressure testing end:
collecting the running logs of the plurality of application servers;
after the counting the stress test result to generate the stress test report of the target server, further comprising:
acquiring abnormal information in the test report;
and acquiring the running log according to the abnormal information so as to analyze the abnormal information.
7. The method according to claim 1, wherein the invoking the stress testing tool to control the stress testing end to perform a UDP protocol stress test on a target server, includes:
when the pressure test of the UDP protocol is carried out on the target server, the pressure test tool is used for controlling the pressure test end to send the UDP message to the target server at regular time so as to monitor a UDP protocol data link for the pressure test.
8. A pressure testing device, comprising:
the deployment module is used for deploying a pressure testing tool at a pressure testing end, and the pressure testing tool is developed based on a Netty framework and is used for the pressure testing of a UDP (user datagram protocol);
and the test module is used for calling the pressure test tool to control the pressure test terminal to carry out UDP protocol pressure test on the target service terminal.
9. A network device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the stress testing method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the pressure testing method according to any one of claims 1 to 7.
CN202010988654.5A 2020-09-18 2020-09-18 Pressure testing method and device, network equipment and storage medium Pending CN112134754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010988654.5A CN112134754A (en) 2020-09-18 2020-09-18 Pressure testing method and device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010988654.5A CN112134754A (en) 2020-09-18 2020-09-18 Pressure testing method and device, network equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112134754A true CN112134754A (en) 2020-12-25

Family

ID=73841378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010988654.5A Pending CN112134754A (en) 2020-09-18 2020-09-18 Pressure testing method and device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112134754A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112838966A (en) * 2021-04-22 2021-05-25 北京拓课网络科技有限公司 UDP link monitoring method and system and electronic equipment
CN116074218A (en) * 2023-04-07 2023-05-05 中国信息通信研究院 Pressure test method, device, equipment and medium for identifying analysis node
CN116501559A (en) * 2023-04-18 2023-07-28 杭州指令集智能科技有限公司 Method for realizing distributed HTTP interface performance test based on Netty
WO2024041018A1 (en) * 2022-08-23 2024-02-29 京东科技控股股份有限公司 Method and apparatus for adjusting response duration of stress test system, and device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775968A (en) * 2016-11-29 2017-05-31 上海斐讯数据通信技术有限公司 A kind of server test method, apparatus and system
CN108710565A (en) * 2018-03-05 2018-10-26 聚好看科技股份有限公司 A kind of method for testing pressure, apparatus and system
CN108845954A (en) * 2018-08-31 2018-11-20 中国联合网络通信集团有限公司 Method for testing pressure, system and storage medium
CN109491895A (en) * 2018-10-26 2019-03-19 北京车和家信息技术有限公司 Server stress test method and device
CN109726014A (en) * 2018-12-29 2019-05-07 武汉斗鱼网络科技有限公司 Implementation method, system, server and storage medium of the Rpc client based on Netty in Testing Platform
WO2019205280A1 (en) * 2018-04-24 2019-10-31 平安科技(深圳)有限公司 Server testing method, apparatus, and device, and computer readable storage medium
CN110750458A (en) * 2019-10-22 2020-02-04 恩亿科(北京)数据科技有限公司 Big data platform testing method and device, readable storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775968A (en) * 2016-11-29 2017-05-31 上海斐讯数据通信技术有限公司 A kind of server test method, apparatus and system
CN108710565A (en) * 2018-03-05 2018-10-26 聚好看科技股份有限公司 A kind of method for testing pressure, apparatus and system
WO2019205280A1 (en) * 2018-04-24 2019-10-31 平安科技(深圳)有限公司 Server testing method, apparatus, and device, and computer readable storage medium
CN108845954A (en) * 2018-08-31 2018-11-20 中国联合网络通信集团有限公司 Method for testing pressure, system and storage medium
CN109491895A (en) * 2018-10-26 2019-03-19 北京车和家信息技术有限公司 Server stress test method and device
CN109726014A (en) * 2018-12-29 2019-05-07 武汉斗鱼网络科技有限公司 Implementation method, system, server and storage medium of the Rpc client based on Netty in Testing Platform
CN110750458A (en) * 2019-10-22 2020-02-04 恩亿科(北京)数据科技有限公司 Big data platform testing method and device, readable storage medium and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BEETLES: "《TCP&UDP压力测试工具》", 《博客园》 *
BEETLES: "《TCP&UDP压力测试工具》", 《博客园》, 15 April 2013 (2013-04-15) *
李巨等: "基于UML的UDP通信仿真测试软件设计与实现", 《信息与电子工程》 *
李巨等: "基于UML的UDP通信仿真测试软件设计与实现", 《信息与电子工程》, no. 03, 25 June 2010 (2010-06-25) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112838966A (en) * 2021-04-22 2021-05-25 北京拓课网络科技有限公司 UDP link monitoring method and system and electronic equipment
WO2024041018A1 (en) * 2022-08-23 2024-02-29 京东科技控股股份有限公司 Method and apparatus for adjusting response duration of stress test system, and device and medium
CN116074218A (en) * 2023-04-07 2023-05-05 中国信息通信研究院 Pressure test method, device, equipment and medium for identifying analysis node
CN116074218B (en) * 2023-04-07 2023-06-02 中国信息通信研究院 Pressure test method, device, equipment and medium for identifying analysis node
CN116501559A (en) * 2023-04-18 2023-07-28 杭州指令集智能科技有限公司 Method for realizing distributed HTTP interface performance test based on Netty
CN116501559B (en) * 2023-04-18 2024-04-26 杭州指令集智能科技有限公司 Method for realizing distributed HTTP interface performance test based on Netty

Similar Documents

Publication Publication Date Title
CN112134754A (en) Pressure testing method and device, network equipment and storage medium
EP3386150B1 (en) Terminal failure processing method, device and system
CN114124451B (en) Data processing method and system for Internet of things equipment and computer storage medium
CN111338814A (en) Message processing method and device, storage medium and electronic device
CN105052076B (en) Network element management system and network element management method based on cloud computing
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN106407061B (en) Northbound interface testing device and northbound interface testing method
CN105530658B (en) Remote diagnosis method, device and system for wireless communication module
CN114422386A (en) Monitoring method and device for micro-service gateway
CN111506641B (en) Data management method, data acquisition platform, data management system and storage medium
CN111639022B (en) Transaction testing method and device, storage medium and electronic device
CN117251373A (en) Pressure testing method, device, equipment and storage medium
CN116340111A (en) Linux socket monitoring event monitoring method and device
CN112312376B (en) Method and system for remotely and interactively managing multifunctional electric meter
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN113032054A (en) Service execution method, device, storage medium and electronic device
CN107102884B (en) Method and device for customizing virtual machine operation
CN106972942B (en) Alarm processing method and system
CN105610595B (en) Fault data acquisition system, remote equipment control system and corresponding method thereof
CN111858043B (en) Service request processing method and device, storage medium and electronic device
CN114205422B (en) Non-invasive service processing method, device, equipment and storage medium
CN113076238B (en) Pressure testing method and device, storage medium and electronic equipment
CN115665782A (en) Monitoring method, device, equipment and storage medium of industrial private network
CN117667565A (en) Business abnormality monitoring method, electronic equipment and storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201225

RJ01 Rejection of invention patent application after publication