CN105763462B - A kind of method and interchanger handling stacking splitting - Google Patents

A kind of method and interchanger handling stacking splitting Download PDF

Info

Publication number
CN105763462B
CN105763462B CN201610040493.0A CN201610040493A CN105763462B CN 105763462 B CN105763462 B CN 105763462B CN 201610040493 A CN201610040493 A CN 201610040493A CN 105763462 B CN105763462 B CN 105763462B
Authority
CN
China
Prior art keywords
interchanger
switch
configuration information
stacking
identifier
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
CN201610040493.0A
Other languages
Chinese (zh)
Other versions
CN105763462A (en
Inventor
解长伟
张建周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to 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 present invention provides a kind of method and interchanger for handling stacking splitting, wherein, the described method includes: when stacking divides, the first configuration information of itself is sent to second switch by the 3rd switch outside the stacking by the first interchanger, and first configuration information includes at least the first relam identifier of first interchanger and the first of first interchanger stacks identifier;First interchanger receives the second configuration information of the second switch by the 3rd switch, and second configuration information includes at least the second relam identifier of the second switch and the second of the second switch stacks identifier;When first relam identifier is identical as second relam identifier, and the first stacking identifier and the second stacking identifier meet preset condition, the service port on first interchanger is closed.The present invention is able to solve the router-level topology confusion problem occurred after stacking splitting.

Description

A kind of method and interchanger handling stacking splitting
Technical field
The present invention relates to stacking splitting processing technique, in particular to a kind of method and interchanger for handling stacking splitting.
Background technique
Stacking is a kind of software virtualization technology, its core concept is that multiple devices link together, and is carried out necessary With postponing, be virtualized into an equipment.The hardware resource and software of multiple devices can be gathered using this virtualization technology Processing capacity realizes the collaborative work, unified management and uninterrupted maintenance of multiple devices.
Link failure between stack equipment will lead to a stacking and become multiple new stackings.It can in order to improve system With property, a kind of protection mechanism is just needed when stacking splitting, is capable of detecting when simultaneous multiple stackings in network, and carry out Corresponding processing, as far as possible influence of the reduction stacking splitting to business.
Pass through LACP (Link Aggregation Control Protocol, Link Aggregation Control Protocol), BFD at present (Bidirectional Forwarding Detection, two-way converting detection), ARP (Address Resolution Protocol, address resolution protocol) or the agreement of the Ethernets such as ND (Neighbor Discovery, neighbours discovery) can examine Survey Ethernet group of switches at stacking whether there is multiple conflicts stacking.But for FC (Fibre Channel, optical fiber Channel) group of switches at stacking, be the agreement for not supporting Ethernet on FC interface, so cannot be examined with existing method Survey and handle FC group of switches at stacking splitting after multiple stacking conflicts for occurring, so as to cause being routed after stacking splitting The case where chaos in computation.
It should be noted that the above description of the technical background be intended merely to it is convenient to technical solution of the present invention carry out it is clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Cannot merely because these schemes of the invention Background technology part is expounded and thinks that above-mentioned technical proposal is known to those skilled in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of method and interchanger for handling stacking splitting, is divided with solving to stack The router-level topology confusion problem occurred after splitting.
A kind of method handling stacking splitting provided in an embodiment of the present invention and interchanger are achieved in that
A method of processing stacking splitting, the first interchanger and second switch are with a stack of member device, institute It states and includes:
When it is described stacking divide when, first interchanger by the first configuration information of itself by the stacking outside 3rd switch be sent to the second switch, first configuration information includes at least the first of first interchanger First stacking identifier of relam identifier and first interchanger;
First interchanger receives the second configuration information of the second switch by the 3rd switch, described Second configuration information includes at least the second relam identifier of the second switch and the second of the second switch stacks and know It does not accord with;
When first relam identifier is identical as second relam identifier, and described first stack identifier with it is described When second stacking identifier meets preset condition, the service port on first interchanger is closed.
A kind of interchanger handling stacking splitting, comprising:
Configuration information Transmit-Receive Unit, when being divided for being stacked where the interchanger, by the first configuration of itself Information is sent to by the 3rd switch outside stacking and is in same a pile with the interchanger before the stacking divides Interior second switch is folded, the first relam identifier and first that first configuration information includes at least itself stacks identifier;
The configuration information Transmit-Receive Unit is also used to receive the second of the second switch by the 3rd switch Configuration information, second configuration information include at least the second relam identifier and the second switch of the second switch Second stack identifier;
Service port processing unit, it is identical as second relam identifier for working as first relam identifier, and institute The first stacking identifier and the second stacking identifier are stated when meeting preset condition, closes the service port of itself.
A kind of method and interchanger handling stacking splitting provided in an embodiment of the present invention, by the basis of relam identifier On attached stacking identifier, so as to which each equipment after stacking splitting is distinguished.In addition, being in same a pile originally Respective switch in folded by sending comprising respective relam identifier and stacking mutually the configuration information of identifier, so as to so that Obtain the configuration information of other available interchangers of respective switch originally in same stacking.
Further, by the comparison of different configuration informations, and according to the relationship of comparing result and preset condition, so as to Retained with the service port of an interchanger by script in same stacking, and the service port of other interchangers is closed It closes, so as to the confusion for avoiding information from transmitting, the routing for guaranteeing to preferably generate according to shortest path is correctly turned Hair.
Referring to following description and accompanying drawings, only certain exemplary embodiments of this invention is disclosed in detail, specifies original of the invention Reason can be in a manner of adopted.It should be understood that embodiments of the present invention are not so limited in range.In appended power In the range of the spirit and terms that benefit requires, embodiments of the present invention include many changes, modifications and are equal.
The feature for describing and/or showing for a kind of embodiment can be in a manner of same or similar one or more It uses in a other embodiment, is combined with the feature in other embodiment, or the feature in substitution other embodiment.
It should be emphasized that term "comprises/comprising" refers to the presence of feature, one integral piece, step or component when using herein, but simultaneously It is not excluded for the presence or additional of one or more other features, one integral piece, step or component.
Detailed description of the invention
Included attached drawing is used to provide to be further understood from the embodiment of the present invention, and which constitute one of specification Point, for illustrating embodiments of the present invention, and come together to illustrate the principle of the present invention with verbal description.Under it should be evident that Attached drawing in the description of face is only some embodiments of the present invention, for those of ordinary skill in the art, is not paying wound Under the premise of the property made is laborious, it is also possible to obtain other drawings based on these drawings.
In the accompanying drawings:
Fig. 1 is the schematic diagram of stacking splitting networking in the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram for handling stacking splitting provided in an embodiment of the present invention;
Fig. 3 is the signaling process figure between the respective switch in the embodiment of the present application in polymerization networking;
Fig. 4 is a kind of functional block diagram of interchanger for handling stacking splitting provided in an embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's all other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
Fig. 1 is the schematic diagram of stacking splitting networking in the embodiment of the present invention.As shown in Figure 1, in the stacking splitting networking Including the interchanger 1 and interchanger 2 being located in same stacking, and the interchanger 3 outside the stacking, wherein 1 He of interchanger Interchanger 2 is connected with interchanger 3 respectively, and interchanger 1 and interchanger 2 are due in same stacking, also phase between them Even.
Before stacking splitting, interchanger 1 and interchanger 2 share the same relam identifier, the relam identifier and interchanger 3 Relam identifier is different.
After stacking splitting, interchanger 1 and interchanger 2 are no longer in the same stacking, but form respectively independence Interchanger.
However, interchanger 1 and interchanger 2 still use identical relam identifier after stacking splitting, in this way, working as interchanger 3 when receiving LSR (Link State Records, the link state records) of interchanger 1 or interchanger 2, due in LSR Relam identifier is identical, then the situation that interchanger 3 will cause confusion when carrying out router-level topology according to the LSR.
The embodiment of the present invention can be the respective switch allocation in same stacking on the basis of the relam identifier Outer stacking identifier, can be distinguished to the interchanger being originally in same stacking after stacking splitting.
Fig. 2 is a kind of method flow diagram for handling stacking splitting provided in an embodiment of the present invention.Although process is described below Including the multiple operations occurred with particular order, but it should be clearly understood that these processes may include more or fewer behaviour Make, these operations can be executed sequentially or be executed parallel, such as use parallel processor or multi-thread environment.Implement in the present invention In example, the first interchanger and second switch can be the member device of same stacking, as shown in Figure 2, which comprises
S1: when the stacking divides, the first configuration information of itself is passed through the heap by first interchanger It folds outer 3rd switch and is sent to the second switch, first configuration information includes at least first interchanger First stacking identifier of the first relam identifier and first interchanger.
FSPF (Fabric Shortest Path First, optical fiber shortest path first) can be used in the embodiment of the present invention Agreement carries out the collision detection after stacking splitting, is to have done corresponding extension on the basis of the reliable flooding mechanism of FSPF and sentenced It is disconnected, so as to be communicated to the information of equipment each in network each other by flooding mechanism, so that each equipment can be sentenced Whether there is stacking splitting in circuit network.After stacking splitting generation, the topological structure of the interchanger in same stacking It can change.
As shown in Figure 1, be direct-connected between original interchanger 1 and interchanger 2, however when stacking splitting, 1 He of interchanger It is no longer direct-connected between interchanger 2, but be indirectly connected by interchanger 3.In embodiments of the present invention, interchanger 1 can be institute The first interchanger is stated, interchanger 2 can be the second switch, and interchanger 3 can be the 3rd switch.
First interchanger and the second switch are due to being originally in same stacking, first exchange Machine and the second switch have identical relam identifier.In embodiments of the present invention, in order to being capable of area after stacking splitting Divide first interchanger and the second switch, can be added respectively for first interchanger with the second switch Identifier is uniquely stacked, in this way, the combination by relam identifier and stacking identifier can be to originally in same stacking In different interchangers distinguish.
In stacking splitting, first interchanger can by the first configuration information of itself by the stacking outside Three interchangers are sent to the second switch, and the first domain of first interchanger is included at least in first configuration information First stacking identifier of identifier and first interchanger.
After 3rd switch receives first configuration information that first interchanger is sent, can by this first Configuration information is transmitted to the second switch.
S2: first interchanger receives the second configuration information of the second switch by the 3rd switch, Second configuration information includes at least the second relam identifier of the second switch and the second heap of the second switch Folded identifier.
Similarly, when the stacking divides, the second switch can also lead to the second configuration information of itself It crosses the 3rd switch to be sent at first interchanger, second configuration information includes at least the second switch The second relam identifier and the second switch second stack identifier.
S3: when first relam identifier is identical as second relam identifier, and described first stack identifier with When the second stacking identifier meets preset condition, the service port on first interchanger is closed.
After first interchanger receives second configuration information, it can be extracted from second configuration information Second relam identifier and described second stacks identifier out.First interchanger can mark the second domain extracted The first relam identifier for knowing symbol with itself compares, and the first stacking that described second stacks identifier and itself is identified Symbol compares.When second relam identifier is identical as first relam identifier, then illustrate first interchanger with The second switch is originally in same stacking.
It in embodiments of the present invention, can in order to avoid 3rd switch when carrying out router-level topology the case where confusion reigned One in the first interchanger and second switch to be closed.Specifically, the embodiment of the present invention can will stack identifier compared with Small interchanger is closed.In this way, can then be considered as institute when described first stacks identifier and be greater than the second stacking identifier It states the first stacking identifier and the second stacking identifier meets preset condition, so as to will be on first interchanger Service port is closed.When 3rd switch is when carrying out router-level topology, the routing of second switch can be only obtained, thus will not The case where confusion reigned.
It should be noted that can also equally be carried out in the second switch above-mentioned to relam identifier and stacking knowledge The process that Fu do not extracted and compare.After two interchangers receive mutual configuration information, it can carry out respectively pair Relam identifier and the extraction and comparison process for stacking identifier thereby may be ensured that only have the industry of an interchanger after comparison Business port is in running order.
More detailed elaboration is carried out to technical solution of the present invention below in conjunction with concrete application scene:
Currently, FC group of switches at Fabric network in mainly using FSPF (shortest path is preferred) agreement come dynamic Generate FC routing.FSPF Routing Protocol is the agreement that Path selection is carried out according to link state, it can continue tracking network The link-state information of all interchangers in network, the link-state information of all interchangers constitute LSDB (Link State DataBase, link state database), interchanger calculates the smallest road of other respective switch into network according to LSDB Diameter, to be generated to the FSPF routing of other respective switch.
The LSR of one interchanger completely describes the link state of the interchanger Yu other direct-connected interchangers.Each Interchanger is responsible for safeguarding and issuing the LSR of own.Every LSR can be by Link-State ID (link state identification Code) carry out unique identification, in a stacking, all interchangers in the stacking share the same Domain ID (domain identifier Symbol).
In a concrete application scene, when the stacking splitting, first interchanger can update the LSR of itself, It include the first configuration information of the first interchanger in LSR.
Table 1 is the schematic table of the LSR Header of the first interchanger in the embodiment of the present invention.
Table 1
As shown in table 1, the Domain ID in the LSR of the first interchanger can fill in itself affiliated relam identifier stacked, And itself stacking identifier can be then filled in the Reserved that length is 4 bytes.The stacking identifier can be place The number of respective switch in the same stacking, the number do not repeat in same stacking.
For example, as shown in Figure 1, the relam identifier of interchanger 1 and interchanger 2 can be X, and interchanger 1 is in a stack Number be 1, the number of interchanger 2 in a stack is 2, then 1 can serve as the stacking identifier of interchanger 1,2 can be with Stacking identifier as interchanger 2.Before stacking splitting, interchanger 1 and interchanger 2 respectively by respective physical port with Interchanger 3 communicates.In this way, neighbor state, interchanger 2 and interchanger 3 after stacking splitting, between interchanger 1 and interchanger 3 Between neighbor state be still to completely abut against FULL.
Therefore, after stacking splitting, after LSR of the interchanger 1 to itself is updated, updated LSR can be sealed Loaded on the configuration information 1 in link state update packet 1, in the updated LSR of interchanger 1 including interchanger 1, include: in the configuration information 1 Relam identifier X and stacking identifier 1.At this point, interchanger 2 is not direct-connected with interchanger 1 after due to stacking splitting, and only exchange Machine 3 and interchanger 1 are direct-connected, then the link state update packet 1 then can be sent to interchanger 3 by interchanger 1, by interchanger 3 by the LSU Message 1 floods to interchanger 2.
Similarly, it after the interchanger 2 in the same stacking can also be updated the LSR of itself, can will update LSR afterwards is packaged in link state update packet 2, includes the configuration information 2 of interchanger 2, the configuration information in the updated LSR of interchanger 2 It include: relam identifier X and stacking identifier 2 in 2.At this point, interchanger 1 is not direct-connected with interchanger 2 after due to stacking splitting, and Only interchanger 3 and interchanger 2 is direct-connected, then the link state update packet 2 can be then sent at interchanger 3 by interchanger 2, by exchanging Machine 3 floods the link state update packet 2 to interchanger 1.
Interchanger 1 can analyze the LSR in the link state update packet 2 after receiving link state update packet 2.Likewise, handing over 2 are changed planes after receiving link state update packet 1, the LSR in the link state update packet 1 can be analyzed.For example, can analyze in LSR Checksum, LSR Type information it is whether correct, whether LSR Age reaches Max Age, minimum receive interval whether time-out Deng.These conventional analysis means are existing means in the prior art, and the present invention does not repeat them here this.
In embodiments of the present invention, relam identifier and stacking identifier can be analyzed with emphasis.
For example, interchanger 1 can extract configuration information 2 from the LSR that LSU2 message carries.Interchanger 1 can will extract Configuration information 2 out and the configuration information 1 of itself compare.Due to domain identifier X and configuration information 1 in configuration information 2 In domain identifier X it is identical, and the domain identifier 2 in configuration information 2 is greater than the domain identifier 1 in configuration information 1, according to default Rule is (for example, preset rules are that will stack the smallest interchanger of identifier to retain, and the service port of other interchangers closes Close), then 1 retained business port of interchanger, is not closed.
Interchanger 2 can extract configuration information 1 from the LSR that LSU1 message carries.Interchanger 1 can match what is extracted Confidence breath 1 and the configuration information 2 of itself compare.Due to the domain identifier X in configuration information 1 and the domain in configuration information 2 Identifier X is identical, and the domain identifier 2 in configuration information 2 is greater than the domain identifier 1 in configuration information 1, according to preset rules (for example, preset rules are that will stack the smallest interchanger of identifier to retain, and the service port of other interchangers is closed), Then interchanger 2 closes service port.
In this way, originally the interchanger in same stacking can receive mutual configuration information, so as to incite somebody to action The configuration information received and the configuration information of itself compare, and it is one the smallest finally can then to filter out stacking identifier Interchanger works on, and other interchangers can then stop working, to guarantee that business datum does not repeat.In another implementation of the present invention In example, the port trunking of interchanger 1, interchanger 2 before stacking splitting, i.e., the case where communication by aggregation port with interchanger 3 Under, the HELLO message that FSPF can be used carries out the transmission of information as configuration information.In this embodiment of the invention, hand over Changing planes 1 can be for first interchanger, and interchanger 2 can be the second switch, and interchanger 3 can be handed over for the third It changes planes.
Table 2 is in the embodiment of the present invention using the schematic table of the HELLO message of FSPF.
Table 2
In table 2, the Reserved field of 1 byte-sized after Recipient Domain_ID can be used to take The stacking identifier of tape swap machine.
HELLO message can be divided into unidirectional HELLO message and two-way HELLO message, both HELLO messages can be used In the linking relationship established between maintenance neighboring switch.Unlike, message hair is often only carried in unidirectional HELLO message The routing address for the side of sending, and the routing address of message transmitting party and message recipient is then carried in two-way HELLO message.
Fig. 3 is the signaling process figure between the respective switch in the embodiment of the present application in polymerization networking.Specifically, Assuming that interchanger 1 is stand-by equipment before stacking splitting, and interchanger 2 was originally main equipment, and interchanger 1, interchanger 2 are stacking Before division and the neighbor state of interchanger 3 is FULL.So after stacking splitting, interchanger 1 can be changed into from stand-by equipment Main equipment, then the neighbor state of interchanger 1 and interchanger 3 can become initializing Initial, and interchanger 2 is not due to changing Become equipment state, therefore the neighbor state or FULL of interchanger 2 and interchanger 3.
In this way, the topological structure of interchanger 1 in a network changes when stacking splitting, interchanger 1 can be incited somebody to action at this time The configuration information 1 of itself is filled into HELLO message, and unidirectional HELLO message is sent to interchanger 3, and configuration information 1 is at least Relam identifier X and stacking identifier 1 including interchanger 1 itself.Interchanger 3 is after receiving the unidirectional HELLO message, meeting The neighbor state of FULL is equally revised as Initial, then interchanger 3 can be to all members (interchanger 1 and the friendship of aggregation port It changes planes and 2) replys two-way HELLO message 1, carry configuration information 1 in the two-way HELLO message 1.Interchanger 1 receives exchange After the two-way HELLO message 1 that machine 3 is replied, the configuration information 1 that itself is carried in the two-way HELLO message 1 is analyzed, at this time Neighbor state between interchanger 1 and interchanger 3 can be revised as database and exchange DB_Exchange state, then may be used It is synchronous to carry out LSDB initialization with interchanger 3, and by the neighbor state between interchanger 1 and interchanger 3 after synchronously completing Finally it is revised as FULL.
And the configuration information 1 for carrying interchanger 1 that interchanger 3 is sent is being received as the interchanger of main equipment 2 When two-way HELLO message 1, the configuration information 1 of interchanger 1 was not recorded in interchanger 2 at this time, then will record the configuration information 1.Two-way HELLO message 2 can be sent to interchanger 3, and the configuration information 2 of interchanger 2 is carried in the two-way HELLO message 2, is matched Confidence breath 2 may include the relam identifier X and stacking identifier 2 of interchanger 2.The two-way HELLO message 2 in turn can be by interchanger 3, by processing, generate the two-way HELLO message 3 for carrying configuration information 2, and interchanger 3 can be to all members (exchange of aggregation port Machine 1 and interchanger 2) send the two-way HELLO message 3.
After interchanger 1 receives two-way HELLO message 3, configuration information 2 was not recorded in interchanger 1 at this time, then can be remembered Record configuration information 2.
After interchanger 2 receives two-way HELLO message 3, find to carry matching for itself in the two-way HELLO message 3 Confidence breath 2, interchanger 2 just no longer replys message to interchanger 3 at this time.
In addition, interchanger 1 can send to interchanger 3 carry configuration information 1 again in response to the two-way HELLO message 3 Two-way HELLO message 4.
Interchanger 3, by processing, generates the two-way HELLO for carrying configuration information 1 after receiving two-way HELLO message 4 Message 5, interchanger 3 can send the two-way HELLO message 5 to all members (interchanger 1 and interchanger 2) of aggregation port.
After interchanger 1 receives two-way HELLO message 5, it is found that the configuration information 1 carried in the two-way HELLO message 5 is The configuration information of itself, then then no longer responding the two-way HELLO message 5.
After interchanger 2 receives two-way HELLO message 5, the configuration information 1 carried in the two-way HELLO message 5 is found It is crossed by self record, then no longer makes reply to interchanger 3 at this time.
In this way, originally the main equipment (interchanger 2) in same stacking and stand-by equipment (interchanger 1) receive that This configuration information.Since the domain identifier X in configuration information 1 is identical as the domain identifier X in configuration information 2, and match confidence Domain identifier 2 in breath 2 is greater than the domain identifier 1 in configuration information 1, according to preset rules (for example, preset rules are that will stack The smallest interchanger of identifier retains, and the service port of other interchangers is closed), then interchanger 2 closes service port, 1 retained business port of interchanger is not closed.
It works in this way, may finally filter out and stack the smallest interchanger of identifier, and other interchangers are then It can stop working, to guarantee that business datum does not repeat.
Therefore a kind of method for handling stacking splitting provided in an embodiment of the present invention, pass through the base in relam identifier It attached stacking identifier on plinth, so as to distinguish each equipment after stacking splitting.In addition, originally in same Configuration information of the respective switch by transmission mutually comprising respective relam identifier and stacking identifier in stacking, so as to So that the configuration information for other the available interchangers of respective switch being in same stacking originally.Further, lead to The comparison of different configuration informations is crossed, and according to the relationship of comparing result and preset condition, so as to which script is in same a pile The service port of an interchanger in folded retains, and the service port of other interchangers is closed, so as to avoid information The confusion of transmission guarantees correctly to be forwarded according to the routing that FSPF (shortest path is preferred) generates.
Further, by the comparison of the configuration information of distinct device, and according to the relationship of comparing result and preset condition, The equipment that stacking splitting occurs is performed corresponding processing, so that the confusion for avoiding information from transmitting, guarantees according to shortest path The routing that diameter preferably generates correctly is forwarded.
Specific embodiments of the present invention also provide a kind of interchanger for handling stacking splitting.Fig. 4 mentions for the embodiment of the present invention A kind of functional block diagram of the interchanger of the processing stacking splitting supplied.As shown in figure 4, the interchanger includes:
Configuration information Transmit-Receive Unit 100 is matched when dividing for stacking where the interchanger by itself first Confidence breath is sent to by the 3rd switch outside stacking and is in same with the interchanger before the stacking divides Second switch in stacking, the first relam identifier and first that first configuration information includes at least itself stack identification Symbol;
The configuration information Transmit-Receive Unit 100 is also used to receive the second switch by the 3rd switch Second configuration information, second configuration information include at least the second relam identifier of the second switch and described second and hand over Second to change planes stacks identifier;
Service port processing unit 200, it is identical as second relam identifier for working as first relam identifier, and When the first stacking identifier and the second stacking identifier meet preset condition, the service port of itself is closed.
In a preferred embodiment, the configuration information Transmit-Receive Unit 100 specifically includes:
Link state records update module is wrapped in the link state records for updating itself link state records Include first configuration information;
Link State Update Packet sending module, for updated link state records to be packaged in link state update In message, and the Link State Update Packet is sent to the 3rd switch that neighbor state is FULL;
Configuration information transmission unit matches confidence for receiving the second of the second switch by the 3rd switch Breath, second configuration information include at least the second switch the second relam identifier and the second switch second Stack identifier.
In a preferred embodiment, the service port processing unit 200 specifically includes:
Comparison module, it is identical as second relam identifier for working as first relam identifier, and first heap When folded identifier is greater than the second stacking identifier, the service port of itself is closed.
In a preferred embodiment, when the interchanger is stand-by equipment, the configuration information Transmit-Receive Unit 100 specifically include:
Unidirectional message sending module for the neighbor state of itself to be revised as Initial, and the first domain of itself is marked Know symbol and the first stacking identifier is filled into unidirectional HELLO message, and the 3rd switch to outside the stacking sends institute State unidirectional HELLO message;
The first modified module of neighbor state, for receiving the 3rd switch in response to the unidirectional HELLO message After the first two-way HELLO message replied, the neighbor state of itself is revised as DB_Exchange from Initial, described first It include first configuration information in two-way HELLO message;
The second modified module of neighbor state, for carrying out the synchronous of link state database with the 3rd switch, and The neighbor state of itself is revised as FULL from DB_Exchange after synchronously completing;
The two-way HELLO message sending module of third, for matching in the carrying second for receiving the 3rd switch transmission After second two-way HELLO message of confidence breath, second configuration information is recorded, and send to the 3rd switch and carry institute The two-way HELLO message of third of the first configuration information is stated, so that the 3rd switch sends out the two-way HELLO message of the third It send to the second switch.
In a preferred embodiment, when the interchanger is main equipment, the configuration information Transmit-Receive Unit 100 It specifically includes:
4th two-way HELLO message receiving module matches confidence for receiving the carrying second that the 3rd switch is sent 4th two-way HELLO message of breath;
5th two-way HELLO message receiving module, if recording described second for not recording second configuration information Configuration information, and the 5th two-way HELLO message for carrying first configuration information is sent to the 3rd switch, so that institute It states 3rd switch and the described 5th two-way HELLO message is sent to the second switch.
Involved by the interchanger of processing stacking splitting in the embodiment of the present invention and in the method for processing stacking splitting Particular technique details is similar, repeats no more.
Therefore a kind of interchanger for handling stacking splitting provided in an embodiment of the present invention, by relam identifier On the basis of attached stacking identifier, so as to which each equipment after stacking splitting is distinguished.In addition, originally in same Configuration information of the respective switch by transmission mutually comprising respective relam identifier and stacking identifier in one stacking, so as to So that the configuration information for other the available interchangers of respective switch being in same stacking originally.Further, By the comparison of different configuration informations, and according to the relationship of comparing result and preset condition, so as to which script is in same The service port of an interchanger in stacking retains, and the service port of other interchangers is closed, so as to avoid letter The confusion for ceasing transmission, the routing for guaranteeing to preferably generate according to shortest path are correctly forwarded.
In the present specification, the first and second equal such adjectives can be only used for by an element or movement with Another element or movement distinguish, without requiring or implying any actual this relationship or sequence.Allow in environment In the case of, it should not be interpreted as limited to one in only element, component or step referring to element or component or step (s), and It can be the one or more etc. in element, component or step.
Those skilled in the art are supplied to the purpose described to the description of various embodiments of the invention above.It is not It is intended to exhaustion or be not intended to and limit the invention to single disclosed embodiment.As described above, of the invention is various Substitution and variation will be apparent for above-mentioned technology one of ordinary skill in the art.Therefore, although specifically begging for Some alternative embodiments are discussed, but other embodiment will be apparent or those skilled in the art are opposite It is easy to obtain.The present invention is intended to include all substitutions of the invention crossed by discussion herein, modification and variations, and fall in Other embodiment in the spirit and scope of foregoing invention.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, clothes Business device computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, set Top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system or equipment Distributed computing environment etc..
The present invention can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The present invention can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
Although depicting the present invention by embodiment, it will be appreciated by the skilled addressee that the present invention there are many deformation and Variation is without departing from spirit of the invention, it is desirable to which the attached claims include these deformations and change without departing from of the invention Spirit.

Claims (8)

1. a kind of method for handling stacking splitting, which is characterized in that the first interchanger and second switch be with it is a stack of at Member's equipment, which comprises
When the stacking divides, first interchanger by the first configuration information of itself by the stacking outside the Three interchangers are sent to the second switch, and the first domain that first configuration information includes at least first interchanger is marked Know symbol and first interchanger first stacks identifier;
First interchanger receives the second configuration information of the second switch by the 3rd switch, and described second Configuration information includes at least the second relam identifier of the second switch and the second of the second switch stacks identifier;
When first relam identifier is identical as second relam identifier, and described first stacks identifier and described second When stacking identifier meets preset condition, the service port on first interchanger is closed;
It is described when first relam identifier it is identical with second relam identifier, and it is described first stacking identifier with it is described When meeting preset condition, the service port closed on first interchanger specifically includes second stacking identifier: when described the One relam identifier is identical as second relam identifier, and described first stacks identifier greater than the second stacking identifier When, close the service port on first interchanger.
2. the method for processing stacking splitting as described in claim 1, which is characterized in that first interchanger is by itself the One configuration information is sent to the second switch by the 3rd switch outside the stacking and specifically includes:
First interchanger updates the link state records of itself, includes described first in the link state records with confidence Breath;
Updated link state records are packaged in Link State Update Packet by first interchanger, and by the link It is the 3rd switch for completely abutting against FULL that state, which updates message to be sent to neighbor state,.
3. the method for processing stacking splitting as described in claim 1, which is characterized in that first interchanger is by itself the One configuration information is sent to the second switch by the 3rd switch outside the stacking and first interchanger passes through The 3rd switch receives the second configuration information of the second switch, specifically includes:
When first interchanger is stand-by equipment, the neighbor state of itself is revised as initializing by first interchanger Initial, and the unidirectional greeting HELLO message for carrying first configuration information is sent to the 3rd switch;
First interchanger receive the 3rd switch replied in response to the unidirectional HELLO message it is first two-way After HELLO message, the neighbor state of itself is revised as switching database DB_Exchange from Initial, described first is two-way HELLO message carries first configuration information;
First interchanger carries out the synchronous of link state database with the 3rd switch, and will be certainly after synchronously completing The neighbor state of body is revised as FULL from DB_Exchange;
First interchanger is in the second two-way HELLO for receiving the second configuration information of carrying that the 3rd switch is sent After message, second configuration information is recorded, and the third for carrying first configuration information is sent to the 3rd switch Two-way HELLO message, so that the two-way HELLO message of the third is sent to the second switch by the 3rd switch.
4. the method for processing stacking splitting as described in claim 1, which is characterized in that first interchanger is by itself the One configuration information is sent to the second switch by the 3rd switch outside the stacking and first interchanger passes through The 3rd switch receives the second configuration information of the second switch, specifically includes:
When first interchanger is main equipment, first interchanger receives the carrying second that the 3rd switch is sent The two-way HELLO message of the 4th of configuration information;
If first interchanger does not record second configuration information, second configuration information is recorded and to the third Interchanger sends the 5th two-way HELLO message for carrying first configuration information, so that the 3rd switch is by described the Five two-way HELLO messages are sent to the second switch.
5. a kind of interchanger for handling stacking splitting, which is characterized in that the interchanger includes:
Configuration information Transmit-Receive Unit, when being divided for being stacked where the interchanger, by the first configuration information of itself It is sent to by the 3rd switch outside stacking and is in same stacking before the stacking divides with the interchanger Second switch, first configuration information include at least itself the first relam identifier and first stack identifier;
The configuration information Transmit-Receive Unit is also used to receive the second configuration of the second switch by the 3rd switch Information, second configuration information include at least the second switch the second relam identifier and the second switch the Two stack identifier;
Service port processing unit, for when first relam identifier it is identical as second relam identifier, and described the When one stacking identifier and the second stacking identifier meet preset condition, the service port of itself is closed;
The service port processing unit specifically includes:
Comparison module, it is identical as second relam identifier for working as first relam identifier, and described first stacks knowledge When Fu not be greater than the second stacking identifier, the service port of itself is closed.
6. the interchanger of processing stacking splitting as claimed in claim 5, which is characterized in that the configuration information Transmit-Receive Unit tool Body includes:
Link state records update module includes institute in the link state records for updating itself link state records State the first configuration information;
Link State Update Packet sending module, for updated link state records to be packaged in Link State Update Packet In, and the Link State Update Packet is sent to the 3rd switch that neighbor state is FULL;
Configuration information transmission unit, for receiving the second configuration information of the second switch by the 3rd switch, Second configuration information includes at least the second relam identifier of the second switch and the second heap of the second switch Folded identifier.
7. the interchanger of processing stacking splitting as claimed in claim 5, which is characterized in that when the interchanger is stand-by equipment When, the configuration information Transmit-Receive Unit specifically includes:
Unidirectional message sending module, for the neighbor state of itself to be revised as Initial, and by the first relam identifier of itself It fills with the first stacking identifier into unidirectional HELLO message, and the 3rd switch to outside the stacking sends the list To HELLO message;
The first modified module of neighbor state is replied for receiving the 3rd switch in response to the unidirectional HELLO message The first two-way HELLO message after, the neighbor state of itself is revised as DB_Exchange from Initial, described first is two-way It include first configuration information in HELLO message;
The second modified module of neighbor state, for carrying out the synchronous of link state database with the 3rd switch, and same The neighbor state of itself is revised as FULL from DB_Exchange after the completion of step;
The two-way HELLO message sending module of third, for receiving the carrying second of the 3rd switch transmission with confidence After second two-way HELLO message of breath, second configuration information is recorded, and send to the 3rd switch and to carry described the The two-way HELLO message of the third of one configuration information, so that the two-way HELLO message of the third is sent to by the 3rd switch The second switch.
8. the interchanger of processing stacking splitting as claimed in claim 5, which is characterized in that when the interchanger is main equipment When, the configuration information Transmit-Receive Unit specifically includes:
4th two-way HELLO message receiving module, for receiving the second configuration information of carrying that the 3rd switch is sent 4th two-way HELLO message;
5th two-way HELLO message receiving module, if recording second configuration for not recording second configuration information Information, and the 5th two-way HELLO message for carrying first configuration information is sent to the 3rd switch, so that described the Described 5th two-way HELLO message is sent to the second switch by three interchangers.
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 CN105763462A (en) 2016-07-13
CN105763462B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880843A (en) * 2017-05-11 2018-11-23 中兴通讯股份有限公司 Processing method and computer equipment after stacking splitting
CN109391545B (en) * 2017-08-08 2021-06-04 中国电信股份有限公司 System and method for discovering inter-domain link
CN109039798B (en) * 2018-06-20 2021-01-26 新华三技术有限公司 Splitting detection system and method
CN110224950B (en) * 2019-06-21 2022-01-21 深圳市信锐网科技术有限公司 Stack system detection system, method, device and computer readable storage medium

Citations (4)

* 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
CN102006184A (en) * 2010-11-09 2011-04-06 福建星网锐捷网络有限公司 Management method, device and network device of stack link

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442484B (en) * 2008-12-05 2012-09-05 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active

Patent Citations (4)

* 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
CN102006184A (en) * 2010-11-09 2011-04-06 福建星网锐捷网络有限公司 Management method, device and network device of stack link

Also Published As

Publication number Publication date
CN105763462A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN113169928B (en) Logical router including a disaggregated network element
CN110535766A (en) A kind of method and apparatus generating routing
CN105763462B (en) A kind of method and interchanger handling stacking splitting
CN106712988B (en) A kind of virtual network management method and device
CN104754025B (en) Programmable distributed networking
CN107646185A (en) Operation, management and processing (OAM) in data center environment is covered
CN107005481A (en) The control of return path is detected for two-way converting
US9509561B2 (en) System and method for determining the configuration of switches in virtual link trunking environments
CN106416132A (en) Systems and methods for controlling network switches using a switch modeling interface at a controller
CN107948086A (en) A kind of data packet sending method, device and mixed cloud network system
CN105122748A (en) A method and system of implementing conversation-sensitive collection for a link aggregation group
CN104660469B (en) A kind of method for detecting connectivity and relevant device of double layer network
CN106464585A (en) A method and system for compressing forward state of a data network
CN108173691A (en) A kind of method and device of cross-equipment aggregation
CN107211036A (en) A kind of method and data center network of data center network networking
CN109714238A (en) A kind of method and apparatus for realizing inter-virtual machine communication
US20170288998A1 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
CN110034993A (en) Transmit method, equipment and the network system of data
CN107645402A (en) A kind of route management method and device
CN104618189B (en) Link failure detection method and device
CN108574583A (en) A kind of device updating method and access device
CN105637806B (en) Network topology determines method and apparatus, centralized network status information storage equipment
CN105207909A (en) Method for transmitting information and network apparatus
CN110519079A (en) A kind of data forwarding method, device, web plate, the network equipment and storage medium
CN109218176B (en) Message processing method and device

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