CN107124288B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN107124288B
CN107124288B CN201610101648.7A CN201610101648A CN107124288B CN 107124288 B CN107124288 B CN 107124288B CN 201610101648 A CN201610101648 A CN 201610101648A CN 107124288 B CN107124288 B CN 107124288B
Authority
CN
China
Prior art keywords
message
node
lost
transceiving
loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610101648.7A
Other languages
Chinese (zh)
Other versions
CN107124288A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201610101648.7A priority Critical patent/CN107124288B/en
Publication of CN107124288A publication Critical patent/CN107124288A/en
Application granted granted Critical
Publication of CN107124288B publication Critical patent/CN107124288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols

Abstract

The invention provides a message processing method and a device, wherein the method comprises the following steps: collecting the transceiving messages on at least one node; wherein the at least one node is determined according to a service type; judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node; if yes, determining the lost message, and processing the lost message according to a preset rule. The invention solves the problem that the system and the service can not be executed due to the loss of the message.

Description

Message processing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message processing method and apparatus.
Background
Generally, the number of messages to be processed inside the system is extremely large, and the loss and omission of the messages often occur.
Taking a network management system as an example, in the network management system, the network management system may frequently receive and process various messages generated by the managed network elements and itself, and at the same time, it is also necessary to forward and report various messages to a higher-level system or other related external systems. Because a plurality of processing nodes inside and outside are involved and the forwarding and reporting are carried out for a plurality of times, in the transmission processing process, the problem of message loss caused by the problems of protocols, transmission and the like is difficult to avoid, and once the message is lost, the condition of message inconsistency between systems occurs, so that the omission or misjudgment of the system problems or states is caused, and the execution of the system and the service is seriously influenced.
Disclosure of Invention
The invention provides a message processing method and a message processing device, which aim to solve the problem that a system and service cannot be executed due to message loss.
In order to solve the above problem, the present invention discloses a message processing method, which comprises:
collecting the transceiving messages on at least one node; wherein the at least one node is determined according to a service type;
judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node;
if yes, determining the lost message, and processing the lost message according to a preset rule.
Preferably, the determining whether there is a message loss in nodes belonging to the same vector direction includes:
determining a starting node and a terminating node in the same vector direction;
respectively acquiring a first transceiving message on the starting node and a second transceiving message on the terminating node;
and judging whether the nodes belonging to the same vector direction have message loss or not according to the first transceiving message and the second transceiving message.
Preferably, the determining the lost message includes:
determining nodes with lost messages;
acquiring a transceiving message on a node at the upper level of the node with the message loss;
and determining the acquired transceiving message as the lost message.
Preferably, the processing the lost message according to a preset rule includes:
and sending the lost message to a node with message loss so as to realize recovery and self-healing of the message.
Preferably, the sending the lost message to the node with the message loss includes:
determining a communication protocol of the node with the message loss;
repackaging the lost message according to the determined communication protocol;
and sending the repackaged lost message to the node with the message loss.
Preferably, the method further comprises:
acquiring registration information of each node through a set interface; wherein the registration information at least comprises: message source identification, local node identification, message destination identification, message characteristic identification and the preset rule.
Preferably, the processing the lost message according to a preset rule includes:
acquiring registration information of a node with message loss;
and sending the lost message to the node with the message loss according to the registration information of the node with the message loss.
The invention also discloses a message processing device, comprising:
the acquisition module is used for acquiring the transceiving messages on at least one node; wherein the at least one node is determined according to a service type;
the judging module is used for judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node;
the determining module is used for determining lost messages when the messages are lost;
and the processing module is used for processing the lost message according to a preset rule.
Preferably, the judging module includes:
the determining submodule is used for determining a starting node and a terminating node in the same vector direction;
an obtaining submodule, configured to obtain a first transceiving message on the start node and a second transceiving message on the end node, respectively;
and the judging submodule is used for judging whether the nodes belonging to the same vector direction have message loss or not according to the first transceiving message and the second transceiving message.
Preferably, the determining module includes:
the node determining submodule is used for determining the node with the message loss when the message loss exists;
the message acquisition submodule is used for acquiring the transceiving message on the upper-level node of the node with the message loss;
and the message determining submodule is used for determining the acquired transceiving message as the lost message.
Preferably, the processing module is configured to send the lost message to a node where the message is lost, so as to implement recovery and self-healing of the message.
Preferably, the processing module includes:
the protocol determining submodule is used for determining the communication protocol of the node with the message loss;
a repackaging sub-module for repackaging the lost message according to the determined communication protocol;
and the first sending submodule is used for sending the repackaged lost message to the node with the message loss.
Preferably, the apparatus further comprises:
the receiving module is used for acquiring the registration information of each node through a set interface; wherein the registration information at least comprises: message source identification, local node identification, message destination identification, message characteristic identification and the preset rule.
Preferably, the processing module includes:
the registration information acquisition submodule is used for acquiring the registration information of the node with the information loss;
and the second sending submodule is used for sending the lost message to the node with the message loss according to the registration information of the node with the message loss.
Compared with the prior art, the invention has the following advantages:
the message processing scheme disclosed by the invention can be used for collecting the receiving and sending messages on at least one node; judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node; and determining the lost message when the message is lost, and processing the lost message according to a preset rule. Therefore, in the invention, the message omission and/or loss condition in the message receiving and sending process can be timely found according to the data information collected in real time, the processing of the omitted and/or lost message can be immediately completed, the processing efficiency is ensured, the processing period is shortened, and the influence of the message omission and/or loss condition on the system and the normal service is effectively avoided.
Drawings
Fig. 1 is a flowchart illustrating steps of a message processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a message processing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message self-healing device according to a third embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an execution process of a message self-healing device according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a message detection in the third embodiment of the present invention;
fig. 6 is a block diagram of a message processing apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a preferred message processing apparatus in the fourth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating steps of a message processing method according to a first embodiment of the present invention is shown. In this embodiment, the message processing method may include:
step 102, collecting the transceiving messages on at least one node.
Generally, the direction of message transmission in the whole application system is across multiple nodes or there are multiple branches (i.e. originating from one node and terminating at multiple nodes). The transmission and processing path of the message is unique in a certain vector direction, and the direction is also straight ahead and is terminated at a certain node. In this embodiment, at least one node that passes through during the message transmission process may be monitored, and the transmission and reception messages on the at least one node may be collected.
As mentioned above, the nodes involved in different traffic types are not identical, i.e. the at least one node may be determined according to the traffic type.
And step 104, judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node.
As mentioned above, the transmission and processing path of the message in a certain vector direction is unique, generally, if the message is normally transmitted (without exception), the message corresponding to the starting node is identical to the message corresponding to the terminating node, and if the message corresponding to the starting node is not identical to the message corresponding to the terminating node, the message may be lost, and the message is abnormal.
In this embodiment, if there is a message loss in the nodes belonging to the same vector direction, the following step 106 may be performed. If there is no message loss in nodes belonging to the same vector direction, no processing may be done.
Step 106, the missing message is determined.
In this embodiment, any suitable manner may be adopted to determine the specific lost message, for example, the lost message is determined by comparing previous and subsequent node messages, and the like, which is not limited in this embodiment.
And step 108, processing the lost message according to a preset rule.
In this embodiment, after determining the lost message, the lost message may be processed according to a preset rule, for example, the message may be recovered according to the determined lost message, so as to ensure normal operation of an application system and a processed service. For another example, a message notification may be generated according to the determined lost message, and the message notification may be sent to the user, so that the user may perform analysis processing according to the message notification. Also for example, execution of the service may be resumed by ending directly and returning. This embodiment is not limited thereto.
In summary, the message processing method according to this embodiment may collect the transceiving messages on at least one node; judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node; and determining the lost message when the message is lost, and processing the lost message according to a preset rule. Therefore, in the embodiment, the missing and/or lost condition of the message in the message receiving and sending process can be timely found according to the data information collected in real time, the processing of the missing and/or lost message can be immediately completed, the processing efficiency is ensured, the processing period is shortened, and the influence of the missing and/or lost condition of the message on the system and the normal service is effectively avoided.
Example two
Referring to fig. 2, a flowchart illustrating a message processing method according to a second embodiment of the present invention is shown. In this embodiment, the message processing method may include:
step 202, obtaining the registration information of each node through a setting interface.
In this embodiment, the registration information of each node may be obtained in any suitable manner, for example, the registration information of each node may be obtained through a setting interface. For another example, the registration information of each node may be obtained by means of inter-system message notification, which is not limited in this embodiment. Wherein the registration information includes but is not limited to: at least one of message source identification, local node identification, message destination identification, message characteristic identification and preset rules. The preset rules may be used to indicate the handling of lost messages.
Step 204, collecting the transceiving messages on at least one node.
In this embodiment, one possible message collection method may be as follows: collecting the transceived messages by inserting a probe on the at least one node. It should be noted that, in this embodiment, the transceiving messages on all nodes in the uniform vector direction may be collected, and any appropriate number of partial nodes may be selected to collect the transceiving messages according to the service requirement, so as to reduce the workload, improve the recovery and processing efficiency of the messages, and reduce the device load.
And step 206, judging whether the messages are lost in the nodes belonging to the same vector direction according to the acquired transceiving messages on each node.
In this embodiment, it can be determined whether there is a message loss in nodes belonging to the same vector direction, but not limited to, by:
first, a start node and a stop node in the same vector direction are determined.
In this embodiment, the determination may be, but is not limited to, based on registration information of a node
Then, a first transceiving message on the originating node and a second transceiving message on the terminating node are acquired, respectively.
And finally, judging whether the nodes belonging to the same vector direction have message loss according to the first transceiving message and the second transceiving message.
In this embodiment, if the first transceiving message and the second transceiving message are identical, it indicates that there is no message loss, and no processing may be performed. If the first and second sent and received messages are not consistent, indicating that there is a loss of messages, step 208, described below, may be performed.
At step 208, the missing message is determined.
In this embodiment, one possible method for determining a lost message may be as follows:
substep 2082, determining the node where the message is lost.
In this embodiment, in order to improve the speed of searching and determining the node with the message loss, the node with the message loss may be determined by a binary search method. Specifically, the method comprises the following steps: assuming that the transceiving message at the originating node is message a, a total of m nodes (including the originating node and the terminating node) are from the originating node to the terminating node. First of all. Checking whether a message B corresponding to the m/2 node is consistent with the message A or not, and if so, continuously checking a node part from the (m/2+1) node to the termination node; if not, the node part from the m/2 node to the starting node is continuously checked. And repeating the steps until the nodes with the lost messages are determined.
Substep 2084, obtaining the transceiving message on the previous node of the node with message loss.
Substep 2086, determining the obtained transceiving message as the lost message.
In this embodiment, the send-receive message on the previous node of the node with the message loss may be determined as the lost message, or the send-receive message corresponding to the start node may be directly determined as the lost message, which is not limited in this embodiment.
And step 210, processing the lost message according to a preset rule.
In this embodiment, the preset rules may include self-recovery rules, such as: the lost message can be sent to the node with the message loss so as to realize the recovery and self-healing of the message. Specifically, the communication protocol of the node with the message loss can be determined; repackaging the lost message according to the determined communication protocol; and sending the repackaged lost message to the node with the message loss.
For another example, registration information of a node where there is a message loss may be acquired; and sending the lost message to the node with the message loss according to the registration information of the node with the message loss. This embodiment is not limited thereto.
Of course, in this embodiment, only the lost message may be sent to the user, or the state of the message loss may be fed back to the user, or whether to notify the user may be selected according to the importance degree of the lost message (for example, if the lost message does not affect the continuous execution of the service, the lost state may not be reported, and the user is not notified). The embodiment provides a plurality of selection processing modes, and realizes flexible processing of the lost message, thereby ensuring normal execution of the service and reducing the influence on the user as much as possible.
In summary, the message processing method described in this embodiment may collect the message transceiving data on each node by inserting the probe into each node, and then perform uniform analysis processing according to the collected data, so as to timely find out the message omission and/or loss situation occurring in the message transceiving process, and timely take corresponding remedial measures according to the preset rules, thereby ensuring the processing efficiency, shortening the processing period, and effectively avoiding the influence of the message omission and/or loss situation on the system and the normal service.
Secondly, in this embodiment, after determining that there is a communication protocol of a node with a message loss, repackaging the lost message according to the determined communication protocol, and sending the repackaged lost message to the node with the message loss. It can be seen that, in this embodiment, the method described in this embodiment can be applied to different systems or nodes by converting a communication protocol, and the universality of the message processing method described in this embodiment and the adaptability to heterogeneous systems are ensured.
Further, the message processing method described in this embodiment can acquire information by a probe, and ensures independence in the execution process of the message processing method: the whole message processing flow can be executed independently, and the normal execution of other business flows is not influenced. Meanwhile, the message processing method can meet different pluggable and customized application scenes, and can be independently expanded according to requirements.
In addition, the message processing method described in this embodiment integrates message collection, message judgment, and message recovery, and can automatically and independently complete monitoring and self-healing of messages without manual intervention or depending on the current system. Moreover, since the collection of the messages at the nodes can be realized, the message processing method of the embodiment can realize the analysis of the external nodes or the external systems related to the current system, has wider coverage and improves the accuracy of the processing result.
EXAMPLE III
With reference to the foregoing embodiments, the present embodiment describes the message processing method in detail in conjunction with a message self-healing device.
Referring to fig. 3, a schematic structural diagram of a message self-healing device in a third embodiment of the present invention is shown. In this embodiment, the message self-healing device may be logically divided into six parts: a central processing unit 302, a rule manager 304, a recovery self-healing unit 306, a notification recorder 308, a message probe 310, a protocol adapter 312.
Wherein the content of the first and second substances,
the central processing unit 302 may be configured to perform comprehensive statistical analysis on all messages and make a determination: if the messages in the system are consistent in the circulation, whether a certain node in the circulation path is lost or not, and the specific content, circulation direction and time of the lost messages; and, processing for lost messages may be done according to rules formulated in the rules manager 304: and only recording, recording and notifying and recovering the message for self-healing.
A rule manager 304 may be used to store the preset rules. Wherein the preset rules include, but are not limited to: logging rules, logging and notification rules, and message recovery self-healing rules. In order to improve the processing efficiency, the "recording rule" and the "recovery self-healing rule" may be set as default rules. Further, the rule manager 304 may include: the management interface is provided for the service system, the management interface can be used as an inlet of the message self-healing device used by the service system or the node, and the detection of each node and/or the alarm transceiving of the subsystem can be realized through the management interface.
The recovery self-healing unit 306 may be configured to send the lost message to a designated node or system according to a flow direction of the message. Wherein, the recovery self-healing unit 306 may execute after the message recovery self-healing rule is triggered.
A notification recorder 308, which can be used for counting the sending and receiving information of the nodes and internally storing and managing the content of the alarm message; meanwhile, the method can also be used for sending a notification or a recovery message to the external detected node; and adaptation of the message or protocol is done through the protocol adapter 312.
The message probe 310, which may work together with the protocol adapter 312, implements the function of detecting and collecting the messages sent and received by each node.
Protocol adapter 312 may be used to provide different protocols and message probing approaches for message probe 310 and notification recorder 308.
In this embodiment, the external system may register with the message self-healing device through the rule manager 304. The central processing unit 302 may organize and issue an instruction to the message probe 310 according to the registration information, the message probe 310 collects the transceiving messages at the designated node after receiving the instruction, and may report the collected transceiving messages of each node to the central processing unit 302 within a designated time in order to avoid a transmission delay that may exist in the message filtering process. After collecting all the messages sent from all the nodes, the central processing unit 302 may start analyzing all the collected messages sent from all the nodes and form a final result, then record the final result through the notification recorder 308, and finally perform a recovery notification or other post-processing actions according to the preset processing rules in the rule manager 304.
It should be noted that the registration information stored in the rule manager 304 can be as shown in table 1 below:
Figure BDA0000928764790000101
table 1: registration information schematic table
Of course, it should be understood by those skilled in the art that the registration information includes, but is not limited to, the information described in table 1 above, and a plurality of information may be selected and recorded according to actual situations, which is not limited in this embodiment.
In this embodiment, referring to fig. 4, a schematic diagram of an execution flow of a message self-healing device in a third embodiment of the present invention is shown. The specific execution flow of the message self-healing device may be as follows:
and step 402, reporting the transceiving messages at each node to a central processing unit through a message probe.
In this embodiment, there may be a plurality of message probes, and the message 1 may be a plurality of messages from a plurality of nodes or a plurality of subsystems.
Specifically, referring to fig. 5, a schematic diagram of a message detection in the third embodiment of the present invention is shown. In this embodiment, the transceiving message at the node may be acquired through the cooperation of the message probe and the protocol adapter: when the message probe detects and collects the transceiving messages at each node (such as node 1 and node 2 in fig. 5), the protocol adapter can adapt and convert the transceiving messages for a heterogeneous system and a protocol system, so as to meet the requirements of internal identification, analysis, recording and the like of the message self-healing device. The detection acquisition action may be performed by a message probe and may be active or passive. The detection and acquisition action can be an asynchronous process, so that the influence on normal service processing is avoided.
And step 404, summarizing and analyzing the received and transmitted messages at each node reported by the message probe through the central processing unit to obtain an analysis conclusion.
In this embodiment, the summary analysis may include: the method comprises the steps of judging whether a message is lost or not, determining the content of the lost message, determining the position, determining the loss time and the like.
In this embodiment, the messages may be summarized and analyzed in a simple linear manner as follows:
1. the target message is a single piece or a single packet;
2. the start node is unique: a starting point S;
3. the termination node is unique: a terminal point T;
4. the process path from the starting point S to the end point T comprises 1. n intermediate nodes (A)1……An) Wherein n is an integer of 1 or more.
Judging whether the message is lost: message a exists at the starting point S; if the message A does not exist at the terminal T, the message is determined to be lost or inconsistent in the transmission process.
After determining that there is a message loss, a recovery point (i.e. a node missing a message: there is a message a at the recovery point, there is no message a at the node next to the recovery point, and the whole path includes m nodes without a start point S and an end point T, where m is an integer greater than or equal to 1) needs to be determined.
Preferably, the recovery point may be determined using a binary search method:
1. checking whether the m/2 node records the message A or not, and if the m/2 node records the message A, checking a part between the m/2+1 node and a terminal T node; if the m/2 node does not record the message A, the part from the m/2 node to the starting S node is checked.
2. Finally obtaining the first node S which can not record the message A according to the methodnAnd its previous node Sn-1
And 406, recording and storing the transceiving messages and the analysis conclusion at each node through a notification recorder.
In step 408, the central processing unit obtains the corresponding post-processing rule from the rule manager.
And step 410, performing post-processing according to the acquired corresponding post-processing rule.
In this embodiment, specifically, performing the post-processing according to the obtained corresponding post-processing rule may include: the notification is directly sent, and the self-healing can be restored by the message restoration self-healing unit and the notification recorder, which is not limited by the embodiment.
The message recovery self-healing process may be as follows: recovery self-healing unit obtaining S from message recordern-1The record content 1 of the corresponding message at the node is repackaged by the protocol adapter and sent back to the SnAnd (4) nodes.
In summary, the message processing method described in this embodiment may collect the message transceiving data on each node by inserting the probe into each node, and then perform uniform analysis processing according to the collected data, so as to timely find out the message omission and/or loss situation occurring in the message transceiving process, and timely take corresponding remedial measures according to the preset rules, thereby ensuring the processing efficiency, shortening the processing period, and effectively avoiding the influence of the message omission and/or loss situation on the system and the normal service.
Secondly, in this embodiment, after determining that there is a communication protocol of a node with a message loss, repackaging the lost message according to the determined communication protocol, and sending the repackaged lost message to the node with the message loss. It can be seen that, in this embodiment, the method described in this embodiment can be applied to different systems or nodes by converting a communication protocol, and the universality of the message processing method described in this embodiment and the adaptability to heterogeneous systems are ensured.
Further, the message processing method described in this embodiment can acquire information by a probe, and ensures independence in the execution process of the message processing method: the whole message processing flow can be executed independently, and the normal execution of other business flows is not influenced. Meanwhile, the message processing method can meet different pluggable and customized application scenes, and can be independently expanded according to requirements.
In addition, the message processing method described in this embodiment integrates message collection, message judgment, and message recovery, and can automatically and independently complete monitoring and self-healing of messages without manual intervention or depending on the current system. Moreover, since the collection of the messages at the nodes can be realized, the message processing method of the embodiment can realize the analysis of the external nodes or the external systems related to the current system, has wider coverage and improves the accuracy of the processing result.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example four
Based on the same inventive concept as the above method embodiments, referring to fig. 6, a block diagram of a message processing apparatus in a fourth embodiment of the present invention is shown. In this embodiment, the message processing apparatus includes:
an acquisition module 602, configured to acquire a transceiving message on at least one node.
In this embodiment, the at least one node is determined according to a traffic type.
The determining module 604 is configured to determine whether there is a message loss in the nodes belonging to the same vector direction according to the collected transceiving messages on each node.
A determining module 606 for determining a lost message when there is a message loss.
A processing module 608, configured to process the lost message according to a preset rule.
Therefore, the message processing device in this embodiment can timely find the message omission and/or loss situation occurring in the message transceiving process according to the data information collected in real time, and can immediately complete the processing of the omitted and/or lost message, thereby ensuring the processing efficiency, shortening the processing period, and effectively avoiding the influence of the message omission and/or loss situation on the system and the normal service.
Referring to fig. 7, a schematic structural diagram of a message processing apparatus according to a fourth preferred embodiment of the present invention is shown. Wherein the content of the first and second substances,
preferably, the determining module 604 may specifically include: a determination submodule 6042 configured to determine a start node and a stop node in the same vector direction; an obtaining submodule 6044, configured to obtain a first transceiving message on the start node and a second transceiving message on the end node, respectively; and a determining submodule 6046, configured to determine whether there is a message loss in nodes belonging to the same vector direction according to the first transceiving message and the second transceiving message.
Preferably, the determining module 606 may specifically include: a node determination submodule 6062 configured to determine, when there is a message loss, a node having the message loss; a message obtaining submodule 6064 configured to obtain a send-receive message on a node at the upper stage of the node where the message loss exists; a message determining sub-module 6066 for determining the acquired transceiving message as the lost message.
Preferably, the message processing apparatus may further include: a receiving module 610, configured to obtain registration information of each node through a set interface; wherein the registration information at least comprises: message source identification, local node identification, message destination identification, message characteristic identification and the preset rule.
In this embodiment, the processing module 608 may be specifically configured to send the lost message to a node where there is a message loss, so as to implement recovery and self-healing of the message.
Preferably, the processing module 608 may specifically include: a protocol determining sub-module 6082, configured to determine a communication protocol of the node where the message loss exists; a repackaging sub-module 6084 configured to repackage the lost message according to the determined communication protocol; a first sending submodule 6086, configured to send the repackaged lost message to the node with the message loss.
Preferably, the processing module 608 may specifically include: a registration information obtaining sub-module 6088, configured to obtain registration information of a node where a message is lost; and a second sending submodule 60810, configured to send the missing message to the node with message loss according to the registration information of the node with message loss.
In summary, the message processing apparatus according to this embodiment may collect the message transceiving data on each node by inserting the probe into each node, and then perform uniform analysis processing according to the collected data, so as to timely find out the message omission and/or loss condition occurring in the message transceiving process, and timely take corresponding remedial measures according to the preset rule, thereby ensuring the processing efficiency, shortening the processing period, and effectively avoiding the influence of the message omission and/or loss condition on the system and the normal service.
Secondly, in this embodiment, after determining that there is a communication protocol of a node with a message loss, repackaging the lost message according to the determined communication protocol, and sending the repackaged lost message to the node with the message loss. It can be seen that, in this embodiment, the device described in this embodiment can be applied to different systems or nodes by converting a communication protocol, and the universality of the message processing device described in this embodiment and the adaptability to heterogeneous systems are ensured.
Further, the message processing apparatus of this embodiment can acquire information through the probe, and ensure the independence of the message processing apparatus in the execution process: the whole message processing flow can be executed independently, and the normal execution of other business flows is not influenced. Meanwhile, the message processing device can meet different pluggable and customized application scenes, and can be independently expanded according to requirements.
In addition, the message processing device described in this embodiment integrates message collection, message judgment and message recovery, and can automatically and independently complete the monitoring and self-healing of messages without manual intervention or depending on the current system. Moreover, since the collection of the messages at the nodes can be realized, the message processing device of the embodiment can realize the analysis of the external nodes or the external systems related to the current system, has wider coverage and improves the accuracy of the processing result.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The above detailed description is provided for a message processing method and device provided by the present invention, and a specific example is applied in the present text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A message processing method, comprising:
collecting the transceiving messages on at least one node through a probe; the at least one node is determined according to the service type, and the at least one node is an external node related to the current system and/or an internal node of the current system;
judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node;
if yes, determining lost information;
processing the lost message according to a preset rule;
the processing the lost message according to a preset rule includes:
determining a communication protocol of the node with the message loss;
repackaging the lost message according to the determined communication protocol;
sending the repackaged lost message to the node with the message loss;
wherein, the judging whether the nodes belonging to the same vector direction have message loss comprises:
determining a starting node and a terminating node in the same vector direction;
respectively acquiring a first transceiving message on the starting node and a second transceiving message on the terminating node;
judging whether the nodes belonging to the same vector direction have message loss or not according to the first transceiving message and the second transceiving message;
the determining of the lost message comprises:
determining nodes with message loss according to a binary search method and the acquired receiving and sending messages on each node;
acquiring a transceiving message on a node at the upper level of the node with the message loss;
and determining the acquired transceiving message as the lost message.
2. The method according to claim 1, wherein the processing the lost message according to a preset rule comprises:
and sending the lost message to a node with message loss so as to realize recovery and self-healing of the message.
3. The method of claim 1, further comprising:
acquiring registration information of each node through a set interface; wherein the registration information at least comprises: message source identification, local node identification, message destination identification, message characteristic identification and the preset rule.
4. The method according to claim 2, wherein the processing the lost message according to a preset rule comprises:
acquiring registration information of a node with message loss;
and sending the lost message to the node with the message loss according to the registration information of the node with the message loss.
5. A message processing apparatus, comprising:
the acquisition module is used for acquiring the transceiving messages on at least one node through the probe; the at least one node is determined according to the service type, and the at least one node is an external node related to the current system and/or an internal node of the current system;
the judging module is used for judging whether the messages are lost in the nodes belonging to the same vector direction or not according to the acquired transceiving messages on each node;
the determining module is used for determining lost messages when the messages are lost;
the processing module is used for processing the lost message according to a preset rule;
the processing module comprises:
the protocol determination submodule is used for determining a communication protocol of a node with message loss;
a repackaging sub-module for repackaging the lost message according to the determined communication protocol;
the first sending submodule is used for sending the repackaged lost message to the node with the message loss;
the judging module comprises:
the determining submodule is used for determining a starting node and a terminating node in the same vector direction;
an obtaining submodule, configured to obtain a first transceiving message on the start node and a second transceiving message on the end node, respectively;
the judging submodule is used for judging whether the nodes belonging to the same vector direction have message loss or not according to the first transceiving message and the second transceiving message;
the determining module includes:
the node determining submodule is used for determining the node with the message loss according to a binary search method and the collected transceiving messages on each node when the message loss exists;
the message acquisition submodule is used for acquiring the transceiving message on the upper-level node of the node with the message loss;
and the message determining submodule is used for determining the acquired transceiving message as the lost message.
6. The apparatus according to claim 5, wherein the processing module is configured to send the lost message to a node with a message loss, so as to implement recovery and self-healing of the message.
7. The apparatus of claim 5, further comprising:
the receiving module is used for acquiring the registration information of each node through a set interface; wherein the registration information at least comprises: message source identification, local node identification, message destination identification, message characteristic identification and the preset rule.
8. The apparatus of claim 6, wherein the processing module comprises:
the registration information acquisition submodule is used for acquiring the registration information of the node with the information loss;
and the second sending submodule is used for sending the lost message to the node with the message loss according to the registration information of the node with the message loss.
CN201610101648.7A 2016-02-24 2016-02-24 Message processing method and device Active CN107124288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610101648.7A CN107124288B (en) 2016-02-24 2016-02-24 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610101648.7A CN107124288B (en) 2016-02-24 2016-02-24 Message processing method and device

Publications (2)

Publication Number Publication Date
CN107124288A CN107124288A (en) 2017-09-01
CN107124288B true CN107124288B (en) 2021-01-29

Family

ID=59716974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610101648.7A Active CN107124288B (en) 2016-02-24 2016-02-24 Message processing method and device

Country Status (1)

Country Link
CN (1) CN107124288B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282201A (en) * 2008-03-28 2008-10-08 中兴通讯股份有限公司 Method and equipment for monitoring message in communication apparatus
CN102752169A (en) * 2012-06-25 2012-10-24 中兴通讯股份有限公司 Transmission monitoring method and device
CN103117955A (en) * 2013-01-16 2013-05-22 华为技术有限公司 Method, device and system of message transmission

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8031701B2 (en) * 2006-09-11 2011-10-04 Cisco Technology, Inc. Retransmission-based stream repair and stream join
CN101547438A (en) * 2008-03-28 2009-09-30 中兴通讯股份有限公司 Method for detecting state of group data service node
PL2630743T3 (en) * 2010-10-18 2015-02-27 Ericsson Telefon Ab L M System and method to detect and communicate loss and retention of synchronization in a real-time data transfer scheme
CN102571635A (en) * 2012-01-18 2012-07-11 浪潮(北京)电子信息产业有限公司 Message transmission method and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282201A (en) * 2008-03-28 2008-10-08 中兴通讯股份有限公司 Method and equipment for monitoring message in communication apparatus
CN102752169A (en) * 2012-06-25 2012-10-24 中兴通讯股份有限公司 Transmission monitoring method and device
CN103117955A (en) * 2013-01-16 2013-05-22 华为技术有限公司 Method, device and system of message transmission

Also Published As

Publication number Publication date
CN107124288A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN110661659B (en) Alarm method, device and system and electronic equipment
CN110213068B (en) Message middleware monitoring method and related equipment
CN107864063B (en) Abnormity monitoring method and device and electronic equipment
CN109039819B (en) Time delay statistical method, device, system and storage medium
CN105207806A (en) Monitoring method and apparatus of distributed service
CN110475124B (en) Video jamming detection method and device
CN109710439B (en) Fault processing method and device
CN114124655B (en) Network monitoring method, system, device, computer equipment and storage medium
JP2008160356A (en) Waveform analyzer
WO2015182629A1 (en) Monitoring system, monitoring device, and monitoring program
EP3460769B1 (en) System and method for managing alerts using a state machine
CN113220522A (en) Automatic positioning method and device for service abnormity
CN107124288B (en) Message processing method and device
CN113810238A (en) Network monitoring method, electronic device and storage medium
CN109831335B (en) Data monitoring method, monitoring terminal, storage medium and data monitoring system
CN108512698B (en) Network disaster tolerance method and device and electronic equipment
CN110896545B (en) Online charging roaming fault positioning method, related device and storage medium
CN113626236B (en) Fault diagnosis method, device, equipment and medium for distributed file system
CN108829563B (en) Alarm method and alarm device
CN102567470A (en) System-level performance data processing method and equipment utilizing same
CN114116128A (en) Method, device, equipment and storage medium for fault diagnosis of container instance
US20160234344A1 (en) Message log removal apparatus and message log removal method
JP4299210B2 (en) Network monitoring method and apparatus
CN112134760A (en) Link state monitoring method, device, equipment and computer readable storage medium
CN111585819A (en) Distribution network communication equipment fault analysis method and system

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