CN106936646A - The determination method and device of main control board - Google Patents
The determination method and device of main control board Download PDFInfo
- Publication number
- CN106936646A CN106936646A CN201710272580.3A CN201710272580A CN106936646A CN 106936646 A CN106936646 A CN 106936646A CN 201710272580 A CN201710272580 A CN 201710272580A CN 106936646 A CN106936646 A CN 106936646A
- Authority
- CN
- China
- Prior art keywords
- main control
- control board
- master control
- place
- borad
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/30—Decision processes by autonomous network management units using voting and bidding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
This disclosure relates to the determination method and device of main control board.The method includes:Obtain the duration in place of main control board;Duration in place according to main control board determines the main control board of this master control borad election;The information of the main control board of other master control borads election is received, wherein, other master control borads are the master control borad in addition to this master control borad in group system where this master control borad;The information of the main control board that the main control board elected according to this master control borad and other master control borads are elected, determines that number of votes obtained highest main control board is new main control board.The disclosure can be after group system division be remerged, the quantity of the master control borad that reduction is restarted such that it is able to which maximum probability ground reduces service disconnection, improves the stability of group system.
Description
Technical field
This disclosure relates to communication technical field, more particularly to a kind of main control board determination method and device.
Background technology
In group system, there are primary (Master) master control borad and standby (Standby) master control borad of multiple, wherein,
Main control board is responsible for the overall situation.Each master control borad is communicated by control passage, safeguards the relation between master control borad.Work as control
After passage surprisingly disconnects, group system can split into multiple independent each self-operatings of subsystem, and each subsystem can be selected new
Main control board.When control passage is reconnected, and multiple subsystems are merged into new group system, it is necessary in new cluster system
Unique main control board is selected in system, multiple main control board conflicts are prevented.At present, master control borad is reduced to standby from main control board
Needed to restart frame with master control borad, interrupt this frame business.
After how ensureing cluster division, the reduction service disconnection that the main control board for electing can try one's best small, is urgently
The problem of solution.
The content of the invention
In view of this, the present disclosure proposes a kind of determination method and device of main control board, divide with group system
After remerging, the quantity of the master control borad that reduction is restarted, safeguards system maximizes stable operation, improves the stability of group system.
According to the one side of the disclosure, there is provided a kind of determination method of main control board, including:
Obtain the duration in place of main control board;
Duration in place according to main control board determines the main control board of this master control borad election;
The information of the main control board of other master control borads election is received, wherein, where other master control borads are this master control borad
Master control borad in group system in addition to this master control borad;
The information of the primary master control that the main control board elected according to this master control borad and other master control borads are elected, it is determined that
Poll highest main control board is new main control board.
According to another aspect of the present disclosure, there is provided a kind of determining device of main control board, including:
Acquisition module, the duration in place for obtaining main control board;
First determining module, for determining the primary master control that this master control borad is elected according to the duration in place of main control board
Plate;
Receiver module, the information of the main control board for receiving the election of other master control borads, wherein, other master control borads are this
Master control borad in group system where master control borad in addition to this master control borad;
Second determining module, for the main control board elected according to this master control borad and other master control borads elect it is primary
The information of master control, determines that number of votes obtained highest main control board is new main control board.
The determination method and device of the main control board of each side of the disclosure is by each master control borad according to primary master control
The duration in place of plate determines the main control board of this master control election, and number of votes obtained highest main control board is defined as into new master
With master control borad, thus, it is possible to after group system division is remerged, reduce the quantity of the master control borad restarted such that it is able to most general
Rate ground reduces service disconnection, and safeguards system maximizes stable operation, improves the stability of group system.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the further feature and aspect of the disclosure will become
It is clear.
Brief description of the drawings
Comprising in the description and accompanying drawing and the specification of the part that constitutes specification together illustrates the disclosure
Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 shows the flow chart of the determination method of the main control board according to the embodiment of the disclosure one.
Fig. 2 shows an exemplary flow chart of the determination method of the main control board according to the embodiment of the disclosure one.
Fig. 3 shows an exemplary stream of the determination method and step S23 according to the main control board of the embodiment of the disclosure one
Cheng Tu.
Fig. 4 shows an exemplary stream of the determination method and step S11 according to the main control board of the embodiment of the disclosure one
Cheng Tu.
Fig. 5 a show the schematic diagram of 2+4 group systems.
Fig. 5 b show that 2+4 group systems split into the schematic diagram of 1+1 subsystems and 1+3 subsystems.
Fig. 5 c show that 1+1 subsystems and 1+3 subsystems are merged into the schematic diagram of 2+4 group systems.
Fig. 6 shows the block diagram of the determining device of the main control board according to the embodiment of the disclosure one.
Fig. 7 shows an exemplary block diagram of the determining device of the main control board according to the embodiment of the disclosure one.
Specific embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to accompanying drawing.It is identical in accompanying drawing
Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove
Non-specifically is pointed out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details are given in specific embodiment below.
It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the disclosure.
Embodiment 1
The present embodiment can apply in group system.For example, the group system can include multiple FCC (Fabric
Card Chassis, exchange frame) and multiple LCC (Line Card Chassis, Cluster Line-card Chassis).Wherein, include in FCC and LCC
Master control borad, line card and web plate.Further, the present embodiment can apply to the application scenarios remerged after group system division
In.
Fig. 1 shows the flow chart of the determination method of the main control board according to the embodiment of the disclosure one.The execution of the method
Main body can be any master control borad in above-mentioned group system, in following embodiments, be entered as executive agent using " this master control borad "
Row explanation.As shown in figure 1, the method comprising the steps of S11 to step S14.
In step s 11, the duration in place of main control board is obtained.
Wherein, main control board can be any one the primary main board in the group system where this master control borad.It is main
With the duration in place of master control borad can represent main control board this as the main control board of this master control borad time span.
In step s 12, the duration in place according to main control board determines the main control board of this master control borad election.
Used as an example of the present embodiment, the duration in place according to main control board determines the primary of this master control borad election
Master control borad, can include:It is in the case where a duration in place main control board most long is only existed, duration in place is most long
Main control board is defined as the main control board of this master control borad election.
Used as another example of the present embodiment, the duration in place according to main control board determines the master of this master control borad election
With master control borad, can include:It is in the case where there is multiple durations in place main control board most long, duration in place is most long
Any one main control board in multiple main control board is defined as the main control board of this master control borad election.
In step s 13, the information of the main control board of other master control borads election is received, wherein, other master control borads are this
Master control borad in group system where master control borad in addition to this master control borad.
Used as an example of the present embodiment, this master control borad can receive its that other master control borads send in the way of multicast
The information of the main control board of election.Specifically, the multicast message that other master control borads send can be realized in the following way:Will
Master control borad in group system is added in multicast group, (line card and web plate be not in multicast group), therefore, it is possible to ensure only master control
Plate can receive multicast message, and line card and network interface card can not receive the multicast message, so as to save the load of master control borad.
In other examples, other master control borads can also send its election in the way of unicast or broadcast to this master control borad
Main control board information.Certainly, then line card and web plate can also receive broadcasting packet by the way of broadcasting packet.
Used as an example of the present embodiment, in group system, each master control borad can set timer, it is possible to
First predeterminated frequency sends hello packet to other master control borads, for building the connected relation between master control borad.
In step S14, the primary master control that the main control board elected according to this master control borad and other master control borads are elected
The information of plate, determines that number of votes obtained highest main control board is new main control board.
In the present embodiment, each master control borad elects a main control board respectively, according to the principle that the minority is subordinate to the majority,
Number of votes obtained highest main control board is defined as new main control board.
It is identical with the main control board that this master control borad is elected in new main control board as an example of the present embodiment
In the case of, this master control borad need not restart.Used as an example of the present embodiment, the method can also include:New primary
In the case that master control borad is different from the main control board that this master control borad is elected, this master control borad is restarted.
The present embodiment determines the primary master that this master control is elected by each master control borad according to the duration in place of main control board
Control plate, and number of votes obtained highest main control board is defined as new main control board, thus, it is possible to divide again in group system
After merging, i.e., the control passage in group system is disconnected after reconnecting again, the quantity of the master control borad that reduction is restarted such that it is able to maximum
Probability ground reduces service disconnection, and safeguards system maximizes stable operation, improves the stability of group system.
Fig. 2 shows an exemplary flow chart of the determination method of the main control board according to the embodiment of the disclosure one.Such as
Shown in Fig. 2, the method can include step S21 to step S25.
In the step s 21, the duration in place of main control board is obtained.
Wherein, the description to step S11 is seen above to step S21.
In step S22, in the case where a duration in place main control board most long is only existed, by duration in place most
Main control board long is defined as the main control board of this master control borad election.
Wherein, the description to step S12 is seen above to step S22.
When there is another situation, i.e., in step S23, there is multiple durations in place main control board most long
In the case of, at least one in the box type, master control quantity and frame number according to duration in place each main control board most long, from
The main control board of this master control borad election is determined in duration in place multiple main control board most long.
For example, after this master control borad abnormal restarting, may simultaneously receive the multiple primary master for having occurred and that many main conflicts
The primary notice message that control plate sends, wherein, primary notice message is used to carry activestandby state, the master control number of main control board
One or more in amount, box type and frame information.Specifically, primary notice message can be using between each master control borad
Hello packet carries the above- mentioned information of main control board, for example, can use during with election main control board in the prior art
The message structure of hello packet is identical, will not be repeated here.In this case, there is multiple for this master control borad to exist
Position duration main control board most long.
As an example of the present embodiment, in the case where there is multiple durations in place main control board most long, if
Only one box type of main control board is FCC, other main control board in duration in place multiple main control board most long
Box type be LCC, due in dilatation, compared with LCC, FCC has more stability, therefore can be most long by duration in place
And box type is defined as the main control board of this master control borad election for the main control board of FCC.
As another example of the present embodiment, in the case where there is multiple durations in place main control board most long,
If the only one master control quantity of main control board is two, other primary masters in duration in place multiple main control board most long
The master control quantity for controlling plate is one, then the main control board that master control quantity is two can be defined as into the election of this master control borad
Main control board.I.e., in this example, in the case where there is multiple durations in place main control board most long, if when in place
Only one main control board is dual master control in length multiple main control board most long, and other main control board are single master control,
Then can main control board duration in place is most long and for dual master control be defined as this master control borad election main control board.
As another example of the present embodiment, in the case where there is multiple durations in place main control board most long,
If an only main control board for frame minimum in duration in place multiple main control board most long, can be by duration in place
Most long and frame minimum main control board is defined as the main control board of this master control borad election.
As another example of the present embodiment, in the case where there is multiple durations in place main control board most long,
If an only main control board for frame maximum in duration in place multiple main control board most long, can be by duration in place
Most long and frame maximum main control board is defined as the main control board of this master control borad election.
Frame number is set to identical situation by mistake because user there may be, thus, it is ensured that electing primary according to frame number
During master control borad, the frame number of maximum or minimum is unique.In a kind of optional implementation method, when duration in place is most long and frame number most
Small main control board for it is multiple when, (in general, while that the minimum and maximum frame number of frame number is respectively provided with into wrong situation is general
Rate is relatively low), now determine that duration in place is most long and main control board of frame maximum be the election of this master control borad main control board.
As another example of the present embodiment, in the case where there is multiple durations in place main control board most long, if when in place
Length main control board most long includes local main control board, then can be true by duration in place local main control board most long
It is set to the main control board of this master control borad election.
If main control board is in same frame with this master control borad, the main control board is for this master control borad
Local main control board.This master control borad can determine main control board according to the frame number of the frame number of main control board and this master control borad
With this master control borad whether in same frame.If the frame number of main control board is identical with the frame number of this master control borad, can be true
Determine main control board to be in same frame with this master control borad.
Although it should be noted that in the case where there are multiple in place duration main control board most long, according in place
The box type of duration each main control board most long, master control quantity or frame number describe as an example exist it is multiple in place
The mode of main control board of this master control borad election is determined in the case of duration main control board most long as above, but this area skill
Art personnel are it is understood that the disclosure answers not limited to this.In fact, those skilled in the art can be flexible according to practical application scene
The main control board of this master control borad election is determined in the case of being set in the presence of multiple durations in place main control board most long
Mode.
In step s 24, the information of the main control board of other master control borads election is received, wherein, other master control borads are this
Master control borad in group system where master control borad in addition to this master control borad.
Wherein, the description to step S13 is seen above to step S24.
In step s 25, the primary master control that the main control board elected according to this master control borad and other master control borads are elected
The information of plate, determines that number of votes obtained highest main control board is new main control board.
Wherein, the description to step S14 is seen above to step S25.
Fig. 3 shows an exemplary stream of the determination method and step S23 according to the main control board of the embodiment of the disclosure one
Cheng Tu.As shown in figure 3, step S23 can include step S31 to step S37.
In step S31, in the case where there is multiple durations in place main control board most long, duration in place is judged most
Whether main control board that a box type be FCC is only existed in multiple main control board long, if so, step S32 is then performed,
Otherwise perform step S33.
In step s 32, by duration in place is most long and box type is for the main control board of FCC is defined as the election of this master control borad
Main control board.
In step S33, judge that duration in place is most long and box type for multiple main control board of FCC in whether only exist
One master control quantity is 2 main control board, if so, then performing step S34, otherwise performs step S35.
In step S34, by duration in place is most long, box type is FCC and master control quantity is that 2 main control board is defined as
The main control board of this master control borad election.
In step s 35, judge that duration in place is most long, box type is for multiple main control board that FCC and master control quantity are 2
In whether only exist a main control board for frame minimum, if so, then performing step S36, otherwise perform step S37.
In step S36, by duration in place is most long, box type is FCC and master control quantity be 2 main control board center number
Minimum main control board is defined as the main control board of this master control borad election.
In step S37, duration in place local main control board most long is defined as the primary master of this master control borad election
Control plate.
Although it should be noted that in the case where there is multiple durations in place main control board most long, first to judge
The box type of duration each main control board most long in place, judge again master control quantity, again decision block number, determine whether this again
The order of ground main control board is described in the case where there is multiple durations in place main control board most long really as an example
The mode of main control board of this master control borad election is determined as above, it is understood by one of ordinary skill in the art that the disclosure should be not limited to
This.In fact, those skilled in the art can flexibly be set in the presence of multiple according to practical application scene, and durations are most long in place
The mode of the main control board of this master control borad election is determined in the case of main control board.
Fig. 4 shows an exemplary stream of the determination method and step S11 according to the main control board of the embodiment of the disclosure one
Cheng Tu.As shown in figure 4, step S11 can include step S41 and S42.
In step S41, the primary notice message that main control board sends is received.
Used as an example of the present embodiment, main control board can be sent to each master control borad with the second predeterminated frequency and be led
Use notice message.For example, the second predeterminated frequency can be once per second.
Used as an example of the present embodiment, main control board can be with unicast, multicast or any side in broadcast
Formula sends primary notice message to each master control borad.Preferably, selection multicast mode sends primary notice message to each master control.
In a kind of possible implementation, primary notice message can carry the activestandby state of main control board, master control quantity, frame class
One or more in type and frame number.Wherein, master control quantity may be one or two, i.e. main control board may be single
Master control or dual master control etc..Box type may be FCC or LCC.
Used as an example of the implementation, primary notice message can carry the activestandby state of main control board, master
Control quantity, box type and frame number.This master control borad can be according to the primary notice message for coming from main control board for receiving, record
The activestandby state of main control board, master control quantity, box type and frame number.
In step S42, record comes from the reception time of the first primary notice message of main control board, and will be current
Time difference between the reception time of time and the first primary notice message for coming from the main control board is defined as primary
The duration in place of master control borad.
In the present embodiment, the reception time of first primary notice message of main control board will can be come from as master
With the start time point in place of master control borad, it is possible to by between current time and the start time point in place of main control board when
Between difference be defined as the duration in place of main control board.
During main control board of a certain main control board as this master control borad, the main control board can continue with
Second predeterminated frequency sends primary notice message to this master control borad.Come from the main control board when this master control borad is not received
When the time duration of primary notice message reaches time threshold, that removes this master control borad record comes from the main control board
First primary notice message the reception time.Wherein, if this master control borad is not received comes from the primary of the main control board
The time duration of notice message reaches time threshold, then may indicate that the main control board is not re-used as this master control borad currently
Main control board.
When this master control borad receives the primary notice message for coming from the main control board again, record comes from again
The reception time of the first primary notice message of the main control board, and by the reception of this first primary notice message for recording
Time is updated to the main control board this start time point in place in place, further according to determining in above-described embodiment
The method of position duration redefines the duration in place of the main control board.
In a kind of possible implementation, the method can also include:This master control borad is sent to other master control borads to elect
Main control board election information so that election information and itself election information of other master control borads according to this master control borad
Determine itself whether need to restart.Wherein, the election information of itself refers to the election information of other main control board, rather than
Refer to the election information of this master control borad;The letter of the main control board of this master control borad election is included in the election information of this master control borad
Breath.Other master control borads can equally perform the method provided in above-described embodiment, thus each master control borad in group system
Respective main control board can be elected, when number of votes obtained highest main control board is different from the main control board that itself is selected
When, then restarted.
Used as an example of the implementation, this master control borad can be in any one mode in multicast, broadcast, unicast
The information of the main control board of this master control borad election is sent to other master control borads.
The implementation by sending the election information of this master control borad to other master control borads, can make other master control borads according to
Whether the election information of this master control borad and the election information of itself determine new main control board, so that it is determined that itself needing weight
Open.
Fig. 5 a show the schematic diagram of 2+4 group systems.As shown in Figure 5 a, the 2+4 group systems include FCC1, FCC2,
LCC1, LCC2, LCC3 and LCC4, wherein, FCC1 is main control board.Fig. 5 b show that 2+4 group systems split into 1+1 subsystems
With the schematic diagram of 1+3 subsystems.As shown in Figure 5 b, 1+1 subsystems include FCC1 and LCC1,1+3 subsystem include FCC2,
LCC2, LCC3 and LCC4, wherein, FCC1 is the main control board of 1+1 subsystems, and FCC2 is the main control board of 1+3 subsystems.
Fig. 5 c show that 1+1 subsystems and 1+3 subsystems are merged into the schematic diagram of 2+4 group systems.
In one example, main control board can be determined according to parameters such as frame size, master control quantity and box types.
As illustrated in figs. 5 a-5 c, for example, if FCC1 is dual master control, and frame number is small, box type is FCC types, and FCC2 is single master control,
Under the conditions of other conditions and FCC1 identicals, then FCC1 can be defined as new main control board in the manner described above.However,
In the case where duration in place is not considered, it is clear that, now need to restart the subsystem of FCC2, if being run on LCC1 to LCC4
The equal equivalent of business, then it cannot be guaranteed that the service disconnection of minimum.Accordingly, it is preferred that implementation method, allows for considering
The multiple parameters such as duration, frame size, master control quantity and box type in place determine main control board.
Specifically, as shown in Figure 5 c, for LCC1, the duration in place of FCC1 is most long, therefore, LCC1 determines FCC1
It is the main control board of election;For LCC2, LCC3 and LCC4, the time in place of FCC2 is most long, therefore, LCC2, LCC3
With the main control board that FCC2 is defined as LCC4 election.Due to the number of votes obtained highest of FCC2, therefore, FCC2 is defined as new
Main control board.After FCC2 is defined as into new main control board, FCC1 and LCC1 need to restart, FCC2, LCC2, LCC3 and
LCC4 need not restart.Compared in correlation technique using the less FCC1 of frame number as new main control board scheme, this example
1/3 of scheme in the business restarted only correlation technique, thus, it is possible to reduce traffic lost.
Embodiment 2
Fig. 6 shows the block diagram of the determining device of the main control board according to the embodiment of the disclosure one.As shown in fig. 6, the dress
Put including:Acquisition module 61, the first determining module 62, the determining module 64 of receiver module 63 and second.
Wherein, acquisition module 61, the duration in place for obtaining main control board;First determining module 62, for basis
The duration in place of main control board determines the main control board of this master control borad election;Receiver module 63, for receiving other master controls
The information of the main control board of plate election, wherein, other master control borads are except this master control borad in group system where this master control borad
Master control borad in addition;Second determining module 64, selects for the main control board elected according to this master control borad and other master control borads
The information of the primary master control lifted, determines that number of votes obtained highest main control board is new main control board.
Fig. 7 shows an exemplary block diagram of the determining device of the main control board according to the embodiment of the disclosure one.Such as Fig. 7
It is shown:On the basis of the embodiment shown in Fig. 6, the determining device of the main control board that the present embodiment is provided also includes:The
Three determining modules 65.
In a kind of possible implementation, first determining module 62 is used for:Only existing a duration in place most
In the case of main control board long, duration in place main control board most long is defined as the primary master control of this master control borad election
Plate.
In a kind of possible implementation, described device also includes:3rd determining module 65, for existing in the presence of multiple
In the case of position duration main control board most long, box type, master control according to duration in place each main control board most long
At least one in quantity and frame number, determines the primary of this master control borad election from duration in place multiple main control board most long
Master control borad.
In a kind of possible implementation, the acquisition module 61 includes:Receiving submodule 611, it is primary for receiving
The primary notice message that master control borad sends;Determination sub-module 612, the first primary notice of main control board is come from for recording
The reception time of message, and by the reception time of current time and the first primary notice message for coming from the main control board
Between time difference be defined as the duration in place of main control board.
In a kind of possible implementation, described device also includes:Module 66 is restarted, in the new primary master
In the case that control plate is different from the main control board that this master control borad is elected, this master control borad is restarted.
In a kind of possible implementation, described device also includes:Sending module 67, for being sent to other master control borads
The election information of the main control board of this master control borad election so that other master control borads according to the election information of this master control borad and from
Whether the election information of body determines itself need to restart.
The present embodiment determines the primary master that this master control is elected by each master control borad according to the duration in place of main control board
Control plate, and number of votes obtained highest main control board is defined as new main control board, thus, it is possible to divide again in group system
After merging, the quantity of the master control borad that reduction is restarted such that it is able to which maximum probability ground reduces service disconnection, safeguards system maximizes steady
Fixed operation, improves the stability of group system.
The disclosure can be system, method and/or computer program product.Computer program product can include computer
Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer-readable recording medium can be the tangible of the instruction that holding and storage are used by instruction execution equipment
Equipment.Computer-readable recording medium for example can be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer-readable recording medium
More specifically example (non exhaustive list) includes:Portable computer diskette, hard disk, random access memory (RAM), read-only deposit
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable
Compact disk read-only storage (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
Be stored with instruction punch card or groove internal projection structure and above-mentioned any appropriate combination.Calculating used herein above
Machine readable storage medium storing program for executing is not construed as instantaneous signal in itself, the electromagnetic wave of such as radio wave or other Free propagations, logical
Cross electromagnetic wave (for example, the light pulse for passing through fiber optic cables) that waveguide or other transmission mediums propagate or by wire transfer
Electric signal.
Computer-readable program instructions as described herein can from computer-readable recording medium download to each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, LAN, wide area network and/or wireless network
Portion's storage device.Network can include copper transmission cable, Optical Fiber Transmission, be wirelessly transferred, router, fire wall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for storing the meter in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
For perform the disclosure operation computer program instructions can be assembly instruction, instruction set architecture (ISA) instruction,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming language
Source code or object code that any combination is write, programming language of the programming language including object-oriented-such as
Smalltalk, C++ etc., and routine procedural programming languages-such as " C " language or similar programming language.Computer
Readable program instructions can perform fully on the user computer, partly perform on the user computer, as one solely
Vertical software kit is performed, part performs or completely in remote computer on the remote computer on the user computer for part
Or performed on server.In the situation for being related to remote computer, remote computer can be by the network-bag of any kind
LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer (such as profit
With ISP come by Internet connection).In certain embodiments, by using computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as PLD, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the disclosure
Face.
Referring herein to the method according to the embodiment of the present disclosure, device (system) and computer program product flow chart and/
Or block diagram describes various aspects of the disclosure.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/
Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other programmable datas
The processor of processing unit, so as to produce a kind of machine so that these instructions are by computer or other programmable datas
During the computing device of processing unit, work(specified in one or more square frames realized in flow chart and/or block diagram is generated
The device of energy/action.Can also be the storage of these computer-readable program instructions in a computer-readable storage medium, these refer to
Order causes that computer, programmable data processing unit and/or other equipment work in a specific way, so that, be stored with instruction
Computer-readable medium then includes a manufacture, and it includes realizing in one or more square frames in flow chart and/or block diagram
The instruction of the various aspects of the function/action of regulation.
Can also computer-readable program instructions be loaded into computer, other programmable data processing units or other
In equipment so that perform series of operation steps on computer, other programmable data processing units or miscellaneous equipment, to produce
The computer implemented process of life, so that performed on computer, other programmable data processing units or miscellaneous equipment
Instruct function/action specified in one or more square frames realized in flow chart and/or block diagram.
Flow chart and block diagram in accompanying drawing show system, method and the computer journey of the multiple embodiments according to the disclosure
The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation
One part for module, program segment or instruction of table a, part for the module, program segment or instruction is used comprising one or more
In the executable instruction of the logic function for realizing regulation.In some realizations as replacement, the function of being marked in square frame
Can occur with different from the order marked in accompanying drawing.For example, two continuous square frames can essentially be held substantially in parallel
OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or
The combination of the square frame in each square frame and block diagram and/or flow chart in flow chart, can use the function of performing regulation or dynamic
The special hardware based system made is realized, or can be realized with the combination of computer instruction with specialized hardware.
It is described above the presently disclosed embodiments, described above is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
Best explaining principle, practical application or the technological improvement to the technology in market of each embodiment, or lead this technology
Other those of ordinary skill in domain are understood that each embodiment disclosed herein.
Claims (12)
1. a kind of determination method of main control board, it is characterised in that including:
Obtain the duration in place of main control board;
Duration in place according to main control board determines the main control board of this master control borad election;
The information of the main control board of other master control borads election is received, wherein, other master control borads are the cluster where this master control borad
Master control borad in system in addition to this master control borad;
The information of the main control board that the main control board elected according to this master control borad and other master control borads are elected, it is determined that gained vote
Number highest main control board is new main control board.
2. method according to claim 1, it is characterised in that the duration in place according to main control board determines this master control borad
The main control board of election, including:
It is in the case where a duration in place main control board most long is only existed, duration in place main control board most long is true
It is set to the main control board of this master control borad election.
3. method according to claim 2, it is characterised in that there are multiple durations in place main control board most long
In the case of, also include:
At least one in box type, master control quantity and frame number according to duration in place each main control board most long, from
The main control board of this master control borad election is determined in position duration multiple main control board most long.
4. method according to claim 1, it is characterised in that obtain the duration in place of main control board, including:
Receive the primary notice message that main control board sends;
Record comes from the reception time of the first primary notice message of main control board, and by current time with come from it is described
Time difference between the reception time of the first primary notice message of main control board is defined as the duration in place of main control board.
5. the method according to claim any one of 1-4, it is characterised in that methods described also includes:
In the case where the new main control board is different from the main control board that this master control borad is elected, this master control borad is restarted.
6. the method according to claim any one of 1-4, it is characterised in that methods described also includes:
The election information of the main control board of this master control borad election is sent to other master control borads, so that other master control borads are according to this master
Whether the election information and the election information of itself for controlling plate determine itself need to restart.
7. a kind of determining device of main control board, it is characterised in that including:
Acquisition module, the duration in place for obtaining main control board;
First determining module, for determining the main control board that this master control borad is elected according to the duration in place of main control board;
Receiver module, the information of the main control board for receiving the election of other master control borads, wherein, other master control borads are this master control
Master control borad in group system where plate in addition to this master control borad;
Second determining module, for the primary master control that the main control board elected according to this master control borad and other master control borads are elected
Information, determine that number of votes obtained highest main control board is new main control board.
8. device according to claim 7, it is characterised in that first determining module is used for:
It is in the case where a duration in place main control board most long is only existed, duration in place main control board most long is true
It is set to the main control board of this master control borad election.
9. device according to claim 8, it is characterised in that described device also includes:
3rd determining module, in the case where there is multiple durations in place main control board most long, according to duration in place
At least one in the box type of each main control board most long, master control quantity and frame number, from duration in place multiple most long
The main control board of this master control borad election is determined in main control board.
10. device according to claim 7, it is characterised in that the acquisition module includes:
Receiving submodule, the primary notice message for receiving main control board transmission;
Determination sub-module, the reception time for recording the first primary notice message for coming from main control board, and will be current
Time difference between the reception time of time and the first primary notice message for coming from the main control board is defined as primary
The duration in place of master control borad.
11. device according to any one of claim 7 to 10, it is characterised in that described device also includes:
Restart module, in the case where the new main control board is different from the main control board that this master control borad is elected,
Restart this master control borad.
12. device according to any one of claim 7 to 10, it is characterised in that described device also includes:
Sending module, the election information of the main control board for sending the election of this master control borad to other master control borads, so that other
Whether master control borad determines itself need to restart according to the election information and the election information of itself of this master control borad.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710272580.3A CN106936646B (en) | 2017-04-24 | 2017-04-24 | method and device for determining main master control board |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710272580.3A CN106936646B (en) | 2017-04-24 | 2017-04-24 | method and device for determining main master control board |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106936646A true CN106936646A (en) | 2017-07-07 |
CN106936646B CN106936646B (en) | 2019-12-06 |
Family
ID=59437966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710272580.3A Active CN106936646B (en) | 2017-04-24 | 2017-04-24 | method and device for determining main master control board |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106936646B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104298A (en) * | 2018-07-10 | 2018-12-28 | 新华三技术有限公司 | A kind of Cluster Line-card Chassis selection method and device |
CN109407566A (en) * | 2017-08-16 | 2019-03-01 | 佛山市顺德区美的电热电器制造有限公司 | A kind of control method of cooking apparatus, control system and computer installation |
CN111835534A (en) * | 2019-04-15 | 2020-10-27 | 华为技术有限公司 | Cluster control method and related equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625568A (en) * | 2009-08-14 | 2010-01-13 | 江西联创通信有限公司 | Synchronous data controller based hot standby system of main control unit and method thereof |
CN101882097A (en) * | 2010-06-18 | 2010-11-10 | 福建星网锐捷网络有限公司 | Main control board, embedded system and backup method for embedded system |
CN101968744A (en) * | 2010-11-01 | 2011-02-09 | 杭州华三通信技术有限公司 | Intelligent resilient framework (IRF) system-based method and system for upgrading box type equipment |
CN102594610A (en) * | 2012-03-20 | 2012-07-18 | 福建星网锐捷网络有限公司 | Host election method after topology division as well as device and network equipment |
CN102769522A (en) * | 2012-08-07 | 2012-11-07 | 北京东土科技股份有限公司 | Method and system for main-standby switching of frame device |
CN105656645A (en) * | 2014-11-12 | 2016-06-08 | 杭州华三通信技术有限公司 | Decision making method and device for fault processing of stacking system |
-
2017
- 2017-04-24 CN CN201710272580.3A patent/CN106936646B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625568A (en) * | 2009-08-14 | 2010-01-13 | 江西联创通信有限公司 | Synchronous data controller based hot standby system of main control unit and method thereof |
CN101882097A (en) * | 2010-06-18 | 2010-11-10 | 福建星网锐捷网络有限公司 | Main control board, embedded system and backup method for embedded system |
CN101968744A (en) * | 2010-11-01 | 2011-02-09 | 杭州华三通信技术有限公司 | Intelligent resilient framework (IRF) system-based method and system for upgrading box type equipment |
CN102594610A (en) * | 2012-03-20 | 2012-07-18 | 福建星网锐捷网络有限公司 | Host election method after topology division as well as device and network equipment |
CN102769522A (en) * | 2012-08-07 | 2012-11-07 | 北京东土科技股份有限公司 | Method and system for main-standby switching of frame device |
CN105656645A (en) * | 2014-11-12 | 2016-06-08 | 杭州华三通信技术有限公司 | Decision making method and device for fault processing of stacking system |
Non-Patent Citations (1)
Title |
---|
陈光礼: ""基于堆叠系统业务不中断升级的设计与实现"", 《中国优秀硕士学位论文全文数据库-信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109407566A (en) * | 2017-08-16 | 2019-03-01 | 佛山市顺德区美的电热电器制造有限公司 | A kind of control method of cooking apparatus, control system and computer installation |
CN109104298A (en) * | 2018-07-10 | 2018-12-28 | 新华三技术有限公司 | A kind of Cluster Line-card Chassis selection method and device |
CN109104298B (en) * | 2018-07-10 | 2021-09-21 | 新华三技术有限公司 | Line card frame selection method and device |
CN111835534A (en) * | 2019-04-15 | 2020-10-27 | 华为技术有限公司 | Cluster control method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106936646B (en) | 2019-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103460203B (en) | cluster unique identifier | |
CN109729111A (en) | Method, equipment and computer program product for managing distributing type system | |
CN106936646A (en) | The determination method and device of main control board | |
CN107657522B (en) | A kind of construction site labour and capital management method | |
CN108683528B (en) | Data transmission method, central server, server and data transmission system | |
CN111355600B (en) | Main node determining method and device | |
CN106230622B (en) | Cluster implementation method and device | |
CN109451510A (en) | Wireless self-networking method, air-conditioning system and computer readable storage medium | |
CN102957567B (en) | Server information management method and server managing device | |
CN102612165B (en) | Method and device for releasing resource | |
CN113255953A (en) | RRU undervoltage risk prediction method, device, system, equipment and medium | |
CN111181745B (en) | Centralized unit function entity, base station and network management method | |
US20140059154A1 (en) | Leader Node Appointment | |
CN110855424B (en) | Method and device for synthesizing asymmetric flow xDR in DPI field | |
CN111262720A (en) | Device management server, method, and computer-readable storage medium | |
CN108900603A (en) | A kind of server discovery methods, devices and systems | |
CN105227908B (en) | A kind of In-vehicle networking video directing system and method | |
US10764268B2 (en) | Security controller (SC) restoration method and apparatus | |
CN108399112B (en) | Redundancy method, redundancy management apparatus, server, and computer-readable storage medium | |
CN108196441B (en) | Method for realizing hot standby redundancy for system application | |
CN103686644A (en) | Remote control method and remote control system for terminal switching and server | |
CN112788636B (en) | Method, device and network management system for determining cell state | |
US11106527B2 (en) | Hardware error corrections based on policies | |
CN107634876B (en) | Real-name system gate state monitoring method | |
CN107995641B (en) | Management method, device and the computer readable storage medium of terminal and real-time base station communication failure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |