Background technology
Intelligent elastic framework (IRF, IntelligentResilientFramework) system, be multiple devices are coupled together formation logical device by cable, each equipment wherein in IRF system is commonly referred to member device, and the link between each member device is called stacking link.In IRF system, can elect primary (Active) equipment, miscellaneous equipment is as (Slave) for subsequent use equipment.Due to the internal mechanism of IRF system, Active equipment can send in IRF internal system the notification packet carrying equipment of itself information (such as Active device id), each member device can at local record Active facility information, in addition, in each member device, also can record IRF system identifier, the IRF system identifier of each member device record in same IRF system is identical.
If when there is stacking link breakdown in IRF system, may cause in IRF system and occur multiple Active equipment.As shown in Figure 1, suppose to comprise two member devices in this IRF system: member device 1 and member device 2, before IRF stacking splitting, (state 1) member device 1 is Active equipment, and member device 2 is Standby equipment.After IRF stacking splitting between member device 1 and member device 2 (state 2), member device 2 can re-elect certainly as Active equipment, and because member device 1 is now also in Active state, this may cause network normally to work.In order to avoid member device 1 and member device 2 are all in Active state and produce conflict, existing settling mode is generally: allow Master member number minimum IRF and continue normal work (namely maintaining Active state), other IRF moves to Recovery state, and other all physical port under closing Recovery state in IRF except reserved port, to ensure that this IRF can not forwarding service message again.
But there is following defect in above-mentioned settling mode:
If the primary member under 1 conflict situation numbers large IRF have more member device, the member device service port in this IRF all can be closed.As shown in Figure 2, may occur that an IRF merged by three member devices is closed, and another IRF only has a member device to keep Active state, so IRF systematic function will be caused can not to obtain maximum performance.
2, when service port and stacking link port are in same veneer, if primary member numbers little IRF due to this single board default and causes stacking splitting, after current detection to multi-Active conflict, be allow primary member number little IRF continue normal work, other IRF can move to Recovery state.Now primary member numbers little IRF due to single board default and causes service port normally to work, and other IRF also close owing to being in Recovery state service port, at this moment network interruption will occur.As shown in Figure 3, Port1, Port2, Port3 are in same veneer, when this single board default, will cause network interruption.
If it was stand-by equipment that 3 primary members number little IRF before stacking link breakdown, this IRF needs to be upgraded to host apparatus so after break, because the control plane in whole IRF system all needs to be controlled by primary member, then the little IRF of this numbering can be caused to rise standby the brief interruption causing network in main process.
Summary of the invention
In view of this, the invention provides a kind of processing method and device of multi-primary apparatus conflict, for when the conflict occurring multi-Active member device in IRF system being detected, efficiently, reasonably solving the conflict between multi-Active member device, reducing the impact on existing network to greatest extent.
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, the clash handle that there is two or more Active member device in described IRF system detected, wherein, when detect in IRF system there is two or more Active member device time, described method at least carries out the step in following steps:
Network member device's number that the IRF system calculating each Active member device place has, keep the many IRF systems of network equipment number to be in Active state, other IRF system migrations are to Recovery state;
Collect the single board default information of IRF system, will the IRF system migration of single board default be there is to Recovery state;
In multi-Active member device, find original host apparatus, keep Active state to the IRF system at original host apparatus place, other IRF system migration is to Recovery state.
Further, described method carries out Active information interaction to realize by LACP agreement particular by between multi-host apparatus.
Further, the message format of mutual between described multi-host apparatus Active information is as follows:
IRFAbility: represent the network equipment number that this IRF system has;
IRFStatus: represent in this IRF system whether there is failing single board, 0 represents to exist, and 1 represents not exist;
MasterOrSlave: whether be host apparatus IRF System splitting before, 0 represents not if representing described Active member device, 1 represents and is.
Further, each Active member device is after mutual complete Active information to each other, further the Active information of this IRF system and the Active information that other IRF systems received send over are subtracted each other, if both subtract each other after difference be less than 0, then by this IRF system migration to 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 after IRF system stacking splitting, when detecting in described IRF system that there is two or more Active member device conflicts, described device at least comprises a module in following module:
IRF computing module, for network member device's number that the IRF system calculating each Active member device place has, and network member device's number that more described each IRF system has, keep network equipment number many IRF system to be in Active state, other IRF system migrations are to Recovery state;
IRF detects analysis module, for collecting the single board default information of IRF system, when confirming that described IRF exists single board default, will there is the IRF system migration of single board default to Recovery state;
IRF searches module, and for finding original host apparatus in multi-Active member device, keep Active state to the IRF system at original host apparatus place, other IRF system migration is to Recovery state.
Further, when described device carries out realizing of multi-primary apparatus conflict solution, the Active information that each intermodule specifically can be carried by LACP protocol massages realizes.
Further, the message format of described Active information is as follows:
IRFAbility: represent the network equipment number that this IRF system has;
IRFStatus: represent in this IRF system whether there is failing single board, 0 represents to exist, and 1 represents not exist;
MasterOrSlave: whether be host apparatus IRF System splitting before, 0 represents not if representing described Active member device, 1 represents and is.
Further, each Active member device is after mutual complete Active information to each other, further the Active information of this IRF system and the Active information that other IRF systems received send over are subtracted each other, if both subtract each other after difference be less than 0, then by this IRF system migration to Recovery state, and close corresponding service port.
As can be seen from the above technical solutions, clash handle settlement mechanism between the multi-Active member device that the invention provides a kind of IRF system, efficiently, reasonably to solve above-mentioned conflict when can there is the conflict of multi-Active member device in IRF system, reduce the impact on existing network to greatest extent.
Embodiment
In order to realize the object of the invention, the core concept that the present invention adopts is: when detecting multiple Active member device after IRF system stacking splitting, network member device's number that the IRF system calculating each Active member device place has, keep the many IRF systems of network equipment number to be in Active state, other IRF system migrations are to Recovery state; Collect the single board default information of IRF system, the IRF that there is single board default is moved to Recovery state; In multi-Active member device, find original host apparatus, keep Active state to the IRF system at original host apparatus place, other IRF system migration is to Recovery state.By the present invention, when there is multi-primary apparatus conflict after IRF can be made to divide, web influence is reduced to minimum.
For making technical solution of the present invention clearly with 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, when detecting in described IRF system that there is two or more Active member device conflicts, mainly comprise the steps:
Network member device's number that step 1, the IRF system calculating each Active member device place have, keep network equipment number many IRF system to be in Active state, other IRF system migrations are to Recovery state.
Particularly, when after IRF system generation stacking splitting, when detecting in described IRF system that there is two or more Active member device conflicts, network member device's number that after calculating division by IRF computing module, the IRF system at each Active member device place has, and the network equipment number that after comparing division further, the IRF system at multiple Active member device place has separately, for realizing the object of the invention, preferably, the many IRF systems of network equipment number are kept to be in Active state, other IRF system then moves to Recovery state, to ensure that the IRF systematic function after dividing obtains maximum performance.
The single board default information of step 2, collection IRF system, moves to Recovery state by the IRF that there is single board default.
Particularly, collected the single board default information of IRF system by IRF fault detection module, and by the single board default information feed back collected to IRF analysis module.If within the certain hour of IRF System splitting, described IRF analysis module judges that single board default has appearred in certain IRF, then we can suspect it may is the IRF division 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 of single board default will be there is to Recovery state, the network interruption caused to avoid single board default.
Step 3, in multi-Active member device, find original host apparatus, keep Active state to the IRF system at original host apparatus place, other IRF system migration is to Recovery state.
Particularly, for member device for subsequent use after avoiding IRF System splitting upgrades to the brief interruption causing network in the process of host apparatus.Preferably, in embodiments of the present invention, need the primary member device found in multi-Active member device further before IRF System splitting, if existed, then keep Active state to the IRF system at original host apparatus place, other IRF system migration is to Recovery state.
Further, when carrying out realizing of multi-primary apparatus conflict solution according to said method, specifically LACP(LinkAggregationControlProtocol can be passed through, Link Aggregation Control Protocol) etc. the protocol massages Active information of carrying mutual to what realize between multi-host apparatus, as shown in Figure 5, the message format of Active information interaction is carried out by LACP agreement between described multi-host apparatus as follows:
IRFAbility: represent the network equipment number that this IRF system has.
IRFStatus: represent in this IRF whether there is failing single board, 0 represents to exist, and 1 represents not exist.
MasterOrSlave: whether be host apparatus IRF System splitting before, 0 represents not if representing described Active member device, 1 represents and is.
During specific implementation, undertaken by following flow process:
Detect when there is multiple Active member device after IRF System splitting, this Active member device send carry local record IRF system banner, Active device identification and above-mentioned Active information neighbor advertisement (NA) message.
The Active information of this IRF system and the Active information that other IRF systems received send over are subtracted each other by each Active member device further that receive NA message, if both subtract each other after difference be less than 0, then illustrate that this IRF needs to move to 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 carried in NA message is greater than the election priority of the Active device id of local record, therefore, illustrate that the member device sending this NA message should be Active equipment, for avoiding that multi-Active member conflict occurs in IRF system, now, local host apparatus exits Active state.Namely member device enters recovery state after exiting Active state, the member device being in recovery state can not participate in the election of Active equipment until fault recovery backed off after random recovery state, thus ensures that this member device can not cause multi-Active device conflict again when recovery state.
It should be noted that, above each number of steps only for convenience of description, when specific implementation, can exchange arbitrarily as required by the order of each step.In addition, when realizing the object of the invention, also only can implement a step in above-mentioned steps or multiple step as required.In the present invention must not in this, as the foundation of the limit scope of the invention.
In order to make, technical solution of the present invention is easier to understand to be understood, is embodied as example is below further described with the present invention under a certain embody rule scene.As shown in Figure 6, IRF1 and IRF2 is merged into an IRF system by 4 network member device, and before described IRF system stacking splitting, the left side network member device in described IRF2 is host apparatus.The described IRF system of further hypothesis, when dividing, is occurred fault by the Port1 place veneer of IRF1.
So, according to the processing method of the multi-primary apparatus conflict of foregoing description of the present invention, the Active interactive information between the host apparatus between IRF1 and IRF2 is as follows respectively:
IRF1:
IRFAbility---, owing to there being two network equipments, is set to 2
IRFStatus---is owing to there being single board default, and institute thinks suspects fault IRF, is set to 0
MasterOrSlave---two network equipments are stand-by equipment, are set to 0
IRF2:
IRFAbility---, owing to there being two network equipments, is set to 2
IRFStatus---, owing to not having single board default, is set to 1
MasterOrSlave---was once host apparatus owing to there being 1, was set to 1
IRF1 and IRF2 is by after LACP message each other mutual complete Active information, the Active interactive information sended over due to Active interactive information and the IRF2 that receives of IRF1 subtract each other after difference be less than 0, therefore, IRF1 is moved to Recovery state.
The present invention provides a kind of device of process of multi-primary apparatus conflict simultaneously.Wherein said application of installation is after IRF system generation stacking splitting, and when detecting in described IRF system that there is two or more Active member device conflicts, described device at least comprises a module in following module:
IRF computing module, for network member device's number that the IRF system calculating each Active member device place has, and network member device's number that more described each IRF system has, keep the many IRF systems of network equipment number to be in Active state, other IRF system migrations are to Recovery state.
Particularly, when detecting after IRF system stacking splitting in described IRF system that there is two or more Active member device conflicts, network member device's number that after calculating division by described IRF computing module, the IRF system at each Active member device place has, and the network equipment number that after comparing division further, the IRF system at multiple Active member device place has separately, the many IRF systems of network equipment number are kept to be in Active state, other IRF system then moves to Recovery state, to ensure that the IRF systematic function after dividing obtains maximum performance.
IRF detects analysis module, for collecting the single board default information of IRF system, when confirming that described IRF exists single board default, the IRF that there is single board default is moved to Recovery state.
Particularly, collected the single board default information of IRF system according to predetermined strategy (such as: be detect in the cycle with certain hour) by IRF fault detection analysis module, and by the single board default information feed back collected to IRF analysis module.If within 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, then we can suspect it may is the IRF division 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 of single board default will be there is to Recovery state, the network interruption caused to avoid single board default.
IRF searches module, and for finding original host apparatus in multi-Active member device, keep Active state to the IRF system at original host apparatus place, other IRF system migration is to Recovery state.
Particularly, for member device for subsequent use after avoiding IRF System splitting upgrades to the brief interruption causing network in the process of host apparatus.Preferably, in embodiments of the present invention, described IRF searches the primary member device that module needs to find in multi-Active member device further before IRF System splitting, if existed, then keep Active state to the IRF at original host apparatus place, other IRF moves to Recovery state.
Further, when described device carries out realizing of multi-primary apparatus conflict solution, each intermodule specifically can pass through LACP(LinkAggregationControlProtocol, Link Aggregation Control Protocol) etc. protocol massages to carry corresponding information mutual to what realize between multi-Active member device, as shown in Figure 5, the message format of Active information interaction is carried out by LACP agreement between described multi-host apparatus as follows:
IRFAbility: represent the network equipment number that this IRF system has.
IRFStatus: represent in this IRF whether there is failing single board, 0 represents to exist, and 1 represents not exist.
MasterOrSlave: whether be host apparatus IRF System splitting before, 0 represents not if representing described Active member device, 1 represents and is.
According to embodiments of the present invention, the Active interactive information of this IRF and the Active interactive information that other IRF received send over are subtracted each other by each Active member device further, if both subtract each other after difference be less than 0, then illustrate that this IRF needs to move to Recovery state, and close corresponding service port.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.