CN102882718B - With defensive main and standby rearranging method in communication equipment - Google Patents

With defensive main and standby rearranging method in communication equipment Download PDF

Info

Publication number
CN102882718B
CN102882718B CN201210362846.0A CN201210362846A CN102882718B CN 102882718 B CN102882718 B CN 102882718B CN 201210362846 A CN201210362846 A CN 201210362846A CN 102882718 B CN102882718 B CN 102882718B
Authority
CN
China
Prior art keywords
standby
active
master
dish
mark position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210362846.0A
Other languages
Chinese (zh)
Other versions
CN102882718A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201210362846.0A priority Critical patent/CN102882718B/en
Publication of CN102882718A publication Critical patent/CN102882718A/en
Application granted granted Critical
Publication of CN102882718B publication Critical patent/CN102882718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To the invention discloses in a kind of communication equipment with defensive main and standby rearranging method, it is characterized in that, comprise the following steps: on standby dish, an active and standby synchronous mark position is being set to represent whether active and standby simultaneous operation completes; When master generation exceptional reset, when new master switched into by standby dish, first standby dish reads active and standby synchronous mark position and judges whether active and standby simultaneous operation completes, if completed synchronous, has then read the configuration data in active and standby sync buffering district, and recovers business accordingly; Otherwise, read the configuration data preserved in FLASH, and recover business accordingly; If read the configuration data failure of preserving in FLASH, then restarting systems.The present invention, except realizing masterslave switchover under normal circumstances, can also solve the configuration loss problem that equipment masterslave switchover in master exceptional reset situation causes.

Description

With defensive main and standby rearranging method in communication equipment
Technical field
The present invention relates to communication technical field, be specifically related in communication equipment with defensive main and standby rearranging method.
Background technology
There is high requirement the reliability aspect of telecom carrier-class device to system, and its main control part of a large amount of telecommunication apparatus all have employed the design of master-slave redundancy backup, has masterslave switchover characteristic.Only have in normal state one piece of main control unit be in master state carry out equipment control and process business configuration, when the main control unit (hereinafter referred to as master) being in master state breaks down, automatically masterslave switchover can be there is in system, originally the main control unit (hereinafter referred to as standby dish) being in stand-by state can become new master, former master exits master state, equipment control and process business configuration is proceeded by the master after switching, guarantee equipment and business can recover rapidly normal operation, and this process is called masterslave switchover.
Masterslave switchover function may be used for the high reliability realizing system.Support that the equipment of masterslave switchover characteristic has two pieces of main control units, one piece is master, is operated in master state; Another block is standby dish, is operated in stand-by state, and standby dish, by synchronizing function, keeps the current configuration consistency with master.
The high reliability that masterslave switchover realizes system is mainly reflected in following two aspects:
When master breaks down or be pulled out, rapid automatic pouring is changed into new master and proceeds equipment control and process business configuration by standby dish, ensures that the continuation of equipment runs;
The mode of device upgrade there occurs change, does not need to carry out whole equipment and restarts, thus the long-time service disconnection that can not cause because equipment restarts.First online upgrading master and standby dish, upgrade file is downloaded also programming to FLASH, then first time masterslave switchover is performed, former master is restarted with new upgrade file, again masterslave switchover is performed after former master has been restarted, former standby dish is restarted with new upgrade file, this completes the escalation process of equipment.The time of restarting than whole equipment due to the configuration implementation after masterslave switchover is much smaller, the service outage duration much shorter that the service outage duration that therefore masterslave switchover causes restarts than equipment and causes.
The huge advantage of masterslave switchover in above-mentioned two, makes it be widely adopted at equipment especially communication equipment field.
Although the design of master-slave redundancy backup and masterslave switchover characteristic effectively can improve the reliability of telecommunication apparatus, when the primary unit of equipment is due to certain accidental cause catastrophic failure, can the normal operation of restorer and business at a terrific speed.But this solution equally also brings the difficult problem that technology realizes: the problem of instant active and standby configuration synchronization.Existing active and standby configuration synchronization technical scheme normally respectively sets up an allocating cache region at primary unit and stand-by unit both sides, two regions lay respectively at the two ends of active and standby cell main-slave connection, adopt the primary cell location of Timing Synchronization to the method for stand-by unit, realize the consistency of active and standby unit business configuration data.When there is masterslave switchover, stand-by unit performs configuration from this configuration buffering area, and recovers business accordingly, realizes the object of protection.
In above-mentioned masterslave switchover technical scheme, no problem in theory, but do not consider complex environment problem in engineering.Cannot ensure that, when primary unit bursts exception, the configuration of standby usage unit is on all four.Under some abnormal conditions, when equipment generation masterslave switchover, configuration synchronization operation does not also complete, such as Equipments Setting is very large, active and standby synchronous consumption chronic, if now primary unit bursts is abnormal, and masterslave switchover occurs, run under the state that new primary unit entirely even may not configure in configuration, service disconnection after causing masterslave switchover, equipment take off the serious consequence of pipe.
The basic reason of this problem is that design does not consider how the masterslave switchover in some special abnormality situations processes usually, such as equipment executive system reboot operation, but master exceptional reset in the process of restarting, equipment generation masterslave switchover, and now active and standby configuration synchronization operation is not also carried out or does not also complete, after masterslave switchover new master active and standby buffering area in also do not generate configuration synchronization data, the configuration that new master performs in master buffering area can cause configuration loss.
Summary of the invention
Technical problem to be solved by this invention is the problem of the configuration loss that in solution master exceptional reset situation, equipment masterslave switchover causes.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention to be to provide in a kind of communication equipment with defensive main and standby rearranging method, comprises the following steps:
Standby dish arranges an active and standby synchronous mark position to represent whether active and standby simultaneous operation completes;
When master generation exceptional reset, when new master switched into by standby dish, first standby dish reads active and standby synchronous mark position and judges whether active and standby simultaneous operation completes, if completed synchronous, has then read the configuration data in active and standby sync buffering district, and recovers business accordingly; Otherwise, read the configuration data preserved in FLASH, and recover business accordingly; If read the configuration data failure of preserving in FLASH, then restarting systems, after system reboot, webmaster produces alarm prompt user and processes present case.
In the above-mentioned methods, to be that 0 expression is active and standby do not complete synchronous for the value of described active and standby synchronous mark position, is that 1 expression carried out active and standby simultaneous operation; The initial value of described active and standby synchronous mark position is 0, and standby hair updo send active and standby configuration synchronization request to being 0 by this mark position during master, and completing rearmounted in standby dish reception synchrodata is 1.
In the above-mentioned methods, timing completes the operation of active and standby configuration synchronization, and each active and standby configuration synchronization has operated rear preservation configuration data to FLASH.
The present invention has following beneficial effect:
(1) under normal circumstances, the request of standby dish timed sending configuration synchronization is to master, collect after master receives configuration synchronization request and need synchronous configuration data to send to standby dish, again initiatively send active and standby synchronization request by standby dish after user issues masterslave switchover order, the consistency that the master and backup discs before masterslave switchover configures can be ensured like this.
(2) active and standby configuration timing synchronization operation is operated with the preservation of FLASH timing automatic combine.
(3) when there is master exceptional reset, if the last time of active and standby dish, active and standby configuration synchronization operation completed, what then new master performed is the configuration data preserved in active and standby buffering area, if also do not carry out the operation of active and standby configuration synchronization or the active and standby configuration synchronization operation failure of last execution, what then new master performed is the configuration data preserved in FLASH, the problem that when can solve master exceptional reset like this, system configuration is lost, guarantee equipment normally runs business and can carry on.
Accompanying drawing explanation
Fig. 1 is masterslave switchover flow process under normal circumstances in method provided by the invention;
Fig. 2 is the masterslave switchover flow process in method provided by the invention in master exceptional reset situation.
Embodiment
With defensive main and standby rearranging method in communication equipment provided by the invention, except realizing masterslave switchover under normal circumstances, can also solve the configuration loss problem that equipment masterslave switchover in master exceptional reset situation causes, concrete methods of realizing is as follows:
Standby dish arranges an active and standby synchronous mark position to represent whether active and standby simultaneous operation completes; The value of active and standby synchronous mark position be 0 expression active and standby do not complete synchronous, be that 1 expression carried out active and standby simultaneous operation, the initial value of active and standby synchronous mark position is 0, and standby hair updo send active and standby configuration synchronization request to being 0 by this mark position during master, and completing rearmounted in standby dish reception synchrodata is 1.
Timing completes the operation of active and standby configuration synchronization, and each active and standby configuration synchronization has operated rear preservation and has been configured to FLASH.
When master switched into by master generation exceptional reset, standby dish, first the active and standby synchronous mark position on standby dish is read, judge whether active and standby simultaneous operation completes according to the value of active and standby synchronous mark position, if the value of active and standby synchronous mark position is 1( completed active and standby synchronous), then read the configuration data in the upper active and standby sync buffering district of standby dish, and recover business (after active and standby dish configuration synchronization, preserving a configuration data copy all the time in active and standby sync buffering district) accordingly; Otherwise read the configuration data preserved in standby dish FLASH and fall, and recover business accordingly, if read the configuration data failure of preserving in FLASH, then restarting systems, after system reboot, webmaster produces masterslave switchover failure alarm prompt user and processes present case.
Below in conjunction with accompanying drawing, the present invention is described in detail.
Fig. 1 is masterslave switchover flow process under normal circumstances in method provided by the invention, and as shown in Figure 1, concrete steps are as follows;
Whether step 11, master detect standby dish exists, if do not exist, terminates masterslave switchover order and reports masterslave switchover failure, performing step 12 if exist;
Step 12: master sends masterslave switchover request to standby dish;
Step 13: standby dish receives masterslave switchover request, sends configuration synchronization request to master, simultaneously by active and standby synchronous mark position clear 0;
Step 14: master receives the request of standby dish configuration synchronization, collects and needs synchronous configuration data to be sent to standby dish;
Step 15: standby dish receives configuration data and deposits in active and standby sync buffering district, simultaneously by active and standby synchronous mark position 1, finishes receiving rear reply masterslave switchover grant commands to master and configuration data is saved in FLASH;
Step 16; Master receives masterslave switchover grant commands, and perform masterslave switchover operation, former master resets and restarts, and former standby dish is switched as new master;
Step 17: new master performs the configuration data that in active and standby sync buffering district, former master is synchronously come, and recovers business accordingly.
Fig. 2 is the masterslave switchover flow process in method provided by the invention in master exceptional reset situation, and as shown in Figure 2, concrete steps are as follows:
Step 21: master exceptional reset, standby dish is switched as new master;
Step 22: first new master reads active and standby synchronous mark position, judge whether to complete active and standby simultaneous operation according to the value of active and standby synchronous mark position, if active and standby synchronous mark place value is 1, performs the configuration data that in active and standby buffering area, former master is synchronously come, and recover business accordingly; Otherwise, if active and standby synchronous mark place value is 0, perform step 23;
Step 23: new master reads the configuration data that FLASH preserves, read the configuration data failure of preserving in FLASH, then restarting systems, after system reboot, webmaster produces alarm prompt user and processes present case, if read the configuration data success of preserving in FLASH, then go to step 24;
Step 24: new master performs the configuration data that FLASH preserves, and recovers business accordingly.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the structural change made under enlightenment of the present invention, and every have identical or close technical scheme with the present invention, all falls within protection scope of the present invention.

Claims (2)

1. in communication equipment with defensive main and standby rearranging method, it is characterized in that, comprise the following steps:
Standby dish arranges an active and standby synchronous mark position to represent whether active and standby simultaneous operation completes, receives the value changing active and standby synchronous mark position after synchrodata completes at standby dish;
When master generation exceptional reset, when new master switched into by standby dish, first standby dish reads active and standby synchronous mark position and judges whether active and standby simultaneous operation completes, if completed synchronous, has then read the configuration data in active and standby sync buffering district, and recovers business accordingly; Otherwise, read the configuration data preserved in FLASH, and recover business accordingly; If read the configuration data failure of preserving in FLASH, then restarting systems, after system reboot, webmaster produces alarm prompt user and processes present case;
Timing completes the operation of active and standby configuration synchronization, and each active and standby configuration synchronization has operated rear preservation configuration data to FLASH.
2. main and standby rearranging method as claimed in claim 1, is characterized in that,
To be that 0 expression is active and standby do not complete synchronous for the value of described active and standby synchronous mark position, is that 1 expression carried out active and standby simultaneous operation;
The initial value of described active and standby synchronous mark position is 0, and standby hair updo send active and standby configuration synchronization request to being 0 by this mark position during master, and completing rearmounted in standby dish reception synchrodata is 1.
CN201210362846.0A 2012-09-25 2012-09-25 With defensive main and standby rearranging method in communication equipment Active CN102882718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210362846.0A CN102882718B (en) 2012-09-25 2012-09-25 With defensive main and standby rearranging method in communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210362846.0A CN102882718B (en) 2012-09-25 2012-09-25 With defensive main and standby rearranging method in communication equipment

Publications (2)

Publication Number Publication Date
CN102882718A CN102882718A (en) 2013-01-16
CN102882718B true CN102882718B (en) 2015-07-29

Family

ID=47483872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210362846.0A Active CN102882718B (en) 2012-09-25 2012-09-25 With defensive main and standby rearranging method in communication equipment

Country Status (1)

Country Link
CN (1) CN102882718B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026561B (en) * 2019-10-30 2022-11-08 烽火通信科技股份有限公司 Data communication method and system of cloud platform and computer readable medium

Citations (4)

* 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
CN1756107A (en) * 2004-09-28 2006-04-05 华为技术有限公司 Method for realizing single board switching
CN101155061A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Master/standby control method
EP2093936A1 (en) * 2007-11-09 2009-08-26 Huawei Technologies Co., Ltd. Method and network device for solving address conflict

Patent Citations (4)

* 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
CN1756107A (en) * 2004-09-28 2006-04-05 华为技术有限公司 Method for realizing single board switching
CN101155061A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Master/standby control method
EP2093936A1 (en) * 2007-11-09 2009-08-26 Huawei Technologies Co., Ltd. Method and network device for solving address conflict

Also Published As

Publication number Publication date
CN102882718A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
US9678842B2 (en) PCIE switch-based server system, switching method and device
CN101316184B (en) Disaster tolerance switching method, system and device
CN102752093B (en) Based on the data processing method of distributed file system, equipment and system
CN103580915A (en) Method and device for determining main control node of trunking system
CN100492305C (en) Fast restoration method of computer system and apparatus
CN102257759B (en) Master-standby switching method, system control unit and communication system
CN105471622A (en) High-availability method and system for main/standby control node switching based on Galera
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN103856357A (en) Stack system fault processing method and stack system
WO2016095344A1 (en) Link switching method and device, and line card
CN105426213A (en) Software update method and system
CN103441987A (en) Method and device for managing dual-computer firewall system
CN105068763B (en) A kind of virtual machine tolerant system and method for storage failure
CN102882718B (en) With defensive main and standby rearranging method in communication equipment
CN102316038A (en) Method for determining hot backup main /standby switching time, apparatus and system thereof
CN105159846A (en) Method for supporting dual-control switching of virtualized disk and storage system
CN101145955A (en) Hot backup method, network management and network management system of network management software
CN104320279A (en) Service upgrading method and system
CN108984602A (en) A kind of database control method and Database Systems
CN101567804A (en) Method, equipment and system for realizing protection of system anomaly
CN101655812B (en) Self-adaptive data backup system and method thereof
KR101628219B1 (en) Method and apparatus for operating controller of software defined network
WO2017096621A1 (en) Communication device, communication processing method, communication processing apparatus and communication system
JP2015153128A (en) Call processing control device and software update method of the same, call processing system, and computer program
JP6554801B2 (en) Redundant communication device and control method thereof

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