CN105610743A - Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment - Google Patents

Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment Download PDF

Info

Publication number
CN105610743A
CN105610743A CN201511029124.3A CN201511029124A CN105610743A CN 105610743 A CN105610743 A CN 105610743A CN 201511029124 A CN201511029124 A CN 201511029124A CN 105610743 A CN105610743 A CN 105610743A
Authority
CN
China
Prior art keywords
port
equipment
stand
current
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201511029124.3A
Other languages
Chinese (zh)
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201511029124.3A priority Critical patent/CN105610743A/en
Publication of CN105610743A publication Critical patent/CN105610743A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and an apparatus for realizing an STP (Spanning Tree Protocol) protocol family in an MLAG (Multi-Chassis Link Aggregation) environment. The method comprises the following steps: when a standby device port receives an original message, packaging standby device port information and the original message, and sending the same to a main device to obtain a main device port which is a mutual aggregate port of the standby device port, calculating to obtain a current port state of the main device port, sending the current port state information and the standby device port information to a standby device, after obtaining the current port state of the main device port, setting the state of the standby device port to be consistent with that of the main device port by the standby device to realize the effect that the port states of the main device port and the standby device port are synchronized. The method disclosed by the invention can be used for calculating according to the existing STP protocol family of the main device without carrying out special processing or changing the configuration information, the states of the aggregate ports can be synchronized just by synchronizing the calculation results, and the method disclosed by the invention is used for operating the STP protocol family in the MLAG environment in the minimum workload.

Description

Under MLAG environment, realize method and the device of STP protocol suite
Technical field
The present invention relates to network communication field, relate in particular under a kind of MLAG environment and realize STP agreementThe method of family and device.
Background technology
MLAG (Multi-ChassisLinkAggregation, striding equipment link aggregation) is relatively traditionalBox-shaped device is more reliable and more stable, and chassis equipment cost is lower relatively. Under MLAG environment, adjacent establishingBetween standby, respectively take out a port and do polymerization, at other equipment, these two aggregation ports are exactly oneIndividual port.
STP (SpanningTreeProtocol, Spanning-Tree Protocol) protocol suite is base in network serviceThis two-layer protocol, it comprises that (MultipleSpanningTreeProtocol, gives birth to more for STP, MSTPBecome tree protocol) and RSTP (RapidSpanningTreeProtocol, RSTP), STPThe simplest object of protocol suite prevents that loop from appearring in network, causes broadcast storm exactly. So havingIn the environment of MLAG, still be unable to do without the running of STP protocol suite. Due to striding equipment be aggregating twoIndividual port is exactly externally a port, thus they in STP protocol suite, state must be consistent.
In prior art, the basic ideas of processing STP protocol suite under MLAG environment are to use oneThe parameter of sample and algorithm, be consistent the state of two ports that are aggregating. STP protocol suite passes throughBetween equipment, transmit BPDU message and determine topology of networks, in configuration information, comprised enoughInformation ensure that equipment completes the computational process of spanning tree, the several important informations that wherein comprise are as follows:
(1) root bridge ID: priority and MAC Address by root bridge form;
(2) root path cost: to the shortest path expense of root bridge;
(3) specify bridge ID: formed by priority and the MAC Address of specifying bridge;
(4) designated port ID: priority and port title by designated port form.
Obviously, above-mentioned several important informations of mentioning, on two ports of two equipment, can be not bornJust the same, so need synchronous or consult all information above.
At present, generally consult by unified rule, make above-mentioned several important information all consult into oneSample, so, just can ensure that final result of calculation is also consistent.
The shortcoming of such scheme is: first, information that be synchronous is many, is difficult to realize; Secondly,Such as, because some information (MAC Address, port id etc.) also can be used in other functions, ifPreserve separately the result of a set of negotiation for calculating STP protocol suite under MLAG environment, so whole systemIt is more complicated that system will become.
Summary of the invention
The object of the present invention is to provide method and the device of under a kind of MLAG environment, realizing STP protocol suite.
One of for achieving the above object, an embodiment of the present invention provides under a kind of MLAG environment and realizesThe method of STP protocol suite, comprises step:
S1: receive original message, judgement receives the port position of original message, in the time that port is positioned at main equipment,Enter step S2, in the time that port is positioned at stand-by equipment, enter step S3;
S2: calculate the current port status information of main equipment port, described main equipment port is former for receivingThe port of beginning message, whether inquiry has and the main equipment port stand-by equipment port of aggregation port each other, if so,Enter step S4, if not, enter step S5;
S3: original message and the encapsulation of stand-by equipment port information are delivered to main equipment, described stand-by equipment portFor receiving the port of original message, whether main equipment is resolved rear inquiry has with described stand-by equipment port poly-each otherClose the main equipment port of port, if so, enter step S6, if not, enter step S7;
S4: current port status information and stand-by equipment port information are encapsulated and deliver to stand-by equipment, for subsequent useAfter device parses, the port status of stand-by equipment port is arranged to current port status, enters step S5;
S5: finish port status setting;
S6: calculate the current port status information of main equipment port, by current port status information and standbyDeliver to stand-by equipment with device port Information encapsulation, stand-by equipment resolve after by the port shape of stand-by equipment portState is arranged to current port status, enters step S5;
S7: utilize stand-by equipment port to calculate current port status information, by current port status informationAnd stand-by equipment port information encapsulation delivers to stand-by equipment, stand-by equipment resolve after by the end of stand-by equipment portMouth state is arranged to current port status, enters step S5.
As the further improvement of an embodiment of the present invention, step " calculates the front end of working as of main equipment portMouth status information " specifically comprise: main equipment utilizes the configuration information of STP agreement computing function and storage to calculateObtain the current port status of main equipment port.
As the further improvement of an embodiment of the present invention, before step S1, also comprise step:
Start the STP agreement computing function of main equipment, stop the STP agreement computing function of stand-by equipment.
As the further improvement of an embodiment of the present invention, method also comprises: just whether Real-Time Monitoring main equipmentNormal work, if so, realizes information interaction between stand-by equipment and main equipment, if not, restarts for subsequent use establishingStandby STP agreement computing function, the current port status information of calculating stand-by equipment port, by stand-by equipmentThe port status of port is arranged to current port status.
One of for achieving the above object, an embodiment of the present invention provides under a kind of MLAG environment and realizesThe device of STP protocol suite, comprises main equipment and the stand-by equipment of mutual setting, described main equipment and described standbyBe used for equipment:
S1: receive original message, judgement receives the port position of original message, in the time that port is positioned at main equipment,Enter step S2, in the time that port is positioned at stand-by equipment, enter step S3;
S2: calculate the current port status information of main equipment port, described main equipment port is former for receivingThe port of beginning message, whether inquiry has and the main equipment port stand-by equipment port of aggregation port each other, if so,Enter step S4, if not, enter step S5;
S3: original message and the encapsulation of stand-by equipment port information are delivered to main equipment, described stand-by equipment portFor receiving the port of original message, whether main equipment is resolved rear inquiry has with described stand-by equipment port poly-each otherClose the main equipment port of port, if so, enter step S6, if not, enter step S7;
S4: current port status information and stand-by equipment port information are encapsulated and deliver to stand-by equipment, for subsequent useAfter device parses, the port status of stand-by equipment port is arranged to current port status, enters step S5;
S5: finish port status setting;
S6: calculate the current port status information of main equipment port, by current port status information and standbyDeliver to stand-by equipment with device port Information encapsulation, stand-by equipment resolve after by the port shape of stand-by equipment portState is arranged to current port status, enters step S5;
S7: utilize stand-by equipment port to calculate current port status information, by current port status informationAnd stand-by equipment port information encapsulation delivers to stand-by equipment, stand-by equipment resolve after by the end of stand-by equipment portMouth state is arranged to current port status, enters step S5.
As the further improvement of an embodiment of the present invention, device also comprises storage list, described storage listFor storing main equipment port information and the stand-by equipment port information of all aggregation ports each other.
One of for achieving the above object, an embodiment of the present invention provides under a kind of MLAG environment and realizesThe method of STP protocol suite, comprises step:
S1: start the STP agreement computing function of main equipment, stop the STP agreement computing function of stand-by equipment,That opens stand-by equipment port collects message function simultaneously;
S2: stand-by equipment port receives original message, and original message and the encapsulation of stand-by equipment port information are givenTo main equipment, whether main equipment is resolved rear inquiry has and the stand-by equipment port main equipment end of aggregation port each otherMouthful, if so, enter step s3, if not, enter step s4;
S3: calculate the current port status information of main equipment port, by current port status information and for subsequent useDevice port Information encapsulation is delivered to stand-by equipment, stand-by equipment resolve after by the port status of stand-by equipment portBe arranged to current port status, finish port status setting;
S4: utilize stand-by equipment port to calculate current port status information, by current port status information andStand-by equipment is delivered in stand-by equipment port information encapsulation, stand-by equipment resolve after by the port of stand-by equipment portState is arranged to current port status, finishes port status setting.
As the further improvement of an embodiment of the present invention, method also comprises: just whether Real-Time Monitoring main equipmentNormal work, if so, realizes information interaction between stand-by equipment and main equipment, if not, restarts for subsequent use establishingStandby STP agreement computing function, the current port status information of calculating stand-by equipment port, by stand-by equipmentThe port status of port is arranged to current port status.
As the further improvement of an embodiment of the present invention, when the STP agreement of restarting stand-by equipment is calculated meritAfter energy, determine and enabled the stand-by equipment port of main equipment STP agreement computing function, utilize stand-by equipmentSTP agreement computing function recalculates the current port status of stand-by equipment port, by stand-by equipment portPort status is arranged to current port status.
One of for achieving the above object, an embodiment of the present invention provides under a kind of MLAG environment and realizesThe device of STP protocol suite, is characterized in that comprising main equipment and the stand-by equipment of mutual setting, and described master establishesStandby and described stand-by equipment is used for:
S1: start the STP agreement computing function of main equipment, stop the STP agreement computing function of stand-by equipment,That opens stand-by equipment port collects message function simultaneously;
S2: stand-by equipment port receives original message, and original message and the encapsulation of stand-by equipment port information are givenTo main equipment, whether main equipment is resolved rear inquiry has and the stand-by equipment port main equipment end of aggregation port each otherMouthful, if so, enter step s3, if not, enter step s4;
S3: calculate the current port status information of main equipment port, by current port status information and for subsequent useDevice port Information encapsulation is delivered to stand-by equipment, stand-by equipment resolve after by the port status of stand-by equipment portBe arranged to current port status, finish port status setting;
S4: utilize stand-by equipment port to calculate current port status information, by current port status information andStand-by equipment is delivered in stand-by equipment port information encapsulation, stand-by equipment resolve after by the port of stand-by equipment portState is arranged to current port status, finishes port status setting.
Compared with prior art, beneficial effect of the present invention is: the present invention utilizes STP association in main equipmentView computing function is calculated, then result of calculation is synchronized to stand-by equipment, so, can make to gather each otherClose the main equipment port of port and the port status of stand-by equipment port is consistent, the present invention is with minimum workRealize and in MLAG environment, moved STP protocol suite as amount.
Brief description of the drawings
Fig. 1 is the basic networking structure schematic diagram of the MLAG of an embodiment of the present invention;
Fig. 2 is the method that realizes STP protocol suite under a kind of MLAG environment of an embodiment of the present inventionBlock diagram;
Fig. 3 is the side that realizes STP protocol suite under a kind of MLAG environment of another embodiment of the present inventionMethod block diagram.
Detailed description of the invention
Describe the present invention below with reference to detailed description of the invention shown in the drawings. But these are realThe mode of executing does not limit the present invention, and those of ordinary skill in the art makes according to these embodimentsConversion in structure, method or function is all included in protection scope of the present invention.
As shown in Figure 1, for the basic networking structure schematic diagram of MLAG of an embodiment of the present invention, compriseMain equipment 10 and stand-by equipment 20, main equipment 10 and stand-by equipment 20 can be switch. Here,Choosing of main equipment 10 and stand-by equipment 20 can, by certain rule, for example, be established by comparing twoThe size of standby MAC Address, in a particular example, when being chosen for the device fails of main equipmentTime, stand-by equipment 20 automatically switches into main equipment 10, it should be noted that, and stand-by equipment 20 is cut hereChange main equipment 10 into and refer to that the status between stand-by equipment 20 and main equipment 10 changes, stand-by equipment20 now can exercise the function of main equipment 10.
In main equipment 10 and stand-by equipment 20, can there be many group ports aggregation ports each other, here, with whereinOne group of aggregation port is example, and main equipment 10 has main equipment port one 1, and stand-by equipment 20 has for subsequent use establishingStandby port 21, main equipment port one 1 and stand-by equipment port 21 aggregation port each other. It should be noted that,Main equipment port one 1 and stand-by equipment port 21 be port corresponding to position not necessarily.
Due to main equipment port one 1 and stand-by equipment port 21 aggregation port each other, at external equipmentThe port of these two polymerizations is each other exactly a port, main equipment port one 1 and stand-by equipment port 21Port status must be consistent, and port status comprises and blocks or forward, when main equipment port one 1 is resistanceWhen plug state, stand-by equipment port 21 is necessary for blocked state, same, when main equipment port one 1 isWhen forwarding state, stand-by equipment port 21 is necessary for forwarding state, so, can ensure proper communication.
In addition, between main equipment 10 and stand-by equipment 20, also there is direct connected link 30, direct connected link 30One end be the first direct-connected port one 2 being positioned on main equipment 10, the other end is for being positioned on stand-by equipment 20The second direct-connected port 22. Direct connected link 30 can be realized between main equipment 10 and stand-by equipment 20 variousAgreement mutual, by the setting of direct connected link 30, can reach objects such as expanding bandwidth, redundancy backup.
As shown in Figure 2, under a kind of MLAG environment for an embodiment of the present invention, realize STP agreementThe method of family, comprises step:
S1: receive original message, judgement receives the port position of original message, when port is positioned at main equipment 10Time, enter step S2, in the time that port is positioned at stand-by equipment 20, enter step S3;
S2: calculate the current port status information of main equipment port one 1, described main equipment port one 1 is for connecingReceive the port of original message, whether inquiry has and the main equipment port one 1 stand-by equipment port of aggregation port each other21, if so, enter step S4, if not, enter step S5;
S3: original message and the encapsulation of stand-by equipment port information are delivered to main equipment 10, described stand-by equipment endMouth 21 is for receiving the ports of original message, and whether main equipment 10 is resolved rear inquiry has and described stand-by equipment endThe mouth 21 main equipment port one 1 of aggregation port each other, if so, enters step S6, if not, enters stepRapid S7;
S4: current port status information and stand-by equipment port information are encapsulated and deliver to stand-by equipment 20, standbyAfter resolving with equipment 20, the port status of stand-by equipment port 21 is arranged to current port status, enters stepRapid S5;
S5: finish port status setting;
S6: calculate the current port status information of main equipment port one 1, by current port status information andStand-by equipment 20 is delivered in stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment port21 port status is arranged to current port status, enters step S5;
S7: utilize stand-by equipment port 21 to calculate current port status information, by current port status letterStand-by equipment 20 is delivered in breath and stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment endThe port status of mouth is arranged to current port status, enters step S5.
It should be noted that, above-mentioned steps order is only the signal sequence of steps of an embodiment of the present invention, can rootMake suitable amendment according to actual conditions.
In the present embodiment, in the time that the stand-by equipment port 21 of stand-by equipment 20 is collected original message, standbyWith equipment 20 will stand-by equipment port information and original message encapsulation after be sent to master by direct connected link 30 togetherIn equipment 10, main equipment 10 obtains and stand-by equipment port 21 main equipment of aggregation port each other by searchingPort one 1, then by can be calculated the current port status (for example, for blocking) of main equipment port one 1, andAfter will current port status information and the encapsulation of stand-by equipment port information after be sent to for subsequent use establishing by direct connected link 30In standby 20, stand-by equipment 20 is through resolving the current port status that obtains main equipment port one 1 for blocking,Stand-by equipment 20 is also set to the state of stand-by equipment port 21 block, and so, can realize polymerization each otherThe main equipment port one 1 of port and the port status of stand-by equipment port 21 are synchronous. Present embodiment can be complied withCalculate according to the existing STP protocol suite of main equipment 10 mode, do not need specially treated, and each without changingIndividual configuration information, only need be by synchronous two port status of aggregation port each other of just can realizing of result of calculationSynchronously, convenient and swift, the present invention has realized and in MLAG environment, has moved STP agreement with minimum workloadFamily.
Here, it should be noted that, main equipment 10 utilizes the pass of existing STP agreement computing function and storageCalculate the current port status of main equipment port one 1 in the configuration information of main equipment port one 1. In addition,In order to allow main equipment 10 in taking over state completely, the STP agreement that can start in advance main equipment 10 is calculated meritCan, stop the STP agreement computing function of stand-by equipment 20, and the message of stand-by equipment 20 is collected merit simultaneouslyCan not stop.
Certainly, in practice, have multiple special circumstances, for example, original message is connect by main equipment 10Receive, in main equipment 10 inquiry less than with stand-by equipment port 21 each other aggregation port main equipment port one 1,In main equipment 10 use procedures, break down etc. These special circumstances are done to explanation one by one below:
(1) as shown in step S2, S4, S5, the main equipment port one 1 that port is main equipment 10 if collectTime, now original message is received by main equipment 10, because main equipment 10 itself has STP agreement meterCalculate function, the current port status that main equipment 10 can directly calculate main equipment port one 1 (is for exampleBlock), if the original state of main equipment port one 1 is for forwarding, now by the port of main equipment port one 1Status modifier is for blocking, and then whether the storage form finding of main equipment 10 by storing aggregation port informationHave and the main equipment port one 1 stand-by equipment port 21 of aggregation port each other, if inquired and main equipment portThe 11 stand-by equipment ports 21 of aggregation port each other, by by the current port status of main equipment port one 1Information sends to stand-by equipment 20, and stand-by equipment 20 is also arranged to the port status of stand-by equipment port 21Block, main equipment port one 1 is synchronizeed with stand-by equipment port 21, if do not inquire, explanation nowMain equipment port one 1 be orphan's port (OrphanPort), without carrying out the synchronous of two ports.
(2) as shown in step S3, S6, S7, the stand-by equipment port that port is stand-by equipment 20 if collect21 o'clock, original message and the encapsulation of stand-by equipment port information are sent to main equipment 10, now, be divided into threeThe situation of kind. The first situation: main equipment 10 resolve obtain inquiring after stand-by equipment port 21 with its each otherThe main equipment port one 1 of aggregation port, now main equipment 10 utilizes existing STP agreement computing function meterCalculation obtains the current port status of main equipment port one 1, and by current port status information is sent to for subsequent useEquipment 20 and make the port status that stand-by equipment 20 can synchronized reserve device port 21; The second situation:Main equipment 10 is resolved and is obtained not inquiring after stand-by equipment port 21 and its main equipment end of aggregation port each otherMouthfuls 11, now stand-by equipment port 21 is orphan's port, main equipment 10 using stand-by equipment port 21 asIndependently port calculates current port status, then current port status information is back to for subsequent useEquipment 20, stand-by equipment 20 can arrange according to current port status information the port shape of stand-by equipment port 21State; The third situation: main equipment 10 breaks down, stand-by equipment 20 cannot be by original message and for subsequent use establishingStandby port information is delivered to main equipment 10, and now, according to MLAG agreement, stand-by equipment 20 can switch to masterEquipment, stand-by equipment 20 reopens STP agreement computing function, and then stand-by equipment 20 calculates standby voluntarilyWith the current port status of device port 21, here, because main equipment 10 breaks down before synchronousThe port status of some stand-by equipments 20, after main equipment 10 breaks down, stand-by equipment 20 need to be to thoseThe state of port recalculates.
The present invention also provides the device of realizing STP protocol suite under a kind of MLAG environment, comprises mutual settingMain equipment 10 and stand-by equipment 20, described main equipment 10 and described stand-by equipment 20 for:
S1: receive original message, judgement receives the port position of original message, when port is positioned at main equipment 10Time, enter step S2, in the time that port is positioned at stand-by equipment 20, enter step S3;
S2: calculate the current port status information of main equipment port one 1, described main equipment port one 1 is for connecingReceive the port of original message, whether inquiry has and the main equipment port one 1 stand-by equipment port of aggregation port each other21, if so, enter step S4, if not, enter step S5;
S3: original message and the encapsulation of stand-by equipment port information are delivered to main equipment 10, described stand-by equipment endMouth 21 is for receiving the ports of original message, and whether main equipment 10 is resolved rear inquiry has and described stand-by equipment endThe mouth 21 main equipment port one 1 of aggregation port each other, if so, enters step S6, if not, enters stepRapid S7;
S4: current port status information and stand-by equipment port information are encapsulated and deliver to stand-by equipment 20, standbyAfter resolving with equipment 20, the port status of stand-by equipment port 21 is arranged to current port status, enters stepRapid S5;
S5: finish port status setting;
S6: calculate the current port status information of main equipment port one 1, by current port status information andStand-by equipment 20 is delivered in stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment port21 port status is arranged to current port status, enters step S5;
S7: utilize stand-by equipment port 21 to calculate current port status information, by current port status letterStand-by equipment 20 is delivered in breath and stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment endThe port status of mouth is arranged to current port status, enters step S5.
In the present embodiment, in the time that the stand-by equipment port 21 of stand-by equipment 20 is collected original message, standbyWith equipment 20 will stand-by equipment port information and original message encapsulation after be sent to master by direct connected link 30 togetherIn equipment 10, main equipment 10 obtains and stand-by equipment port 21 main equipment of aggregation port each other by searchingPort one 1, then by can be calculated the current port status (for example, for blocking) of main equipment port one 1, andAfter will current port status information and the encapsulation of stand-by equipment port information after be sent to for subsequent use establishing by direct connected link 30In standby 20, stand-by equipment 20 is through resolving the current port status that obtains main equipment port one 1 for blocking,Stand-by equipment 20 is also set to the state of stand-by equipment port 21 block, and so, can realize polymerization each otherThe main equipment port one 1 of port and the port status of stand-by equipment port 21 are synchronous. Present embodiment can be complied withCalculate according to the existing STP protocol suite of main equipment 10 mode, do not need specially treated, and each without changingIndividual configuration information, only need be by synchronous two port status of aggregation port each other of just can realizing of result of calculationSynchronously, convenient and swift, the present invention has realized and in MLAG environment, has moved STP agreement with minimum workloadFamily.
Other explanations that realize the device of STP protocol suite under the MLAG environment of present embodiment can be with reference to above-mentionedUnder MLAG environment, realize the explanation of the method for STP protocol suite, do not repeat them here.
As shown in Figure 3, under a kind of MLAG environment for another embodiment of the present invention, realize STP protocol suiteMethod, comprise step:
S1: start the STP agreement computing function of main equipment 10, stop the STP agreement meter of stand-by equipment 20Calculate function, that opens stand-by equipment port 21 collects message function simultaneously;
S2: stand-by equipment port 21 receives original message, and by original message and stand-by equipment port information envelopeDress is delivered to main equipment 10, and whether main equipment 10 is resolved rear inquiry has and stand-by equipment port 21 polymerization end each otherThe main equipment port one 1 of mouth, if so, enters step s3, if not, enters step s4;
S3: calculate the current port status information of main equipment port one 1, by current port status information andStand-by equipment 20 is delivered in stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment port21 port status is arranged to current port status, finishes port status setting;
S4: utilize stand-by equipment port 21 to calculate current port status information, by current port status letterStand-by equipment 20 is delivered in breath and stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment endThe port status of mouth 21 is arranged to current port status, finishes port status setting.
It should be noted that, above-mentioned steps order is only the signal sequence of steps of an embodiment of the present invention, can rootMake suitable amendment according to actual conditions.
In the present embodiment, in the time that the stand-by equipment port 21 of stand-by equipment 20 is collected original message, standbyWith equipment 20 will stand-by equipment port information and original message encapsulation after be sent to master by direct connected link 30 togetherIn equipment 10, main equipment 10 obtains and stand-by equipment port 21 main equipment of aggregation port each other by searchingPort one 1, then by can be calculated the current port status (for example, for blocking) of main equipment port one 1, andAfter will current port status information and the encapsulation of stand-by equipment port information after be sent to for subsequent use establishing by direct connected link 30In standby 20, stand-by equipment 20 is through resolving the current port status that obtains main equipment port one 1 for blocking,Stand-by equipment 20 is also set to the state of stand-by equipment port 21 block, and so, can realize polymerization each otherThe main equipment port one 1 of port and the port status of stand-by equipment port 21 are synchronous. Present embodiment can be complied withCalculate according to the existing STP protocol suite of main equipment 10 mode, do not need specially treated, and each without changingIndividual configuration information, only need be by synchronous two port status of aggregation port each other of just can realizing of result of calculationSynchronously, convenient and swift, the present invention has realized and in MLAG environment, has moved STP agreement with minimum workloadFamily.
In the present embodiment, whether Real-Time Monitoring main equipment 10 normally works, if so, stand-by equipment 20And between main equipment 10, realize information interaction, if not, the STP agreement of restarting stand-by equipment 20 is calculated meritCan, the current port status information of calculating stand-by equipment port 21, by the port shape of stand-by equipment port 21State is arranged to current port status. In addition, restarting after the STP agreement computing function of stand-by equipment 20, reallySurely enable the stand-by equipment port 21 of main equipment 10STP agreement computing function, utilized stand-by equipment 20STP agreement computing function recalculates the current port status of stand-by equipment port 21, by stand-by equipment port21 port status is arranged to current port status.
Here, the performance of main equipment 10 is carried out to Real-Time Monitoring, comprises whether main equipment 10 itself normally works,Or whether normally direct connected link between main equipment 10 and stand-by equipment 20 30 work etc., so, can keep awayExempt to affect because of the fault of main equipment 10 the normal work of stand-by equipment 20; In addition, due to main equipment 10The synchronous port status of some stand-by equipments 20 before having broken down, after main equipment 10 breaks downStand-by equipment 20 need to recalculate the state of those ports, to make normally work of those portsDo.
Other explanations of method that realize STP protocol suite under the MLAG environment of present embodiment can be real with reference to upper oneExecute the explanation that realizes the method for STP protocol suite under the MLAG environment of mode, do not repeat them here.
The present invention also provides the device of realizing STP protocol suite under a kind of MLAG environment, comprises mutual settingMain equipment 10 and stand-by equipment 20, described main equipment 10 and described stand-by equipment 20 for:
S1: start the STP agreement computing function of main equipment 10, stop the STP agreement meter of stand-by equipment 20Calculate function, that opens stand-by equipment port 21 collects message function simultaneously;
S2: stand-by equipment port 21 receives original message, and by original message and stand-by equipment port information envelopeDress is delivered to main equipment 10, and whether main equipment 10 is resolved rear inquiry has and stand-by equipment port 21 polymerization end each otherThe main equipment port one 1 of mouth, if so, enters step s3, if not, enters step s4;
S3: calculate the current port status information of main equipment port one 1, by current port status information andStand-by equipment 20 is delivered in stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment port21 port status is arranged to current port status, finishes port status setting;
S4: utilize stand-by equipment port 21 to calculate current port status information, by current port status letterStand-by equipment 20 is delivered in breath and stand-by equipment port information encapsulation, stand-by equipment 20 resolve after by stand-by equipment endThe port status of mouth 21 is arranged to current port status, finishes port status setting.
In the present embodiment, in the time that the stand-by equipment port 21 of stand-by equipment 20 is collected original message, standbyWith equipment 20 will stand-by equipment port information and original message encapsulation after be sent to master by direct connected link 30 togetherIn equipment 10, main equipment 10 obtains and stand-by equipment port 21 main equipment of aggregation port each other by searchingPort one 1, then by can be calculated the current port status (for example, for blocking) of main equipment port one 1, andAfter will current port status information and the encapsulation of stand-by equipment port information after be sent to for subsequent use establishing by direct connected link 30In standby 20, stand-by equipment 20 is through resolving the current port status that obtains main equipment port one 1 for blocking,Stand-by equipment 20 is also set to the state of stand-by equipment port 21 block, and so, can realize polymerization each otherThe main equipment port one 1 of port and the port status of stand-by equipment port 21 are synchronous. Present embodiment can be complied withCalculate according to the existing STP protocol suite of main equipment 10 mode, do not need specially treated, and each without changingIndividual configuration information, only need be by synchronous two port status of aggregation port each other of just can realizing of result of calculationSynchronously, convenient and swift, the present invention has realized and in MLAG environment, has moved STP agreement with minimum workloadFamily.
Other explanations of device that realize STP protocol suite under the MLAG environment of present embodiment can be with reference to upperState the explanation that realizes the method for STP protocol suite under MLAG environment, do not repeat them here.
Although should be appreciated that this description is described according to embodiment, it is not each embodimentOnly comprise an independently technical scheme, this narrating mode of description is only for clarity sake, thisThose skilled in the art should make description as a whole, and the technical scheme in each embodiment is also passableThrough appropriately combined, form other embodiments that it will be appreciated by those skilled in the art that.
Listed a series of detailed description is above only for feasibility embodiment of the present inventionIllustrate, they are not in order to limit the scope of the invention, and allly do not depart from skill essence of the present inventionWithin the equivalent embodiment that god does or change all should be included in protection scope of the present invention.

Claims (10)

1. a method that realizes STP protocol suite under MLAG environment, is characterized in that comprising step:
S1: receive original message, judgement receives the port position of original message, in the time that port is positioned at main equipment,Enter step S2, in the time that port is positioned at stand-by equipment, enter step S3;
S2: calculate the current port status information of main equipment port, described main equipment port is former for receivingThe port of beginning message, whether inquiry has and the main equipment port stand-by equipment port of aggregation port each other, if so,Enter step S4, if not, enter step S5;
S3: original message and the encapsulation of stand-by equipment port information are delivered to main equipment, described stand-by equipment portFor receiving the port of original message, whether main equipment is resolved rear inquiry has with described stand-by equipment port poly-each otherClose the main equipment port of port, if so, enter step S6, if not, enter step S7;
S4: current port status information and stand-by equipment port information are encapsulated and deliver to stand-by equipment, for subsequent useAfter device parses, the port status of stand-by equipment port is arranged to current port status, enters step S5;
S5: finish port status setting;
S6: calculate the current port status information of main equipment port, by current port status information and standbyDeliver to stand-by equipment with device port Information encapsulation, stand-by equipment resolve after by the port shape of stand-by equipment portState is arranged to current port status, enters step S5;
S7: utilize stand-by equipment port to calculate current port status information, by current port status informationAnd stand-by equipment port information encapsulation delivers to stand-by equipment, stand-by equipment resolve after by the end of stand-by equipment portMouth state is arranged to current port status, enters step S5.
2. under a kind of MLAG environment according to claim 1, realize the method for STP protocol suite, itsBe characterised in that, step " calculates the current port status information of main equipment port " and specifically comprises: main establishingThe standby configuration information that utilizes STP agreement computing function and storage calculate main equipment port when front port shapeState.
3. under a kind of MLAG environment according to claim 1, realize the method for STP protocol suite, itsBe characterised in that and also comprise step before step S1:
Start the STP agreement computing function of main equipment, stop the STP agreement computing function of stand-by equipment.
4. under a kind of MLAG environment according to claim 3, realize the method for STP protocol suite, itsAlso be characterised in that and comprise: whether Real-Time Monitoring main equipment normally works, if so, stand-by equipment and main equipmentBetween realize information interaction, if not, restart the STP agreement computing function of stand-by equipment, calculate for subsequent use establishingThe current port status information of standby port, is arranged to current port status by the port status of stand-by equipment port.
5. a device of realizing STP protocol suite under MLAG environment, is characterized in that comprising mutual settingMain equipment and stand-by equipment, described main equipment and described stand-by equipment are used for:
S1: receive original message, judgement receives the port position of original message, in the time that port is positioned at main equipment,Enter step S2, in the time that port is positioned at stand-by equipment, enter step S3;
S2: calculate the current port status information of main equipment port, described main equipment port is former for receivingThe port of beginning message, whether inquiry has and the main equipment port stand-by equipment port of aggregation port each other, if so,Enter step S4, if not, enter step S5;
S3: original message and the encapsulation of stand-by equipment port information are delivered to main equipment, described stand-by equipment portFor receiving the port of original message, whether main equipment is resolved rear inquiry has with described stand-by equipment port poly-each otherClose the main equipment port of port, if so, enter step S6, if not, enter step S7;
S4: current port status information and stand-by equipment port information are encapsulated and deliver to stand-by equipment, for subsequent useAfter device parses, the port status of stand-by equipment port is arranged to current port status, enters step S5;
S5: finish port status setting;
S6: calculate the current port status information of main equipment port, by current port status information and standbyDeliver to stand-by equipment with device port Information encapsulation, stand-by equipment resolve after by the port shape of stand-by equipment portState is arranged to current port status, enters step S5;
S7: utilize stand-by equipment port to calculate current port status information, by current port status informationAnd stand-by equipment port information encapsulation delivers to stand-by equipment, stand-by equipment resolve after by the end of stand-by equipment portMouth state is arranged to current port status, enters step S5.
6. under a kind of MLAG environment according to claim 5, realize the device of STP protocol suite, itsBe characterised in that and also comprise storage list, described storage list is alone in the main equipment of all aggregation ports each other of storagePort information and stand-by equipment port information.
7. a method that realizes STP protocol suite under MLAG environment, is characterized in that comprising step:
S1: start the STP agreement computing function of main equipment, stop the STP agreement computing function of stand-by equipment,That opens stand-by equipment port collects message function simultaneously;
S2: stand-by equipment port receives original message, and original message and the encapsulation of stand-by equipment port information are givenTo main equipment, whether main equipment is resolved rear inquiry has and the stand-by equipment port main equipment end of aggregation port each otherMouthful, if so, enter step s3, if not, enter step s4;
S3: calculate the current port status information of main equipment port, by current port status information and for subsequent useDevice port Information encapsulation is delivered to stand-by equipment, stand-by equipment resolve after by the port status of stand-by equipment portBe arranged to current port status, finish port status setting;
S4: utilize stand-by equipment port to calculate current port status information, by current port status information andStand-by equipment is delivered in stand-by equipment port information encapsulation, stand-by equipment resolve after by the port of stand-by equipment portState is arranged to current port status, finishes port status setting.
8. under a kind of MLAG environment according to claim 7, realize the method for STP protocol suite, itsAlso be characterised in that and comprise: whether Real-Time Monitoring main equipment normally works, if so, stand-by equipment and main equipmentBetween realize information interaction, if not, restart the STP agreement computing function of stand-by equipment, calculate for subsequent use establishingThe current port status information of standby port, is arranged to current port status by the port status of stand-by equipment port.
9. under a kind of MLAG environment according to claim 8, realize the method for STP protocol suite, itsBe characterised in that, when restarting after the STP agreement computing function of stand-by equipment, determine and enabled main equipment STP associationThe stand-by equipment port of view computing function, utilizes the STP agreement computing function of stand-by equipment to recalculate for subsequent useThe current port status of device port, is arranged to current port status by the port status of stand-by equipment port.
10. a device of realizing STP protocol suite under MLAG environment, is characterized in that comprising mutual settingMain equipment and stand-by equipment, described main equipment and described stand-by equipment are used for:
S1: start the STP agreement computing function of main equipment, stop the STP agreement computing function of stand-by equipment,That opens stand-by equipment port collects message function simultaneously;
S2: stand-by equipment port receives original message, and original message and the encapsulation of stand-by equipment port information are givenTo main equipment, whether main equipment is resolved rear inquiry has and the stand-by equipment port main equipment end of aggregation port each otherMouthful, if so, enter step s3, if not, enter step s4;
S3: calculate the current port status information of main equipment port, by current port status information and for subsequent useDevice port Information encapsulation is delivered to stand-by equipment, stand-by equipment resolve after by the port status of stand-by equipment portBe arranged to current port status, finish port status setting;
S4: utilize stand-by equipment port to calculate current port status information, by current port status information andStand-by equipment is delivered in stand-by equipment port information encapsulation, stand-by equipment resolve after by the port of stand-by equipment portState is arranged to current port status, finishes port status setting.
CN201511029124.3A 2015-12-31 2015-12-31 Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment Pending CN105610743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511029124.3A CN105610743A (en) 2015-12-31 2015-12-31 Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511029124.3A CN105610743A (en) 2015-12-31 2015-12-31 Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment

Publications (1)

Publication Number Publication Date
CN105610743A true CN105610743A (en) 2016-05-25

Family

ID=55990285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511029124.3A Pending CN105610743A (en) 2015-12-31 2015-12-31 Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment

Country Status (1)

Country Link
CN (1) CN105610743A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547412A (en) * 2017-05-24 2018-01-05 新华三技术有限公司 A kind of STP computational methods and device
CN110351127A (en) * 2019-06-28 2019-10-18 迈普通信技术股份有限公司 A kind of method of Graceful Restart, equipment and system
CN111064778A (en) * 2019-12-09 2020-04-24 盛科网络(苏州)有限公司 Data processing method and system based on STP
CN112751755A (en) * 2019-10-30 2021-05-04 中兴通讯股份有限公司 Equipment virtualization method, device, system, equipment and storage medium
CN113395261A (en) * 2021-05-19 2021-09-14 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment
CN114338563A (en) * 2021-12-23 2022-04-12 迈普通信技术股份有限公司 Method and device for preventing port from being blocked, electronic equipment and storage medium
CN115567343A (en) * 2022-09-21 2023-01-03 浪潮思科网络科技有限公司 Ethernet ring network main/standby switching method, equipment and medium based on MLAG

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043422A (en) * 2006-03-24 2007-09-26 上海贝尔阿尔卡特股份有限公司 Multicasting service protecting method of access network and its system, apparatus
CN101155109A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Ethernet switching system and equipment
CN101252459A (en) * 2008-03-24 2008-08-27 中兴通讯股份有限公司 Method for setting protocol state of chain circuit terminal port and supervising method thereof
US20140294010A1 (en) * 2013-03-29 2014-10-02 International Business Machines Corporation Asymmetrical link aggregation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043422A (en) * 2006-03-24 2007-09-26 上海贝尔阿尔卡特股份有限公司 Multicasting service protecting method of access network and its system, apparatus
CN101155109A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Ethernet switching system and equipment
CN101252459A (en) * 2008-03-24 2008-08-27 中兴通讯股份有限公司 Method for setting protocol state of chain circuit terminal port and supervising method thereof
US20140294010A1 (en) * 2013-03-29 2014-10-02 International Business Machines Corporation Asymmetrical link aggregation

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547412B (en) * 2017-05-24 2020-05-12 新华三技术有限公司 STP calculation method and device
CN107547412A (en) * 2017-05-24 2018-01-05 新华三技术有限公司 A kind of STP computational methods and device
CN110351127B (en) * 2019-06-28 2022-06-28 迈普通信技术股份有限公司 Graceful restart method, device and system
CN110351127A (en) * 2019-06-28 2019-10-18 迈普通信技术股份有限公司 A kind of method of Graceful Restart, equipment and system
CN112751755B (en) * 2019-10-30 2023-09-29 中兴通讯股份有限公司 Equipment virtualization method, device, system, equipment and storage medium
CN112751755A (en) * 2019-10-30 2021-05-04 中兴通讯股份有限公司 Equipment virtualization method, device, system, equipment and storage medium
CN111064778B (en) * 2019-12-09 2022-09-23 苏州盛科通信股份有限公司 Data processing method and system based on STP
CN111064778A (en) * 2019-12-09 2020-04-24 盛科网络(苏州)有限公司 Data processing method and system based on STP
CN113395261B (en) * 2021-05-19 2022-03-22 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment
CN113395261A (en) * 2021-05-19 2021-09-14 浪潮思科网络科技有限公司 Method, equipment and medium for spanning tree protocol fast convergence in MLAG environment
CN114338563A (en) * 2021-12-23 2022-04-12 迈普通信技术股份有限公司 Method and device for preventing port from being blocked, electronic equipment and storage medium
CN114338563B (en) * 2021-12-23 2024-02-23 迈普通信技术股份有限公司 Method and device for preventing port from blocking, electronic equipment and storage medium
CN115567343A (en) * 2022-09-21 2023-01-03 浪潮思科网络科技有限公司 Ethernet ring network main/standby switching method, equipment and medium based on MLAG
CN115567343B (en) * 2022-09-21 2024-04-16 浪潮思科网络科技有限公司 Ethernet main/standby switching method, equipment and medium based on MLAG

Similar Documents

Publication Publication Date Title
CN105610743A (en) Method and apparatus for realizing STP (Spanning Tree Protocol) protocol family in MLAG (Multi-Chassis Link Aggregation) environment
US10756994B2 (en) Switch, controller, system, and link quality detection method
KR101706006B1 (en) A method and system for updating distributed resilient network interconnect states
US9509522B2 (en) Forwarding multicast data packets
EP2608459B1 (en) Router, virtual cluster router system and establishing method thereof
US10397098B2 (en) Establishing instance in software defined network
US9692697B2 (en) Control channel establishing method, forwarding point, and controller
CN104270309B (en) A kind of method that multi-hop BFD is realized under IP RAN equipment
CN101557343B (en) Detecting and protecting method of double-layer loop in VRRP topological network
US9264314B2 (en) Method, system, and switch for making bridge in MSTP join region
CN110324165A (en) The management method of the network equipment, apparatus and system
CN106330727A (en) Method, device and system for establishing link of SDN (Software Defined Network) device
KR102257945B1 (en) Service data transmission method and device
CN104065571A (en) Broadcast message processing method, device and system
CN106664235A (en) Converging method and apparatus for software defined network and traditional network
CN105530115A (en) Method and device for realizing operation management and maintenance function
CN105306365A (en) Power communication network and capacity expansion and destroy-resistant routing path determination method thereof
CN108173763A (en) Message processing method, equipment and system
CN104980302A (en) STP-based method for removing redundancy link under SDN framework
US9749215B2 (en) Method for receiving information, method for sending information, and apparatus for the same
CN103441940A (en) Method and device for switching network device from stand-by state to main state and network device
CN111885630B (en) Data transmission method and communication device
CN103780420A (en) Automatic configuration method and system of Ethernet connectivity detection in VPLS environment
CN107070681B (en) Network topology obtaining method and device based on Software Defined Network (SDN)
CN108111423A (en) Flow transfer management method, apparatus and network derived channel equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160525