CN105763462A - Stack splitting processing method and switch - Google Patents

Stack splitting processing method and switch Download PDF

Info

Publication number
CN105763462A
CN105763462A CN201610040493.0A CN201610040493A CN105763462A CN 105763462 A CN105763462 A CN 105763462A CN 201610040493 A CN201610040493 A CN 201610040493A CN 105763462 A CN105763462 A CN 105763462A
Authority
CN
China
Prior art keywords
switch
configuration information
stacking
identifier
hello message
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.)
Granted
Application number
CN201610040493.0A
Other languages
Chinese (zh)
Other versions
CN105763462B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610040493.0A priority Critical patent/CN105763462B/en
Publication of CN105763462A publication Critical patent/CN105763462A/en
Application granted granted Critical
Publication of CN105763462B publication Critical patent/CN105763462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers

Abstract

The invention provides a stack splitting processing method and a switch. The method comprises steps: when splitting happens to stack, a first switch sends first configuration information of the first switch to a second switch via a third switch outside the stack, wherein the first configuration information at least comprises a first field identifier of the first switch and a first stack identifier of the first switch; the first switch receives second configuration information of a second switch via the second switch, wherein the second configuration information at least comprises a second field identifier of the second switch and a second stack identifier of the second switch; and when the first field identifier and the second field identifier are the same, and the first stack identifier and the second stack identifier meet preset conditions, service ports on the first switch are closed. A routing calculation chaos problem after stack splitting can be solved.

Description

A kind of method processing stacking splitting and switch
Technical field
The present invention relates to stacking splitting treatment technology, particularly to a kind of method processing stacking splitting and switch.
Background technology
Stacking is a kind of software virtualization technology, and its core concept is to be linked together by multiple devices, after carrying out the configuration of necessity, is virtualized into an equipment.Use this Intel Virtualization Technology can gather hardware resource and the software processing capability of multiple devices, it is achieved the collaborative work of multiple devices, unified management and uninterruptedly safeguard.
Link failure between stack equipment can cause that one stacking becomes multiple new stacking.In order to improve the availability of system, it is accomplished by a kind of protection mechanism when stacking splitting, it is possible to detect in network simultaneous multiple stacking, and process accordingly, reduces the stacking splitting impact on business as far as possible.
At present by LACP (LinkAggregationControlProtocol, Link Aggregation Control Protocol), BFD (BidirectionalForwardingDetection, two-way converting detect), ARP (AddressResolutionProtocol, address resolution protocol) or the agreement of the Ethernet such as ND (NeighborDiscovery, neighbor uni-cast) can detect whether the stacking of Ethernet switch composition exists the stacking of multiple conflict.But for FC (FibreChannel, optical-fibre channel) switch composition stacking, it FC interface is the agreement not supporting Ethernet, so the multiple stacking conflicts that cannot occur after detecting and process the stacking splitting of FC switch composition by existing method, thus the situation that router-level topology is chaotic occurs after causing stacking splitting.
It should be noted that above the introduction of technical background to be intended merely to and conveniently technical scheme is carried out clear, complete explanation, and facilitate the understanding of those skilled in the art to set forth.Can not merely because these schemes be set forth at the background section of the present invention and think that technique scheme is conventionally known to one of skill in the art.
Summary of the invention
The purpose of the embodiment of the present invention is in that to provide a kind of method processing stacking splitting and switch, with the router-level topology confusion problem occurred after solving stacking splitting.
A kind of method processing stacking splitting and switch that the embodiment of the present invention provides are achieved in that
A kind of method processing stacking splitting, the first switch and the second switch are with a stack of member device, described in include:
When described stacking generation division, the first configuration information of self is sent to described second switch by described first switch by described stacking the 3rd outer switch, and described first configuration information at least includes the first relam identifier of described first switch and the first stacking identifier of described first switch;
Described first switch receives the second configuration information of described second switch by described 3rd switch, and described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch;
When described first relam identifier is identical with described second relam identifier, and when described first stacking identifier meets pre-conditioned with described second stacking identifier, close the service port on described first switch.
A kind of switch processing stacking splitting, including:
Configuration information Transmit-Receive Unit, for when the stacking generation in described switch place is divided, by the first configuration information of self by stacking the 3rd outer switch send to described stacking divide before with described switch be in same stacking in the second switch, described first configuration information at least includes the first relam identifier and the first stacking identifier of self;
Described configuration information Transmit-Receive Unit, being additionally operable to be received the second configuration information of described second switch by described 3rd switch, described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch;
Service port processing unit, is used for when described first relam identifier is identical with described second relam identifier, and when described first stacking identifier meets pre-conditioned with described second stacking identifier, closes the service port of self.
A kind of method processing stacking splitting of embodiment of the present invention offer and switch, by addition of stacking identifier, such that it is able to made a distinction by each equipment after stacking splitting on the basis of relam identifier.It addition, be originally in same stacking in respective switch comprise respective relam identifier and the configuration information of stacking identifier by sending mutually so that be originally in same stacking in respective switch all can obtain the configuration information of other switches.
Further, contrast by different configuration informations, and according to comparing result and pre-conditioned relation, such that it is able to by be originally in same stacking in the service port of a switch retain, and the service port of other switches is closed, such that it is able to avoid the confusion that information is transmitted, it is ensured that correct forwarding can be carried out according to the route that shortest path preferably generates.
With reference to explanation hereinafter and accompanying drawing, disclose in detail only certain exemplary embodiments of this invention, specifying principles of the invention can adopted mode.It should be understood that embodiments of the present invention are not so limited in scope.In the spirit of claims and the scope of clause, embodiments of the present invention include many changes, amendment and are equal to.
The feature described for a kind of embodiment and/or illustrate can use in one or more other embodiment in same or similar mode, combined with the feature in other embodiment, or substitutes the feature in other embodiment.
It should be emphasized that term " include/comprise " refers to the existence of feature, one integral piece, step or assembly herein when using, but it is not precluded from the existence of one or more further feature, one integral piece, step or assembly or additional.
Accompanying drawing explanation
Included accompanying drawing is used for providing being further understood from the embodiment of the present invention, which constitutes a part for description, is used for illustrating embodiments of the present invention, and describes explaination principles of the invention of coming together with word.It should be evident that the accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
In the accompanying drawings:
Fig. 1 is the schematic diagram of stacking splitting networking in the embodiment of the present invention;
A kind of method flow diagram processing stacking splitting that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 is the signaling process figure being between the respective switch in polymerization networking in the embodiment of the present application;
The functional block diagram of a kind of switch processing stacking splitting that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the technical scheme in the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, all should belong to the scope of protection of the invention.
Fig. 1 is the schematic diagram of stacking splitting networking in the embodiment of the present invention.As shown in Figure 1, described stacking splitting networking includes being arranged in same stacking switch 1 and switch 2, and it is positioned at this stacking outer switch 3, wherein, switch 1 is connected with switch 3 respectively with switch 2, switch 1 and switch 2 due to be in same stacking in, be therefore also connected between them.
When, before stacking splitting, switch 1 and switch 2 share same relam identifier, and this relam identifier is different from the relam identifier of switch 3.
When after stacking splitting, switch 1 and switch 2 be no longer on same stacking in, but form respectively stand alone exchange.
But, after stacking splitting, switch 1 and switch 2 still use identical relam identifier, so, when switch 3 receives the LSR (LinkStateRecords of switch 1 or switch 2, link state records) time, owing to the relam identifier in LSR is identical, then switch 3 arises that the situation of confusion when carrying out router-level topology according to this LSR.
The embodiment of the present invention can on the basis of described relam identifier, for same stacking in respective switch allocation outside stacking identifier, with after stacking splitting can be originally in same stacking in switch make a distinction.
A kind of method flow diagram processing stacking splitting that Fig. 2 provides for the embodiment of the present invention.Although multiple operations that flow process include with particular order occur are described below, but it should be clearly understood that these processes can include more or less of operation, these operations can sequentially perform or executed in parallel, for instance uses parallel processor or multi-thread environment.In embodiments of the present invention, the first switch and the second switch can be same stacking member device, as in figure 2 it is shown, described method includes:
S1: when described stacking generation division, the first configuration information of self is sent to described second switch by described first switch by described stacking the 3rd outer switch, and described first configuration information at least includes the first relam identifier of described first switch and the first stacking identifier of described first switch.
The embodiment of the present invention can use FSPF (FabricShortestPathFirst, optical fiber SPF) agreement carries out the collision detection after stacking splitting, it is done corresponding extension and judgement on the basis of the reliable flooding mechanism of FSPF, it is thus possible to the information of each equipment in network conveyed to each other by flooding mechanism, so that each equipment can interpolate that in network whether occur in that stacking splitting.After stacking splitting occurs, be in same stacking in the topological structure of switch can change.
As it is shown in figure 1, be originally direct-connected between switch 1 and switch 2, but when stacking splitting, no longer direct-connected between switch 1 and switch 2, but be indirectly connected to by switch 3.In embodiments of the present invention, switch 1 can be described first switch, and switch 2 can be described second switch, and switch 3 can be described 3rd switch.
Described first switch and described second switch due to be originally in same stacking in, therefore described first switch and described second switch possess identical relam identifier.In embodiments of the present invention, in order to described first switch and described second switch can be distinguished after stacking splitting, can be that described first switch adds unique stacking identifier respectively with described second switch, so, by the combination of relam identifier and stacking identifier just can be originally in same stacking in different switches make a distinction.
When stacking splitting, the first configuration information of self can be sent to described second switch by described first switch by described stacking the 3rd outer switch, at least includes the first relam identifier of described first switch and the first stacking identifier of described first switch in described first configuration information.
After the 3rd switch receives described first configuration information that described first switch is sent, it is possible to this first configuration information is transmitted to described second switch.
S2: described first switch receives the second configuration information of described second switch by described 3rd switch, and described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch.
Similarly, when described stacking generation division, the second configuration information of self also can be sent to described first switch place by described second switch by described 3rd switch, and described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch.
S3: when described first relam identifier is identical with described second relam identifier, and when described first stacking identifier meets pre-conditioned with described second stacking identifier, close the service port on described first switch.
After described first switch receives described second configuration information, it is possible to extract described second relam identifier and described second stacking identifier from described second configuration information.The second relam identifier extracted just can be contrasted by described first switch with the first relam identifier of self, and is contrasted with the first stacking identifier of self by described second stacking identifier.When described second relam identifier is identical with described first relam identifier, then illustrate described first switch and described second switch be originally be in same stacking in.
In embodiments of the present invention, in order to avoid the 3rd switch situation of confusion reigned when carrying out router-level topology, it is possible to by a closedown in the first switch and the second switch.Specifically, switch less for stacking identifier can be closed by the embodiment of the present invention.So, when described first stacking identifier is more than described second stacking identifier, then can be considered as described first stacking identifier and meet pre-conditioned with described second stacking identifier, such that it is able to the service port on described first switch is closed.When the 3rd switch is when carrying out router-level topology, only can draw the route of the second switch, from the situation without confusion reigned.
It should be noted that the above-mentioned process that relam identifier and stacking identifier are extracted and contrasted can also be carried out on described second switch equally.After two switches receive configuration information each other, it is possible to carry out the extraction to relam identifier and stacking identifier and comparison process respectively, thereby may be ensured that the service port only having a switch after contrast is in running order.
Below in conjunction with concrete application scenarios, technical scheme is carried out more detailed elaboration:
At present, FSPF (shortest path is preferred) agreement is mainly used dynamically to generate FC route in the Fabric network of FC switch composition.FSPF Routing Protocol is an agreement carrying out Path selection according to Link State, it can continue the link-state information of all switches in tracking network, the link-state information of all switches constitutes LSDB (LinkStateDataBase, LSD), switch calculates the minimum path of other respective switch in network according to LSDB, thus being generated to the FSPF route of other respective switch.
The Link State describing this switch and other direct-connected switches complete for LSR of one switch.Each switch is responsible for safeguarding and issuing the LSR of its own.Every LSR uniquely can be identified by Link-StateID (Link State identity code), in stacking at one, be in this stacking in all switches share same DomainID (relam identifier).
In a concrete application scenarios, when described stacking splitting, described first switch can update self LSR, LSR and include the first configuration information of the first switch.
Table 1 is the signal table of the LSRHeader of the first switch in the embodiment of the present invention.
Table 1
As shown in table 1, the DomainID in the LSR of the first switch can fill in relam identifier stacking belonging to self, then can fill the stacking identifier of self in the Reserved that length is 4 bytes.Described stacking identifier can be in the numbering of same stacking middle respective switch, this numbering same stacking in do not repeat.
Such as, as it is shown in figure 1, the relam identifier of switch 1 and switch 2 can be X, and switch 1 in a stack be numbered 1, switch 2 in a stack be numbered 2, then 1 can serve as the stacking identifier of switch 1, and 2 can the stacking identifier of in return machine 2.Before stacking splitting, switch 1 communicates with switch 3 respectively through respective physical port with switch 2.So, after stacking splitting, the neighbor state between switch 1 and switch 3, the neighbor state between switch 2 and switch 3 are still and completely abut against FULL.
Therefore, after stacking splitting, after the LSR of self is updated by switch 1, it is possible to the LSR after updating is packaged in link state update packet 1, LSR after switch 1 renewal includes the configuration information 1 of switch 1, and this configuration information 1 includes: relam identifier X and stacking identifier 1.Now, after stacking splitting, switch 2 is not direct-connected with switch 1, and it is direct-connected with switch 1 to only have switch 3, then this link state update packet 1 then can be sent to switch 3 by switch 1, switch 3 flood this link state update packet 1 to switch 2.
Similarly, same stacking in switch 2 LSR of self can also be updated after, can being packaged in link state update packet 2 by the LSR after updating, the LSR after switch 2 renewal includes the configuration information 2 of switch 2, and this configuration information 2 includes: relam identifier X and stacking identifier 2.Now, after stacking splitting, switch 1 is not direct-connected with switch 2, and it is direct-connected with switch 2 to only have switch 3, then this link state update packet 2 then can be sent to switch 3 place by switch 2, switch 3 flood this link state update packet 2 to switch 1..
Switch 1 is after receiving link state update packet 2, it is possible to the LSR in described link state update packet 2 is analyzed.Same, switch 2 is after receiving link state update packet 1, it is possible to the LSR in described link state update packet 1 is analyzed.For example, it is possible to whether Checksum, LSRType information analyzed in LSR is correct, whether LSRAge reaches MaxAge, minimum accepts interval whether time-out etc..The analysis means of these routines is existing means of the prior art, and this is not repeated by the present invention.
In embodiments of the present invention, it is possible to relam identifier and stacking identifier are analyzed by emphasis.
Such as, switch 1 can extract configuration information 2 from the LSR that LSU2 message carries.The configuration information 2 extracted can be contrasted by switch 1 with the configuration information 1 of self.Due to, territory indications X in configuration information 2 is identical with the territory indications X in configuration information 1, and the territory indications 2 in configuration information 2 is more than the territory indications 1 in configuration information 1, according to preset rules (such as, preset rules is retained by switch minimum for stacking identifier, and the service port of other switch is closed), then switch 1 retained business port, does not close.
Switch 2 can extract configuration information 1 from the LSR that LSU1 message carries.The configuration information 1 extracted can be contrasted by switch 1 with the configuration information 2 of self.Due to, territory indications X in configuration information 1 is identical with the territory indications X in configuration information 2, and the territory indications 2 in configuration information 2 is more than the territory indications 1 in configuration information 1, according to preset rules (such as, preset rules is retained by switch minimum for stacking identifier, and the service port of other switch is closed), then switch 2 closes service port.
So, originally be in same stacking in switch all can receive configuration information each other, such that it is able to the configuration information received is contrasted with the configuration information of self, a switch that is final then that can filter out stacking identifier minimum works on, other switches then can quit work, to ensure that business datum does not repeat.In an alternative embodiment of the invention, namely the port trunking of switch 1, switch 2 before stacking splitting, when communicating with switch 3 by aggregation port, it is possible to use the HELLO message of FSPF carries out the transmission of information as configuration information.In this embodiment of the invention, switch 1 can be described first switch, and switch 2 can be described second switch, and switch 3 can be described 3rd switch.
Table 2 is the signal table of the HELLO message using FSPF in the embodiment of the present invention.
Table 2
In table 2, the Reserved field of 1 byte-sized after RecipientDomain_ID can be used to carry the stacking identifier of switch.
HELLO message can be divided into unidirectional HELLO message and two-way HELLO message, and both HELLO message may be incorporated for the linking relationship set up and safeguard between neighboring switch.The difference is that, unidirectional HELLO message often only carries the routing address of message transmitting party, two-way HELLO message then carries message transmitting party and the routing address of message recipient.
Fig. 3 is the signaling process figure being between the respective switch in polymerization networking in the embodiment of the present application.Specifically, it is assumed that switch 1 is stand-by equipment before stacking splitting, and switch 2 was originally main equipment, switch 1, switch 2 are FULL with the neighbor state of switch 3 before stacking splitting.So after stacking splitting, switch 1 can be changed into main equipment from stand-by equipment, so switch 1 can become initializing Initial with the neighbor state of switch 3, and switch 2 is not owing to changing equipment state, therefore the neighbor state of switch 2 and switch 3 or FULL.
So, when stacking splitting, switch 1 topological structure in a network changes, now the configuration information 1 of self can be filled to HELLO message by switch 1, and sending unidirectional HELLO message to switch 3, configuration information 1 at least includes relam identifier X and the stacking identifier 1 of switch 1 self.Switch 3 is after receiving this unidirectional HELLO message, the neighbor state of FULL can be revised as Initial equally, then switch 3 can reply two-way HELLO message 1 to all members (switch 1 and switch 2) of aggregation port, carries configuration information 1 in this two-way HELLO message 1.After switch 1 receives the two-way HELLO message 1 that switch 3 is replied, analyze the configuration information 1 carrying self in this two-way HELLO message 1, now just the neighbor state between switch 1 and switch 3 can be revised as data base and exchange DB_Exchange state, then can carry out LSDB with switch 3 and initialize Tong Bu, and after synchronously completing, the neighbor state between switch 1 and switch 3 is finally revised as FULL.
And as the switch 2 of main equipment when receiving the two-way HELLO message 1 of the configuration information 1 carrying switch 1 that switch 3 is sent, switch 2 did not now record the configuration information 1 of switch 1, then can record this configuration information 1.Can sending two-way HELLO message 2 to switch 3, carry the configuration information 2 of switch 2 in this two-way HELLO message 2, configuration information 2 can include relam identifier X and the stacking identifier 2 of switch 2.This two-way HELLO message 2 and then by switch 3 through processing, can generate and carry the two-way HELLO message 3 of configuration information 2, switch 3 can send this two-way HELLO message 3 to all members (switch 1 and switch 2) of aggregation port.
After switch 1 receives two-way HELLO message 3, now switch 1 did not record configuration information 2, then can recording configuration information 2.
After switch 2 receives two-way HELLO message 3, it has been found that carrying the configuration information 2 of self in this two-way HELLO message 3, now switch 2 just no longer replys message to switch 3.
It addition, switch 1 in response to this two-way HELLO message 3, can send the two-way HELLO message 4 carrying configuration information 1 again to switch 3.
Switch 3, after receiving two-way HELLO message 4, through processing, generates the two-way HELLO message 5 carrying configuration information 1, and switch 3 can send this two-way HELLO message 5 to all members (switch 1 and switch 2) of aggregation port.
After switch 1 receives two-way HELLO message 5, it has been found that the configuration information 1 carried in this two-way HELLO message 5 is the configuration information of self, then then no longer respond this two-way HELLO message 5.
After switch 2 receives two-way HELLO message 5, it has been found that the configuration information 1 carried in this two-way HELLO message 5 is crossed by self record, now then no longer makes reply to switch 3.
So, be originally in same stacking in main equipment (switch 2) and stand-by equipment (switch 1) all receive configuration information each other.Owing to the territory indications X in configuration information 1 is identical with the territory indications X in configuration information 2, and the territory indications 2 in configuration information 2 is more than the territory indications 1 in configuration information 1, according to preset rules (such as, preset rules is retained by switch minimum for stacking identifier, and the service port of other switch is closed), then switch 2 closes service port, and switch 1 retained business port is not closed.
So, the switch that may finally filter out stacking identifier minimum works on, and other switches then can quit work, to ensure that business datum does not repeat.
Therefore, a kind of method processing stacking splitting that the embodiment of the present invention provides, by addition of stacking identifier, such that it is able to made a distinction by each equipment after stacking splitting on the basis of relam identifier.It addition, be originally in same stacking in respective switch comprise respective relam identifier and the configuration information of stacking identifier by sending mutually so that be originally in same stacking in respective switch all can obtain the configuration information of other switches.Further, contrast by different configuration informations, and according to comparing result and pre-conditioned relation, such that it is able to by be originally in same stacking in the service port of a switch retain, and the service port of other switches is closed, such that it is able to avoid the confusion that information is transmitted, it is ensured that correct forwarding can be carried out according to the route that FSPF (shortest path is preferred) generates.
Further, by the contrast of the configuration information of distinct device, and according to comparing result and pre-conditioned relation, the equipment that stacking splitting occurs is processed accordingly, thus avoiding the confusion that information is transmitted, it is ensured that correct forwarding can be carried out according to the route that shortest path preferably generates.
Specific embodiments of the invention also provide for a kind of switch processing stacking splitting.The functional block diagram of a kind of switch processing stacking splitting that Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, described switch includes:
Configuration information Transmit-Receive Unit 100, for when the stacking generation in described switch place is divided, by the first configuration information of self by stacking the 3rd outer switch send to described stacking divide before with described switch be in same stacking in the second switch, described first configuration information at least includes the first relam identifier and the first stacking identifier of self;
Described configuration information Transmit-Receive Unit 100, being additionally operable to be received the second configuration information of described second switch by described 3rd switch, described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch;
Service port processing unit 200, is used for when described first relam identifier is identical with described second relam identifier, and when described first stacking identifier meets pre-conditioned with described second stacking identifier, closes the service port of self.
In a preferred embodiment, described configuration information Transmit-Receive Unit 100 specifically includes:
Link state records is new module more, and for updating the link state records of self, described link state records includes described first configuration information;
Link State Update Packet sending module, for the link state records after renewal being packaged in Link State Update Packet, and sends described Link State Update Packet to the 3rd switch that neighbor state is FULL;
Configuration information transmitting element, for being received the second configuration information of described second switch by described 3rd switch, described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch.
In a preferred embodiment, described service port processing unit 200 specifically includes:
Comparing module, for when described first relam identifier identical with described second relam identifier, and described first stacking identifier more than described second stacking identifier time, close the service port of self.
In a preferred embodiment, when described switch is stand-by equipment, described configuration information Transmit-Receive Unit 100 specifically includes:
Unidirectional message sending module, for the neighbor state of self is revised as Initial, and self the first relam identifier and the first stacking identifier are filled to unidirectional HELLO message, and send described unidirectional HELLO message to described stacking the 3rd outer switch;
Neighbor state the first modified module, for receiving described 3rd switch responds after the first two-way HELLO message that described unidirectional HELLO message is replied, from Initial, the neighbor state of self is revised as DB_Exchange, and described first two-way HELLO message includes described first configuration information;
Neighbor state the second modified module, for carrying out the synchronization of LSD with described 3rd switch, and is revised as FULL by the neighbor state of self from DB_Exchange after synchronously completing;
3rd two-way HELLO message sending module, for after receiving the second two-way HELLO message carrying the second configuration information that described 3rd switch sends, record described second configuration information, and send, to described 3rd switch, the 3rd two-way HELLO message carrying described first configuration information, so that described 3rd two-way HELLO message is sent to described second switch by described 3rd switch.
In a preferred embodiment, when described switch is main equipment, described configuration information Transmit-Receive Unit 100 specifically includes:
4th two-way HELLO message receiver module, for receiving the 4th two-way HELLO message carrying the second configuration information that described 3rd switch sends;
5th two-way HELLO message receiver module, if for not recording described second configuration information, then record described second configuration information, and send, to described 3rd switch, the 5th two-way HELLO message carrying described first configuration information, so that described 5th two-way HELLO message is sent to described second switch by described 3rd switch.
Ins and outs concrete with the method processing stacking splitting involved by the switch processing stacking splitting in the embodiment of the present invention are similar, repeat no more.
Therefore, a kind of switch processing stacking splitting that the embodiment of the present invention provides, by addition of stacking identifier, such that it is able to made a distinction by each equipment after stacking splitting on the basis of relam identifier.It addition, be originally in same stacking in respective switch comprise respective relam identifier and the configuration information of stacking identifier by sending mutually so that be originally in same stacking in respective switch all can obtain the configuration information of other switches.Further, contrast by different configuration informations, and according to comparing result and pre-conditioned relation, such that it is able to by be originally in same stacking in the service port of a switch retain, and the service port of other switches is closed, such that it is able to avoid the confusion that information is transmitted, it is ensured that correct forwarding can be carried out according to the route that shortest path preferably generates.
In this manual, such adjectives such as such as first and second can be only used for making a distinction an element or action and another element or action, without this relation or the order that require or imply any reality.When environment allows, should not be interpreted as limited in only element, parts or step with reference to element or parts or step (s), and can be one or more etc. in element, parts or step.
Above describing of the various embodiments of the present invention is supplied to those skilled in the art with the purpose described.It is not intended to exhaustive or is not intended to limit the invention to single disclosed embodiment.As it has been described above, the various replacements of the present invention and change will be apparent from for above-mentioned technology one of ordinary skill in the art.Therefore, although specifically discuss the embodiment of some alternatives, but other embodiment will be apparent from, or those skilled in the art relatively easily draw.It is contemplated that include in all replacements of this present invention discussed, amendment and change, and drop on other embodiment in the spirit and scope of foregoing invention.
Each embodiment in this specification all adopts the mode gone forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is the difference with other embodiments.Especially for system embodiment, owing to it is substantially similar to embodiment of the method, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, based on the system of microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, the distributed computing environment including any of the above system or equipment etc..
The present invention can described in the general context of computer executable instructions, for instance program module.Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, assembly, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, the remote processing devices connected by communication network perform task.In a distributed computing environment, program module may be located in the local and remote computer-readable storage medium including storage device.
Although depicting the present invention by embodiment, it will be appreciated by the skilled addressee that the present invention has many deformation and is varied without departing from the spirit of the present invention, it is desirable to appended claim includes these deformation and is varied without departing from the spirit of the present invention.

Claims (10)

1. the method processing stacking splitting, it is characterised in that the first switch and the second switch are that described method includes with a stack of member device:
When described stacking generation division, the first configuration information of self is sent to described second switch by described first switch by described stacking the 3rd outer switch, and described first configuration information at least includes the first relam identifier of described first switch and the first stacking identifier of described first switch;
Described first switch receives the second configuration information of described second switch by described 3rd switch, and described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch;
When described first relam identifier is identical with described second relam identifier, and when described first stacking identifier meets pre-conditioned with described second stacking identifier, close the service port on described first switch.
2. the method processing stacking splitting as claimed in claim 1, it is characterised in that the first configuration information of self is sent extremely described second switch by described stacking the 3rd outer switch and specifically includes by described first switch:
Described first switch updates the link state records of self, and described link state records includes described first configuration information;
Described first switch by update after link state records be packaged in Link State Update Packet, and by described Link State Update Packet send to neighbor state be the 3rd switch completely abutting against FULL.
3. the method processing stacking splitting as claimed in claim 1, it is characterized in that, described when described first relam identifier identical with described second relam identifier, and when described first stacking identifier and described second stacking identifier meet pre-conditioned, the service port closed on described first switch specifically includes:
When described first relam identifier is identical with described second relam identifier, and described first stacking identifier more than described second stacking identifier time, close the service port on described first switch.
4. the method processing stacking splitting as claimed in claim 1, it is characterized in that, the first configuration information of self is sent to described second switch by described first switch by described stacking the 3rd outer switch, and described first switch receives the second configuration information of described second switch by described 3rd switch, specifically include:
When described first switch is stand-by equipment, the neighbor state of self is revised as initialization Initial by described first switch, and sends the unidirectional greeting HELLO message carrying described first configuration information to described 3rd switch;
Described first switch receives described 3rd switch responds after the first two-way HELLO message that described unidirectional HELLO message is replied, from Initial, the neighbor state of self is revised as switching database DB_Exchange, and described first two-way HELLO message carries described first configuration information;
Described first switch carries out the synchronization of LSD with described 3rd switch, and after synchronously completing, from DB_Exchange, the neighbor state of self is revised as FULL;
Described first switch is after receiving the second two-way HELLO message carrying the second configuration information that described 3rd switch sends, record described second configuration information, and send, to described 3rd switch, the 3rd two-way HELLO message carrying described first configuration information, so that described 3rd two-way HELLO message is sent to described second switch by described 3rd switch.
5. the method processing stacking splitting as claimed in claim 1, it is characterized in that, the first configuration information of self is sent to described second switch by described first switch by described stacking the 3rd outer switch, and described first switch receives the second configuration information of described second switch by described 3rd switch, specifically include:
When described first switch is main equipment, described first switch receives the 4th two-way HELLO message carrying the second configuration information that described 3rd switch sends;
If described first switch does not record described second configuration information, then record described second configuration information and send, to described 3rd switch, the 5th two-way HELLO message carrying described first configuration information, so that described 5th two-way HELLO message is sent to described second switch by described 3rd switch.
6. the switch processing stacking splitting, it is characterised in that described switch includes:
Configuration information Transmit-Receive Unit, for when the stacking generation in described switch place is divided, by the first configuration information of self by stacking the 3rd outer switch send to described stacking divide before with described switch be in same stacking in the second switch, described first configuration information at least includes the first relam identifier and the first stacking identifier of self;
Described configuration information Transmit-Receive Unit, being additionally operable to be received the second configuration information of described second switch by described 3rd switch, described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch;
Service port processing unit, is used for when described first relam identifier is identical with described second relam identifier, and when described first stacking identifier meets pre-conditioned with described second stacking identifier, closes the service port of self.
7. the switch processing stacking splitting as claimed in claim 6, it is characterised in that described configuration information Transmit-Receive Unit specifically includes:
Link state records is new module more, and for updating the link state records of self, described link state records includes described first configuration information;
Link State Update Packet sending module, for the link state records after renewal being packaged in Link State Update Packet, and sends described Link State Update Packet to the 3rd switch that neighbor state is FULL;
Configuration information transmitting element, for being received the second configuration information of described second switch by described 3rd switch, described second configuration information at least includes the second relam identifier of described second switch and the second stacking identifier of described second switch.
8. the switch processing stacking splitting as claimed in claim 6, it is characterised in that described service port processing unit specifically includes:
Comparing module, for when described first relam identifier identical with described second relam identifier, and described first stacking identifier more than described second stacking identifier time, close the service port of self.
9. the switch processing stacking splitting as claimed in claim 6, it is characterised in that when described switch is stand-by equipment, described configuration information Transmit-Receive Unit specifically includes:
Unidirectional message sending module, for the neighbor state of self is revised as Initial, and self the first relam identifier and the first stacking identifier are filled to unidirectional HELLO message, and send described unidirectional HELLO message to described stacking the 3rd outer switch;
Neighbor state the first modified module, for receiving described 3rd switch responds after the first two-way HELLO message that described unidirectional HELLO message is replied, from Initial, the neighbor state of self is revised as DB_Exchange, and described first two-way HELLO message includes described first configuration information;
Neighbor state the second modified module, for carrying out the synchronization of LSD with described 3rd switch, and is revised as FULL by the neighbor state of self from DB_Exchange after synchronously completing;
3rd two-way HELLO message sending module, for after receiving the second two-way HELLO message carrying the second configuration information that described 3rd switch sends, record described second configuration information, and send, to described 3rd switch, the 3rd two-way HELLO message carrying described first configuration information, so that described 3rd two-way HELLO message is sent to described second switch by described 3rd switch.
10. the switch processing stacking splitting as claimed in claim 6, it is characterised in that when described switch is main equipment, described configuration information Transmit-Receive Unit specifically includes:
4th two-way HELLO message receiver module, for receiving the 4th two-way HELLO message carrying the second configuration information that described 3rd switch sends;
5th two-way HELLO message receiver module, if for not recording described second configuration information, then record described second configuration information, and send, to described 3rd switch, the 5th two-way HELLO message carrying described first configuration information, so that described 5th two-way HELLO message is sent to described second switch by described 3rd switch.
CN201610040493.0A 2016-01-20 2016-01-20 A kind of method and interchanger handling stacking splitting Active CN105763462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610040493.0A CN105763462B (en) 2016-01-20 2016-01-20 A kind of method and interchanger handling stacking splitting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610040493.0A CN105763462B (en) 2016-01-20 2016-01-20 A kind of method and interchanger handling stacking splitting

Publications (2)

Publication Number Publication Date
CN105763462A true CN105763462A (en) 2016-07-13
CN105763462B CN105763462B (en) 2019-03-15

Family

ID=56342459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610040493.0A Active CN105763462B (en) 2016-01-20 2016-01-20 A kind of method and interchanger handling stacking splitting

Country Status (1)

Country Link
CN (1) CN105763462B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018205728A1 (en) * 2017-05-11 2018-11-15 中兴通讯股份有限公司 Method for processing stack split, computer device and computer readable storage medium
CN109039798A (en) * 2018-06-20 2018-12-18 新华三技术有限公司 Divide detection system and method
CN109391545A (en) * 2017-08-08 2019-02-26 中国电信股份有限公司 The discovery system and discovery method of domain-to-domain link
CN110224950A (en) * 2019-06-21 2019-09-10 深圳市信锐网科技术有限公司 Stacking system detection system, method, apparatus and computer readable storage medium
CN115914139A (en) * 2021-09-22 2023-04-04 慧与发展有限责任合伙企业 Ordered stack formation with reduced human intervention

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791064A (en) * 2004-10-28 2006-06-21 阿尔卡特公司 Stack manager protocol with automatic set up mechanism
CN101577717A (en) * 2009-06-18 2009-11-11 杭州华三通信技术有限公司 Member interface checking method and system in link negotiation
CN101674208A (en) * 2009-10-28 2010-03-17 杭州华三通信技术有限公司 LACP MAD detection method and device thereof
US20100146323A1 (en) * 2008-12-05 2010-06-10 Hangzhou H3C Technologies Co., Ltd. Method, system and apparatus for detecting multiple active devices in stack
CN102006184A (en) * 2010-11-09 2011-04-06 福建星网锐捷网络有限公司 Management method, device and network device of stack link

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791064A (en) * 2004-10-28 2006-06-21 阿尔卡特公司 Stack manager protocol with automatic set up mechanism
US20100146323A1 (en) * 2008-12-05 2010-06-10 Hangzhou H3C Technologies Co., Ltd. Method, system and apparatus for detecting multiple active devices in stack
CN101577717A (en) * 2009-06-18 2009-11-11 杭州华三通信技术有限公司 Member interface checking method and system in link negotiation
CN101674208A (en) * 2009-10-28 2010-03-17 杭州华三通信技术有限公司 LACP MAD detection method and device thereof
CN102006184A (en) * 2010-11-09 2011-04-06 福建星网锐捷网络有限公司 Management method, device and network device of stack link

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018205728A1 (en) * 2017-05-11 2018-11-15 中兴通讯股份有限公司 Method for processing stack split, computer device and computer readable storage medium
CN108880843A (en) * 2017-05-11 2018-11-23 中兴通讯股份有限公司 Processing method and computer equipment after stacking splitting
CN109391545A (en) * 2017-08-08 2019-02-26 中国电信股份有限公司 The discovery system and discovery method of domain-to-domain link
CN109391545B (en) * 2017-08-08 2021-06-04 中国电信股份有限公司 System and method for discovering inter-domain link
CN109039798A (en) * 2018-06-20 2018-12-18 新华三技术有限公司 Divide detection system and method
CN109039798B (en) * 2018-06-20 2021-01-26 新华三技术有限公司 Splitting detection system and method
CN110224950A (en) * 2019-06-21 2019-09-10 深圳市信锐网科技术有限公司 Stacking system detection system, method, apparatus and computer readable storage medium
CN110224950B (en) * 2019-06-21 2022-01-21 深圳市信锐网科技术有限公司 Stack system detection system, method, device and computer readable storage medium
CN115914139A (en) * 2021-09-22 2023-04-04 慧与发展有限责任合伙企业 Ordered stack formation with reduced human intervention

Also Published As

Publication number Publication date
CN105763462B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
US11659035B2 (en) Routing messages between cloud service providers
CN105763462A (en) Stack splitting processing method and switch
CN106712988B (en) A kind of virtual network management method and device
CN106559246B (en) Cluster implementation method and server
EP3355533B1 (en) Path switching
CN104378299A (en) Flow table entry processing method and device
JP2005295124A (en) Path table synchronizing method, network device, and path table synchronizing program
CN107645402A (en) A kind of route management method and device
CN111371608B (en) Method, device and medium for deploying SFC service chain
CN102938711B (en) Network interface information configuring methods and the network equipment
CN101692654A (en) Method, system and equipment for HUB-Spoken networking
CN106921576B (en) Virtualization system-based data network and management network flow separation method and device
CN110380966A (en) A kind of method and its relevant device finding forward-path
CN109981437B (en) Multi-data center intercommunication method based on VPC and related equipment
CN111327524B (en) Flow forwarding method and system, SDN controller and computer readable storage medium
CN105338127A (en) Media access control MAC address table updating method, switch and system
CN105450432A (en) Method for positioning port connection error and associated equipment
US11909445B2 (en) Optical domain controller of a telecommunications network
CN104104594B (en) VSU protocol massages are sent and method of reseptance, equipment and system
CN106909322B (en) Routing method and device for supporting storage disaster recovery in virtualization system
CN106506375B (en) A kind of route renewing method and device
CN109617777A (en) A kind of the business datum retransmission method and device of RPR intersecting ring
CN115225634B (en) Data forwarding method, device and computer program product under virtual network
CN108965126B (en) Message forwarding method and device
CN106789651B (en) Method and system for preventing cloud server network from generating broadcast storm

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
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.

GR01 Patent grant
GR01 Patent grant