CN102035683A - Control method and system for switching of main board and standby board - Google Patents

Control method and system for switching of main board and standby board Download PDF

Info

Publication number
CN102035683A
CN102035683A CN 201010596236 CN201010596236A CN102035683A CN 102035683 A CN102035683 A CN 102035683A CN 201010596236 CN201010596236 CN 201010596236 CN 201010596236 A CN201010596236 A CN 201010596236A CN 102035683 A CN102035683 A CN 102035683A
Authority
CN
China
Prior art keywords
main board
standby plate
state
link
standby
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 201010596236
Other languages
Chinese (zh)
Other versions
CN102035683B (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.)
Beijing Haiyun Technology Co. Ltd.
Original Assignee
New Postcom Equipment 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 New Postcom Equipment Co Ltd filed Critical New Postcom Equipment Co Ltd
Priority to CN 201010596236 priority Critical patent/CN102035683B/en
Publication of CN102035683A publication Critical patent/CN102035683A/en
Application granted granted Critical
Publication of CN102035683B publication Critical patent/CN102035683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention discloses a control method and a control system for switching of a main board and a standby board, relates to the technical field of communication systems, and can avoid the phenomenon that an operation state of a system is worsened after the switching of the main board and the standby board, and guarantee that the system operates on a board card in an optimal current state all the time. The control method for the switching of the main board and the standby board provided by the embodiment of the invention comprises the following steps that: when the main board and the standby board are needed to be switched, the main board acquires state information of the standby board and state information of the main board; the main board calculates a state quality weight value of the standby board according to the state information of the standby board and calculates the state quality weight value of the main board according to the state information of the main board; and the main board determines whether the state of the standby board is prior to that of the main board according to the state quality weight value, and if the state of the standby board is prior to the state of the main board, the main board is switched into the standby board, and if the state of the standby board is not prior to the state of the main board, the main board is not switched into the main board and the standby board.

Description

Control method and system that a kind of active and standby plate is switched
Technical field
The present invention relates to the communication system technical field, particularly relate to control method and system that a kind of active and standby plate is switched.
Background technology
At TD SDMA (Time Division-Synchronous CodeDivision Multiple Access, TD-SCDMA), Wideband Code Division Multiple Access (WCDMA) (WidebandCode Division Multiple Access, WCDMA) and Long Term Evolution (Long TermEvolution, LTE) in the communication system, when the fault of business board or master control borad generation hardware or software, can cause system's operation undesired, thereby can't provide normal business to the user.Reliability service in order to ensure system, to main business board and master control borad, usually adopt the mode of " 1+1 " redundancy backup to realize, the business board and the master control borad that are as main board dispose a standby plate respectively, when main board breaks down, carry out switching of main board and standby plate, replace main board by standby plate, referring to Fig. 1, shown a kind of active and standby plate reverse method schematic diagram that provides in the prior art.When system normally moves, carry out active and standby plate data synchronization, it is with the data on the data sync standby plate on the main board that data synchronization flows to.When main board breaks down, carry out active and standby plate and switch, at this moment, former main board is switched and is that current standby plate, former standby plate are switched and is current main board.
Yet, also there are a lot of weak points in the prior art, for example, processing to the masterslave switchover process at present mainly concentrates on data synchronization backup aspect, switch less research to how realizing active and standby success, and when masterslave switchover was failed, accurate again data sync backup scenario meaning was also little.
And significant disadvantage is that masterslave switchover is all more and adopts the Forced Switch measure in the existing scheme, promptly when as long as main board fault occurred and had standby plate, just initiates compulsory masterslave switchover, replaces main board by standby plate; Yet, under a lot of situations, though fault has appearred in main board, running status is not good enough, and the state of standby plate is also bad, even the state that standby plate can occur is than the worse situation of the state of main board, behind compulsory masterslave switchover, the operation conditions of system does not improve like this, even worsens more, masterslave switchover can not be successfully realized, reliably operation correctly of system can't be guaranteed.
Summary of the invention
Control method and system that the embodiment of the invention provides a kind of active and standby plate to switch can avoid system's operation conditions behind masterslave switchover to worsen more, and the assurance system operates on the integrated circuit board of current state optimum all the time.
For achieving the above object, the technical scheme of the embodiment of the invention is achieved in that
The control method that the embodiment of the invention provides a kind of active and standby plate to switch comprises:
When needs carry out active and standby plate when switching, main board obtains the state information of standby plate and the state information of this main board self;
Main board calculates the state quality weighted value of standby plate according to the state information of described standby plate, and calculates the state quality weighted value of this main board according to the state information of this main board self;
Whether main board is better than the state of main board according to the state of described state quality weighted value ruling standby plate, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
The control system that the embodiment of the invention also provides a kind of active and standby plate to switch, described system comprises main board and standby plate, described main board is provided with the masterslave switchover control unit,
Described masterslave switchover control unit is used for carrying out active and standby plate when switching when needs, obtains the state information of standby plate and the state information of this main board self; Calculate the state quality weighted value of standby plate according to the state information of described standby plate, and calculate the state quality weighted value of this main board according to the state information of this main board self; And, whether be better than the state of main board according to the state of described state quality weighted value ruling standby plate, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
By as seen above-mentioned, the technical scheme that the embodiment of the invention provides, before the active and standby plate of execution is switched, adopted masterslave switchover incident ruling mechanism, calculate the state quality weighted value of active and standby plate respectively according to active and standby plate state information separately, by this state quality weighted value ruling main board and the state of standby plate and switching based on the active and standby plate of this State Control.The technical scheme of the embodiment of the invention has solved in the prior art by the problem that compulsory masterslave switchover brought, and has avoided system's operation conditions behind masterslave switchover to worsen more, and the system that can guarantee operates on the integrated circuit board of current state optimum all the time.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The active and standby plate reverse method schematic diagram of Fig. 1 for providing in the prior art;
Fig. 2 for the scheme of using the embodiment of the invention one after the scene schematic diagram switched of a kind of active and standby plate;
The control method schematic flow sheet that Fig. 3 switches for a kind of active and standby plate that the embodiment of the invention two provides;
The method schematic diagram of a kind of active and standby plate version protection mechanism that Fig. 4 provides for the embodiment of the invention two;
The control system structural representation that Fig. 5 switches for a kind of active and standby plate that the embodiment of the invention three provides.
Embodiment
Below in conjunction with accompanying drawing of the present invention, technical scheme of the present invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The control method that the embodiment of the invention one provides a kind of active and standby plate to switch comprises:
11: when needs carry out active and standby plate when switching, main board obtains the state information of standby plate and the state information of this main board self;
12: main board calculates the state quality weighted value of standby plate according to the state information of described standby plate, and calculates the state quality weighted value of this main board according to the state information of this main board self;
13: whether main board is better than the state of main board according to the state of described state quality weighted value ruling standby plate, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
Realized masterslave switchover incident ruling mechanism by above-mentioned steps 11 to step 13,, shown the scene schematic diagram that a kind of active and standby plate is switched after the scheme of using the embodiment of the invention referring to Fig. 2.When system normally moved, it was synchronous to carry out master/slave data; If system need carry out masterslave switchover, then at first carry out the ruling of masterslave switchover incident, if this switching request of ruling comes into force, be better than the state of main board as the state of standby plate, then carry out masterslave switchover, after the masterslave switchover process, active and standby board status exchanges, former main board becomes current standby plate, and former standby plate becomes current main board, and the master/slave data synchronous flow is to also exchanging; If this switching request of ruling is invalid, be inferior to the state of main board as the state of standby plate, then do not carry out masterslave switchover.
Further, the embodiment of the invention also comprises: when the soft firmware version on the standby plate change or the plug of the integrated circuit board of standby plate after, whether the version of confirming standby plate is old than the version of main board, if, the version updating of standby plate to the version of main board, is carried out the data sync of main board and standby plate again; If not, then when carrying out the data sync of main board and standby plate, standby plate abandons the inconsistent synchrodata of data structure on main board and the standby plate.
It will be appreciated by those skilled in the art that, above-mentioned steps 11 to step 13 is not limited to only can be carried out by main board, for example, also can carry out or carry out by standby plate by the management equipment in the system, at this moment, the needs above-mentioned steps is adjusted accordingly, for example, when above-mentioned steps was carried out by standby plate, step 11 was obtained the state information of main board and the state information of this standby plate self etc. for standby plate.
By as seen above-mentioned, the technical scheme that the embodiment of the invention provides, before the active and standby plate of execution is switched, adopted masterslave switchover incident ruling mechanism, calculate the state quality weighted value of active and standby plate respectively according to active and standby plate state information separately, by this state quality weighted value ruling main board and the state of standby plate and switching based on the active and standby plate of this State Control.The technical scheme of the embodiment of the invention has solved in the prior art by the problem that compulsory masterslave switchover brought, and has avoided system's operation conditions behind masterslave switchover to worsen more, and the system that can guarantee operates on the integrated circuit board of current state optimum all the time.
The active and standby plate that the embodiment of the invention two the is provided control method of switching is specifically described below, comprising:
11: when needs carry out active and standby plate when switching, main board obtains the state information of standby plate and the state information of this main board self, referring to Fig. 3, specifically comprises:
111: confirm to take place active and standby plate and switch demand.
When main board breaks down, the main board running status worsens, and perhaps, need the soft firmware version of main board be upgraded, when situation such as upgrading takes place, confirms to produce the masterslave switchover demand.
Main board has the ability that the state of self is detected and collects oneself state information, the state information of main board includes but not limited to the link information on the main board, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states.
Main board can obtain the state information of standby plate by following step 112 and step 113.
112: when needs carry out active and standby plate when switching, main board sends carrier state information request cell to standby plate, and (Information Element, message IE) is as the state information request message.
Main board sends the request IE that obtains crucial link of standby plate and running status to standby plate, at this, consider that above-mentioned state information mainly comprises crucial link and the relevant information of running status thereof on the integrated circuit board, but be not limited to this, main board also can the acquisition request standby plate on other information relevant with state estimation.
113: standby plate extracts state information on this standby plate according to described state information request IE, and sends response message to main board, as state information response message, carries the state information of standby plate in the described response message.
The link information of the state information of above-mentioned standby plate on the standby plate, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states.
Standby plate extracts the crucial link of this plate and each link running status, with these states by to the response message of above-mentioned state information request message, send main board to, as by in this response message, carrying the state information response IE of chaining key line state and running status, send the state information of standby plate to main board.
12: main board calculates the state quality weighted value of standby plate according to the state information of described standby plate, and calculates the state quality weighted value of this main board according to the state information of this main board self.
A technical conceive of the embodiment of the invention is the running status by system on state quality weighted value reflection main board that calculates or the standby plate, perhaps, the overall status quality of reflection main board integrated circuit board or standby plate integrated circuit board is to the not strict qualification of the concrete grammar of computing mode quality weighted value.For example, the parameter that in above-mentioned state information, comprises not simultaneously, the mode of computing mode quality weighted value is also different.
The mode of a kind of computing mode quality weighted value that the embodiment of the invention provides can be as follows:
Main board calculates the state quality weighted value S of described standby plate by following formula, and perhaps, main board calculates the state quality weighted value S of this main board by following formula:
S = Σ i = 1 n L ( n ) * α ( n ) ; L ( n ) = Σ i = 1 m s ( m ) * Level ( m ) ;
Wherein, S represents the state quality weighted value of main board or standby plate, the state quality weighted value of L (n) expression n link, α (n) is the ratio repeated factor of n link, weight factor under the m operating state of s (m) expression n link, the state quality factor of Level (m) expression n link m operating state, wherein, m, n are sequence number.
Above-mentionedly choose and be provided with the running status that needs to reflect active and standby plate than repeated factor, weight factor and the state quality factor are isoparametric, for example, the ratio repeated factor of above-mentioned link can be distributed to each link according to the importance of link, as be the bigger ratio repeated factor of crucial link assignment, be the less ratio repeated factor of less important link assignment; Above-mentioned weight factor can be distributed according to the importance of operating state, for example, and for main or important operating state is distributed bigger weight factor, for operating state less important or that be of little use is distributed less weight factor.
The mode of a kind of computing mode quality weighted value that the embodiment of the invention provides is described with a concrete example below.
For the ease of the clear technical scheme of describing the embodiment of the invention, in inventive embodiment, adopted printed words such as " first ", " second " that function is distinguished with essentially identical identical entry of effect or similar item, it will be appreciated by those skilled in the art that printed words such as " first ", " second " do not limit quantity and execution order.
Have 2 links on the main board, the first link L1 and the second link L2, L1 is a primary link, and L2 is auxilliary link, and the proportion factor-alpha (1) that is provided with for L1 is 0.6, and the proportion factor-alpha (2) that is provided with for L2 is 0.4.
Each bar link all has 3 kinds of operating states, as operating state s (1), s (2) and s (3).The importance of these three kinds of states is arranged as from high to low: s (2), s (3), s (1), at this, the weight factor s (1) that is provided with for operating state s (1) is 0.6, the weight factor s (2) that is provided with for operating state s (2) is 1.5, and the weight factor s (3) that is provided with for operating state s (3) is 1.0.
" in good condition ", " state is qualified ", " state is relatively poor " and " state extreme difference " four kinds of state qualities are set.The state quality factor Level that is provided with for " in good condition " is 1.0, the state quality factor Leve2 that is provided with for " state is qualified " is 0.6, the state quality factor Leve3 that is provided with for " state is relatively poor " is 0.2, and the state quality factor Leve4 that is provided with for " state extreme difference " is 0.
The state quality of main board uplink L1 under three kinds of operating states is " in good condition " all, and the state quality of whole operating states of main board uplink L2 all is " state is relatively poor ".
By foregoing, at this moment, the current state information of main board is indicated on the main board and is comprised link L1 and L2, and the ratio repeated factor of L1 is α (1)=0.6, and the ratio repeated factor of L2 is α (2)=0.4.
L1 and L2 comprise three kinds of operating state s (1) respectively to s (3), and the last three kinds of pairing weight factors of operating state of link L1 and L2 are s (1)=0.6, s (2)=1.5, s (3)=1.0.Link L1 pairing state quality factor under three kinds of operating states is respectively Level (1)=1.0, Level (2)=1.0, Level (3)=1.0; Link L2 pairing state quality factor under three kinds of operating states is respectively Level (1)=0.2, Level (2)=0.2, Level (3)=0.2.
Obtain the state quality weighted value L (1) of the first link L1 on the main board and the state quality weighted value L (2) of the second link L2 by above-mentioned formula:
L(1)=s(1)*Level(1)+s(2)*Level(2)+s(3)*Level(3)
=0.6*1.0+1.5*1.0+1.0*1.0=3.1
L(2)=s(1)*Level(1)+s(2)*Level(2)+s(3)*Level(3)
=0.6*0.2+1.5*0.2+1.0*0.2=0.62
The state quality weighted value S of main board is:
S=L(1)*α(1)+L(2)*α(2)=3.1*0.6+0.62*0.4=2.108
Obtain the current state quality weighted value of main board by aforementioned calculation, the mode of calculating standby plate state quality weighted value is similar to said method, does not repeat them here.
13: whether main board is better than the state of main board according to the state of described state quality weighted value ruling standby plate, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
The state quality weighted value that deducts main board with the state quality weighted value of standby plate obtains difference DELTA s, according to this difference the state of active and standby plate is arbitrated, and comprises following two kinds of situations:
13a: as the difference DELTA s of the state quality weighted value of the state quality weighted value of standby plate and main board during greater than predetermined threshold (as threshold value c), promptly there is Δ s>c, then ruling result is changed to very, the state of ruling standby plate is better than the state of main board, carry out switching of active and standby plate, and carry out the exchange of active and standby board status, and former main board becomes current standby plate, and former standby plate becomes current main board;
13b: as the difference DELTA s of the state quality weighted value of the state quality weighted value of standby plate and main board during less than predetermined threshold, promptly there is Δ s<c, then ruling result is changed to vacation, the state of ruling standby plate is inferior to the state of main board, do not carry out switching of active and standby plate, the state of active and standby plate also remains unchanged.
Further; under current masterslave switchover technology; even software data structure differs greatly on the active and standby plate; there is the incompatible situation of some data structures as active and standby plate operating software; still carry out the data sync of active and standby plate; after can causing master/slave data synchronously like this, standby plate occurs fatal unusual when adopting these synchrodatas to move processing, and these can cause the standby plate system crash unusually.What is more, standby plate may temporarily not handled these data after synchrodata, when becoming main board behind follow-up masterslave switchover, these data are handled, thereby initiating system is unusual again, causes the whole system collapse.
At above-mentioned defective, the scheme of the embodiment of the invention also provides a kind of version protection mechanism of carrying out the preceding active and standby plate of data sync, comprise: when the soft firmware version on the standby plate change or the plug of the integrated circuit board of standby plate after, whether the version of confirming standby plate is old than the version of main board, if, the version updating of standby plate to the version of main board, is carried out the data sync of main board and standby plate again; If not, then when carrying out the data sync of main board and standby plate, standby plate abandons the inconsistent synchrodata of data structure on main board and the standby plate.
Referring to Fig. 4, shown the method schematic diagram of a kind of active and standby plate version protection mechanism before data sync that the embodiment of the invention two provides, mainly comprise following processing:
1), after the operations such as the soft firmware of standby plate (as integrated circuit board) is through version updating (promptly becoming redaction from legacy version) or version rollback (promptly becoming legacy version from redaction) or integrated circuit board plugs, replacing integrated circuit board, starts operation first in the standby plate side.
2) standby plate obtains this plate release status information.
Standby plate has the ability of knowing self soft firmware version state information.
3) standby plate sends version comparison request to main board, comprises the release status information of standby plate among this request IE.
4) main board extracts this plate release status.
Main board has the ability of extracting and knowing the soft firmware version state information of this plate.
5) main board is carried out the version comparison.
Main board according to know by above-mentioned steps self release status information and the release status information of standby plate, carry out the version comparison.
6) confirm the result that version is compared.
6a) if the standby plate version is older than the version of main board, then put the version comparison result for true;
6b) if the standby plate version is newer than the version of main board, then put the version comparison result for false.
7) main board sends version comparison response message according to the result of described version comparison to standby plate.
8) after the standby plate side is received version comparison response message, this information is resolved, check the version comparison result, when finding that the version comparison result is a fictitious time, execution in step 9a, otherwise execution in step 9b.
9a) standby plate is put overall version comparison result variable for false.
10a) when standby plate is carried out data synchronization processing with main board, the data format of synchrodata is judged the synchrodata identical with data structure on the standby plate, execution in step 12a) to main board.
11a) inconsistent and need carry out data in synchronization to data result on main board and the standby plate, standby plate is abandoned this part data when execution is synchronous, thereby has avoided causing follow-up operational processes to these data the problem of system exception to occur because the data structure of synchrodata is inconsistent.
12a) standby plate is carried out the Synchronous Processing of data.
9b) standby plate is put overall version comparison result variable for true, execution in step 10b).
10b) standby plate sends the synchronous update inquiry information of version to main board, and the version on the standby plate is upgraded in request, so that the version of standby plate and main board is consistent.
11b) main board is handled the synchronous update inquiry information of the version that receives.
12b) main board upgrades response message according to the synchronous update inquiry information of above-mentioned version synchronously to standby plate transmission version, agrees that carrying out version upgrades synchronously.
After 13b) standby plate receives that version upgrades response message synchronously, start the version download thread, download the soft firmware version of current operation on the main board, with the version updating of standby plate version to main board from main board.
14b) standby plate is carried out the version updating reboot operation after the version download is finished.
15b) standby plate is carried out data synchronization processing.
From the above mentioned, renewal, rollback are arranged, or standby plate there is plug, when changing situations such as integrated circuit board and taking place, main standby plate is taked active and standby plate version safeguard measure based on soft firmware version comparison at the standby plate version.If find that the version of standby plate is older than main board, then take the standby plate version to upgrade measure synchronously, standby plate version updating to the version with main board is consistent, thereby can avoid because master/slave data when synchronous, the version of active and standby plate inconsistent (the synchrodata structure that mainly is key is different), cause carrying out when synchrodata is handled the standby plate system crash taking place at standby plate, in addition when active and standby switchings problem such as generation whole system collapse.
The standby plate version than main board version news under, when master/slave data is synchronous, if standby plate finds have data structure inconsistent, then standby plate gives discard processing to the inconsistent that part of synchrodata of data structure, thereby can avoid causing follow-up operational processes to these data the problem of system exception to occur because the data structure of synchrodata is inconsistent.
And, the technical scheme that the embodiment of the invention provides, before the active and standby plate of execution is switched, adopted masterslave switchover incident ruling mechanism, calculate the state quality weighted value of active and standby plate respectively according to active and standby plate state information separately, by this state quality weighted value ruling main board and the state of standby plate and switching based on the active and standby plate of this State Control.The technical scheme of the embodiment of the invention has solved in the prior art by the problem that compulsory masterslave switchover brought, and has avoided system's operation conditions behind masterslave switchover to worsen more, and the system that can guarantee operates on the integrated circuit board of current state optimum all the time.
The control system that the embodiment of the invention three also provides a kind of active and standby plate to switch, referring to Fig. 5, described system comprises main board 51 and standby plate 52, described main board 51 is provided with masterslave switchover control unit 511,
Described masterslave switchover control unit 511 is used for carrying out active and standby plate when switching when needs, obtains the state information of the state information of standby plate 52 and this main board 51 self; Calculate the state quality weighted value of standby plate 52 according to the state information of described standby plate 52, and calculate the state quality weighted value of this main board 51 according to the state information of this main board 51 self; And, whether be better than the state of main board 51 according to the state of described state quality weighted value ruling standby plate 52, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
Further, the state information of described main board comprises the link information on the main board, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states; The state information of described standby plate comprises the link information on the standby plate, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states;
Concrete, described masterslave switchover control unit 511 also is used for calculating the state quality weighted value S of described standby plate or calculating the state quality weighted value S of this main board by following formula:
S = Σ i = 1 n L ( n ) * α ( n ) ; L ( n ) = Σ i = 1 m s ( m ) * Level ( m ) ;
Wherein, S represents the state quality weighted value of main board or standby plate, the state quality weighted value of L (n) expression n link, α (n) is the ratio repeated factor of n link, weight factor under the m operating state of s (m) expression n link, the state quality factor of Level (m) expression n link m operating state, wherein, m, n are sequence number.
Further, described system also comprises data sync control unit 53, be used for when the soft firmware version on the standby plate change or the plug of the integrated circuit board of standby plate after, whether the version of confirming standby plate is old than the version of main board, if, the version updating of standby plate to the version of main board, is carried out the data sync of main board and standby plate again; If not, then when carrying out the data sync of main board and standby plate, the control standby plate abandons the inconsistent synchrodata of data structure on main board and the standby plate.
Above-mentioned data sync control unit 53 is for being arranged on separate equipment outside main board 51 and the standby plate 52 in the example shown in Fig. 5, but is not limited to this, and above-mentioned data sync control unit 53 also can be integrated on main board 51 or the standby plate 52.
The concrete working method of main board, standby plate and data sync control unit can be referring to method embodiment of the present invention in the system embodiment of the present invention.
The technical scheme that the embodiment of the invention provides, before the active and standby plate of execution is switched, adopted masterslave switchover incident ruling mechanism, calculate the state quality weighted value of active and standby plate respectively according to active and standby plate state information separately, by this state quality weighted value ruling main board and the state of standby plate and switching based on the active and standby plate of this State Control.The technical scheme of the embodiment of the invention has solved in the prior art by the problem that compulsory masterslave switchover brought, and has avoided system's operation conditions behind masterslave switchover to worsen more, and the system that can guarantee operates on the integrated circuit board of current state optimum all the time.
And, at the standby plate version renewal, rollback are arranged, or standby plate has plug, when changing situations such as integrated circuit board and taking place, main standby plate is taked active and standby plate version safeguard measure based on soft firmware version comparison.If find that the version of standby plate is older than main board, then take the standby plate version to upgrade measure synchronously, standby plate version updating to the version with main board is consistent, thereby can avoid because master/slave data when synchronous, the version of active and standby plate inconsistent (the synchrodata structure that mainly is key is different), cause carrying out when synchrodata is handled the standby plate system crash taking place at standby plate, in addition when active and standby switchings problem such as generation whole system collapse.
The standby plate version than main board version news under, when master/slave data is synchronous, if standby plate finds have data structure inconsistent, then standby plate gives discard processing to the inconsistent that part of synchrodata of data structure, thereby can avoid causing follow-up operational processes to these data the problem of system exception to occur because the data structure of synchrodata is inconsistent.
Those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can software product form embody, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. the control method that active and standby plate is switched is characterized in that, described method comprises:
When needs carry out active and standby plate when switching, main board obtains the state information of standby plate and the state information of this main board self;
Main board calculates the state quality weighted value of standby plate according to the state information of described standby plate, and calculates the state quality weighted value of this main board according to the state information of this main board self;
Whether main board is better than the state of main board according to the state of described state quality weighted value ruling standby plate, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
2. method according to claim 1 is characterized in that,
The state information of described main board comprises the link information on the main board, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states;
The state information of described standby plate comprises the link information on the standby plate, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states.
3. method according to claim 2 is characterized in that,
Main board calculates the state quality weighted value S of described standby plate by following formula or calculates the state quality weighted value S of this main board:
S = Σ i = 1 n L ( n ) * α ( n ) ; L ( n ) = Σ i = 1 m s ( m ) * Level ( m ) ;
Wherein, S represents the state quality weighted value of main board or standby plate, the state quality weighted value of L (n) expression n link, α (n) is the ratio repeated factor of n link, weight factor under the m operating state of s (m) expression n link, the state quality factor of Level (m) expression n link m operating state, wherein, m, n are sequence number.
4. method according to claim 1 is characterized in that, described main board comprises according to the state whether state of described state quality weighted value ruling standby plate is better than main board:
When the difference of the state quality weighted value of the state quality weighted value of standby plate and main board during greater than predetermined threshold, the state of ruling standby plate is better than the state of main board, otherwise the state of ruling standby plate is inferior to the state of main board.
5. method according to claim 1 is characterized in that, the state information that described main board obtains standby plate comprises:
Main board sends message to standby plate, comprises state information request cell in the described message;
Standby plate extracts state information on this standby plate according to described state information request cell, and sends response message, the state information of carrying standby plate in the described response message to main board.
6. method according to claim 1 is characterized in that, described method also comprises:
When the soft firmware version on the standby plate change or the plug of the integrated circuit board of standby plate after, whether the version of confirming standby plate is old than the version of main board, if the version updating of standby plate to the version of main board, is carried out the data sync of main board and standby plate again; If not, then when carrying out the data sync of main board and standby plate, standby plate abandons the inconsistent synchrodata of data structure on main board and the standby plate.
7. method according to claim 6 is characterized in that, described standby plate comprises version updating to the version of main board of self:
Standby plate sends the synchronous update inquiry information of version to main board;
Main board sends version to standby plate and upgrades response message synchronously according to the synchronous update inquiry information of described version;
Standby plate receives after described version upgrades response message synchronously, downloads the soft firmware version of current operation on the main board from main board, with the version updating of the standby plate version to main board.
8. control system that active and standby plate is switched, described system comprises main board and standby plate, it is characterized in that, described main board is provided with the masterslave switchover control unit,
Described masterslave switchover control unit is used for carrying out active and standby plate when switching when needs, obtains the state information of standby plate and the state information of this main board self; Calculate the state quality weighted value of standby plate according to the state information of described standby plate, and calculate the state quality weighted value of this main board according to the state information of this main board self; And, whether be better than the state of main board according to the state of described state quality weighted value ruling standby plate, if, carry out switching of active and standby plate, if not, do not carry out switching of active and standby plate.
9. system according to claim 8 is characterized in that,
The state information of described main board comprises the link information on the main board, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states;
The state information of described standby plate comprises the link information on the standby plate, the ratio repeated factor of each link, the operating state of each link, each link is pairing weight factor under various operating states, and each link pairing state quality factor under various operating states;
Described masterslave switchover control unit also is used for calculating the state quality weighted value S of described standby plate or the state quality weighted value S of calculating main board by following formula:
S = Σ i = 1 n L ( n ) * α ( n ) ; L ( n ) = Σ i = 1 m s ( m ) * Level ( m ) ;
Wherein, S represents the state quality weighted value of main board or standby plate, the state quality weighted value of L (n) expression n link, α (n) is the ratio repeated factor of n link, weight factor under the m operating state of s (m) expression n link, the state quality factor of Level (m) expression n link m operating state, wherein, m, n are sequence number.
10. system according to claim 8 is characterized in that described system also comprises the data sync control unit,
Described data sync control unit, be used for when the soft firmware version on the standby plate change or the plug of the integrated circuit board of standby plate after, whether the version of confirming standby plate is old than the version of main board, if, the version updating of standby plate to the version of main board, is carried out the data sync of main board and standby plate again; If not, then when carrying out the data sync of main board and standby plate, the control standby plate abandons the inconsistent synchrodata of data structure on main board and the standby plate.
CN 201010596236 2010-12-20 2010-12-20 Control method and system for switching of main board and standby board Active CN102035683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010596236 CN102035683B (en) 2010-12-20 2010-12-20 Control method and system for switching of main board and standby board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010596236 CN102035683B (en) 2010-12-20 2010-12-20 Control method and system for switching of main board and standby board

Publications (2)

Publication Number Publication Date
CN102035683A true CN102035683A (en) 2011-04-27
CN102035683B CN102035683B (en) 2013-05-22

Family

ID=43888050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010596236 Active CN102035683B (en) 2010-12-20 2010-12-20 Control method and system for switching of main board and standby board

Country Status (1)

Country Link
CN (1) CN102035683B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265555A (en) * 2011-05-31 2011-11-30 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN103309317A (en) * 2013-05-31 2013-09-18 上海华力微电子有限公司 Monitoring method and monitoring system for automatic production line main equipment state
CN106888116A (en) * 2016-12-30 2017-06-23 北京同有飞骥科技股份有限公司 A kind of dispatching method of dual controller cluster shared resource
CN106919426A (en) * 2017-03-03 2017-07-04 广东浪潮大数据研究有限公司 A kind of method of multipath server FPGA version synchronizations
CN106933586A (en) * 2017-03-09 2017-07-07 郑州云海信息技术有限公司 A kind of system and method for realizing System Management Controller version synchronization
CN108900544A (en) * 2018-08-13 2018-11-27 武汉思普崚技术有限公司 Active and standby fire wall setting method and device
CN110597672A (en) * 2019-09-18 2019-12-20 恒为科技(上海)股份有限公司 Method and device for main/standby switching of ATCA switching system
CN111585788A (en) * 2020-04-08 2020-08-25 深圳震有科技股份有限公司 Method, system and storage medium for updating operation parameter values of service board card
CN114244735A (en) * 2021-12-09 2022-03-25 南京丰道电力科技有限公司 Main/standby operation switching method and device and storage medium
CN115276922A (en) * 2022-07-15 2022-11-01 卡斯柯信号有限公司 Main/standby state control method suitable for full electronic system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592132A (en) * 2003-09-01 2005-03-09 华为技术有限公司 Master stand-by inkage switching method of cascade one-board
CN101075861A (en) * 2007-06-28 2007-11-21 中兴通讯股份有限公司 Method for realizing main spared board thermal backup and reversing main spared board
CN101635646A (en) * 2009-06-24 2010-01-27 中兴通讯股份有限公司 Method and system for switching main/standby board cards

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592132A (en) * 2003-09-01 2005-03-09 华为技术有限公司 Master stand-by inkage switching method of cascade one-board
CN101075861A (en) * 2007-06-28 2007-11-21 中兴通讯股份有限公司 Method for realizing main spared board thermal backup and reversing main spared board
CN101635646A (en) * 2009-06-24 2010-01-27 中兴通讯股份有限公司 Method and system for switching main/standby board cards

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157145A2 (en) * 2011-05-31 2011-12-22 华为技术有限公司 Main/backup switching method between communication device, communication device, system and service request device
WO2011157145A3 (en) * 2011-05-31 2012-04-19 华为技术有限公司 Main/backup switching method between communicaion device, communication device, system and service request device
CN102265555B (en) * 2011-05-31 2015-04-29 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN102265555A (en) * 2011-05-31 2011-11-30 华为技术有限公司 Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN103309317A (en) * 2013-05-31 2013-09-18 上海华力微电子有限公司 Monitoring method and monitoring system for automatic production line main equipment state
CN103309317B (en) * 2013-05-31 2015-09-09 上海华力微电子有限公司 The method for supervising of automatic production line master status and supervisory system
CN106888116B (en) * 2016-12-30 2020-03-10 北京同有飞骥科技股份有限公司 Scheduling method of double-controller cluster shared resources
CN106888116A (en) * 2016-12-30 2017-06-23 北京同有飞骥科技股份有限公司 A kind of dispatching method of dual controller cluster shared resource
CN106919426A (en) * 2017-03-03 2017-07-04 广东浪潮大数据研究有限公司 A kind of method of multipath server FPGA version synchronizations
CN106933586A (en) * 2017-03-09 2017-07-07 郑州云海信息技术有限公司 A kind of system and method for realizing System Management Controller version synchronization
CN108900544A (en) * 2018-08-13 2018-11-27 武汉思普崚技术有限公司 Active and standby fire wall setting method and device
CN110597672A (en) * 2019-09-18 2019-12-20 恒为科技(上海)股份有限公司 Method and device for main/standby switching of ATCA switching system
CN111585788A (en) * 2020-04-08 2020-08-25 深圳震有科技股份有限公司 Method, system and storage medium for updating operation parameter values of service board card
CN111585788B (en) * 2020-04-08 2022-08-23 深圳震有科技股份有限公司 Method, system and storage medium for updating operation parameter values of service board card
CN114244735A (en) * 2021-12-09 2022-03-25 南京丰道电力科技有限公司 Main/standby operation switching method and device and storage medium
CN114244735B (en) * 2021-12-09 2024-01-16 南京丰道电力科技有限公司 Master and slave operation switching method, device and storage medium
CN115276922A (en) * 2022-07-15 2022-11-01 卡斯柯信号有限公司 Main/standby state control method suitable for full electronic system
CN115276922B (en) * 2022-07-15 2023-10-31 卡斯柯信号有限公司 Main and standby state control method suitable for all-electronic system

Also Published As

Publication number Publication date
CN102035683B (en) 2013-05-22

Similar Documents

Publication Publication Date Title
CN102035683B (en) Control method and system for switching of main board and standby board
CN202798798U (en) High availability system based on cloud computing technology
CN111427728B (en) State management method, main/standby switching method and electronic equipment
CN113051110A (en) Cluster switching method, device and equipment
CN106469069B (en) Version upgrading method and system
CN102388570B (en) Single board running method and system under active-standby mode
CN105446827A (en) Data storage method and device for database at failure
CN110399152A (en) A kind of device systems double copies upgrade method and device
CN101119188B (en) Single board updating method for implementing uninterruptive service
CN111666167A (en) Input event reading processing optimization method, nonvolatile memory and terminal equipment
CN100461646C (en) Method for negat main spare board in communication equipment
CN102571311B (en) Master-slave switching communication system and master-slave switching communication method
CN102710433B (en) A kind of online upgrading processing method, relevant apparatus and system
CN103684720A (en) Selection method and device for master and slave service unit
CN103931139A (en) Method and device for redundancy protection, and device and system
CN102231684A (en) Interface board state detection method, multi-core central processing unit, interface board and router
CN101420329B (en) Method for upgrading communication system and communication system therefor
JP5716460B2 (en) Cluster system and control method thereof
EP3355480B1 (en) Communication device, communication processing method, communication processing apparatus and communication system
CN112269693B (en) Node self-coordination method, device and computer readable storage medium
CN101155061B (en) Master/standby control method
CN102111783A (en) Primary subcommand rollback method and terminal
CN103716186A (en) Artificial telephone traffic system with network fault tolerance capability and method thereof
CN106612519B (en) A kind of single board backup method and device of radio network controller (RNC) equipment
CN106789155A (en) Metadata arbitrating server, control method and communication system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170830

Address after: 100070, No. 188, building 25, No. eighteen, South Fourth Ring Road, Fengtai District, Beijing, 1, 101

Patentee after: Beijing Haiyun Technology Co. Ltd.

Address before: 510663, No. 3, color road, Science City, Guangzhou Development Zone, Guangdong

Patentee before: New Post Communication Equipment Co., Ltd.