CN101883045B - Method, system and device for combining stacking systems - Google Patents

Method, system and device for combining stacking systems Download PDF

Info

Publication number
CN101883045B
CN101883045B CN2010101596540A CN201010159654A CN101883045B CN 101883045 B CN101883045 B CN 101883045B CN 2010101596540 A CN2010101596540 A CN 2010101596540A CN 201010159654 A CN201010159654 A CN 201010159654A CN 101883045 B CN101883045 B CN 101883045B
Authority
CN
China
Prior art keywords
pile system
stacking
under
self
member device
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
CN2010101596540A
Other languages
Chinese (zh)
Other versions
CN101883045A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2010101596540A priority Critical patent/CN101883045B/en
Publication of CN101883045A publication Critical patent/CN101883045A/en
Application granted granted Critical
Publication of CN101883045B publication Critical patent/CN101883045B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Revetment (AREA)

Abstract

The invention discloses a method, a system and a device for combining stacking systems, which are used for solving the problem of time waste when the stacking systems are combined in the prior art. The method comprises the following steps: receiving a stacking information Hello announcement containing a Master sent by other member facilities by a member facility; when judging that the stacking information of the Master in the Hello announcement is different from the stacking information of the Master in the belonged stacking systems, voting to determine the optimum stacking system; and when the self-belonged stacking system is the non-optimum stacking system, flooding the received Hello announcement to each member facility in the belonged stacking systems, then restarting, directing the member facility to flood the Hello announcement and then restarting. When the self-belonged stacking system is identified by the member facility to carry out stacking system combination in the invention, the process of stacking combination is triggered and is different from the process of stacking combination which only can be triggered by a main facility, thereby the speed of stacking combination is increased.

Description

A kind of merging method, system and device of pile system
Technical field
The present invention relates to the data communication technology field, relate in particular to a kind of merging method, system and device of pile system.
Background technology
Multiple devices are linked together by stacking interface, can consist of a pile system, and all devices in this pile system can form a combination plant, can by the management to combination plant, realize the management to every equipment in the pile system.
Every equipment is called member device in pile system, and member device comprises again: main equipment (Master) and from equipment (Slave).Wherein, Master is constituted by election in pile system, is in charge of whole pile system; Slave belongs to Master, is the alternate device of Master.When Master broke down in the pile system, other member devices in the pile system can re-elect out a Master whole pile system is managed.
After pile system forms, when connecting in the pile system cable fault between member device, perhaps during certain member device outage in the pile system, then stacking splitting will appear in pile system, and original pile system will be split into two pile systems.After two each self-formings of pile system, can adopt cable to reconnect two pile systems, thereby carry out stacking merging.
Prior art can be in the following ways when carrying out stacking merging:
Adopt manual type, every equipment that manually will carry out stacking merging by the user restarts, thereby makes the pile system after the stacking merging rebulid topology, again selects Master etc.Because above-mentioned execution mode all will restart every equipment, and carry out rebuliding of topology, therefore the time of stacking merging is longer, all to restart owing to every equipment simultaneously, therefore the operation of whole pile system will be affected, and is unfavorable for the stable of pile system.
When carrying out stacking the merging, can also adopt stacking interface equipment to judge and the mode of Master decision-making combination that wherein stacking interface equipment is the member device of link connection place.Stacking interface equipment is issued stacking multicast message to the member device that links after link changes, this stacking multicast message is used for the stacking information of the affiliated pile system of this stacking interface equipment of sign, and wherein the pile system under the stacking interface equipment is the pile system before the stacking merging.After the member device of each pile system in the stacking merging process receives stacking multicast message, report selected works according to this stacked group and lift optimum pile system.Optimum pile system keeps original running, and the stacking interface equipment of non-optimum pile system is issued the Master of this pile system with the stacking information of optimum pile system, and Master makes a policy and notifies all devices in this pile system to restart afterwards.
There is following shortcoming in above-mentioned execution mode:
Pile system combinatorial construction schematic diagram as shown in Figure 1, in stacking merging process, comprise two pile systems, be respectively pile system A and pile system B, wherein comprise member device A1, A2, A3, A4 and A5 among the pile system A, wherein A3 is Master, and A1, A5 are stacking interface equipment, comprise member device B1, B2, B3 and B4 among the pile system B, wherein B2 is Master, and B1, B4 are stacking interface equipment.Determine that after election pile system A is optimum pile system, at this moment stacking interface equipment B1 and B4 with the stacking information inundation of pile system A to B2.If exist assailant by the network interface of B4 to carry out the attack of protocol massages on the network this moment, B2 is as the Master of pile system B so, its CPU will be very busy, the timely stacking information of the pile system A that comes of treatments B 1 and B4 inundation probably, the stacking merging process that this moment, pile system B incorporated pile system A is interrupted, thereby makes the time lengthening of stacking merging.
In addition, if B2 receive the stacking information of pile system A and make decisions, restart after then notifying the member device of whole pile system B by B2-B1 circuit and B2-B3 circuit.If but this moment, B2-B1 circuit and B2-B3 circuit were subject to the impact of large flow and circuit blocks up, B1 so, B3, B4 can or not restart because slowly have notified, thereby make the time lengthening of stacking merging, and if this moment B2 restarted to cause and from pile system B, divided 2 mini systems, one of them system is made of B1, the another one system is by B3, and B4 consists of.Make so on the contrary the merging more complex of whole pile system, make the time of stacking merging longer.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of merging method, system and device of pile system, the problem of losing time when solving the merging of carrying out pile system in the prior art.
The merging method of a kind of pile system that the embodiment of the invention provides comprises:
The member device of pile system receives the greeting Hello announcement that other member devices send;
When comprising the stacking information of main equipment among the described Hello, the stacking information of the main equipment under the member device judgement of described pile system self in the pile system, with the stacking information of main equipment in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system;
When pile system is non-optimum pile system under the member device self of determining described pile system, the described Hello announcement that the member device of described pile system will receive is flooded under self restarts behind each member device in the pile system, restarts after the described Hello announcement of member device inundation that wherein said Hello announcement indication receives described Hello announcement.
The merging device of a kind of pile system that the embodiment of the invention provides comprises:
Receiver module is used for receiving the greeting Hello announcement that other member devices send;
Whether judge module is used for when described Hello announcement comprises the stacking information of main equipment, judges the stacking information of the main equipment in the pile system under self, identical with the stacking information of main equipment during described Hello announces;
Pile system election module, the stacking information that is used for the main equipment of pile system under judge module is judged self, with the stacking information of main equipment in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system;
The inundation module, be used for when determining that self affiliated pile system is non-optimum pile system, the described Hello announcement that receives is flooded under self restarts behind each member device in the pile system, restart after the described Hello announcement of member device inundation that wherein said Hello announcement indication receives described Hello announcement.
The embodiment of the invention provides a kind of member device of pile system, and the member device of described pile system comprises the merging device of pile system described above.
The embodiment of the invention provides a kind of pile system, and described pile system comprises the member device of above-mentioned pile system and is used for sending other member devices of greeting the Hello announcement.
The embodiment of the invention provides a kind of merging method of pile system, system and device, the member device of pile system receives the stacking information Hello announcement that comprises Master that other member devices send in the method, the member device of pile system is judged the stacking information of the Master in the Hello announcement, with the stacking information of Master in the pile system under self not simultaneously, carry out the election of optimum pile system, restart behind each member device under the member device of non-optimum pile system is flooded to the Hello announcement that receives in the pile system, indication is restarted after receiving the described Hello announcement of member device inundation of described Hello announcement.Reduced in embodiments of the present invention the dependence to Master, pile system carries out pile system when merging under the member device of pile system recognizes self, trigger the process of stacking merging, from must could to trigger the process of stacking merging by main equipment in the prior art different, thereby improved the speed of stacking merging, the inundation Hello of the member device of pile system elder generation announcement is restarted again in embodiments of the present invention in addition, has further improved the stacking aggregate speed of pile system.
Description of drawings
Fig. 1 is pile system combinatorial construction schematic diagram in the prior art;
The process of the merging of a kind of pile system that Fig. 2 provides for the embodiment of the invention;
The concrete merging process of the pile system that Fig. 3 provides for the embodiment of the invention;
The merging process of another pile system that Fig. 4 provides for the embodiment of the invention;
Fig. 5 merges the apparatus structure schematic diagram for a kind of pile system that the embodiment of the invention provides;
The composition structural representation of a kind of pile system that Fig. 6 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention is in order effectively to improve the efficient that pile system merges, reduce the time-delay that pile system merges, a kind of merging method, system and device of pile system are provided, the member device of pile system receives other members and sends the Hello announcement in the method, and the merging of triggering pile system, restart behind each member device under the member device of the pile system of non-optimum pile system is flooded to the Hello announcement that receives in the pile system, restart after receiving this Hello announcement of member device inundation of this Hello announcement.Owing to reduced in embodiments of the present invention the dependence to Master, pile system carries out pile system when merging under the member device of pile system recognizes self, trigger the process of stacking merging, with notify first main equipment in the prior art, the process that is triggered stacking merging by main equipment is different, thereby improved the speed of stacking merging, the inundation Hello of the member device of pile system elder generation announcement is restarted again in embodiments of the present invention in addition, has further improved the stacking aggregate speed of pile system.
Say accompanying drawing below in conjunction with explanation, the embodiment of the invention is elaborated.
The process of the merging of a kind of pile system that Fig. 2 provides for the embodiment of the invention, this process may further comprise the steps:
S201: the member device of pile system receives the Hello announcement that other member devices send.
Member device in each pile system can regularly send the Hello announcement in embodiments of the present invention, comprises the stacking information of this Master in the Hello announcement that Master sends, and wherein comprises the identification information of Master in the stacking information of this Master.
S202: when comprising the stacking information of Master in the described Hello announcement, the stacking information of Master under the member device judgement of described pile system self in the pile system, with the stacking information of Master in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system.
Wherein, the stacking information that comprises described main equipment in the Hello announcement that the main equipment of pile system sent according to the cycle that arranges in embodiments of the present invention; Or the stacking interface equipment of pile system is copied the stacking information that comprises described main equipment in the Hello announcement that the main equipment of pile system sends under self when recognizing physical link and reconnect.
In embodiments of the present invention, because can regularly sending, the Master of each pile system greets the Hello announcement, receive the member device of this Hello announcement according to the stacking information of the Master in this Hello announcement, whether the stacking information of judging the Master of pile system under local this member device of preserving is identical with the stacking information of Master during this Hello announces, the stacking information of Master in this hello announcement, with the stacking information of Master in the pile system under this member device not simultaneously, determine self under pile system carry out the merging of pile system.
Comprise when optimum pile system is determined in election in the pile system under pile system and described other member devices under self in embodiments of the present invention: the member device of described pile system preserve according to self self under the number of members information of pile system, and the stack member quantity information in the pile system under the described main equipment that comprises in the described Hello announcement, under self, elect in the pile system under pile system and described other member devices and determine optimum pile system.
S203: when pile system is non-optimum pile system under the member device self of determining described pile system, the member device of described pile system is flooded to the Hello that receives announcement under self and restarts behind each member device in the pile system, restarts after the described Hello announcement of member device inundation that wherein said Hello announcement indication receives described Hello announcement.
Member device in the non-optimum pile system is according to the hello announcement that receives, this Hello announcement is flooded to each member device in the pile system under this member device, be about to Hello and announce each member device that is flooded in the non-optimum pile system, and after this Hello announcement of this member device inundation, self restarts, and restarts after receiving this Hello announcement of member device inundation in the non-optimum pile system of this Hello announcement.Because in the process of member device inundation Hello announcement, other member devices adjacent with this member device receive this Hello announcement at first in the non-optimum pile system, therefore restart after this Hello announcement of the member device inundation adjacent with this member device, therefore can realize each member device in the non-optimum pile system take the member device that receives this Hello announcement as beginning, the process that restarts successively.
In embodiments of the present invention when member's equipment determines that pile system is optimum pile system under self, the member device in then should the optimum pile system is not done any operation, and the pile system merging process of this optimum pile system finishes.
Because the member device of pile system can periodically send the Hello announcement, can recognize this member device with other member devices that guarantee pile system and still exist in this pile system.When other member devices in the time span of setting were not received the Hello announcement of certain member device, then other member devices thought that this member device leaves this pile system.When the member device that leaves this pile system is Master, this pile system will re-elect out the new Master of this pile system.
In order to guarantee that each member device in the pile system can independently make a strategic decision to stacking merged event, each member device in the pile system can be preserved the stacking information of this pile system in embodiments of the present invention.The stacking information of this pile system comprises: the identification information of pile system, stack member quantity information, the stacking information of Master etc.Wherein the identification information of pile system can arrange for user when this member device adds pile system, and the stacking information of stack member quantity information and Master is that member device receives the Hello announcement that other member devices send and obtains.And the member device in pile system because fault etc. leaves in this pile system, the number of members information of this pile system can be upgraded, Master in this pile system leaves this pile system simultaneously, after redefining Master by election, the stacking information of the Master that each member device is preserved in the pile system also will be upgraded.
Master can send the Hello announcement according to the cycle that arranges in the pile system, and for the ease of receiving the member device of this Hello announcement, this Hello announcement according to receiving has determined whether to occur the merging of pile system in embodiments of the present invention.Master in the pile system sends the stacking information that comprises this Master in the Hello announcement in embodiments of the present invention.
Because when carrying out the merging of pile system, disconnect the member device that is connected with connection place at physical link, being disconnection or the connection that stacking interface equipment at first can recognize link, mainly is because each member device can be identified connection or the off-state of two interfaces that self link.Therefore the speed that merges in order to accelerate pile system in embodiments of the present invention, when connecting stacking interface equipment and recognize physical link and reconnect, this stacking interface equipment determines that the pile system under self carries out the merging of pile system, the interface that Master in the pile system under this stacking interface equipment imitation self reconnects by physical link sends the Hello announcement, with the merging of rapid triggering pile system.
Even the merging process of the pile system that member device identifies in the said process is wrong, but because in the Hello announcement that stacking interface equipment imitation Master sends, the stacking information that comprises this imitated Master, therefore receive the member device of other pile systems of this Hello announcement, according to the stacking information of the Master that comprises in this Hello announcement, determine whether the pile system under self carries out the merging of pile system.
When member device in the pile system receives the Hello announcement of Master transmission, stacking information according to this Master in this Hello announcement, and the stacking information of Master in the local affiliated pile system of preserving, when this pile system of stacking message identification of Master is not also selected Master in the local affiliated pile system of preserving of judgement, then the member device of pile system adds the affiliated pile system of this Master in this Hello announcement, processes according to the mode that adds newcomer's equipment in the pile system; This pile system of stacking message identification of the Master of the local affiliated pile system of preserving of judgement has been selected Master, and when the Master that identifies in the stacking information of the Master that comprises in the Master that elects and the Hello announcement is identical, think that then this Hello is advertised as the announcement that the Master of pile system regularly sends under self; This pile system of stacking message identification of the Master of the local affiliated pile system of preserving of judgement has been selected Master, and when the Master that identifies in the stacking information of the Master that comprises in this Master and the Hello announcement is not identical, then determine self under pile system carry out the merging of pile system.
The stacking information of preserving according to self for the ease of member device in embodiments of the present invention, and the Hello that Master sends announces, whether pile system carries out the merging of pile system under determining, the information of sign Master is unique in whole system in the stacking information of Master, be identification information corresponding to each Master, this identification information can be the product code information of Master, or other uniquely identified information etc.
For accelerate that member device preserves according to self its under the stacking information of Master of pile system, and the stacking information of the Master that comprises in the Hello announcement of Master transmission, whether pile system carries out the merging of pile system under determining it, can also comprise the identification information of pile system in the Hello announcement that Master sends in the invention process.
And the identification information of the pile system that the member device in the invention process in the same pile system is preserved is identical, when this pile system generation stacking splitting, even pile system division this moment is for two pile systems, but the identification information of the pile system of preserving in the member device of each pile system or identical.When the pile system after two divisions is carried out stacking merging, or two other pile systems are when carrying out stacking merging, identify for the ease of member device, the pile system identification information that two pile systems that carry out stacking merging can be set is identical, therefore carries out each member device in the pile system of stacking merging and preserves that the identification information of pile system also is identical under self.
When member's equipment receives the Hello announcement of Master transmission, the identification information of the pile system that comprises at first announcing according to this Hello, and local preserve self under the identification information of pile system, judge the identification information of the pile system that comprises in the Hello announcement, with the identification information of affiliated pile system not simultaneously, then directly abandon this Hello announcement; The identification information of the pile system that in judging the Hello announcement, comprises, when identical with the identification information of affiliated pile system, and the stacking information of the main equipment under self in the pile system, with the stacking information of main equipment in the described Hello announcement not simultaneously, then determine self under pile system carry out the merging of pile system.
When carrying out the merging of pile system in the prior art, pile system is determined optimum pile system by election, but also the possibility that little pile system becomes optimum pile system can appear at present, here the little pile system of indication is the less pile system of number of members that comprises, when this little pile system becomes optimum pile system, every the member device that comprises in the pile system of more number of members will restart, and adds pile system after the stacking merging with the identity of Slave after restarting.Because each member device that little pile system when becoming optimum pile system, comprises in the pile system of more member device will restart, and therefore the stability of pile system is exerted a certain influence.Become optimum pile system for fear of little pile system in embodiments of the present invention, improve the stability of pile system, can also comprise the stack member quantity information in the affiliated pile system of this breath Master in the Hello announcement that Master sends.And guarantee that other member devices identify this member device and still have Hello announcement in this pile system because member device can regularly send, so can preserve the stack member quantity information that pile system comprises under self in each member device.
When the pile system under member's equipment is judged self carries out the merging of pile system, the number of members information of pile system under its that preserve according to self, and the stack member quantity information in the pile system under this Master that comprises in this Hello announcement that receives, optimum pile system is determined in election.Wherein determining in election can be according to the precedence information of each member device in the optimum pile system, ruuning situation and carry out stack member quantity information that each pile system of stacking merging comprises etc. and determine.Because definite process of optimum pile system is the known technology of this area, therefore the basis that provides according to the embodiment of the invention is carried out the stack member quantity information that each pile system of stacking merging comprises and is carried out the election of optimum pile system, believe that those skilled in the art can determine corresponding method, just do not give unnecessary details at this.
Behind the Master after the definite stacking merging of member device election, the former stacking system under this Master is optimum pile system, and another pile system is non-optimum pile system.Because optimum pile system has been determined in election, processings that work of the member device in this moment optimum pile system, pile system merging process end that namely should the optimum pile system.
Receive the Hello that the Master of the optimum pile system that the member device of Hello announcement will receive sends in the non-optimum pile system and announce each other member device that is flooded in this non-optimum pile system.After this member device inundation Hello announcement, self restarts, owing to have certain linking relationship in the pile system, therefore the member device that link with this member device receives this Hello announce after, this Hello announcement of inundation, and self restart, this Hello announcement of each member device inundation in the non-optimum pile system indicated successively, and restart, until each member device in the whole non-optimum pile system restarts complete.Each member device after restarting joins in the pile system after the stacking merging with the identity of Slave equipment.
Because discovering at first the member device of pile system merging in the invention process is stacking interface equipment.Therefore when the Hello announcement of this stacking interface equipment according to reception, judge when pile system carries out the merging of pile system under self, this stacking interface equipment carries out the election of optimum pile system, but when the pile system under this stacking interface equipment self is non-optimum pile system, restart after this Hello of this stacking interface equipment inundation announcement, indication is restarted after receiving this Hello announcement of member device inundation of this Hello announcement.Therefore when pile system carries out the pile system merging under the stacking interface equipment of pile system recognizes self, trigger the process of stacking merging, thereby improved the speed of stacking merging.
The embodiment of the invention is based on Fig. 1, stacking interface equipment inundation Hello announcement to non-optimum pile system, and the process of notifying each member device to restart describes, other member device inundations Hello announcement, and notify process that each member device restarts similarly, again just do not enumerate one by one.
Pile system B is non-optimum pile system in Fig. 1, and pile system A is optimum pile system, and the stacking interface equipment among the pile system B comprises B1 and B4, and the stacking interface equipment of pile system A is A1 and A5.Because pile system B is non-optimum pile system, so B1 and B4 Hello announcement that the Master among optimum pile system-pile system A is sent is flooded to each member device among the pile system B.
Stacking interface equipment B1 is flooded to member device B2 with the path that this Hello announces by B1-B2, and after this Hello announcement of this stacking interface equipment B1 inundation, self restarts.Simultaneously because stacking interface equipment B4 and stacking interface equipment B1 are stacking interface equipment arranged side by side, therefore this stacking interface equipment B4 also can announce Hello by the path of B4-B3 simultaneously and be flooded to member device B3, after this Hello announcement of stacking interface equipment B4 inundation, self restarts.Receive member device B2 and this Hello announcement of B3 inundation of the Hello announcement of inundation, and self restarts.This moment since member device B2 and B3 restart, therefore the process of this inundation Hello announcement finishes, each member device in this non-optimum pile system has been finished the restart procedure after the stacking merging, and the member device after each restarts adds in the pile system after the stacking merging with the identity of Slave equipment.
According to Fig. 1 as can be known, carry out in embodiments of the present invention the method for distributed stacking merging by stacking interface equipment, stacking merging is processed simultaneously according to two paths, the order that namely member device restarts in pile system B is respectively " B1-B4 " and " B2-B3 ", so B2-B1 more of the prior art, the route of B2-B3-B4 has effectively shortened the time of carrying out stacking merging, and the event that the distributed stacking merging method that the embodiment of the invention provides need not to carry out stacking merging sends to Master, made a strategic decision by Master, thereby improved the efficient of stacking merging.
In the above-mentioned execution mode of the embodiment of the invention, adopt the method for distributed stacking merging to carry out the merging of pile system, task sharing to two a stacking interface equipment with Master, and stacking interface equipment is when carrying out the processing of stacking merged event, after the Hello announcement inundation that receives, restart, stacking interface equipment has carried out the Hello announcement namely to restart after the inundation even exist protocol massages this moment, therefore, the attack of attack source just is disabled, thereby reduced the attack impact of protocol massages, improved Systems balanth.
Simultaneously, because in embodiments of the present invention with task sharing to the two stacking interface equipment of Master, even this moment, Master was subject to the attack of protocol massages, communication line anxiety very, can on carrying out the impact that stacking merged event triggers by stacking interface equipment in the embodiment of the invention, therefore further not improve Systems balanth yet.
In order effectively to improve the reliability of carrying out stacking merging, Master in the pile system is according to the intrinsic cycle in embodiments of the present invention, each member device inundation Hello in pile system announces, even therefore do not receive the Hello announcement that Master sends at stacking interface equipment of first moment, namely caused losing of this Hello announcement, but because the Master in the pile system is according to the intrinsic cycle, each member device inundation Hello in pile system announces, therefore can guarantee effectively that stacking interface equipment receives the Hello announcement reliably, thereby guarantee the triggered as normal of stacking merging, and then improved the reliability of stacking merging.
The concrete merging process of the pile system that Fig. 3 provides for the embodiment of the invention, describe in conjunction with Fig. 1, and send the Hello announcement with Master according to the cycle that arranges in this execution mode, stacking interface equipment inundation Hello is advertised as example and describes, and this process may further comprise the steps:
S301: the Master-A3 among the pile system A, and the member device inundation Hello announcement of the Master-B2 among the pile system B in the pile system, wherein this member device comprises member device among the pile system A and the member device among the pile system B.
S302: the stacking interface equipment A1 among the pile system A and A5 at first receive the Hello announcement of the Master inundation among the pile system B, and the stacking interface equipment B1 among the pile system B and B4 at first receive the Hello announcement of the Master inundation among the pile system A.
S303: stacking interface equipment B1 (B4) receives the Hello announcement that the A3 among the pile system A sends, and wherein comprises the stacking information of A3 equipment in this Hello announcement, and the stack member quantity information that comprises among the pile system A.
In this step, stacking interface equipment A1 (A5) also can receive the Hello announcement that the B2 among the pile system B sends, and wherein comprises the stacking information of B2 in this Hello announcement, and the stack member quantity information that comprises among the pile system B.
S304: stacking interface equipment B1 (B4) is according to the stacking information of the B2 equipment among the pile system B that self preserves, judge the stacking information that comprises A3 in the Hello announcement that receives, different from the stacking information of the B2 that self preserves, determine that pile system B carries out the merging of pile system.
In this step, stacking interface equipment A1 (A5) also can be according to the stacking information of the A3 among the pile system A that self preserves, judge the stacking information that comprises B2 in the Hello announcement that receives, different from the stacking information of the A3 that self preserves, determine that pile system A carries out the merging of pile system.
S305: stacking interface equipment B1 and B4, and A1 and A5 be according to the number of members information of the affiliated pile system of self preserving, and the stack member quantity information that comprises in this Hello announcement, optimum pile system is determined in election.
Specifically comprise: stacking interface equipment B1 and B4 receive the Hello announcement that A3 sends among the pile system A, number of members information according to the pile system B that self preserves, and the stack member quantity information that comprises among the pile system A that comprises in this Hello announcement, election determines that A, which pile system of B system are optimum pile system.Equally, stacking interface equipment A1 and A5 receive the Hello announcement that B2 sends among the pile system B, number of members information according to the pile system A that self preserves, and the stack member quantity information that comprises among the pile system B that comprises in this Hello announcement, election determines which pile system of A, B is optimum pile system.
Carry out in the process of optimum pile system election in the embodiment of the invention, determine the Master of the pile system after the stacking merging, the pile system before the stacking merging under the Master is optimum pile system.For example the above-mentioned Master that elects the pile system after the stacking merging is A3, and then optimum pile system is pile system A.After election determined that optimum pile system is pile system A, then stacking interface equipment A1 and the A5 of pile system A were left intact, and keep original running status.
S306: stacking interface equipment B1 and B4 in the non-optimum pile system (being pile system B), the Hello announcement that Master among the optimum pile system A is sent is restarted after being flooded to connected member device among the pile system B, and wherein this Hello announcement is used to indicate and restarts after the member device that receives this Hello announcement is flooded to connected member device with described Hello announcement.
Specifically comprise: the path that the Hello that stacking interface equipment B1 sends A3 among the pile system A announces by B1-B2 is flooded to member device B2, and after this Hello announcement of this stacking interface equipment B1 inundation, self restarts.Simultaneously because stacking interface equipment B4 and stacking interface equipment B1 are stacking interface equipment arranged side by side, therefore this stacking interface equipment B4 also can announce the Hello of A3 transmission among the pile system A by the path of B4-B3 simultaneously and be flooded to member device B3, after this Hello announcement of stacking interface equipment B4 inundation, self restarts, receive member device B2 and this Hello announcement of B3 inundation of the Hello announcement of inundation, and self restarts.This moment since member device B2 and B3 restart, therefore the process of this inundation Hello announcement finishes, each member device in this non-optimum pile system has been finished the restart procedure after the stacking merging, and the member device after each restarts adds in the pile system after the stacking merging with the identity of Slave equipment.
S307: each member device among the pile system B after restarting joins in the pile system after the stacking merging with the identity of Slave equipment.
The embodiment of the invention is when carrying out the merging of pile system, when the member device of pile system is announced according to the stacking Hello that other member devices that receive send, the stacking information that in this Hello announcement, comprises described main equipment, and the stacking information of judging the stacking information of the main equipment in the pile system under self and the main equipment in this Hello announcement is not simultaneously, carry out the election of optimum pile system, when pile system is optimum pile system under the member device of this pile system is determined self, the member device of this pile system can be to each member device inundation indication information in the pile system under these other member devices, and this indication information indication is restarted after receiving the described indication information of member device inundation of described indication information.The merging process of another pile system that Fig. 4 provides for the embodiment of the invention, this process may further comprise the steps:
S401: the member device of pile system receives the greeting Hello announcement that other member devices send.
S402: when comprising the stacking information of main equipment in the described Hello announcement, the stacking information of Master under the member device judgement of described pile system self in the pile system, with the stacking information of Master in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system.
The stacking information that comprises in embodiments of the present invention described main equipment in the Hello announcement of the main equipment of pile system according to the cycle transmission that arranges; Or the stacking interface equipment of pile system is copied the stacking information that comprises described main equipment in the Hello announcement that the main equipment of pile system sends under self when recognizing physical link and reconnect.
In embodiments of the present invention, because can regularly sending, the Master of each pile system greets the Hello announcement, receive the member interface equipment of this Hello announcement according to the stacking information of the Master in this Hello announcement, whether the stacking information of judging the Master of pile system under local this member device of preserving is identical with the stacking information of Master during this Hello announces, the stacking information of Master in this Hello announcement, with the stacking information of Master in the pile system under this member device not simultaneously, determine self under pile system carry out the merging of pile system.
Comprise when optimum pile system is determined in election in the pile system under pile system and described other member devices under self in embodiments of the present invention: the member interface equipment of described pile system preserve according to self self under the number of members information of pile system, and the stack member quantity information in the pile system under the described main equipment that comprises in the described Hello announcement, under self, elect in the pile system under pile system and described his member device and determine optimum pile system.
S403: when pile system is optimum pile system under the member device self of determining described pile system, the member device inundation indication information of the pile system of the member device of described pile system under described other member devices, wherein said indication information indication restart after receiving the described indication information of member device inundation of described indication information.
In embodiments of the present invention because the current Business Processing of carrying out of the member device of pile system is different, therefore to carry out the time that pile system merges also different recognizing this pile system, perhaps since the Master of a certain pile system when sending the Hello announcement, cause lose the time, then can there be time-delay in the member device of another pile system time of receiving the Hello announcement.Pile system carries out the merging of pile system under the member device of pile system recognizes self, and in the process of election, when determining that pile system under self is optimum pile system, then the member device of this pile system is to the member device inundation indication information of non-optimum pile system, and this indication information indication is restarted after receiving this indication information of member device inundation of non-optimum pile system of this indication information.
Owing to be connected recently with the stacking interface equipment of non-optimum pile system with the member device of this optimum pile system, after the stacking interface equipment of this non-optimum pile system receives this indication information, restart behind this indication information of inundation, after other member devices that are connected with this stacking interface equipment receive this indication information, restart behind this indication information of inundation, carry out successively, until after each member device of this non-optimum pile system restarts, again add this optimum pile system with the identity of Slave.
The structural representation of the merging device of a kind of pile system that Fig. 5 provides for the embodiment of the invention, this device comprises:
Receiver module 51 is used for receiving the greeting Hello announcement that other member devices send;
Whether judge module 52 is used for when described Hello announcement comprises the stacking information of main equipment, judges the stacking information of the main equipment in the pile system under self, identical with the stacking information of main equipment during described Hello announces;
Pile system election module 53, the stacking information that is used for the main equipment of pile system under judge module 52 is judged self, with the stacking information of main equipment in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system;
Inundation module 54, be used for when determining that self affiliated pile system is optimum pile system, end process then, when pile system is non-optimum pile system under determining self, the Hello that receives announcement is flooded under self restarts behind each member device in the pile system, restart after the described Hello announcement of member device inundation that wherein said Hello announcement indication receives described Hello announcement.
In the described device,
Described inundation module 54 also is used for when determining that self affiliated pile system is optimum pile system, then end process.
In the described device,
Described inundation module 54, when be used for determining that also pile system is optimum pile system under self, the member device inundation indication information of pile system under described other member devices, wherein said indication information indication restart after receiving the described indication information of member device inundation of described indication information.
Described device also comprises:
Sending module 55 is used for when recognizing physical link and reconnect, and imitates that the main equipment of pile system sends the Hello announcement under self.
Described pile system election module 53 specifically is used for,
Preserve according to self self under the number of members information of pile system, and the stack member quantity information in the pile system under the described main equipment that comprises among the described Hello, under self, elect in the pile system under pile system and described other member devices and determine optimum pile system.
The merging device of this pile system shown in Figure 5 can be positioned at the member device of pile system in embodiments of the present invention.
The structural representation of a kind of pile system that Fig. 6 provides for the embodiment of the invention, this pile system comprises the member device 62 of above-mentioned pile system, and other member devices 6l that is used for sending the Hello announcement.In the member device 62 of this pile system, be built-in with the merging device of above-mentioned pile system shown in Figure 5.
The embodiment of the invention provides a kind of merging method of pile system, system and device, the member device of pile system receives the stacking information Hello announcement that comprises Master that other member devices send in the method, the member device of pile system is judged the stacking information of the Master in the Hello announcement, with the stacking information of Master in the affiliated pile system not simultaneously, carry out the election of optimum pile system, restart behind each member device under the member device of non-optimum pile system is flooded to the Hello announcement that receives in the pile system, indication is restarted after receiving the described Hello announcement of member device inundation of described Hello announcement.Reduced in embodiments of the present invention the dependence to Master, pile system carries out pile system when merging under the member device of pile system recognizes self, trigger the process of stacking merging, from must could to trigger the process of stacking merging by main equipment in the prior art different, thereby improved the speed of stacking merging, the inundation Hello of the member device of pile system elder generation announcement is restarted again in embodiments of the present invention in addition, has further improved the stacking aggregate speed of pile system.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (13)

1. the merging method of a pile system is characterized in that, comprising:
The member device of pile system receives the greeting Hello announcement that other member devices send;
When comprising the stacking information of main equipment in the described Hello announcement, the stacking information of the main equipment under the member device judgement of described pile system self in the pile system, with the stacking information of main equipment in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system;
When pile system is non-optimum pile system under the member device self of determining described pile system, the described Hello announcement that the member device of described pile system will receive is flooded under self restarts behind each member device in the pile system, restarts after the described Hello announcement of member device inundation that wherein said Hello announcement indication receives described Hello announcement.
2. the method for claim 1 is characterized in that, described method further comprises:
When pile system is optimum pile system under the member device self of determining described pile system, the member device end process of described pile system.
3. the method for claim 1 is characterized in that, described method further comprises:
When pile system is optimum pile system under the member device self of determining described pile system, the member device inundation indication information of the pile system of the member device of described pile system under described other member devices, wherein said indication information indication restart after receiving the described indication information of member device inundation of the pile system under described other member devices of described indication information.
4. the method for claim 1 is characterized in that, the stacking information that comprises main equipment among the described Hello comprises:
The stacking information that comprises described main equipment during the Hello that the main equipment of pile system sent according to the cycle that arranges announces; Or,
The stacking interface equipment of pile system is copied the stacking information that comprises described main equipment in the Hello announcement that the main equipment of pile system sends under self when recognizing physical link and reconnect.
5. the method for claim 1 is characterized in that, also comprises the stack member quantity information in the affiliated pile system of described main equipment in the described Hello announcement.
6. method as claimed in claim 5 is characterized in that, described under self under pile system and described other member devices in the pile system election determine that optimum pile system comprises:
The member device of described pile system preserve according to self self under the number of members information of pile system, and the stack member quantity information in the pile system under the described main equipment that comprises in the described Hello announcement, under self, elect in the pile system under pile system and described other member devices and determine optimum pile system.
7. the merging device of a pile system is characterized in that, described device comprises:
Receiver module is used for receiving the greeting Hello announcement that other member devices send;
Whether judge module is used for when described Hello announcement comprises the stacking information of main equipment, judges the stacking information of the main equipment in the pile system under self, identical with the stacking information of main equipment during described Hello announces;
Pile system election module, the stacking information that is used for the main equipment of pile system under judge module is judged self, with the stacking information of main equipment in the described Hello announcement not simultaneously, under self under pile system and described other member devices in the pile system election determine optimum pile system;
The inundation module, be used for when determining that self affiliated pile system is non-optimum pile system, the described Hello announcement that receives is flooded under self restarts behind each member device in the pile system, restart after the described Hello announcement of member device inundation that wherein said Hello announcement indication receives described Hello announcement.
8. device as claimed in claim 7 is characterized in that, in the described device,
Described inundation module also is used for when determining that self affiliated pile system is optimum pile system, then end process.
9. device as claimed in claim 7 is characterized in that, in the described device,
Described inundation module, when be used for determining that also pile system is optimum pile system under self, the member device inundation indication information of pile system under described other member devices, wherein said indication information indication restart after receiving the described indication information of member device inundation of the pile system under described other member devices of described indication information.
10. device as claimed in claim 7 is characterized in that, described device also comprises:
Sending module is used for when recognizing physical link and reconnect, and imitates that the main equipment of pile system sends the Hello announcement under self.
11. device as claimed in claim 7, it is characterized in that, described pile system election module specifically is used for, preserve according to self self under the number of members information of pile system, and the stack member quantity information in the pile system under the described main equipment that comprises in the described Hello announcement, under self, elect in the pile system under pile system and described other member devices and determine optimum pile system.
12. the member device of a pile system is characterized in that, described member device comprises the arbitrary described device of claim 7~11.
13. a pile system is characterized in that, described system comprises the member device of pile system as claimed in claim 12 and is used for sending other member devices of greeting the Hello announcement.
CN2010101596540A 2010-04-29 2010-04-29 Method, system and device for combining stacking systems Active CN101883045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101596540A CN101883045B (en) 2010-04-29 2010-04-29 Method, system and device for combining stacking systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101596540A CN101883045B (en) 2010-04-29 2010-04-29 Method, system and device for combining stacking systems

Publications (2)

Publication Number Publication Date
CN101883045A CN101883045A (en) 2010-11-10
CN101883045B true CN101883045B (en) 2013-01-30

Family

ID=43054939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101596540A Active CN101883045B (en) 2010-04-29 2010-04-29 Method, system and device for combining stacking systems

Country Status (1)

Country Link
CN (1) CN101883045B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104513B (en) * 2011-03-29 2013-01-30 福建星网锐捷网络有限公司 Stack establishment method, network equipment and stacking system
CN102780582B (en) * 2012-07-23 2014-12-24 福建星网锐捷网络有限公司 Reset method and device for stack topology member device and network device
CN103441934B (en) * 2013-08-16 2017-03-01 福建星网锐捷网络有限公司 A kind of learning method of stacking topology and device
CN103457766B (en) * 2013-08-23 2016-08-10 福建星网锐捷网络有限公司 The method and device of equipment is managed during a kind of stacking splitting

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163077A (en) * 2007-11-12 2008-04-16 中兴通讯股份有限公司 Combination method of stacked system
CN101527643A (en) * 2009-03-26 2009-09-09 杭州华三通信技术有限公司 Method, system and main equipment for acquiring stacking system information
CN101588298A (en) * 2009-07-07 2009-11-25 杭州华三通信技术有限公司 Method for switching flow in stacking system and stacking system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163077A (en) * 2007-11-12 2008-04-16 中兴通讯股份有限公司 Combination method of stacked system
CN101527643A (en) * 2009-03-26 2009-09-09 杭州华三通信技术有限公司 Method, system and main equipment for acquiring stacking system information
CN101588298A (en) * 2009-07-07 2009-11-25 杭州华三通信技术有限公司 Method for switching flow in stacking system and stacking system

Also Published As

Publication number Publication date
CN101883045A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101094157B (en) Method for implementing network interconnection by using link aggregation
CN101478435B (en) Topology collecting method for stacking system and dual control board equipment
CN102006184B (en) Management method, device and network device of stack link
CN102164056A (en) Stacked link aggregation fault detection method and stacked devices
CN104604193B (en) The automatic management method and device of network infrastructure with virtual unit environmental functional
CN102624635B (en) Method and device for realizing graceful restart
CN101883045B (en) Method, system and device for combining stacking systems
CN102014019A (en) Aggregated link switching method and device
CN100579076C (en) Neighbourhood establishing method and router
CN102684923A (en) Self-healing networking method for half-duplex asynchronous communication
CN102148744A (en) Method and system for reducing package loss during restarting process of stacking device
CN102882704A (en) Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
CN103036716A (en) Method and system for link switchover
CN101729231A (en) Industrial Ethernet in distributed control system
CN105790965A (en) Method and device for link switching and line card
KR101075462B1 (en) Method to elect master nodes from nodes of a subnet
CN101599906B (en) Method and device for setting port state
CN103441878A (en) Method and device for processing ownership of PE device in VCF network
CN101340377B (en) Method, apparatus and system for data transmission in double layer network
CN102237929A (en) Equipment switching method, device and system based on fiber communication network
CN101420378A (en) Optimum restart implementing apparatus and method under resource reservation protocol flow engineering
CN101163077B (en) Combination method of stacked system
CN101841472B (en) Multicast link redundancy backup method and router
CN101170717B (en) A method and system for realizing license mechanism of mobile switching center in the pool
CN102026243B (en) Method and system for processing user equipment

Legal Events

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