CN114553941A - Service dial testing method and device based on RPC communication - Google Patents

Service dial testing method and device based on RPC communication Download PDF

Info

Publication number
CN114553941A
CN114553941A CN202111629367.6A CN202111629367A CN114553941A CN 114553941 A CN114553941 A CN 114553941A CN 202111629367 A CN202111629367 A CN 202111629367A CN 114553941 A CN114553941 A CN 114553941A
Authority
CN
China
Prior art keywords
dial testing
actuator
dial
execution result
task
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
CN202111629367.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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111629367.6A priority Critical patent/CN114553941A/en
Publication of CN114553941A publication Critical patent/CN114553941A/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/50Testing arrangements
    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The embodiment of the invention provides a service dial testing method and device based on RPC communication, and relates to the technical field of service dial testing. The method comprises the following steps: creating dial testing tasks according to different dial testing protocol types, setting a dial testing actuator network environment label according to a dial testing environment, then selecting a dial testing actuator according to the dial testing tasks and the dial testing actuator network environment label, calling the dial testing actuator through RPC communication to execute the dial testing tasks, and finally obtaining an execution result output by the dial testing actuator. According to the embodiment of the invention, different dial testing tasks are established through the dial testing protocol types, and the labels are set according to different dial testing environments, so that the tasks can be automatically executed to test in a plurality of environments only by deploying the actuators in different network environments and appointing the labels, and the method is a better processing method.

Description

Service dial testing method and device based on RPC communication
Technical Field
The invention relates to the technical field of service dial testing, in particular to a service dial testing method based on RPC communication and a service dial testing device based on RPC communication.
Background
With the development of services, more and more applications are deployed, how to uniformly monitor and manage the service operation survival, time consumption and abnormal response of each service line becomes a problem to be solved.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a service dial testing method based on RPC communication and a corresponding service dial testing apparatus based on RPC communication, which overcome or at least partially solve the above problems.
In order to solve the above problems, the embodiment of the present invention discloses a service dial testing method based on remote procedure call protocol (RPC) communication, which comprises:
creating a dial testing task according to different types of dial testing protocols;
setting a dial testing actuator network environment label according to the dial testing environment;
selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label;
calling the dial testing actuator through RPC communication to execute the dial testing task;
and acquiring an execution result output by the dial testing actuator.
Optionally, the dial testing protocol type includes: internet control message protocol ICMP, transmission control protocol TCP and hypertext transfer protocol HTTP;
the dial testing executor network environment label comprises: public networks, internal networks, and hybrid networks.
Optionally, the selecting a dial testing executor according to the dial testing task and the dial testing executor network environment label includes:
setting the execution time of the dial testing task by using a time wheel;
and when the execution time of the dial testing task is reached, selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label.
Optionally, before selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment tag, the method includes:
registering the dial testing executor network environment label in an executor management module;
setting a corresponding label for the dial testing actuator;
and storing the dial testing actuator to the dial testing actuator group of the corresponding label.
Optionally, the dial testing executor comprises at least one of a dial testing executor for ICMP commands, a dial testing executor for TCP commands, and a dial testing executor for HTTP/HTTPs commands; the selecting of the dial testing actuator according to the dial testing task and the dial testing actuator network environment label comprises the following steps:
selecting a dial testing actuator group matched with the label according to the dial testing actuator network environment label;
and selecting the dial testing actuator corresponding to the command in the dial testing actuator group according to the dial testing task.
Optionally, the method further comprises:
and transmitting the execution result to a distributed message queue for storage, and processing the execution result.
Optionally, the transmitting the execution result to a distributed message queue for storage, and processing the execution result includes:
and verifying the result of the dial testing task executed by the dial testing actuator.
If the execution result of the verification is failure, carrying out alarm notification according to the execution result;
if the verified execution result is successful, acquiring a stored last execution result from the distributed message queue and judging;
if the last execution result is successful, no processing is performed;
and if the last execution result is failure, performing notification processing according to the verified execution result.
Correspondingly, the embodiment of the invention discloses a service dial testing device based on RPC communication, which comprises:
the creating module is used for creating dial testing tasks according to different types of dial testing protocols;
the label module is used for setting a network environment label of the dial testing actuator according to the dial testing environment;
the selection module is used for selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label;
the calling module is used for calling the dial testing executor to execute the dial testing task through RPC communication;
and the output module is used for acquiring the execution result output by the dial testing actuator.
Optionally, the dial testing protocol type includes: internet control message protocol ICMP, transmission control protocol TCP and hypertext transfer protocol HTTP;
the dial testing executor network environment label comprises: public networks, internal networks, and hybrid networks.
Optionally, the selecting a dial testing executor according to the dial testing task and the dial testing executor network environment label includes:
the time wheel module is used for setting the execution time of the dial testing task by using a time wheel;
and the time setting sub-module is used for selecting the dial testing actuator according to the dial testing task and the dial testing actuator network environment label when the execution time of the dial testing task is reached.
Optionally, before selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment tag, the method includes:
the register submodule is used for registering the network environment label of the dial testing actuator in the actuator management module;
the label submodule is used for setting a corresponding label for the dial testing actuator;
and the storage submodule is used for storing the dial testing actuator to the dial testing actuator group of the corresponding label.
Optionally, the dial testing executor comprises at least one of a dial testing executor for ICMP commands, a dial testing executor for TCP commands, and a dial testing executor for HTTP/HTTPs commands; the selecting of the dial testing actuator according to the dial testing task and the dial testing actuator network environment label comprises the following steps:
the matching sub-module is used for selecting a dial testing actuator group with matched labels according to the dial testing actuator network environment labels;
and the selection submodule is used for selecting the dial testing actuator corresponding to the command in the dial testing actuator group according to the dial testing task.
Optionally, the method further comprises:
and the storage submodule is used for transmitting the execution result to a distributed message queue for storage and processing the execution result.
Optionally, the transmitting the execution result to a distributed message queue for storage, and processing the execution result includes:
and the verification submodule is used for verifying the result of the dial testing task executed by the dial testing actuator.
If the execution result of the verification is failure, carrying out alarm notification according to the execution result;
if the verified execution result is successful, acquiring the stored last execution result from the distributed message queue and judging;
if the last execution result is successful, no processing is performed;
and if the last execution result is failure, performing notification processing according to the verified execution result.
The embodiment of the invention has the following advantages: the dial testing task is created according to different dial testing protocol types, the dial testing actuator network environment label is set according to the dial testing environment, then the dial testing actuator is selected according to the dial testing task and the dial testing actuator network environment label, the dial testing actuator is called through RPC communication to execute the dial testing task, and finally the execution result output by the dial testing actuator is obtained. According to the embodiment of the invention, different dial testing tasks are established through the dial testing protocol types, and the labels are set according to different dial testing environments, so that the tasks can be automatically executed to test in a plurality of environments only by deploying the actuators in different network environments and appointing the labels, and the method is a better processing method.
Drawings
Fig. 1 is a flowchart illustrating steps of a service dial testing method based on RPC communication according to an embodiment of the present invention;
fig. 2 is a block diagram of a service dial testing device based on RPC communication according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the prior art, a log method is generally adopted to monitor a service in real time, but if an abnormality occurs, the log real-time analysis is not timely, so that the problem cannot be found in time.
One of the core ideas of the embodiment of the invention is that a dial testing actuator is called by using a remote Procedure Call protocol (RPC) (remote Procedure Call protocol) to monitor data, and when an abnormality occurs, a problem can be found at the first time.
Referring to fig. 1, a flowchart illustrating steps of a service dial testing method based on RPC communication according to an embodiment of the present invention is shown, where the method specifically includes the following steps:
and 101, creating a dial testing task according to different types of dial testing protocols.
And according to different dial testing protocol types, different dial testing tasks are created. The dial-up test is a test means of network link quality, and is used for detecting the link condition from users in various regions to various service access points. The dial testing protocol types include: an Internet Control Message Protocol (ICMP) (Internet Control Message protocol), a Transmission Control Protocol (TCP) (Transmission Control protocol) and a hypertext Transfer protocol (HTTP) (Hypertext Transfer protocol) can respectively establish an ICMP dial test task, a TCP dial test task and an HTTP dial test task, wherein the ICMP is a subprotocol of a TCP/IP protocol cluster and is used for transmitting Control messages between an IP host and a router. Control messages refer to messages of the network itself, such as network traffic down, whether a host is reachable, whether routing is available, etc. These control messages, although not transmitting user data, play an important role in the delivery of user data. TCP refers to a protocol cluster that enables the transfer of information between multiple different networks. HTTP is a simple request-response protocol that typically runs on top of TCP. It specifies what messages the client may send to the server and what responses to get. The headers of the request and response messages are given in ASCII form; and the message content has a MIME-like format. This simple model is an instrumental minister of early Web success because it makes development and deployment very straightforward.
And 102, setting a dial testing actuator network environment label according to the dial testing environment.
And setting a dial testing actuator network environment label according to the dial testing environment. Wherein, dial and survey executor network environment label includes: public networks, internal networks, and hybrid networks. The dial testing environment is the current running network environment, and the executor receives the control signal from the controller, so the dial testing executor network environment label is the label for testing the network link quality of the control signal from the controller according to the current running network environment. The public network, the Internet, is an aggregation of computer networks that interconnect computer networks (including local area networks, metropolitan area networks, and wide area networks) at different locations and scales around the world. The intranet refers to an internal lan, that is, the intranet is generally used for intercommunication between computers within the lan, and does not communicate with an external network. A hybrid network is a mixture of networks, a hybrid network being a network that contains multiple provider network hardware and devices, or network infrastructure (dating back to the first).
And 103, selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label.
And selecting the dial testing actuator according to the set dial testing task and the set dial testing actuator network environment label.
In an embodiment of the present invention, the step of selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment tag may include the following sub-steps:
a substep S1031, setting the execution time of the dial testing task by using a time wheel;
and a substep S1032 of selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label when the execution time of the dial testing task is reached.
And setting the execution time of the dial testing task by using a time wheel, and selecting the dial testing actuator according to the set dial testing task and the set dial testing actuator network environment label when the execution time of the dial testing task is reached, wherein the minimum execution period set by the time wheel can be set to second. For example, the dial testing task is executed at 12:00 hours every day, and the dial testing task is executed after 10 seconds.
In an embodiment of the present invention, the step before selecting the dial testing actuator according to the dial testing task and the dial testing actuator network environment tag may include the following sub-steps:
substep S1033, registering the dial testing actuator network environment label in the actuator management module;
substep S1034, set up the correspondent label to the said dial testing actuator;
and a substep S1035 of saving the dial testing actuator to the dial testing actuator group of the corresponding label.
Before selecting a dial testing actuator according to a set dial testing task and a set dial testing actuator network environment label, the dial testing actuator network environment label needs to be registered in an actuator management module, after the registration is completed, a corresponding label is set for the dial testing actuator, and the dial testing actuator is stored in a dial testing actuator group of the corresponding label. For example, a public network, an intranet network, and a hybrid network are registered in the executor management module, and then the dial-up executor is set with tags corresponding to the public network, the intranet network, and the hybrid network. And storing the dial testing actuator to the dial testing actuator group of the corresponding label according to the corresponding label set by the dial testing actuator, wherein when the actuator management module registers, if the label is detected to appear for the first time, the registration is successful, if the label exists in the actuator management module, the corresponding label is directly set for the dial testing actuator, and the dial testing actuator is managed through the actuator management module, so that the random insertion and random use are realized, the occupation of resources can be controlled according to the service quantity, and the cost is reduced.
In the embodiment of the invention, the dial testing executor comprises at least one of a dial testing executor aiming at an ICMP (internet control protocol) command, a dial testing executor aiming at a TCP (transmission control protocol) command and a dial testing executor aiming at an HTTP/HTTPS (hyper text transport protocol/hypertext transfer protocol secure) command; the step of selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label may comprise the following sub-steps:
the substep S1036 is to select a dial testing actuator group with matched labels according to the dial testing actuator network environment label;
and a substep S1037, selecting the dial testing actuator corresponding to the command from the dial testing actuator group according to the dial testing task.
Classifying the dial testing actuators including at least one of dial testing actuators for ICMP commands, dial testing actuators for TCP commands, and dial testing actuators for HTTP/HTTPS commands,
matching the network environment label of the dial testing actuator with the label of the dial testing actuator group to obtain a matched dial testing actuator group, matching the dial testing actuators in the dial testing actuator group according to the dial testing task to obtain the dial testing actuators corresponding to the dial testing task, wherein available dial testing actuators are obtained, and if the dial testing actuators are unavailable, even if the dial testing actuators are matched, the unavailable dial testing actuators are not obtained. For example, if the current network environment is an intranet and the dial test task is ICMP, the matching tag is a dial test actuator group of the intranet, and then an available ICMP command dial test actuator is matched in the dial test actuator group of the intranet.
And 104, calling the dial testing actuator through RPC communication to execute the dial testing task.
And calling the dial testing actuator in the dial testing actuator group through RPC communication, and executing the dial testing task by the dial testing actuator. Among them, RPC is a remote procedure call protocol, which is a protocol that requests services from a remote computer program over a network without knowledge of the underlying network technology. For example, when the dial testing task is ICMP, the RPC carries ICMP data and calls the dial testing executor.
And 105, acquiring an execution result output by the dial testing actuator.
And when the execution of the dial testing actuator is finished, acquiring an execution result output by the dial testing actuator.
In the embodiment of the invention, the method further comprises the following substeps:
and a substep S1051, transmitting the execution result to a distributed message queue for storage, and processing the execution result.
And after the execution result is obtained, storing the execution result into a distributed message queue, and processing the execution result.
In this embodiment of the present invention, the substep of transmitting the execution result to a distributed message queue for storage and processing the execution result may include the following substeps:
from substep S10511, the results of the dial testing task performed by the dial testing actuator are verified.
If the execution result of the verification is failure, carrying out alarm notification according to the execution result;
if the verified execution result is successful, acquiring the stored last execution result from the distributed message queue and judging;
if the last execution result is successful, no processing is performed;
and if the last execution result is failure, performing notification processing according to the verified execution result.
The method comprises the steps of verifying the result of the dial testing task executed by a dial testing actuator, if the execution result of the verification is failure, carrying out alarm notification according to the execution result, if the execution result of the verification is success, obtaining the stored last execution result in a distributed message queue, judging the last execution result, not carrying out any processing when the last execution result is success, and carrying out notification processing according to the execution result of the verification when the last execution result is failure, wherein the content of the notification processing according to the execution result of the verification is repaired.
The embodiment of the invention has the following advantages: the dial testing task is created according to different dial testing protocol types, the dial testing actuator network environment label is set according to the dial testing environment, then the dial testing actuator is selected according to the dial testing task and the dial testing actuator network environment label, the dial testing actuator is called through RPC communication to execute the dial testing task, and finally the execution result output by the dial testing actuator is obtained. According to the embodiment of the invention, different dial testing tasks are established through the dial testing protocol types, and the labels are set according to different dial testing environments, so that the tasks can be automatically executed to test in a plurality of environments only by deploying the actuators in different network environments and appointing the labels, and the method is a better processing method.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a service dial testing device based on RPC communication according to an embodiment of the present invention is shown, and specifically includes the following modules:
a creating module 201, configured to create a dial testing task according to different types of dial testing protocols;
the label module 202 is used for setting a network environment label of the dial testing actuator according to the dial testing environment;
a selecting module 203, configured to select a dial testing actuator according to the dial testing task and the dial testing actuator network environment label;
the calling module 204 is used for calling the dial testing executor to execute the dial testing task through RPC communication;
and the output module 205 is configured to obtain an execution result output by the dial testing actuator.
Optionally, the dial testing protocol type includes: internet control message protocol ICMP, transmission control protocol TCP and hypertext transfer protocol HTTP;
the dial testing executor network environment label comprises: public networks, internal networks, and hybrid networks.
Optionally, the selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment tag includes:
the time wheel module is used for setting the execution time of the dial testing task by using a time wheel;
and the time setting sub-module is used for selecting the dial testing actuator according to the dial testing task and the dial testing actuator network environment label when the execution time of the dial testing task is reached.
Optionally, before selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment tag, the method includes:
the registration submodule is used for registering the dial testing actuator network environment label in the actuator management module;
the label submodule is used for setting a corresponding label for the dial testing actuator;
and the storage submodule is used for storing the dial testing actuator to the dial testing actuator group of the corresponding label.
Optionally, the dial testing executor comprises at least one of a dial testing executor for ICMP commands, a dial testing executor for TCP commands, and a dial testing executor for HTTP/HTTPs commands; the selecting of the dial testing actuator according to the dial testing task and the dial testing actuator network environment label comprises the following steps:
the matching sub-module is used for selecting a dial testing actuator group with matched labels according to the dial testing actuator network environment labels;
and the selection submodule is used for selecting the dial testing actuator corresponding to the command in the dial testing actuator group according to the dial testing task.
Optionally, the method further comprises:
and the storage submodule is used for transmitting the execution result to a distributed message queue for storage and processing the execution result.
Optionally, the transmitting the execution result to a distributed message queue for storage, and processing the execution result includes:
and the verification submodule is used for verifying the result of the dial testing task executed by the dial testing actuator.
If the execution result of the verification is failure, carrying out alarm notification according to the execution result;
if the verified execution result is successful, acquiring a stored last execution result from the distributed message queue and judging;
if the last execution result is successful, no processing is performed;
and if the last execution result is failure, performing notification processing according to the verified execution result.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
An embodiment of the present invention further provides an electronic device, including:
the RPC communication-based service dial testing method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein when the computer program is executed by the processor, each process of the RPC communication-based service dial testing method embodiment is realized, the same technical effect can be achieved, and the process is not repeated here to avoid repetition.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes each process of the service dial testing method embodiment based on RPC communication, can achieve the same technical effect, and is not repeated here to avoid repetition.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The service dial testing method based on the RPC communication and the service dial testing device based on the RPC communication provided by the invention are introduced in detail, and specific examples are applied to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A service dial testing method based on remote procedure call protocol (RPC) communication is characterized by comprising the following steps:
creating a dial testing task according to different types of dial testing protocols;
setting a dial testing actuator network environment label according to the dial testing environment;
selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label;
calling the dial testing actuator through RPC communication to execute the dial testing task;
and acquiring an execution result output by the dial testing actuator.
2. The method of claim 1,
the dial testing protocol types comprise: internet control message protocol ICMP, transmission control protocol TCP and hypertext transfer protocol HTTP;
the dial testing executor network environment label comprises: public networks, internal networks, and hybrid networks.
3. The method of claim 1, wherein selecting a dial testing actuator based on the dial testing task and the dial testing actuator network environment tag comprises:
setting the execution time of the dial testing task by using a time wheel;
and when the execution time of the dial testing task is reached, selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label.
4. The method of claim 1, wherein selecting a dial testing actuator based on the dial testing task and the dial testing actuator network environment tag comprises:
registering the dial testing executor network environment label in an executor management module;
setting a corresponding label for the dial testing actuator;
and storing the dial testing actuator to the dial testing actuator group of the corresponding label.
5. The method of claim 4, wherein the dial test executor comprises at least one of a dial test executor for ICMP commands, a dial test executor for TCP commands, and a dial test executor for HTTP/HTTPS commands; the selecting of the dial testing actuator according to the dial testing task and the dial testing actuator network environment label comprises the following steps:
selecting a dial testing actuator group matched with the label according to the dial testing actuator network environment label;
and selecting the dial testing actuator corresponding to the command in the dial testing actuator group according to the dial testing task.
6. The method of claim 1, further comprising:
and transmitting the execution result to a distributed message queue for storage, and processing the execution result.
7. The method of claim 6, wherein transmitting the execution result to a distributed message queue for storage and processing the execution result comprises:
and verifying the result of the dial testing task executed by the dial testing actuator.
If the execution result of the verification is failure, carrying out alarm notification according to the execution result;
if the verified execution result is successful, acquiring a stored last execution result from the distributed message queue and judging;
if the last execution result is successful, no processing is performed;
and if the last execution result is failure, performing notification processing according to the verified execution result.
8. A service dial testing device based on RPC communication, the device comprising:
the creating module is used for creating dial testing tasks according to different types of dial testing protocols;
the label module is used for setting a network environment label of the dial testing actuator according to the dial testing environment;
the selection module is used for selecting a dial testing actuator according to the dial testing task and the dial testing actuator network environment label;
the calling module is used for calling the dial testing executor to execute the dial testing task through RPC communication;
and the output module is used for acquiring the execution result output by the dial testing actuator.
9. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the RPC communication based traffic dial testing method according to any of the claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the RPC communication based traffic dial testing method according to any of the claims 1-7.
CN202111629367.6A 2021-12-28 2021-12-28 Service dial testing method and device based on RPC communication Pending CN114553941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111629367.6A CN114553941A (en) 2021-12-28 2021-12-28 Service dial testing method and device based on RPC communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111629367.6A CN114553941A (en) 2021-12-28 2021-12-28 Service dial testing method and device based on RPC communication

Publications (1)

Publication Number Publication Date
CN114553941A true CN114553941A (en) 2022-05-27

Family

ID=81670008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111629367.6A Pending CN114553941A (en) 2021-12-28 2021-12-28 Service dial testing method and device based on RPC communication

Country Status (1)

Country Link
CN (1) CN114553941A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603340A (en) * 2016-12-28 2017-04-26 成都网丁科技有限公司 Active dial testing method and system of CDN quality
CN107005441A (en) * 2016-08-25 2017-08-01 华为技术有限公司 Dial testing method, call-testing system and calculate node
US20200192762A1 (en) * 2018-12-18 2020-06-18 Storage Engine, Inc. Methods, apparatuses and systems for configuring a network environment for a server
CN111404782A (en) * 2020-03-17 2020-07-10 深圳市潮流网络技术有限公司 Terminal testing method and device, computing equipment and storage medium
CN113542076A (en) * 2020-11-02 2021-10-22 深圳市九九互动科技有限公司 Link detection method, link detection device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107005441A (en) * 2016-08-25 2017-08-01 华为技术有限公司 Dial testing method, call-testing system and calculate node
CN106603340A (en) * 2016-12-28 2017-04-26 成都网丁科技有限公司 Active dial testing method and system of CDN quality
US20200192762A1 (en) * 2018-12-18 2020-06-18 Storage Engine, Inc. Methods, apparatuses and systems for configuring a network environment for a server
CN111404782A (en) * 2020-03-17 2020-07-10 深圳市潮流网络技术有限公司 Terminal testing method and device, computing equipment and storage medium
CN113542076A (en) * 2020-11-02 2021-10-22 深圳市九九互动科技有限公司 Link detection method, link detection device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
司桂静等: "基于PC客户端的手机自动拨测系统", 山东通信技术, vol. 40, no. 3 *

Similar Documents

Publication Publication Date Title
CN110546606A (en) Tenant upgrade analysis
US20060282886A1 (en) Service oriented security device management network
US20070033441A1 (en) System for and method of multi-location test execution
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN110011875B (en) Dial testing method, device, equipment and computer readable storage medium
CN106209966A (en) Management and control end updates the method for equipment state, the treating method and apparatus of service end
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
CN111611054A (en) Application deployment method and device
CN108540505B (en) Content updating method and device
CN107168844B (en) Performance monitoring method and device
CN112733001A (en) Method and device for acquiring subscription information and electronic equipment
CN115412602A (en) Data parsing and transferring method, device, equipment and medium for digital twin
CN113377626A (en) Visual unified alarm method, device, equipment and medium based on service tree
US9176719B2 (en) Resolving prerequisites for a client device in an open service gateway initiative (OSGI) framework
CN116170235B (en) Database optimized access method, system, equipment and medium
CN114553941A (en) Service dial testing method and device based on RPC communication
CN111756599A (en) Service monitoring method and device
CN110875832B (en) Abnormal service monitoring method, device and system and computer readable storage medium
CN114172821B (en) Service state synchronization method and device and server
CN115632815A (en) Data updating method and device, electronic equipment and storage medium
CN109508278A (en) Middleware monitoring system and method
JP2006190033A (en) Information processing system and processing method for communication reproduction
CN111290873B (en) Fault processing method and device
US11425172B2 (en) Application security for service provider networks
CN114936156A (en) Method and device for processing automatic driving simulation task

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