CN113965476B - Inspection method, device and equipment based on application - Google Patents

Inspection method, device and equipment based on application Download PDF

Info

Publication number
CN113965476B
CN113965476B CN202111231507.4A CN202111231507A CN113965476B CN 113965476 B CN113965476 B CN 113965476B CN 202111231507 A CN202111231507 A CN 202111231507A CN 113965476 B CN113965476 B CN 113965476B
Authority
CN
China
Prior art keywords
application
information
data packet
terminal device
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111231507.4A
Other languages
Chinese (zh)
Other versions
CN113965476A (en
Inventor
李朝霞
邢鑫
康楠
肖征荣
李铭轩
温源
王本忠
成景山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Unicom Cloud Data Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Cloud Data 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 United Network Communications Group Co Ltd, Unicom Cloud Data Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111231507.4A priority Critical patent/CN113965476B/en
Publication of CN113965476A publication Critical patent/CN113965476A/en
Application granted granted Critical
Publication of CN113965476B publication Critical patent/CN113965476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • 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/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a patrol method, device and equipment based on application. The method comprises the following steps: when the application of the first terminal equipment sends a data packet, the sending information of the application of the first terminal equipment when sending the data packet is obtained through a preset application program interface and is sent to an application inspection system, and likewise, when the application of the second terminal equipment receives the data packet, the processing information of the application when receiving and processing the data packet is sent to the application inspection system, and the cloud application inspection system determines the performance information of the application of the first terminal equipment and the performance information of the application of the second terminal equipment according to the sending information of the application of one data packet in the first terminal equipment and the processing information of the application of the data packet in the second terminal equipment, so that the performance information of a micro-service architecture corresponding to the application is determined.

Description

Inspection method, device and equipment based on application
Technical Field
The present disclosure relates to cloud data technology, and in particular, to an inspection method, apparatus, and device based on application.
Background
The micro-service architecture is widely applied to the fields of mobile internet, cloud computing, big data, internet of things and the like, and one service request often relates to a plurality of applications.
In the prior art, when the service performance of the micro-service architecture is detected, a manual detection mode can be adopted, and the running condition of each application is analyzed by manually detecting the processing time of each application, so that the service performance of the micro-service architecture is detected.
However, in the prior art, with the gradual complexity of the micro service architecture and the increasing size and number of data centers, the service performance of the micro service architecture is not efficient by means of manual detection, the trend of service performance degradation cannot be found in early stage, and it is difficult to quickly locate fault application.
Disclosure of Invention
The application provides an inspection method based on application, which is used for solving the problem of low service performance efficiency of manual detection of a micro-service architecture.
In one aspect, the application provides an inspection method, an inspection device and inspection equipment based on application, wherein the method is applied to a cloud application inspection system, and the method comprises the following steps:
receiving sending information corresponding to each application sent by a first terminal device, wherein the sending information is information obtained by calling a preset application program interface when the application of the first terminal device sends a data packet, and the sending information is related information when the first terminal device sends the data packet;
receiving processing information corresponding to each application sent by a second terminal device, wherein the processing information is information acquired by a preset application program interface when the application of the second terminal device receives and processes a data packet, and the processing information is related information when the second terminal device receives and processes the data packet;
and determining performance information of the micro-service architecture corresponding to the application according to the sending information and the processing information.
In a possible implementation manner, the preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when the preset application program interface can be run.
In one possible implementation, the performance information includes performance parameter information for each server in the micro-service architecture; determining performance information of the micro service architecture corresponding to the application according to the sending information and the processing information, including:
determining processing duration information corresponding to each application according to the sending information corresponding to each application and the processing information corresponding to each application;
and determining the performance parameter information of the server corresponding to each application according to the processing time length information corresponding to each application.
In a possible implementation manner, the determining, according to the processing duration information corresponding to each application, performance parameter information of a server corresponding to each application includes:
if the data congestion problem of each application is determined according to the processing time length information corresponding to each application, acquiring the running information of the server corresponding to each application according to the processing time length information corresponding to each application;
and determining the performance parameter information of the server corresponding to each application according to the operation information of the server corresponding to each application.
In a possible implementation manner, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the first terminal equipment, the identification of a server corresponding to the application and the sending identification.
In a possible embodiment, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
In a possible implementation manner, the preset application program interface includes a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field.
In a second aspect, the present application provides an application-based inspection method, where the method is applied to a first terminal device, and the method includes:
when an application in the first terminal equipment sends a data packet, a preset application program interface is called to acquire sending information corresponding to each application, wherein the sending information is related information when the first terminal equipment sends the data packet;
transmitting the transmission information to a cloud application inspection system;
the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
In a possible implementation manner, the preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when the preset application program interface can be run.
In one possible implementation, the performance information includes performance parameter information for each server in the micro-service architecture;
wherein, the performance parameter information is determined according to the processing time length information corresponding to each application; the processing time length information corresponding to each application is determined according to the sending information corresponding to each application and the processing information corresponding to each application.
In a possible implementation manner, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the first terminal equipment, the identification of a server corresponding to the application and the sending identification.
In a possible embodiment, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
In a possible implementation manner, the preset application program interface includes a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field; when an application in the first terminal device sends a data packet, a preset application program interface is called to obtain sending information corresponding to each application, and the method comprises the following steps:
when an application in the first terminal equipment sends a data packet, a preset application program interface is called, and a sending parameter corresponding to each field is generated according to each field in the preset application program interface;
and generating the transmission information according to each transmission parameter.
In a third aspect, the present application provides an application-based inspection device, the device being applied to a cloud application inspection system, the device comprising:
the first receiving unit is used for receiving sending information corresponding to each application sent by the first terminal equipment, wherein the sending information is information obtained by calling a preset application program interface when the application of the first terminal equipment sends a data packet, and the sending information is related information when the first terminal equipment sends the data packet;
The second receiving unit is used for receiving processing information corresponding to each application, which is sent by the second terminal equipment, wherein the processing information is information acquired by a preset application program interface when the application of the second terminal equipment receives and processes a data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet;
and the determining unit is used for determining the performance information of the micro-service architecture corresponding to the application according to the sending information and the processing information.
In a possible implementation manner, the preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when the preset application program interface can be run.
In a possible embodiment, the determining unit comprises:
the first determining subunit is used for determining the processing time length information corresponding to each application according to the sending information corresponding to each application and the processing information corresponding to each application;
and the second determining subunit is used for determining the performance parameter information of the server corresponding to each application according to the processing time length information corresponding to each application.
In a possible embodiment, the second determining subunit includes:
the acquisition module is used for acquiring the running information of the server corresponding to each application according to the processing time length information corresponding to each application if the application is determined to have the data congestion problem according to the processing time length information corresponding to each application;
and the determining module is used for determining the performance parameter information of the server corresponding to each application according to the operation information of the server corresponding to each application.
In a possible implementation manner, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the first terminal equipment, the identification of a server corresponding to the application and the sending identification.
In a possible embodiment, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
In a possible implementation manner, the preset application program interface includes a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field.
Fourth aspect the present application provides an application-based inspection device, the device being applied to a first terminal device, the device comprising:
the calling unit is used for calling a preset application program interface to acquire sending information corresponding to each application when the application in the first terminal equipment sends a data packet, wherein the sending information is related information when the first terminal equipment sends the data packet;
the sending unit is used for sending the sending information to a cloud application inspection system;
the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
In a possible implementation manner, the preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when the preset application program interface can be run.
In one possible implementation, the performance information includes performance parameter information for each server in the micro-service architecture;
wherein, the performance parameter information is determined according to the processing time length information corresponding to each application; the processing time length information corresponding to each application is determined according to the sending information corresponding to each application and the processing information corresponding to each application.
In a possible implementation manner, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the first terminal equipment, the identification of a server corresponding to the application and the sending identification.
In a possible embodiment, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
In a possible implementation manner, the preset application program interface includes a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field; the calling unit comprises:
A calling subunit, configured to, when an application in the first terminal device sends a data packet, call a preset application program interface, and generate a sending parameter corresponding to each field according to each field in the preset application program interface;
and the generation subunit is used for generating the transmission information according to each transmission parameter.
In a fifth aspect, the present application provides a cloud application inspection system, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method as described in the first aspect.
In a sixth aspect, the present application provides a first terminal device, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method as described in the second aspect.
In a seventh aspect, the present application provides an application-based inspection system, which includes the cloud application inspection system according to the fifth aspect, and the first terminal device according to the sixth aspect.
In an eighth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect when executed by a processor, or for performing the method according to the second aspect when executed by a processor.
In a ninth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect, or which, when executed by a processor, implements the method according to the second aspect.
According to the application-based inspection method, device and equipment, when the application of the first terminal equipment sends the data packet, the preset application program interface is called, the sending information of the application of the first terminal equipment when the data packet is sent is obtained through the preset application program interface and is sent to the application inspection system, and likewise, when the application of the second terminal equipment receives the data packet, the processing information of the application of the second terminal equipment when the data packet is received and processed is sent to the application inspection system, and the cloud application inspection system determines the performance information of the application of the first terminal equipment and the performance information of the application of the second terminal equipment according to the sending information of the data packet corresponding to the application of the first terminal equipment and the processing information of the application of the data packet corresponding to the application of the second terminal equipment, so that the performance information of the micro-service architecture corresponding to the application is determined.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of an inspection method based on application according to an embodiment of the present application;
FIG. 2 is a flowchart of another inspection method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating analysis of processing time length of each application according to an embodiment of the present application;
FIG. 4 is a flowchart of another inspection method according to an embodiment of the present application;
FIG. 5 is a flowchart of another inspection method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an inspection device based on application according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another inspection device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an inspection device based on application according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another inspection device based on application according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a cloud application inspection system according to an embodiment of the present application;
Fig. 11 is a schematic structural diagram of a first terminal device provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of an inspection system based on application according to an embodiment of the present application;
fig. 13 is a block diagram of a terminal device according to an exemplary embodiment.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
With the rapid development of technologies such as mobile internet, cloud computing, big data, internet of things and the like, various business applications are continuously appeared, the complexity of the business applications is also explosively increased, the real-time data acquisition is high, the business demands are iterated quickly, and the products and services are landed instantly, so that the responsibility born by operation and maintenance teams is heavier due to the high requirements. The operation and maintenance engineer not only ensures the reliability and stability of the service and the product, optimizes the service, quickly locates faults, improves user experience and the like, but also provides data support for business decision and leads to business innovation. With the popularity of micro-service architecture, a service request often needs to involve multiple services, so service performance monitoring, inspection, and investigation become more complex: because different services may be developed by different teams, and may even be implemented using different programming languages, and the services may be in thousands of servers across multiple different data centers.
The gradual complexity of application service architecture and the increasing size and number of data centers are huge, most of service application systems or data centers and cloud operators still depend on manual analysis at present, the trend of performance degradation is difficult to discover at early stage, the root cause of the fault is difficult to locate rapidly, the fault duration is greatly prolonged, and a lot of losses are brought to related production service systems.
The application-based inspection method aims at solving the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an inspection method based on application, where the method is applied to a cloud application inspection system, as shown in fig. 1, and the method includes:
101. and receiving the sending information corresponding to each application sent by the first terminal equipment, wherein the sending information is information acquired by calling a preset application program interface when the application of the first terminal equipment sends the data packet, and the sending information is related information when the first terminal equipment sends the data packet.
For example, when an application (for example, an application program, an applet, etc.) of the first terminal device sends a data packet, a preset application program interface is called, and related information, that is, sending information, of the application of the first terminal device when sending the data packet is obtained through the preset application program interface, and the related information is sent to an application inspection system, so that the cloud application inspection system receives the sending information.
In one example, the preset application program interface may be preset in the first terminal device, or may be preset in an application program or an applet code of the first terminal device, where the embedding location may invoke the preset application program interface when the application of the first terminal device sends a data packet and parses a received packet, that is, when the application of the first terminal device sends or receives the data packet.
102. And receiving processing information corresponding to each application sent by the second terminal equipment, wherein the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
For example, when receiving the data packet, an application (for example, an application program, an applet, etc.) of the second terminal device invokes a preset application program interface, obtains relevant information, namely processing information, of the application of the second terminal device when receiving and processing the data packet through the preset application program interface, and sends the relevant information to the cloud application inspection system, and then the cloud application inspection system receives the processing information.
103. And determining the performance information of the micro-service architecture corresponding to the application according to the sending information and the processing information.
For example, a complete transmission call chain of a data packet may relate to applications of a plurality of terminal devices and a plurality of applications in one terminal device, and the cloud application inspection system analyzes all sent information and processing information related to the transmission call of the data packet, so as to obtain performance information of a micro-service architecture used by the transmission of the data packet. For example, an application of the first terminal device sends a data packet, an application of the second terminal device receives the data packet, and the cloud application inspection system determines performance information of the application of the first terminal device and performance information of the application of the second terminal device according to sending information corresponding to the application of one data packet in the first terminal device and processing information corresponding to the application of the data packet in the second terminal device, thereby determining performance information of a micro-service architecture corresponding to the application.
In this embodiment, when an application of a first terminal device sends a data packet, a preset application program interface is called, and sending information of the application of the first terminal device when the application sends the data packet is obtained through the preset application program interface and sent to an application inspection system, and similarly, when an application of a second terminal device receives the data packet, processing information of the application of the second terminal device when the application of the second terminal device receives and processes the data packet is sent to the application inspection system, and the cloud application inspection system determines performance information of the application of the first terminal device and performance information of the application of the second terminal device according to sending information of one data packet corresponding to the application of the first terminal device and processing information of the application of the data packet corresponding to the application of the second terminal device, so as to further determine performance information of a micro-service architecture corresponding to the application.
Fig. 2 is a flowchart of another inspection method based on application, where the method is applied to a cloud application inspection system, as shown in fig. 2, and the method includes:
201. and receiving the sending information corresponding to each application sent by the first terminal equipment, wherein the sending information is information acquired by calling a preset application program interface when the application of the first terminal equipment sends the data packet, and the sending information is related information when the first terminal equipment sends the data packet.
In one example, a preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when a preset application program interface can be run.
In one example, the preset application program interface includes a plurality of fields, and each field is used for retrieving a transmission parameter or a reception parameter corresponding to the field.
In one example, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and the sending identification.
An application program interface is preset in the first terminal device, the preset application program interface is provided with routing inspection parameters such as routing inspection time and heartbeat frequency, the routing inspection time parameter represents the time that the preset application program interface can be called, the heartbeat frequency parameter represents the working frequency of the preset application program interface, when an application of the first terminal device sends a data packet, the preset application program interface is called, a plurality of fields are added on the data packet by the preset application program interface, the fields are used for calling the sending parameters of the data packet corresponding to each field, relevant information, such as sending information such as the sending time of the data packet, the name of the application, the identification of a server corresponding to the application, the sending identification and the like, of the application of the first terminal device is obtained, the sending information is sent to an application inspection system, and then the cloud application routing inspection system receives the sending information, wherein the sending identification represents the sending information of the application of the first terminal device.
In one example, in order to reduce the load of the cloud application inspection system to increase the system, the preset application program interface starts inspection or stops inspection according to the configured inspection parameters, for example, an operation and maintenance personnel can start an inspection mode at night (if no service flow exists at night, the application flow can be generated through click test to perform simulated inspection test), and close the inspection mode in daytime, and meanwhile, the preset application program interface is further configured with inspection parameters such as heartbeat frequency, wherein the heartbeat frequency parameter characterizes the working frequency of the preset application program interface, and the heartbeat frequency can be set to be several hours, several minutes or several seconds, and different settings are performed according to requirements.
202. And receiving processing information corresponding to each application sent by the second terminal equipment, wherein the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
In one example, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal device, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
An application program interface is also preset in the second terminal device, when the application of the second terminal device receives the data packet, the preset application program interface is called, a plurality of fields are added on the data packet by the preset application program interface, the fields are used for calling the processing parameters corresponding to each field, and the related information of the application of the second terminal device when receiving and processing the data packet is obtained, and the method comprises the following steps: the method comprises the steps of receiving processing information such as time of data packets, names of applications, identifications of the applications, identifications of second terminal equipment, identifications of servers corresponding to the applications, receiving the identifications, residence time of the data packets and the like, and sending the sending information to an application inspection system, and further receiving the processing information by a cloud application inspection system, wherein the receiving identifications represent the time spent by the applications of the second terminal equipment for receiving the data packets, and the residence time of the data packets represents the time spent by the applications of the second terminal equipment for processing the data packets.
In one example, a preset application program interface adds inspectid, fatherid, appid, serverid fields in the outermost layer of a data packet through an extensible markup language (Extensible Markup Language, xml for short) or a json object numbered musical notation (JavaScript Object Notation, json for short) and the like, and is used for calling a sending or receiving parameter of the data packet corresponding to each field, wherein an insectid field uses a method of a universal unique identification code (Universally Unique Identifier, uuid for short) to call an identifier of a terminal device for sending or receiving the data packet; the fatherid field is used for retrieving the identifier of the last terminal device transmitting the data packet, if the data packet does not have the transmission process of the last terminal device, the identifier retrieved by the fatherid field is set to be null, and in a complete data packet retrieving chain, namely if the application of the second terminal device receives the data packet sent by the first terminal device, the identifier of the terminal device retrieved by the instectid field is consistent with the identifier of the terminal device retrieved by the fatherid field when the application of the first terminal device sends the data packet; the app id field is used for calling name information of an application on the terminal equipment; the server field is used for retrieving an identifier of a server corresponding to an application, and after the data packet is packaged, the preset application program interface automatically sends the sending time of the data packet, the name of the application, the identifier of the first terminal device, the identifier of the server corresponding to the application, sending information such as the identifier, the receiving time of the data packet, the name of the application, the identifier of the second terminal device, the identifier of the server corresponding to the application, receiving information such as the residence time of the data packet, and the like to the cloud application inspection system.
203. And determining the processing time length information corresponding to each application according to the sending information corresponding to each application and the processing information corresponding to each application.
The application inspection system determines processing duration information corresponding to each application in a complete call chain of a data packet according to the received sending information corresponding to each application and the received processing information corresponding to each application, and performs integrated analysis on the information, thereby determining performance information of servers corresponding to the first terminal device and the second terminal device.
In one example, after the cloud application inspection system receives the information sent by the preset application program interface, the information is recorded to form a table 1 information record table. As shown in the following table, the message id column is an identifier of a sending message or a processing message, the type column is a transmission type of an application of the terminal device to a data packet, for example, sending the data packet or receiving the data packet, the insulated column is an identifier of the terminal device that invokes the data packet to send or receive the data packet, the fatherid column is an identifier of a last terminal device that invokes the data packet to transmit the data packet, the server id column is an identifier of a server corresponding to the application, the name information of the application on the terminal device of the app id column, the DATE column is a system DATE, and the time column is a system time.
Table 1 information recording table
204. And determining the performance parameter information of the server corresponding to each application according to the processing time length information corresponding to each application.
In one example, step 204 specifically includes the steps of:
if the data congestion problem of the application is determined according to the processing time length information corresponding to each application, the running information of the server corresponding to each application is obtained according to the processing time length information corresponding to each application.
And determining the performance parameter information of the server corresponding to each application according to the operation information of the server corresponding to each application.
If the data congestion problem of each application is determined according to the processing duration information corresponding to each application, and then the performance parameter information of the server corresponding to each application is obtained according to the processing duration information corresponding to each application, for example, when the processing of the data packet by one application exceeds a certain preset value, and the historical processing data of the data packet by the application is combined, the processing duration of the data packet by the application is found to be increased beyond a reasonable range, the data congestion problem of the application is determined, and then the performance degradation problem of the server corresponding to the application is suspected.
In one example, the cloud application inspection system summarizes the historical data of the processing duration of each application in a complete call chain of one data packet to obtain a table 2 historical data record table, as shown in table 2, where the DATE column is the system DATE, d1 is the processing duration of the data packet by application 2 (i.e. app 2), d2 is the processing duration of the data packet by application 5 (i.e. app 5), and d3 is the processing duration of the data packet by application 6 (i.e. app 6).
Table 2 history data record table
DATE d1 d2 d3
No. 1 4 5 1
No. 2 5 5 2
No. 3 4 6 1
No. 4 4 10 1
No. 5 5 4 5
No. 6 5 6 2
No. 7 4 4 2
No. 8 4 5 1
No. 9 5 5 2
No. 10 4 6 1
11 # 11 4 10 1
No. 12 5 10 5
No. 13 5 10 2
No. 14 4 15 2
In one example, the cloud application inspection system analyzes the processing duration of each application by processing and comparing the historical data of each application in table 2, analyzes whether each application has data congestion and whether a server with reduced performance exists by analyzing the duration change. And the change of the processing time length of each application between the system date 1 and the system date 14 forms an analysis schematic diagram of the processing time length of each application in fig. 3, wherein d1 represents the processing time length of the application 2, d2 represents the processing time length of the application 5, d3 represents the processing time length of the application 6, as shown in fig. 3, when the number 4 is inspected, the d2 time length is increased once, the d2 time length is long from the number 11, and the cloud application inspection system can combine with the service volume (the performance of the server b5a39b68-a79e-4bfc-ae5c-8f68a90d8dd7 where the application 5 is indicated to be reduced, and the message is indicated to the operation and maintenance personnel, so that the operation and maintenance personnel can discover the invisible fault early.
In this embodiment, when an application of a first terminal device sends a data packet, a preset application program interface is called, the preset application program interface calls sending information of an identification data packet through a plurality of fields and sends the sending information to an application inspection system, and similarly, when an application of a second terminal device receives the data packet, the preset application program interface calls processing information of the identification data packet through a plurality of fields and sends the processing information of the application of the second terminal device when receiving and processing the data packet to the application inspection system, and the cloud application inspection system determines the application of the first terminal device and the performance information of the application of the second terminal device according to the sending information of the application of the data packet in the first terminal device and the processing information of the application of the data packet in the second terminal device, so that the performance information of a micro-service architecture corresponding to the application is determined.
Fig. 4 is a flowchart of still another inspection method based on application provided in an embodiment of the present application, where the method is applied to a first terminal device, as shown in fig. 4, and the method includes:
301. When an application in the first terminal equipment sends a data packet, a preset application program interface is called to acquire sending information corresponding to each application, wherein the sending information is related information when the first terminal equipment sends the data packet.
For example, the present embodiment may refer to the description of the foregoing embodiment, and will not be repeated.
302. Transmitting the transmitting information to a cloud application inspection system; the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
For example, the present embodiment may refer to the description of the foregoing embodiment, and will not be repeated.
Fig. 5 is a flowchart of still another inspection method based on application, which is provided in an embodiment of the present application, where the method is applied to a first terminal device, as shown in fig. 5, and the method includes:
401. when an application in the first terminal equipment sends a data packet, a preset application program interface is called, and a sending parameter corresponding to each field is generated according to each field in the preset application program interface.
In one example, a preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when a preset application program interface can be run.
In one example, the preset application program interface includes a plurality of fields, and each field is used for retrieving a transmission parameter or a reception parameter corresponding to the field.
For example, the present embodiment may refer to the description of the foregoing embodiment, and will not be repeated.
402. And generating transmission information according to each transmission parameter.
In one example, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and the sending identification.
For example, the present embodiment may refer to the description of the foregoing embodiment, and will not be repeated.
403. Transmitting the transmitting information to a cloud application inspection system; the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
In one example, the performance information includes performance parameter information for each server in the micro-service architecture; wherein, the performance parameter information is determined according to the processing time length information corresponding to each application; the processing time length information corresponding to each application is determined according to the sending information corresponding to each application and the processing information corresponding to each application.
In one example, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal device, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
For example, the present embodiment may refer to the description of the foregoing embodiment, and will not be repeated.
Fig. 6 is a schematic structural diagram of an inspection device based on application, where the device is applied to a cloud application inspection system, as shown in fig. 6, and the device includes:
the first receiving unit 51 is configured to receive sending information corresponding to each application sent by the first terminal device, where the sending information is information obtained by calling a preset application program interface when the application of the first terminal device sends a data packet, and the sending information is related information when the first terminal device sends the data packet.
The second receiving unit 52 is configured to receive processing information corresponding to each application sent by the second terminal device, where the processing information is information acquired by a preset application program interface when the application of the second terminal device receives and processes the data packet, and the processing information is related information when the second terminal device receives and processes the data packet.
The determining unit 53 is configured to determine performance information of the micro service architecture corresponding to the application according to each transmission information and each processing information.
Fig. 7 is a schematic structural diagram of another inspection device based on application, which is provided in the embodiment of the present application, and the device is applied to a cloud application inspection system, and on the basis of the embodiment shown in fig. 6, as shown in fig. 7, the device includes:
in one example, a preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when a preset application program interface can be run.
In one example, the determining unit 53 includes:
the first determining subunit 61 is configured to determine, according to the transmission information corresponding to each application and the processing information corresponding to each application, processing duration information corresponding to each application.
The second determining subunit 62 is configured to determine, according to the processing duration information corresponding to each application, performance parameter information of the server corresponding to each application.
In one example, the second determination subunit 62 includes:
the obtaining module 621 is configured to obtain, if it is determined that there is a data congestion problem in each application according to the processing duration information corresponding to the application, operation information of a server corresponding to each application according to the processing duration information corresponding to each application.
The determining module 622 is configured to determine performance parameter information of the server corresponding to each application according to the running information of the server corresponding to each application.
In one example, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and the sending identification.
In one example, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal device, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
In one example, the preset application program interface includes a plurality of fields, and each field is used for retrieving a transmission parameter or a reception parameter corresponding to the field.
Fig. 8 is a schematic structural diagram of an inspection device based on application provided in an embodiment of the present application, where the device is applied to a first terminal device, as shown in fig. 8, and the device includes:
and a retrieving unit 71, configured to, when the application in the first terminal device sends the data packet, retrieve a preset application program interface to obtain sending information corresponding to each application, where the sending information is related information when the first terminal device sends the data packet.
A transmitting unit 72, configured to transmit the transmission information to the cloud application inspection system; the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet.
Fig. 9 is a schematic structural diagram of another inspection device based on application provided in an embodiment of the present application, where the device is applied to a first terminal device, and on the basis of the embodiment shown in fig. 8, as shown in fig. 9, the device includes:
In one example, a preset application program interface is provided with inspection parameters, and the inspection parameters comprise inspection time and heartbeat frequency; the patrol time characterizes the time when a preset application program interface can be run.
In one example, the performance information includes performance parameter information for each server in the micro-service architecture; wherein, the performance parameter information is determined according to the processing time length information corresponding to each application; the processing time length information corresponding to each application is determined according to the sending information corresponding to each application and the processing information corresponding to each application.
In one example, the transmission information includes at least one of the following transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and the sending identification.
In one example, the processing information includes at least one of the following reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal device, the identification of the server corresponding to the application, the receiving identification and the residence time of the data packet.
In one example, the preset application program interface includes a plurality of fields, and each field is used for retrieving a transmission parameter or a reception parameter corresponding to the field.
In one example, the call unit 71 includes:
and the calling subunit 711 is configured to, when the application in the first terminal device sends the data packet, call the preset application program interface, and generate a sending parameter corresponding to each field according to each field in the preset application program interface.
A generating subunit 712, configured to generate transmission information according to each transmission parameter.
Fig. 10 is a schematic structural diagram of a cloud application inspection system provided in an embodiment of the present application, where, as shown in fig. 10, the cloud application inspection system includes: a processor 91, and a memory 92 communicatively coupled to the processor.
Memory 92 stores computer-executable instructions.
The processor 91 executes computer-executable instructions stored in memory to implement the method as in the above-described embodiments.
Fig. 11 is a schematic structural diagram of a first terminal device provided in an embodiment of the present application, where, as shown in fig. 11, the first terminal device includes: a processor 101, and a memory 102 communicatively coupled to the processor.
Memory 102 stores computer-executable instructions.
The processor 101 executes computer-executable instructions stored in memory to implement the method as in the above-described embodiments.
Fig. 12 is a schematic structural diagram of an inspection system based on application provided in an embodiment of the present application, and as shown in fig. 12, the inspection system based on application includes: cloud application inspection system 111, and first terminal device 112.
Fig. 13 is a block diagram of a terminal device, which may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like, in accordance with an exemplary embodiment.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the method provided by the above embodiments.
The embodiment of the application also provides a computer program product, which comprises: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (14)

1. An application-based inspection method, wherein the method is applied to a cloud application inspection system, and the method comprises the following steps:
receiving sending information corresponding to each application sent by a first terminal device, wherein the sending information is information obtained by calling a preset application program interface when the application of the first terminal device sends a data packet, the sending information is related information when the first terminal device sends the data packet, and routing inspection parameters are arranged in the preset application program interface, and the routing inspection parameters comprise routing inspection time and heartbeat frequency; the inspection time represents the time when the preset application program interface can be operated, and the preset application program interface starts inspection or stops inspection according to the inspection parameters; the preset application program interface comprises a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field; the preset application program interface starts or stops the inspection according to the inspection parameters; the transmission information includes the following various transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and a sending identification;
Receiving processing information corresponding to each application sent by a second terminal device, wherein the processing information is information acquired by a preset application program interface when the application of the second terminal device receives and processes a data packet, and the processing information is related information when the second terminal device receives and processes the data packet; the processing information includes a variety of reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of a server corresponding to the application, the receiving identification and the residence time of the data packet;
determining performance information of a micro-service architecture corresponding to the application according to the sending information and the processing information;
the preset application program interface adds inspectid, fatherid, appid, serverid fields in the outermost layer of the data packet through xml or json of the json object, and is used for calling the sending or receiving parameters of the data packet corresponding to each field, wherein the inserted fields call the identification of the terminal equipment for sending or receiving the data packet by using a universal unique identification code uuid method; the fatherid field is used for retrieving an identifier of a last terminal device transmitting the data packet, if the data packet does not exist in the transmission process of the last terminal device, the identifier retrieved by the fatherid field is set to be null, and in a complete data packet invoking chain, if the application of the second terminal device receives the data packet sent by the first terminal device, the identifier of the terminal device retrieved by the instectid field is consistent with the identifier of the terminal device retrieved by the fatherid field when the application of the first terminal device sends the data packet and the application of the second terminal device receives the data packet; the app id field is used for calling name information of an application on the terminal equipment; the server field is used to invoke the identity of the server corresponding to the application.
2. The method of claim 1, wherein the performance information comprises performance parameter information for each server in the micro-service architecture; determining performance information of the micro service architecture corresponding to the application according to the sending information and the processing information, including:
determining processing duration information corresponding to each application according to the sending information corresponding to each application and the processing information corresponding to each application;
and determining the performance parameter information of the server corresponding to each application according to the processing time length information corresponding to each application.
3. The method according to claim 2, wherein determining the performance parameter information of the server corresponding to each application according to the processing time length information corresponding to each application comprises:
if the data congestion problem of each application is determined according to the processing time length information corresponding to each application, acquiring the running information of the server corresponding to each application according to the processing time length information corresponding to each application;
and determining the performance parameter information of the server corresponding to each application according to the operation information of the server corresponding to each application.
4. An application-based inspection method, wherein the method is applied to a first terminal device, and the method comprises:
when an application in the first terminal equipment sends a data packet, a preset application program interface is called to acquire sending information corresponding to each application, wherein the sending information is related information when the first terminal equipment sends the data packet; the preset application program interface is provided with inspection parameters, wherein the inspection parameters comprise inspection time and heartbeat frequency; the inspection time characterizes the time when the preset application program interface can be run; the preset application program interface starts or stops the inspection according to the inspection parameters; the preset application program interface starts or stops the inspection according to the inspection parameters; the transmission information includes the following various transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and a sending identification;
transmitting the transmission information to a cloud application inspection system;
the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet; the processing information includes a variety of reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of a server corresponding to the application, the receiving identification and the residence time of the data packet;
The preset application program interface comprises a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field; when an application in the first terminal device sends a data packet, a preset application program interface is called to obtain sending information corresponding to each application, and the method comprises the following steps:
when an application in the first terminal equipment sends a data packet, a preset application program interface is called, and a sending parameter corresponding to each field is generated according to each field in the preset application program interface;
generating the transmission information according to each transmission parameter;
the preset application program interface adds inspectid, fatherid, appid, serverid fields in the outermost layer of the data packet through xml or json of the json object, and is used for calling the sending or receiving parameters of the data packet corresponding to each field, wherein the inserted fields call the identification of the terminal equipment for sending or receiving the data packet by using a universal unique identification code uuid method; the fatherid field is used for retrieving an identifier of a last terminal device transmitting the data packet, if the data packet does not exist in the transmission process of the last terminal device, the identifier retrieved by the fatherid field is set to be null, and in a complete data packet invoking chain, if the application of the second terminal device receives the data packet sent by the first terminal device, the identifier of the terminal device retrieved by the instectid field is consistent with the identifier of the terminal device retrieved by the fatherid field when the application of the first terminal device sends the data packet and the application of the second terminal device receives the data packet; the app id field is used for calling name information of an application on the terminal equipment; the server field is used to invoke the identity of the server corresponding to the application.
5. The method of claim 4, wherein the performance information comprises performance parameter information for each server in the micro-service architecture;
wherein, the performance parameter information is determined according to the processing time length information corresponding to each application; the processing time length information corresponding to each application is determined according to the sending information corresponding to each application and the processing information corresponding to each application.
6. An application-based inspection device, wherein the device is applied to a cloud application inspection system, the device comprising:
the first receiving unit is used for receiving sending information corresponding to each application sent by the first terminal equipment, wherein the sending information is information obtained by calling a preset application program interface when the application of the first terminal equipment sends a data packet, and the sending information is related information when the first terminal equipment sends the data packet; the preset application program interface is provided with inspection parameters, wherein the inspection parameters comprise inspection time and heartbeat frequency; the inspection time characterizes the time when the preset application program interface can be run; the preset application program interface comprises a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field; the preset application program interface starts or stops the inspection according to the inspection parameters; the preset application program interface starts or stops the inspection according to the inspection parameters; the transmission information includes the following various transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and a sending identification;
The second receiving unit is used for receiving processing information corresponding to each application, which is sent by the second terminal equipment, wherein the processing information is information acquired by a preset application program interface when the application of the second terminal equipment receives and processes a data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet; the processing information includes a variety of reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of a server corresponding to the application, the receiving identification and the residence time of the data packet;
the determining unit is used for determining the performance information of the micro-service architecture corresponding to the application according to the sending information and the processing information;
the preset application program interface adds inspectid, fatherid, appid, serverid fields in the outermost layer of the data packet through xml or json of the json object, and is used for calling the sending or receiving parameters of the data packet corresponding to each field, wherein the inserted fields call the identification of the terminal equipment for sending or receiving the data packet by using a universal unique identification code uuid method; the fatherid field is used for retrieving an identifier of a last terminal device transmitting the data packet, if the data packet does not exist in the transmission process of the last terminal device, the identifier retrieved by the fatherid field is set to be null, and in a complete data packet invoking chain, if the application of the second terminal device receives the data packet sent by the first terminal device, the identifier of the terminal device retrieved by the instectid field is consistent with the identifier of the terminal device retrieved by the fatherid field when the application of the first terminal device sends the data packet and the application of the second terminal device receives the data packet; the app id field is used for calling name information of an application on the terminal equipment; the server field is used to invoke the identity of the server corresponding to the application.
7. The apparatus according to claim 6, wherein the determining unit includes:
the first determining subunit is used for determining the processing time length information corresponding to each application according to the sending information corresponding to each application and the processing information corresponding to each application;
and the second determining subunit is used for determining the performance parameter information of the server corresponding to each application according to the processing time length information corresponding to each application.
8. The apparatus of claim 7, wherein the second determination subunit comprises:
the acquisition module is used for acquiring the running information of the server corresponding to each application according to the processing time length information corresponding to each application if the application is determined to have the data congestion problem according to the processing time length information corresponding to each application;
and the determining module is used for determining the performance parameter information of the server corresponding to each application according to the operation information of the server corresponding to each application.
9. An application-based inspection device, wherein the device is applied to a first terminal device, the device comprising:
the calling unit is used for calling a preset application program interface to acquire sending information corresponding to each application when the application in the first terminal equipment sends a data packet, wherein the sending information is related information when the first terminal equipment sends the data packet; the preset application program interface is provided with inspection parameters, wherein the inspection parameters comprise inspection time and heartbeat frequency; the inspection time characterizes the time when the preset application program interface can be run; the preset application program interface starts or stops the inspection according to the inspection parameters; the preset application program interface starts or stops the inspection according to the inspection parameters; the transmission information includes the following various transmission parameters: the method comprises the steps of sending time of a data packet, the name of an application, the identification of the application, the identification of first terminal equipment, the identification of a server corresponding to the application and a sending identification;
The sending unit is used for sending the sending information to a cloud application inspection system;
the cloud application inspection system is used for determining performance information of a micro-service architecture corresponding to the application; the processing information is sent to the cloud application inspection system by the second terminal equipment; the processing information is information acquired by calling a preset application program interface when the application of the second terminal equipment receives and processes the data packet, and the processing information is related information when the second terminal equipment receives and processes the data packet; the processing information includes a variety of reception parameters: the receiving time of the data packet, the name of the application, the identification of the second terminal equipment, the identification of a server corresponding to the application, the receiving identification and the residence time of the data packet;
the preset application program interface comprises a plurality of fields, and each field is used for retrieving a sending parameter or a receiving parameter corresponding to the field; the calling unit comprises:
a calling subunit, configured to, when an application in the first terminal device sends a data packet, call a preset application program interface, and generate a sending parameter corresponding to each field according to each field in the preset application program interface;
A generating subunit, configured to generate the transmission information according to each transmission parameter;
the preset application program interface adds inspectid, fatherid, appid, serverid fields in the outermost layer of the data packet through xml or json of the json object, and is used for calling the sending or receiving parameters of the data packet corresponding to each field, wherein the inserted fields call the identification of the terminal equipment for sending or receiving the data packet by using a universal unique identification code uuid method; the fatherid field is used for retrieving an identifier of a last terminal device transmitting the data packet, if the data packet does not exist in the transmission process of the last terminal device, the identifier retrieved by the fatherid field is set to be null, and in a complete data packet invoking chain, if the application of the second terminal device receives the data packet sent by the first terminal device, the identifier of the terminal device retrieved by the instectid field is consistent with the identifier of the terminal device retrieved by the fatherid field when the application of the first terminal device sends the data packet and the application of the second terminal device receives the data packet; the app id field is used for calling name information of an application on the terminal equipment; the server field is used to invoke the identity of the server corresponding to the application.
10. The apparatus of claim 9, wherein the performance information comprises performance parameter information for each server in the micro-service architecture;
wherein, the performance parameter information is determined according to the processing time length information corresponding to each application; the processing time length information corresponding to each application is determined according to the sending information corresponding to each application and the processing information corresponding to each application.
11. A cloud application inspection system, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any one of claims 1-3.
12. A first terminal device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 4-5.
13. An application-based inspection system, comprising the cloud application inspection system of claim 11, and the first terminal device of claim 12.
14. A computer readable storage medium having stored therein computer executable instructions for implementing the method of any of claims 1-3 when executed by a processor or for implementing the method of any of claims 4-5 when executed by a processor.
CN202111231507.4A 2021-10-22 2021-10-22 Inspection method, device and equipment based on application Active CN113965476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111231507.4A CN113965476B (en) 2021-10-22 2021-10-22 Inspection method, device and equipment based on application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111231507.4A CN113965476B (en) 2021-10-22 2021-10-22 Inspection method, device and equipment based on application

Publications (2)

Publication Number Publication Date
CN113965476A CN113965476A (en) 2022-01-21
CN113965476B true CN113965476B (en) 2024-03-01

Family

ID=79466051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111231507.4A Active CN113965476B (en) 2021-10-22 2021-10-22 Inspection method, device and equipment based on application

Country Status (1)

Country Link
CN (1) CN113965476B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109728940A (en) * 2018-12-17 2019-05-07 中国联合网络通信集团有限公司 Method for inspecting, device and storage medium
WO2019148727A1 (en) * 2018-02-01 2019-08-08 平安科技(深圳)有限公司 Electronic device, redis-based exception warning method and storage medium
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame
CN110888783A (en) * 2019-11-21 2020-03-17 望海康信(北京)科技股份公司 Monitoring method and device of micro-service system and electronic equipment
US10657019B1 (en) * 2017-05-30 2020-05-19 EMC IP Holding Company LLC Method and system for multi-node monitoring services
CN112052081A (en) * 2020-08-13 2020-12-08 烽火通信科技股份有限公司 Task scheduling method and device and electronic equipment
CN113448796A (en) * 2020-03-26 2021-09-28 北京沃东天骏信息技术有限公司 Service monitoring method, device, computer system and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9819729B2 (en) * 2012-12-21 2017-11-14 Bmc Software, Inc. Application monitoring for cloud-based architectures
US10536473B2 (en) * 2017-02-15 2020-01-14 Microsoft Technology Licensing, Llc System and method for detecting anomalies associated with network traffic to cloud applications
US11171842B2 (en) * 2019-09-05 2021-11-09 Kong Inc. Microservices application network control plane
US11811801B2 (en) * 2019-08-21 2023-11-07 Nokia Solutions And Networks Oy Anomaly detection for microservices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10657019B1 (en) * 2017-05-30 2020-05-19 EMC IP Holding Company LLC Method and system for multi-node monitoring services
WO2019148727A1 (en) * 2018-02-01 2019-08-08 平安科技(深圳)有限公司 Electronic device, redis-based exception warning method and storage medium
CN109728940A (en) * 2018-12-17 2019-05-07 中国联合网络通信集团有限公司 Method for inspecting, device and storage medium
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame
CN110888783A (en) * 2019-11-21 2020-03-17 望海康信(北京)科技股份公司 Monitoring method and device of micro-service system and electronic equipment
CN113448796A (en) * 2020-03-26 2021-09-28 北京沃东天骏信息技术有限公司 Service monitoring method, device, computer system and medium
CN112052081A (en) * 2020-08-13 2020-12-08 烽火通信科技股份有限公司 Task scheduling method and device and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Liu Rui ; Duan Guijiang.An Application of MBD Based Inspection in Cloud Manufacturing.IECON 2018 - 44th Annual Conference of the IEEE Industrial Electronics Society.2018,全文. *
微服务故障诊断相关技术研究探讨;赵建涛;黄立松;;网络新媒体技术(01);全文 *
赵建涛 ; 黄立松 ; .微服务故障诊断相关技术研究探讨.网络新媒体技术.2020,(01),全文. *

Also Published As

Publication number Publication date
CN113965476A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN110262904B (en) Data acquisition method and device
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN109525652B (en) Information sharing method, device, equipment and storage medium
CN108984417B (en) Software testing method, device, terminal and storage medium
CN116069612A (en) Abnormality positioning method and device and electronic equipment
CN105550260A (en) Picture display method and device
CN110213062B (en) Method and device for processing message
CN113965476B (en) Inspection method, device and equipment based on application
CN113626321B (en) Bridging test method, device, system and storage medium
CN115314426A (en) Data acquisition method, system, electronic device and storage medium
CN115329181A (en) Information query method, query server and client
CN113407879B (en) Data reporting method, device and readable medium
CN114417133A (en) Business data processing method and device, electronic equipment and computer storage medium
CN109086143B (en) Application interaction method and device
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN109766501B (en) Crawler protocol management method and device and crawler system
CN109947640B (en) Regression test-based core function coverage statistical method and device
US20160119259A1 (en) Method, terminal device and server for pushing message through light application
CN113760946A (en) Pre-verification processing method, device, equipment and medium applied to data source migration
CN111866098A (en) Log processing method and device and storage medium
CN111143184B (en) Data processing method, device and system
CN111611470A (en) Data processing method and device and electronic equipment
CN111427566B (en) Data processing method and device suitable for analog interface platform and server
CN113468536B (en) Detection method, detection device, detection system, electronic equipment and storage medium
CN108173846B (en) Login method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant