CN102970221A - Redundancy communication method among nodes based on multiple networks - Google Patents

Redundancy communication method among nodes based on multiple networks Download PDF

Info

Publication number
CN102970221A
CN102970221A CN2012103966240A CN201210396624A CN102970221A CN 102970221 A CN102970221 A CN 102970221A CN 2012103966240 A CN2012103966240 A CN 2012103966240A CN 201210396624 A CN201210396624 A CN 201210396624A CN 102970221 A CN102970221 A CN 102970221A
Authority
CN
China
Prior art keywords
frame
node
current extraction
recipient
transmit leg
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
CN2012103966240A
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.)
Shanghai Hengjun Science & Technology Co Ltd
Original Assignee
Shanghai Hengjun Science & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hengjun Science & Technology Co Ltd filed Critical Shanghai Hengjun Science & Technology Co Ltd
Priority to CN2012103966240A priority Critical patent/CN102970221A/en
Publication of CN102970221A publication Critical patent/CN102970221A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a redundancy communication method among nodes based on multiple networks. The method includes that sender nodes send data to a receiver node through N Ethernet channels simultaneously, and the sender nodes give different frame numbers to data sent each time. The receiver node extracts a data frame from a receive data frame list and judges whether the current extracted data frame is processed according to a current extracted data frame number and a sender node which the current extracted data frame number belongs to. On no judgment, data processing is conducted, and the current extracted data frame number and the sender node which the current extracted data frame belongs to are related. The redundancy communication method is achieved mainly through software, requirements for hardware are reduced, a common network device can achieve the method, and cost of a hardware redundancy device is reduced. In addition, the redundancy communication method avoids repeated processing on the same data by introducing a judging mechanism, and processing speed is increased.

Description

A kind of internodal redundancy communication method based on many networks
Technical field
The present invention relates to communication technical field, relate in particular to a kind of internodal redundancy communication method based on many networks.
Background technology
In the communications field, the transmitting of data has great importance, and this point especially is embodied in entail dangers to people life property safety's the industry, for example railway transportation.In these industries, usually guarantee the reliable reception of data by the mode of redundancy communication, redundancy communication can be realized by hardware or software, realizes having the high and high defective of failure rate of cost by hardware, realizes the problem that then exists Data duplication to process by software.
Summary of the invention
The redundancy communication method that the object of the present invention is to provide a kind of Data duplication avoided of realizing by software to process.
The technical solution used in the present invention is: a kind of internodal redundancy communication method based on many networks, be N separate network interface of each node configuration, independently Ethernet 1 net is corresponding continuous to the N net respectively with physically with N network interface of each node, make each node have N independently ethernet channel, each network interface of all nodes has mutually different IP address, wherein, N is the natural number more than or equal to 2;
Described redundancy communication method is: the transmit leg node simultaneously sends data with the form of Frame to recipient's node by its N ethernet channel, the frame head of Frame comprises frame number, sender ID and recipient ID, and the transmit leg node is given different frame numbers to its each data that send; Recipient's node extracts a Frame from its receiving data frames tabulation after, frame number and affiliated transmit leg node according to the Frame of current extraction judge whether the Frame of current extraction was processed, if untreated then carry out data and process, and the frame number of the Frame of the current extraction of associated record and affiliated transmit leg node.
Wherein, recipient's node determine current extraction according to sender ID and/or the IP address of the Frame of current extraction Frame under the transmit leg node.
Wherein, the IP address of X network interface of M node is 128.128.X.M, and wherein, X, M are natural number, 1≤X≤N, M 〉=2; Recipient's node is determined the transmit leg node under the Frame of current extraction according to the 4th byte of the sender ID of the Frame of current extraction and/or IP address.
Wherein, the transmit leg node at first sends the Frame that data content represents link information to recipient's node in startup or after restarting, think that recipient's node provides the initial frame numbering of transmit leg node, inform that namely recipient's node judges as home record take the frame number of this Frame, be equivalent to inform the frame number record for this transmit leg node of recipient's node before removing; Technical scheme for the each Frame that all extracts the frame number minimum in the receiving data frames tabulation of self of recipient's node is judged is the minimum frame numbering of informing this transmit leg node of recipient's node.
Wherein, the transmit leg node adopts the mode of self-propagation that the frame number of Frame is carried out assignment, and the each Frame that all extracts the frame number minimum in the receiving data frames tabulation of self of recipient's node is judged; Recipient's node judges that the method whether Frame of current extraction had been processed is: if the frame number from the Frame of same transmit leg node that the frame number of the Frame of current extraction was processed greater than the last time, the Frame that then represents current extraction is untreated, otherwise represents that the Frame of current extraction receives and processed by remaining ethernet channel.
Beneficial effect of the present invention is: redundancy communication method of the present invention mainly realizes by software, has reduced the requirement to hardware, and the common network equipment just can realize, thereby has reduced the cost of hardware redundancy equipment; In addition, redundancy communication method of the present invention is avoided reprocessing to identical data by introducing judgment mechanism, has improved processing speed.
Description of drawings
Fig. 1 is each the internodal network connection architecture according to the internodal redundancy communication method based on many networks of the present invention;
Fig. 2 is the flow chart according to a kind of execution mode of the internodal redundancy communication method based on many networks of the present invention.
Embodiment
Use the hardware foundation of redundancy communication method of the present invention as shown in Figure 1, be N separate network interface of each node configuration, independently Ethernet 1 net is corresponding continuous to the N net respectively with physically with N network interface of each node, make each node have N independently ethernet channel (herein independently be each ethernet channel for same node, rather than internodal ethernet channel is separate), each network interface of all nodes has mutually different IP address, wherein, N is the natural number more than or equal to 2.Have M node among the embodiment shown in Figure 1, be respectively node 1, node 2, until node M, M is the natural number more than or equal to 2, and M node all hangs on the N bar Ethernet, and the N of each a node network interface and Ethernet 1 net to N net connect one to one.
Redundancy communication method of the present invention is: transmit leg node (namely outwards sending the node of data) by its each other independently N ethernet channel send simultaneously data to recipient's node (being the node of receive data), the frame head of the Frame of the corresponding data that send comprises frame number, sender ID and recipient ID, and the transmit leg node is given different frame numbers to its each data that send; Recipient's node extracts a Frame from its receiving data frames tabulation after, frame number and affiliated transmit leg node according to the Frame of current extraction judge whether the data of current extraction were processed, if untreated then carry out data and process, and the frame number of the Frame of the current extraction of associated record and affiliated transmit leg node, like this, both can guarantee that recipient's node only processed once identical data, realized again redundancy communication, namely as long as an ethernet channel communication is normal, can receive data.At this, because different nodes can adopt identical frame number to send data, therefore, the transmit leg node under necessary associated record frame number and the data, otherwise can't judge accurately whether the data of current extraction were processed.
Need to prove, those skilled in the art are all clear, the form that sends data and be with Frame sends, Frame comprises frame head, data content and postamble, frame head and postamble information are the fixed length information of format, data content is elongated information, determined by data type, this shows, data are parts of Frame, and in the art, custom adopts " data " to describe in some situation, for example " receive data ", " transmission data ", custom adopts " Frame " to describe in some situation, and for example " extraction Frame ", those skilled in the art all knows the corresponding relation between data and Frame, therefore, can not think that there is the skimble-scamble problem of technical term in application documents of the present invention.
In addition, each node need to determine whether to send to by the recipient ID of Frame the data of oneself, namely judges whether to receive the data of transmitting on the Ethernet, this part is prior art, do not belong to inventive point of the present invention, therefore, the present invention will not illustrate this.
Recipient's node can be determined transmit leg node under the Frame of current extraction according to the IP address of the sender ID of the Frame of current extraction and/or transmit leg node.
In order to simplify the determining step of recipient's node, if the IP address of X network interface of M node is 128.128.X.M, wherein, X, M are natural number, 1≤X≤N, M 〉=2, like this, recipient's node only can be determined node under the Frame of current extraction according to the 4th byte of IP address.
In order to simplify the determining step of recipient's node equally, the transmit leg node can adopt the mode of self-propagation that the frame number of Frame is carried out assignment, and the each Frame that all extracts the frame number minimum in the receiving data frames tabulation of self of recipient's node is judged; Like this, if if the frame number from the Frame of same transmit leg node that the frame number of the Frame of current extraction was processed greater than the last time, the Frame that then represents current extraction is untreated, otherwise represents that the Frame of current extraction receives and processed by remaining ethernet channel.
For example, be provided with 3 ethernet channels, node 1 sends data A(by Ethernet 1 net, 2 nets and 3 nets to node 2 and sends out first) and B(after), the frame number of data A is 55, and the frame number of data B is 66, when node 2 has been received data A first from Ethernet 1 net, carry out data and process and record the frame number 55 of node 1, when receiving data A from Ethernet 2 nets and 3 nets, frame number 55 is less than or equal to the frame number 55 of record, just do not process the data A that receives from Ethernet 2 nets and 3 nets this moment; When node 2 has received data B from Ethernet 2 nets, frame number 66 is then carried out the frame number 66 that this node 1 was processed and recorded to data greater than the frame number 55 of record, when again receiving data B from Ethernet 1 net and 3 nets, just no longer carries out the data processing.
Now provide a kind of embodiment that carries out above-mentioned redundancy communication method for a node (this node is recipient's node when the receive data, is the transmit leg node) when sending data, this node rear execution following steps of starting working:
Step 101: upgrade the frame number of current data to be sent, execution in step 102 afterwards;
Step 102: the data that receive are put into the receiving data frames tabulation, have data as sending in the Frame tabulation, then send data to the other side's node by N ethernet channel, execution in step 103 afterwards;
Step 103: judge whether to connect with the other side's node, if otherwise enter step 201, if yes then enter step 104;
Step 104: the Frame (hereinafter to be referred as the equipment state frame) of data content indication equipment state is put into the tabulation of transmission Frame, as have data to be sent, then data to be sent are put into and sent the Frame tabulation, then execution in step 105;
Step 105: judge in the receiving data frames tabulation whether have Frame, then enter step 106 as existing, then enter step 301 as not existing;
Step 106: extract the Frame of frame number minimum from the receiving data frames tabulation, then execution in step 107:
Step 107: judge the frame number of Frame of current extraction whether greater than the frame number from the Frame of same node of processing (the last processing), if yes then enter step 108, if otherwise enter step 105;
Step 108: according to data type the Frame of current extraction is carried out data and process;
Step 201: data content is represented that the Frame of link information is put into send the Frame tabulation, enter afterwards step 202;
Step 202: judge in the receiving data frames tabulation whether have Frame, then enter step 203 as existing, then enter step 101 as not existing;
Step 203: extract the Frame of frame number minimum from the receiving data frames tabulation, then execution in step 204:
Step 204: whether the data content of judging the Frame of current extraction is link information, then enters in this way step 401, as otherwise enter step 205;
Step 205: whether the data content of judging the Frame of current extraction is to confirm link information, then enters in this way step 501, as otherwise enter step 101;
Step 401: data content is sent the Frame tabulation for confirming that the Frame that connects is put into, and from the Frame of current extraction, obtain the frame number when the other side's node of pre-treatment, enter afterwards step 101;
Step 501: arrange and be connected connection status for connecting with the other side's node, enter afterwards step 101;
Step 301: judge whether the time that does not have Frame in the receiving data frames tabulation surpass Preset Time, as otherwise enter step 101, then enter in this way step 302;
Step 302: arrange with the other side's node and be connected connection status for not connecting, enter afterwards step 101.
The above only is the better execution mode of the present invention, is not to limit practical range of the present invention, and the equivalence of in every case doing in protection scope of the present invention changes and modifies, and all should think to have fallen in protection scope of the present invention.

Claims (5)

1. internodal redundancy communication method based on many networks, it is characterized in that: be N separate network interface of each node configuration, independently Ethernet 1 net is corresponding continuous to the N net respectively with physically with N network interface of each node, make each node have N independently ethernet channel, each network interface of all nodes has mutually different IP address, wherein, N is the natural number more than or equal to 2;
Described redundancy communication method is: the transmit leg node simultaneously sends data with the form of Frame to recipient's node by its N ethernet channel, the frame head of Frame comprises frame number, sender ID and recipient ID, and the transmit leg node is given different frame numbers to its each data that send; Recipient's node extracts a Frame from its receiving data frames tabulation after, frame number and affiliated transmit leg node according to the Frame of current extraction judge whether the Frame of current extraction was processed, if untreated then carry out data and process, and the frame number of the Frame of the current extraction of associated record and affiliated transmit leg node.
2. redundancy communication method according to claim 1 is characterized in that: the transmit leg node under the Frame that recipient's node is determined current extraction according to sender ID and/or the IP address of the Frame of current extraction.
3. redundancy communication method according to claim 1, it is characterized in that: the IP address of X network interface of M node is 128.128.X.M, wherein, X, M are natural number, 1≤X≤N, M 〉=2; Recipient's node is determined the transmit leg node under the Frame of current extraction according to the 4th byte of the sender ID of the Frame of current extraction and/or IP address.
4. redundancy communication method according to claim 1, it is characterized in that: the transmit leg node at first sends the Frame that data content represents link information to recipient's node in startup or after restarting, and thinks that recipient's node provides the initial frame numbering of transmit leg node.
5. each described redundancy communication method in 4 according to claim 1, it is characterized in that: the transmit leg node adopts the mode of self-propagation that the frame number of Frame is carried out assignment, and the each Frame that all extracts the frame number minimum in the receiving data frames tabulation of self of recipient's node is judged; Recipient's node judges that the method whether Frame of current extraction had been processed is: if the frame number from the Frame of same transmit leg node that the frame number of the Frame of current extraction was processed greater than the last time, the Frame that then represents current extraction is untreated, otherwise represents that the Frame of current extraction receives and processed by remaining ethernet channel.
CN2012103966240A 2012-10-18 2012-10-18 Redundancy communication method among nodes based on multiple networks Pending CN102970221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103966240A CN102970221A (en) 2012-10-18 2012-10-18 Redundancy communication method among nodes based on multiple networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103966240A CN102970221A (en) 2012-10-18 2012-10-18 Redundancy communication method among nodes based on multiple networks

Publications (1)

Publication Number Publication Date
CN102970221A true CN102970221A (en) 2013-03-13

Family

ID=47800108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103966240A Pending CN102970221A (en) 2012-10-18 2012-10-18 Redundancy communication method among nodes based on multiple networks

Country Status (1)

Country Link
CN (1) CN102970221A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639551A (en) * 2015-02-12 2015-05-20 融智通科技(北京)股份有限公司 System and method for realizing multiple calls
CN104734825A (en) * 2015-03-03 2015-06-24 国家电网公司 Network redundancy fault tolerance method and system based on IP protocol expansion
CN107579804A (en) * 2017-07-17 2018-01-12 福建星网锐捷通讯股份有限公司 A kind of method and system for filtering duplicate data
CN110533503A (en) * 2019-08-12 2019-12-03 厦门网宿有限公司 A kind of data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0854610A2 (en) * 1997-01-16 1998-07-22 Yamatake-Honeywell Co. Ltd. Ethernet communication redundancy method
CN1556624A (en) * 2003-12-31 2004-12-22 П Adaptive selection method of data transmission mode in ethernet redundance network system
CN1585365A (en) * 2004-06-04 2005-02-23 浙江中控技术股份有限公司 Data telecommunication method based on redundant network
CN101378334A (en) * 2008-09-25 2009-03-04 卡斯柯信号有限公司 Communication method base on dual-network redundant universal network model
CN101753348A (en) * 2008-12-17 2010-06-23 中国科学院沈阳自动化研究所 High-availability industrial Ethernet redundancy method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0854610A2 (en) * 1997-01-16 1998-07-22 Yamatake-Honeywell Co. Ltd. Ethernet communication redundancy method
CN1556624A (en) * 2003-12-31 2004-12-22 П Adaptive selection method of data transmission mode in ethernet redundance network system
CN1585365A (en) * 2004-06-04 2005-02-23 浙江中控技术股份有限公司 Data telecommunication method based on redundant network
CN101378334A (en) * 2008-09-25 2009-03-04 卡斯柯信号有限公司 Communication method base on dual-network redundant universal network model
CN101753348A (en) * 2008-12-17 2010-06-23 中国科学院沈阳自动化研究所 High-availability industrial Ethernet redundancy method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639551A (en) * 2015-02-12 2015-05-20 融智通科技(北京)股份有限公司 System and method for realizing multiple calls
CN104734825A (en) * 2015-03-03 2015-06-24 国家电网公司 Network redundancy fault tolerance method and system based on IP protocol expansion
CN104734825B (en) * 2015-03-03 2018-04-06 国家电网公司 A kind of network redundancy fault-tolerance approach and system based on IP agreement extension
CN107579804A (en) * 2017-07-17 2018-01-12 福建星网锐捷通讯股份有限公司 A kind of method and system for filtering duplicate data
CN107579804B (en) * 2017-07-17 2021-04-16 福建星网锐捷通讯股份有限公司 Method and system for filtering repeated data
CN110533503A (en) * 2019-08-12 2019-12-03 厦门网宿有限公司 A kind of data processing method and device

Similar Documents

Publication Publication Date Title
CN106330414B (en) Message transmission method and device
US9515919B2 (en) Method and apparatus for protection switching in packet transport system
CN105578491A (en) Method and device for associating 4G user information with application data
CN104283658A (en) Method for realizing dual-network redundancy of protection device on the basis of PRP parallel redundancy
JP2012504923A5 (en)
CN111130070B (en) Line differential protection method based on wireless network retransmission mechanism
CN102970221A (en) Redundancy communication method among nodes based on multiple networks
CN101510882A (en) Method and apparatus for learning medium access control address
CN103379046A (en) Method for improving message sending efficiency through IP message combining and splitting technology
CN105183687A (en) Time-sharing serial communication method and system
CN107528747B (en) Method and device for diagnosing communication state of master station and slave station and computer readable storage medium
CN103036724B (en) State information transmission method, the network equipment and unit equipment
CN112188420B (en) Method and system for identifying fault section of optical fiber multiplexing channel by using short message
EP2706682A1 (en) Optical network channel detection method and device
EP3605963A1 (en) Data processing method and apparatus
CN102802181B (en) Method and system for detecting physical topological link
EP2472796A1 (en) Method and system for blocking protocol messages at a sub-ring control channel without virtual channel
CN102497306B (en) A kind of distribution substation realizes the method and system of transfer of data
CN103873190B (en) Transmission method, system and the terminal of end-to-end service feature
CN104426771A (en) Message forwarding method and message forwarding device
CN102711163A (en) Method for rapidly detecting alarm link failure in IP (internal protocol)-RAN (random access network) equipment
US9584410B2 (en) System and method for selecting layer-2 adapter
CN106888121B (en) A kind of 1553B bus protocol emulation mode based on transmission of data blocks
CN101247287B (en) Fault detection method of operation management maintenance mechanism
CN101950485B (en) Traffic signal lamp digital networking equipment

Legal Events

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

Application publication date: 20130313