CN109474672B - Method and system for determining service execution state - Google Patents
Method and system for determining service execution state Download PDFInfo
- Publication number
- CN109474672B CN109474672B CN201811252270.6A CN201811252270A CN109474672B CN 109474672 B CN109474672 B CN 109474672B CN 201811252270 A CN201811252270 A CN 201811252270A CN 109474672 B CN109474672 B CN 109474672B
- Authority
- CN
- China
- Prior art keywords
- preset
- service
- terminal device
- application program
- detection
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention is suitable for the technical field of data processing, and provides a method and a system for determining a service execution state.A service detection message is sent to a service server of a preset service through a terminal device, and a reply message returned by the service server is received, wherein the reply message comprises the operation state of the service server; the method comprises the steps that terminal equipment detects an operation result of an application program corresponding to a preset service, detects the operation state of the terminal equipment and generates a heartbeat packet of the terminal equipment; the terminal equipment sends the running state of the service server, the running result of the application program and the heartbeat packet of the terminal equipment to an analysis server; the analysis server calculates a service execution parameter according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determines the service execution state of the preset service based on the corresponding relation between the preset service execution parameter and the execution state, so that the execution state of the preset service is analyzed more comprehensively and accurately.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a method and a system for determining a service execution state.
Background
The normal execution of a financial system service by a user at a terminal device depends on the normal and reasonable states of a provider server of the service, an application program of the service on the terminal device and the terminal device. However, the current monitoring analysis for whether a service is normally executed is often based on simply detecting a provider server of the service or simply determining whether a terminal device normally operates based on a heartbeat packet of the terminal device.
Based on this, the current service execution state is often determined incompletely, and only the analysis results of the two polarizations, i.e. the normal state or the abnormal state, are available, so that the user cannot know the determination results of the complete and more refined service execution state.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and a system for determining a service execution state, so as to solve the problems that an analysis angle is single and an analysis result is low in refinement degree in a process of analyzing a service execution state in the prior art.
A first aspect of an embodiment of the present invention provides a method for determining a service execution state, where the method includes:
the method comprises the steps that terminal equipment sends a service detection message to a service server of a preset service and receives a reply message returned by the service server, wherein the reply message comprises the running state of the service server; the terminal device detects an operation result of an application program which is operated in the terminal device and corresponds to the preset service, detects the operation state of the terminal device, and generates a heartbeat packet of the terminal device; the terminal equipment sends the running state of the service server, the running result of the application program and the terminal equipment heartbeat packet to an analysis server; and the analysis server calculates a service execution parameter according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determines the service execution state of the preset service based on the corresponding relation between the preset service execution parameter and the execution state.
A second aspect of the embodiments of the present invention provides a system for determining a service execution state, which is characterized by including a terminal device, a service server, and an analysis server;
the terminal device is used for sending a service detection message to a service server of a preset service and receiving a reply message returned by the service server, wherein the reply message contains the running state of the service server; the terminal device is further configured to detect an operation result of an application program, which is operated in the terminal device and corresponds to the preset service, detect an operation state of the terminal device itself, and generate a terminal device heartbeat packet; the terminal device is further configured to send the running state of the service server, the running result of the application program, and the terminal device heartbeat packet to an analysis server; the analysis server is used for calculating a service execution parameter according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determining the service execution state of the preset service based on the corresponding relation between the preset service execution parameter and the execution state.
In the embodiment of the invention, a service detection message is sent to a service server of a preset service through a terminal device, and a reply message returned by the service server is received, wherein the reply message comprises the running state of the service server; the method comprises the steps that terminal equipment detects an operation result of an application program corresponding to a preset service, detects the operation state of the terminal equipment and generates a heartbeat packet of the terminal equipment; the terminal equipment sends the running state of the service server, the running result of the application program and the heartbeat packet of the terminal equipment to an analysis server; the analysis server calculates a service execution parameter according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determines the service execution state of the preset service based on the corresponding relation between the preset service execution parameter and the execution state, so that the execution state of the preset service is analyzed more comprehensively and accurately, and the operation stability of the whole service system is maintained in time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a method for determining a service execution state according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific implementation of the method S104 for determining a service execution state according to an embodiment of the present invention;
fig. 3 is a flowchart of a specific implementation of the method S102 for determining a service execution state according to an embodiment of the present invention;
fig. 4 is a system interaction diagram of a service execution state determination system according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 shows an implementation process of a method for determining a service execution state according to an embodiment of the present invention, where the method includes steps S101 to S104. The specific implementation principle of each step is as follows.
S101, a terminal device sends a service detection message to a service server of a preset service and receives a reply message returned by the service server, wherein the reply message comprises the running state of the service server.
In the embodiment of the invention, the method for determining the service execution state relates to three-terminal equipment, wherein one terminal equipment is a service server which is mainly used for providing data processing of a certain preset service and is a background server for normally executing the preset service; one end device is a terminal device, the terminal device is provided with an application program of a preset service, the terminal device directly carries out information interaction with a user through the application program, receives information input of the preset service by the user, and feeds back a related data processing result of a service server to the user; one end device is an analysis server, and the analysis server performs data analysis according to the various types of data collected by the terminal device, so that the service execution state is determined.
Specifically, one type of data acquired by the terminal device is the operation state of the service server, and in the embodiment of the present invention, the operation state of the service server included in the reply message is acquired by sending a service detection message to the service server and receiving the reply message.
Optionally, the service detection packet includes: the system comprises a communication message header, a message body, a file attachment header, an attachment content message body and message signature data, wherein the four parts of the communication message header, the message body, the file attachment header and the attachment content message body are directly generated by converting data input by a user, the length of the communication message header is 222 bytes, the length of the file attachment header is 277 bytes, the message body and the attachment content message body are not limited by fixed lengths, and the message signature data is generated by calculating signatures of data in the communication message header, the message body, the file attachment header and the attachment content message body through a preset abstract algorithm by a terminal device. Optionally, the predetermined digest algorithm includes a secure hash algorithm.
In this embodiment of the present invention, after receiving the reply message returned by the service server, the method further includes: and the terminal equipment extracts the running state of the service server from the reply message according to the corresponding relation between the preset message position and the data type.
In the embodiment of the invention, the reply message is generated by filling the corresponding reply data into the corresponding message position of the reply message according to the data type corresponding to each message position of the service detection message. Therefore, the terminal device can extract the data corresponding to each data type from the reply message according to the preset corresponding relationship between the message position and the data type, so as to acquire the running state of the service server.
And S102, the terminal device detects the operation result of the application program which is operated in the terminal device and corresponds to the preset service, detects the operation state of the terminal device, and generates a heartbeat packet of the terminal device.
In the embodiment of the present invention, the terminal device collects two types of data in addition to the operation state of the service server, where one type of data is an operation result of an application program that is operated in the terminal device and corresponds to a preset service, and the other type of data is an operation state of the terminal device itself.
It can be understood that the running state of the service server of the preset service may be used to reflect the execution condition of the preset service at the back end, and the running result of the application program running in the terminal device corresponding to the preset service may be used to reflect the execution condition of the preset service at the front end.
Optionally, in the embodiment of the present invention, a central processing unit in the terminal device generates the detection instruction, and receives a detection identifier generated by the application program corresponding to the preset service based on the detection instruction, where the central processing unit determines an operation result of the application program according to a type of the detection identifier generated by the application program and a time required for generating the detection identifier.
Optionally, in the embodiment of the present invention, it may also be detected, by a heartbeat detector in the terminal device, whether a thread of the application program corresponding to the preset service is in a dead state, so as to determine an operation result of the application program.
Optionally, in the embodiment of the present invention, a heartbeat detector in the terminal device detects the running state of the terminal device itself at preset time intervals, so as to generate a heartbeat packet of the terminal device. When the central processing unit of the terminal equipment operates normally, the heartbeat detector can store preset field information into the heartbeat packet, and when the central processing unit of the terminal equipment operates abnormally, the heartbeat detector can not store the preset field information into the heartbeat packet or can not generate the heartbeat packet.
S103, the terminal device sends the running state of the service server, the running result of the application program and the terminal device heartbeat package to an analysis server.
In the embodiment of the invention, three types of data collected by the terminal equipment need to be sent to the analysis server, and the analysis server performs automatic overall analysis on the three types of data.
And S104, the analysis server calculates service execution parameters according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determines the service execution state of the preset service based on the corresponding relation between the preset service execution parameters and the execution state.
In the embodiment of the invention, when the terminal equipment generates the heartbeat packet, the preset field information cannot be added in the heartbeat packet when the terminal equipment operates abnormally, in addition, the heartbeat packet cannot be generated when a central processing unit of the terminal equipment is seriously abnormal, therefore, in the above two cases, as long as the terminal device itself operates abnormally, the service server cannot resolve the preset field information from the heartbeat packet, otherwise, if the service server does not receive the heartbeat packet or fails to resolve the preset field information from the heartbeat packet of the terminal device, it is proved that the terminal device itself operates abnormally, in this case, the application program running in the terminal device corresponding to the preset service may not be normally run, therefore, the service execution state of the preset service can be directly determined to be the most serious abnormality (the highest abnormality level) without further analyzing other types of data collected by the terminal equipment and calculating the service execution parameters.
On the contrary, when the service server receives the terminal device heartbeat packet and analyzes preset field information from the terminal device heartbeat packet, it is proved that the running condition of the terminal device is not verified to be abnormal, so that a further calculation process is required to perform overall calculation on the other two types of data collected by the terminal device to generate a service execution parameter, and the service execution state of the preset service is determined based on the corresponding relation between the preset service execution parameter and the execution state.
Optionally, the application program running result includes: and the normal state duration of the application program is the total duration of the normal operation result of the application program in a preset time period.
Optionally, the analysis server stores a correspondence between the service execution state and the alarm policy. And after the analysis server determines the service execution state of the preset service, the analysis server displays an alarm strategy corresponding to the service execution state.
As an embodiment of the present invention, as shown in fig. 2, the S104 includes:
s1041, if the service server analyzes preset field information from the terminal equipment heartbeat packet, determining a calculation factor corresponding to the operation state of the service server according to a corresponding relation between a preset operation state and the calculation factor, and taking the calculation factor as a selected calculation factor.
In the embodiment of the invention, the corresponding relation between the preset running state and the calculation factor is prestored in the service server, and the calculation factor is a natural number. It can be understood that converting the operation state of the service server into a natural number is helpful for processing the operation state of the service server through a calculation formula in the subsequent calculation process.
S1042, the service server extracts the duration of the normal state of the application from the running result of the application.
As described above, the application program execution result includes: and the normal state duration of the application program is the total duration of the normal operation result of the application program in a preset time period.
S1043, the service server calculates the service execution parameter through a preset formula.
Optionally, the preset formula is:the LivLevel is the service execution parameter, the Pre is the selected calculation factor, the NormTime is the duration of the normal state of the application program, and e is a natural constant.
In the embodiment of the present invention, since the selected calculation factor may be used to represent the operation state of the service server, and the duration of the normal state of the application program may be used to represent the operation result of the application program, the operation state of the service server and the data collected by the two types of terminal devices, which are the operation result of the application program, may be well represented by the calculated service execution parameter, and the prerequisite of the execution of S1041 is that the service server parses the preset field information from the heartbeat packet of the terminal device, so in the execution process of steps S1041 to S1043, the three types of data collected by the terminal device are comprehensively considered, and thus the calculated service execution parameter may well represent the service execution state of the preset service.
It can be understood that, in the embodiment of the present invention, a terminal device sends a service detection message to a service server of a preset service, and receives a reply message returned by the service server, where the reply message includes an operating state of the service server; the method comprises the steps that terminal equipment detects an operation result of an application program corresponding to a preset service, detects the operation state of the terminal equipment and generates a heartbeat packet of the terminal equipment; the terminal equipment sends the running state of the service server, the running result of the application program and the heartbeat packet of the terminal equipment to an analysis server; the analysis server calculates a service execution parameter according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determines the service execution state of the preset service based on the corresponding relation between the preset service execution parameter and the execution state, so that the execution state of the preset service is analyzed more comprehensively and accurately.
As an embodiment of the present invention, as shown in fig. 3, the S102 includes:
and S1021, generating a detection instruction for detecting the application program by a preset processor in the terminal device to receive a detection identifier generated by the application program, wherein the detection identifier is used for describing the running condition of the application program.
In the embodiment of the invention, after receiving the detection instruction, the application program generates a detection identifier according to the running condition of the application program, and the preset processor receives the detection identifier.
S1022, the terminal device calculates a time difference between the time when the preset processor receives the detection identifier and the time when the detection instruction is generated, as a detection time difference.
It will be appreciated that the preset processor must have a time difference between the time of generating the detection instruction and the time of receiving the detection flag generated by the application program based on the detection instruction, which is named here as the detection time difference. According to the long-term monitoring of the existing application program, the longer the detection time difference is, the higher the probability of the subsequent abnormal operation of the application program is, so that in the embodiment of the invention, the characteristic of the detection time difference is utilized to perform one-dimensional analysis on the operation condition of the application program.
And S1023, if the detection time difference is not larger than a preset first time difference threshold value and the detection identifier belongs to a preset identifier set, the terminal equipment judges that the running result of the application program is normal.
In the embodiment of the present invention, the detection identifiers in the preset identifier set are all detection identifiers that appear when the operation result of the application program is normal.
And S1024, if the detection time difference is larger than a preset first time difference threshold value and the detection identifiers belong to a preset identifier set, repeatedly generating a preset number of detection instructions by the terminal equipment to receive the preset number of detection identifiers and calculating the preset number of detection time differences.
In the embodiment of the present invention, if the first generated detection time difference is greater than the preset first time difference threshold, it is proved that the possibility that the operation result of the application program is abnormal is higher, so that more detection identifiers generated by the application program need to be referred to more accurately determine the operation result of the application program. Therefore, a predetermined number of detection commands are repeatedly generated to calculate a predetermined number of detection time differences.
And S1025, if the preset number of detection identifications belong to the preset identification set and the average duration of the preset number of detection time differences is less than or equal to a preset second time difference threshold value, the terminal equipment judges that the operation result of the application program is normal.
And S1026, if the detection identifiers in the preset number do not all belong to the preset identifier set, or the average duration of the detection time differences in the preset number is greater than a preset second time difference threshold, the terminal device determines that the operation result of the application program is abnormal.
It can be understood that, in the embodiment of the present invention, whether the running result of the application program is normal is comprehensively determined by determining whether the detection identifier belongs to a preset identifier set and data of two dimensions, namely, a time difference between the time when the preset processor receives the detection identifier and the time when the detection instruction is generated.
Corresponding to the service execution state determination method described in the foregoing embodiment, fig. 4 shows a system interaction diagram of the service execution state determination system provided in the embodiment of the present invention, and for convenience of description, only the part related to the embodiment of the present invention is shown.
Referring to fig. 4, the system includes a terminal device 401, a service server 402, and an analysis server 403:
the terminal device 401 is configured to send a service detection packet to a service server 402 of a preset service;
the service server 402 is configured to generate a reply message according to the service detection message, and send the reply message to a terminal device;
the terminal device 401 is configured to receive a reply message returned by the service server, where the reply message includes an operation state of the service server;
the terminal device 401 is further configured to detect an operation result of an application program, which is operated in the terminal device and corresponds to the preset service, detect an operation state of the terminal device itself, and generate a terminal device heartbeat packet;
the terminal device 401 is further configured to send the running state of the service server, the running result of the application program, and the terminal device heartbeat packet to an analysis server;
the analysis server 403 is configured to calculate a service execution parameter according to the operation state of the service server, the operation result of the application program, and the heartbeat packet of the terminal device, and determine the service execution state of the preset service based on a corresponding relationship between a preset service execution parameter and the service execution state.
The detecting an operation result of the application program, which is operated in the terminal device and corresponds to the preset service, includes: a preset processor in the terminal device generates a detection instruction for detecting the application program so as to receive a detection identifier generated by the application program, wherein the detection identifier is used for describing the running condition of the application program; the terminal equipment calculates the time difference between the time when the preset processor receives the detection identifier and the time when the detection instruction is generated as a detection time difference; if the detection time difference is greater than a preset first time difference threshold value and the detection identifier belongs to a preset identifier set, the terminal device repeatedly generates a preset number of detection instructions to receive the preset number of detection identifiers and calculate the preset number of detection time differences; and if the preset number of detection identifications belong to the preset identification set and the average duration of the preset number of detection time differences is less than or equal to a preset second time difference threshold value, the terminal equipment judges that the operation result of the application program is normal.
The application program running result comprises: the method comprises the steps that the duration of a normal state of an application program is the total duration of a normal operation result of the application program in a preset time period; the calculating the service execution parameters according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment comprises: if the service server analyzes preset field information from the terminal equipment heartbeat packet, determining a calculation factor corresponding to the operation state of the service server according to the corresponding relation between the preset operation state and the calculation factor, and taking the calculation factor as a selected calculation factor; the service server extracts the duration of the normal state of the application program from the running result of the application program;
the service server is characterized in that the service server is connected with the service server through a formula:calculating the service execution parameter, wherein LivLevel is the service execution parameter, Pre is the selected calculation factor, NormTime is the duration of the normal state of the application program, and e is naturalA constant.
And the terminal equipment is also used for extracting the running state of the service server from the reply message according to the corresponding relation between the preset message position and the data type.
And the analysis server is also used for displaying the alarm strategy corresponding to the service execution state.
In the embodiment of the invention, a service detection message is sent to a service server of a preset service through a terminal device, and a reply message returned by the service server is received, wherein the reply message comprises the running state of the service server; the method comprises the steps that terminal equipment detects an operation result of an application program corresponding to a preset service, detects the operation state of the terminal equipment and generates a heartbeat packet of the terminal equipment; the terminal equipment sends the running state of the service server, the running result of the application program and the heartbeat packet of the terminal equipment to an analysis server; the analysis server calculates a service execution parameter according to the operation state of the service server, the operation result of the application program and the heartbeat packet of the terminal equipment, and determines the service execution state of the preset service based on the corresponding relation between the preset service execution parameter and the execution state, so that the execution state of the preset service is analyzed more comprehensively and accurately.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, to instruct related hardware.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (8)
1. A method for determining a service execution state includes:
the method comprises the steps that terminal equipment sends a service detection message to a service server of a preset service and receives a reply message returned by the service server, wherein the reply message comprises the running state of the service server;
the terminal device detects an operation result of an application program which runs in the terminal device and corresponds to the preset service, detects the operation state of the terminal device, and generates a terminal device heartbeat packet, wherein the terminal device heartbeat packet is generated after the terminal device detects the operation state of the terminal device through a heartbeat detector, and when a central processing unit of the terminal device runs normally, the heartbeat detector stores preset field information into the heartbeat packet;
if the service server analyzes the preset field information from the terminal equipment heartbeat packet, determining a calculation factor corresponding to the operation state of the service server according to the corresponding relation between the preset operation state and the calculation factor, and taking the calculation factor as a selected calculation factor;
the service server extracts the duration of the normal state of the application program from the running result of the application program;
the service server is characterized in that the service server is connected with the service server through a formula:calculating the service execution parameter, wherein LivLevel is the service execution parameter, Pre is the selected calculation factor, NormTime is the duration of the normal state of the application program, and e is a natural constant;
determining a service execution state of the preset service based on a corresponding relation between preset service execution parameters and the service execution state;
wherein the application program running result comprises: and the normal state duration of the application program is the total duration of the normal operation result of the application program in a preset time period.
2. The method for determining the service execution state according to claim 1, wherein the step of the terminal device detecting the operation result of the application program, which is corresponding to the preset service and is operated in the terminal device, comprises:
a preset processor in the terminal device generates a detection instruction for detecting the application program so as to receive a detection identifier generated by the application program, wherein the detection identifier is used for describing the running condition of the application program;
the terminal equipment calculates the time difference between the time when the preset processor receives the detection identifier and the time when the detection instruction is generated as a detection time difference;
if the detection time difference is greater than a preset first time difference threshold value and the detection identifier belongs to a preset identifier set, the terminal device repeatedly generates a preset number of detection instructions to receive the preset number of detection identifiers and calculate the preset number of detection time differences;
and if the preset number of detection identifications belong to the preset identification set and the average duration of the preset number of detection time differences is less than or equal to a preset second time difference threshold value, the terminal equipment judges that the operation result of the application program is normal.
3. The method for determining service execution status according to claim 1, wherein after receiving the reply message returned from the service server, the method further comprises:
and the terminal equipment extracts the running state of the service server from the reply message according to the corresponding relation between the preset message position and the data type.
4. The method for determining service execution status according to claim 1, further comprising:
and the analysis server displays an alarm strategy corresponding to the service execution state.
5. A system for determining a service execution state is characterized by comprising a terminal device, a service server and an analysis server;
the terminal device is used for sending a service detection message to a service server of a preset service and receiving a reply message returned by the service server, wherein the reply message contains the running state of the service server;
the terminal device is further configured to detect an operation result of an application program, which runs in the terminal device, corresponding to the preset service, detect an operation state of the terminal device itself, and generate a terminal device heartbeat packet, where the terminal device heartbeat packet is generated after the terminal device detects the operation state of the terminal device itself through a heartbeat detector, and when a central processing unit of the terminal device runs normally, the heartbeat detector stores preset field information into the heartbeat packet;
the terminal device is further configured to send the running state of the service server, the running result of the application program, and the terminal device heartbeat packet to an analysis server;
the analysis server is used for determining a calculation factor corresponding to the operation state of the service server according to a corresponding relation between a preset operation state and the calculation factor if the service server analyzes preset field information from the heartbeat packet of the terminal equipment, and the calculation factor is used as a selected calculation factor; the service server extracts the duration of the normal state of the application program from the running result of the application program; the service server is characterized in that the service server is connected with the service server through a formula:calculating the service execution parameters, and determining the service execution state of the preset service based on the corresponding relation between the preset service execution parameters and the service execution state;
the LivLevel is the service execution parameter, the Pre is the selected calculation factor, the NormTime is the duration of the normal state of the application program, and e is a natural constant; the application program running result comprises: and the normal state duration of the application program is the total duration of the normal operation result of the application program in a preset time period.
6. The system for determining service execution state according to claim 5, wherein the detecting of the operation result of the application program, which is operated in the terminal device and corresponds to the preset service, includes:
a preset processor in the terminal device generates a detection instruction for detecting the application program so as to receive a detection identifier generated by the application program, wherein the detection identifier is used for describing the running condition of the application program;
the terminal equipment calculates the time difference between the time when the preset processor receives the detection identifier and the time when the detection instruction is generated as a detection time difference;
if the detection time difference is greater than a preset first time difference threshold value and the detection identifier belongs to a preset identifier set, the terminal device repeatedly generates a preset number of detection instructions to receive the preset number of detection identifiers and calculate the preset number of detection time differences;
and if the preset number of detection identifications belong to the preset identification set and the average duration of the preset number of detection time differences is less than or equal to a preset second time difference threshold value, the terminal equipment judges that the operation result of the application program is normal.
7. The system for determining service execution status according to claim 5, wherein the terminal device is further configured to extract the operation status of the service server from the reply packet according to a preset correspondence between packet positions and data types.
8. The system for determining service execution state according to claim 5, wherein the analysis server is further configured to display an alarm policy corresponding to the service execution state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811252270.6A CN109474672B (en) | 2018-10-25 | 2018-10-25 | Method and system for determining service execution state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811252270.6A CN109474672B (en) | 2018-10-25 | 2018-10-25 | Method and system for determining service execution state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109474672A CN109474672A (en) | 2019-03-15 |
CN109474672B true CN109474672B (en) | 2022-03-25 |
Family
ID=65666004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811252270.6A Active CN109474672B (en) | 2018-10-25 | 2018-10-25 | Method and system for determining service execution state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109474672B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383734A (en) * | 2008-10-20 | 2009-03-11 | 华为技术有限公司 | State detecting method, system and apparatus |
CN101989933A (en) * | 2009-08-03 | 2011-03-23 | 中兴通讯股份有限公司 | Method and system for failure detection |
CN104065526A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Server fault alarming method and device thereof |
CN105939393A (en) * | 2016-06-30 | 2016-09-14 | 北京奇虎科技有限公司 | Task operating state monitoring method and system |
CN106656627A (en) * | 2017-01-09 | 2017-05-10 | 周向军 | Performance monitoring and fault positioning method based on service |
CN106844220A (en) * | 2017-03-09 | 2017-06-13 | 北京融信易安信息技术有限公司 | A kind of method of testing and system of simulation computer web application real running environment |
CN108521408A (en) * | 2018-03-22 | 2018-09-11 | 平安科技(深圳)有限公司 | Resist method of network attack, device, computer equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012045341A2 (en) * | 2010-10-06 | 2012-04-12 | Nokia Siemens Networks Oy | Method, apparatus and system for detecting service data of a packet data connection |
-
2018
- 2018-10-25 CN CN201811252270.6A patent/CN109474672B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383734A (en) * | 2008-10-20 | 2009-03-11 | 华为技术有限公司 | State detecting method, system and apparatus |
CN101989933A (en) * | 2009-08-03 | 2011-03-23 | 中兴通讯股份有限公司 | Method and system for failure detection |
CN104065526A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Server fault alarming method and device thereof |
CN105939393A (en) * | 2016-06-30 | 2016-09-14 | 北京奇虎科技有限公司 | Task operating state monitoring method and system |
CN106656627A (en) * | 2017-01-09 | 2017-05-10 | 周向军 | Performance monitoring and fault positioning method based on service |
CN106844220A (en) * | 2017-03-09 | 2017-06-13 | 北京融信易安信息技术有限公司 | A kind of method of testing and system of simulation computer web application real running environment |
CN108521408A (en) * | 2018-03-22 | 2018-09-11 | 平安科技(深圳)有限公司 | Resist method of network attack, device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
"网络资源探测及可视化呈现系统的设计与实现";王智民;《中国优秀硕士论文全文数据库》;20180815;第1-80页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109474672A (en) | 2019-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10554526B2 (en) | Feature vector based anomaly detection in an information technology environment | |
CN108965347B (en) | Distributed denial of service attack detection method, device and server | |
CN108076019B (en) | Abnormal flow detection method and device based on flow mirror image | |
EP2800024B1 (en) | System and methods for identifying applications in mobile networks | |
CN110708215B (en) | Deep packet inspection rule base generation method, device, network equipment and storage medium | |
CN111010291B (en) | Business process abnormity warning method and device, electronic equipment and storage medium | |
CN108664793B (en) | Method and device for detecting vulnerability | |
CN109343853B (en) | Abnormality identification method and device for application program | |
US20160255003A1 (en) | Network apparatus, communication system, abnormal traffic detection method, and program | |
CN111130938B (en) | Index acquisition method and device, electronic equipment and computer readable storage medium | |
CN112422554B (en) | Method, device, equipment and storage medium for detecting abnormal traffic external connection | |
CN112636979B (en) | Cluster alarm method and related device | |
CN112653693A (en) | Industrial control protocol analysis method and device, terminal equipment and readable storage medium | |
CN110737565B (en) | Data monitoring method and device, electronic equipment and storage medium | |
EP3787240A1 (en) | Abnormality detection apparatus, abnormality detection method, and abnormality detection program | |
CN109474672B (en) | Method and system for determining service execution state | |
CN111526109A (en) | Method and device for automatically detecting running state of web threat recognition defense system | |
CN104461847A (en) | Data processing program detection method and device | |
CN115987827B (en) | Equipment monitoring method and device, electronic equipment and readable medium | |
CN111614630A (en) | Network security monitoring method and device and cloud WEB application firewall | |
JP2017199250A (en) | Computer system, analysis method of data, and computer | |
CN111200522A (en) | Port detection method, device, equipment and storage medium | |
CN109462503B (en) | Data detection method and device | |
CN113821403A (en) | Server monitoring method and device, electronic equipment and storage medium | |
KR101695461B1 (en) | Apparatus and method for detecting security danger |
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 |