CN109560976A - A kind of monitoring method and device of message delay - Google Patents

A kind of monitoring method and device of message delay Download PDF

Info

Publication number
CN109560976A
CN109560976A CN201710873078.8A CN201710873078A CN109560976A CN 109560976 A CN109560976 A CN 109560976A CN 201710873078 A CN201710873078 A CN 201710873078A CN 109560976 A CN109560976 A CN 109560976A
Authority
CN
China
Prior art keywords
delay
message
time
data structure
timer
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.)
Granted
Application number
CN201710873078.8A
Other languages
Chinese (zh)
Other versions
CN109560976B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710873078.8A priority Critical patent/CN109560976B/en
Publication of CN109560976A publication Critical patent/CN109560976A/en
Application granted granted Critical
Publication of CN109560976B publication Critical patent/CN109560976B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • 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/0604Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
    • H04L41/0622Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on time
    • 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/0681Configuration of triggering conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of monitoring method of message delay and devices, are related to field of computer technology, and main purpose is to reduce the complexity of research staff's program development, main technical schemes of the invention are as follows: obtain the time of message delay;After the time of the message delay reaching preset time threshold, Boolean type data structure is set by the data structure of timer;The timer for opening Boolean type data structure, judges whether the time of message delay reaches prefixed time interval by the timer of the Boolean type data structure;If so, sending message warning message to monitoring system.The monitoring of primary message delay of the present invention.

Description

A kind of monitoring method and device of message delay
Technical field
The present invention relates to field of computer technology more particularly to the monitoring methods and device of a kind of message delay.
Background technique
In real-time system monitoring, message delay has often been monitored, message delay might have a variety of situations, than If network is obstructed, causes message transmission not go out, block the transmission of message.It is very in case of a small amount of message delay phenomenon Normally, of short duration delay and quantity it is seldom if be negligible;If monitoring the message delay of certain magnitude When, it needs immediately to operation maintenance personnel warning message, so that O&M handles delay message.
Since in real-time monitoring system, the magnitude of message is all very big, so the magnitude according only to message is come to fortune Dimension personnel, which send warning message, very frequently also to need additional time while sending warning message in the prior art Limitation, after first time sends warning message to operation maintenance personnel, by the way that a timer is arranged, when second to operation maintenance personnel When sending warning message, checked whether to reach preset time interval according to timer, if reaching the time interval Warning message is sent to operation maintenance personnel.
Although can control the frequency for sending warning message to operation maintenance personnel above by the mode of setting timer, The complexity that timer can increase accordingly program writing is set, it is also desirable to design more timers in operating area, increase newly More judgement operations, increase the complexity of research staff's program development.
Summary of the invention
In view of this, the present invention provides the monitoring method and device of a kind of message delay, main purpose is to reduce research and development The complexity of automation program's exploitation.
To solve the above-mentioned problems, present invention generally provides following technical solutions:
On the one hand, the embodiment of the invention provides a kind of monitoring methods of message delay, comprising:
Obtain the time of message delay;
After the time of the message delay reaching preset time threshold, the timer of Boolean type data structure is opened;
Judge whether the time of message delay reaches prefixed time interval by the timer of the Boolean type data structure;
If so, sending message warning message to monitoring system.
Further, the time for obtaining message delay includes:
When receiving delay disposal request, requested to determine the corresponding deferred class of message delay according to the delay disposal Type;
Postpone the time that corresponding delay type obtains message delay according to different messages.
Further, the time for postponing corresponding delay type acquisition message delay according to different messages includes:
When the corresponding delay type of the message delay is routing delay, by network-management tool to target ip address Request data package obtains the time of message delay;
When the corresponding delay type of the message delay be queueing delay when, by calculate data packet sending time and The difference of time of return obtains the time of message delay.
Further, the timer by the Boolean type data structure judges whether the time of message delay reaches Prefixed time interval includes:
Attribute value corresponding to the timer of initialization Boolean type data structure;
It is arranged and reaches prefixed time interval and change attribute value corresponding to the timer of the Boolean type data structure;
By monitoring attribute value corresponding to the timer of the Boolean type data structure, judge that the time of message delay is It is no to reach prefixed time interval.
Further, described if so, to monitoring system send message alarm information include:
If attribute value corresponding to the timer of the Boolean type data structure is changed, judge that the message is prolonged The slow time reaches prefixed time interval, attribute value corresponding to the timer of Boolean type data structure is reset, to monitoring system Send message warning message.
To achieve the goals above, according to another aspect of the present invention, a kind of storage medium, the storage medium are provided Program including storage, wherein equipment where controlling the storage medium in described program operation executes described above disappear Cease the monitoring method of delay.
To achieve the goals above, according to another aspect of the present invention, a kind of processor is provided, the processor is used for Run program, wherein described program executes the monitoring method of message delay described above when running.
On the other hand, the embodiment of the invention also provides a kind of monitoring devices of message delay, comprising:
Acquiring unit, for obtaining the time of message delay;
Setting unit, for opening Boolean type data knot after the time of the message delay reaching preset time threshold The timer of structure;
Judging unit, for judging whether the time of message delay reaches by the timer of the Boolean type data structure Prefixed time interval;
Transmission unit sends Izvestia to monitoring system if the time for message delay reaches prefixed time interval Alert information.
Further, the acquiring unit includes:
Determining module, for being requested to determine message delay according to the delay disposal when receiving delay disposal request Corresponding delay type;
Module is obtained, for postponing the time that corresponding delay type obtains message delay according to different messages.
Further, the acquisition module is specifically used for when the corresponding delay type of the message delay being routing delay When, by network-management tool to target ip address request data package, obtain the time of message delay;
The acquisition module is specifically also used to pass through when the corresponding delay type of the message delay is queueing delay The sending time of data packet and the difference of time of return are calculated, the time of message delay is obtained.
Further, the judging unit includes:
Initialization module, attribute value corresponding to the timer for initialization Boolean type data structure;
Setup module reaches prefixed time interval and changes corresponding to the timer of the Boolean type data structure for being arranged Attribute value;
Judgment module, for attribute value corresponding to the timer by monitoring the Boolean type data structure, judgement disappears Whether the time of breath delay reaches prefixed time interval.
Further, the transmission unit, if corresponding to timer specifically for the Boolean type data structure Attribute value is changed, then judges that the time of the message delay reaches prefixed time interval, resetting Boolean type data structure Attribute value corresponding to timer sends message warning message to monitoring system.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
The monitoring method and device of a kind of message delay provided in an embodiment of the present invention, by by the data structure of timer It is set as Boolean data structure, to pass through the meter of Boolean type data structure after the timer for opening Boolean type data structure When device come according to prefixed time interval to monitoring system send message warning message, without research staff operating area design more More timers reduces the complexity of research staff's program development.Come with direct timer in the prior art to message delay The method being monitored is compared, and the data structure of the logical setting timer of the embodiment of the present invention is Boolean type data structure, in timing Process only needs to judge the corresponding attribute of Boolean type data structure, eliminates intermediate most of with business department's correlative code itself It writes, without designing more timers, alleviates the complexity of exploitation.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of monitoring method flow chart of message delay provided in an embodiment of the present invention;
Fig. 2 is the monitoring method flow chart of another message delay provided in an embodiment of the present invention;
Fig. 3 is a kind of composition block diagram of the monitoring device of message delay provided in an embodiment of the present invention;
Fig. 4 is the composition block diagram of the monitoring device of another message delay provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of monitoring method of message delay, as shown in Figure 1, this method is by by timer Data structure be set as Boolean type data structure, and then according to the timer of Boolean type data structure judge message delay when Between whether reach prefixed time interval, reduce the complexity of research staff's program development, this embodiment of the present invention provided following Specific steps:
101, the time of message delay is obtained.
For the embodiment of the present invention, message delay is mainly used for after referring to that message is sent to server end, delay a period of time Just it is delivered to client, such as after delay 3 seconds or user end to server send message, delay a period of time just bedding and clothing Device of being engaged in receives so that client and server can not real-time reception to message, it is generally the case that network is obstructed to will cause message Transmission is not gone out or message sink is less than and then leading to message delay.
Wherein, the time of message delay can be a data packet and be sent to Website server from the computer of user, so Return to the turnaround time of subscriber computer from Website server immediately again afterwards.Popular says, is exactly that data are here passed to from computer Time used over there.Occur in real-time monitoring system message delay be it is very normal, the message delay of of short duration time and This delay can be ignored if delay message number is seldom, but need to lead to immediately if postponing the very big situation of message number Know that operation maintenance personnel is handled.
The embodiment of the present invention by obtaining time of message delay, can in real-time monitoring system message disposition, In order to find that the very big situation of delay message number sends warning message immediately, so that the message to delay is handled.
102, after the time of the message delay reaching preset time threshold, the timing of Boolean type data structure is opened Device.
Since the length of time of message delay may influence the quantity of delay message, the time of message delay is longer, says The quantity of bright delay message is more, conversely, the time of message delay is shorter, illustrates that the quantity for postponing message is fewer, for delay The quantity of message is more, will lead to clogged with messages, needs that corresponding operation maintenance personnel is notified to carry out when reaching certain amount grade Processing in time, since the magnitude of message inside real-time monitoring system is all very big, if frequently notice operation maintenance personnel It will cause unnecessary puzzlement, message worked as by setting preset time threshold come the transmission of limitation notification for present example After the time of delay reaches preset threshold, notifying that corresponding operation maintenance personnel is handled.
It should be noted that the message in real-time monitoring system can be increasing over time, in order to protect The magnitude of card delay message maintains reduced levels, and the embodiment of the present invention is set by opening the timer of Boolean type data structure The time interval for sending notice is set, the timer of Boolean type data structure is the data structure with true and false attribute here, in turn During determining time interval, the service logic of data structure itself is only needed, without using the decision logic crossed, is alleviated The complexity of exploitation.
103, judge whether the time of message delay reaches preset time by the timer of the Boolean type data structure Interval.
It should be noted that prefixed time interval is usually when being arranged after first time sends notice to operation maintenance personnel Between be spaced, if the time of message delay reaches prefixed time interval again, illustrate postpone message quantity run up to centainly Magnitude needs to notify that operation maintenance personnel transmission is handled again, if the time of message delay is not up to prefixed time interval, Illustrate that the quantity for postponing message does not run up to certain magnitude also, without notifying operation maintenance personnel.
104, if so, sending message warning message to monitoring system.
If the time of message delay reaches prefixed time interval, illustrate that delay message number is excessive, if locating not in time Reason is easy the excessive delay message of accumulation, and so as to cause message blocking, the embodiment of the present invention reaches pre- in the time of message delay If after time interval, sending message warning message to control system, in order to which operation maintenance personnel is in real time handled delay message.
For a kind of monitoring method for message delay that the embodiment of the present invention provides, by by the data structure of timer It is set as Boolean data structure, to pass through the meter of Boolean type data structure after the timer for opening Boolean type data structure When device come according to prefixed time interval to monitoring system send message warning message, without research staff operating area design more More timers reduces the complexity of research staff's program development.Come with direct timer in the prior art to message delay The method being monitored is compared, and the data structure of the logical setting timer of the embodiment of the present invention is Boolean type data structure, in timing Process only needs to judge the corresponding attribute of Boolean type data structure, eliminates intermediate most of with business department's correlative code itself It writes, without designing more timers, alleviates the complexity of exploitation.
Below in order to which the monitoring method of message delay proposed by the present invention a kind of is explained in more detail, especially for logical The timer for crossing Boolean type data structure judges the step of whether time of message delay reaches prefixed time interval, and the present invention is real It applies example and additionally provides the monitoring method of another message delay, as shown in Fig. 2, the specific step of this method includes:
201, it when receiving delay disposal request, is requested to determine the corresponding delay of message delay according to the delay disposal Type.
Wherein, delay disposal request is when server end or client are sent when that can not send message in time to other side Delay disposal request, delay disposal request may be due to many reasons, the routing delay as caused by network failure or network Queueing delay caused by being not in good state etc., and the corresponding message delay times of different delay types are different, further root It requests to determine the corresponding delay type of message delay according to delay disposal, in order to which client or server lead different delays type The message delay of cause is handled.
202, postpone the time that corresponding delay type obtains message delay according to different messages.
For the embodiment of the present invention, since speed is very fast in message transmitting procedure, their biographies in physical medium It almost can be ignored between sowing time, but can not ignore in the processing time of router forwarding data packet.If passing It during defeated needs that routing delay will be generated when a large amount of routing forwardings, when the corresponding delay type of message delay is routing delay When, it needs through network-management tool to target ip address request data package, network management management tool here can be use In the tool of test network linking status, such as internet detection packet, target ip address is current message recipient, by target IP address request data package tests the network connection state between current sender and recipient, and then recipient can be to transmission Square returned data packet includes current network connection state information in the data packet, is further obtained according to current network connection status Take the time of message delay.
For the embodiment of the present invention, since speed is very fast in message transmitting procedure, and if sender and recipient Between the bad situation of network connection state, message will be deposited in message queue and can not send in real time, can generate at this time Queueing delay, when the corresponding delay type of message delay is queueing delay, by calculating the sending time of data packet and returning The difference of time is returned, the time of message delay is further obtained according to difference.
203, attribute value corresponding to the timer of initialization Boolean type data structure.
Wherein, Boolean type data structure is corresponding with two attribute value of true and false, commonly used in being held according to attribute return value Row decision logic, attribute value corresponding to the timer of initialization Boolean type data structure in the embodiment of the present invention, for convenience Subsequent time interval judgement is carried out, attribute value can be accordingly initialized as true.
204, setting reaches prefixed time interval and changes attribute value corresponding to the timer of the Boolean type data structure.
It should be noted that prefixed time interval is usually when being arranged after first time sends notice to operation maintenance personnel Between be spaced, setting when reach prefixed time interval change Boolean type data structure timer corresponding to attribute value, if opened Corresponding attribute value is true when opening Boolean type data structure timer, then setting reaches prefixed time interval change Boolean type data Attribute value corresponding to the timer of structure is false, thus after the time of message delay reaching prefixed time interval again, then Secondary notice operation maintenance personnel transmission is handled, in case the delay message that accumulation is excessive, guarantees the timeliness of Message Processing.
205, by monitoring attribute value corresponding to the timer of the Boolean type data structure, judge message delay when Between whether reach prefixed time interval.
For the embodiment of the present invention, by monitoring whether attribute value corresponding to the timer of Boolean type data structure occurs Change then judges that the time of message delay reaches in case of changing to judge whether message delay reaches prefixed time interval To prefixed time interval, illustrate that delay message number is excessive, if processing is easy the excessive delay message of accumulation not in time, to lead Message blocking is caused, judges that the time of message delay is not up to prefixed time interval if not changing, illustrates to postpone message Quantity do not run up to certain magnitude also, without notifying operation maintenance personnel.
If 206, attribute value corresponding to the timer of the Boolean type data structure is changed, disappear described in judgement The time of breath delay reaches prefixed time interval, attribute value corresponding to the timer of Boolean type data structure is reset, to monitoring System sends message warning message.
For the embodiment of the present invention, specific application scenarios may include but be not limited to following implementations, due to clothes Be engaged in device end routing connectivity problem when, client can receive server end transmission delay disposal request, then according to delay at Reason requests to determine that the corresponding delay type of message delay is routing delay, is further asked by internet detection packet to server end Network connection state is sought, the time of message delay, category corresponding to the timer of initialization Boolean type data structure is calculated Property value be it is true, in the timer for opening Boolean type data structure, by attribute value corresponding to the timer of Boolean type data structure It is set to false as, and being arranged every 5 minutes corresponding attribute values of change Boolean type data structure is very, when monitoring Boolean type data When attribute value corresponding to the timer of structure becomes true, judges that the time of message delay reaches prefixed time interval, reset cloth Attribute value corresponding to the timer of your type data structure is true, and sends message warning message to monitoring system.
For the monitoring method of another message delay provided in an embodiment of the present invention, by by the data structure of timer It is set as Boolean data structure, to pass through the meter of Boolean type data structure after the timer for opening Boolean type data structure When device come according to prefixed time interval to monitoring system send message warning message, without research staff operating area design more More timers reduces the complexity of research staff's program development.Come with direct timer in the prior art to message delay The method being monitored is compared, and the data structure of the logical setting timer of the embodiment of the present invention is Boolean type data structure, in timing Process only needs to judge the corresponding attribute of Boolean type data structure, eliminates intermediate most of with business department's correlative code itself It writes, without designing more timers, alleviates the complexity of exploitation.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of storage Jie Matter, the storage medium include the program of storage, wherein equipment where controlling the storage medium in described program operation is held The monitoring method of row message delay described above.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of processor, The processor is for running program, wherein described program executes the monitoring method of message delay described above when running.
Further, as the realization to method shown in above-mentioned Fig. 1 and Fig. 2, another embodiment of the present invention additionally provides one The monitoring device of kind message delay.The Installation practice is corresponding with preceding method embodiment, is easy to read, present apparatus embodiment No longer the detail content in preceding method embodiment is repeated one by one, it should be understood that the device in the present embodiment can The corresponding full content realized in preceding method embodiment.The device can reduce the complexity of research staff's program development, tool Body is as shown in figure 3, the device includes:
Acquiring unit 31 can be used for obtaining the time of message delay;
Setting unit 32 can be used for after the time of the message delay reaching preset time threshold, open Boolean type The timer of data structure;
Judging unit 33 can be used for judging by the timer of the Boolean type data structure that the time of message delay is It is no to reach prefixed time interval;
Transmission unit 34 is sent if the time that can be used for message delay reaches prefixed time interval to monitoring system Message warning message.
For the embodiment provides a kind of monitoring device of message delay, by by the data structure of timer It is set as Boolean data structure, to pass through the meter of Boolean type data structure after the timer for opening Boolean type data structure When device come according to prefixed time interval to monitoring system send message warning message, without research staff operating area design more More timers reduces the complexity of research staff's program development.Come with direct timer in the prior art to message delay The method being monitored is compared, and the data structure of the logical setting timer of the embodiment of the present invention is Boolean type data structure, in timing Process only needs to judge the corresponding attribute of Boolean type data structure, eliminates intermediate most of with business department's correlative code itself It writes, without designing more timers, alleviates the complexity of exploitation.
Further, as shown in figure 4, the acquiring unit 31 includes:
Determining module 311 can be used for when receiving delay disposal request, be disappeared according to delay disposal request determination Breath postpones corresponding delay type;
Module 312 is obtained, can be used for postponing according to different messages the time that corresponding delay type obtains message delay.
Further, the acquisition module 312 specifically can be used for when the corresponding delay type of the message delay being road When by postponing, by network-management tool to target ip address request data package, the time of message delay is obtained;
The acquisition module 312 specifically can be also used for when the corresponding delay type of the message delay being queueing delay When, by calculating the sending time of data packet and the difference of time of return, obtain the time of message delay.
Further, the judging unit 33 includes:
Initialization module 331 can be used for attribute value corresponding to the timer of initialization Boolean type data structure;
Setup module 332 can be used for setting and reach the timing that prefixed time interval changes the Boolean type data structure Attribute value corresponding to device;
Judgment module 333 can be used for attribute value corresponding to the timer by the monitoring Boolean type data structure, Judge whether the time of message delay reaches prefixed time interval.
Further, the transmission unit 34, if specifically can be used for the timer institute of the Boolean type data structure Corresponding attribute value is changed, then judges that the time of the message delay reaches prefixed time interval, reset Boolean type data Attribute value corresponding to the timer of structure sends message warning message to monitoring system.
For the monitoring device of another message delay provided in an embodiment of the present invention, by by the data structure of timer It is set as Boolean data structure, to pass through the meter of Boolean type data structure after the timer for opening Boolean type data structure When device come according to prefixed time interval to monitoring system send message warning message, without research staff operating area design more More timers reduces the complexity of research staff's program development.Come with direct timer in the prior art to message delay The method being monitored is compared, and the data structure of the logical setting timer of the embodiment of the present invention is Boolean type data structure, in timing Process only needs to judge the corresponding attribute of Boolean type data structure, eliminates intermediate most of with business department's correlative code itself It writes, without designing more timers, alleviates the complexity of exploitation.
The monitoring device of the message delay includes processor and memory, and above-mentioned acquiring unit 31, is sentenced setting unit 32 Disconnected unit 33 and transmission unit 34 etc. store in memory as program unit, execute storage in memory by processor Above procedure unit realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, the complexity of research staff's program development is reduced by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The monitoring method of the existing message delay.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation The monitoring method of message delay described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
A kind of monitoring method of message delay, comprising: obtain the time of message delay;It is reached when the time of the message delay To after preset time threshold, the timer of Boolean type data structure is opened;Sentenced by the timer of the Boolean type data structure Whether the time of disconnected message delay reaches prefixed time interval;If so, sending message warning message to monitoring system.
Further, the time for obtaining message delay includes: and is prolonged when receiving delay disposal request according to described Processing late requests to determine the corresponding delay type of message delay;Postpone corresponding delay type acquisition message according to different messages to prolong The slow time.
Further, the time for postponing corresponding delay type acquisition message delay according to different messages includes: to work as When the corresponding delay type of the message delay is routing delay, by network-management tool to target ip address request data Packet, obtains the time of message delay;When the corresponding delay type of the message delay is queueing delay, by calculating data packet Sending time and time of return difference, obtain the time of message delay.
Further, the timer by the Boolean type data structure judges whether the time of message delay reaches Prefixed time interval includes: attribute value corresponding to the timer of initialization Boolean type data structure;Setting reaches preset time Attribute value corresponding to the timer of the Boolean type data structure is changed at interval;By monitoring the Boolean type data structure Attribute value corresponding to timer, judges whether the time of message delay reaches prefixed time interval.
Further, described if so, to monitoring system send message alarm information include: if the Boolean type data Attribute value corresponding to the timer of structure is changed, then judges that the time of the message delay reaches prefixed time interval, Attribute value corresponding to the timer of Boolean type data structure is reset, sends message warning message to monitoring system.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program code of beginningization there are as below methods step: the time of message delay is obtained;Reach default when the time of the message delay After time threshold, Boolean type data structure is set by the data structure of timer;The timer of Boolean type data structure is opened, Judge whether the time of message delay reaches prefixed time interval by the timer of the Boolean type data structure;If so, Message warning message is sent to monitoring system.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of monitoring method of message delay characterized by comprising
Obtain the time of message delay;
After the time of the message delay reaching preset time threshold, the timer of Boolean type data structure is opened;
Judge whether the time of message delay reaches prefixed time interval by the timer of the Boolean type data structure;
If so, sending message warning message to monitoring system.
2. the method according to claim 1, wherein the time for obtaining message delay includes:
When receiving delay disposal request, requested to determine the corresponding delay type of message delay according to the delay disposal;
Postpone the time that corresponding delay type obtains message delay according to different messages.
3. according to the method described in claim 2, it is characterized in that, described obtain according to the corresponding delay type of different messages delay The time for taking message delay includes:
When the corresponding delay type of the message delay is routing delay, requested by network-management tool to target ip address Data packet obtains the time of message delay;
When the corresponding delay type of the message delay is queueing delay, by the sending time and return that calculate data packet The difference of time obtains the time of message delay.
4. method according to any one of claim 1-3, which is characterized in that described to pass through the Boolean type data structure Timer judge whether the time of message delay reaches prefixed time interval and include:
Attribute value corresponding to the timer of initialization Boolean type data structure;
It is arranged and reaches prefixed time interval and change attribute value corresponding to the timer of the Boolean type data structure;
By monitoring attribute value corresponding to the timer of the Boolean type data structure, judge whether the time of message delay reaches To prefixed time interval.
5. according to the method described in claim 4, it is characterized in that, described if so, sending message alarm signal to monitoring system Breath includes:
If attribute value corresponding to the timer of the Boolean type data structure is changed, the message delay is judged Time reaches prefixed time interval, resets attribute value corresponding to the timer of Boolean type data structure, sends to monitoring system Message warning message.
6. a kind of monitoring device of message delay, which is characterized in that
Acquiring unit, for obtaining the time of message delay;
Setting unit, for opening Boolean type data structure after the time of the message delay reaching preset time threshold Timer;
Judging unit, for judging whether the time of message delay reaches default by the timer of the Boolean type data structure Time interval;
Transmission unit sends message alarm signal to monitoring system if the time for message delay reaches prefixed time interval Breath.
7. device according to claim 6, which is characterized in that the acquiring unit includes:
Determining module determines that message delay is corresponding for being requested according to the delay disposal when receiving delay disposal request Delay type;
Module is obtained, for postponing the time that corresponding delay type obtains message delay according to different messages.
8. device according to claim 7, which is characterized in that
The acquisition module is specifically used for passing through network pipe when the corresponding delay type of the message delay is routing delay Science and engineering has the time that message delay is obtained to target ip address request data package;
The acquisition module is specifically also used to pass through calculating when the corresponding delay type of the message delay is queueing delay The sending time of data packet and the difference of time of return, obtain the time of message delay.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require 1 to the message delay described in any one of claim 5 Monitoring method.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require 1 to the message delay described in any one of claim 5 monitoring method.
CN201710873078.8A 2017-09-25 2017-09-25 Message delay monitoring method and device Active CN109560976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710873078.8A CN109560976B (en) 2017-09-25 2017-09-25 Message delay monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710873078.8A CN109560976B (en) 2017-09-25 2017-09-25 Message delay monitoring method and device

Publications (2)

Publication Number Publication Date
CN109560976A true CN109560976A (en) 2019-04-02
CN109560976B CN109560976B (en) 2021-06-08

Family

ID=65863082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710873078.8A Active CN109560976B (en) 2017-09-25 2017-09-25 Message delay monitoring method and device

Country Status (1)

Country Link
CN (1) CN109560976B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187980A (en) * 2019-04-19 2019-08-30 北京三快在线科技有限公司 Message queue monitoring method, device, electronic equipment and readable storage medium storing program for executing
CN112347014A (en) * 2020-11-30 2021-02-09 安徽信息工程学院 Optimal time sequence control method and system for centralized data communication
CN112395103A (en) * 2020-11-02 2021-02-23 天津五八到家货运服务有限公司 Method and device for sending delay message and storage medium
CN113595814A (en) * 2021-07-06 2021-11-02 深圳Tcl新技术有限公司 Message delay detection method and device, electronic equipment and storage medium
CN115174346A (en) * 2022-09-02 2022-10-11 平安银行股份有限公司 Message queue-based delay alarm method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437301A (en) * 2008-12-04 2009-05-20 华为技术有限公司 Method, equipment and communication system for transmitting message
US20100185411A1 (en) * 2009-01-16 2010-07-22 Randall Richard Pfeiffer Object monitor
US20140052300A1 (en) * 2010-12-31 2014-02-20 Nest Labs, Inc. Inhibiting deleterious control coupling in an enclosure having multiple hvac regions
CN205283611U (en) * 2015-12-23 2016-06-01 武汉哒呤科技有限公司 End and server end news information will be moved and synchronous device will be carried out
CN106130816A (en) * 2016-06-24 2016-11-16 腾讯科技(深圳)有限公司 A kind of content distributing network monitoring method, monitoring server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437301A (en) * 2008-12-04 2009-05-20 华为技术有限公司 Method, equipment and communication system for transmitting message
US20100185411A1 (en) * 2009-01-16 2010-07-22 Randall Richard Pfeiffer Object monitor
US20140052300A1 (en) * 2010-12-31 2014-02-20 Nest Labs, Inc. Inhibiting deleterious control coupling in an enclosure having multiple hvac regions
CN205283611U (en) * 2015-12-23 2016-06-01 武汉哒呤科技有限公司 End and server end news information will be moved and synchronous device will be carried out
CN106130816A (en) * 2016-06-24 2016-11-16 腾讯科技(深圳)有限公司 A kind of content distributing network monitoring method, monitoring server and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SAFER2016: "《C# 计时器_运维_wljhk2006的专栏-CSDN博客》", 《CSDN博客》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187980A (en) * 2019-04-19 2019-08-30 北京三快在线科技有限公司 Message queue monitoring method, device, electronic equipment and readable storage medium storing program for executing
CN110187980B (en) * 2019-04-19 2021-11-19 北京三快在线科技有限公司 Message queue monitoring method and device, electronic equipment and readable storage medium
CN112395103A (en) * 2020-11-02 2021-02-23 天津五八到家货运服务有限公司 Method and device for sending delay message and storage medium
CN112347014A (en) * 2020-11-30 2021-02-09 安徽信息工程学院 Optimal time sequence control method and system for centralized data communication
CN112347014B (en) * 2020-11-30 2022-04-26 安徽信息工程学院 Optimal time sequence control method and system for centralized data communication
CN113595814A (en) * 2021-07-06 2021-11-02 深圳Tcl新技术有限公司 Message delay detection method and device, electronic equipment and storage medium
CN115174346A (en) * 2022-09-02 2022-10-11 平安银行股份有限公司 Message queue-based delay alarm method

Also Published As

Publication number Publication date
CN109560976B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109560976A (en) A kind of monitoring method and device of message delay
JP2019536144A (en) IOT security service
US20200220921A1 (en) Dynamic socket qos settings for web service connections
CN109936640A (en) From the address distribution method and device of node device
CN110377434A (en) A kind of service blowout method, device and message-oriented middleware
US10462031B1 (en) Network visibility for cotenant processes
CN105474602A (en) Method, device and equipment of identifying attack flow in software defined network
JP7282686B2 (en) Abnormal communication detection device, abnormal communication detection method, program
US20180013783A1 (en) Method of protecting a communication network
US20180091369A1 (en) Techniques to detect anomalies in software defined networking environments
CN109995787A (en) A kind of data processing method and relevant device
US10122603B2 (en) Inter-nodes multicasting communication in a monitoring infrastructure
CN110019386A (en) A kind of stream data processing method and equipment
CN108804938A (en) Authority detection method and device, electronic equipment and readable storage medium
US10805144B1 (en) Monitoring interactions between entities in a network by an agent for particular types of interactions and indexing and establishing relationships of the components of each interaction
Yamamoto et al. Prediction of traffic congestion on wired and wireless networks using RNN
CN108235800A (en) A kind of network failure probing method and control centre's equipment
CN108920326A (en) Determine system time-consuming abnormal method, apparatus and electronic equipment
CN112583879B (en) Request processing method, device and system, storage medium and electronic equipment
CN111464492A (en) Control method and device for suppressing network storm, storage medium and processor
US10560317B2 (en) Subscription to a subset of switching events
CN108616423A (en) A kind of talk-around device monitoring method and device
CN107948989A (en) A kind of computational methods and device of mobile terminal networking duration
US11403204B2 (en) Framework for monitoring nanosecond-order application performance
US11425003B2 (en) Network aware element and a method for using same

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant