CN1722627A - A method and device for realizing switching between main and backup units in communication equipment - Google Patents

A method and device for realizing switching between main and backup units in communication equipment Download PDF

Info

Publication number
CN1722627A
CN1722627A CN 200410071741 CN200410071741A CN1722627A CN 1722627 A CN1722627 A CN 1722627A CN 200410071741 CN200410071741 CN 200410071741 CN 200410071741 A CN200410071741 A CN 200410071741A CN 1722627 A CN1722627 A CN 1722627A
Authority
CN
China
Prior art keywords
unit
active
standby
main
switching
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
CN 200410071741
Other languages
Chinese (zh)
Other versions
CN100490343C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100717415A priority Critical patent/CN100490343C/en
Publication of CN1722627A publication Critical patent/CN1722627A/en
Application granted granted Critical
Publication of CN100490343C publication Critical patent/CN100490343C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to a method for switching the master and stand-by units in communication equipment, in addition to a device. The method comprises: a) getting the switching information of each master and stand-by unit; b) making sure which one need being switched; c) switching the units which need to be switched and other corresponding unit. Said method can switch the corresponding units at the same time; besides, it integrates several corresponding units to one physics plate, which saves the hardware resource.

Description

The implementation method of switching between main and backup units and device in a kind of communication apparatus
Technical field
The present invention relates to the network communications technology field, be specifically related to the implementation method and the device of switching between main and backup units in a kind of communication apparatus.
Background technology
Communication network becomes increasingly complex at present, and the high-end network communication apparatus that is arranged in the communication network core then is the communication apparatus of the key of communication network, and these crucial communication apparatus should have very high reliability, to guarantee the normal operation of whole communication system.
Some crucial unit are arranged in these crucial communication apparatus, as main control unit and crosspoint respectively as the control and management center and the exchcange core of communication apparatus, if these crucial unit can not get handling timely when breaking down, will influence the normal operation of whole communication apparatus, cause relative follow-up business on a large scale also will be affected.So for communication apparatus crucial in the communication system, some crucial unit does not allow to occur Single Point of Faliure.So crucial communication apparatus must be supported the switching between main and backup units function, when the master breaks down with the unit, communication apparatus need carry out active and standby usefulness automatically and switch, take over main work by stand-by unit with the unit, strengthen the reliability of communication apparatus, to guarantee the normal operation of whole communication apparatus, communication system.
Each active and standby active and standby usefulness with the unit of communication apparatus is switched schematic diagram as shown in Figure 1 in the prior art.In Fig. 1, each unit have respectively its separately independently switching strategy, independently switch criterion input and state machine independently separately separately.
When certain cell main-slave satisfies with the condition of switching, this element need carry out active and standby usefulness and switch, the criterion of switching of this unit triggers this unit and carries out active and standby usefulness and switch, and active and standbyly use state transition according to what the state machine of this unit was controlled this unit, the active and standby with it unit that is associated with reversed process of the work of the switching decision of finishing according to state machine simultaneously switch mated condition.Such as, the main control unit of communication apparatus automatically resets under certain conditions, it will carry out the active and standby switching action of using, the state of standby main control unit according to state machine by stand-by state move to network communication apparatus in other each associated interface units carry out the state that data consistency detects, the state of switching the main control unit that gets off is then moved to the state of waiting for data sync.Meanwhile, unit that is associated with the main control unit reversed process such as crosspoint, corresponding interface unit etc. need be switched compounding practice accordingly.But the switching strategy of crosspoint and corresponding each interface unit is an independent design, and they only switch criterion input in response to own.Switching that main control unit carries out active and standby usefulness they can not the perception main control unit when switching, so main control unit is carrying out active and standby usefulness when switching, need and corresponding interface unit and crosspoint carry out the data interaction operation, to carry out some necessary compounding practices of switching.Such as carrying out consistency for the data of the main control unit switched up when recovering, need other interface units to finish data and report, remove main control unit still unclosed process such as the far call etc. on other interface units switching; In order to guarantee active and standby correctness with transfer of data in the main control unit reversed process, crosspoint need be finished closing of corresponding data forwarding port and operation such as open.
From top description as can be seen, this to each unit independent design switching strategy, independently switch the criterion input, state machine is set to realize each active and standby method of switching separately with the active and standby usefulness of unit, certainly will to carry out the active and standby usefulness of multiple unit and switch design, increase active and standby usefulness and switched the complexity that software and hardware technology is realized, and some active and standby using between the unit such as main control unit and each interface unit in the communication apparatus, closely related between the crosspoint, this association closely may be embodied in active and standby with interrelated in the reversed process, as carrying out active and standby usefulness when switching when one in the related unit closely, if it is improper that these incidence relations are considered, will cause that serious problem appears in communication system, such as, when active and standby usefulness is switched, if the data interaction information drop-out of the main control unit of switching up and other corresponding interface unit, then can cause the data of the main control unit switched up and each interface unit inconsistent, thereby cause service disconnection and network terminal user to hang the serious problems of waiting indefinitely.If same crosspoint does not in time carry out correct cooperating with the main control unit of switching up, then can influence normal data forwarding process.
Prior art to active and standby also be design respectively separately with the active and standby of unit with competition process.The main and standby competition process occurs in and active and standbyly powers up simultaneously or this unit is in two states that are equipped with the unit.The main and standby competition process is to carry out active and standby usefulness active and standby partition process with the unit role before switching, and is cooperated by soft, hardware and finishes, and all active and standbyly all needs to carry out main and standby competition with the unit.
Be example below with the crosspoint, describe the main and standby competition process.
When crosspoint was network board, the main and standby competition method of network board as shown in Figure 2.
Judge the quantity of current available network board according to the situation on the throne of current network board and running status,, be provided with then that being designated of this network board is main to identify with network board if having only a network board running status good.If two equal running statuses of network board are good, then inquire about the operating state of opposite end network board respectively, if the operating state of an end network board is the master is standby network board with network board, an end, it is main main with the standby network board sign of being designated of network board sign, another piece network board with being designated of network board that operating state then is set.If the operating state of two network boards is standby network board, then decide being designated of any piece network board main with slot number with the network board sign according to predefined master, the standby network board that is designated of which piece network board identifies.The master is generally initial default value with slot number.Having active/standby network board with the network board sign is to have active/standby network board with the network board feature.Active/standby the transmission to corresponding network board with the network board sign according to network board ordered accordingly as the auto switching status command, respectively it is changed to corresponding state, simultaneously the active and standby state of using of record network board on master control borad.Finish the main and standby competition of network board.
In sum, in the prior art this active and standby need be with Switchover mechanism to each active and standby main and standby competition with the unit in the communication apparatus, switch criterion, switching strategy, state machines etc. carry out independent design respectively on software and hardware is realized, and each active and standby unit in reversed process, handle be mutually related active and standby be provided with the unit many, complex disposal process, active and standby usefulness is switched and is realized that difficulty is big, active and standby unit of using of every increase in the communication apparatus, the complexity of its processing procedure can be multiplied, active and standby usefulness is switched and is realized that difficulty also is multiplied, work of maintenance personnel difficulty and workload also are multiplied simultaneously, switch failure and the active and standby probability of switching with mistake thereby increased active and standby usefulness, reduced whole communication apparatus, the stability of communication system.
Summary of the invention
The objective of the invention is to, the implementation method of switching between main and backup units in a kind of communication apparatus is provided, with overcome in the prior art active and standby with reversed process be mutually related active and standby with the unit when realizing that active and standby usefulness is switched the complexity height, realize problems such as difficulty is big.
For achieving the above object, the implementation method of switching between main and backup units in a kind of communication apparatus provided by the invention comprises:
A, obtain in the communication apparatus each active and standby switch messages, and determine that according to this information needs carry out the unit that active and standby usefulness is switched with the unit;
B, unification need be carried out the unit that active and standby usefulness is switched to determining in the communication apparatus, and other unit that are associated with the reversed process of this unit carry out the switching between main and backup units processing.
Each active and standbyly comprises active and standbyly when using crosspoint in the described communication apparatus with the unit, determines among the described step a that crosspoint specifically comprises for carrying out active and standby processing procedure with switch unit:
A1, receive the port status of the corresponding exchange units separately information that each interface unit reports, the described port status of corresponding exchange units separately information is recorded in respectively in the corresponding interface location mode table;
A2, each interface unit is carried out the crosspoint loopback test according to the scheduled time, and receive the crosspoint loopback test result that each interface unit reports;
A3, the crosspoint loopback test result who reports according to described each interface unit state table, described each interface unit determine that needs carry out the unit of switching between main and backup units.
Described step a3 comprises:
If interface unit reports the failure of crosspoint loopback test, and this interface unit corresponding exchange units port status is unusual in this interface unit state table, corresponding crosspoint port is an abnormality in other interface unit state tables simultaneously, determines that then crosspoint is for need carry out the unit that active and standby usefulness is switched.
Described step a3 comprises:
If interface unit reports the failure of crosspoint loopback test, and this interface unit corresponding exchange units port status is normal in this interface unit state table, the corresponding crosspoint port status of record is unusual in this interface unit state table, corresponding crosspoint port status is an abnormality in other interface unit state tables simultaneously, determines that then crosspoint is for need carry out the unit that active and standby usefulness is switched.
With described active and standby be a Physical board with the reversed process unit set that is mutually related;
And described step b comprises:
According to predetermined switching strategy, the needs of determining are carried out active and standby veneer with the switch unit place carry out active and standby usefulness and switch.
Based on above-mentioned various schemes.Described step b comprises:
The time of record switching between main and backup units;
When the active and standby time interval that need carry out time that active and standby usefulness switches and last switching between main and backup units with the unit is not less than predetermined space, unification need be carried out the unit that active and standby usefulness is switched to determining in the communication apparatus, and other unit that are associated with the reversed process of this unit carry out the switching between main and backup units processing.
Also comprise before the described step a:
Determine each active and standby active and standby state of using in the described communication apparatus with the unit;
And describedly determine in the described communication apparatus that each active and standbyly further comprises with state with the active and standby of unit:
Determine to have main unit with the work status flag;
Active and standbyly do not determine to have main unit with state turnover described and use the unit taking place at interval at the fixed time as leading with the work status flag.
When the main control unit of described communication apparatus and crosspoint are integrated into a Physical board, if describedly active and standbyly determined the corresponding active and standby state of using with main control unit, then crosspoint active and standby with state be in the active and standby identical of main control unit on the same veneer with it with state.
The present invention also provides the device of switching between main and backup units in a kind of communication apparatus, comprising:
Determine the active and standby switch unit module of using: obtain each active and standby switch messages in the communication apparatus, and determine that according to this information needs carry out the unit that active and standby usefulness is switched, the needs of determining are carried out the unit notice switching between main and backup units module that active and standby usefulness is switched with the unit;
Switching between main and backup units module: according to described definite active and standby notice unification the needs of determining are carried out the unit that active and standby usefulness is switched, and other unit that are associated with the reversed process of this unit carry out switching between main and backup units with the switch unit module.
Described device also comprises:
Main and standby competition module: determine in the described communication apparatus active and standby with reversed process each active and standby active and standby state of using that is mutually related with the unit.
Pass through technique scheme, can switch processing with the reversed process active and standby active and standby usefulness of unifying with the unit that is mutually related to active and standby in the communication apparatus, when active and standby being mutually related with reversed process active and standbyly active and standbyly need be carried out active and standby usefulness when switching with the unit with one in the unit, being mutually related, other active and standbyly carry out active and standby usefulness together with the unit and switch, the phenomenon of numerous correlation behaviors is reset in other unit that are mutually related with it of having avoided a switching between main and backup units to cause, reduce the complexity of switching between main and backup units and realized difficulty, alleviated communication apparatus work of maintenance personnel amount, reduced its work difficulty; The mistake that has reduced in the switching between main and backup units process is switched probability, has realized that simply, accurately active and standby usefulness switches, and has improved the stability of switching between main and backup units; Because technical scheme provided by the invention, do not need in the communication apparatus each active and standbyly all to go to carry out active and standby with the unit with competition, simplified each active and standby main and standby competition process in the communication apparatus with the unit; By several unit that are mutually related are combined into a physical boards, on hardware, also saved such as hardware resources such as groove position resources; Thereby realized improving the purpose of communication apparatus maintainability, stability.
Description of drawings
Fig. 1 is each switching between main and backup units schematic diagram of communication apparatus of prior art;
Fig. 2 is that the network board of prior art is active and standby with the competition flow chart;
Fig. 3 is active and standby with the reversed process switching between main and backup units schematic diagram that is mutually related in the communication apparatus of the present invention;
Fig. 4 is of the present invention active and standby with the competition flow chart.
Embodiment
Core concept of the present invention is: by active and standby concentrating active and standby usefulness to switch management with the unit to active and standby in the communication apparatus with being mutually related in the reversed process, active and standbyly need carry out active and standby usefulness when switching with one or more active and standby in the unit with the unit being mutually related, being mutually related with this unit with it, other active and standbyly carry out active and standby usefulness with the unit unification and switch processing.
In actual applications, the active and standby usefulness of certain unit of communication apparatus switches that to switch the influence that communication apparatus, communication system are caused simultaneously basic identical with the active and standby usefulness of the plurality of units of communication apparatus.And the active and standby usefulness of certain unit of communication apparatus switch can with its reversed process in be mutually related active and standby with the unit in a series of data exchange process of generation, reset the processing procedure of correlation behavior.Based on the above-mentioned phenomenon in the practical application, the present invention proposes active and standbyly unifying to switch processing with switching of unit active and standby being mutually related in reversed process in the communication apparatus, so promptly can not cause other influences to communication apparatus, communication system, simultaneously active and standbyly carried out the relevant connection setting in advance with the unit owing to be mutually related in the reversed process, so they switch simultaneously, avoided data exchange process, reset the processing procedure of correlation behavior.
The present invention by with active and standby be mutually related in the reversed process active and standby with the unit switch criterion, switching strategy, state machine merge, shared, unified, set up and active and standbyly unify Switchover mechanism, can realize the above-mentioned active and standby active and standby usefulness of unifying with the unit is switched processing according to this mechanism with the unit.
Switch criterion, can be divided into that hardware is switched criterion and software is switched criterion according to the source of switching criterion and purpose.
Some hardware faults such as chip choke, circuit abnormality, device burn or the like, can be used as hardware and switch criterion, can switch active and standby that criterion triggers and be designed to the unified active and standby changeover signal of using with reversed process each active and standby hardware that is mutually related active and standby in the communication apparatus with changeover signal with the unit, by active and standby with reversed process each active and standby units shared of using that is mutually related.
Software is switched the order that criterion then generally derives from software fault and communication device management person, such as the program fleet in the communication apparatus, resource exhaustion such as low memory, task is hung dead or software module operation exception, perhaps switches order as carrying out online edition upgrading or the like in order to satisfy some business demand by what communication device management person carried out.Can switch active and standby that criterion triggers and be designed to the unified active and standby changeover signal of using with reversed process each active and standby software that is mutually related active and standby in the communication apparatus with changeover signal with the unit, by active and standby with reversed process each active and standby units shared of using that is mutually related.
It is numerous that each active and standby software with the unit is switched criterion in the communication apparatus, some also has intersects, must unifiedly consider the unified processing of these situations, must switch criterion to these detects, by abstract and improve testing mechanism, improve software and switch the accuracy and the sensitivity of criterion, reduce mistake simultaneously and switch.
Can be to the detection method of switching criterion accuracy and sensitivity according to concrete active and standbyly design in the concrete communication apparatus with the unit.For example, to crosspoint in the communication apparatus to switch the method that criterion detects as follows:
Because faults such as interface unit itself or backboard can cause the crosspoint loopback test to fail in the communication apparatus, when interface unit itself or backboard etc. break down, should not trigger and active and standbyly switch with crosspoint.In order to improve the accuracy of criterion, can adopt following way:
After a certain interface unit reports the failure of crosspoint loopback test, should check at first whether the corresponding crosspoint port status that writes down is normal in the state table of this interface unit, information in the state table of this interface unit is collected and is preserved by master control borad by this interface unit real-time report.If normal, then expression is the error message first time of corresponding crosspoint port status, does corresponding record in the state table of this interface unit.
Check the crosspoint loopback test result of other interface units then.If other interface units also have the record of crosspoint loopback test failure simultaneously then think that crosspoint breaks down, determine that crosspoint is to carry out the unit that active and standby usefulness is switched.If the crosspoint loopback test result of other interface unit is normal, then do not handle.
When if main control unit is received the crosspoint loopback test failed message of this interface unit, the corresponding exchange unit side mouth state that writes down in the state table of this interface unit has been abnormal state, and then expression is the error message second time of corresponding crosspoint port status.At this moment check the state table of other interface units,, think that then crosspoint breaks down, determine that crosspoint is to carry out the unit that active and standby usefulness is switched if the record of crosspoint loopback test failure is arranged.Otherwise determine that this interface unit breaks down, methods such as this interface board of can taking directly to reset are handled accordingly to this interface unit.
The unified design indicates of switching strategy is the design of shared state machine, as crosspoint and main control unit, though both are two different unit on logic function, but in the masterslave switchover implementation procedure with the two as designing with a part, their shared switch status machines, being provided with to them simultaneously effectively of order line, the state design of state machine should contain both all demands.
Each is active and standby to have many situations to need to consider that state machine design must comprise the description to these situations with the state of unit before and after switch, concrete description as:
1. the generative process state description that data are grown out of nothing on the stand-by unit;
2. data change real-time update follow-up state description with business on the stand-by unit;
3. the main data consistency process state with the unit of switching is up described;
4. whether the master has been ready to state description with the unit;
5. whether stand-by unit has been ready to state description;
6. data sync time interval control guard mode is described;
7. describe at a plurality of switch status of the processing that solves the different faults degree;
8. active and standby regular traffic treatment state with reversed process is described;
9. active and standby with the description of reversed process abnormality;
10. the abnormality of synchronizing process is described; Or the like.
Active and standby must be unconditional closed loop with location mode migration, can not have active and standby with state hang dead, active and standby with before and after the state transition from situation to contradiction.
Active and standbyly in the communication apparatus of the present invention be mutually related the switching between main and backup units schematic diagram as shown in Figure 3 with reversed process.
In Fig. 3, main with unit 1 to the main unit N that uses, stand-by unit 1 is active and standby with the reversed process active and standby unit of using that is mutually related to stand-by unit N, each active and standby with the unified switching strategy of units shared, switch criterion and state machine.
If determine main to break down, need then master is stand-by state with unit 1 to leading all to switch with unit N that it is to lead the state of using that stand-by unit 1 is all switched to stand-by unit N with unit 1 by switching criterion.
Switch together with the reversed process unit that is mutually related active and standby, if each unit is an independent veneer, then need pre-designed each master to use various state settings relevant between the veneer, the various state settings of being correlated with between each standby board, so that be mutually related active and standbyly when switching together with reversed process active and standby, do not need to carry out the various data interactions between the unit with the unit.In Fig. 3, pre-set the main unit 1 of using to relevant various state settings between the main unit N of using, stand-by unit 1 is to various state settings relevant between the stand-by unit N, when the main active and standby usefulness condition of switching with unit 1 satisfies, this master need carry out active and standby usefulness with unit 1 and switch, according to unified switching strategy, unified state machine, active/standbyly carry out the active and standby state transition of using to active/standby with unit N is unified with unit 1.When the master is switched to stand-by unit 1 to stand-by unit N to the master with unit N is unified with unit 1, then do not need to carry out transmitting the operations such as closing and open of port as data.
If be integrated into a Physical board with the reversed process unit that is mutually related with active and standby, this Physical board is carried out active and standby with after the state division, if main need carry out active and standby usefulness when switching, so the Physical board at this place, unit is carried out active and standby usefulness and switch and to realize active and standbyly switching together with the reversed process unit that is mutually related with a unit in the Physical board.Because itself there is natural annexation in each unit on this Physical board, has avoided the process of data interaction between each unit.As main control unit and crosspoint in distributed communication apparatus is respectively the control centre and the switching center of communication apparatus, we are integrated into a physical boards with both from hardware, can not influence both any functions in logic, need carry out active and standby usefulness when switching at main control unit or crosspoint, only the veneer at its place need be carried out active and standby usefulness and switch, in reversed process, saved so many main control units and crosspoint between must process data interaction, set handling process.Simplified the active and standby reversed process of using.
For another example among Fig. 3, will lead with unit 1 and be integrated into a Physical board to main with unit N, stand-by unit 1 is integrated into a Physical board to stand-by unit N.When the main active and standby usefulness condition of switching with unit 1 satisfied, this master need carry out active and standby usefulness with unit 1 and switch, and according to unified switching strategy, unified state machine, active/standby veneer with 1 place, unit need carry out the active and standby state transition of using.When two veneers carry out active and standby usefulness when switching, because the natural annexation in each unit itself on the veneer has been avoided data interaction, set handling processes numerous between unit 1 to the unit N.
In the process that communication apparatus runs well, should avoid each active and standbyly to switch with the frequent active and standby usefulness in unit as far as possible, especially switch still imperfect tense in active and standby usefulness once, be that the active and standby usefulness that should not carry out other unit is again switched.The present invention is for avoiding above-mentioned situation, take following measure: when the once active and standby usefulness of generation is switched, write down the time that active and standby usefulness is switched, carry out active and standby next time usefulness when switching at needs, relatively need to carry out time that active and standby next time usefulness switches and lastly time difference that active and standby usefulness switches takes place whether at interval less than preset time, if less than preset time at interval, then do not carry out the active and standby switching operation of using; If be not less than preset time at interval, then carry out the active and standby switching operation of using.Preset time at interval can be according to concrete communication apparatus, concrete active and standbyly be provided with the unit.
In the technical scheme provided by the invention, if even the business on some important communication apparatus monolithic interface board does not allow to interrupt yet, but carry out redundancy backup for each interface board separately, not only efficient is low, and the utilance of veneer is low, also to take groove position resource valuable in the communication apparatus, we can be by being integrated into a Physical board with a few blocks of plates in the communication apparatus such as master control borad, interface board etc., and this Physical board has the function of master control borad and interface board even can also inherit the function of other types plate.This physical boards is carried out unified switching strategy design, unification switch criterion input design.When the master control borad in the communication apparatus need be switched, it can take over commander's work that master control borad carries out whole system, and when certain interface board broke down, it equally also can be used as common interface board and carries out work.
Active and standby implementation procedure with competition is carried out main and standby competition with main control unit and crosspoint and is specified in the communication apparatus provided by the invention in this embodiment.The main and standby competition process of main control unit as shown in Figure 4.
Among Fig. 4, the active and standby plate of communication apparatus powers up simultaneously or two plates all be in two when being equipped with state, to step 400, the main and standby competition process of beginning main control unit.Here, the veneer with the main control unit place is called master control borad.To step 410, detect the situation on the throne and the running status of current master control borad.To step 420, judge the quantity of current available master control borad, if having only a master control borad running status good, to step 425, what this master control borad then was set is designated the main control board sign.
In step 420, if two equal running statuses of master control borad are good, to step 421, read the operating state of opposite end master control borad respectively, to step 422, judge the operating state of opposite end master control borad, if the operating state of opposite end master control borad is a main control board, to step 424, the master control borad that the local terminal master control borad is set is designated the slave control board sign.
In step 422, if the operating state of opposite end master control borad is a slave control board, to step 423, whether the plate number of judging this master control borad is the main control board plate preset number, if the plate of this master control borad number is the main control board plate preset number, to step 425, the master control borad that the local terminal master control borad is set is designated the main control board sign.
In step 423, if the plate of this master control borad number is not the main control board plate preset number, to step 424, the master control borad that the local terminal master control borad is set is designated the slave control board sign.
Set the active/standby of master control borad by said process with after the master control borad sign, to step 430, whether the sign of judging the local terminal master control borad respectively is the main control board sign, if the sign of this master control borad is the main control board sign, to step 480, the correlation behavior of this master control borad is switched to main control board,, the plate number sign of main control board in the communication apparatus is set to step 490.
In step 430, if the sign of this master control borad is the slave control board sign, to step 440, wait for predetermined space, to step 450, obtain the opposite end master control borad operating state, to step 460, judge whether the opposite end master control borad is the operating state of main control board, if the operating state of opposite end master control borad is the operating state of main control board, to step 490, the plate number sign of main control board in the communication apparatus is set.
In step 460, if the opposite end master control borad is not the operating state of main control board, state turnover has taken place in expression master control board state for a certain reason.To step 470, the master control borad that the local terminal master control borad is set is designated the main control board sign.To step 480, the correlation behavior of this master control borad is switched to main control board, to step 490, the plate number sign of main control board in the communication apparatus is set.
After master control borad is finished main and standby competition according to the method described above, main and standby competition process to crosspoint can be simplified, no longer need to carry out according to the method described above the main and standby competition process of crosspoint, only need to read the active/standby state of using that corresponding registers obtains the main control unit corresponding with it, the active/standby with active/standby the use state of state for the main control unit corresponding with it of crosspoint directly is set by software.If main control unit and crosspoint are integrated into a Physical board, main control unit is active/standby with behind the state by the active and standby veneer of determining its place with competition, and the active and standby of the crosspoint on this veneer is the active and standby state of using of its place veneer with state.
The device of switching between main and backup units provided by the invention comprises: determine active and standby with switch unit module, switching between main and backup units module and main and standby competition module.
Determine active and standby switch messages that is used for obtaining each active and standby usefulness unit of communication apparatus with the switch unit module, and determine that according to this information needs carry out the unit that active and standby usefulness is switched, the needs of determining are carried out the unit notice switching between main and backup units module that active and standby usefulness is switched.
The switching between main and backup units module is used for according to definite active and standby notice unification with the switch unit module needs of determining being carried out the unit that active and standby usefulness is switched, and other unit that are associated with the reversed process of this unit carry out switching between main and backup units.
The main and standby competition module is used for determining each active and standby active and standby state of using with the unit of communication apparatus.
Determine that the active and standby switch unit module of using can realize its function each active and standby active and standby using with the unit that the main and standby competition module is determined on the basis of state.
The main and standby competition module determines that the master of master control borad uses state and the specific implementation process of stand-by state such as the description in the above-mentioned method in the communication apparatus.
When in the communication apparatus each active and standby comprise with the unit active and standby when using crosspoint, determine active and standbyly to determine that with the switch unit module crosspoint is to carry out active and standby processing procedure and the above-mentioned description to the switching between main and backup units method in active and standby processing procedure of switching with the unit unification such as the present embodiment that will be mutually related of switching between main and backup units module with switch unit, no longer describes in detail at this.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wishes that appended claim comprises these distortion and variation.

Claims (10)

1, the implementation method of switching between main and backup units in a kind of communication apparatus is characterized in that comprising:
A, obtain in the communication apparatus each active and standby switch messages, and determine that according to this information needs carry out the unit that active and standby usefulness is switched with the unit;
B, unification need be carried out the unit that active and standby usefulness is switched to determining in the communication apparatus, and other unit that are associated with the reversed process of this unit carry out the switching between main and backup units processing.
2, the implementation method of switching between main and backup units in a kind of communication apparatus as claimed in claim 1 is characterized in that:
Each active and standbyly comprises active and standbyly when using crosspoint in the described communication apparatus with the unit, determines among the described step a that crosspoint specifically comprises for carrying out active and standby processing procedure with switch unit:
A1, receive the port status of the corresponding exchange units separately information that each interface unit reports, the described port status of corresponding exchange units separately information is recorded in respectively in the corresponding interface location mode table;
A2, each interface unit is carried out the crosspoint loopback test according to the scheduled time, and receive the crosspoint loopback test result that each interface unit reports;
A3, the crosspoint loopback test result who reports according to described each interface unit state table, described each interface unit determine that needs carry out the unit of switching between main and backup units.
3, the implementation method of switching between main and backup units in a kind of communication apparatus as claimed in claim 2 is characterized in that described step a3 comprises:
If interface unit reports the failure of crosspoint loopback test, and this interface unit corresponding exchange units port status is unusual in this interface unit state table, corresponding crosspoint port is an abnormality in other interface unit state tables simultaneously, determines that then crosspoint is for need carry out the unit that active and standby usefulness is switched.
4, the implementation method of switching between main and backup units in a kind of communication apparatus as claimed in claim 2 is characterized in that described step a3 comprises:
If interface unit reports the failure of crosspoint loopback test, and this interface unit corresponding exchange units port status is normal in this interface unit state table, the corresponding crosspoint port status of record is unusual in this interface unit state table, corresponding crosspoint port status is an abnormality in other interface unit state tables simultaneously, determines that then crosspoint is for need carry out the unit that active and standby usefulness is switched.
5, the implementation method of switching between main and backup units in a kind of communication apparatus as claimed in claim 1 is characterized in that:
With described active and standby be a Physical board with the reversed process unit set that is mutually related;
And described step b comprises:
According to predetermined switching strategy, the needs of determining are carried out active and standby veneer with the switch unit place carry out active and standby usefulness and switch.
6, as the implementation method of switching between main and backup units in claim 1 or 2 or 3 or the 4 or 5 described a kind of communication apparatus, it is characterized in that described step b comprises:
The time of record switching between main and backup units;
When the active and standby time interval that need carry out time that active and standby usefulness switches and last switching between main and backup units with the unit is not less than predetermined space, unification need be carried out the unit that active and standby usefulness is switched to determining in the communication apparatus, and other unit that are associated with the reversed process of this unit carry out the switching between main and backup units processing.
7, the implementation method of switching between main and backup units in a kind of communication apparatus as claimed in claim 1 is characterized in that also comprising before the described step a:
Determine each active and standby active and standby state of using in the described communication apparatus with the unit;
And describedly determine in the described communication apparatus that each active and standbyly further comprises with state with the active and standby of unit:
Determine to have main unit with the work status flag;
Active and standbyly do not determine to have main unit with state turnover described and use the unit taking place at interval at the fixed time as leading with the work status flag.
8, the implementation method of switching between main and backup units in a kind of communication apparatus as claimed in claim 7, it is characterized in that when the main control unit of described communication apparatus and crosspoint are integrated into a Physical board, if describedly active and standbyly determined the corresponding active and standby state of using with main control unit, then crosspoint active and standby with state be in the active and standby identical of main control unit on the same veneer with it with state.
9, the device of switching between main and backup units in a kind of communication apparatus is characterized in that comprising:
Determine the active and standby switch unit module of using: obtain each active and standby switch messages in the communication apparatus, and determine that according to this information needs carry out the unit that active and standby usefulness is switched, the needs of determining are carried out the unit notice switching between main and backup units module that active and standby usefulness is switched with the unit;
Switching between main and backup units module: according to described definite active and standby notice unification the needs of determining are carried out the unit that active and standby usefulness is switched, and other unit that are associated with the reversed process of this unit carry out switching between main and backup units with the switch unit module.
10, the device of switching between main and backup units in a kind of communication apparatus as claimed in claim 9 is characterized in that described device also comprises:
Main and standby competition module: determine in the described communication apparatus active and standby with reversed process each active and standby active and standby state of using that is mutually related with the unit.
CNB2004100717415A 2004-07-13 2004-07-13 A method and device for realizing switching between main and backup units in communication equipment Expired - Fee Related CN100490343C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100717415A CN100490343C (en) 2004-07-13 2004-07-13 A method and device for realizing switching between main and backup units in communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100717415A CN100490343C (en) 2004-07-13 2004-07-13 A method and device for realizing switching between main and backup units in communication equipment

Publications (2)

Publication Number Publication Date
CN1722627A true CN1722627A (en) 2006-01-18
CN100490343C CN100490343C (en) 2009-05-20

Family

ID=35912626

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100717415A Expired - Fee Related CN100490343C (en) 2004-07-13 2004-07-13 A method and device for realizing switching between main and backup units in communication equipment

Country Status (1)

Country Link
CN (1) CN100490343C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321401B (en) * 2008-07-02 2011-01-19 中兴通讯股份有限公司 Multi-sub frame business control method and system for optical transmission equipment
CN101202666B (en) * 2007-11-27 2011-03-16 中兴通讯股份有限公司 Method for processing actuation information and batch and method for business switching
CN103077091A (en) * 2012-12-28 2013-05-01 瑞斯康达科技发展股份有限公司 Method and system for master and standby interchangeable management
CN104539469A (en) * 2014-11-27 2015-04-22 盛科网络(苏州)有限公司 Method and device of testing master-slave switching time based on test messages
CN114785673A (en) * 2022-04-26 2022-07-22 杭州迪普科技股份有限公司 Method and device for acquiring abnormal information during main/standby switching under multi-master control VSM environment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202666B (en) * 2007-11-27 2011-03-16 中兴通讯股份有限公司 Method for processing actuation information and batch and method for business switching
CN101321401B (en) * 2008-07-02 2011-01-19 中兴通讯股份有限公司 Multi-sub frame business control method and system for optical transmission equipment
CN103077091A (en) * 2012-12-28 2013-05-01 瑞斯康达科技发展股份有限公司 Method and system for master and standby interchangeable management
CN104539469A (en) * 2014-11-27 2015-04-22 盛科网络(苏州)有限公司 Method and device of testing master-slave switching time based on test messages
CN114785673A (en) * 2022-04-26 2022-07-22 杭州迪普科技股份有限公司 Method and device for acquiring abnormal information during main/standby switching under multi-master control VSM environment
CN114785673B (en) * 2022-04-26 2023-08-22 杭州迪普科技股份有限公司 Method and device for acquiring abnormal information during active-standby switching

Also Published As

Publication number Publication date
CN100490343C (en) 2009-05-20

Similar Documents

Publication Publication Date Title
CN1137439C (en) Fault tolerant computer system
US9619311B2 (en) Error identification and handling in storage area networks
CN1129857C (en) Multi-processor converter and main processor converting method
EP1788482B1 (en) Storage control device, and error information management method for storage control device
CN106330523A (en) Cluster server disaster recovery system and method, and server node
CN1892612A (en) Cluster availability management method and system
CN1842020A (en) Method for realizing data service backup
JP2006072591A (en) Virtual computer control method
CN1869932A (en) Computer processing system for implementing data update and data update method
CN1862499A (en) Main-standby protection method for multi-processor device units
CN1198407C (en) Device and method for realizing high availability in communication system
CN101478422A (en) Self negotiation method and system for software version
WO2017220013A1 (en) Service processing method and apparatus, and storage medium
CN102547665A (en) Communication processing method and communication processing device
CN107395444A (en) One kind is based on SDN controller failures recovery system and method
CN1722627A (en) A method and device for realizing switching between main and backup units in communication equipment
CN111273577B (en) Facility monitoring system and communication method for facility monitoring system
CN111262745A (en) Information processing platform redundancy system design
CN1722628A (en) Method and system for equipment switching in communication system
JP2007233918A (en) Log information collection system, information processor, log information collection method and program
CN111654401B (en) Network segment switching method, device, terminal and storage medium of monitoring system
JP2012113391A (en) Plant control system, equalizing data selection device and equalizing data selection method
CN115098324A (en) Hard disk maintenance method, device, equipment and storage medium
CN115408240A (en) Redundant system active/standby method, device, equipment and storage medium
CN101420329B (en) Method for upgrading communication system and communication system therefor

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: 20090520

Termination date: 20170713