CN102394824B - Method and device for sending message in dual-machine annular stacking system - Google Patents

Method and device for sending message in dual-machine annular stacking system Download PDF

Info

Publication number
CN102394824B
CN102394824B CN201110345124.XA CN201110345124A CN102394824B CN 102394824 B CN102394824 B CN 102394824B CN 201110345124 A CN201110345124 A CN 201110345124A CN 102394824 B CN102394824 B CN 102394824B
Authority
CN
China
Prior art keywords
stack
dual
equipment
machine annular
stacking system
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
CN201110345124.XA
Other languages
Chinese (zh)
Other versions
CN102394824A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110345124.XA priority Critical patent/CN102394824B/en
Publication of CN102394824A publication Critical patent/CN102394824A/en
Application granted granted Critical
Publication of CN102394824B publication Critical patent/CN102394824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses method and device for sending message in a dual-machine annular stacking system, belonging to the field of communication. When dual-machine annular stacking system is built, or the condition that a non-dual-machine annular stacking system is changed into the dual-machine annular stacking system in the current stacking system is monitored, a stacking device binds two self-comprising stacking ports into a logical port so as to make the dual-machine annular stacking system not form a loop circuit on the logical level; when the message needs to be sent, the stacking device sends the message to an adjacent stacking device through the logical port, and the message is other message except information message. The device comprises a binding module and a transmitter. For the invention, entire bandwidth can be used in the dual-machine annular stacking system.

Description

A kind of method and apparatus sending message in dual-machine annular stacking system
Technical field
The present invention relates to the communications field, particularly a kind of method and apparatus sending message in dual-machine annular stacking system.
Background technology
Pile system refers to that a multiple stage stack equipment is combined, logically to form an overall switching equipment, the network topology of pile system comprises chain connection and is connected with annular, and two stack equipments are combined formation dual-machine annular stacking system by annular Connecting groups; Dual-machine annular stacking system can form ring at logic level and produce broadcast storm, in order to avoid dual-machine annular stacking system produces broadcast storm, needs to carry out brokenly ring process to the ring formed in dual-machine annular stacking system.
Such as, see Fig. 1, stack equipment SW_1 comprises stack port A and B, stack equipment SW_2 comprises stack port 0 and 1, be connected by stacking link C between the stack port A of stack equipment SW_1 and the stack port 1 of stack equipment SW_2, be connected by stacking link D between the stack port B of stack equipment SW_1 and the stack port 0 of stack equipment SW_2, so make stack equipment SW_1 and SW_2 form dual-machine annular stacking system, and dual-machine annular stacking system can form a ring on logic level; Any one stacking link can be selected, suppose to select stacking link C, stacking link C arranges choke point ring is carried out brokenly to the ring formed, all messages that stack equipment SW_1 and SW_2 is transmitted by stacking link C can be blocked in this choke point, and stack equipment SW_1 and SW_2 like this can only send message by remaining stacking link D.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Stack equipment SW_1 and SW_2 can only send message by stacking link D, and cannot send message by stacking link C, so has the bandwidth of a stacking link to be wasted.
Summary of the invention
In order to the bandwidth of whole stacking link can be used in dual-machine annular stacking system, the invention provides a kind of method and apparatus sending message in dual-machine annular stacking system.Described technical scheme is as follows:
In dual-machine annular stacking system, send a method for message, described method comprises:
When set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, make described dual-machine annular stacking system cannot form loop at logic level; Wherein, do not need to arrange choke point in described dual-machine annular stacking system on a stacking link of connection two stack equipments;
When described stack equipment needs to send message, obtain in described logic port the port numbers of two stack ports that the described stack equipment that stores comprises, described message is other messages except inquiry message; According to medium access control MAC Address or the Internet protocol IP address of described message, from two stack ports that the port numbers of two stack ports of described acquisition is corresponding, select a stack port; Described message is sent to neighbours' stack equipment of described stack equipment by the stack port of described selection;
After described two stack ports comprised by stack equipment bind a logic port, described method also comprises:
The broadcasting packet that neighbours' stack equipment that the stack port comprised by described stack equipment receives described stack equipment sends, determine the logic port at the stack port place receiving described broadcasting packet, determine other logic ports not except the described logic port determined in described stack equipment further, and stop sending described broadcasting packet to neighbours' stack equipment of described stack equipment.
In dual-machine annular stacking system, send an equipment for message, described equipment comprises:
Binding module, for when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, make described dual-machine annular stacking system form loop; Wherein, do not need to arrange choke point in described dual-machine annular stacking system on a stacking link of connection two stack equipments;
Transmitter, during for needing when described stack equipment to send message, obtain in described logic port the port numbers of two stack ports that the described stack equipment that stores comprises, described message is other messages except inquiry message; According to medium access control MAC Address or the Internet protocol IP address of described message, from two stack ports that the port numbers of two stack ports of described acquisition is corresponding, select a stack port; Described message is sent to neighbours' stack equipment of described stack equipment by the stack port of described selection;
Receiver, the broadcasting packet that neighbours' stack equipment that stack port for being comprised by described stack equipment receives described stack equipment sends, determine the logic port at the stack port place receiving described broadcasting packet, determine other logic ports not except the described logic port determined in described stack equipment further, and stop sending described broadcasting packet to neighbours' stack equipment of described stack equipment.
In the present invention, when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, dual-machine annular stacking system is made to form loop, when stack equipment needs to send message, this message is sent to neighbours' stack equipment of stack equipment by a volume port for binding, so do not need to arrange choke point in dual-machine annular stacking system on a stacking link of connection two stack equipments, thus the bandwidth of whole stacking link can be used in dual-machine annular stacking system.
Accompanying drawing explanation
Fig. 1 be prior art provide choke point schematic diagram is set in dual-machine annular stacking system;
Fig. 2 is a kind of method flow diagram sending message in dual-machine annular stacking system that the embodiment of the present invention provides;
Fig. 3 is the method flow diagram that another kind that the embodiment of the present invention provides sends message in dual-machine annular stacking system;
Fig. 4 is a kind of Organization Chart at dual-machine annular stacking system that the embodiment of the present invention provides;
Fig. 5 is the logical architecture figure of the another kind that provides of the embodiment of the present invention at dual-machine annular stacking system;
Fig. 6 is a kind of device structure schematic diagram sending message in dual-machine annular stacking system that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
As shown in Figure 2, embodiments provide a kind of method sending message in dual-machine annular stacking system, comprising:
Step 101: when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, make dual-machine annular stacking system form loop;
Step 102: when stack equipment needs to send message, send this message to neighbours' stack equipment of stack equipment by the logic port of this stack equipment, this message is other messages except inquiry message.
In embodiments of the present invention, when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, dual-machine annular stacking system is made to form loop, when stack equipment needs to send message, this message is sent to neighbours' stack equipment of stack equipment by a volume port for binding, so do not need to arrange choke point in dual-machine annular stacking system on a stacking link of connection two stack equipments, thus the bandwidth of whole stacking link can be used in dual-machine annular stacking system.
On basis embodiment illustrated in fig. 2, embodiments provide the another kind of method sending message in dual-machine annular stacking system.Wherein, after setting up into dual-machine annular stacking system, the method that each stack equipment that dual-machine annular stacking system comprises can provide by the present embodiment is to send message to its neighbours' stack equipment, and see Fig. 3, the method comprises:
Step 201: when setting up into pile system, stack equipment judges the pile system set up, if judge that the pile system set up is dual-machine annular stacking system, performs step 202;
Particularly, when setting up into pile system, two stack ports that stack equipment is comprised by self receive inquiry (Hello) message that neighbours' stack equipment periodically sends, and two the inquiry messages received by these two stack ports are judged, if two the inquiry messages received by these two stack ports are identical, then determine that the pile system of establishment is dual-machine annular stacking system.
Wherein, stack equipment comprises two stack ports, two stack ports that each stack equipment that pile system comprises after setting up into pile system is comprised by himself periodically send identical inquiry message to its neighbours' stack equipment, and two stack ports comprised by himself receive the inquiry message of its neighbours' stack equipment periodicity transmission; If two inquiry messages that two stack ports that stack equipment is comprised by self receive are identical, then this stack equipment determines that two inquiry messages that two stack ports comprised by self are received be all the inquiry message that same neighbours' stack equipment sends, and judges that the pile system that the pile system of establishment comprises two stack equipments and establishment is dual-machine annular stacking system accordingly.
Further, the current pile system of stack equipment record is dual-machine annular stacking system.
Such as, see Fig. 4, for any two stack equipments, be called the first stack equipment and the second stack equipment, first stack equipment comprises stack port 0 and 1, second stack equipment comprises stack port a and b, the stack port 0 of the first stack equipment is connected by stacking link A with the stack port a of the second stack equipment, the stack port 1 of the first stack equipment is connected by stacking link B with the stack port b of the second stack equipment, so the first stack equipment is set up into dual-machine annular stacking system with the second stack equipment.
Wherein, the stack port 0 of the first stack equipment and the stack port a of the second stack equipment be not before being connected by stacking link, the state of the state of the stack port 0 of the first stack equipment and the stack port a of the second stack equipment is all down (off-line) state, after the stack port 0 of the first stack equipment is connected by stacking link A with the stack port a of the second stack equipment, the state of the state of the stack port 0 of the first stack equipment and the stack port a of the second stack equipment all becomes up (online) state from down state; Equally, the stack port 1 of the first stack equipment and the stack port b of the second stack equipment be not before being connected by stacking link, the state of the state of the stack port 1 of the first stack equipment and the stack port b of the second stack equipment is all down state, after the stack port 1 of the first stack equipment is connected by stacking link B with the stack port b of the second stack equipment, the state of the state of the stack port 1 of the first stack equipment and the stack port b of the second stack equipment all becomes up state from down state.
Wherein, when first stack equipment is set up into dual-machine annular stacking system with the second stack equipment, the stack port of two up states that the first stack equipment can be comprised by it periodically sends identical inquiry message to its neighbours' stack equipment i.e. the second stack equipment, and the stack port of two up states that the first stack equipment also can be comprised by it receives the neighbours' stack equipment i.e. inquiry message of the second stack equipment periodicity transmission; The stack port of two up states that the second stack equipment can be comprised by it periodically sends identical inquiry message to its neighbours' stack equipment i.e. the first stack equipment, and the stack port of two up states that the second stack equipment also can be comprised by it receives its neighbours' stack equipment i.e. inquiry message of the first stack equipment periodicity transmission.
Wherein, if two inquiry messages that two stack ports that the first stack equipment is comprised by it receive are identical, then the first stack equipment can determine that two inquiry messages that two stack ports comprised by self are received are the inquiry message that same neighbourhood stack equipment sends, and judges that current pile system comprises two stack equipments and current pile system is dual-machine annular stacking system accordingly; Equally, if two inquiry messages that two stack ports that the second stack equipment is comprised by it receive are identical, then the second stack equipment can determine that two inquiry messages that two stack ports comprised by self are received are the inquiry message that same neighbourhood stack equipment sends, and judges that current pile system comprises two stack equipments and current pile system is dual-machine annular stacking system accordingly.
Step 202: two stack ports that self comprises by stack equipment bind a logic port;
Particularly, stack equipment distributes a memory space, and using this memory space as logic port, the port numbers of two stack ports self comprised is stored in logic port, so achieves two stack ports self comprised and bind a logic port.
Wherein, for two stack equipments that dual-machine annular stacking system comprises, two stack ports that self comprises by each stack equipment bind a logic port, two stacking links of connection two stack equipments are made logically to bind a logical links, therefore dual-machine annular stacking system cannot form loop on logic level, avoids producing broadcast storm.
Such as, for the first stack equipment, first stack equipment memory allocated space, and using the memory space of distribution as logic port C, wherein, the port numbers of the stack port 0 and 1 that the first stack equipment comprises is respectively 0 and 1, and the port numbers 0 of the stack port 0 that self comprises by the first stack equipment and the port numbers 1 of stack port 1 are stored in logic port C, and the first stack equipment like this achieves two stack ports 0 and 1 self comprised and is bound into a logic port C.
Equally, for the second stack equipment, second stack equipment memory allocated space, and using the memory space of distribution as logic port D, wherein, the port numbers of the stack port a that the second stack equipment comprises and b is respectively a and b, and the port numbers a of the stack port a that self comprises by the second stack equipment and the port numbers b of stack port b is stored in logic port D, and the second stack equipment like this achieves two the stack port a and b self comprised and is bound into a logic port D.
Wherein, see Fig. 4, two stack ports 0 and 1 are bound after two stack port a and b bind a logic port D by a logic port C and the second stack equipment by the first stack equipment, stacking link A and B of connection first stack equipment and the second stack equipment is made to bind a logical links E, so make the dual-machine annular stacking system be made up of the first stack equipment and the second stack equipment cannot form loop on logic level, avoid producing broadcast storm.
Step 203: stack equipment sends message to neighbours' stack equipment by the logic port of binding, and this message is other messages except inquiry message;
Particularly, stack equipment obtains the port numbers of two stack ports stored in this logic port; From two stack ports that the port numbers of two stack ports obtained is corresponding, select a stack port, send message to neighbours' stack equipment by the stack port selected.
Wherein, stack equipment according to the MAC of this message (Medium Access Control, medium access control) address or IP address, can select a stack port from two stack ports.
Such as, when the first stack equipment needs to send message, the first stack equipment obtains the port numbers 0 and 1 of the stack port stored in logic port C; From the stack port 1 of the corresponding stack port 0 of port numbers 0 and port numbers 1 correspondence, select a stack port, be assumed to be stack port 0, send this message to neighbours' stack equipment, i.e. the second stack equipment by the stack port 0 selected.
Equally, when the second stack equipment needs to send message, the second stack equipment obtains port numbers a and the b of the stack port stored in logic port D; From the stack port b that the corresponding stack port a and port numbers b of port numbers a is corresponding, select a stack port, be assumed to be stack port a, send this message to neighbours' stack equipment, i.e. the first stack equipment by the stack port a selected.
Further, for any one stack equipment in dual-machine annular stacking system, the stack port that this stack equipment can be comprised by himself receives the broadcasting packet that its neighbours' stack equipment sends, determine the logic port at the stack port place receiving this broadcasting packet, determine other logic ports in self not except the logic port determined further, then stop sending this broadcasting packet to neighbours' stack equipment; Dual-machine annular stacking system so can be avoided on logic level to form loop, and avoid two-shipper loop system to produce broadcast storm.
Such as, the stack port that first stack equipment can be comprised by himself receives the broadcasting packet that neighbours' stack equipment i.e. the second stack equipment sends, suppose that the stack port receiving this broadcasting packet is 1, determine the logic port C at stack port 1 place, determine other logic ports in self not except logic port C further, then stop sending this broadcasting packet to neighbours' stack equipment i.e. the second stack equipment.
Equally, the stack port that second stack equipment can be comprised by himself receives the broadcasting packet that neighbours' stack equipment i.e. the first stack equipment sends, suppose that the stack port receiving this broadcasting packet is a, determine the logic port D at stack port a place, determine other logic ports in self not except logic port D further, then stop sending this broadcasting packet to neighbours' stack equipment i.e. the first stack equipment.
Wherein, it should be noted that: after setting up into dual-machine annular stacking system, two stack ports that any one stack equipment in dual-machine annular stacking system is all periodically comprised by himself send inquiry message to its neighbours' stack equipment, and two stack ports comprised by self receive the inquiry message of its neighbours' stack equipment periodicity transmission.
Wherein, it should be noted that: after setting up into dual-machine annular stacking system, any one stack equipment in dual-machine annular stacking system, the current pile system that this stack equipment has recorded according to self is that dual-machine annular stacking system carries out real-time listening to current pile system.
Particularly, two stack ports that this stack equipment is comprised by himself receive the inquiry message that its neighbours' stack equipment periodically sends, two the inquiry messages received by these two stack ports are judged, if both are identical and the current pile system recorded is dual-machine annular stacking system, then monitoring out current pile system is still dual-machine annular stacking system, if both are different and the current pile system recorded is dual-machine annular stacking system, then monitor out current pile system and become non-dual-machine annular stacking system from dual-machine annular stacking system.
Further, if monitor out current pile system to become non-dual-machine annular stacking system from dual-machine annular stacking system, then the current pile system that self has recorded by this stack equipment is updated to non-dual-machine annular stacking system.
Wherein, if any one stack equipment in dual-machine annular stacking system monitors out front pile system become non-dual-machine annular stacking system from dual-machine annular stacking system, then perform following steps 204.
Step 204: stack equipment is when monitoring out current pile system and becoming non-two-shipper loop system from dual-machine annular stacking system, and stack equipment carries out separating binding to recover two stack ports be bundled on this logic port to logic port.
Particularly, stack equipment is when monitoring out current pile system and becoming non-two-shipper loop system from dual-machine annular stacking system, discharge the memory space that the logic port that self comprises takies, so realize carrying out separating binding to recover two stack ports be bundled on this logic port to logic port.
Such as, first stack equipment is when monitoring out current pile system and becoming non-two-shipper loop system from dual-machine annular stacking system, discharge the memory space that the logic port C that self comprises takies, so realize carrying out separating binding to recover two stack ports 0 and 1 be bundled on logic port C to logic port C; Equally, second stack equipment is when monitoring out current pile system and becoming non-two-shipper loop system from dual-machine annular stacking system, discharge the memory space that the logic port D that self comprises takies, so realize carrying out separating binding to recover two the stack port a and b be bundled on logic port D to logic port D.
Wherein, it should be noted that: after current pile system becomes non-two-shipper loop system from dual-machine annular stacking system, any one stack equipment in pile system, two stack ports that this stack equipment is periodically comprised by himself send inquiry message to its neighbours' stack equipment, and two stack ports comprised by self receive the inquiry message of its neighbours' stack equipment periodicity transmission.
Wherein, it should be noted that: after current pile system becomes non-two-shipper loop system from dual-machine annular stacking system, any one stack equipment in non-dual-machine annular stacking system, the current pile system that this stack equipment has recorded according to self is that non-dual-machine annular stacking system carries out real-time listening to current pile system.
Particularly, two stack ports that this stack equipment is comprised by himself receive the inquiry message that its neighbours' stack equipment periodically sends, two the inquiry messages received by these two stack ports are judged, if both are different and the current pile system recorded is non-dual-machine annular stacking system, then monitoring out current pile system is still non-dual-machine annular stacking system, if both are identical and the current pile system recorded is non-dual-machine annular stacking system, then monitor out front pile system and become dual-machine annular stacking system from non-dual-machine annular stacking system.
Further, if monitor out front pile system to become dual-machine annular stacking system from non-dual-machine annular stacking system, then the current pile system that self has recorded by this stack equipment is updated to dual-machine annular stacking system.
Wherein, if any one stack equipment in dual-machine annular stacking system monitors out front pile system become dual-machine annular stacking system from non-dual-machine annular stacking system, then return step 202 and start to perform.
In embodiments of the present invention, when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports that self comprises by stack equipment bind a logic port, make dual-machine annular stacking system cannot form loop at logic level, when stack equipment needs to send message, send this message to neighbours' stack equipment by a volume port.So do not need to arrange choke point in dual-machine annular stacking system on a stacking link of connection two stack equipments, thus the bandwidth of whole stacking link can be used in dual-machine annular stacking system.
As shown in Figure 6, embodiments provide a kind of equipment sending message in dual-machine annular stacking system, for realizing said method of the present invention, described equipment comprises:
Binding module 301, for when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, make dual-machine annular stacking system form loop;
Transmitter 302, during for needing when this stack equipment to send message, send this message to neighbours' stack equipment of this stack equipment by this logic port, this message is other messages except inquiry message.
Wherein, binding module 301 comprises:
Allocation units, for memory allocated space, using the memory space of distribution as logic port;
Memory cell, the port numbers for two stack ports comprised by this stack equipment is stored in this logic port, binds a logic port with comprised by this stack equipment two stack ports.
Further, this equipment also comprises:
Receiver, the broadcasting packet that neighbours' stack equipment that stack port for being comprised by this stack equipment receives this stack equipment sends, determine the logic port at the stack port place receiving this broadcasting packet, determine other logic ports in this stack equipment not except the logic port determined further, and stop sending this broadcasting packet to neighbours' stack equipment of this stack equipment.
Wherein, transmitter 302 comprises:
Acquiring unit, for obtaining in this logic port the port numbers storing two stack ports that this stack equipment comprises;
Selected cell, for selecting a stack port in two stack ports that the port numbers of two stack ports from acquisition is corresponding;
Transmitting element, sends this message to neighbours' stack equipment of this stack equipment for the stack port by selecting.
Further, this equipment also comprises:
Judge module, for when setting up into pile system, the inquiry message that neighbours' stack equipment that two stack ports comprised by this stack equipment receive this stack equipment sends, if two the inquiry messages received by these two stack ports are identical, then judge that the pile system set up is dual-machine annular stacking system.
Further, this equipment also comprises:
Logging modle, for when setting up into dual-machine annular stacking system, recording current pile system is dual-machine annular stacking system.
Further, this equipment also comprises:
Monitor module, for carrying out real-time listening according to the current pile system recorded to current pile system.
Wherein, monitor module to comprise:
Receiving element, the inquiry message that the neighbours' stack equipment for being received this stack equipment by two stack ports is periodically sent;
Judging unit, for judging two the inquiry messages received by these two stack ports, if both are identical and the current pile system recorded is non-dual-machine annular stacking system, then monitor out current pile system and become dual-machine annular stacking system from non-dual-machine annular stacking system, if both are different and the current pile system recorded is dual-machine annular stacking system, then monitor out current pile system and become non-dual-machine annular stacking system from dual-machine annular stacking system.
Further, this equipment also comprises:
First update module, if become dual-machine annular stacking system for monitoring out current pile system from non-dual-machine annular stacking system, is then updated to dual-machine annular stacking system by the current pile system recorded;
Second update module, if become non-dual-machine annular stacking system for monitoring out current pile system from dual-machine annular stacking system, is then updated to non-dual-machine annular stacking system by the current pile system recorded.
Further, this equipment also comprises:
Separating binding module, if become non-dual-machine annular stacking system for monitoring out dual-machine annular stacking system, then carrying out separating binding to recover two stack ports be bundled on this logic port to the logic port in this stack equipment.
Further, separate binding module, the memory space that the logic port specifically for discharging in this stack equipment takies is to recover two stack ports be bundled on this logic port.
In embodiments of the present invention, when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, dual-machine annular stacking system is made to form loop, when stack equipment needs to send message, this message is sent to neighbours' stack equipment of stack equipment by a volume port for binding, so do not need to arrange choke point in dual-machine annular stacking system on a stacking link of connection two stack equipments, thus the bandwidth of whole stacking link can be used in dual-machine annular stacking system.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. in dual-machine annular stacking system, send a method for message, it is characterized in that, described method comprises:
When set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, make described dual-machine annular stacking system cannot form loop at logic level; Wherein, do not need to arrange choke point in described dual-machine annular stacking system on a stacking link of connection two stack equipments;
When described stack equipment needs to send message, obtain in described logic port the port numbers of two stack ports that the described stack equipment that stores comprises, described message is other messages except inquiry message; According to medium access control MAC Address or the Internet protocol IP address of described message, from two stack ports that the port numbers of two stack ports of described acquisition is corresponding, select a stack port; Described message is sent to neighbours' stack equipment of described stack equipment by the stack port of described selection;
After described two stack ports comprised by stack equipment bind a logic port, described method also comprises:
The broadcasting packet that neighbours' stack equipment that the stack port comprised by described stack equipment receives described stack equipment sends, determine the logic port at the stack port place receiving described broadcasting packet, determine other logic ports not except the described logic port determined in described stack equipment further, and stop sending described broadcasting packet to neighbours' stack equipment of described stack equipment.
2. the method for claim 1, is characterized in that, described two stack ports comprised by stack equipment bind a logic port, comprising:
Memory allocated space, using the memory space of described distribution as logic port;
The port numbers of two stack ports comprised by described stack equipment is stored in described logic port, binds a logic port with comprised by described stack equipment two stack ports.
3. method as claimed in claim 1 or 2, it is characterized in that, described two stack ports comprised by stack equipment also comprise before binding a logic port:
When setting up into pile system, the inquiry message that neighbours' stack equipment that two stack ports comprised by described stack equipment receive described stack equipment sends, if two the inquiry messages received by described two stack ports are identical, then judge that the pile system of described establishment is dual-machine annular stacking system.
4. the method as described in claim 1 or 2 any one claim, it is characterized in that, described method also comprises:
According to the current pile system recorded, real-time listening is carried out to described current pile system.
5. method as claimed in claim 4, it is characterized in that, the current pile system that described basis has recorded carries out real-time listening to described current pile system, comprising:
The inquiry message that the neighbours' stack equipment receiving described stack equipment by described two stack ports periodically sends;
Two the inquiry messages received by described two stack ports are judged, if both are identical and the current pile system recorded is non-dual-machine annular stacking system, then monitor out described current pile system and become dual-machine annular stacking system from non-dual-machine annular stacking system, if both are different and the described current pile system recorded is dual-machine annular stacking system, then monitor out described current pile system and become non-dual-machine annular stacking system from dual-machine annular stacking system.
6. method as claimed in claim 5, it is characterized in that, described method also comprises:
If monitor out described current pile system to become dual-machine annular stacking system from non-dual-machine annular stacking system, then the described current pile system recorded is updated to dual-machine annular stacking system;
If monitor out described current pile system to become non-dual-machine annular stacking system from dual-machine annular stacking system, then the described current pile system recorded is updated to non-dual-machine annular stacking system.
7. method as claimed in claim 4, it is characterized in that, described method also comprises:
If monitor out described dual-machine annular stacking system to become non-dual-machine annular stacking system, then carry out separating binding to recover two stack ports be bundled on described logic port to the logic port in described stack equipment.
8. in dual-machine annular stacking system, send an equipment for message, it is characterized in that, described equipment comprises:
Binding module, for when set up into dual-machine annular stacking system or monitor out current pile system become dual-machine annular stacking system from non-dual-machine annular stacking system time, two stack ports comprised by stack equipment bind a logic port, make described dual-machine annular stacking system form loop; Wherein, do not need to arrange choke point in described dual-machine annular stacking system on a stacking link of connection two stack equipments;
Transmitter, during for needing when described stack equipment to send message, obtain in described logic port the port numbers of two stack ports that the described stack equipment that stores comprises, described message is other messages except inquiry message; According to medium access control MAC Address or the Internet protocol IP address of described message, from two stack ports that the port numbers of two stack ports of described acquisition is corresponding, select a stack port; Described message is sent to neighbours' stack equipment of described stack equipment by the stack port of described selection;
Receiver, the broadcasting packet that neighbours' stack equipment that stack port for being comprised by described stack equipment receives described stack equipment sends, determine the logic port at the stack port place receiving described broadcasting packet, determine other logic ports not except the described logic port determined in described stack equipment further, and stop sending described broadcasting packet to neighbours' stack equipment of described stack equipment.
9. equipment as claimed in claim 8, it is characterized in that, described binding module comprises:
Allocation units, for memory allocated space, using the memory space of described distribution as logic port;
Memory cell, the port numbers for two stack ports comprised by described stack equipment is stored in described logic port, binds a logic port with comprised by described stack equipment two stack ports.
10. equipment as claimed in claim 8 or 9, it is characterized in that, described equipment also comprises:
Judge module, for when setting up into pile system, the inquiry message that neighbours' stack equipment that two stack ports comprised by described stack equipment receive described stack equipment sends, if two the inquiry messages received by described two stack ports are identical, then judge that the pile system of described establishment is dual-machine annular stacking system.
11. equipment as described in claim 8 or 9 any one claim, it is characterized in that, described equipment also comprises:
Monitor module, for carrying out real-time listening according to the current pile system recorded to described current pile system.
12. equipment as claimed in claim 11, it is characterized in that, described monitoring module comprises:
Receiving element, the inquiry message that the neighbours' stack equipment for being received described stack equipment by described two stack ports is periodically sent;
Judging unit, for judging two the inquiry messages received by described two stack ports, if both are identical and the current pile system recorded is non-dual-machine annular stacking system, then monitor out described current pile system and become dual-machine annular stacking system from non-dual-machine annular stacking system, if both are different and the described current pile system recorded is dual-machine annular stacking system, then monitor out described current pile system and become non-dual-machine annular stacking system from dual-machine annular stacking system.
13. equipment as claimed in claim 11, it is characterized in that, described equipment also comprises:
First update module, if become dual-machine annular stacking system for monitoring out described current pile system from non-dual-machine annular stacking system, is then updated to dual-machine annular stacking system by the described current pile system recorded;
Second update module, if become non-dual-machine annular stacking system for monitoring out described current pile system from dual-machine annular stacking system, is then updated to non-dual-machine annular stacking system by the described current pile system recorded.
14. equipment as claimed in claim 11, it is characterized in that, described equipment also comprises:
Separating binding module, if become non-dual-machine annular stacking system for monitoring out described dual-machine annular stacking system, then carrying out separating binding to recover two stack ports be bundled on described logic port to the logic port in described stack equipment.
CN201110345124.XA 2011-11-04 2011-11-04 Method and device for sending message in dual-machine annular stacking system Active CN102394824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110345124.XA CN102394824B (en) 2011-11-04 2011-11-04 Method and device for sending message in dual-machine annular stacking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110345124.XA CN102394824B (en) 2011-11-04 2011-11-04 Method and device for sending message in dual-machine annular stacking system

Publications (2)

Publication Number Publication Date
CN102394824A CN102394824A (en) 2012-03-28
CN102394824B true CN102394824B (en) 2014-12-17

Family

ID=45862035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110345124.XA Active CN102394824B (en) 2011-11-04 2011-11-04 Method and device for sending message in dual-machine annular stacking system

Country Status (1)

Country Link
CN (1) CN102394824B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220218B (en) * 2013-04-28 2016-03-30 杭州华三通信技术有限公司 The method and apparatus of anti-loops in vertical stack networking
CN104601461B (en) * 2013-10-30 2018-02-09 新华三技术有限公司 Message forwarding method and device in a kind of Longitudinal Intelligence resilient infrastructure system
CN104683130B (en) * 2013-11-28 2018-05-18 华为技术有限公司 A kind of method and apparatus of configuring stacking port

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5959968A (en) * 1997-07-30 1999-09-28 Cisco Systems, Inc. Port aggregation protocol
US6519231B1 (en) * 1999-01-12 2003-02-11 Nortel Networks Limited Method and apparatus providing a spanning tree protocol for a data communications network having a multi-link trunk
CN1809022A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet device stacking method and its system
CN1878130A (en) * 2005-06-08 2006-12-13 华为技术有限公司 Data forwarding method
CN101572626A (en) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 Collocation method and member device of stack logic interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5959968A (en) * 1997-07-30 1999-09-28 Cisco Systems, Inc. Port aggregation protocol
US6519231B1 (en) * 1999-01-12 2003-02-11 Nortel Networks Limited Method and apparatus providing a spanning tree protocol for a data communications network having a multi-link trunk
CN1809022A (en) * 2005-01-17 2006-07-26 华为技术有限公司 Ethernet device stacking method and its system
CN1878130A (en) * 2005-06-08 2006-12-13 华为技术有限公司 Data forwarding method
CN101572626A (en) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 Collocation method and member device of stack logic interface

Also Published As

Publication number Publication date
CN102394824A (en) 2012-03-28

Similar Documents

Publication Publication Date Title
CN102006184B (en) Management method, device and network device of stack link
CN102726006B (en) Ethernet ring protection switching method, node and system
CN101409666B (en) Ring network, ring network topology discovering method and node
CN103916275A (en) BFD detection device and method
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
JP5422601B2 (en) Ring manager selection method and node in ring network
CN102291318B (en) Method for consulting maximum transmission unit (MTU) and router
CN103812779B (en) The processing method of flooding, device
CN103475524A (en) Layered networking method based on master-slave node communication network
US9906412B2 (en) Collaboration method and system in distributed resilient network interconnect system
CN105915426B (en) The fault recovery method and device of loop network
CN105049495A (en) Device discovery method, device and system
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN103023773A (en) Method, device and system for forwarding message in multi-topology network
CN102394824B (en) Method and device for sending message in dual-machine annular stacking system
CN101483571A (en) RRPP configuring method, system and device
CN102413052B (en) A kind of method of access network, Apparatus and system
CN106301472A (en) Method and the website of relay is selected in power line network
WO2014169557A1 (en) Interface switching method and device
CN102710812B (en) A kind of method, subscriber equipment and NNI interface gateway setting up tunnel
CN101808043A (en) Method and device for detecting service message forwarding state of TRUNK members
CN104125079A (en) Method and device for determining double-device hot-backup configuration information
CN101026559B (en) Communication establishing method and router
CN101102231B (en) An automatic discovery method and device of PPP link routing device
CN101695046B (en) Method and equipment for arranging RRPP block points

Legal Events

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