CN102497243A - Ethernet-based major state and secondary state quick arbitration method of redundancy module - Google Patents

Ethernet-based major state and secondary state quick arbitration method of redundancy module Download PDF

Info

Publication number
CN102497243A
CN102497243A CN2011104162285A CN201110416228A CN102497243A CN 102497243 A CN102497243 A CN 102497243A CN 2011104162285 A CN2011104162285 A CN 2011104162285A CN 201110416228 A CN201110416228 A CN 201110416228A CN 102497243 A CN102497243 A CN 102497243A
Authority
CN
China
Prior art keywords
module
state
redundant
ethernet
critical condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104162285A
Other languages
Chinese (zh)
Other versions
CN102497243B (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.)
Nanjing Sciyon Automation Group Co Ltd
Original Assignee
Nanjing Sciyon Automation Group 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 Nanjing Sciyon Automation Group Co Ltd filed Critical Nanjing Sciyon Automation Group Co Ltd
Priority to CN201110416228.5A priority Critical patent/CN102497243B/en
Publication of CN102497243A publication Critical patent/CN102497243A/en
Application granted granted Critical
Publication of CN102497243B publication Critical patent/CN102497243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an Ethernet-based major state and secondary state quick arbitration method of a redundancy module. The method comprises the following steps that: (1) the redundancy module enters into a preprocessing state, and transmits a request message to an opposing module, when a replied state of the opposing module is the major state, the redundancy module enters into the secondary state; otherwise, the redundancy module enters into a critical state; (2) when the opposing module replies over time in the step (1), the redundancy module delays and transmits the request message again to the opposing module, when the opposing module replies over time, the redundancy module enters into the major state; (3) the replied state of the opposing module in the step (1) is the critical state, the redundancy module, when the difference between the time entering the critical state of the redundancy module and the opposing module is more than a standard time difference, the module firstly entering the critical state is in the major state, and the module entering the critical state later is in the secondary state; and when the difference between the time entering the critical state of the redundancy module and the opposing module is not more than the standard time difference, a left module is in the major state, and a right module is in the secondary state. The arbitration method is quick and accurate.

Description

The quick principal and subordinate's referee method of a kind of redundant module based on Ethernet
Technical field
The present invention relates to the quick principal and subordinate's referee method of a kind of fast-speed redundancy module, be specifically related to a kind of method that is used for confirming when two-shipper carries out the first arbitration of redundancy through Ethernet master slave mode based on Ethernet.
Background technology
Traditional dual-computer redundancy carries out first redundant arbitration when confirming master slave mode, often realizes through artificial time-delay, generally adopts module to start the back and surveys the other side earlier, do not respond then when the other side has that module gets into major state, and time-delay a period of time starts the response task; When the other side has response, then get into from state.Adopt this method because delay time is longer, so can not carry out the master slave mode arbitration fast, also might produce with main or with from phenomenon, promptly produce the phenomenon that redundant arbitration is failed.
Summary of the invention
To the objective of the invention is the defective that exists in the prior art in order solving, to provide a kind of and can carry out the referee method that master slave mode is judged fast.
In order to achieve the above object, the invention provides the quick principal and subordinate's referee method of a kind of redundant module based on Ethernet, redundant module the startup stage comprise pre-operation state, critical condition, major state and from state; This said referee method may further comprise the steps:
(1) said redundant module sends request message to the other side's module when getting into the preliminary treatment state, and when the other side's module response timeout or response state were critical condition, this redundant module got into critical condition; When the other side's module response state was main state, this redundant module got into from state;
(2) in the said step (1) during the other side's module response timeout, said redundant module time-delay is sent request message once more to the other side's module, and when the other side's module response timeout, this redundant module gets into major state;
When (3) the other side's module response state is critical condition in the said step (1); The time difference overgauge that gets into critical condition when said redundant module and the other side's module is during the time difference; The module that is introduced into critical condition is main state, and the module that the back gets into critical condition is from state; Be less than or equal to the standard time during difference when the time difference that said redundant module and the other side's module get into critical condition, left side module is main state, and the right module is from state.
Wherein, the delay time in the step (2) is 100 milliseconds.Standard time difference in the step (3) is 100 milliseconds.
Response timeout in step (1) and the step (2) is that request message sends all not have for three times and returns.
Above-mentioned redundant module carries out synchronous communication through Ethernet, and module starts self check and reads entering preliminary treatment state behind the position of oneself.
The present invention compares prior art and has the following advantages: the present invention module the startup stage add critical condition; When two modules start simultaneously; Through come the state of determination module in twice information interaction of critical condition; Judge fast, make module can the startup stage 200 milliseconds with interior confirm oneself state accurately and prevent with main, with generation from phenomenon; Referee method of the present invention is widely used, and can be applied to occasions such as needing first redundant synchronous controller of two-shipper or Communication Gateway.
Description of drawings
Fig. 1 is the view of redundant module of the present invention.
Fig. 2 is a critical condition operation chart among Fig. 1.
Fig. 3 is the program flow diagram of referee method of the present invention.
Embodiment
Below in conjunction with accompanying drawing the quick principal and subordinate's referee method of the redundant module that the present invention is based on Ethernet is elaborated.
As shown in Figure 1; The present invention is based on the quick principal and subordinate's referee method of redundant module of Ethernet, redundant two modules A, B are in left and right two positions respectively, carry out redundancy synchronously through Ethernet; State startup stage of module is divided into pre-operation state, critical condition, major state and from state; Can send request message at pre-operation state lower module, under critical condition, module can be sent request message and responded request message; Under major state, can only respond request message, under state, not produce communication.
Program circuit is as shown in Figure 3, and when a modules A in A, the B module started separately, module started and at first to get into the preliminary treatment state after the position of oneself is read in self check; In this state; Modules A is sent request message to the other side, and the other side does not respond, and module can enter into critical condition and delay time and send request message once more after 100 milliseconds; The other side is response not, and module gets into major state.
Modules A in A, B module has started accomplishes the entering major state; At this moment start another module B; Module B sends solicited message to the modules A and the information that meets with a response, and relatively A, B get into the time difference Δ t of critical condition, because A is introduced into critical condition; Time difference Δ t is greater than 100 milliseconds, so B directly gets into from state;
When A, B started simultaneously, two all were in critical condition, as shown in Figure 2; Module can judge that relatively A, B get into the time difference Δ t of critical condition according to the other side's response message; If time difference Δ t is less than or equal to 100 milliseconds, then left side module gets into major state, and the right module gets into from state.
In order to increase the reliability of judgement, all overtimely to think really overtime just all request messages send three times.The present invention can be applicable to the occasion of dual-computer redundancy, module the startup stage can self check self the position, and it is synchronous to carry out redundancy through Ethernet.

Claims (5)

1. quick principal and subordinate's referee method of the redundant module based on Ethernet, said redundant module the startup stage comprise pre-operation state, major state and from state; It is characterized in that: said redundant module the startup stage comprise pre-operation state, critical condition, major state and from state; Said referee method may further comprise the steps:
(1) said redundant module sends request message to the other side's module when getting into the preliminary treatment state, and when the other side's module response timeout or response state were critical condition, this redundant module got into critical condition; When the other side's module response state was main state, this redundant module got into from state;
(2) in the said step (1) during the other side's module response timeout, said redundant module time-delay is sent request message once more to the other side's module, and when the other side's module response timeout, this redundant module gets into major state;
When (3) the other side's module response state is critical condition in the said step (1); The time difference overgauge that gets into critical condition when said redundant module and the other side's module is during the time difference; The module that is introduced into critical condition is main state, and the module that the back gets into critical condition is from state; Be less than or equal to the standard time during difference when the time difference that said redundant module and the other side's module get into critical condition, left side module is main state, and the right module is from state.
2. the quick principal and subordinate's referee method of the redundant module based on Ethernet according to claim 1 is characterized in that: the delay time in the said step (2) is 100 milliseconds.
3. the quick principal and subordinate's referee method of the redundant module based on Ethernet according to claim 1 is characterized in that: the standard time difference in the said step (3) is 100 milliseconds.
4. according to the quick principal and subordinate's referee method of the arbitrary described redundant module based on Ethernet of claim 1 to 3, it is characterized in that: the response timeout in said step (1) and the step (2) is that request message sends all not have for three times and returns.
5. according to the quick principal and subordinate's referee method of the arbitrary described redundant module based on Ethernet of claim 1 to 3, it is characterized in that: said redundant module carries out synchronous communication through Ethernet, and module starts self check and reads entering preliminary treatment state behind the position of oneself.
CN201110416228.5A 2011-12-14 2011-12-14 Ethernet-based major state and secondary state quick arbitration method of redundancy module Active CN102497243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110416228.5A CN102497243B (en) 2011-12-14 2011-12-14 Ethernet-based major state and secondary state quick arbitration method of redundancy module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110416228.5A CN102497243B (en) 2011-12-14 2011-12-14 Ethernet-based major state and secondary state quick arbitration method of redundancy module

Publications (2)

Publication Number Publication Date
CN102497243A true CN102497243A (en) 2012-06-13
CN102497243B CN102497243B (en) 2014-11-12

Family

ID=46189036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110416228.5A Active CN102497243B (en) 2011-12-14 2011-12-14 Ethernet-based major state and secondary state quick arbitration method of redundancy module

Country Status (1)

Country Link
CN (1) CN102497243B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796213A (en) * 2015-03-19 2015-07-22 南京科远自动化集团股份有限公司 Clock synchronizing control system and method of multi-redundancy controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060159037A1 (en) * 2004-12-15 2006-07-20 Dilithium Holdings, Inc. Fast session setup extensions to H.324
CN101582797A (en) * 2009-06-15 2009-11-18 北京星网锐捷网络技术有限公司 Management board and two-unit standby system and method
CN101635617A (en) * 2009-08-14 2010-01-27 中兴通讯股份有限公司 Method and system for determining primary/standby state in communication apparatus
CN101640622A (en) * 2009-09-07 2010-02-03 中兴通讯股份有限公司 Ethernet ring net protection method and transit node
CN101695069A (en) * 2009-10-22 2010-04-14 南京科远自动化集团股份有限公司 Enetgw communication gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060159037A1 (en) * 2004-12-15 2006-07-20 Dilithium Holdings, Inc. Fast session setup extensions to H.324
CN101582797A (en) * 2009-06-15 2009-11-18 北京星网锐捷网络技术有限公司 Management board and two-unit standby system and method
CN101635617A (en) * 2009-08-14 2010-01-27 中兴通讯股份有限公司 Method and system for determining primary/standby state in communication apparatus
CN101640622A (en) * 2009-09-07 2010-02-03 中兴通讯股份有限公司 Ethernet ring net protection method and transit node
CN101695069A (en) * 2009-10-22 2010-04-14 南京科远自动化集团股份有限公司 Enetgw communication gateway

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796213A (en) * 2015-03-19 2015-07-22 南京科远自动化集团股份有限公司 Clock synchronizing control system and method of multi-redundancy controller
CN104796213B (en) * 2015-03-19 2017-04-26 南京科远自动化集团股份有限公司 Clock synchronizing control system and method of multi-redundancy controller

Also Published As

Publication number Publication date
CN102497243B (en) 2014-11-12

Similar Documents

Publication Publication Date Title
US11817944B2 (en) Time synchronization method and apparatus for domain controller, domain controller and storage medium
CN102868560A (en) System and method for realizing hot standby of servers
CN101852472A (en) Automatic addressing method for air conditioning system and air conditioning controller
DE602006009494D1 (en) INTELLIGENT PLATFORM MANAGEMENT INTERFACE BASED MANAGEMENT SYSTEM AND METHOD
CN104122883A (en) Automatic automobile controller configuring method
CN109557498A (en) A kind of electric energy meter stops the processing method of telegram in reply event
CN103168292A (en) Method for monitoring at least two microcontrollers
CN201592724U (en) Time synchronous system of train control vehicular device
JP2008099482A (en) Battery pack block, battery pack system, and address setting method for battery pack system
CN106671898A (en) Whole vehicle control method and device for pure electric vehicle
CN109149625B (en) Auxiliary inverter grid-connected system and method for subway vehicle
CN107612774A (en) A kind of multi-channel synchronous sleep method and system
CN107025152A (en) The method of data synchronization of the dual redundant hot spare devices of task based access control level
CN102195769A (en) Clock synchronization method for automobile CAN (Control Area Network)
CN103457714A (en) Method and system for synchronizing server time
CN105227289B (en) A kind of clock synchronizing method and system of quick precise and safety
CN106789506B (en) BC switching method based on hybrid structure of optical fiber bus and 1553B bus
CN109347590A (en) The synchronous method of DoIP entity and DoIP entity in vehicle-mounted Ethernet
CN116699964A (en) Redundant operation method and system for industrial process controller
CN102497243A (en) Ethernet-based major state and secondary state quick arbitration method of redundancy module
CN113625540A (en) Dual-computer hot standby control method and device and dual-computer hot standby system
CN112398672B (en) Message detection method and device
CN102565477B (en) Electric energy meter alarm information transmission system and electric energy meter alarm information uploading method
JP5208327B1 (en) Transmission line address duplication detection method and slave station terminal used for the method
AU2012323190B2 (en) Method for operating a control network, and control network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant