CN102820973A - Management boards, modularized equipment with double management boards, and electing method of master control board - Google Patents

Management boards, modularized equipment with double management boards, and electing method of master control board Download PDF

Info

Publication number
CN102820973A
CN102820973A CN201210254971XA CN201210254971A CN102820973A CN 102820973 A CN102820973 A CN 102820973A CN 201210254971X A CN201210254971X A CN 201210254971XA CN 201210254971 A CN201210254971 A CN 201210254971A CN 102820973 A CN102820973 A CN 102820973A
Authority
CN
China
Prior art keywords
management board
interface
signal
master control
master
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.)
Pending
Application number
CN201210254971XA
Other languages
Chinese (zh)
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.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201210254971XA priority Critical patent/CN102820973A/en
Publication of CN102820973A publication Critical patent/CN102820973A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

Embodiment of the invention provides management boards, modularized equipment with double management boards, and a method for electing a master control board. The method comprises the following steps: adding an HB-out interface and an HB-in interface on each of the management boards; and indicating the management board to act as the master control board by sending a pulse signal through the HB-out interface of the management board. The two management boards in the modularized equipment can determine the master control board according to situation that whether the self HB-in interfaces receive the pulse signal sent by the HB-out interfaces of the opposite management boards under condition that both Present-in signals from opposite management boards are valid,. Compared with the prior art, initialization of an Serdes channel needs to be executed, and election of the master control board only can be executed by acquiring a configuration value of the opposite management board through the Serdes channel; and with the adoption of the electing method disclosed by the invention, the progress for acquiring configuration is changed to be a progress for detecting the pulse signal, so that time spent on the election procedure of the master control board can be reduced greatly, and startup of the modularized equipment with double management boards can be accelerated.

Description

The modularized equipment of a kind of management board, double-pipe type plate and master control borad electoral machinery
Technical field
The present invention relates to the communications field, relate in particular to the modularized equipment and the master control borad electoral machinery of a kind of management board, double-pipe type plate.
Background technology
In data communication field, the management board of modularized equipment generally need be supported redundancy backup, so general middle and high end modularized equipment uses the design of double-pipe type plate to improve the reliability of equipment.When modularized equipment was worked, the management board that plays absolute leading role can be referred to as master control borad (Master), and another management board that is in Status of Backups can be referred to as subordinate plate (Slave).
The reliability of double-pipe type plate design raising equipment of modularized equipment; But in order to shorten the host-initiated time substantially; New problem has also been introduced in the design of double-pipe type plate: how to carry out principal and subordinate's election (master control borad election) fast; How to confirm fast that promptly which opens management board is Master, which opens management board is Slave.
Usually the principal and subordinate elects needs two complete initialization of management board, comprises that kernel moves fully and peripheral initialization finishes basically, sets up the intercommunication annexation between the stable double-pipe type plate and moves internal communication protocol using.And the process that the double-pipe type board communications conducts an election after setting up also will be confirmed and synchronous configuration each other, could confirm principal and subordinate (Master/Slave) relation then, and by the initialization and the configuration of interface board in the master control board starting modularized equipment, realizes the startup of main frame.
Annexation between the at present popular double-pipe type plate can be as shown in Figure 1.CM1 among Fig. 1, CM2 represent a management board (the slot number sign indicating number of also representing this management board simultaneously) respectively.Each management board comprises that serial is unstringed and receive to send (Serdes-in-out) bidirectional interface, is used to realize the protocol communication between CM1 and the CM2; In-place detection (Present_in) interface (also can be called the Present-cm interface, or abbreviate the Present interface as) if this interface receives effective Present_in signal that the other side's management board sends, is then confirmed the other side's management board existence or on the throne; Confirm reception/transmission (Master-in/out) interface; Wherein the Master-out interface can send and be changed to effective Master-out signal; Indicating this management board is Master; The Master-in interface is used to receive the Master-out signal that the other side's management board sends, and confirms whether the other side's management board is Master; SBR reception/transmission (Ready-in/out) interface; The Ready-out interface can send and be changed to effective Ready-out signal; Indicate this management board to be ready to; The Ready-in interface is used to receive the Ready-out signal that the other side's management board sends, and confirms whether the other side's management board is ready to.
When modularized equipment powers on or reset (startup),, confirm that directly this management board is Master if having only a management board on the throne, then fairly simple.If double-pipe type plate (the present_in signal is effectively) all on the throne then carries out the principal and subordinate when electing, to every management board, its election flow process can be as shown in Figure 2.
At first need obtain the user (is the pre-configured value of user to this modularized equipment network of living in to self pre-configured value; Usually initial start-up is empty configuration); And need initialization Serdes passage (being the Serdes-in-out bi-directional path among Fig. 1), be used to realize that the software communication between the double-pipe type plate is mutual.Obtain the pre-configured value of user afterwards to the other side's management board; If obtain success; Then can decide master control borad (if can't determine according to both sides' configuring condition, then can decide which management board through slot number is master control borad (management board that is inserted in CM1 groove position like acquiescence is a master control borad)) according to both sides' configuring condition, if obtain failure; As surpassing the duration of setting is the pre-configured value of obtaining the other side's management board still, then can confirm certainly as master control borad.
There is following problem at least in existing principal and subordinate's electoral package:
1) way to elect is with the center that is configured to of management board; And the initialization and the initialization Serdes passage of file system must the double-pipe type plate all to have been moved; From the config memory that central processing unit (CPU) is hung down separately, read configuration information then, and carry out the simultaneous operation between the double-pipe type plate through the Serdes passage, simultaneous operation must transmit all separately configuration informations; Dispose many more, then slow more synchronously.As the network foundation communications facility; This has expended valuable start-up time (can cause the interruption of user's suspension or key business); Existing scheme is through after optimizing repeatedly, and under Typical Disposition (non-complex configuration), can only be optimized to more than 30 second start-up time; And under the situation of complex configurations, then need more than 40 second start-up time.
2) because relating to, whole process need carry out protocol communication so that mutual configuration information through the Serdes interface; Must there be the height of CPU to participate in; Increase the complexity of software; Reduced the reliability of principal and subordinate's election simultaneously, possibly be absorbed in because of software deadlock or program exception endless loop (especially at router product, CPU the startup stage utilance usually can be than higher).
3) because election process relates to Serdes operation, therefore very strong to the dependence of Serdes part path, if the Serdes circuit has some problem, then principal and subordinate's election can't be carried out, and the whole modularized equipment machine (down) of will directly delaying can't start.And also have no chance to repair the unusual of Serdes.
Summary of the invention
The embodiment of the invention provides the modularized equipment and the master control borad electoral machinery of a kind of management board, double-pipe type plate, is used to realize the quick election of master control borad, shortens the start-up time of the modularized equipment of double-pipe type plate.
A kind of management board; Be applied to the modularized equipment of double-pipe type plate; Two management boards of this modularized equipment all adopt said management board; Said management board comprises that heartbeat signal sends HB-out interface, heartbeat signal input HB-in interface, in-place detection Present_in interface, confirms to send the Master-out interface and confirm to receive the Master-in interface, wherein:
The HB-out interface is used for sending pulse signal to the HB-in of the other side's management board interface, indicates this management board that heartbeat signal is arranged, and can be used as master control borad;
The HB-in interface is used to receive the pulse signal that the HB-out interface of the other side's management board sends;
The Present_in interface is used for confirming whether the Present_in signal of the other side's management board is effective, when the Present_in signal of confirming the other side's management board is effective Present_in signal, confirms that the other side's management board exists or on the throne;
The Master-out interface is used for sending the Master-out signal to the Master-in of the other side's management board interface;
The Master-in interface is used to receive the Master-out signal that the Master-out interface of the other side's management board sends, and when the Master-out signal that receives is effective Master-out signal, confirms that the other side's management board is a master control borad.
A kind of modularized equipment of double-pipe type plate; First management board and second management board that this modularized equipment comprises all adopt aforesaid management board; And the heartbeat signal of first management board sends the HB-out interface and is connected with the heartbeat signal transmission HB-in interface of second management board, and the HB-out interface of second management board is connected with the HB-in interface of first management board;
The in-place detection Present_in interface of first management board connects second management board, and the Present_in interface of second management board connects first management board;
The affirmation of first management board is sent the Master-out interface and is connected with the affirmation reception Master-in interface of second management board, and the Master-out interface of second management board is connected with the Master-in interface of first management board.
A kind of master control borad electoral machinery is applied to the modularized equipment of aforesaid double-pipe type plate, and said method comprises:
The modularized equipment of double-pipe type plate is when powering on or reset, and the in-place detection Present_in interface of every management board confirms whether the Present_in signal of the other side's management board is effective:
If a management board confirms that the Present_in signal of the other side's management board is invalid, confirm certainly as master control borad;
If every management board confirms that all the Present_in signal of the other side's management board is effective; Confirm then whether the heartbeat signal input HB-in interface of self receives the pulse signal of the heartbeat signal transmission HB-out interface transmission of the other side's management board; Do not receive the pulse signal of the HB-out interface transmission of the other side's management board if confirm the HB-in interface of self, then confirm certainly as master control borad; Otherwise; Receive the pulse signal of the HB-out interface transmission of the other side's management board if confirm the HB-in interface of self, confirm whether the groove position that self belongs to is the master control board slot position of appointment, if confirm that the groove position that self belongs to is the master control board slot position of appointment; Confirm certainly as master control borad; Otherwise, when confirming that the groove position that self belongs to is not the master control board slot position of appointment, confirm certainly as the subordinate plate.
Scheme according to the embodiment of the invention provides can increase HB-out interface and HB-in interface on management board, through sending pulse signal at the HB-out interface, indicate this management board to can be used as master control borad.Two management boards in the modularized equipment of double-pipe type plate can be under the effective situation at the Present_in of the other side's management board signal, whether receive the pulse signal that the HB-out interface of the other side's management board sends according to self HB-in interface and confirm master control borad.With respect to the initialization that needs to carry out the Serdes passage in the prior art; Obtain the Configuration Values of the other side's management board through the Serdes passage and could carry out the scheme that master control borad is elected; Change the process of obtaining configuration into process that pulse signal detects; Can significantly reduce the shared time of master control borad election process, accelerate the startup of the modularized equipment of double-pipe type plate.Simultaneously, the present invention program need not the whole process communication of Serdes interface, and the height that therefore need not CPU is participated in, and can improve the reliability of principal and subordinate's election.And need not to relate to the Serdes operation, reduced dependence Serdes part path.
Description of drawings
Annexation sketch map between the double-pipe type plate that Fig. 1 provides for prior art;
The election schematic flow sheet that Fig. 2 provides for prior art;
The structural representation of the management board that Fig. 3 provides for the embodiment of the invention one;
The connection sketch map of the management board that Fig. 4 provides for the embodiment of the invention two;
The flow chart of steps of the master control electoral machinery that Fig. 5 provides for the embodiment of the invention three;
The stateful switchover process sketch map of the management board that Fig. 6 provides for the embodiment of the invention four.
Embodiment
In prior art; In the master control borad election process of the modularized equipment of double-pipe type plate; Way to elect needs every management board all will move the initialization and the initialization Serdes passage of file system, and utilizes the Serdes passage to carry out the configuration information simultaneous operation between the double-pipe type plate with the core that is configured to of management board; Cause the master control borad election time long; Modularized equipment starts slow problem, and the embodiment of the invention proposes, can control and management plate output pulse signal as heartbeat signal; Whether can output pulse signal represent whether operate as normal (whether can be used as master control borad) of this management board according to management board; Thereby make that whether the double-pipe type plate can be according to receiving pulse signal that the other side's management board the sends master control borad of making a strategic decision, thereby shorten the time that the master control borad election takies greatly, and reduce the time that modularized equipment starts.
The present invention program is described with each embodiment below in conjunction with Figure of description.
Embodiment one,
The embodiment of the invention one provides a kind of management board, and this management board can be applied to the modularized equipment of double-pipe type plate, and is appreciated that two management boards that management board all adopts the embodiment of the invention one to provide for this modularized equipment.The structure of this management board can be as shown in Figure 3; Can comprise that heartbeat signal sends (HB-out) interface 11, heartbeat signal input (HB-in) interface 12, in-place detection (Present_in) interface 13, confirms to send (Master-out) interface 14 and confirms to receive (Master-in) interface 15, wherein:
HB-out interface 11 is used for sending pulse signal to the HB-in of the other side's management board interface, indicates this management board that heartbeat signal is arranged, and can be used as master control borad;
HB-in interface 12 is used to receive the pulse signal that the HB-out interface of the other side's management board sends;
Present_in interface 12 is used for confirming whether the Present_in signal of the other side's management board is effective, when the Present_in signal of confirming the other side's management board is effective Present_in signal, confirms that the other side's management board exists or on the throne.
Master-out interface 14 is used for sending the Master-out signal to the Master-in of the other side's management board interface;
Master-in interface 15 is used to receive the Master-out signal that the Master-out interface of the other side's management board sends, and when the Master-out signal that receives is effective Master-out signal, confirms that the other side's management board is a master control borad.
Concrete; Because CPLD can adopt hardware programming language implementation algorithm flexibly; In the present embodiment; The pulse signal that HB-out interface 11 sends to the HB-in of the other side's management board interface can be by the heartbeat signal register of the CPLD of central processing unit (CPU) on this management board of HB-out interface place management board periodically (as, the cycle can be 200ms) carry out write operation, trigger the pulse signal that CPLD periodically produces.Certainly; Though need utilize CPU periodically to carry out write operation in the present embodiment to the heartbeat signal register of CPLD; But carry out protocol communication so that mutual configuration information with respect to electing whole process to relate at master control borad in the prior art through the Serdes interface; Must have the height of CPU to participate in, the present invention program greatly reduces the requirement of CPU.
In addition, because CPLD can carry out signal judgement fast, the pulse signal that the HB-in interface receives also can send to said CPLD, determines whether to receive the pulse signal that the other side's management board sends by said CPLD.Concrete, when said CPLD can not receive the pulse signal of the other side's management board transmission in specific period (like 300ms), confirm not receive the pulse signal that the other side's management board sends.
Embodiment two,
The embodiment of the invention two provides a kind of modularized equipment of double-pipe type plate; And first management board that this modularized equipment comprises and second management board all adopt the one described management board like embodiment; The annexation of first management board 21 and second management board 22 can be as shown in Figure 4 in the modularized equipment, wherein:
The HB-out interface of first management board is connected with the HB-in interface of second management board, and the HB-out interface of second management board is connected with the HB-in interface of first management board;
The Present_in interface of first management board connects second management board, and the Present_in interface of second management board connects first management board;
The Master-out interface of first management board is connected with the Master-in interface of second management board, and the Master-out interface of second management board is connected with the Master-in interface of first management board.
Certainly, other interfaces that the management board that on every management board, can further include prior art provides comprises unstring like serial and receive to send (Serdes-in-out) bidirectional interface, SBR reception/transmission (Ready-in/out) interface.And the Serdes-in-out bidirectional interface, the connection of Ready-in/out interface between two management boards is identical with prior art.As shown in Figure 4, the SBR of first management board sends (Ready-out) interface and is connected with SBR reception (Ready-in) interface of second management board, and the Ready-out interface of second management board is connected with the Ready-in interface of first management board.The Serdes-in-out bidirectional interface of first management board is connected with the Serdes-in-out bidirectional interface of second management board.
Need to prove that as shown in Figure 4, the connection of each interface is appreciated that to being that the backboard 23 that comprises through modularized equipment is realized between first management board and second management board.
The scheme that present embodiment provides is compared traditional scheme;, hardware increases being connected of HB-in and HB-out interface on connecting; The pulse signal that utilizes hardware (like CPLD) generation is as heartbeat (HB) signal; Can process that obtain configuration in the traditional scheme be changed into the process of heartbeat detection, thereby effectively improve the speed of principal and subordinate's election.
Embodiment three,
The embodiment of the invention three provides a kind of master control borad electoral machinery, is applied to the modularized equipment like embodiment two described double-pipe type plates, and the steps flow chart of this method can be as shown in Figure 5, comprising:
The modularized equipment of step 101, double-pipe type plate powers on or resets.
The modularized equipment of double-pipe type plate powers on or when resetting (startup), triggers the master control borad election process.
Step 102, the in-place detection of carrying out.
In this step; The in-place detection Present_in interface of every management board confirms whether the Present_in signal of the other side's management board is effective; If a management board confirms that the Present_in signal of the other side's management board is invalid, confirm certainly as master control borad, and can process ends.If every management board confirms that all the Present_in signal of the other side's management board is effectively, then can continue execution in step 103.
Certainly; In the present embodiment; Every management board is being confirmed from as master control borad the time; Can the Master-out signal be changed to effectively, and send this Master-out signal to the Master-in of the other side's management board interface, notify the other side's management board from as master control borad through self Master-out interface.
Step 103, determine whether to receive heartbeat signal.
Confirm whether the heartbeat signal input HB-in interface of self receives the pulse signal (heartbeat signal) of the heartbeat signal transmission HB-out interface transmission of the other side's management board; Do not receive the pulse signal of the HB-out interface transmission of the other side's management board if confirm the HB-in interface of self; Can think that then the other side's management board cannot be as master control borad, affirmation is certainly as master control borad, and process ends; Receive the pulse signal of the HB-out interface transmission of the other side's management board if confirm the HB-in interface of self; Think the other side's management board with self all can be used as master control borad, whether self be master control borad, then can continue execution in step 104 if can't make a strategic decision out.
Step 104, confirm self the place the groove position whether be the master control board slot position of appointment.
Whether if a management board receives the heartbeat signal that the other side's management board sends, then can make a strategic decision through preassigned master control board slot position self is master control borad.As, with two management of CM1 and CM2 sign board slot positions, and can to specify CM1 groove position be master control board slot position, promptly can be interpreted as the management board that inserts CM1 groove position as master control borad.In this step, if management board confirms that the groove position that self belongs to is the master control board slot position (like CM1 groove position) of appointment, affirmation is certainly as master control borad, otherwise when not being the master control board slot position of appointment in the groove position at affirmation self place, affirmation is certainly as the subordinate plate.
Master control borad electoral machinery according to step 101 ~ step 104 realization; Utilize heartbeat signal to detect in the master control borad election process and replace the layoutprocedure of obtaining of the prior art; Therefore need not as prior art; Electing whole process to relate to through the Serdes interface at master control borad carries out protocol communication so that mutual configuration information must have the height of CPU to participate in, makes the present invention program greatly reduce the requirement of CPU; Strengthen the reliability of principal and subordinate's election greatly, and can effectively reduce the time that the master control borad election takies.And principal and subordinate's election process that the present invention program provides need not the participation of Serdes interface, and the dependence of Serdes interface is reduced greatly, has further improved the reliability of principal and subordinate's election.
Master control borad election process through above-mentioned steps 101 ~ 104; To every management board; Following situation possibly occur: this management board is confirmed certainly as master control borad; And the Present_in signal of definite the other side's management board is effective (promptly this management board and the other side's management board are all on the throne), and this situation can think that it is master control borad that this management board gets into this management board, double-pipe type plate (Dual Master) on the throne state; Perhaps occur; This management board is confirmed certainly as the subordinate plate; And the Present_in signal of definite the other side's management board is effective (promptly this management board and the other side's management board are all on the throne); This situation can think that it is the subordinate plate that this management board gets into this management board, double-pipe type plate (Dual Slave) on the throne state; Also possibly occur; This management board is confirmed certainly as master control borad; And the Present_in signal of definite the other side's management board is invalid (promptly has only this management board on the throne), and this situation can think that it is master control borad that this management board gets into this management board, single management board (Single Master) on the throne state.Certainly, management board also possibly occur can't output pulse signal problem, get into (Halt) state of hang-up.
Certainly; Management board is when being in Halt, Single Master, Dual Master or Dual Slave state; Be appreciated that for modularized equipment is in a management board be master control borad, a management board is the normal condition of subordinate plate, but also might modularized equipment is not that to be in a management board be master control borad; A management board is the normal condition of subordinate plate, possibly be in two management boards like modularized equipment and be the abnormality that master control borad or two management boards are the subordinate plate.
In order to realize the switching of management board state between Halt, Single Master, Dual Master and Dual Slave; Realize the state-maintenance of management board and make the final normal condition that gets into a master control borad, a subordinate plate of modularized equipment; The embodiment of the invention further provides solution, describes through embodiment four below.
Embodiment four,
The stateful switchover process of management board can be as shown in Figure 6; Except the Halt, Single Master, Dual Master and the Dual Slave state that comprise management board; Can also further the start-up course that powers on or reset of management board be represented with starting state (New Start), the master control borad election process of this management board is represented with negotiation state (Negotiation).The trigger condition of changing between each state is as shown in Figure 6, and the Reference numeral N among Fig. 6 representes occurrence condition N, and N is 1,2 ... 14.
Wherein, condition 1 is appreciated that to management board powers on or the success that resets, triggers this management board and get into negotiation state from starting state.
Management board gets into after the negotiation state, if satisfy condition 2: this management board confirms from as master control borad, and the Present_in signal of definite the other side's management board be effectively, then this management board entering Dual Master state.If satisfy condition 3: this management board confirms from as the subordinate plate, and the Present_in signal of definite the other side's management board be effectively, then this management board entering Dual Slave state.If satisfy condition 4: this management board confirms from as master control borad, and the Present_in signal of definite the other side's management board is invalid, and then this management board gets into Single Slave state.
Management board gets into after the negotiation state, when this management board can't send pulse signal through the HB-out interface of self, can get into suspended state; Therefore; Condition 13 is appreciated that (certainly, in fact condition 13 possibly also possibly be only to be because management board generation local function is unusual because management board can't start and cause into this management board can't send pulse signal through the HB-out interface of self; Take place unusually like interface, can't output pulse signal cause).And management board can stop to feed dog (feeding dog is a kind of periodic action of being carried out by CPU, guarantees a kind of mechanism that CPU can not restarted) after getting into suspended state.And can initiatively reset and restart, get into starting state, perhaps when receiving instruction of restarting, reset and restart, get into starting state, start successfully up to self.Therefore, condition 14 is appreciated that to management board initiatively resets or receives reset instruction and resets.Certainly, more excellent, if when confirming that a management board can't start, master control borad can be exported information, points out this management board to break down, and can't start.
Management board gets into after the Dual Master state; If this management board receives principal and subordinate's switching command; Said principal and subordinate's switching command is used for indication master control borad is switched to the subordinate plate, and the subordinate plate is switched to master control borad, and then this management board is confirmed certainly as the subordinate plate; And think that the other side's management board is on the throne, this management board gets into Dual Slave state.Therefore, condition 5 is appreciated that to this management board and receives principal and subordinate's switching command.This master switching instruction is appreciated that to the user and manually initiates.
Management board gets into after the Dual Master state; If satisfy condition 7: this management board confirms that the Present_in signal of the other side's management board is invalid; Then this management board is confirmed certainly as master control borad, and thinks that the other side's management board is not on the throne, and this management board gets into Single Master state.
Management board gets into after the Dual Slave state, if this management board receives principal and subordinate's switching command, then this management board is all confirmed certainly as master control borad, and thinks that the other side's management board is on the throne, and this management board gets into Dual Master state.Perhaps, if this management board receives the invalid Master-out signal that the other side's management board sends, then this management board is confirmed certainly as master control borad, and thinks that the other side's management board is on the throne, and this management board gets into Dual Master state.Therefore, condition 6 is appreciated that to this management board receives principal and subordinate's switching command and perhaps receives the invalid Master-out signal that the other side's management board sends.
Management board gets into after the Dual Slave state, if satisfy condition in 9 any one, this management board confirms from as master control borad, and thinks that the other side's management board is not on the throne, and this management board gets into Sinlge Master state.
Wherein, condition 9 can comprise: this management board confirms that the Present_in signal of the other side's management board is invalid; Perhaps this management board receives the invalid Master-out signal that the other side's management board sends, and confirms that the heartbeat signal input HB-in interface of self does not receive the pulse signal of the heartbeat signal transmission HB-out interface transmission of the other side's management board.
Further; This management board that comprises in the condition 9 confirms that the Present_in signal of the other side's management board is invalid condition; Can for: this management board confirms that the Present_in signal of the other side's management board is invalid, and the heartbeat signal that the heartbeat signal input HB-in interface of confirming self does not receive the other side's management board sends the pulse signal that the HB-out interface sends.
Management board gets into after the Sinlge Master state; If satisfy condition 8; The Present_in signal of promptly confirming the other side's management board be effectively, and the HB-in interface of this management board receives the pulse signal that the HB-out interface of the other side's management board sends, and then this management board is confirmed certainly as master control borad; And think that the other side's management board is also on the throne, this management board gets into Dual Master state.
Certainly, no matter management board is to be in Single Slave state, Dual Master state or Dual Slave state, this management board all can reset and restart when receive instruction of restarting, gets into starting state.And this management board can be carried out and feed dog, when hello the dog time exceeds the duration of setting, also can reset and restart, and gets into starting state.Therefore, condition 10, condition 11, condition 12 all are appreciated that to occurring feeding dog overtime, perhaps receive reset instruction.
The stateful switchover process of the management board that provides according to present embodiment; Even make that management board is in different state; Also can realize the switching between each state, and can finally make modularized equipment get into the normal condition of a master control borad, a subordinate plate according to the control of each condition; Thereby the ability that the scheme that makes the embodiment of the invention provide has the management board state-maintenance and master control borad election is recovered unusually; Improve the success rate of master control borad election, avoid the uncertainty of election results, guarantee master control borad and subordinate plate role's correctness.
According to the scheme that the embodiment of the invention one ~ embodiment four provides, can effectively improve the speed of principal and subordinate's election, the speed of (switching with the principal and subordinate) that the principal and subordinate is elected rises to a millisecond rank, greatly reduces the election time.Simultaneously, the dependence of CPU is significantly reduced, crucial election aspect is realized by hardware fully; CPU only need be in passive one-way operation state, also need not rely on Serdes interface (the Serdes interface need use an exchange chip to realize usually, and need carry out the software initialization configuration); Greatly improve the success rate of principal and subordinate's election, though the Serdes interface fails, after election finishes; Master control borad still can be implemented certain isolation, reclamation activities to it, has improved the reliability of system.And can have the management board state-maintenance and master control borad is elected the ability of recovering unusually, further improve the success rate of master control borad election, avoid the uncertainty of election results.
It is synchronous that the scheme that the embodiment of the invention provides is not limited to solve the configuration information that utilizes the Serdes interface to carry out between the double-pipe type plate that prior art provides; Thereby realize that in the scheme of master control borad election, master control borad election speed is slow, the lower problem of election reliability; Be applicable to too and solve other communication interfaces of utilizing that prior art provides; Like 100BASE-TX, the configuration information that interfaces such as 100BASE-T carry out between the double-pipe type plate is synchronous, thereby realizes in the scheme of master control borad election; The similar master control borad election speed that exists is slow, the lower problem of election reliability.
In addition, the way to elect of the master control borad of the modularized equipment that embodiment of the invention scheme provides and subordinate plate, (equipment of definition is not limited to modularized equipment here, also can be meant stand-alone device can be applied in 2 even multiple devices through expansion.) between, realize many and pile up when (pile up is to be used as the technology that an equipment comes unified management and use to multiple devices) uses election main frame fast.It is the master control borad election that scheme that the embodiment of the invention provides is not limited to be applied to modularized equipment.
Those skilled in the art should understand that the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the application can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The application is that reference is described according to the flow chart and/or the block diagram of method, equipment (system) and the computer program of the application embodiment.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device; Make on computer or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computer or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Although described the application's preferred embodiment, in a single day those skilled in the art get the basic inventive concept could of cicada, then can make other change and modification to these embodiment.So accompanying claims is intended to be interpreted as all changes and the modification that comprises preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and the scope that do not break away from the application to the application.Like this, belong within the scope of the application's claim and equivalent technologies thereof if these of the application are revised with modification, then the application also is intended to comprise these changes and modification interior.

Claims (14)

1. management board; Be applied to the modularized equipment of double-pipe type plate; Two management boards of this modularized equipment all adopt said management board; It is characterized in that said management board comprises that heartbeat signal sends HB-out interface, heartbeat signal input HB-in interface, in-place detection Present_in interface, confirms to send the Master-out interface and confirm to receive the Master-in interface, wherein:
The HB-out interface is used for sending pulse signal to the HB-in of the other side's management board interface, indicates this management board that heartbeat signal is arranged, and can be used as master control borad;
The HB-in interface is used to receive the pulse signal that the HB-out interface of the other side's management board sends;
The Present_in interface is used for confirming whether the Present_in signal of the other side's management board is effective, when the Present_in signal of confirming the other side's management board is effective Present_in signal, confirms that the other side's management board exists or on the throne;
The Master-out interface is used for sending the Master-out signal to the Master-in of the other side's management board interface;
The Master-in interface is used to receive the Master-out signal that the Master-out interface of the other side's management board sends, and when the Master-out signal that receives is effective Master-out signal, confirms that the other side's management board is a master control borad.
2. management board as claimed in claim 1; It is characterized in that; The pulse signal that the HB-out interface sends to the HB-in of the other side's management board interface is that the heartbeat signal register by the complex programmable logic device (CPLD) of central processor CPU on this management board of HB-out interface place management board periodically carries out write operation, triggers the pulse signal that CPLD periodically produces; The HB-in interface also is used for the pulse signal that receives is sent to said CPLD.
3. the modularized equipment of a double-pipe type plate; It is characterized in that; First management board and second management board that this modularized equipment comprises all adopt management board according to claim 1 or claim 2; And the heartbeat signal of first management board sends the HB-out interface and is connected with the heartbeat signal transmission HB-in interface of second management board, and the HB-out interface of second management board is connected with the HB-in interface of first management board;
The in-place detection Present_in interface of first management board connects second management board, and the Present_in interface of second management board connects first management board;
The affirmation of first management board is sent the Master-out interface and is connected with the affirmation reception Master-in interface of second management board, and the Master-out interface of second management board is connected with the Master-in interface of first management board.
4. master control borad electoral machinery is applied to the modularized equipment of double-pipe type plate as claimed in claim 3, it is characterized in that said method comprises:
The modularized equipment of double-pipe type plate is when powering on or reset, and the in-place detection Present_in interface of every management board confirms whether the Present_in signal of the other side's management board is effective:
If a management board confirms that the Present_in signal of the other side's management board is invalid, confirm certainly as master control borad;
If every management board confirms that all the Present_in signal of the other side's management board is effective; Confirm then whether the heartbeat signal input HB-in interface of self receives the pulse signal of the heartbeat signal transmission HB-out interface transmission of the other side's management board; Do not receive the pulse signal of the HB-out interface transmission of the other side's management board if confirm the HB-in interface of self, then confirm certainly as master control borad; Otherwise; Receive the pulse signal of the HB-out interface transmission of the other side's management board if confirm the HB-in interface of self, confirm whether the groove position that self belongs to is the master control board slot position of appointment, if confirm that the groove position that self belongs to is the master control board slot position of appointment; Confirm certainly as master control borad; Otherwise, when confirming that the groove position that self belongs to is not the master control board slot position of appointment, confirm certainly as the subordinate plate.
5. method as claimed in claim 4 is characterized in that, said method also comprises: when a management board can't send pulse signal through the HB-out interface of self; Then get into the HALT state of hanging up; Stop to feed dog, and initiatively reset and restart, perhaps when receiving instruction of restarting; Reset and restart, start successfully up to self.
6. method as claimed in claim 4; It is characterized in that; Every management board is changed to the Master-out signal effectively from as master control borad the time confirming, and through self Master-out interface to this Master-out signal of the Master-in of the other side's management board interface transmission.
7. like the arbitrary described method of claim 4 ~ 6, it is characterized in that said method also comprises: confirm certainly as master control borad at a management board; And when the Present_in signal of definite the other side's management board is effective; If this management board receives principal and subordinate's switching command, said principal and subordinate's switching command is used for indication master control borad is switched to the subordinate plate, and the subordinate plate is switched to master control borad; Then this management board is confirmed certainly as the subordinate plate, and thinks that the other side's management board is on the throne.
8. like the arbitrary described method of claim 4 ~ 6, it is characterized in that said method also comprises:
Confirm from as master control borad at management board, and the Present_in signal of definite the other side's management board is when being effective that if meet the following conditions, this management board is confirmed from as master control borad, and thought that the other side's management board is not on the throne:
This management board confirms that the Present_in signal of the other side's management board is invalid.
9. like the arbitrary described method of claim 4 ~ 6, it is characterized in that said method also comprises:
Confirm certainly as master control borad at a management board; And when the Present_in signal of definite the other side's management board was effective, this management board resetted and restarts when receiving instruction of restarting; Perhaps this management board resets and restarts when hello the dog time exceeds the duration of setting.
10. like the arbitrary described method of claim 4 ~ 6, it is characterized in that said method also comprises:
Confirm certainly as the subordinate plate at a management board; And when the Present_in signal of definite the other side's management board is effective; If this management board receives principal and subordinate's switching command, said principal and subordinate's switching command is used for indication master control borad is switched to the subordinate plate, and the subordinate plate is switched to master control borad; Then this management board is confirmed certainly as master control borad, and thinks that the other side's management board is on the throne; Perhaps, if this management board receives the invalid Master-out signal that the other side's management board sends, then this management board is confirmed certainly as master control borad, and thinks that the other side's management board is on the throne.
11., it is characterized in that said method also comprises like the arbitrary described method of claim 4 ~ 6:
Confirm from as the subordinate plate at management board, and the Present_in signal of definite the other side's management board is when being effective that if in meeting the following conditions any one, this management board is confirmed from as master control borad, and thought that the other side's management board is not on the throne:
This management board confirms that the Present_in signal of the other side's management board is invalid; Perhaps
Receive the invalid Master-out signal that the other side's management board sends, and confirm that the heartbeat signal input HB-in interface of self does not receive the pulse signal of the heartbeat signal transmission HB-out interface transmission of the other side's management board.
12., it is characterized in that said method also comprises like the arbitrary described method of claim 4 ~ 6:
Confirm certainly as the subordinate plate at a management board; And when the Present_in signal of definite the other side's management board was effective, this management board resetted and restarts when receiving instruction of restarting; Perhaps this management board resets and restarts when hello the dog time exceeds the duration of setting.
13. like the arbitrary described method of claim 4 ~ 6; It is characterized in that said method also comprises: confirm from as master control borad at management board, and the Present_in signal of confirming the other side's management board is when being invalid; If this management board confirms that the Present_in signal of the other side's management board is for effective; And the HB-in interface of this management board receives the pulse signal of the HB-out interface transmission of the other side's management board, and then this management board is confirmed certainly as master control borad, and thinks that the other side's management board is also on the throne.
14., it is characterized in that said method also comprises like the arbitrary described method of claim 4 ~ 6:
Confirm certainly as master control borad at a management board; And when the Present_in signal of confirming the other side's management board was invalid, this management board resetted and restarts when receiving instruction of restarting; Perhaps this management board resets and restarts when hello the dog time exceeds the duration of setting.
CN201210254971XA 2012-07-20 2012-07-20 Management boards, modularized equipment with double management boards, and electing method of master control board Pending CN102820973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210254971XA CN102820973A (en) 2012-07-20 2012-07-20 Management boards, modularized equipment with double management boards, and electing method of master control board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210254971XA CN102820973A (en) 2012-07-20 2012-07-20 Management boards, modularized equipment with double management boards, and electing method of master control board

Publications (1)

Publication Number Publication Date
CN102820973A true CN102820973A (en) 2012-12-12

Family

ID=47304847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210254971XA Pending CN102820973A (en) 2012-07-20 2012-07-20 Management boards, modularized equipment with double management boards, and electing method of master control board

Country Status (1)

Country Link
CN (1) CN102820973A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246634A (en) * 2013-04-26 2013-08-14 华为技术有限公司 Method and device for configuring working modes of multi-processor system
CN103457879A (en) * 2013-08-27 2013-12-18 福建星网锐捷网络有限公司 Method for master-slave election of management module, management module and modularized equipment
CN104038387A (en) * 2014-06-04 2014-09-10 上海斐讯数据通信技术有限公司 Method for service board on-line detection of frame type exchanger
CN107070731A (en) * 2017-06-22 2017-08-18 迈普通信技术股份有限公司 A kind of principal and subordinate's referee method and system
CN107069889A (en) * 2017-05-23 2017-08-18 苏州协鑫集成储能科技有限公司 Control method, energy-storage system and its group-net communication method of energy storage device
CN109101372A (en) * 2018-08-03 2018-12-28 广州广哈通信股份有限公司 Redundancy switching method, storage medium and the Shelf Management Module of Shelf Management Module
CN109508065A (en) * 2018-11-13 2019-03-22 郑州云海信息技术有限公司 A kind of clock signal selection system and server
CN111077764A (en) * 2019-11-26 2020-04-28 山东航天电子技术研究所 Cold and hot standby load cross control method and circuit considering power-on and reset

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1321004A (en) * 2000-04-25 2001-11-07 华为技术有限公司 Method and equipment for swapping active with standby switches
US20030163183A1 (en) * 2002-02-27 2003-08-28 Gary Carson Patient temperature control system
CN1815908A (en) * 2006-03-02 2006-08-09 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof
CN101197651A (en) * 2007-12-19 2008-06-11 华为技术有限公司 Method, equipment, master control board and interface plate of communication between plates
CN101378267A (en) * 2007-08-31 2009-03-04 中兴通讯股份有限公司 Primary and secondary switching device, and switching method using the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1321004A (en) * 2000-04-25 2001-11-07 华为技术有限公司 Method and equipment for swapping active with standby switches
US20030163183A1 (en) * 2002-02-27 2003-08-28 Gary Carson Patient temperature control system
CN1815908A (en) * 2006-03-02 2006-08-09 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof
CN101378267A (en) * 2007-08-31 2009-03-04 中兴通讯股份有限公司 Primary and secondary switching device, and switching method using the same
CN101197651A (en) * 2007-12-19 2008-06-11 华为技术有限公司 Method, equipment, master control board and interface plate of communication between plates

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246634A (en) * 2013-04-26 2013-08-14 华为技术有限公司 Method and device for configuring working modes of multi-processor system
US9424220B2 (en) 2013-04-26 2016-08-23 Huawei Technologies Co., Ltd. Method and apparatus for setting working mode of multi-processor system
CN103457879A (en) * 2013-08-27 2013-12-18 福建星网锐捷网络有限公司 Method for master-slave election of management module, management module and modularized equipment
CN103457879B (en) * 2013-08-27 2016-05-25 福建星网锐捷网络有限公司 Method, administration module and the modularized equipment of administration module principal and subordinate election
CN104038387A (en) * 2014-06-04 2014-09-10 上海斐讯数据通信技术有限公司 Method for service board on-line detection of frame type exchanger
CN104038387B (en) * 2014-06-04 2018-01-16 上海斐讯数据通信技术有限公司 Line detecting method on frame-type switch business board
CN107069889A (en) * 2017-05-23 2017-08-18 苏州协鑫集成储能科技有限公司 Control method, energy-storage system and its group-net communication method of energy storage device
CN107069889B (en) * 2017-05-23 2019-11-15 苏州协鑫集成储能科技有限公司 Control method, energy-storage system and its group-net communication method of energy storage device
CN107070731A (en) * 2017-06-22 2017-08-18 迈普通信技术股份有限公司 A kind of principal and subordinate's referee method and system
CN109101372A (en) * 2018-08-03 2018-12-28 广州广哈通信股份有限公司 Redundancy switching method, storage medium and the Shelf Management Module of Shelf Management Module
CN109508065A (en) * 2018-11-13 2019-03-22 郑州云海信息技术有限公司 A kind of clock signal selection system and server
CN111077764A (en) * 2019-11-26 2020-04-28 山东航天电子技术研究所 Cold and hot standby load cross control method and circuit considering power-on and reset
CN111077764B (en) * 2019-11-26 2023-10-20 山东航天电子技术研究所 Cold and hot standby load cross control method and circuit with power-on and reset

Similar Documents

Publication Publication Date Title
CN102820973A (en) Management boards, modularized equipment with double management boards, and electing method of master control board
EP2691859B1 (en) Fault detection and recovery as a service
CN105657639B (en) Dual-mode equipment and its method realized while communicated
CN100470494C (en) Cluster availability management method and system
CN102724083A (en) Degradable triple-modular redundancy computer system based on software synchronization
CN101582797B (en) Management board and two-unit standby system and method
JP2006072591A (en) Virtual computer control method
CN105915391B (en) The distributed key assignments storage method of self-recovering function is submitted and had based on single phase
CN104079454A (en) Equipment exception detecting method and equipment
CN101594383A (en) A kind of service of double controller storage system and controller state method for supervising
CN112398712B (en) CAN and MLVDS dual-bus-based communication board active/standby control method
CN112887176B (en) Computer interlocking subsystem master-slave switching system based on heartbeat message
CN106230622B (en) Cluster implementation method and device
CN106685688A (en) Cluster computer device synchronous upgrade method
CN101155015A (en) Synchronization method for data and condition between host computer and standby computer
CN102075341A (en) Method and system for main-standby synchronization
CN101291201A (en) Heart beat information transmission system and method
CN101557307B (en) Dispatch automation system application state management method
CN110764829B (en) Multi-path server CPU isolation method and system
CN101556542A (en) Method and equipment for upgrading device in paired redundant structure
CN104052799A (en) Method for achieving high availability storage through resource rings
CN101155061B (en) Master/standby control method
CN107181608A (en) A kind of method and operation management system for recovering service and performance boost
CN102291303A (en) Single board and method for determining primary and standby states for the same
CN114385254A (en) Dual-control master-slave switching implementation method based on VPX architecture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121212