Background technology
Intelligent elastic framework (IRF, Intelligent Resilient Framework) system, be by cable multiple devices to be coupled together to form a logical device, wherein each equipment in the IRF system is commonly referred to member device, and the link between each member device is called stacking link.In the IRF system, can elect primary (Active) equipment, miscellaneous equipment is as (Slave) for subsequent use equipment.Because the internal mechanism of IRF system, Active equipment can send the notification packet that carries equipment of itself information (for example Active device id) in the IRF internal system, each member device can be at local record Active facility information, in addition, also can record the IRF system identifier in each member device, the IRF system identifier of each member device record in the same IRF system is identical.
If when occurring stacking link fracture in the IRF system, may cause to occur a plurality of Active equipment in the IRF system.As shown in Figure 1, suppose in this IRF system, to comprise two member devices: member device 1 and member device 2, (state 1) member device 1 is Active equipment before the IRF stacking splitting, member device 2 is Standby equipment.Behind the IRF stacking splitting between member's equipment 1 and the member device 2 (state 2), 2 of member devices can re-elect certainly as Active equipment, because member device also is in the Active state 1 this moment, this may cause network to work.All be in the Active state and produce conflict for fear of member device 1 and member device 2, existing settling mode is generally: allow Master member number minimum IRF and continue normal operation (namely maintaining the Active state), other IRF moves to the Recovery state, and close under the Recovery state all physical ports of other except reserved port among the IRF, to guarantee again forwarding service message of this IRF.
Yet there is following defective in above-mentioned settling mode:
Have more member device if the primary member under 1 conflict situation numbers large IRF, the member device service port in this IRF all can be closed.As shown in Figure 2, an IRF who is formed by three member devices merging may occur and be closed, and another IRF only has a member device to keep the Active state, so will cause the IRF systematic function can not obtain maximum performance.
2, when service port and stacking link port are in the same veneer, if primary member numbers little IRF because this single board default causes stacking splitting, current detection is after the multi-Active conflict, be to allow primary member number little IRF continue normal operation, other IRF can move to the Recovery state.This moment, primary member numbered little IRF because single board default causes service port to work, and other IRF have also closed owing to being in Recovery state service port, at this moment network will occur interrupt.As shown in Figure 3, Port1, Port2, Port3 are in the same veneer, when this single board default, will cause that network interrupts.
If numbering little IRF, 3 primary members before stacking link fracture, are stand-by equipment, this IRF need to be upgraded to host apparatus after division so, because the control plane in the whole IRF system all need to be controlled by primary member, then can cause the little IRF of this numbering to rise the temporary transient interruption that causes network in the process of leading standby.
Summary of the invention
In view of this, the invention provides a kind of processing method and device of multi-primary apparatus conflict, be used for when detecting the IRF system and the conflict of multi-Active member device occurs, efficiently, reasonably solving the conflict between the multi-Active member device, reduce to greatest extent the impact on existing network.
For realizing the object of the invention, implementation of the present invention is specific as follows:
A kind of processing method of multi-primary apparatus conflict, after described method is applied to IRF system generation stacking splitting, detecting the conflict that has two above Active member devices in the described IRF system processes, wherein, when having two above Active member devices in detecting the IRF system, described method is carried out the step in the following steps at least:
Calculate the network members number of devices that the IRF system at each Active member device place has, keep the many IRF systems of network equipment number to be in the Active state, other IRF system migrations are to the Recovery state;
Collect the single board default information of IRF system, will exist the IRF system migration of single board default to the Recovery state;
Seek original host apparatus in the multi-Active member device, to the maintenance Active of the IRF system state at original host apparatus place, other IRF system migration is to the Recovery state.
Further, described method specifically realizes by carrying out the Active information interaction by the LACP agreement between multi-host apparatus.
Further, the message format of mutual Active information is as follows between described multi-host apparatus:
IRF Ability: represent the network equipment number that this IRF system has;
IRF Status: represent in this IRF system whether have failing single board, 0 expression exists, and 1 expression does not exist;
Master Or Slave: represent the whether host apparatus before the IRF System splitting of described Active member device, 0 expression is not that 1 expression is.
Further, each Active member device is after mutual complete Active information to each other, further the Active information of this IRF system is subtracted each other with the Active information that other IRF systems that receive send over, if the difference after both subtract each other is less than 0, then with this IRF system migration to the Recovery state, and close corresponding service port.
The present invention provides a kind of processing unit of multi-primary apparatus conflict simultaneously, wherein said application of installation is behind IRF system stacking splitting, detect when having two above Active member devices conflicts in the described IRF system, described device comprises a module in the following module at least:
The IRF computing module, be used for to calculate the network members number of devices that the IRF system at each Active member device place has, and the network members number of devices that has of more described each IRF system, keep many IRF of network equipment number system to be in the Active state, other IRF system migrations are to the Recovery state;
IRF detects analysis module, is used for collecting the single board default information of IRF system, when confirming that there is single board default in described IRF, will exist the IRF system migration of single board default to the Recovery state;
IRF searches module, is used for seeking original host apparatus at the multi-Active member device, and to the maintenance Active of the IRF system state at original host apparatus place, other IRF system migration is to the Recovery state.
Further, when described device carried out the realization of multi-primary apparatus conflict solution, each intermodule specifically can be realized by the Active information that the LACP protocol massages carries.
Further, the message format of described Active information is as follows:
IRF Ability: represent the network equipment number that this IRF system has;
IRF Status: represent in this IRF system whether have failing single board, 0 expression exists, and 1 expression does not exist;
Master Or Slave: represent the whether host apparatus before the IRF System splitting of described Active member device, 0 expression is not that 1 expression is.
Further, each Active member device is after mutual complete Active information to each other, further the Active information of this IRF system is subtracted each other with the Active information that other IRF systems that receive send over, if the difference after both subtract each other is less than 0, then with this IRF system migration to the Recovery state, and close corresponding service port.
As can be seen from the above technical solutions, the conflict that the invention provides between the multi-Active member device of a kind of IRF system deals with mechanism, in order to efficiently, reasonably solve above-mentioned conflict in the time of can in the IRF system, having the conflict of multi-Active member device, reduce to greatest extent the impact on existing network.
Embodiment
In order to realize the object of the invention, the core concept that the present invention adopts is: when detecting a plurality of Active member device behind IRF system stacking splitting, calculate the network members number of devices that the IRF system at each Active member device place has, keep the many IRF systems of network equipment number to be in the Active state, other IRF system migrations are to the Recovery state; Collect the single board default information of IRF system, the IRF that has single board default is moved to the Recovery state; Seek original host apparatus in the multi-Active member device, to the maintenance Active of the IRF system state at original host apparatus place, other IRF system migration is to the Recovery state.By the present invention, can make when having multi-primary apparatus conflict after the IRF division, web influence is reduced to minimum.
For making technical solution of the present invention more clear and clear, describe in detail below in conjunction with the specific embodiment of the invention.As shown in Figure 4, be the flow chart of the processing method of multi-primary apparatus conflict of the present invention.After wherein said method is applied to IRF system generation stacking splitting, detect when having two above Active member devices conflicts in the described IRF system, mainly comprise the steps:
Step 1, calculate the network members number of devices that the IRF system at each Active member device place has, keep many IRF of network equipment number system to be in the Active state, other IRF system migrations are to the Recovery state.
Particularly, behind IRF system generation stacking splitting, detect when having two above Active member devices conflicts in the described IRF system, calculate the network members number of devices that the IRF system at each Active member device place has after the division by the IRF computing module, and the network equipment number that the IRF system at a plurality of Active member devices place has separately after further relatively dividing, for realizing the object of the invention, preferably, keep the many IRF systems of network equipment number to be in the Active state, other IRF system then moves to the Recovery state, obtains maximum performance to guarantee the IRF systematic function after the division.
The single board default information of step 2, collection IRF system moves to the Recovery state with the IRF that has single board default.
Particularly, collect the single board default information of IRF system by the IRF fault detection module, and the single board default information of collecting is fed back to the IRF analysis module.If in the certain hour of IRF System splitting, described IRF analysis module judges that single board default has appearred in certain IRF, and then we can suspect it may is the IRF division that is caused by this single board default.In embodiments of the present invention, in order to realize the object of the invention, preferably, the IRF system migration that has single board default to the Recovery state, is interrupted with the network of avoiding single board default to cause.
Step 3, seek original host apparatus in the multi-Active member device, the IRF system at original host apparatus place is kept the Active state, other IRF system migration is to the Recovery state.
Particularly, for avoiding member device for subsequent use after the IRF System splitting to upgrade to the temporary transient interruption that causes network in the process of host apparatus.Preferably, in embodiments of the present invention, need the further primary member device before the searching IRF System splitting in the multi-Active member device, if exist, then the IRF system at original host apparatus place kept the Active state, other IRF system migration is to the Recovery state.
Further, when the foundation said method carries out the realization of multi-primary apparatus conflict solution, specifically can pass through LACP(Link Aggregation Control Protocol, Link Aggregation Control Protocol) etc. the protocol massages Active information of carrying realizes mutual between multi-host apparatus, as shown in Figure 5, carry out the message format of Active information interaction by the LACP agreement between described multi-host apparatus as follows:
IRF Ability: represent the network equipment number that this IRF system has.
IRF Status: represent whether there is failing single board among this IRF, 0 expression exists, and 1 expression does not exist.
Master Or Slave: represent the whether host apparatus before the IRF System splitting of described Active member device, 0 expression is not that 1 expression is.
During specific implementation, undertaken by following flow process:
Detect behind the IRF System splitting when having a plurality of Active member device, this Active member device sends neighbor advertisement (NA) message of IRF system banner, Active device identification and the above-mentioned Active information of carrying local record.
Each the Active member device that receives the NA message further subtracts each other the Active information of this IRF system with the Active information that other IRF systems that receive send over, if the difference after both subtract each other is less than 0, illustrate that then this IRF need to move to the Recovery state, and close corresponding service port.
Particularly, according to the aforementioned implementation of the present invention, if the election priority of the Active device id that carries in the NA message is greater than the election priority of the Active device id of local record, therefore, illustrate that the member device that sends this NA message should be Active equipment, for avoiding that multi-Active member conflict occurs in the IRF system, at this moment, local host apparatus withdraws from the Active state.Member device namely enters the recovery state after withdrawing from the Active state, the member device that is in the recovery state can not participate in the election of Active equipment until fault recovery backed off after random recovery state, thereby guarantees that this member device can not cause the multi-Active device conflict again when the recovery state.
Need to prove, above each number of steps only for convenience of description, the order of each step can be exchanged arbitrarily when specific implementation as required.In addition, when realizing the object of the invention, also can only implement as required a step or a plurality of step in the above-mentioned steps.Be not able in the present invention this as the foundation of the limit scope of the invention.
Technical solution of the present invention is easier to understand to be understood in order to make, and below is embodied as example with the present invention under a certain concrete application scenarios and further specifies.As shown in Figure 6, IRF1 and IRF2 are merged into an IRF system by 4 network members equipment, and before described IRF system stacking splitting, the left side network member device among the described IRF2 is host apparatus.Further the described IRF of hypothesis system is when division, is that fault has appearred in the Port1 place veneer by IRF1.
So, according to the processing method of the multi-primary apparatus conflict of the aforementioned introduction of the present invention, the Active interactive information between the host apparatus between IRF1 and IRF2 is as follows respectively:
IRF1:
IRF Ability---is set to 2 because two network equipments being arranged
IRF Status---is owing to there being single board default, and institute thinks suspects fault IRF, is set to 0
Two network equipments of Master Or Slave---are stand-by equipment, are set to 0
IRF2:
IRF Ability---is set to 2 because two network equipments being arranged
IRF Status---is set to 1 owing to there not being single board default
Master Or Slave---is set to 1 owing to there being 1 once to be host apparatus
IRF1 and IRF2 are by the LACP message each other after the mutual complete Active information, because the difference after the Active interactive information that the Active interactive information of IRF1 and the IRF2 that receives send over is subtracted each other is less than 0, therefore, IRF1 is moved to the Recovery state.
The present invention provides a kind of device of processing of multi-primary apparatus conflict simultaneously.Wherein said application of installation detects when having two above Active member devices conflicts in the described IRF system behind IRF system generation stacking splitting, and described device comprises a module in the following module at least:
The IRF computing module, be used for to calculate the network members number of devices that the IRF system at each Active member device place has, and the network members number of devices that has of more described each IRF system, keep the many IRF systems of network equipment number to be in the Active state, other IRF system migrations are to the Recovery state.
Particularly, when in detecting described IRF system behind the IRF system stacking splitting, having two above Active member devices conflicts, the network members number of devices that the IRF system that divides rear each Active member device place by described IRF computing module calculating has, and the network equipment number that the IRF system at a plurality of Active member devices place has separately after further relatively dividing, keep the many IRF systems of network equipment number to be in the Active state, other IRF system then moves to the Recovery state, obtains maximum performance to guarantee the IRF systematic function after the division.
IRF detects analysis module, is used for collecting the single board default information of IRF system, when confirming that there is single board default in described IRF, the IRF that has single board default is moved to the Recovery state.
Particularly, collect the single board default information of IRF system according to predetermined strategy (for example: detect take certain hour as the cycle) by IRF fault detection analysis module, and the single board default information of collecting is fed back to the IRF analysis module.If in the certain hour of IRF System splitting, the analysis of described IRF analysis module judges that single board default has appearred in certain IRF system, and then we can suspect it may is the IRF division that is caused by this single board default.In embodiments of the present invention, in order to realize the object of the invention, preferably, the IRF system migration that has single board default to the Recovery state, is interrupted with the network of avoiding single board default to cause.
IRF searches module, is used for seeking original host apparatus at the multi-Active member device, and to the maintenance Active of the IRF system state at original host apparatus place, other IRF system migration is to the Recovery state.
Particularly, for avoiding member device for subsequent use after the IRF System splitting to upgrade to the temporary transient interruption that causes network in the process of host apparatus.Preferably, in embodiments of the present invention, described IRF searches module needs the further primary member device before the searching IRF System splitting in the multi-Active member device, if exist, then the IRF at original host apparatus place kept the Active state, other IRF moves to the Recovery state.
Further, when described device carries out the realization of multi-primary apparatus conflict solution, each intermodule specifically can pass through LACP(Link Aggregation Control Protocol, Link Aggregation Control Protocol) etc. protocol massages carries corresponding information and realizes mutual between the multi-Active member device, as shown in Figure 5, carry out the message format of Active information interaction by the LACP agreement between described multi-host apparatus as follows:
IRF Ability: represent the network equipment number that this IRF system has.
IRF Status: represent whether there is failing single board among this IRF, 0 expression exists, and 1 expression does not exist.
Master Or Slave: represent the whether host apparatus before the IRF System splitting of described Active member device, 0 expression is not that 1 expression is.
According to embodiments of the present invention, each Active member device further subtracts each other the Active interactive information of this IRF with the Active interactive information that other IRF that receive send over, if the difference after both subtract each other is less than 0, illustrate that then this IRF need to move to the Recovery state, and close corresponding service port.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.