CN102546313B - Multi-activation detection method and multi-activation detection device - Google Patents

Multi-activation detection method and multi-activation detection device Download PDF

Info

Publication number
CN102546313B
CN102546313B CN201210082989.6A CN201210082989A CN102546313B CN 102546313 B CN102546313 B CN 102546313B CN 201210082989 A CN201210082989 A CN 201210082989A CN 102546313 B CN102546313 B CN 102546313B
Authority
CN
China
Prior art keywords
pile system
equipment
self
place
running status
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210082989.6A
Other languages
Chinese (zh)
Other versions
CN102546313A (en
Inventor
蒋茂勇
吴频
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210082989.6A priority Critical patent/CN102546313B/en
Publication of CN102546313A publication Critical patent/CN102546313A/en
Application granted granted Critical
Publication of CN102546313B publication Critical patent/CN102546313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a multi-activation detection method, which includes that all stacked devices update self recorded operation states of stacked systems according to different operation states of the stacked systems the stacked devices located in, conduct different processing according to self recorded operation states of the stacked systems when a main device of a stacked system detects other activated stacked systems through an MAD mechanism, and ensure that the main device of the staked system constantly keeps in the activated state before splitting. Based on the same concept, the invention further provides a multi-activation detection device which can perfect the MAD detection mechanism and improve stability of the network.

Description

A kind of many activating detection methods and equipment
Technical field
The present invention relates to communication technical field, particularly a kind of many activating detection methods and equipment.
Background technology
Pile system (Stacking System) is usually formed by stacking link connection by many identical equipment of configuration, is externally rendered as a virtual relatively large equipment.Participate in stacking multiple devices, wherein an equipment is main (Master) equipment, other equipment are all from (Slave) equipment, wherein, Master equipment, in Active state, serves as manager and effector's role, its configuration take-effective, Slave equipment is in Standby state, and its configuration does not come into force.
Referring to Fig. 1, Fig. 1 is the structural representation of typical pile system 100.In Fig. 1, pile system 100 is made up of two equipment, and two equipment are respectively stack equipment 101, stack equipment 102.Stack equipment 101 is connected with stack equipment 102.Suppose that wherein stack equipment 102 is Master equipment, stack equipment 101 is Slave equipment.
When after the link fracture between stack equipment 101 and stack equipment 102 in pile system 100, to produce pile system division, a new pile system will be formed and between other Slave equipment of disconnecting of Master equipment, and between these Slave equipment, can conduct an election, produce the Master equipment of this new pile system.Referring to Fig. 2, Fig. 2 is link disrupted configuration schematic diagram between stack equipment 101 and stack equipment 102 in pile system 100.In Fig. 2, pile system 100 only includes stack equipment 101, and stack equipment 101 is the Master equipment of pile system 100; And stack equipment 102 forms new pile system 200, and stack equipment 102 is elected as the Master equipment of pile system 200.In network, there are like this two identical pile systems of configuration simultaneously, therefore there is many activation conflict, IP address can occur repeats, the problems such as uplink and downlink traffic forwarding confusion, need to be by certain competition and selection, by the some maintenance active states in pile system 100 or 200 two pile systems of pile system, another one needs to close its all member devices other service ports except reserved port.
Keep under normal circumstances which pile system in the ununified standard of state of activation, the realization of each manufacturer is not identical yet.As, some manufacturers make original pile system enter recovery state, and retaining new pile system is active state; And in addition some manufacturer to number size taking the member of Master equipment be that Master ID is as decision-making foundation, make the larger pile system of numbering of Master equipment enter recovery state, the pile system that retains the Master equipment place that Master ID is less is active state.
Under normal circumstances, pile system originally has moved considerable time, its control plane and datum plane are all restrained, in steady operational status, and the new pile system forming, its control plane has just started, and datum plane need to re-start the processes such as route learning and could restrain, there is a process so new pile system will reach stable state, need to experience a period of time.Therefore, retaining original pile system is active state, and makes the pile system newly splitting off enter recovery state, is so more conducive to network stabilization.And the method for existing realization can cause two layers or the concussion of three layer protocols of network, cause the interruption of network traffics.
Summary of the invention
In view of this, the invention provides a kind of many activating detection methods and equipment, can improve MAD testing mechanism, improve the stability of network.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
A kind of many activating detection methods, be applied in pile system, the arbitrary stack equipment in described pile system, in the time of main equipment as described pile system, the running status that records described pile system is initial condition NOT_SPLIT, and is synchronized to other stack equipments in described pile system, while perceiving described pile system division, the running status of the pile system after the division at self current place is updated to the state SPLIT_PRE_MASTER that comprises the main equipment of described pile system before division, and the running status of current record is synchronized to other stack equipments in self current place pile system, when as described pile system from equipment time, receive running status NOT_SPLIT the record of the synchronous pile system of the main equipment of described pile system, while perceiving described pile system division, determine the main equipment that whether has described pile system before division in the pile system after the division at self current place, if, the running status of self current place pile system is updated to SPLIT_PRE_MASTER, otherwise, the running status of self current place pile system is updated to the state SPLIT_PRE_SLAVE that does not comprise the main equipment of pile system before division, and the running status of self current record is synchronized to other stack equipments in self current place pile system, described method comprises:
Described arbitrary stack equipment, as the main equipment of self current place pile system, while the pile system of other activation being detected, if the running status of the current place of self record pile system is NOT_SPLIT, is carried out normal MAD flow process by MAD mechanism; If the running status of the current place of self record pile system is SPLIT_PRE_MASTER, maintain the normal work of self current place pile system; If the running status of the current place of self record pile system is SPLIT_PRE_SLAVE, make self current place pile system enter recovery state.
A kind of equipment, is applied in pile system, and described equipment comprises: record cell, perception unit, detecting unit and processing unit;
Described record cell, for when self place equipment is during as the main equipment of described pile system, the running status that records described pile system is initial condition NOT_SPLIT, and is synchronized to other stack equipments in described pile system; When described perception unit perceives pile system when division, the running status of record is updated to the state SPLIT_PRE_MASTER that comprises the main equipment of described pile system before division, and is synchronized to other equipment in self current place pile system; When self place equipment as described pile system from equipment, receive running status NOT_SPLIT the record of the synchronous pile system of the main equipment of described pile system; Described perception unit perceives pile system when division, has the main equipment of described pile system before division if determine in self current place pile system, the running status of self current place pile system is updated to SPLIT_PRE_MASTER; In self current place pile system, there is not the main equipment of described pile system before division if determine, the running status of self current place pile system is updated to the state SPLIT_PRE_SLAVE that does not comprise the main equipment of pile system before division; And the running status of self current record is synchronized to other stack equipments in self current place pile system;
Described perception unit, divides for perception pile system;
Described detecting unit, for when self place equipment is during as the main equipment of current place pile system, detects the pile system of other activation by MAD mechanism;
Described processing unit, in the time that described detecting unit detects the pile system of other activation by MAD mechanism, if the running status of the current place of described recording unit records self place equipment pile system is NOT_SPLIT, carries out normal MAD flow process; If the running status of the current place of described recording unit records self place equipment pile system is SPLIT_PRE_MASTER, maintain the normal work of self the current place of place equipment pile system; If the running status of the current place of described recording unit records self place equipment pile system is SPLIT_PRE_SLAVE, make self the current place of place equipment pile system enter recovery state.
In sum, in the present invention by pile system each stack equipment when the different running status being upgraded to the running status of the pile system of self record, in the time that the main equipment of pile system detects the pile system of other activation by MAD mechanism, carry out different disposal according to the running status of the pile system of self record, the main equipment that ensures the front pile system of division maintains state of activation always, can improve MAD testing mechanism, improve the stability of network.
Brief description of the drawings
Fig. 1 is the structural representation of typical pile system 100;
Fig. 2 is link disrupted configuration schematic diagram between stack equipment 101 and stack equipment 102 in pile system 100;
Fig. 3 is pile system splitted construction schematic diagram in the specific embodiment of the invention;
Fig. 4 is many activating detection methods schematic flow sheet in the embodiment of the present invention;
Fig. 5 is the structural representation that is applied to the stack equipment in pile system in the specific embodiment of the invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
A kind of many activating detection methods are proposed in the embodiment of the present invention, be applied in pile system, arbitrary stack equipment in this pile system, in the time of main equipment as this pile system, the running status that records this pile system is initial condition (NOT_SPLIT), and is synchronized to other stack equipments in this pile system; While perceiving described pile system division, the running status of the pile system after the division at self current place is updated to the state (SPLIT_PRE_MASTER) that comprises the main equipment of described pile system before division, and the running status of current record is synchronized to other stack equipments in self current place pile system; When as described pile system from equipment time, receive running status NOT_SPLIT the record of the synchronous pile system of the main equipment of described pile system; While perceiving described pile system division, determine the main equipment that whether has described pile system before division in the pile system after the division at self current place, if, the running status of self current place pile system is updated to SPLIT_PRE_MASTER, otherwise, the running status of self current place pile system is updated to (state that does not comprise the main equipment of pile system before division) SPLIT_PRE_SLAVE; And the running status of self current record is synchronized to other stack equipments in self current place pile system.
A pile system is initially set up, while electing main equipment, now the running status of this pile system at self place is recorded as NOT_SPLIT by main equipment, this pile system normally moves, there is not division, this running status of record was synchronized to other equipment in this pile system simultaneously.
Pile system splits into two parts or more parts, but the pile system after division all can be classified as two classes, one class is the succession to former pile system, the main equipment of such pile system does not change, concerning it loss be part from equipment, such is inherited running status of pile system and is recorded as SPLIT_PRE_MASTER; An other class is newly-generated pile system, for newly-generated pile system, its original main equipment has left this newly-generated pile system, no matter whether its former main equipment joins this newly-generated pile system again, and newly-generated pile system need select a new main equipment to manage this newly-generated pile system now; The running status of such newly-generated pile system is recorded as SPLIT_PRE_SLAVE.
Above-mentionedly determine in self current place pile system, whether to exist the method for the main equipment of described pile system before division to be:
Described arbitrary stack equipment is deleted from the topological list of self place pile system divide the stack equipment that divides away because of pile system, according to the main equipment that whether has main equipment identity to determine whether to exist in self current place pile system described pile system before division in the identity of the stack equipment of deleting.
Referring to Fig. 3, Fig. 3 is pile system splitted construction schematic diagram in the specific embodiment of the invention.In Fig. 3, before division, pile system is made up of stack equipment 301, stack equipment 302 and stack equipment 303.As seen from Figure 3, the link fracture between stack equipment 302 and stack equipment 303, and because this pile system is that chain type is stacking, therefore, stack equipment 302 and stack equipment 303 all perceive pile system division.Taking stack equipment 302 as example, if stack equipment 302 is the main equipment of the front pile system of division,, in the time that pile system is set up, the running status of the pile system before division is recorded as to NOT_SPLIT, and is synchronized to stack equipment 301 and stack equipment 302; In the time that stack equipment 302 perceives pile system division, owing to himself being the main equipment of former pile system, and the stack equipment 303 dividing away for division before pile system from equipment, therefore stack equipment 303 is deleted from the topology table of pile system, there is not main equipment identity in the identity of the stack equipment of deleting, therefore after record division, the running status of the pile system at self current place is SPLIT_PRE_MASTER, and the running status of record is synchronized to stack equipment 301.
Before stack equipment 302 is for division pile system from equipment time, the running status that receives the synchronous current pile system of the main equipment of pile system is NOT_SPLIT, in this running status of local record.In the time that stack equipment 302 perceives pile system division, delete from the topological list of pile system dividing the stack equipment 303, if stack equipment 303 is the main equipment of the front pile system of division, in the identity of the stack equipment of deleting, there is main equipment identity, the running status of current record is updated to SPLIT_PRE_SLAVE; If stack equipment 303 for division before pile system from equipment, in the identity of the stack equipment of deleting, there is not main equipment identity, the running status of current record is updated to SPLIT_PRE_MASTER by stack equipment 302; And the running status of the pile system after upgrading is synchronized to stack equipment 301, stack equipment 301 receives the running status of this synchronous rear pile system that upgrades self record.
Referring to Fig. 4, Fig. 4 is many activating detection methods schematic flow sheet in the embodiment of the present invention.Concrete steps are as follows:
Step 401, arbitrary stack equipment is as the main equipment of self current place pile system, while the pile system of other activation being detected by MAD mechanism.
Step 402, if the running status of the current place of self record pile system is NOT_SPLIT, carries out normal MAD flow process, process ends.
In this step, carry out normal MAD flow process, refer to that comparison Active ID decision self place pile system maintains normal work, still enter recovery state, with existing realization, repeat no more here.
Step 403, if the running status of the current place of self record pile system is SPLIT_PRE_MASTER, maintains the normal work of self current place pile system, process ends.
The normal work that maintains self current place pile system in this step refers to that equipment maintains Active state, and MAD testing mechanism reenters initial condition, again starts to detect.
Step 404, if the running status of the current place of self record pile system is SPLIT_PRE_SLAVE, makes self current place pile system enter recovery state.
Self the current place pile system of making in this step enters recovery state, and the pile system that enters recovery state will be closed other all functional areas beyond reserved port.
While the running status of self current place pile system being updated to SPLIT_PRE_SLAVE in the specific embodiment of the invention, described method further comprises: the main equipment ID of described pile system before record division, and be synchronized to other stack equipments in self place pile system and make described other stack equipments record the main equipment ID of described pile system before described division.Other stack equipments receive the ID of synchronous main equipment, carry out record in this locality.
If the running status of the current place of self record pile system is after SPLIT_PRE_SLAVE in step 404, described making before self current place pile system enters recovery state, described method further comprises: the main equipment ID that determines described pile system before the division of self record with described in other main equipment ID that activate pile systems of detecting whether identical, if so, described in execution, make self current place pile system enter recovery state; Otherwise, the initial condition that enters MAD.
If main equipment ID is identical, explanation is that pile system divides the pile system that other activation detected causing; If main equipment ID difference, wrong MAD message has been received in explanation, reenters the initial condition of MAD, restarts to detect.
Arbitrary stack equipment as self current pile system from equipment time, the method further comprises:
Described arbitrary stack equipment receives carrying out after the notice of mandatory masterslave switchover of main equipment transmission, if perceiving main equipment leaves, the running status of self current place pile system is updated to main equipment swap status (MASTER_SWITCH), otherwise, maintain the running status of self current place pile system.Main equipment in pile system is if carry out normal masterslave switchover, as according to the main equipment of pile system that needed reboot of safeguarding.Its adjacent stack equipment can be prenoticed and mandatory masterslave switchover will be carried out.What receive this notice maintains the running status of the current pile system of self record from equipment, leaves until it perceives main equipment, and the running status of self record is updated to MASTER_SWITCH.
Described arbitrary stack equipment is as the main equipment in self current place pile system, and the pile system running status of self record is SPLIT_PRE_SLAVE, time, the method further comprises: the pile system of other activation do not detected by MAD mechanism within default detection time time, compulsory execution main equipment is surveyed, if detect other main equipments, carry out MAD normal flow; Otherwise, determine before division the main equipment of the described pile system machine of delaying, the running status of self current place pile system is updated to MASTER_SWITCH, and the running status of the pile system after upgrading is synchronized to other stack equipments in self current place pile system.
Described arbitrary stack equipment is as the main equipment of self current place pile system, and the running status of the pile system of self record is while being MASTER_SWITCH, and described method further comprises:
Complete masterslave switchover if perceive self place pile system, the running status of pile system described in self current place is updated to NOT_SPLIT, and be synchronized to other stack equipments in self current place pile system.
In Fig. 3, suppose the main equipment that stack equipment 303 is pile system, when stack equipment 303, the electricity went off, now can to perceive identity be that the stack equipment 303 of main equipment has left pile system to stack equipment 302, and the running status of the stack equipment of record is updated to SPLIT_PRE_SLAVE by stack equipment 302.And after electing main equipment, detect by MAD mechanism, but the not existence of multi-Active so detecting, MAD enters initial condition.
General, if there are multiple Active on network, can be in a short period of time by MAD mechanism, as 100sm finds the other side, if in this time window, do not detect other and activate pile systems, the Master that can tentatively the judge former pile system machine of having delayed, start the forced detection process to former main equipment: by MAD link, send fast the probe messages of some; The other side receives after probe messages, responds immediately response message.In certain cycle, such as the Hello of 3 times is overtime, can not receive response message, determine the former main equipment machine of having delayed.The running status of upgrading the pile system of current record is MASTER_SWITCH; Exist if forced detection result is main equipment, illustrate that MAD efficiency has problem, continue MAD flow process and detection process.
If when stack equipment 302 is elected as the main equipment of the current pile system that comprises stack equipment 301 and stack equipment 302, perceiving pile system masterslave switchover completes, the running status of the pile system of self record is updated to NOT_SPLIT, and be synchronized to stack equipment 301 make its upgrade local record.
Based on same inventive concept, the present invention also proposes a kind of equipment, is applied in pile system.Referring to Fig. 5, Fig. 5 is the structural representation that is applied to the stack equipment in pile system in the specific embodiment of the invention.This equipment comprises: record cell 501, perception unit 502, detecting unit 503 and processing unit 504.
Record cell 501, for when self place equipment is during as the main equipment of described pile system, the running status that records described pile system is initial condition NOT_SPLIT, and is synchronized to other stack equipments in described pile system; When perception unit 502 perceives pile system when division, the running status of record is updated to the state SPLIT_PRE_MASTER that comprises the main equipment of described pile system before division, and is synchronized to other equipment in self current place pile system; When self place equipment as described pile system from equipment, receive running status NOT_SPLIT the record of the synchronous pile system of the main equipment of described pile system; Perception unit 502 perceives pile system when division, has the main equipment of described pile system before division if determine in self current place pile system, the running status of self current place pile system is updated to SPLIT_PRE_MASTER; In self current place pile system, there is not the main equipment of described pile system before division if determine, the running status of self current place pile system is updated to the state SPLIT_PRE_SLAVE that does not comprise the main equipment of pile system before division; And the running status of self current record is synchronized to other stack equipments in self current place pile system.
Perception unit 502, divides for perception pile system.
Detecting unit 503, for when self place equipment is during as the main equipment of current place pile system, detects the pile system of other activation by MAD mechanism.
Processing unit 504, in the time that detecting unit 503 detects the pile system of other activation by MAD mechanism, is NOT_SPLIT if record cell 501 records the running status of self the current place of place equipment pile system, carries out normal MAD flow process; If it is SPLIT_PRE_MASTER that record cell 501 records the running status of self the current place of place equipment pile system, maintain the normal work of self the current place of place equipment pile system; If it is SPLIT_PRE_SLAVE that record cell 501 records the running status of self the current place of place equipment pile system, make self the current place of place equipment pile system enter recovery state.
Preferably,
Record cell 501, while being further used for the running status of self the current place of place equipment pile system to be updated to SPLIT_PRE_SLAVE, the main equipment ID of described pile system before record division, and other stack equipments that are synchronized in self the current place of place equipment pile system make described other stack equipments record described main equipment ID.
Processing unit 504, when the running status that record cell 501 records self the current place of place equipment pile system if be further used for is SPLIT_PRE_SLAVE, the main equipment ID that determines record cell 501 current records with described in other main equipment ID that activate pile systems of detecting whether identical, if so, described in execution, make self the current place of place equipment pile system enter recovery state; Otherwise, the initial condition that enters MAD.
Preferably,
Record cell 501, is further used for storing the topological list of self equipment place, place pile system; In the time that perception unit 502 perceives pile system division, delete from the topological list of self place pile system divide the stack equipment that divides away because of pile system, according to the main equipment that whether has main equipment identity to determine whether to exist in self current place pile system described pile system before division in the identity of the stack equipment of deleting.
Preferably, this equipment further comprises: receiving element 505.
Receiving element 505, be further used for when self place equipment as current place pile system from equipment time, receive main equipment send will carry out the notice of mandatory masterslave switchover.
Perception unit 502, be further used for when self place equipment as current place pile system from equipment time, the leaving of perception main equipment.
Record cell 501, be further used for receiving carrying out after the notice of mandatory masterslave switchover of main equipment transmission when receiving element 505, if perception unit 502 perceives main equipment and leaves, the running status of self the current place of place equipment pile system is updated to MASTER_SWITCH, otherwise, maintain the running status of self the current place of place equipment pile system.
Preferably, this equipment further comprises: probe unit 506.
Probe unit 506, be used for when self place equipment is as the main equipment of current place pile system, when the pile system running status that record cell 501 records is SPLIT_PRE_SLAVE, and when detecting unit 503 does not detect the pile system of other activation by MAD mechanism within default detection time, compulsory execution main equipment is surveyed, and makes processing unit 504 carry out MAD normal flow if detect other main equipments; Otherwise, the main equipment of determining self equipment place, the place pile system machine of delaying.
Record cell 501, be further used in the time that probe unit 506 determines that the main equipment of self equipment place, place pile system is delayed machine, the running status of record is updated to MASTER_SWITCH, and the running status after upgrading is synchronized to other stack equipments in self the current place of place equipment pile system.
Preferably,
Perception unit 502, is further used for the current place of equipment, perception self place pile system and whether completes masterslave switchover;
Record cell 501, be further used for self place equipment main equipment as current place pile system, and when the running status that records current place pile system is MASTER_SWITCH, if perception unit 502 perceives self place pile system and completes masterslave switchover, the running status of self current place pile system is updated to NOT_SPLIT, and is synchronized to other stack equipments in self equipment place, place pile system.
The unit of above-described embodiment can be integrated in one, and also can separate deployment; Can merge into a unit, also can further split into multiple subelements.
In sum, in the specific embodiment of the invention by each stack equipment according to self place pile system in different running statuses upgrade the running status of the pile system of self record, in the time that the main equipment of pile system detects the pile system of other activation by MAD mechanism, carry out different disposal according to the running status of the pile system of self record, the main equipment that ensures the front pile system of division maintains state of activation always, can improve MAD testing mechanism, the stability that improves network, has ensured seamlessly transitting of flow.
In the specific embodiment of the invention, be updated to MASTER_SWITCH by carrying out the delay running status of pile system of machine of the pile system of mandatory masterslave switchover and main equipment simultaneously, in the time that masterslave switchover completes, the running status of pile system is updated to NOT_SPLIT, avoid the section time network concussion existing in masterslave switchover process completely, with the various sequence problems that may occur, keep to greatest extent the stability of network.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (12)

1. activating detection method more than a kind, be applied in pile system, it is characterized in that, arbitrary stack equipment in described pile system, in the time of main equipment as described pile system, the running status that records described pile system is initial condition NOT_SPLIT, and is synchronized to other stack equipments in described pile system, while perceiving described pile system division, the running status of the pile system after the division at self current place is updated to the state SPLIT_PRE_MASTER that comprises the main equipment of described pile system before division, and the running status of current record is synchronized to other stack equipments in self current place pile system, when as described pile system from equipment time, receive running status NOT_SPLIT the record of the synchronous pile system of the main equipment of described pile system, while perceiving described pile system division, determine the main equipment that whether has described pile system before division in the pile system after the division at self current place, if, the running status of self current place pile system is updated to SPLIT_PRE_MASTER, otherwise, the running status of self current place pile system is updated to the state SPLIT_PRE_SLAVE that does not comprise the main equipment of pile system before division, and the running status of self current record is synchronized to other stack equipments in self current place pile system, described method comprises:
Described arbitrary stack equipment is as the main equipment of self current place pile system, while the pile system of other activation being detected by many activation detection MAD mechanism, if the running status of the current place of self record pile system is NOT_SPLIT, carry out normal MAD flow process; If the running status of the current place of self record pile system is SPLIT_PRE_MASTER, maintain the normal work of self current place pile system; If the running status of the current place of self record pile system is SPLIT_PRE_SLAVE, make self current place pile system enter recovery state.
2. method according to claim 1, is characterized in that,
When the described running status by self current place pile system is updated to SPLIT_PRE_SLAVE, described method further comprises: the main equipment ID of described pile system before record division, and be synchronized to other stack equipments in self place pile system and make described other stack equipments record the main equipment ID of described pile system before described division;
If the running status of the current place of described self record pile system is after SPLIT_PRE_SLAVE, described making before self current place pile system enters recovery state, described method further comprises: the main equipment ID that determines described pile system before the described division of self record with described in other main equipment ID that activate pile systems of detecting whether identical, if so, described in execution, make self current place pile system enter recovery state; Otherwise, the initial condition that enters MAD.
3. method according to claim 1 and 2, is characterized in that, describedly determines in self current place pile system, whether to exist the method for the main equipment of described pile system before division to be:
Described arbitrary stack equipment is deleted from the topological list of self place pile system divide the stack equipment that divides away because of pile system, according to whether comprising in the identity of the stack equipment of deleting that main equipment identity determines the main equipment that whether has described pile system before division in self current place pile system.
4. method according to claim 1, is characterized in that, described arbitrary stack equipment as described pile system from equipment time, described method further comprises:
Receive carrying out after the notice of mandatory masterslave switchover of main equipment transmission, if perceiving main equipment leaves, the running status of self current place pile system is updated to main equipment swap status MASTER_SWITCH, otherwise, the running status of self current place pile system maintained.
5. method according to claim 1, is characterized in that, described arbitrary stack equipment is as the main equipment in self current place pile system, and the pile system running status of self record is while being SPLIT_PRE_SLAVE, and described method further comprises:
The pile system of other activation do not detected by MAD mechanism within default detection time time, execute main equipment and survey, carry out MAD normal flow if detect other main equipments; Otherwise, determine before division the main equipment of the described pile system machine of delaying, the running status of self current place pile system is updated to MASTER_SWITCH, and the running status after upgrading is synchronized to other stack equipments in self current place pile system.
6. according to the method described in claim 4 or 5, it is characterized in that, described arbitrary stack equipment is as the main equipment of self current place pile system, and the running status of the pile system of self record is while being MASTER_SWITCH, and described method further comprises:
Complete masterslave switchover if perceive self place pile system, the running status of pile system described in self current place is updated to NOT_SPLIT, and be synchronized to other stack equipments in self current place pile system.
7., activate a checkout equipment more, be applied in pile system, it is characterized in that, described equipment comprises: record cell, perception unit, detecting unit and processing unit;
Described record cell, for when self place equipment is during as the main equipment of described pile system, the running status that records described pile system is initial condition NOT_SPLIT, and is synchronized to other stack equipments in described pile system; When described perception unit perceives pile system when division, the running status of record is updated to the state SPLIT_PRE_MASTER that comprises the main equipment of described pile system before division, and is synchronized to other equipment in self current place pile system; When self place equipment as described pile system from equipment, receive running status NOT_SPLIT the record of the synchronous pile system of the main equipment of described pile system; Described perception unit perceives pile system when division, has the main equipment of described pile system before division if determine in self current place pile system, the running status of self current place pile system is updated to SPLIT_PRE_MASTER; In self current place pile system, there is not the main equipment of described pile system before division if determine, the running status of self current place pile system is updated to the state SPLIT_PRE_SLAVE that does not comprise the main equipment of pile system before division; And the running status of self current record is synchronized to other stack equipments in self current place pile system;
Described perception unit, divides for perception pile system;
Described detecting unit, for when self place equipment is during as the main equipment of current place pile system, is detected MAD mechanism and is detected the pile system of other activation by many activation;
Described processing unit, in the time that described detecting unit detects the pile system of other activation by MAD mechanism, if the running status of the current place of described recording unit records self place equipment pile system is NOT_SPLIT, carries out normal MAD flow process; If the running status of the current place of described recording unit records self place equipment pile system is SPLIT_PRE_MASTER, maintain the normal work of self the current place of place equipment pile system; If the running status of the current place of described recording unit records self place equipment pile system is SPLIT_PRE_SLAVE, make self the current place of place equipment pile system enter recovery state.
8. equipment according to claim 7, is characterized in that,
Described record cell, while being further used for the running status of self the current place of place equipment pile system to be updated to SPLIT_PRE_SLAVE, the main equipment ID of described pile system before record division, and be synchronized to other stack equipments in self the current place of place equipment pile system and make described other stack equipments record the main equipment ID of described pile system before described division;
Described processing unit, when the running status that records self the current place of place equipment pile system if be further used for is SPLIT_PRE_SLAVE, the main equipment ID that determines described record cell current record with described in other main equipment ID that activate pile systems of detecting whether identical, if so, described in execution, make self the current place of place equipment pile system enter recovery state; Otherwise, the initial condition that enters MAD.
9. according to the equipment described in claim 7 or 8, it is characterized in that,
Described record cell, is further used for storing the topological list of self equipment place, place pile system; In the time that described perception unit perceives pile system division, delete from the topological list of self place pile system divide the stack equipment that divides away because of pile system, according to the main equipment that whether has main equipment identity to determine whether to exist in self current place pile system described pile system before division in the identity of the stack equipment of deleting.
10. equipment according to claim 7, is characterized in that, described equipment further comprises: receiving element;
Described receiving element, be further used for when self place equipment as current place pile system from equipment time, receive main equipment send will carry out the notice of mandatory masterslave switchover;
Described perception unit, be further used for when self place equipment as current place pile system from equipment time, the leaving of perception main equipment;
Described record cell, be further used for receiving carrying out after the notice of mandatory masterslave switchover of main equipment transmission when described receiving element, if described perception unit perceives main equipment and leaves, the running status of self the current place of place equipment pile system is updated to main equipment swap status MASTER_SWITCH, otherwise, maintain the running status of self the current place of place equipment pile system.
11. equipment according to claim 7, is characterized in that, described equipment further comprises: probe unit;
Described probe unit, be used for when self place equipment is as the main equipment of current place pile system, when the pile system running status of described recording unit records is SPLIT_PRE_SLAVE, and when described detecting unit does not detect the pile system of other activation by MAD mechanism within default detection time, compulsory execution main equipment is surveyed, and makes described processing unit carry out MAD normal flow if detect other main equipments; Otherwise, the main equipment of determining self equipment place, the place pile system machine of delaying;
Described record cell, be further used in the time that described probe unit determines that the main equipment of self equipment place, place pile system is delayed machine, the running status of record is updated to MASTER_SWITCH, and the running status after upgrading is synchronized to other stack equipments in self the current place of place equipment pile system.
12. according to the equipment described in claim 10 or 11, it is characterized in that,
Described perception unit, is further used for the current place of equipment, perception self place pile system and whether completes masterslave switchover;
Described record cell, be further used for self place equipment main equipment as current place pile system, and when the running status that records current place pile system is MASTER_SWITCH, described perception unit perceives self place pile system and completes masterslave switchover, the running status of self current place pile system is updated to NOT_SPLIT, and is synchronized to other stack equipments in pile system.
CN201210082989.6A 2012-03-26 2012-03-26 Multi-activation detection method and multi-activation detection device Active CN102546313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210082989.6A CN102546313B (en) 2012-03-26 2012-03-26 Multi-activation detection method and multi-activation detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210082989.6A CN102546313B (en) 2012-03-26 2012-03-26 Multi-activation detection method and multi-activation detection device

Publications (2)

Publication Number Publication Date
CN102546313A CN102546313A (en) 2012-07-04
CN102546313B true CN102546313B (en) 2014-10-01

Family

ID=46352315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210082989.6A Active CN102546313B (en) 2012-03-26 2012-03-26 Multi-activation detection method and multi-activation detection device

Country Status (1)

Country Link
CN (1) CN102546313B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001831B (en) * 2012-12-19 2016-03-09 迈普通信技术股份有限公司 A kind of system and method testing many activation detection perform
CN105812292A (en) * 2014-12-29 2016-07-27 中兴通讯股份有限公司 Switching equipment stacking method and device
CN108718248B (en) * 2018-04-25 2021-08-24 新华三技术有限公司 PEX equipment unplugging event processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263678A (en) * 2011-08-26 2011-11-30 杭州华三通信技术有限公司 Method and device for predicting stack division
CN102355366A (en) * 2011-08-24 2012-02-15 杭州华三通信技术有限公司 Member-stacking device and method for managing member-stacking device at split stacking moment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442484B (en) * 2008-12-05 2012-09-05 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355366A (en) * 2011-08-24 2012-02-15 杭州华三通信技术有限公司 Member-stacking device and method for managing member-stacking device at split stacking moment
CN102263678A (en) * 2011-08-26 2011-11-30 杭州华三通信技术有限公司 Method and device for predicting stack division

Also Published As

Publication number Publication date
CN102546313A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN101702663B (en) Method and device for updating ring network topology information
CN102624635B (en) Method and device for realizing graceful restart
CN102355366B (en) Member-stacking device and method for managing member-stacking device at split stacking moment
EP3316555B1 (en) Mac address synchronization method, device and system
CN106533736B (en) Network equipment restarting method and device
CN113328916B (en) BFD detection mode switching method, device and equipment
CN103368712A (en) Switchover method and device for main equipment and standby equipment
CN109495345B (en) BFD processing method and network equipment
CN106911597B (en) Cross-board forwarding method and device
CN102025562A (en) Path detection method and device
CN112583708B (en) Connection relation control method and device and electronic equipment
CN102647304A (en) Synchronizing method of address resolution protocols and device
CN104243239A (en) State inspection method and device for controllers in SDN clusters
CN102271058A (en) Multi-path service protecting method and device
CN103607293A (en) Flow protection method and equipment thereof
CN111654384A (en) Main/standby switching method, BRAS (broadband remote Access Server) equipment and storage medium
CN114244736A (en) Multi-master detection method, equipment and medium based on stacking environment
CN102546313B (en) Multi-activation detection method and multi-activation detection device
CN104753703A (en) Method and system for controlling network topology
CN104125079A (en) Method and device for determining double-device hot-backup configuration information
CN112737844A (en) Method and device for switching between main and standby in redundant system
CN102136999B (en) Route converging method, system and edge switching equipment
CN111629386B (en) Communication method, system and equipment
CN103200092A (en) Route process management method and equipment based on virtual network equipment
CN114124803B (en) Device management method and device, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230616

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right