CN104104596B - A kind of IRF divides treating method and apparatus - Google Patents

A kind of IRF divides treating method and apparatus Download PDF

Info

Publication number
CN104104596B
CN104104596B CN201410363316.7A CN201410363316A CN104104596B CN 104104596 B CN104104596 B CN 104104596B CN 201410363316 A CN201410363316 A CN 201410363316A CN 104104596 B CN104104596 B CN 104104596B
Authority
CN
China
Prior art keywords
member device
irf
equipment
information
device information
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
CN201410363316.7A
Other languages
Chinese (zh)
Other versions
CN104104596A (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 Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410363316.7A priority Critical patent/CN104104596B/en
Publication of CN104104596A publication Critical patent/CN104104596A/en
Application granted granted Critical
Publication of CN104104596B publication Critical patent/CN104104596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a kind of IRF to divide treating method and apparatus, and technical scheme is:Each member device is connected with an intermediate equipment in IRF, member device information is transmitted between IRF member devices using intermediate equipment, by the quality for comparing member device information, determine to need to close the member device of all service ports according to comparative result, so that member device information is not that optimal IRF all service ports are closed after division, and the optimal IRF of member's facility information continues to undertake data forwarding work.

Description

A kind of IRF divides treating method and apparatus
Technical field
The present invention relates to communication technical field, more particularly to a kind of IRF divisions treating method and apparatus.
Background technology
IRF (Intelligent Resilient Framework, intelligent elastic framework) technology is a kind of software virtualization Technology, its principle are to connect more physical equipments by IRF ports, and progress is necessary with postponing, and virtually turns to one Logical device, referred to as IRF.The hardware resource and software processing capability of multiple devices can be gathered using IRF technologies, there is provided powerful Extended capability, realize the collaborative works of multiple devices, unified management and uninterrupted safeguard.
Every equipment in IRF is referred to as member device, is divided by function, and member device is divided into two kinds:It is primary (Master) equipment, it is responsible for whole IRF;Subordinate (Slave) equipment, the alternate device as host apparatus are run.Work as master During with equipment fault, system can elect a new host apparatus in a slave device automatically.IRF uses member number-mark member Equipment, to be managed to it, all member's numberings must be unique.Each IRF uniquely corresponds to an IRF domain, makes between IRF Made a distinction with Field Number (DomainID).IRF schematic diagrames as shown in Figure 1, physical equipment A, B, C by IRF links successively Connection, form an IRF.Wherein, device A is Master equipment, and other equipment is slave.Device A, B, C are each equipped with One member for being different from other member devices numbers.IRF itself is also configured with a Field Number for being different from other IRF.
IRF link failures can cause IRF to split into multiple IRF, and there is the multiple IRF formed after division identical route to match somebody with somebody Put, therefore network failure can be caused, such as IP address conflict.By taking Fig. 1 as an example, when the IRF links event between device A and equipment B After barrier, device A forms an IRF1;Equipment B and equipment C-shaped are into another IRF2;IRF1 and IRF2 has identical IP address, Therefore after IRF1 is connected with IRF2 by other links, it may appear that IP address conflict.
In order to solve the above problems, prior art provides MAD (Multi-Active Detection, multi-Active inspection Survey) mechanism.MAD mechanism has three kinds of division detection, clash handle, fault recovery functions, by entering when detecting IRF divisions Row respective handling, the network failure caused by IRF divides can be avoided.
It presently, there are a variety of MAD divisions testing mechanisms, such as the division detection machine based on two-way converting detection (BFD) technology System, the division testing mechanism based on Link Aggregation Control Protocol (LACP) expansion technique.
LACP MAD divide what testing mechanism was realized by extending LACP protocol massages content, i.e., member device is by mutually sending out LACP protocol massages interact IRF DomainID and ActiveID (being numbered for the member of main equipment), according to DomainID and ActiveID comparative results determine whether IRF divisions occur.Below by taking Fig. 2 as an example, LACP MAD principle is carried out specifically It is bright.
Referring to Fig. 2, Fig. 2 is IRF networking schematic diagram of the prior art based on LACP MAD, and Fig. 2 is based on Fig. 1, device A, set Standby B, equipment C pass sequentially through IRF links and are connected to form IRF, and are connected by polymerizeing Member Link with intermediate equipment.
The LACP protocol massages that device A sends carrying DomainID and ActiveID by polymerizeing Member Link are set to centre It is standby, wherein DomainID and ActiveID is obtained by intermediate equipment and is sent to equipment B and equipment C by LACP protocol massages, So that equipment B and equipment C obtains device A place IRF DomainID and ActiveID, and with IRF's where itself DomainID and ActiveID are compared, and DomainID is different, then is not belonging to same IRF, it is not necessary to carry out MAD processing; DomainID and ActiveID all sames, then IRF divisions do not occur;DomainID is identical and ActiveID is different, then IRF occurs Division.Similarly, equipment B and equipment C also can send carrying DomainID and ActiveID LACP by polymerizeing Member Link Protocol massages are forwarded to other each member devices to intermediate equipment, and by intermediate equipment.Finally, all member devices all in accordance with DomainID and ActiveID comparative results determine whether IRF divisions occur.
Assuming that IRF1 is formed after IRF link failures between device A and equipment B (only including a member device:Device A) With IRF2 (including two member devices:Equipment B and equipment C);Then IRF1 and IRF2 DomainID is identical, and ActiveID is not Together, now, when device A, equipment B and equipment C interact DomainID and ActiveID by intermediate equipment, it will detect IRF divides.After IRF divisions, IRF minimum ActiveID works on, and other IRF enter Recovery states, do not exist temporarily Forwarding service message.
In practical implementations, detected because different vendor realizes that LACPMAD divides using different extension LACP protocol massages, Intermediate equipment realizes that function also differs, and causes the selection of intermediate equipment to be limited.In addition, when IRF member devices receive carrying ActiveID be different from itself where IRF ActiveID LACP protocol massages when, it is determined that occur IRF division go forward side by side The corresponding division processing of row, if IRF member devices receive the message of this malicious attack on network, will bring peace to IRF Full hidden danger.In addition, after IRF divisions, determine to continue the IRF of normal operation according only to ActiveID sizes, optimal IRF can not be selected To continue bearer traffic, for example, the equipment that the IRF for continuing normal operation is included is less, transfer capability is weaker, and for example, if IRF Division is because forwarding failure causes IRF to divide caused by the interface board or web plate of IRF member devices, then is somebody's turn to do after IRF divisions Forwarding failure will occurs in IRF where IRF member devices, the IRF of normal operation should not be selected as, however, existing method IRF where the IRF member devices can not be excluded is selected as the IRF of normal operation possibility.
The content of the invention
In view of this, it is an object of the invention to provide a kind of IRF to divide treating method and apparatus, can optimize IRF points Split processing.
In order to achieve the above object, the invention provides following technical scheme:
A kind of IRF divides processing method, and each member device is connected with an intermediate equipment in the IRF;This method is applied to Any member equipment in the IRF, including:
This member device information is sent to intermediate equipment so that intermediate equipment by this member device information announcement to other Each member device;
When receiving other member device information of intermediate equipment notice, compare this member device information and it is described its Its member device information, if other member device information are better than this member device information, this member device is connected The port of the intermediate equipment is arranged to non-selected port, this member device is connected all outside the port of the intermediate equipment Service port is closed, and otherwise, keeps this member device to connect the selected state of the port of the intermediate equipment.
A kind of IRF divides processing unit, and each member device is connected with an intermediate equipment in the IRF;The device is applied to Any member equipment in the IRF, including:Transmitting element, receiving unit, processing unit;
Transmitting element, for this member device information to be sent into intermediate equipment, so that intermediate equipment is by this member device Information announcement gives other each member devices;
Receiving unit, for receiving other member device information of the intermediate equipment notice;
Processing unit, when receiving other member device information of the intermediate equipment notice for receiving unit, compare This member device information and other member device information, if other member device information are believed better than this member device Breath, the then port that this member device is connected to the intermediate equipment are arranged to non-selected port, by described in the connection of this member device All service ports outside the port of intermediate equipment are closed, and otherwise, keep this member device to connect the port of the intermediate equipment Selected state.
As can be seen from the above technical solution, the present invention in, in IRF each member device using intermediate equipment transmit itself into Member's facility information also obtains other each member device information to other each member devices, by comparing member device information, The port of IRF connection intermediate equipments corresponding to optimal member device information is arranged to choose port, allows it to continue to hold Flow transmission is carried on a shoulder pole, and the IRF corresponding to non-optimal member device information is then by all industry in addition to the port of connection intermediate equipment Business port shutdown, no longer undertake flow transmission.Quality of the invention by comparing member device information, optimal IRF is selected to carry Flow transmits, therefore can optimize IRF divisions processing.
Brief description of the drawings
Fig. 1 is prior art IRF schematic diagrames;
Fig. 2 is IRF networking schematic diagram of the prior art based on LACP MAD;
Fig. 3 is the IRF of the embodiment of the present invention one division process flow figures;
Fig. 4 is the IRF of the embodiment of the present invention two division process flow figures;
Fig. 5 is the IRF of the embodiment of the present invention three division process flow figures;
Fig. 6 is the IRF of the embodiment of the present invention four division process flow figures;
Fig. 7 is the virtual SYSTEM-ID-MAC of embodiment of the present invention form schematic diagram;
Fig. 8 is the structural representation of IRF of embodiment of the present invention division processing units.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with the accompanying drawings and according to embodiment, Technical scheme is described in detail.
In the present invention, each member device is connected with an intermediate equipment in IRF, using intermediate equipment in IRF member devices Between transmit member device information, by comparing the quality of member device information, determine to need to close according to comparative result all The member device of service port, so that member device information is not that optimal IRF all service ports are closed after division Close, and the optimal IRF of member's facility information continues to undertake data forwarding work.
Referring to Fig. 3, Fig. 3 is the IRF of the embodiment of the present invention one division process flow figures, in IRF each member device with One intermediate equipment is connected, and the port that each member device connects the intermediate equipment in initial IRF is selected state.This method master Comprise the following steps:
The member device information of itself is sent to intermediate equipment by any member equipment in step 301, IRF.
After step 302, intermediate equipment receive the member device information, by the member device information announcement to its in IRF Its each member device.
After step 303, other each member devices receive the member device information of intermediate equipment notice, judge to receive Member device information whether be better than the member device information of itself, if it is, itself to be connected to the end of the intermediate equipment Mouth is arranged to non-selected port, and all service ports in addition to the non-selected port are closed, and otherwise, keeps described in itself connection The selected state of the port of intermediate equipment.
In the embodiment of the present invention shown in Fig. 3, the member device information includes company OUI (Organizationally Unique identifier, organization unique identifier) mark, Field Number, member device be currently located IRF priority, member Number of devices, ActiveID etc., wherein, company OUI marks can be with one company of unique mark.Company OUI before and after being divided due to IRF The information such as mark, Field Number are constant, thus can be currently located according to member device IRF priority, member device number, ActiveID orders compare the quality of two member device information, are currently located the higher member device of IRF priority, its into Member's facility information is more excellent;When the priority that two member devices are currently located IRF is identical, IRF member device number is currently located More member device, its member device information are more excellent;Two member devices are currently located IRF priority and member device number During all same, the IRF ActiveID smaller or larger member device (citings that following member device information compares are currently located In, carry out that member device information is excellent slightly to be compared with the less member devices of ActiveID, exemplified by its member device information is optimal Compared with), its member device information is more excellent.
Below by taking Fig. 2 as an example, the embodiment of the present invention shown in Fig. 3 is illustrated.
It is 1 by device A, equipment B and equipment the C IRF formed priority assuming that in Fig. 2, device A, equipment B, equipment C Member numbering be respectively:10th, 20,30, then the ActiveID of the IRF is that 10 (member numbers minimum member device and elected For Master equipment, IRF ActiveID is member's numbering of Master equipment);When initial, device A, equipment B, equipment C connect The port for connecing intermediate equipment is to choose port.
The disposition that IRF does not divide:
(IRF priority is that 1, IRF members set to the member device information that device A, equipment B, equipment C are sent to intermediate equipment The ActiveID that standby number is 3, IRF is 10) all same, therefore device A receives equipment B member device information and equipment C Member device information when, because the member device information of the member device information and device A itself received is identical, and can keep The selected state of itself connection intermediate equipment, all service ports of device A are not turned off.
When same reason, equipment B and equipment C receive other member device information, because of the member device letter received Breath is identical with the member device information of itself, also can keep the selected state of itself connection intermediate equipment, not turn off itself All service ports.
As can be seen that according to method shown in Fig. 3, when IRF does not divide, IRF normal operations, IRF flows will not be forwarded and produced Raw any influence.
The disposition of IRF divisions:
IRF is caused to be split into IRF1 (being made up of device A) and IRF2 when the IRF links between device A and equipment B disconnect After (being made up of equipment B and equipment C), IRF1 and IRF2 priority and original IRF priority are consistent, and are still 1;IRF1 Member device number be 1, ActiveID 10;IRF2 member device number is 2, ActiveID 20.
Therefore, in the member device information of device A, IRF priority, member device number and ActiveID are respectively 1,1, 10;In equipment B member device information, IRF priority, member device number and ActiveID are respectively 1,2,20;Equipment C into Member's facility information is identical with equipment B member device information.
Device A, equipment B and equipment C can send the member device information of itself to intermediate equipment, and be led to by intermediate equipment Accuse to other member devices, wherein,
It is excellent by comparing member device information when equipment B and/or equipment C that device A receives member device information It is bad, determine that the member device information of device A is inferior to equipment B and equipment C member device information, therefore by among device A connection The port of equipment is arranged to non-selected port, all service ports in addition to the port of connection intermediate equipment on pass hull closure A.
When the member device information for the device A that equipment B is received, by comparing member device information quality, it is determined that setting Standby B member device information is better than the member device information of device A, therefore keeps the choosing of the port of equipment B connection intermediate equipments Middle state;When equipment B receives equipment C member device information, by comparing member device information quality, equipment B is determined Member device information it is identical with equipment C member device information, therefore keep the port of equipment B connection intermediate equipments to choose State.
When the member device information for the device A that equipment C is received, by comparing member device information quality, it is determined that setting Standby C member device information is better than the member device information of device A, therefore keeps the choosing of the port of equipment C connection intermediate equipments Middle state;When equipment C receives equipment B member device information, by comparing member device information quality, equipment C is determined Member device information it is identical with equipment B member device information, therefore keep the port of equipment C connection intermediate equipments to choose State.
As can be seen that according to method shown in Fig. 3, after IRF divisions, in the IRF1 be made up of device A, except in device A connection Between equipment port outside all service ports be closed, IRF1 do not undertake data traffic forwarding.By equipment B and equipment C structures Into IRF2 in, all service ports are not closed, thus IRF2 undertake data traffic forwarding.
Referring to Fig. 4, Fig. 4 is the IRF of the embodiment of the present invention two division process flow figures, in IRF each member device with One intermediate equipment is connected, and the port that each member device connects the intermediate equipment in initial IRF is selected state.This method master Comprise the following steps:
The member device information of itself is sent to intermediate equipment by any member equipment in step 401, IRF.
After step 402, intermediate equipment receive the member device information, compare the member device information and work as with intermediate equipment The optimal member device information of preceding record, if the member device information is better than the optimal member device of intermediate equipment current record Information, then the optimal member device information for updating intermediate equipment current record is the member device information, and by the member device Information announcement other each member devices into IRF, go to step 403, otherwise, abandon the member device information.
After step 403, other each member devices receive the member device information, the member device information received is judged Whether the member device information of itself is better than, if it is, the port that itself is connected to the intermediate equipment is arranged to non-selected Port, all service ports in addition to the non-selected port are closed, otherwise, keep itself connecting the port of the intermediate equipment Selected state.
In the embodiment of the present invention shown in Fig. 4, the member device information includes company OUI marks, Field Number, member device It is currently located IRF priority, member device number, ActiveID etc..IRF can be currently located according to member device preferential successively Level, member device number, ActiveID order compare the quality of two member device information, specifically relatively two member device information Good and bad method two good and bad methods of member device information compared with embodiment illustrated in fig. 3 are identical, repeat no more.
Below by taking Fig. 2 as an example, the embodiment of the present invention shown in Fig. 4 is illustrated.
It is 1 by device A, equipment B and equipment the C IRF formed priority assuming that in Fig. 2, device A, equipment B, equipment C Member numbering be respectively:10th, 20,30, then the ActiveID of the IRF is that 10 (member numbers minimum member device and elected For Master equipment, IRF ActiveID is member's numbering of Master equipment);When initial, device A, equipment B, equipment C connect The port for connecing intermediate equipment is to choose port.
The disposition that IRF does not divide:
When IRF does not divide, (IRF priority is for member device information that device A, equipment B, equipment C are sent to intermediate equipment The ActiveID that 1, IRF member device number is 3, IRF is 10) all same, therefore intermediate equipment only sets the member received at first For information announcement to other member devices, the member device information hereafter received is identical with the member device information received at first, Therefore, noticed without member device.
Assuming that intermediate equipment is initially received the member device information of device A transmission, then because intermediate equipment is current not yet Record optimal device information, therefore by optimal device information updating be device A member device information, while by device A into Member's facility information is advertised to equipment B and equipment C.
When equipment B receives the member device information of device A, because the member device information received is with equipment B's itself Member device information is identical, and can keep the selected state of itself connection intermediate equipment, does not turn off all business ends of itself Mouthful.
When equipment C receives the member device information of device A, because the member device information received is with equipment C's itself Member device information is identical, and can keep the selected state of itself connection intermediate equipment, does not turn off all business ends of itself Mouthful.
The member device information that device A does not receive equipment B and equipment C all the time is additionally, since, therefore it connects intermediate equipment Port be always selected state, service port is also not turned off.Finally, all service ports in IRF are not closed, IRF normal operations.
As can be seen that according to method shown in Fig. 4, when IRF does not divide, IRF normal works, IRF flows will not be forwarded and produced Raw any influence.
The disposition of IRF divisions:
IRF is caused to be split into IRF1 (being made up of device A) and IRF2 when the IRF links between device A and equipment B disconnect After (being made up of equipment B and equipment C), IRF1 and IRF2 priority and original IRF priority are consistent, and are still 1;IRF1 Member device number be 1, ActiveID 10;IRF2 member device number is 2, ActiveID 20.
Therefore, in the member device information of device A, IRF priority, member device number and ActiveID are respectively 1,1, 10;In equipment B member device information, IRF priority, member device number and ActiveID are respectively 1,2,20;Equipment C into Member's facility information is identical with equipment B member device information.
Device A, equipment B and equipment C can send the member device information of itself to intermediate equipment, and by intermediate equipment root Odds according to the optimal member device information of the member device information and current record that receive relatively determines whether to receive Member device information announcement give other member devices.Sent assuming that intermediate equipment is sequentially received device A, equipment B, equipment C Member device information, then,
When intermediate equipment receives the member device information of device A, by the optimal member device information of current record more New is the member device information of device A, and by the member device information announcement of device A to equipment B and equipment C.Equipment B is received During the member device information of device A, by comparing member device information quality, determine that the member device information of itself is better than equipment A member device information, therefore keep the selected state of the port of itself connection intermediate equipment.Equipment C receive device A into During member's facility information, by comparing member device information quality, determine that the member device information of itself is set better than the member of device A Standby information, therefore keep the selected state of the port of itself connection intermediate equipment.
When intermediate equipment receives equipment B member device information, the member device information and centre that compare equipment B are set The quality of the optimal member device information (being now the member device information of device A) of standby current record, determine equipment B member Facility information is better than the optimal member device information of intermediate equipment current record, therefore, by the optimal of intermediate equipment current record Member device information updating is equipment B member device information, and equipment B member device information announcement to device A and is set Standby C.When device A receives equipment B member device information, by comparing member device information quality, the member of itself is determined Facility information is inferior to equipment B member device information, therefore the port of itself connection intermediate equipment is arranged into unselected state, And close all service ports of itself.When equipment C receives equipment B member device information, believed by comparing member device Breath is good and bad, determines that the member device information of itself is identical with equipment B member device information, therefore keeps setting among itself connection The selected state of standby port.
When intermediate equipment receives equipment C member device information, the member device information and centre that compare equipment C are set The quality of the optimal member device information (being now equipment B member device information) of standby current record, determine equipment C member Facility information is identical with the optimal member device information of intermediate equipment current record, therefore, is noticed without member device.
As can be seen that in method shown in Fig. 4, after IRF divisions, intermediate equipment passes through the member device information that will receive It is compared with the optimal member device information of current record, only when the member device information received is better than current record most During excellent member device information, just continue member device information by relative to method shown in Fig. 3, it is possible to reduce bandwidth provides Source wastes.Moreover, according to method shown in Fig. 4, after IRF divisions, in the IRF1 be made up of device A, all service ports are closed Close, IRF1 does not undertake data traffic forwarding.In the IRF2 be made up of equipment B and equipment C, all service ports are not closed, Therefore IRF2 undertakes data traffic forwarding.
Referring to Fig. 5, Fig. 5 is the IRF of the embodiment of the present invention three division process flow figures, in IRF each member device with One intermediate equipment is connected, it is desirable to which the port that each member device connects the intermediate equipment in initial IRF is selected state.The party Method mainly includes the following steps that:
The member device information of itself is sent to intermediate equipment by any member equipment in step 501, IRF.
After step 502, intermediate equipment receive the member device information, compare the member device information and work as with intermediate equipment The optimal member device information of preceding record, if the member device information is better than the optimal member device of intermediate equipment current record Information, then the optimal member device information for updating intermediate equipment current record is the member device information, and by the member device Information announcement other each member devices into IRF, go to step 503, otherwise, abandon the member device information.
After step 503, other each member devices receive the member device information, if itself is Master equipment, Whether the member device information for judging to receive is better than the member device information of itself, if so, itself then is connected into the centre The port of equipment is arranged to non-selected port, and determines whether that all member devices connection in IRF where itself is described Between the port of equipment whether be non-selected port, be that each member device in IRF where itself is then connected into the intermediate equipment Port outside all service ports close (that is, all service ports that itself will connect the intermediate equipment are closed, simultaneously Other each member devices of IRF where itself also are connected into all service ports outside the port of the intermediate equipment to close);Such as Fruit itself is Slave equipment, then the member device information received is sent into Master equipment.
The embodiment of the present invention further comprises shown in Fig. 5:When any member equipment is as Master equipment, if received The member device information that Slave equipment is sent, then compare the member device of member device information that this receives and Slave equipment The quality of information, if the member device information received is better than the member device information of Slave equipment, Slave is set The standby port for connecting the intermediate equipment is arranged to non-selected port, and determines whether that any member equipment is currently located Whether the port that each member device in IRF connects the intermediate equipment is not non-selected port, is then by any member Equipment is currently located all service ports that each member device in IRF is connected outside the port of the intermediate equipment and closed.
In the embodiment of the present invention shown in Fig. 5, the member device information includes company OUI marks, Field Number, member device It is currently located IRF priority, member device number, ActiveID etc..IRF can be currently located according to member device preferential successively Level, member device number, ActiveID order compare the quality of two member device information, specifically relatively two member device information Good and bad method two good and bad methods of member device information compared with embodiment illustrated in fig. 3 are identical, repeat no more.
Below by taking Fig. 2 as an example, the embodiment of the present invention shown in Fig. 5 is illustrated.
It is 1 by device A, equipment B and equipment the C IRF formed priority assuming that in Fig. 2, device A, equipment B, equipment C Member numbering be respectively:10th, 20,30, then the ActiveID of the IRF is that 10 (member numbers minimum member device and elected For Master equipment, IRF ActiveID is member's numbering of Master equipment);When initial, device A, equipment B, equipment C connect The port for connecing intermediate equipment is to choose port.
The disposition that IRF does not divide:
When IRF does not divide, device A is Master equipment, and equipment B and equipment C are Slave equipment, device A, equipment B, (IRF priority is the ActiveID that 1, IRF member devices number is 3, IRF to the member device information that equipment C is sent to intermediate equipment For 10) all same, thus intermediate equipment only by the member device information announcement received at first to other member devices, hereafter receive Member device information it is identical with the member device information received at first, therefore, noticed without member device.
Assuming that intermediate equipment is initially received the member device information of device A transmission, then because intermediate equipment is current not yet Record optimal device information, therefore by optimal device information updating be device A member device information, while by device A into Member's facility information is advertised to equipment B and equipment C.
When equipment B receives the member device information of device A, because device A is Master equipment, equipment B sets for Slave It is standby, therefore the member device information of device A is sent to device A;Device A judges to determine the member device information that equipment B is sent It is identical with equipment B itself member device information, thus the selected state of equipment B connection intermediate equipments is kept, do not turn off certainly All service ports of body.
Same reason, when equipment C receives the member device information of device A, because device A is Master equipment, equipment C For Slave equipment, therefore the member device information of device A is sent to device A;Device A judges to determine the member that equipment C is sent The member device information of facility information and equipment C itself is identical, thus keeps the selected state of equipment C connection intermediate equipments, no All service ports of itself can be closed.
Moreover, device A does not receive equipment B and equipment C member device information all the time, therefore it connects the end of intermediate equipment Mouth is always selected state, and service port is also not turned off.
Finally, all service ports in IRF are not closed, IRF normal operations.
As can be seen that according to method shown in Fig. 5, when IRF does not divide, IRF normal operations, flow forwarding will not receive shadow Ring.
The disposition of IRF divisions:
(it is made up of when the IRF links disconnection between device A and equipment B causes IRF to be split into IRF1 device A, device A is Master equipment) and IRF2 (being made up of equipment B and equipment C, equipment B is Master equipment, and equipment C is Slave equipment) after, IRF1 and IRF2 priority and original IRF priority are consistent, and are still 1;IRF1 member device number is 1, ActiveID is 10;IRF2 member device number is 2, ActiveID 20.
Therefore, in the member device information of device A, IRF priority, member device number and ActiveID are respectively 1,1, 10;In equipment B member device information, IRF priority, member device number and ActiveID are respectively 1,2,20;Equipment C into Member's facility information is identical with equipment B member device information.
Device A, equipment B and equipment C can send the member device information of itself to intermediate equipment, and by intermediate equipment root Odds according to the optimal member device information of the member device information and current record that receive relatively determines whether to receive Member device information announcement give other member devices, it is assumed that intermediate equipment be sequentially received device A, equipment B, equipment C send Member device information, then,
When intermediate equipment receives the member device information of device A, by the optimal member device information of current record more New is the member device information of device A, and by the member device information announcement of device A to equipment B and equipment C.Equipment B is received During the member device information of device A, by comparing member device information quality, determine that the member device information of itself is better than equipment A member device information, therefore keep the selected state of the port of itself connection intermediate equipment.Equipment C receive device A into During member's facility information, because equipment B is Master equipment, equipment C is Slave equipment, therefore the member device information of device A is sent out It is sent to equipment B;The member device information and the quality of equipment C member device information that equipment B is received by comparing, it is determined that setting Standby C member device information is better than the member device information received, therefore keeps the choosing of the port of equipment C connection intermediate equipments Middle state.
When intermediate equipment receives equipment B member device information, the member device information and centre that compare equipment B are set The quality of the optimal member device information (being now the member device information of device A) of standby current record, determine equipment B member Facility information is better than the optimal member device information of intermediate equipment current record, therefore, by the optimal of intermediate equipment current record Member device information updating is equipment B member device information, and equipment B member device information announcement to device A and is set Standby C.When device A receives equipment B member device information, because itself is Master equipment, therefore set by comparing member Standby information is good and bad, determines that the member device information of itself is inferior to equipment B member device information, therefore will be set among itself connection Standby port is arranged to unselected state, and because it is non-choosing that IRF1, which only includes device A and the port of device A connection intermediate equipment, Middle port, therefore all service ports outside the port of pass hull closure A connection intermediate equipments.Equipment C receives equipment B member During facility information, because equipment B is Master equipment, equipment C is Slave equipment, therefore equipment B member device information is sent out It is sent to equipment B;The member device information and the quality of equipment C member device information that equipment B is received by comparing, it is determined that setting Standby C member device information is identical with the member device information received, therefore keep the port of equipment C connection intermediate equipments Selected state.
When intermediate equipment receives equipment C member device information, the member device information and centre that compare equipment C are set The quality of the optimal member device information (being now equipment B member device information) of standby current record, determine equipment C member Facility information is identical with the optimal member device information of intermediate equipment current record, therefore, is noticed without member device.
As can be seen that in method shown in Fig. 5, after IRF divisions, intermediate equipment passes through the member device information that will receive It is compared with the optimal member device information of current record, only when the member device information received is better than current record most During excellent member device information, just continue member device information announcement, relative to method shown in Fig. 3, it is possible to reduce bandwidth provides Source wastes.Moreover, according to method shown in Fig. 4, after IRF divisions, in the IRF1 be made up of device A, all service ports are closed Close, IRF1 does not undertake data traffic forwarding.In the IRF2 be made up of equipment B and equipment C, all service ports are not closed, Therefore IRF2 undertakes data traffic forwarding.
Referring to Fig. 6, Fig. 6 is the IRF of the embodiment of the present invention four division process flow figures, in IRF each member device with One intermediate equipment is connected, and the port that each member device connects the intermediate equipment in initial IRF is selected state;IRF is with Between equipment enable LACP agreements, and IRF LACP priority is more than the LACP priority of intermediate equipment.This method is mainly wrapped Include following steps:
The member device information of itself is carried and sent in LACP protocol massages by any member equipment in step 601, IRF To intermediate equipment.
In actual applications, in the interconnection equipment for enabling LACP agreements, the higher side of LACP priority is as reference End, prioritizing selection choose port, and end is chosen in the relatively low one end of LACP priority according to what the higher one end of LACP priority selected Mouth determination local terminal chooses port.
In the present embodiment, the member device information includes system information and port information, wherein, system information includes public affairs Department's OUI marks, Field Number, the LACP priority of member device, member device be currently located IRF priority, member device number, The information such as ActiveID;Port information includes the port id that member device connects the intermediate equipment.Here, each member in IRF The LACP priority of the LACP priority and IRF of equipment itself is identical.
The member device also receives the LACP protocol massages of the carrying intermediate equipment information of intermediate equipment transmission, passes through and compares The LACP priority for the intermediate equipment that the LACP priority and intermediate equipment packet of the member device itself contain, determines that IRF is Reference edge.
Step 602, intermediate equipment receive the member device information carried in LACP protocol massages, compare the member Facility information and the optimal member device information of intermediate equipment current record, if the member device information is worked as better than intermediate equipment The optimal member device information of preceding record, then the optimal member device information for updating intermediate equipment current record is the member device Information, and by the member device information announcement into IRF other each member devices, go to step 603, otherwise, abandon the member Facility information.
After intermediate equipment receives the member device information carried in LACP protocol massages, also by comparing the member The LACP priority of equipment and the LACP priority of intermediate equipment determine that IRF is reference edge.
After step 603, other each member devices receive the member device information, if itself is Master equipment, Whether the member device information for judging to receive is better than the member device information of itself, if so, then when the member device received When the system information that packet contains is better than the system information of this member device, this member device is connected to the end of the intermediate equipment Mouth is arranged to non-selected port, and determines whether that all member devices in itself place IRF connect the intermediate equipment Whether port is non-selected port, is then to connect each member device in IRF where itself outside the port of the intermediate equipment All service ports close (that is, all service ports that itself will connect the intermediate equipment are closed, while also by itself All service ports that place IRF other each member devices are connected outside the port of the intermediate equipment are closed);When what is received The system information that member device packet contains is inferior to the system information of this member device or the system information phase with this member device Meanwhile abandon the member device information received;If itself is Slave equipment, the member device information received is sent out It is sent to Master equipment.
The embodiment of the present invention further comprises shown in Fig. 5:When any member equipment is as Master equipment, if received The member device information that Slave equipment is sent, then compare the member device of member device information that this receives and Slave equipment The quality of information, if the member device information received is better than the member device information of Slave equipment, when this is received The system information that contains of member device packet better than system information in the member device information of Slave equipment when, by Slave The port that equipment connects the intermediate equipment is arranged to non-selected port, and determines whether that this member device is currently located IRF In each member device whether connect the port of the intermediate equipment be not non-selected port, be then that this member device is current All service ports that each member device is connected outside the port of the intermediate equipment in the IRF of place are closed;When this receive into The system information that includes of member's facility information be inferior to system information in the member device information of Slave equipment or with Slave equipment Member device information in system information it is identical when, abandon the member device information received.
In the embodiment of the present invention shown in Fig. 6, comparing the good and bad method of two member device information is:System information is preferably Member device, its member device information are more excellent;When the system information of two member devices is identical, the less member of port id sets Standby, its member device information is more excellent.
Before and after being divided due to IRF, the information such as the company OUI marks of member device therein, Field Number will not change (if the member device information received is different from the member device information of itself, illustrates that IRF divides the first two member device An IRF is not belonged to, can directly abandon the member device information received, this is same as the prior art), therefore comparing into The good and bad method of the system information of two member devices without comparing, therefore, can be compared during member's facility information quality For:The higher member device of LACP priority, its system information are more excellent;When the LACP priority of two member devices is identical, when The higher member device of preceding place IRF priority, its system information are more excellent;The LACP priority of two member devices and current During place IRF priority all same, the more member device of IRF member device number is currently located, its system information is more excellent; When the LACP priority of two member devices, the priority for being currently located IRF and member device number all same, IRF is currently located The smaller or larger member devices of ActiveID, its system information is more excellent.
Below by taking Fig. 2 as an example, the embodiment of the present invention shown in Fig. 6 is illustrated.
Assuming that in Fig. 2, the LACP priority for being 1, IRF by device A, equipment B and equipment the C IRF formed priority is 1;Device A, equipment B, equipment C member's numbering are respectively:10th, 20,30, then the ActiveID of the IRF be 10 (member number most Small member device is elected as Master equipment, and IRF ActiveID is member's numbering of Master equipment), device A, set Standby B, the port id of equipment C connection intermediate equipments are respectively 100,200,300;When initial, in device A, equipment B, equipment C connections Between the port of equipment be to choose port.
The disposition that IRF does not divide:
When IRF does not divide, device A is Master equipment, and equipment B and equipment C are Slave equipment.Device A, equipment B, System information all same (identical with IRF facility informations) in equipment C member device, only port information differs.Wherein,
The member device information of device A is:(LACP priority is 1 to the system information of device A, IRF priority is 1, IRF Member device number is 3, IRF ActiveID is the port information (port id 100) that intermediate equipment 10) is connected with device A.If It is for B member device information:(LACP priority is 1 to equipment B system information, IRF priority is 1, IRF member device numbers ActiveID for 3, IRF is the port information (port id 200) that intermediate equipment 10) is connected with equipment B.Equipment C member Facility information is:(LACP priority is 1 to equipment C system information, IRF priority is that 1, IRF member devices number is 3, IRF ActiveID is the port information (port id 300) that intermediate equipment 10) is connected with equipment C.
The member device information of itself can be sent to intermediate equipment by device A, equipment B, equipment C, and by intermediate equipment Relatively determine whether to receive according to the odds of the optimal member device information of the member device information and current record that receive The member device information announcement arrived gives other member devices.Assuming that intermediate equipment is sequentially received device A, equipment B, the member device information that equipment C is sent, then,
After intermediate equipment receives the LACP protocol massages of the Portable device A of device A transmission member device information, due to Intermediate equipment currently not yet records optimal device information, therefore the member device information by optimal device information updating for device A, Simultaneously by the member device information announcement of device A to equipment B and equipment C.
When equipment B receives the member device information of device A, because device A is Master equipment, equipment B sets for Slave It is standby, therefore the member device information of device A is sent to device A;The member device information that device A judges to determine to receive is better than The system information and equipment B member included in equipment B itself member device information and the member device information received is set System information in standby information is identical, thus keeps the selected state of equipment B connection intermediate equipments, does not turn off all of itself Service port.
Same reason, when equipment C receives the member device information of device A, because device A is Master equipment, equipment C For Slave equipment, therefore the member device information of device A is sent to device A;Device A judges to determine that the member received sets The system information and equipment included in standby member device information of the information better than equipment C itself and the member device information received System information in C member device information is identical, thus keeps the selected state of equipment C connection intermediate equipments, does not turn off All service ports of itself.
After intermediate equipment receives the LACP protocol massages of the Portable device B of equipment B transmissions member device information, due to Member device of the intermediate equipment current record optimal device information (being now the member device information of device A) better than equipment B is believed Breath, therefore abandon equipment B member device information.
After intermediate equipment receives the LACP protocol massages of the Portable device C of equipment C transmissions member device information, due to Member device of the intermediate equipment current record optimal device information (being now the member device information of device A) better than equipment B is believed Breath, therefore abandon equipment B member device information.
Moreover, device A does not receive equipment B and equipment C member device information all the time, therefore it connects the end of intermediate equipment Mouth is always selected state, and service port is also not turned off.Again because equipment B and equipment C receives intermediate equipment notice After the member device information of device A, device A as Master equipment by compare determine equipment B, equipment C system information it is equal Identical with the system information of device A, therefore, it is always selected state also to keep equipment B, the port of equipment C connection intermediate equipments, Service port is also not turned off.Finally, all service ports in IRF are not closed, IRF normal operations.
As can be seen that according to method shown in Fig. 6, when IRF does not divide, IRF normal operations, IRF flow is forwarded not by shadow Ring.
The disposition of IRF divisions:
(it is made up of when the IRF links disconnection between device A and equipment B causes IRF to be split into IRF1 device A, device A is Master equipment) and IRF2 (being made up of equipment B and equipment C, equipment B is Master equipment, and equipment C is Slave equipment) after, IRF1 and IRF2 LACP priority is consistent with original IRF LACP priority, is still 1;IRF1 and IRF2 priority It is consistent with original IRF priority, is also 1;IRF1 member device number is 1, ActiveID 10;IRF2 member sets Standby number is 2, ActiveID 20.
Therefore, in the system information that the member device packet of device A contains, LACP priority, IRF priority, Cheng Yuanshe Standby number and ActiveID are respectively 1,1,1,10, in the port information that the member device packet of device A contains, port id 100. In the system information that equipment B member device packet contains, LACP priority, IRF priority, member device number and ActiveID In the port information that respectively 1,1,2,20, equipment B member device packet contain, port id 200.Equipment C member sets In the system information that standby packet contains, LACP priority, IRF priority, member device number and ActiveID are respectively 1,1,2, In the port information that 20, equipment C member device packet contain, port id 300.
Device A, equipment B and equipment C can send the member device information of itself to intermediate equipment, and by intermediate equipment root Odds according to the optimal member device information of the member device information and current record that receive relatively determines whether to receive Member device information announcement give other member devices, it is assumed that intermediate equipment be sequentially received device A, equipment B, equipment C send Member device information, then,
When intermediate equipment receives the member device information of device A, because intermediate equipment currently not yet records optimal set Standby information, therefore by the member device information that the optimal member device information updating of current record is device A, and by device A Member device information announcement is to equipment B and equipment C.When equipment B receives the member device information of device A, because itself is IRF2 Master equipment, therefore by comparing member device information quality, determine that the member device information of itself is better than device A Member device information, therefore keep itself connection intermediate equipment port selected state.Equipment C receive device A into Member facility information when, because equipment B be IRF2 Master equipment, equipment C be IRF2 Slave equipment, therefore by device A into Member's facility information is sent to equipment B;The member device information and equipment C member device information that equipment B is received by comparing Quality, determine that equipment C member device information is better than the member device information that receives, therefore keep equipment C connections centre The selected state of the port of equipment.
When intermediate equipment receives equipment B member device information, the member device information and centre that compare equipment B are set The quality of the optimal member device information (being now the member device information of device A) of standby current record, determine equipment B member Facility information is better than the optimal member device information of intermediate equipment current record, therefore, by the optimal of intermediate equipment current record Member device information updating is equipment B member device information, and equipment B member device information announcement to device A and is set Standby C.When device A receives equipment B member device information, because itself is Master equipment, therefore set by comparing member Standby information is good and bad, determines that the member device information of itself is inferior to equipment B member device information, therefore will be set among itself connection Standby port is arranged to unselected state, and because IRF1 only includes the not non-choosing in port of device A and device A connection intermediate equipment Middle port, therefore all service ports outside the port of pass hull closure A connection intermediate equipments.Equipment C receives equipment B member During facility information because equipment B be IRF2 Master equipment, equipment C be IRF2 Slave equipment, therefore by equipment B into Member's facility information is sent to equipment B;The member device information and equipment C member device information that equipment B is received by comparing Quality, it is determined that member device information of the member device information received better than equipment C and the member device information that receives Comprising system information it is identical with equipment C system information, therefore keep the port of equipment C connection intermediate equipments to choose shape State.
When intermediate equipment receives equipment C member device information, the member device information and centre that compare equipment C are set The quality of the optimal member device information (being now equipment B member device information) of standby current record, determine equipment C member Facility information is identical with the optimal member device information of intermediate equipment current record, therefore, is noticed without member device.
As can be seen that in method shown in Fig. 5, intermediate equipment passes through the member device information that will be received and current record Optimal member device information be compared, only when the member device information received be better than current record optimal member device During information, just continue member device information announcement, relative to method shown in Fig. 3, it is possible to reduce bandwidth resources waste.And And according to method shown in Fig. 6, after IRF divisions, in the IRF1 be made up of device A, all service ports are closed, and IRF1 is not Undertake data traffic forwarding.In the IRF2 be made up of equipment B and equipment C, all service ports are not closed, therefore IRF2 is held Carry on a shoulder pole data traffic forwarding.
In the embodiment of the present invention shown in Fig. 6, LACP protocol massages can be replaced using virtual SYSTEM-ID-MAC In SYSTEM-ID-MAC fields, believed using virtual SYSTEM-ID-MAC to carry the system that is included in member device information The part field of breath, for example, company OUI marks, Field Number, member device be currently located IRF priority, member device number and ActiveID, it is specific as shown in fig. 7, wherein,
In virtual SYSTEM-ID-MAC fields, high-order 25 to 48 with the high position 25 to 48 of IRF bridge MAC Address It is consistent, is the peculiar mark (company OUI marks) of company.
Following 15 to 24 are Field Number (DomainID), 15 to 24 under default situations with IRF bridge MAC Address Position is consistent, but during if there is multiple IRF or when virtual SYSTEM-ID-MAC conflicts with physical device bridge MAC, use Family then can be with configuration modification numbering DomainID to ensure uniqueness.
Ensuing 13 to 14 are that member device is currently located IRF precedence information, span after IRF divides For 0 to 3, wherein 0 to 2 is available, 3 temporarily make to retain, and in one embodiment of the invention, it is higher that it is worth smaller mark priority.
Ensuing 7 to 12 are currently located the member device number that IRF possesses for member device after division, and maximum can represent 64 equipment, in one embodiment of the invention, its value is smaller to show that member device is currently located the member device that IRF possesses Quantity is more, such as:When there is 63 member devices, the value is then 1, and when only 1 member device, the value is then 63.
1 to 6 of lowest order are currently located IRF numbering ActiveID (namely member devices for member device after division It is currently located the ActiveID of IRF Master equipment).
It should be noted that the embodiment of the present invention shown in Fig. 6 be actually based on LACP MAD realize thought, in reality , it is necessary to ensure related each of the link aggregations such as the Operational Key of IRF equipment and intermediate equipment and attribute configuration by configuring in realization Attribute information is consistent.
Moreover, according to LACP agreements, IRF, can also be by respectively choosing end after port is chosen as reference edge Mouth chooses notice to intermediate equipment sending port so that intermediate equipment can choose port to set the choosing of itself according to IRF sides Middle port.Wherein, respectively choose port to have in identical attribute information and intermediate equipment respectively to choose port in intermediate equipment System information in the member device information of each member device of connection will be also consistent, this realization principle with prior art It is identical.
In the prior art, GOLD (Generic OnLine Diagnostics, gpio line diagnosis) is by equipment Diagnostic test example is performed, to find hardware fault, and carries out problem report.The hardware fault that GOLD is checked mainly includes:Port, Whether internal memory, chip, connection, forward-path and control path are normal etc..
GOLD modules are usually provided with IRF, for detecting in IRF whether hardware fault occur.In actual applications, when When data forwarding problem occurs in IRF, GOLD modules can detect the problem and carry out problem report.In the embodiment of the present invention In, after IRF divides, continue to undertake the IRF of flow forwarding if there is data forwarding problem, then can be excellent by reducing IRF The mode of first level itself not continuing to undertake flow forwarding.
According to method shown in above-mentioned Fig. 3,4,5,6, the LACP priority of each member device and original IRF before and after IRF divisions LACP priority it is identical and will not change, therefore, after IRF divisions, some IRF priority is smaller, then should When IRF member device information is compared with other IRF member device information, the facility information of the member device of the IRF The member device information of other IRF, therefore, all ends in the IRF in addition to the port of connection intermediate equipment will not be better than Mouth will be closed, and this also implies that the IRF will not bearer traffic.
Therefore,, can be by reducing the mode of IRF priority when IRF has data forwarding failure in the present invention Itself do not continue to undertake flow forwarding, concrete methods of realizing is:Know that IRF where this member device has data forwarding failure When, when this member device information is sent into the intermediate equipment by connecting the port of the intermediate equipment, this member is set The priority that this member device that system information includes in standby information is currently located IRF is arranged to minimum priority value.
Wherein, knowing that this member device is currently located IRF and the method for data forwarding failure be present is:This member is received to set Standby place IRF GOLD modules detect that the IRF has the data forwarding failure notification sent after data forwarding failure, it is determined that this Member device is currently located IRF and data forwarding failure be present.
In fact, after IRF divisions, if keeper has found that the IRF for undertaking flow forwarding after IRF divisions has data forwarding During failure, positive closing order can also be issued, forces just to close all service ports in the IRF of bearer traffic forwarding, makes it No longer undertake flow forwarding.Meanwhile keeper can also be after cleaving each IRF in select one, and issue pressure to the IRF Enable command, the IRF for having had been switched off all service ports is forced to be forwarded to undertake flow.Therefore, when a member device is made , will if receiving the positive closing order from network management system in management interface to be currently located IRF Master equipment The member device be currently located IRF except connection intermediate equipment port in addition to all service ports close so that this into Member's equipment is currently located IRF and no longer undertakes flow forwarding;When a member device is as the Master equipment for being currently located IRF, The IRF pent situation of all service ports in addition to the port of connection intermediate equipment is currently located in the member device Under, if receiving the pressure enable command from network management system in management interface, the member device can be currently located IRF all service ports start UP and got up, so that IRF where the member device starts to undertake data traffic forwarding.
As can be seen that when IRF has forwarding failure, the preferential of member device information is sent by reducing member device Level, the IRF can be avoided to be selected to continue the IRF of bearer traffic forwarding.
IRF of embodiment of the present invention divisions processing method is described in detail above, present invention also offers a kind of IRF Divide processing unit, be described in detail with reference to Fig. 8.
Referring to Fig. 8, Fig. 8 is the structural representation of IRF of embodiment of the present invention division processing units, each member in the IRF Equipment is connected with an intermediate equipment;The device is applied to any member equipment in the IRF, including:Transmitting element 801, connects Receive unit 802, processing unit 803;Wherein,
Transmitting element 801, for this member device information to be sent into intermediate equipment, so that intermediate equipment sets this member Standby information announcement gives other each member devices;
Receiving unit 802, for receiving other member device information of the intermediate equipment notice;
Processing unit 803, other member device information of the intermediate equipment notice are received for receiving unit 802 When, compare this member device information and other member device information, if other member device information better than this into Member's facility information, then the port that this member device is connected to the intermediate equipment is arranged to non-selected port, by this member device All service ports connected outside the port of the intermediate equipment are closed, and otherwise, are kept this member device to connect the centre and are set The selected state of standby port.
In Fig. 8 shown devices,
Other member device information that receiving unit 802 receives are that intermediate equipment receives other member device letters During breath, after comparing determination other member device information better than the optimal member device information of intermediate equipment current record Notice;When intermediate equipment notices other member device information, the optimal of intermediate equipment current record is also further updated Member device information is other member device information.
In Fig. 8 shown devices,
The processing unit 803, other member device information of the intermediate equipment notice are received in receiving unit 802 Afterwards, before comparing this member device information and other member device information, it is further used for:Whether judge this member device To be currently located IRF Master equipment, if this member device is Master equipment, compare this member device information and institute Other member device information are stated, if other member device information are better than this member device information, this member device is connected The port for connecing the intermediate equipment is arranged to non-selected port, and determines whether that this member device is currently located the institute in IRF Whether the port for having the member device connection intermediate equipment is non-selected port, is to be currently located this member device All service ports that each member device is connected outside the port of the intermediate equipment in IRF are closed;If this member device is not Master equipment, then notify transmitting element 801 that other member device information are sent into this member device and are currently located IRF Master equipment;
The transmitting element 801, other member device information are sent to for the notice according to processing unit 803 This member device is currently located IRF Master equipment;
When the receiving unit 802 for this member device is the Master equipment for being currently located IRF, receive into Member's equipment is currently located the member device information that IRF Slave equipment is sent;
The processing unit 803, if receiving the Slave that this member device is currently located IRF for receiving unit 802 The member device information that equipment is sent, then compare the member device information and the member device information received of Slave equipment, If the member device information received be better than Slave equipment member device information, by Slave equipment connection it is described in Between the port of equipment be arranged to non-selected port, and determine whether that this member device is currently located each member device in IRF Whether the port for connecting the intermediate equipment is non-selected port, is, this member device is currently located into each member in IRF All service ports that equipment is connected outside the port of the intermediate equipment are closed.
In Fig. 8 shown devices,
The member device information is currently located IRF priority, member device number and ActiveID including member device;
When the processing unit 803 compares the quality of two member device information, it is used for:It is currently located IRF priority Higher member device, its member device information are more excellent;When the priority that two member devices are currently located IRF is identical, currently The more member device of place IRF member device number, its member device information are more excellent;Two member devices are currently located IRF Priority and member device number all same when, be currently located the smaller or larger member devices of IRF ActiveID, its member Facility information is more excellent.
In Fig. 8 shown devices,
The IRF and the intermediate equipment enable LACP agreements, and the LACP priority of the IRF is higher than in described Between equipment LACP priority;
The member device information includes:System information;The LACP priority of the system information member device;
The transmitting element 801 carries this member device information in LACP protocol massages and by connecting the centre The port of equipment is sent to the intermediate equipment, so that the intermediate equipment is according to the LACP priority of itself and this member device LACP priority determine that the IRF is reference edge, and it is determined that this member device information is currently remembered better than the intermediate equipment This member device information announcement is given to other each member devices after the optimal member device information of record;
The receiving unit 802, it is further used for receiving the carrying intermediate equipment information that the intermediate equipment is sent LACP protocol massages, the LACP of the intermediate equipment contained according to the LACP priority of this member device and intermediate equipment packet Priority determines the IRF as reference edge.
In Fig. 8 shown devices,
System information in the member device information is also currently located IRF priority, Cheng Yuanshe including member device Standby number and ActiveID;The member device information also connects the port information of the intermediate equipment comprising member device;It is described Port information includes port id;
The processing unit 803 compares this member device information and other member device information and determined described other Member device information is better than after this member device information, and the port that this member device is connected to the intermediate equipment is arranged to non- Before choosing port, it is further used for:If the system information that other member device packets contain is better than this member device System information, then the port that this member device is connected to the intermediate equipment is arranged to non-selected port, otherwise, described in discarding Other member device information;
Member device information that the member device information that the processing unit 803 compares Slave equipment receives with this is simultaneously Determine that the member device information received is better than after the member device information of Slave equipment, by described in the connection of Slave equipment The port of intermediate equipment is arranged to before non-selected port, is further used for:If the member device packet received contains System information better than the system information in the member device of Slave equipment, then Slave equipment is connected into the intermediate equipment Port is arranged to non-selected port, otherwise, abandons the member device information received;
In Fig. 8 shown devices,
When the processing unit 803 compares two member device information qualities, it is used for:System information preferably member sets Standby, its member device information is more excellent;When the system information of two member devices is identical, the less member device of port id, its into Member's facility information is more excellent;
Wherein, when the processing unit 803 compares the system information quality of two member devices, it is used for:LACP priority Higher member device, its system information are more excellent;When the LACP priority of two member devices is identical, the excellent of IRF is currently located The higher member device of first level, its system information are more excellent;The LACP priority of two member devices and it is currently located the preferential of IRF During level all same, the more member device of IRF member device number is currently located, its system information is more excellent;Two member devices LACP priority, be currently located IRF priority and member device number all same when, be currently located IRF ActiveID compared with Small or larger member device, its system information are more excellent.
In Fig. 8 shown devices,
Transmitting element 801 carries the member device information using the SYSTEM-ID-MAC fields in LACP protocol massages In the member device that includes of system information be currently located IRF priority, member device number and ActiveID.
In Fig. 8 shown devices, in addition to fault processing unit 804;
The fault processing unit 804, during for knowing that IRF where this member device has data forwarding failure, it incite somebody to action this Member device information carries in LACP protocol massages and is sent to the centre by connecting the port of the intermediate equipment and sets When standby, this member device that system information in this member device information that LACP protocol massages carry includes is currently located IRF Priority be arranged to value corresponding to minimum priority.
In Fig. 8 shown devices,
When the fault processing unit 804 knows that this member device is currently located IRF and data forwarding failure be present, it is used for: IRF GOLD modules detect that the IRF has the data forwarding sent after data forwarding failure where receiving this member device Failure notification, determine that this member device is currently located IRF and data forwarding failure be present.
In Fig. 8 shown devices, in addition to switch element 805;
The switch element 805, for this member device as IRF Master equipment is currently located, if managed Interface to the positive closing order from network management system, then by this member device be currently located in IRF except connect it is described in Between equipment all of the port outside all service ports close;For being currently located in this member device in IRF except described in connection In the case of all service ports outside all of the port of intermediate equipment are pent, come from if received in management interface The pressure enable command of network management system, then all service ports that this member device is currently located to IRF start UP.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.

Claims (21)

1. a kind of IRF divides processing method, it is characterised in that each member device is connected with an intermediate equipment in the IRF;The party Method is applied to any member equipment in the IRF, including:
This member device information is sent to intermediate equipment so that intermediate equipment by this member device information announcement to it is other respectively into Member's equipment;
When receiving other member device information of intermediate equipment notice, compare this member device information and it is described it is other into Member's facility information, if other member device information are better than this member device information, by described in the connection of this member device The port of intermediate equipment is arranged to non-selected port, and this member device is connected to all business outside the port of the intermediate equipment Port shutdown, otherwise, this member device is kept to connect the selected state of the port of the intermediate equipment;
Wherein, the member device information including member device be currently located IRF priority, member device number and ActiveID。
2. according to the method for claim 1, it is characterised in that
When the other member device information received are that intermediate equipment receives other member device information, by relatively more true Fixed other member device information are better than noticing after the optimal member device information of intermediate equipment current record;Intermediate equipment When noticing other member device information, also further the optimal member device information of renewal intermediate equipment current record is institute State other member device information.
3. according to the method for claim 2, it is characterised in that
After this member device receives other member device information of intermediate equipment notice, compare this member device information and Before other member device information, further comprise:
Judge whether this member device is the Master equipment for being currently located IRF, if this member device is Master equipment, Compare this member device information and other member device information, if other member device information are better than this member device Information, then the port that this member device is connected to the intermediate equipment is arranged to non-selected port, and determines whether this member Whether the port that all member devices that equipment is currently located in IRF connect the intermediate equipment is non-selected port, is then All service ports that this member device is currently located in IRF outside the port of each member device connection intermediate equipment are closed Close;If this member device is not Master equipment, it is current that other member device information are sent to this member device Place IRF Master equipment;
When this member device is the Master equipment for being currently located IRF, if receiving this member device is currently located IRF's The member device information that Slave equipment is sent, then compare the member device information and the member device received of Slave equipment Information, if the member device information received is better than the member device information of Slave equipment, Slave equipment is connected The port of the intermediate equipment is arranged to non-selected port, and determine whether this member device be currently located in IRF it is each into Whether the port that member's equipment connects the intermediate equipment is non-selected port, is that this member device is currently located in IRF All service ports that each member device is connected outside the port of the intermediate equipment are closed.
4. according to the method described in claim 1,2 or 3, it is characterised in that
The good and bad method for comparing two member device information is:Be currently located the higher member device of IRF priority, its into Member's facility information is more excellent;When the priority that two member devices are currently located IRF is identical, IRF member device number is currently located More member device, its member device information are more excellent;Two member devices are currently located IRF priority and member device number During all same, the smaller or larger member devices of IRF ActiveID are currently located, its member device information is more excellent.
5. according to the method for claim 3, it is characterised in that
The IRF and the intermediate equipment enable LACP agreements, and the LACP priority of the IRF is set higher than the centre Standby LACP priority;
The member device information includes:System information;The system information includes the LACP priority of member device;
This member device information is carried in LACP protocol massages and is sent to institute by connecting the port of the intermediate equipment Intermediate equipment is stated, so that the intermediate equipment determines institute according to the LACP priority of itself and the LACP priority of this member device It is reference edge to state IRF, and it is determined that this member device information is believed better than the optimal member device of the intermediate equipment current record This member device information announcement is given to other each member devices after breath;
This method further comprises:This member device receives the LACP associations for the carrying intermediate equipment information that the intermediate equipment is sent Discuss message, the LACP priority of the intermediate equipment contained according to the LACP priority of this member device and intermediate equipment packet Determine the IRF as reference edge.
6. according to the method for claim 5, it is characterised in that
System information in the member device information is also currently located IRF priority, member device number including member device And ActiveID;The member device information also connects the port information of the intermediate equipment comprising member device;The port Information includes port id;
Compare this member device information and other member device information and determine other member device information better than this After member device information, before the port of this member device connection intermediate equipment is arranged into non-selected port, enter one Step includes:If the system information that other member device packets contain is better than the system information of this member device, it incite somebody to action this The port that member device connects the intermediate equipment is arranged to non-selected port, otherwise, abandons other member device information;
Compare the member device information of Slave equipment and the member device information that receives and determine that the member received sets After standby information is better than the member device information of Slave equipment, the port that Slave equipment is connected to the intermediate equipment is arranged to Before non-selected port, further comprise:If the system information that the member device packet received contains is set better than Slave System information in standby member device information, the then port that Slave equipment is connected to the intermediate equipment are arranged to non-selected Port, otherwise, abandon the member device information received.
7. according to the method for claim 6, it is characterised in that
Comparing the good and bad method of two member device information is:System information preferably member device, its member device information compared with It is excellent;When the system information of two member devices is identical, the less member device of port id, its member device information is more excellent;
Wherein, the good and bad method of system information for comparing two member devices is:The higher member device of LACP priority, it is Information of uniting is more excellent;When the LACP priority of two member devices is identical, the higher member device of IRF priority is currently located, Its system information is more excellent;The LACP priority of two member devices and when being currently located IRF priority all same, is currently located The more member device of IRF member device number, its system information are more excellent;The LACP priority of two member devices, current institute In IRF priority and member device number all same, the smaller or larger member devices of IRF ActiveID are currently located, Its system information is more excellent.
8. according to the method for claim 6, it is characterised in that
The system information in the member device information is carried using the SYSTEM-ID-MAC fields in LACP protocol massages to include Member device be currently located IRF priority, member device number and ActiveID.
9. according to the method described in claim 5,6,7 or 8, it is characterised in that
When knowing that IRF where this member device has data forwarding failure, this member device information is carried in LACP agreement reports In text and when being sent to the intermediate equipment by connecting the port of the intermediate equipment, LACP protocol massages are carried this into The priority that this member device that system information includes in member's facility information is currently located IRF is arranged to corresponding to minimum priority Value.
10. according to the method described in claim 5,6,7 or 8, it is characterised in that
This member device is as the Master equipment for being currently located IRF, if received in management interface from network management system Positive closing order, then this member device is currently located all in addition to all of the port for connecting the intermediate equipment in IRF Service port is closed;
This member device is currently located in IRF except described in connection as the Master equipment for being currently located IRF in this member device In the case of all service ports outside all of the port of intermediate equipment are pent, come from if received in management interface The pressure enable command of network management system, then all service ports that this member device is currently located to IRF start UP.
11. a kind of IRF divides processing unit, it is characterised in that each member device is connected with an intermediate equipment in the IRF;Should Device is applied to any member equipment in the IRF, including:Transmitting element, receiving unit, processing unit;
Transmitting element, for this member device information to be sent into intermediate equipment, so that intermediate equipment is by this member device information It is advertised to other each member devices;
Receiving unit, for receiving other member device information of the intermediate equipment notice;
Processing unit, when receiving other member device information of intermediate equipment notice for receiving unit, compare this into Member's facility information and other member device information, if other member device information are better than this member device information, The port that this member device is then connected to the intermediate equipment is arranged to non-selected port, and this member device is connected into the centre All service ports outside the port of equipment are closed, and otherwise, keep this member device to connect the choosing of the port of the intermediate equipment Middle state;
Wherein, the member device information including member device be currently located IRF priority, member device number and ActiveID。
12. device according to claim 11, it is characterised in that
When other member device information that receiving unit receives are that intermediate equipment receives other member device information, lead to Crossing to compare determines other member device information better than noticing after the optimal member device information of intermediate equipment current record; When intermediate equipment notices other member device information, the optimal member device of intermediate equipment current record is also further updated Information is other member device information.
13. device according to claim 12, it is characterised in that
The processing unit, after other member device information that receiving unit receives the intermediate equipment notice, compare this Before member device information and other member device information, it is further used for:Judge whether this member device is current institute In IRF Master equipment, if this member device is Master equipment, compare this member device information and it is described it is other into Member facility information, if other member device information be better than this member device information, by this member device connect it is described in Between the port of equipment be arranged to non-selected port, and determine whether that this member device is currently located all members in IRF and set Whether the standby port for connecting the intermediate equipment is non-selected port, is, by this member device be currently located in IRF respectively into All service ports that member's equipment is connected outside the port of the intermediate equipment are closed;Set if this member device is not Master It is standby, then notify other member device information are sent to this member device and are currently located IRF Master by transmitting element to set It is standby;
The transmitting element, other member device information are sent to this member device for the notice according to processing unit It is currently located IRF Master equipment;
When the receiving unit for this member device is the Master equipment for being currently located IRF, receives this member device and work as The member device information that preceding place IRF Slave equipment is sent;
The processing unit, if receiving this member device for receiving unit is currently located what IRF Slave equipment was sent Member device information, then compare the member device information and the member device information received of Slave equipment, if the reception The member device information arrived is better than the member device information of Slave equipment, then Slave equipment is connected to the end of the intermediate equipment Mouthful non-selected port is arranged to, and determines whether that each member device connection that this member device is currently located in IRF is described Between the port of equipment whether be non-selected port, be that this member device is currently located into each member device in IRF connects institute All service ports stated outside the port of intermediate equipment are closed.
14. according to the device described in claim 11,12 or 13, it is characterised in that
When the processing unit compares the quality of two member device information, it is used for:Be currently located IRF priority it is higher into Member's equipment, its member device information are more excellent;When the priority that two member devices are currently located IRF is identical, it is currently located IRF's The more member device of member device number, its member device information are more excellent;Two member devices be currently located IRF priority and During member device number all same, be currently located the smaller or larger member devices of IRF ActiveID, its member device information compared with It is excellent.
15. device according to claim 13, it is characterised in that
The IRF and the intermediate equipment enable LACP agreements, and the LACP priority of the IRF is set higher than the centre Standby LACP priority;
The member device information includes:System information;The LACP priority of the system information member device;
The transmitting element carries this member device information in LACP protocol massages and by connecting the intermediate equipment Port is sent to the intermediate equipment, so that the intermediate equipment is according to the LACP priority of itself and the LACP of this member device Priority determines that the IRF is reference edge, and it is determined that this member device information is better than the intermediate equipment current record most This member device information announcement is given to other each member devices after excellent member device information;
The receiving unit, it is further used for receiving the LACP agreement reports for the carrying intermediate equipment information that the intermediate equipment is sent Text, the LACP priority of the intermediate equipment contained according to the LACP priority of this member device and intermediate equipment packet determine The IRF is as reference edge.
16. device according to claim 15, it is characterised in that
System information in the member device information is also currently located IRF priority, member device number including member device And ActiveID;The member device information also connects the port information of the intermediate equipment comprising member device;The port Information includes port id;
The processing unit compares this member device information and other member device information and determines that other members set Standby information is better than after this member device information, and the port that this member device is connected to the intermediate equipment is arranged to non-selected end Before mouthful, it is further used for:If the system that the system information that other member device packets contain is better than this member device Information, the then port that this member device is connected to the intermediate equipment are arranged to non-selected port, otherwise, abandon it is described it is other into Member's facility information;
The processing unit compares the member device information of Slave equipment and the member device information that receives and determines that this connects After the member device information received is better than the member device information of Slave equipment, Slave equipment is connected into the intermediate equipment Port be arranged to before non-selected port, be further used for:If the system letter that the member device packet received contains Better than the system information in the member device of Slave equipment, then the port that Slave equipment is connected to the intermediate equipment is set breath For non-selected port, otherwise, the member device information received is abandoned.
17. device according to claim 16, it is characterised in that
When the processing unit compares two member device information qualities, it is used for:System information preferably member device, its member Facility information is more excellent;When the system information of two member devices is identical, the less member device of port id, its member device information It is more excellent;
Wherein, when the processing unit compares the system information quality of two member devices, it is used for:LACP priority it is higher into Member's equipment, its system information are more excellent;When the LACP priority of two member devices is identical, the priority for being currently located IRF is higher Member device, its system information is more excellent;The LACP priority of two member devices and the priority all same for being currently located IRF When, the more member device of IRF member device number is currently located, its system information is more excellent;The LACP of two member devices is excellent When first level, the priority for being currently located IRF and member device number all same, the ActiveID for being currently located IRF is smaller or larger Member device, its system information is more excellent.
18. device according to claim 15, it is characterised in that
Transmitting element utilizes the SYSTEM-ID-MAC fields in LACP protocol massages to carry the system in the member device information The member device that packet contains is currently located IRF priority, member device number and ActiveID.
19. device according to claim 16, it is characterised in that
Transmitting element utilizes the SYSTEM-ID-MAC fields in LACP protocol massages to carry the system in the member device information The member device that packet contains is currently located IRF priority, member device number and ActiveID.
20. according to the device described in claim 15,16,17,18 or 19, it is characterised in that the device also includes troubleshooting Unit;
The fault processing unit, during for knowing that IRF where this member device has data forwarding failure, notify transmitting element By this member device information carry in LACP protocol massages and by connect the port of the intermediate equipment be sent to it is described During intermediate equipment, the current institute of this member device that system information in this member device information that LACP protocol massages carry is included Value corresponding to minimum priority is arranged in IRF priority.
21. according to the device described in claim 15,16,17,18 or 19, it is characterised in that it is single that the device also includes switch Member;
The switch element, for this member device as the Master equipment for being currently located IRF, if received in management interface To the positive closing order from network management system, then this member device is currently located in IRF except the connection intermediate equipment All service ports outside all of the port are closed;For being currently located in this member device in IRF except the connection intermediate equipment All of the port outside all service ports it is pent in the case of, if received in management interface from network management system Pressure enable command, then by this member device be currently located IRF all service ports start UP.
CN201410363316.7A 2014-07-28 2014-07-28 A kind of IRF divides treating method and apparatus Active CN104104596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410363316.7A CN104104596B (en) 2014-07-28 2014-07-28 A kind of IRF divides treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410363316.7A CN104104596B (en) 2014-07-28 2014-07-28 A kind of IRF divides treating method and apparatus

Publications (2)

Publication Number Publication Date
CN104104596A CN104104596A (en) 2014-10-15
CN104104596B true CN104104596B (en) 2017-11-24

Family

ID=51672408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410363316.7A Active CN104104596B (en) 2014-07-28 2014-07-28 A kind of IRF divides treating method and apparatus

Country Status (1)

Country Link
CN (1) CN104104596B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656645B (en) 2014-11-12 2019-08-06 新华三技术有限公司 The decision-making technique and device of the troubleshooting of stacking system
CN104660449B (en) * 2015-02-13 2018-11-09 新华三技术有限公司 The method and apparatus for preventing the more main equipment Master of stacking splitting
CN106452921B (en) * 2016-11-28 2019-12-06 新华三技术有限公司 Stacking system splitting detection method and device
CN109831330B (en) * 2019-01-30 2021-08-24 新华三技术有限公司 Stack configuration method and device
CN114244736A (en) * 2021-12-14 2022-03-25 浪潮思科网络科技有限公司 Multi-master detection method, equipment and medium based on stacking environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674208A (en) * 2009-10-28 2010-03-17 杭州华三通信技术有限公司 LACP MAD detection method and device thereof
CN101917287A (en) * 2010-08-04 2010-12-15 杭州华三通信技术有限公司 Fault processing method and fault detecting system of IRF (Intelligent Resilient Framework)
CN102315975A (en) * 2011-10-17 2012-01-11 杭州华三通信技术有限公司 Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN102347867A (en) * 2011-11-14 2012-02-08 杭州华三通信技术有限公司 Processing method and equipment for stacking splitting detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674208A (en) * 2009-10-28 2010-03-17 杭州华三通信技术有限公司 LACP MAD detection method and device thereof
CN101917287A (en) * 2010-08-04 2010-12-15 杭州华三通信技术有限公司 Fault processing method and fault detecting system of IRF (Intelligent Resilient Framework)
CN102315975A (en) * 2011-10-17 2012-01-11 杭州华三通信技术有限公司 Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN102347867A (en) * 2011-11-14 2012-02-08 杭州华三通信技术有限公司 Processing method and equipment for stacking splitting detection

Also Published As

Publication number Publication date
CN104104596A (en) 2014-10-15

Similar Documents

Publication Publication Date Title
CN104104596B (en) A kind of IRF divides treating method and apparatus
CN101826989B (en) Method and device for treating fault
CN110166356A (en) Send the method and the network equipment of message
CN103825766B (en) Device and method for detecting BFD links
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
ES2333470T3 (en) METHOD AND DEVICE FOR WAITING FOR AN ASCENDING LINK.
CN102355366B (en) Member-stacking device and method for managing member-stacking device at split stacking moment
US20090232152A1 (en) Method and apparatus for aggregating ports
CN101179453B (en) Link status detecting method and system
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
CN103916275A (en) BFD detection device and method
CN108123824A (en) A kind of network fault detecting method and device
CN104104570A (en) Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
JPH05502346A (en) Automatic failure recovery in packet networks
JP5811995B2 (en) Communication system and network relay device
EP2738978A1 (en) Ring network failover method and apparatus
CN105281951B (en) Double primary apparatus conflict detection methods and the network equipment in VSU systems
CN103840976B (en) Communication means, light device and the network equipment
CN104518936B (en) Link dynamic aggregation method and apparatus
CN101197733A (en) Automatic detection method and device for network connectivity
CN103428045A (en) Connectivity detection method, device and system
US20130007252A1 (en) Operations, administrations and management proxy and a method for handling operations, administrations and management messages
CN104506546A (en) Bidirectional forwarding detection method and device of aggregation link
CN101815006A (en) aggregation control method of links passing through provider network and system
JP5503600B2 (en) Failure management system and failure management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant