CN101335541B - Method implementing data synchronization between main and spare circuit board - Google Patents

Method implementing data synchronization between main and spare circuit board Download PDF

Info

Publication number
CN101335541B
CN101335541B CN2008100678673A CN200810067867A CN101335541B CN 101335541 B CN101335541 B CN 101335541B CN 2008100678673 A CN2008100678673 A CN 2008100678673A CN 200810067867 A CN200810067867 A CN 200810067867A CN 101335541 B CN101335541 B CN 101335541B
Authority
CN
China
Prior art keywords
control board
main control
data
execution
synchronization
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.)
Expired - Fee Related
Application number
CN2008100678673A
Other languages
Chinese (zh)
Other versions
CN101335541A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100678673A priority Critical patent/CN101335541B/en
Publication of CN101335541A publication Critical patent/CN101335541A/en
Application granted granted Critical
Publication of CN101335541B publication Critical patent/CN101335541B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for realizing data synchronization between a main control board and a standby main control board, comprising a cyclic backup and a manual synchronization. For the cyclic backup, the way of timing synchronization is adopted in the main control board, when a data synchronizing cycle is reached, the main control board can synchronize all data that need to be backed up presently to the standby main control board; for the manual synchronization, for compensating the inconformity of data caused by various factors, a manual instruction can be given to ensure that the main control board can synchronize all data that need to be backed up presently to the standby main control board, particularly, when the main control board and the standby main control board are switched with each other manually, the method can ensure that the system can still run normally, stably and reliably after the switching between the main control board and the standby main control board. Compared with the prior art, as the method of the invention compensates the reliability of the data synchronization technology with various forms of the original process, reliable warm backup of data between the main control board and the standby main control board can be realized, thus enhancing the reliability and stability of the whole communication system.

Description

A kind of method that realizes active and standby plate data sync
Technical field
The present invention relates to a kind of a kind of method of data synchronization that the 1+1 hot backup function adopts of in communication system, realizing; It can realize making under the situation that data at the work mainboard change; Make the backup plate to be consistent, thereby improve the reliability and stability of system with the main board data in real time.
Background technology
In the optical communication system, especially core net because its network site of living in is extremely important, does not allow to occur Single Point of Faliure in modern times, and equipment generally all is equipped with two master control borads, is called main control board (Master) and slave control board (Slave) respectively.Wherein, main control board carries out service communication, the normal function of each module in the completion system as the core of control plane with outside and business board; Slave control board then only as the backup of main control board, is not communicated by letter with business board with outside.When main control board broke down, system carried out active and standby switching automatically, took over the work of main control board by slave control board, guaranteed professional normal operation.And the key of guaranteeing the reliable and stable operation of said system be reach active and standby between the Hot Spare of data.The traditional data method for synchronous mainly comprises the Hot Spare that starts synchronously and reach data in real time synchronously,
Although these two kinds of methods can realize most of data sync; But these synchronous prerequisites all are to be based upon synchronous mouth and not have under the prerequisite of fault; If synchronous mouth has problem in the start-up course, synchronous mouthful fault perhaps appears, though carried out synchronously in logical running; But do not reach synchronous effect, cause synchronization failure.
Summary of the invention
It is not enough that the problem that the present invention need solve is to overcome traditional data method of synchronization synchrodata reliability, proposes the mode of two kinds of data sync, can increase the reliable synchronization of data.
First kind is periodic backups, and mainboard adopts regularly synchronous mode, and when arriving data sync during the cycle, main control board can all be synchronized to slave control board with the current backed up data that needs; It may further comprise the steps:
Step 1, plank begin after powering on and bringing into operation, the counter of at first zero clearing periodic synchronous;
Whether step 2, whenever to detect oneself at a distance from one second be mainboard, if, execution in step 3, otherwise zero clearing coincidence counter, continuation execution in step 2.
Whether step 3, detect on the thronely to plate (slave board), if then the value of coincidence counter adds one, execution in step 4, otherwise zero clearing coincidence counter continue execution in step 2.
Whether the value of step 4, the current coincidence counter of detection equals synchronizing cycle, if, just carry out data sync, send portion to all synchrodatas to slave board, execution in step 2, otherwise zero clearing coincidence counter continue execution in step 2.
Second kind is manual synchronization; In order to remedy the inconsistent phenomenon of data that causes owing to various factors; Can make main control board that the current backed up data that needs all is synchronized to slave control board through the mode of manual transmitting order to lower levels, especially manually masterslave switchover the time; Can guarantee like this after the active and standby switching that system still can the normal and stable reliability service.It may further comprise the steps:
Step 1, whenever at a distance from 10 milliseconds of detections whether the manual data synch command is arranged once, if having, then execution in step 2, otherwise continue execution in step 1.
Whether step 2, to detect oneself be mainboard, if, just carry out data sync, send all synchrodatas a to slave board.Otherwise execution in step 1.
Adopt the method for the invention; Compared with prior art; Because this method has remedied the reliability of data synchronization technology multi-form in the original process, reached active and standby between the effect of reliable Hot Spare of data, improved the reliability and stability of whole communication system.
Description of drawings
Fig. 1 is the synchronous flow chart manual synchronization flow chart of periodic synchronous;
Fig. 2 is the manual synchronization flow chart;
Fig. 3 embodiment reduced graph.
Embodiment
To combine accompanying drawing and embodiment that technical scheme of the present invention is explained in more detail below.
, may further comprise the steps with the method that the periodic synchronous explanation the present invention relates at this:
Step 1, plank begin after powering on and bringing into operation, the counter of at first zero clearing periodic synchronous;
Whether step 2, whenever to detect oneself at a distance from one second be mainboard, if, execution in step 3, otherwise zero clearing coincidence counter, continuation execution in step 2.
Whether step 3, detect on the thronely to plate (slave board), if then the value of coincidence counter adds one, execution in step 4, otherwise zero clearing coincidence counter continue execution in step 2.
Whether the value of step 4, the current coincidence counter of detection equals synchronizing cycle, if, just carry out data sync, send portion to all synchrodatas to slave board, execution in step 2, otherwise zero clearing coincidence counter continue execution in step 2.
, may further comprise the steps with the method that the manual synchronization explanation the present invention relates at this:
Step 1, whenever at a distance from 10 milliseconds of detections whether the manual data synch command is arranged once, if having, then execution in step 2, otherwise continue execution in step 1.
Whether step 2, to detect oneself be mainboard, if, just carry out data sync, send all synchrodatas a to slave board.Otherwise execution in step 1.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (2)

1. the method for data synchronization of mainboard and slave board in the communication system is characterized in that, comprises the steps:
(1), behind the Board Power up, zero clearing periodic synchronous counter;
(2) whether, whenever detecting oneself at a distance from one second is mainboard, if execution in step (3), otherwise zero clearing coincidence counter continue execution in step (2);
(3) whether, it is on the throne to detect slave board, if then the value of coincidence counter adds one, execution in step (4), otherwise the said coincidence counter of zero clearing continue execution in step (2);
(4), whether the value that detects current coincidence counter equals synchronizing cycle, if, carry out data sync, send all synchrodatas to slave board, execution in step (2), otherwise zero clearing coincidence counter continue execution in step (2).
2. the method for claim 1 is characterized in that, said method further comprises:
(5), whenever whether the manual data synch command is once arranged at a distance from 10 milliseconds of detections, if having, execution in step (6) then, otherwise continue execution in step (5);
(6) whether, detecting is mainboard, if, then carry out data sync, send all synchrodatas to slave board, otherwise execution in step (5).
CN2008100678673A 2008-06-12 2008-06-12 Method implementing data synchronization between main and spare circuit board Expired - Fee Related CN101335541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100678673A CN101335541B (en) 2008-06-12 2008-06-12 Method implementing data synchronization between main and spare circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100678673A CN101335541B (en) 2008-06-12 2008-06-12 Method implementing data synchronization between main and spare circuit board

Publications (2)

Publication Number Publication Date
CN101335541A CN101335541A (en) 2008-12-31
CN101335541B true CN101335541B (en) 2012-05-23

Family

ID=40197891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100678673A Expired - Fee Related CN101335541B (en) 2008-06-12 2008-06-12 Method implementing data synchronization between main and spare circuit board

Country Status (1)

Country Link
CN (1) CN101335541B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931550B (en) * 2009-06-23 2014-01-01 中兴通讯股份有限公司 Method and device for synchronizing main and standby main control boards
CN102117209B (en) * 2010-12-20 2015-04-22 深圳市科陆电子科技股份有限公司 Method for processing intermediate data at a regular time in WEB system
CN102664675A (en) * 2012-04-10 2012-09-12 郭磊 Hot standby processing scheme of optical communication signals

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741404A (en) * 2004-08-27 2006-03-01 华为技术有限公司 Method for negat main spare board in communication equipment
CN101155015A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Synchronization method for data and condition between host computer and standby computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741404A (en) * 2004-08-27 2006-03-01 华为技术有限公司 Method for negat main spare board in communication equipment
CN101155015A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Synchronization method for data and condition between host computer and standby computer

Also Published As

Publication number Publication date
CN101335541A (en) 2008-12-31

Similar Documents

Publication Publication Date Title
CN101316184B (en) Disaster tolerance switching method, system and device
CN103532753B (en) A kind of double hot standby method of synchronization of skipping based on internal memory
CN102045332B (en) Method for processing control message in intelligent resilient framework and line card boards
CN107634855A (en) A kind of double hot standby method of embedded system
WO2017024688A1 (en) Control method and system capable of system upgrade without interrupting services
CN103488721A (en) Database bisynchronous method and system for master and slave boards
CN105790825B (en) Method and device for hot backup of controller in distributed protection
CN102388570B (en) Single board running method and system under active-standby mode
CN103139033B (en) Single main communications control bus main equipment redundancy switching method
CN101335541B (en) Method implementing data synchronization between main and spare circuit board
CN102195796A (en) Method and equipment for updating software version of distributed dual master control equipment
CN101267392A (en) A realizing method for notifying downstream device in case of switch of uplink link status
CN101931550A (en) Method and device for synchronizing main and standby main control boards
CN100461646C (en) Method for negat main spare board in communication equipment
CN1128558C (en) Base station control maintenance module backup system
CN110471491A (en) A kind of method of management system time synchronization in blade server
CN105591801B (en) A kind of virtual network function VNF fault handling method and VNF management equipment
EP2887592A1 (en) Enum-dns disaster recovery method and system in ims network
CN103944697A (en) Double-link double-server voice dispatching system and redundant backup method
CN103812680A (en) System and method for achieving single plate switching
CN104780067A (en) Method and device for rebooting PE (port extender)
CN101094049B (en) Smoothing restarting method and neighbor devices
CN100395962C (en) Method and system for equipment switching in communication system
CN101447728A (en) Synchronous pulse-sending method and system thereof for UPS parallel machine
CN101582802B (en) Operation maintenance system and method of network access device

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120523

Termination date: 20180612