CN109450810A - Identify the method and device of redundancy message - Google Patents

Identify the method and device of redundancy message Download PDF

Info

Publication number
CN109450810A
CN109450810A CN201811645819.8A CN201811645819A CN109450810A CN 109450810 A CN109450810 A CN 109450810A CN 201811645819 A CN201811645819 A CN 201811645819A CN 109450810 A CN109450810 A CN 109450810A
Authority
CN
China
Prior art keywords
message
mentioned
mark
redundancy
serial number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811645819.8A
Other languages
Chinese (zh)
Inventor
谷君
陈艳霞
吕立平
林涛
王志勇
及洪泉
刘漫雨
王宁
闻宇
张金虎
杨青青
陈玉慧
孙云枫
雷宝龙
郭海龙
葛以踊
孙世明
苏标龙
马锋
谭志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
NARI Group Corp
State Grid Beijing Electric Power Co Ltd
Nari Technology Co Ltd
NARI Nanjing Control System Co Ltd
Original Assignee
State Grid Corp of China SGCC
NARI Group Corp
State Grid Beijing Electric Power Co Ltd
Nari Technology Co Ltd
NARI Nanjing Control System 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 State Grid Corp of China SGCC, NARI Group Corp, State Grid Beijing Electric Power Co Ltd, Nari Technology Co Ltd, NARI Nanjing Control System Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201811645819.8A priority Critical patent/CN109450810A/en
Publication of CN109450810A publication Critical patent/CN109450810A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • 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/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The invention discloses a kind of method and devices for identifying redundancy message.Wherein, this method comprises: receiving the message from transmitting terminal, wherein carry the first message mark for unique identification sending node in above-mentioned message;Judge whether to have received the message from above-mentioned sending node according to above-mentioned first message mark, obtains judging result;If above-mentioned judging result is second message mark that is yes, identifying and locally record by comparing above-mentioned first message, determine whether above-mentioned message is redundancy message.The present invention solves the technical issues of cannot achieve identification redundancy message between distribution master station automation system in the prior art.

Description

Identify the method and device of redundancy message
Technical field
The present invention relates to data processing fields, in particular to a kind of method and device for identifying redundancy message.
Background technique
It is contacted between distribution master station automation dual-active system there is close, there are a large amount of real-time messages between system Forwarding, wherein two centers in distribution master station automation dual-active system are run simultaneously using dual-active mode, realize two centers Collaborative work, load balancing, resources effective utilization, responsible distribution operation monitors and management function, big between Liang Ge data center The data such as real-time sampling, the significant alarm of amount are forwarded in the form of a message.
But in the prior art, carry out dual-active system between carry out message forwarding when there are the following problems: 1) system it Between two-way news forwarding when, occur message loop repeat forwarding problems, lead to network congestion;2) there is event in network between system When barrier, message forwarding services can send again the message issued before, lead to the message for receiving redundancy.How distribution is realized Message two-way converting function between master station automation system, and identify that redundancy message is that those skilled in the art are in the urgent need to address The problem of.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of method and devices for identifying redundancy message, at least to solve to match in the prior art The technical issues of cannot achieve identification redundancy message between host's substation automation system.
According to an aspect of an embodiment of the present invention, a kind of method for identifying redundancy message is provided, comprising: reception comes from The message of transmitting terminal, wherein the first message mark for unique identification sending node is carried in above-mentioned message;According to above-mentioned First message, which identifies, to be judged whether to have received the message from above-mentioned sending node, obtains judging result;If above-mentioned judgement As a result it is second message mark that is yes, then identifying and locally record by comparing above-mentioned first message, whether determines above-mentioned message For redundancy message.
Further, above-mentioned first message mark includes at least: the incremental serial number of the first IP address, first message, first are opened The dynamic time;Above-mentioned second message mark includes at least: the second IP address, second message are incremented by serial number, the second starting time.
Further, it identifies by comparing above-mentioned first message and is identified with the second message locally recorded, determine above-mentioned disappear Whether breath is redundancy message, comprising: more above-mentioned first message is incremented by serial number and above-mentioned second message is incremented by the size of serial number;If Above-mentioned first message is incremented by serial number and is less than or equal to the incremental serial number of above-mentioned second message, it is determined that above-mentioned message is that above-mentioned redundancy disappears Breath;If above-mentioned first message, which is incremented by serial number, is greater than the incremental serial number of above-mentioned second message, it is determined that above-mentioned message is not above-mentioned redundancy Message, and above-mentioned first message is incremented by serial number and is updated to current most recent sequence number.
Further, judge whether to have received the message from above-mentioned sending node according to above-mentioned first message mark, Obtain judging result, comprising: obtain above-mentioned first IP address in above-mentioned first message mark;Sentence according to above-mentioned first IP address It is disconnected whether to have received the message from above-mentioned sending node, obtain above-mentioned judging result.
Further, judge whether to have received disappearing from above-mentioned sending node according to above-mentioned first message mark Breath, after obtaining judging result, the above method further include: if above-mentioned judging result be it is no, add above-mentioned sending node extremely Sequence node simultaneously records above-mentioned first message mark.
Further, after receiving the message from transmitting terminal, the above method further include: pass through message forwarding services device Forwarding mark is increased to above-mentioned message, obtains message to be forwarded;Above-mentioned message to be forwarded is sent to other and receives server, In, it is the server in receiving end in addition to above-mentioned message forwarding services device that above-mentioned other, which receive server,.
Further, by message forwarding services device to above-mentioned message increase forwarding mark, obtain message to be forwarded it Before, the above method further include: detect whether above-mentioned message carries above-mentioned forwarding mark by above-mentioned message forwarding services device;? Testing result is in the case where being, to abandon above-mentioned message;In the case where above-mentioned testing result is no, execute above by message The step of forwarding server increases forwarding mark to above-mentioned message, obtains message to be forwarded.
It further, include above-mentioned message forwarding services device, above-mentioned transmitting terminal in above-mentioned transmitting terminal and above-mentioned receiving end Two-way converting message is supported between above-mentioned receiving end;Above-mentioned message forwarding services device uses the configuration side of a host prepare more machine Formula, above-mentioned host and above-mentioned standby host receive above-mentioned message simultaneously.
Further, above-mentioned standby host is after receiving above-mentioned message, according to the reception above-mentioned message of sequential cache;Above-mentioned In the case that switch between master and slave machines failure or network failure occur for transmitting terminal, the receiving end Xiang Shangshu sends the above-mentioned message of caching.
According to another aspect of an embodiment of the present invention, a kind of device for identifying redundancy message is additionally provided, comprising: receive mould Block, for receiving the message from transmitting terminal, wherein carry in above-mentioned message and disappear for the first of unique identification sending node Breath mark;Judgment module, for judging whether to have received disappearing from above-mentioned sending node according to above-mentioned first message mark Breath, obtains judging result;Determining module, if for above-mentioned judging result be it is yes, identified by comparing above-mentioned first message It is identified with the second message of local record, determines whether above-mentioned message is redundancy message.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, above-mentioned storage medium includes storage Program, wherein above procedure operation when control above-mentioned storage medium where equipment execute any one it is above-mentioned identification it is superfluous The method of remaining message.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, above-mentioned processor is used to run program, Wherein, the method for the above-mentioned identification redundancy message of any one is executed when above procedure is run.
In embodiments of the present invention, by receiving the message from transmitting terminal, wherein carried in above-mentioned message for only The first message mark of one mark sending node;Judge whether to have received from above-mentioned transmission according to above-mentioned first message mark The message of node, obtains judging result;If above-mentioned judging result be it is yes, by comparing above-mentioned first message mark with it is local The second message of record identifies, and determines whether above-mentioned message is redundancy message, reached between distribution master station automation system into The purpose of row redundancy message identification, solves message two-way converting redundancy issue between distribution main station system different sub-network, thus real Having showed ensures that message reliably forwards, and can identify redundancy message, realizes the technical effect of highly reliable real-time messages forwarding, in turn Solves the technical issues of cannot achieve identification redundancy message between distribution master station automation system in the prior art.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of method for identifying redundancy message according to an embodiment of the present invention;
Fig. 2 is a kind of network topological diagram of the method for optional identification redundancy message according to an embodiment of the present invention;
Fig. 3 is a kind of flow chart of the method for optional identification redundancy message according to an embodiment of the present invention;
Fig. 4 is a kind of flow chart of the method for optional identification redundancy message according to an embodiment of the present invention;
Fig. 5 is a kind of flow chart of the method for optional identification redundancy message according to an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of device for identifying redundancy message according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of method for identifying redundancy message is provided, it should be noted that The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also, It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts The step of out or describing.
Fig. 1 is a kind of flow chart of method for identifying redundancy message according to an embodiment of the present invention, as shown in Figure 1, the party Method includes the following steps:
Step S102 receives the message from transmitting terminal, wherein carries to send for unique identification in above-mentioned message and save The first message mark of point;
Step S104 is identified according to above-mentioned first message and is judged whether to have received the message from above-mentioned sending node, Obtain judging result;
Step S106, if above-mentioned judging result be it is yes, by comparing above-mentioned first message identify with locally record Second message mark, determines whether above-mentioned message is redundancy message.
It in an alternative embodiment, include above-mentioned message forwarding services in above-mentioned transmitting terminal and above-mentioned receiving end Device supports two-way converting message between above-mentioned transmitting terminal and above-mentioned receiving end;Above-mentioned message forwarding services device is more using a host The configuration mode of standby host, above-mentioned host (message forwarding host) and above-mentioned standby host (message forwarding standby host) receive above-mentioned disappear simultaneously Breath.
Optionally, Fig. 2 is a kind of network topology of the method for optional identification redundancy message according to an embodiment of the present invention Figure receives the reception of message transmitted by above-mentioned transmitting terminal as shown in Fig. 2, above-mentioned transmitting terminal can be distribution network master station system A End or distribution network master station system B pass through communication data net between distribution network master station system A and distribution network master station system B Carry out network connection and data interaction.
Wherein, above-mentioned transmitting terminal and the message forwarding services device of receiving end are all made of a host prepare more machine (that is, a message Forward the multiple message of host to forward standby hosts) configuration, message two-way converting is supported between transmitting terminal and receiving end, as shown in Fig. 2, Distribution main station system A can forward message to distribution main station system B, while distribution main station system B can also be to system, distribution main website The A that unites forwards message.
In addition, be also respectively provided with DMS server, SCADA server in above-mentioned transmitting terminal and receiving end, respectively with exchange Machine connection, above-mentioned setting and connection relationship are identical as implementation in the prior art, in this regard, the embodiment of the present application is not specific It limits, also without excessively repeating.
In an alternative embodiment, above-mentioned first message mark includes at least: the first IP address, first message are incremented by Serial number, the first starting time;Above-mentioned second message mark includes at least: the incremental serial number of the second IP address, second message, second are opened The dynamic time.
In an alternative embodiment, above-mentioned standby host is after receiving above-mentioned message, according on reception sequential cache State message;In the case where switch between master and slave machines failure or network failure occur for above-mentioned transmitting terminal, the receiving end Xiang Shangshu sends caching Above-mentioned message.
Optionally, the standby host (message forwarding standby host) of above-mentioned transmitting terminal is after receiving message, can by message chronologically into Row caching, when the message forwarding services device of transmitting terminal occurs that network failure occurs between switch between master and slave machines or system, Ke Yiyou Above-mentioned standby host sends the message of caching to receiving end.
In an alternative embodiment, transmitting terminal is one first message mark of every message coding when sending message Containing information such as node IP, starting time, message sequence numbers in ID, above-mentioned first message mark ID, certain can be come from unique identification The message of a node.
Also, after receiving end receives message, source node IP address in ID is identified according to first message, whether searches this node The message from the node was received, if adding the node without if, and the first message from the node is recorded and identifies ID; If having received the message from the node, the second message mark with local record is identified by comparing above-mentioned first message Know, determines whether above-mentioned message is redundancy message.
It should be noted that the embodiment of the present application does not depend on ad hoc network equipment, distribution can solve by software mode Message two-way converting redundancy issue between main station system different sub-network, it is ensured that message reliably forwards, and can identify redundancy message, real The technical effect of highly reliable real-time messages forwarding is showed.
In embodiments of the present invention, by receiving the message from transmitting terminal, wherein carried in above-mentioned message for only The first message mark of one mark sending node;Judge whether to have received from above-mentioned transmission according to above-mentioned first message mark The message of node, obtains judging result;If above-mentioned judging result be it is yes, by comparing above-mentioned first message mark with it is local The second message of record identifies, and determines whether above-mentioned message is redundancy message, reached between distribution master station automation system into The purpose of row redundancy message identification, solves message two-way converting redundancy issue between distribution main station system different sub-network, thus real Having showed ensures that message reliably forwards, and can identify redundancy message, realizes the technical effect of highly reliable real-time messages forwarding, in turn Solves the technical issues of cannot achieve identification redundancy message between distribution master station automation system in the prior art.
In an alternative embodiment, Fig. 3 is a kind of optional identification redundancy message according to an embodiment of the present invention The flow chart of method is identified with the second message locally recorded as shown in figure 3, identifying by comparing above-mentioned first message, is determined Whether above-mentioned message is redundancy message, comprising:
Step S202, more above-mentioned first message is incremented by serial number and above-mentioned second message is incremented by the size of serial number;
Step S204, if above-mentioned first message is incremented by serial number and is less than or equal to the incremental serial number of above-mentioned second message, it is determined that Above-mentioned message is above-mentioned redundancy message;
Step S206, if above-mentioned first message is incremented by serial number and is greater than the incremental serial number of above-mentioned second message, it is determined that above-mentioned to disappear Breath is not above-mentioned redundancy message, and above-mentioned first message is incremented by serial number and is updated to current most recent sequence number.
Since in the application implementation, above-mentioned first message mark includes at least: the first IP address, first message are incremented by Serial number, the first starting time;Above-mentioned second message mark includes at least: the incremental serial number of the second IP address, second message, second are opened The dynamic time;Therefore, it is possible to be incremented by the size of serial number and the incremental serial number of above-mentioned second message by comparing above-mentioned first message, determine Whether above-mentioned message is redundancy message, wherein if above-mentioned first message is incremented by serial number and is incremented by less than or equal to above-mentioned second message Serial number, it is determined that above-mentioned message is above-mentioned redundancy message;If above-mentioned first message is incremented by serial number and is incremented by greater than above-mentioned second message Serial number, it is determined that above-mentioned message is not above-mentioned redundancy message, and above-mentioned first message is incremented by serial number and is updated to current newest sequence Number.
In an alternative embodiment, Fig. 4 is a kind of optional identification redundancy message according to an embodiment of the present invention The flow chart of method, as shown in figure 4, judging whether to have received from above-mentioned sending node according to above-mentioned first message mark Message obtains judging result, comprising:
Step S302 obtains above-mentioned first IP address in above-mentioned first message mark;
Step S304 judges whether to have received the message from above-mentioned sending node, obtain according to above-mentioned first IP address To above-mentioned judging result.
In an alternative embodiment, judge whether to have received from above-mentioned hair according to above-mentioned first message mark The message for sending node, after obtaining judging result, the above method further include:
Step S402, if above-mentioned judging result be it is no, add above-mentioned sending node to sequence node and record above-mentioned First message mark.
Since in the application implementation, above-mentioned first message mark includes at least: the first IP address, first message are incremented by Serial number, the first starting time;Above-mentioned second message mark includes at least: the incremental serial number of the second IP address, second message, second are opened The dynamic time;Therefore, it is possible to obtain above-mentioned first IP address in above-mentioned first message mark, judge according to above-mentioned first IP address The message from above-mentioned sending node whether is had received, above-mentioned judging result is obtained.
Wherein, if local recorded above-mentioned first IP address, it is determined that have received disappearing from above-mentioned sending node Breath, if local do not recorded above-mentioned first IP address, it is determined that do not receive the message from above-mentioned sending node, also, such as The above-mentioned judging result of fruit is no, that is, determination does not receive the message from above-mentioned sending node, then adds above-mentioned sending node extremely Sequence node simultaneously records above-mentioned first message mark.
In an alternative embodiment, Fig. 5 is a kind of optional identification redundancy message according to an embodiment of the present invention The flow chart of method, as shown in figure 5, after receiving the message from transmitting terminal, the above method further include:
Step S502 increases forwarding mark to above-mentioned message by message forwarding services device, obtains message to be forwarded;
Above-mentioned message to be forwarded is sent to other and receives server by step S504, wherein above-mentioned other receive server For the server in receiving end in addition to above-mentioned message forwarding services device.
In above-mentioned optional embodiment, receiving end message forwarding services device receive the message from transmitting terminal it Afterwards, forwarding mark can be increased to above-mentioned message by message forwarding services device, obtains message to be forwarded, and will be above-mentioned to be forwarded Message is sent in receiving end other reception servers in addition to above-mentioned message forwarding services device, realizes turning for nonredundancy message Hair.
In an alternative embodiment, forwarding mark is being increased to above-mentioned message by message forwarding services device, obtained Before message to be forwarded, the above method further include:
Step S602 detects whether above-mentioned message carries above-mentioned forwarding mark by above-mentioned message forwarding services device;
Step S604 abandons above-mentioned message in the case where testing result, which is, is;
Step S606 is executed above by message forwarding services device in the case where above-mentioned testing result is no to above-mentioned The step of message increases forwarding mark, obtains message to be forwarded.
If still needing to it is noted that the message that the message forwarding services device in receiving end receives carries above-mentioned forwarding mark Know, it is determined that above-mentioned message is redundancy message.
It is above-mentioned by the way that whether the above-mentioned message of above-mentioned message forwarding services device detection carries in above-mentioned optional embodiment Forwarding mark, if the message that the message forwarding services device in receiving end receives carries above-mentioned forwarding mark, it is determined that above-mentioned Message is redundancy message, abandons above-mentioned message, is no longer forwarded processing;If the message forwarding services device in receiving end receives Message carry above-mentioned forwarding mark, it is determined that above-mentioned message is not redundancy message, is executed above by message forwarding services The step of device increases forwarding mark to above-mentioned message, obtains message to be forwarded.
Embodiment 2
According to embodiments of the present invention, a kind of device implementation for implementing the method for above-mentioned identification redundancy message is additionally provided Example, Fig. 6 is a kind of structural schematic diagram of device for identifying redundancy message according to an embodiment of the present invention, as shown in fig. 6, above-mentioned knowledge The device of other redundancy message, comprising: receiving module 60, judgment module 62 and determining module 64, in which:
Receiving module 60, for receiving the message from transmitting terminal, wherein carry in above-mentioned message for unique identification The first message of sending node identifies;Judgment module 62 comes for judging whether to have received according to above-mentioned first message mark From the message of above-mentioned sending node, judging result is obtained;Determining module 64, if for above-mentioned judging result be it is yes, pass through More above-mentioned first message mark and the second message of local record identify, and determine whether above-mentioned message is redundancy message.
It should be noted that above-mentioned modules can be realized by software or hardware, for example, for the latter, Can be accomplished by the following way: above-mentioned modules can be located in same processor;Alternatively, above-mentioned modules are with any Combined mode is located in different processors.
Herein it should be noted that above-mentioned receiving module 60, judgment module 62 and determining module 64 correspond in embodiment 1 Step S102 to step S106, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but is not limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module may operate in computer as a part of device In terminal.
It should be noted that the optional or preferred embodiment of the present embodiment may refer to the associated description in embodiment 1, Details are not described herein again.
The device of above-mentioned identification redundancy message can also include processor and memory, above-mentioned receiving module 60, judgement Module 62 and determining module 64 etc. store in memory as program unit, are executed by processor stored in memory Above procedure unit realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel, above-mentioned kernel can be set One or more.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 includes at least one Storage chip.
According to the embodiment of the present application, a kind of storage medium embodiment is additionally provided.Optionally, in the present embodiment, above-mentioned Storage medium includes the program of storage, wherein equipment where controlling above-mentioned storage medium in above procedure operation executes above-mentioned The method of any one identification redundancy message.
Optionally, in the present embodiment, above-mentioned storage medium can be located in computer network in computer terminal group In any one terminal, or in any one mobile terminal in mobile terminal group, above-mentioned storage medium packet Include the program of storage.
Optionally, when program is run, equipment where control storage medium executes following functions: receiving from transmitting terminal Message, wherein the first message mark for unique identification sending node is carried in above-mentioned message;According to above-mentioned first message It identifies and judges whether to have received the message from above-mentioned sending node, obtain judging result;If above-mentioned judging result be it is yes, It then identifies by comparing above-mentioned first message and is identified with the second message locally recorded, determine whether above-mentioned message is that redundancy disappears Breath.
Optionally, when program is run, equipment where control storage medium executes following functions: more above-mentioned first message It is incremented by serial number and above-mentioned second message is incremented by the size of serial number;If above-mentioned first message, which is incremented by serial number, is less than or equal to above-mentioned second Message is incremented by serial number, it is determined that above-mentioned message is above-mentioned redundancy message;If above-mentioned first message, which is incremented by serial number, is greater than above-mentioned second Message is incremented by serial number, it is determined that above-mentioned message is not above-mentioned redundancy message, and above-mentioned first message is incremented by serial number and is updated to work as Preceding most recent sequence number.
Optionally, when program is run, equipment where control storage medium executes following functions: obtaining above-mentioned first message Above-mentioned first IP address in mark;Judge whether to have received disappearing from above-mentioned sending node according to above-mentioned first IP address Breath, obtains above-mentioned judging result.
Optionally, when program is run, equipment where control storage medium executes following functions: if above-mentioned judging result Be it is no, then add above-mentioned sending node to sequence node and record above-mentioned first message mark.
Optionally, when program is run, equipment where control storage medium executes following functions: passing through message forwarding services Device increases forwarding mark to above-mentioned message, obtains message to be forwarded;Above-mentioned message to be forwarded is sent to other and receives server, Wherein, it is the server in receiving end in addition to above-mentioned message forwarding services device that above-mentioned other, which receive server,.
Optionally, when program is run, equipment where control storage medium executes following functions: being forwarded by above-mentioned message Server detects whether above-mentioned message carries above-mentioned forwarding mark;In the case where testing result, which is, is, above-mentioned message is abandoned; In the case where above-mentioned testing result is no, executes and forwarding mark is increased to above-mentioned message above by message forwarding services device, The step of obtaining message to be forwarded.
According to the embodiment of the present application, a kind of processor embodiment is additionally provided.Optionally, in the present embodiment, above-mentioned place Reason device is for running program, wherein above procedure executes any one of the above identification redundancy message method when running.
The embodiment of the present application provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor performs the steps of when executing program receives the message from transmitting terminal, wherein The first message mark for unique identification sending node is carried in above-mentioned message;It is according to the mark judgement of above-mentioned first message It is no to have received the message from above-mentioned sending node, obtain judging result;If above-mentioned judging result be it is yes, by comparing Above-mentioned first message mark and the second message of local record identify, and determine whether above-mentioned message is redundancy message.
It optionally, can also the incremental serial number of more above-mentioned first message and above-mentioned second when above-mentioned processor executes program Message is incremented by the size of serial number;If above-mentioned first message, which is incremented by serial number, is less than or equal to the incremental serial number of above-mentioned second message, really Fixed above-mentioned message is above-mentioned redundancy message;If above-mentioned first message, which is incremented by serial number, is greater than the incremental serial number of above-mentioned second message, really Fixed above-mentioned message is not above-mentioned redundancy message, and above-mentioned first message is incremented by serial number and is updated to current most recent sequence number.
Optionally, when above-mentioned processor executes program, above-mentioned first IP in above-mentioned first message mark can also be obtained Address;Judge whether to have received the message from above-mentioned sending node according to above-mentioned first IP address, obtains above-mentioned judgement knot Fruit.
Optionally, when above-mentioned processor executes program, if can be with above-mentioned judging result it is no, add above-mentioned transmission Node is to sequence node and records above-mentioned first message mark.
Optionally, when above-mentioned processor executes program, above-mentioned message can also be increased by message forwarding services device and is turned Issue of bidding documents is known, and message to be forwarded is obtained;Above-mentioned message to be forwarded is sent to other and receives server, wherein other above-mentioned receptions Server is the server in receiving end in addition to above-mentioned message forwarding services device.
Optionally, when above-mentioned processor executes program, above-mentioned message can also be detected by above-mentioned message forwarding services device Whether above-mentioned forwarding mark is carried;In the case where testing result, which is, is, above-mentioned message is abandoned;It is no in above-mentioned testing result In the case where, it executes and forwarding mark is increased to above-mentioned message above by message forwarding services device, obtain the step of message to be forwarded Suddenly.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step: the message from transmitting terminal is received, wherein carried in above-mentioned message for uniquely marking Know the first message mark of sending node;Judge whether to have received from above-mentioned sending node according to above-mentioned first message mark Message, obtain judging result;If above-mentioned judging result be it is yes, by comparing above-mentioned first message identify and locally record Second message mark, determine whether above-mentioned message is redundancy message.
Optionally, when above-mentioned computer program product executes program, can also more above-mentioned first message be incremented by serial number with Above-mentioned second message is incremented by the size of serial number;If above-mentioned first message, which is incremented by serial number, is less than or equal to above-mentioned second message progressive sequence Number, it is determined that above-mentioned message is above-mentioned redundancy message;If above-mentioned first message, which is incremented by serial number, is greater than above-mentioned second message progressive sequence Number, it is determined that above-mentioned message is not above-mentioned redundancy message, and above-mentioned first message is incremented by serial number and is updated to current most recent sequence number.
Optionally, it when above-mentioned computer program product executes program, can also obtain upper in above-mentioned first message mark State the first IP address;Judge whether to have received the message from above-mentioned sending node according to above-mentioned first IP address, obtain State judging result.
Optionally, when above-mentioned computer program product executes program, if can be with above-mentioned judging result it is no, add Above-mentioned sending node is to sequence node and records above-mentioned first message mark.
Optionally, when above-mentioned computer program product executes program, can also be disappeared by message forwarding services device to above-mentioned Breath increases forwarding mark, obtains message to be forwarded;Above-mentioned message to be forwarded is sent to other and receives server, wherein is above-mentioned It is the server in receiving end in addition to above-mentioned message forwarding services device that other, which receive server,.
Optionally, it when above-mentioned computer program product executes program, can also be detected by above-mentioned message forwarding services device Whether above-mentioned message carries above-mentioned forwarding mark;In the case where testing result, which is, is, above-mentioned message is abandoned;In above-mentioned detection As a result it in the case where being no, executes and forwarding mark is increased to above-mentioned message above by message forwarding services device, obtain to be forwarded The step of message.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of method for identifying redundancy message characterized by comprising
Receive the message from transmitting terminal, wherein the first message for unique identification sending node is carried in the message Mark;
Judge whether to have received the message from the sending node according to first message mark, obtains judging result;
If the judging result is second message mark that is yes, identifying and locally record by comparing the first message, Determine whether the message is redundancy message.
2. the method according to claim 1, wherein first message mark includes at least: the first IP address, First message is incremented by serial number, the first starting time;The second message mark includes at least: the second IP address, second message are passed Increasing number, the second starting time.
3. according to the method described in claim 2, it is characterized in that, being identified and local record by comparing the first message Second message mark, determines whether the message is redundancy message, comprising:
Compare the size that the first message is incremented by serial number and the second message is incremented by serial number;
If the first message, which is incremented by serial number, is less than or equal to the incremental serial number of the second message, it is determined that the message is described Redundancy message;
If the first message, which is incremented by serial number, is greater than the incremental serial number of the second message, it is determined that the message is not the redundancy Message, and the first message is incremented by serial number and is updated to current most recent sequence number.
4. according to the method described in claim 2, it is characterized in that, judging whether to have received according to first message mark Message from the sending node, obtains judging result, comprising:
Obtain first IP address in the first message mark;
Judge whether to have received the message from the sending node according to first IP address, obtains the judgement knot Fruit.
5. the method according to claim 1, wherein judging whether to have received according to first message mark To the message from the sending node, after obtaining judging result, the method also includes:
If the judging result be it is no, add the sending node to sequence node and record first message mark.
6. the method according to claim 1, wherein after receiving the message from transmitting terminal, the method Further include:
Forwarding mark is increased to the message by message forwarding services device, obtains message to be forwarded;
The message to be forwarded is sent to other and receives server, wherein it is to remove in receiving end that described other, which receive server, Server except the message forwarding services device.
7. according to the method described in claim 6, it is characterized in that, turning being increased by message forwarding services device the message Issue of bidding documents is known, before obtaining message to be forwarded, the method also includes:
Detect whether the message carries the forwarding mark by the message forwarding services device;
In the case where testing result, which is, is, the message is abandoned;
In the case where the testing result is no, the message forwarding services device that passes through is executed to message increase forwarding mark The step of knowing, obtaining message to be forwarded.
8. according to the method described in claim 6, it is characterized in that, including described disappear in the transmitting terminal and the receiving end Forwarding server is ceased, two-way converting message is supported between the transmitting terminal and the receiving end;The message forwarding services device is adopted With the configuration mode of a host prepare more machine, the host and the standby host receive the message simultaneously.
9. according to the method described in claim 8, foundation connects it is characterized in that, the standby host is after receiving the message Receive message described in sequential cache;In the case where switch between master and slave machines failure or network failure occur for the transmitting terminal, Xiang Suoshu is connect Receiving end sends the message of caching.
10. a kind of device for identifying redundancy message characterized by comprising
Receiving module, for receiving the message from transmitting terminal, wherein carry to send for unique identification in the message and save The first message mark of point;
Judgment module, for judging whether to have received the message from the sending node according to first message mark, Obtain judging result;
Determining module, if for the judging result be it is yes, identify and locally record by comparing the first message Second message mark, determines whether the message is redundancy message.
11. 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 any one of 1 to 9 described in identification redundancy message method.
12. 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 any one of 1 to 9 described in identify redundancy message method.
CN201811645819.8A 2018-12-30 2018-12-30 Identify the method and device of redundancy message Pending CN109450810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811645819.8A CN109450810A (en) 2018-12-30 2018-12-30 Identify the method and device of redundancy message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811645819.8A CN109450810A (en) 2018-12-30 2018-12-30 Identify the method and device of redundancy message

Publications (1)

Publication Number Publication Date
CN109450810A true CN109450810A (en) 2019-03-08

Family

ID=65542213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811645819.8A Pending CN109450810A (en) 2018-12-30 2018-12-30 Identify the method and device of redundancy message

Country Status (1)

Country Link
CN (1) CN109450810A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753096A (en) * 2019-10-12 2020-02-04 北京达佳互联信息技术有限公司 Message pushing method and system and electronic equipment
CN113225207A (en) * 2021-04-16 2021-08-06 北京科东电力控制系统有限责任公司 Method and device for synchronizing active and standby messages of power system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006136090A1 (en) * 2005-06-24 2006-12-28 Huawei Technologies Co., Ltd. A method for preventing the replay attack and a method for ensuring the non-repetition of the message sequence number
CN101242274A (en) * 2005-06-24 2008-08-13 华为技术有限公司 Method for guaranteeing non-duplicate message SN and preventing from re-play attack and mobile terminal
WO2011022993A1 (en) * 2009-08-28 2011-03-03 中兴通讯股份有限公司 Method and network node for message transfer
US20110153862A1 (en) * 2009-12-18 2011-06-23 Cisco Technology, Inc. Sender-Specific Counter-Based Anti-Replay for Multicast Traffic
CN102891850A (en) * 2012-09-25 2013-01-23 汉柏科技有限公司 Method for preventing parameter resetting in IPSec (IP Security) channel updating
CN103856489A (en) * 2014-03-13 2014-06-11 杭州华三通信技术有限公司 Achieving method and device for preventing replay attack
CN104601459A (en) * 2015-02-10 2015-05-06 杭州华三通信技术有限公司 Method and device for processing messages in group-domain virtual private network
CN105072021A (en) * 2015-08-11 2015-11-18 国电南瑞科技股份有限公司 Cross-segment message forwarding method for dispatching automation systems
CN107295586A (en) * 2016-03-30 2017-10-24 华为技术有限公司 Method, center AP and the distributed AP switched between distributed AP

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006136090A1 (en) * 2005-06-24 2006-12-28 Huawei Technologies Co., Ltd. A method for preventing the replay attack and a method for ensuring the non-repetition of the message sequence number
CN101242274A (en) * 2005-06-24 2008-08-13 华为技术有限公司 Method for guaranteeing non-duplicate message SN and preventing from re-play attack and mobile terminal
WO2011022993A1 (en) * 2009-08-28 2011-03-03 中兴通讯股份有限公司 Method and network node for message transfer
US20110153862A1 (en) * 2009-12-18 2011-06-23 Cisco Technology, Inc. Sender-Specific Counter-Based Anti-Replay for Multicast Traffic
CN102891850A (en) * 2012-09-25 2013-01-23 汉柏科技有限公司 Method for preventing parameter resetting in IPSec (IP Security) channel updating
CN103856489A (en) * 2014-03-13 2014-06-11 杭州华三通信技术有限公司 Achieving method and device for preventing replay attack
CN104601459A (en) * 2015-02-10 2015-05-06 杭州华三通信技术有限公司 Method and device for processing messages in group-domain virtual private network
CN105072021A (en) * 2015-08-11 2015-11-18 国电南瑞科技股份有限公司 Cross-segment message forwarding method for dispatching automation systems
CN107295586A (en) * 2016-03-30 2017-10-24 华为技术有限公司 Method, center AP and the distributed AP switched between distributed AP

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753096A (en) * 2019-10-12 2020-02-04 北京达佳互联信息技术有限公司 Message pushing method and system and electronic equipment
CN113225207A (en) * 2021-04-16 2021-08-06 北京科东电力控制系统有限责任公司 Method and device for synchronizing active and standby messages of power system
CN113225207B (en) * 2021-04-16 2022-11-01 北京科东电力控制系统有限责任公司 Method and device for synchronizing active and standby messages of power system

Similar Documents

Publication Publication Date Title
CN107483260B (en) Fault processing method and device and electronic equipment
EP3352431B1 (en) Network load balance processing system, method, and apparatus
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN101848107B (en) SNMP (Simple Network Management Protocol) network element and communication method of SNMP network element and proprietary protocol network element
CN102195882B (en) According to method and the device of the routing of data flow application type
EP2939401B1 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN106559280A (en) Bidirectional forwarding detection (BFD) method and device
CN102316160A (en) Website system and communication method thereof
CN107026790B (en) A kind of transmission control method and equipment
CN103607302B (en) Fault information reporting method, monitoring device and management equipment
RU2010146258A (en) METHOD, DEVICE AND SYSTEM FOR DISTRIBUTING MESSAGES
CN114338650A (en) File transmission method and device, electronic equipment and readable storage medium
CN108551679A (en) Wireless device communication means based on LAN Mesh technologies and system
CN109889312A (en) Multilink data transmission method, device and computer readable storage medium
CN109450810A (en) Identify the method and device of redundancy message
CN112291116A (en) Link fault detection method and device and network equipment
CN102857421B (en) A kind of VLL fault detection method and equipment
CN113708979A (en) Network acceleration method and device
CN101938533A (en) Method and device for processing address resolution
RU2693903C1 (en) Method, apparatus and processing system for expanded port
CN109474525B (en) Message processing method, device, equipment and readable storage medium
CN110661836B (en) Message routing method, device and system, and storage medium
CN103457795B (en) MAD method and apparatus in VCF network
CN101667927A (en) Method and device for rapidly restoring service
US20150172371A1 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication