Background technology
RRPP (Rapid Ring Protection Protocol; rapid ring protection protocol) is a link layer protocol that is specifically applied to Ethernet ring; this agreement can prevent the broadcast storm that data loopback causes when Ethernet ring is complete, can enable backup link when a link disconnects on Ethernet ring rapidly to recover the communication path between each node on the looped network.
RRPP operates in the RRPP domain (RRPP Domain), and each RRPP domain identifies with the ID of integer representation, it by disposed identical territory ID and identical control VLAN and mutually the switch colony of UNICOM constitute.A RRPP domain is made of a plurality of RRPP ring that join each other (RRPP Ring), wherein has one to be main ring, and other ring is subring.The physically corresponding Ethernet topology that annular connects of RRPP ring, the role of RRPP ring passes through the configuration decision by the user.Host node is main decision-making and the Control Node on the RRPP ring, and a host node must be arranged on each RRPP ring, and can only have one, and other node on the ring except that host node can be called transmission node.Two rings in the same RRPP domain necessarily have two intersection points when intersecting, when subring and main ring intersected, one of them intersection point was fringe node, and another intersection point is the assistant edge node, and Edge node and assistant edge node is actually special transmission node.
In RRPP domain, in two ports of host node and transmission node access network based on ethernet ring, one is master port, and another is secondary port, and the role of port is by user's configuration decision, and Primary port and secondary port is distinguishing on function.Host node sends HELLO message (loop circuit state probe messages) from its master port, if can receive this message from secondary port, illustrates that this node place RRPP ring net is complete, therefore needs to block secondary port to prevent data loopback; If can not receive the HELLO message at the appointed time on the contrary, ring network fault is described, need to decontrol secondary port this moment and go up the proper communication of all nodes to guarantee ring.The Primary port and secondary port of transmission node is as broad as long on function, and the role of port is determined by user's configuration equally.Fringe node or assistant edge node have two ports that insert subring, one is public port, another one is an edge port, the role of common port and edge port is by user's configuration decision, public port is the port at main ring and subring common link two ends on fringe node or the assistant edge node, and edge port is the port that only inserts subring.
In the networking of phase cross ring, in order to prevent that the subring link switchover from causing forming between the subring broadcasting loop, prior art adopts subring protocol massages channel status checking mechanism on the main ring, before the secondary port of subring host node is decontroled, block the edge port of fringe node, thereby avoid forming between subring data loopback.Referring to Fig. 1, be the networking mode of dual-homed access subring, node A, B ..., J forms a RRPP domain, node A, B, C, D form the RRPP main ring.Node A, D, E, F form RRPP subring 1, and node A, D, G, H, I, J form RRPP subring 2.Wherein, node C is the host node on the main ring, and node E is the host node of subring 1, and node G is the host node of subring 2.The intersection point of subring 1 and main ring is identical with the intersection point of subring 2 and main ring, is node A and D, and wherein A is a fringe node, and D is the assistant edge node.With subring 1 is example, and above-mentioned mechanism specifically may further comprise the steps:
1. the fringe node A of subring 1 periodically sends EDGE-HELLO message (main ring integrity checking message) along subring protocol massages passage A → B → C → D or A → D on the main ring to assistant edge node D.
2. assistant edge node D detects the interruption of subring protocol massages passage.
Under the normal condition, assistant edge node D can receive the EDGE-HELLO message that fringe node A sends, passage A → D also breaks down when among passage A → B → C → D break down in the somewhere, and then assistant edge node D can not receive the EDGE-HELLO message, learns that subring protocol massages passage interrupts.
3. assistant edge node D sends MAJOR-FAULT message (main ring signalling trouble message) along passage D → E → F → A to fringe node A, promptly reports that to fringe node A its territory, place main ring breaks down.
4. after fringe node A receives the MAJOR-FAULT message, learn, block the edge port of self because the main ring fault causes subring protocol massages passage to interrupt.
5. owing to the main ring fault, subring 1 host node E can not receive the own HELLO message that sends from master port at the appointed time, so move to the Failed state, decontrols its secondary port.
Subring 1 host node E periodically sends the HELLO message from its master port, suppose that the port that node E links to each other with node D is a master port, then propagation ducts is E → D → C → B → A → F → E, or E → D → A → F → E, if can receive the HELLO message that sends from its master port, illustrate to have complete channel link, because the main ring fault from the secondary port of subring 1 host node E, then node E can not receive the HELLO message at the appointed time, just thinks not have complete channel link.
6. behind the main ring link-recovery, subring protocol massages routing restoration is normal, and the host node E of subring 1 can receive the HELLO message that oneself sends again, thereby switches to the Complete state, blocks its secondary port.
7. the host node E of subring 1 sends COMPLETE-FLUSH-FDB message (looped network recovers to refresh the FDB message) from its master port.
8. fringe node A decontrols its edge port after receiving the COMPLETE-FLUSH-FDB message that host node E sends.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the above-mentioned prior art:
Under the phase cross ring networking situation, when the common link of main ring and subring breaks down, when other link of main ring has a place to break down again, can cause main ring to interrupt and the subring link switchover.For example, when passage A-D and channel B-C break down simultaneously, can make the secondary port of the host node E of subring 1 can not receive the HELLO message that oneself sends, cause the subring link to switch to the Failed state from the Complete state.In addition, need the assistant edge node detection during owing to the subring link switchover, therefore can make the convergence time of subring longer relatively to the main ring fault.
Insert under the situation of subring in many ownership, because a plurality of subrings and shared same the common link of main ring, make on the main ring service traffics relatively large, the main ring probability that causes the subring link switchover that breaks down is also relatively large, makes because the influence that switching causes is also bigger.If when nonrecognition message priority and main ring flow were big on the main ring port, the subring protocol massages may be lost, and cause the subring concussion.For example, if the HELLO message dropping that sends in certain cycle, the subring host node can not receive the HELLO message that oneself sends, and therefore switches to the Failed state from the Complete state; When the HELLO message was no longer lost, the subring host node can switch to the Complete state from the Failed state again, if the message frequent loss can cause the subring host node to switch back and forth between Complete state and Failed state, thereby produced the subring concussion.
Summary of the invention
In order to improve the reliability of fast looped network, the embodiment of the invention provides a kind of method, system and node device that improves dependability of fast looped network.Described technical scheme is as follows:
On the one hand, a kind of method that improves dependability of fast looped network, described fast looped network comprises main ring and subring, described main ring and subring intersect at two nodes, direct connected link between described crossing two nodes is a common link, ring and outer shroud in described main ring comprises, the transmission direction of described interior ring and outer shroud is opposite, and described method comprises:
When two place faults take place on the described main ring when, wherein first place's fault is arranged in the link that described common link has the transmission direction identical with the protocol massages of described subring, second place's fault is positioned at all the other links except that described common link, and the link of described two place's guilty culprits then transmits the protocol massages of described subring according to the direction opposite with the transmission direction of this link on the not out of order link in described common link not in same ring; Perhaps with two nodes that fault in described all the other links links to each other between on the ring at not out of order link place, transmit the protocol massages of described subring according to the direction opposite with the transmission direction of this ring.
On the other hand, a kind of system that improves dependability of fast looped network, described fast looped network comprises main ring and subring, described main ring and subring intersect at two nodes, direct connected link between described crossing two nodes is a common link, ring and outer shroud in described main ring comprises, the transmission direction of ring and outer shroud is opposite in described, when two place faults take place on the described main ring when, wherein first place's fault is arranged in the link that described common link has the transmission direction identical with the protocol massages of described subring, second place's fault is positioned at all the other links except that described common link, and the link of described two place's guilty culprits is not in same ring, described system comprises: with the node of the direct link connection of described guilty culprit, be used for transmitting according to the direction opposite with the transmission direction of this ring the protocol massages of described subring on the ring that does not break down.
On the other hand, a kind of node device, be positioned on the main ring of fast looped network, described fast looped network comprises described main ring and subring, described main ring and subring intersect at two nodes, direct connected link between described crossing two nodes is a common link, ring and outer shroud in described main ring comprises, when two place faults take place on the described main ring when, wherein first place's fault is arranged in the link that described common link has the transmission direction identical with the protocol massages of described subring, second place's fault is positioned at all the other links except that described common link, and the link of described two place's guilty culprits is in same ring, and described node device comprises:
Configuration module, be used to be provided with described node device encircles in described and outer shroud on the reverse transfer message;
Detection module, whether be used to detect the link that links to each other with described node device has fault to take place;
Control module is used on the ring that does not break down, transmitting the protocol massages of described subring according to the opposite direction of the transmission direction of this ring when described detection module has detected the fault generation.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
By on the main ring of fast looped network, adopting the topological structure of dicyclo, introduced the mechanism of interior ring and outer shroud, and have when in a link failure and all the other links link occurs fault being arranged in the main ring common link, two place's faults are not at same ring, by on the link that does not break down, transmitting the protocol massages of subring, greatly improve the reliability of link according to opposite transmission direction.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
The embodiment of the invention adopts the topological structure of dicyclo on the main ring of fast looped network, introduced inner and outer ring mechanism, and have when in a link failure and all the other links link occurs fault being arranged in the main ring common link, two place's faults are not at same ring, by on the link that does not break down, transmitting the protocol massages of subring, greatly improve the reliability of link according to opposite transmission direction.
Fast looped network in the embodiment of the invention comprises main ring and subring, and main ring and subring intersect at two nodes, Edge node and assistant edge node, and the direct connected link between these two nodes is a common link.
Embodiment 1
Present embodiment provides a kind of method that improves dependability of fast looped network, and referring to Fig. 2, concrete steps are as follows:
Step 101: the main ring of fast looped network is configured to have the twin nuclei of interior ring and outer shroud, and encircles and outer shroud reverse transfer message in being provided with.
Wherein, when interior ring of configuration and outer shroud, on each node of main ring, dispose two ports respectively for outer shroud and interior ring, can dispose two ports for outer shroud: the secondary port of outer shroud master port and outer shroud, be two ports of interior ring configuration: interior ring master port and the secondary port of interior ring, further, can also specify master port to be used to send protocol massages, and secondary port is used to receive protocol massages.For example, referring to Fig. 3, node A, B, C, D form main ring, and node A, D, E, F form subring, and the intersection point of main ring and subring is node A and node D, and node E is the host node in the subring.Wherein, the configuration outer shroud is the clockwise direction message transmission, and ring is message transmission counterclockwise in the configuration, four ports of Node B as shown in the figure, other nodes are similar.
Further, can also increase following step:
Ring data message transmission in being provided with, the outer shroud transmission protocol message; Ring data message transmission, outer shroud transmission protocol message and the partial data message of telling from interior ring by the load balancing algorithm in perhaps being provided with.Because data message usually can be bigger than the transmission quantity of protocol massages, therefore adopt load balancing after, can be more reasonable, effectively utilize outer shroud and interior ring message transmission.
In addition, the outer shroud data message transmission can also be set, interior ring transmission protocol message; The outer shroud data message transmission perhaps is set, interior ring transmission protocol message and the partial data message of telling from outer shroud by the load balancing algorithm.
For example: the traffic carrying capacity of the data message that transmits on outer shroud is 400Mbit/s, when the traffic carrying capacity that interior ring is gone up the protocol massages of transmission is 200Mbit/s, algorithm that can be by load balancing transmits 25% data message on interior ring, thereby can alleviate the burden of outer shroud.
Step 102: when two place faults take place on the main ring, wherein first place's fault is arranged in the link that common link has the transmission direction identical with the protocol massages of subring, second place's fault is positioned at all the other links except that common link, and the link of two place's guilty culprits then transmits the protocol massages of subring according to the direction opposite with the transmission direction of this link on the not out of order link in common link not in same ring; Perhaps with two nodes that fault in all the other links links to each other between on the ring at not out of order link place, according to the protocol massages of the direction transmission subring opposite with the transmission direction of this ring.
For example, referring to Fig. 4, it is master port that subring host node E goes up the port that links to each other with node D, the port that links to each other with node F is secondary port, the common link of main ring and subring is two links between node A and the node D, wherein there is the transmission direction of a link identical with the transmission direction of the protocol massages of subring, promptly among the figure on the outer shroud by the link of D->A, when this link occurs fault, and when having a place to break down (as the C-among the figure>B link occurs fault) in all the other links the link in the interior ring of main ring between node A and node D, the secondary port of the outer shroud of node A reports LINKDOWN (link disconnection) incident to Node B, the outer shroud master port of node D reports the LINKDOWN incident to node D, accordingly, the secondary port of interior ring of Node B also reports the LINKDOWN incident to Node B, the interior ring master port of node C also reports the LINKDOWN incident to node C, then on not out of order link between node A and the node D (being the link of A->D), protocol massages according to the direction transmission subring opposite with the transmission direction of this link, as the HELLO message, promptly pass to node A by node D.At this moment, the HELLO message that subring host node E sends from master port, after being transferred to node D, can be transferred to node A according to D->A, be transferred to node F and node E then, be E → D → A → F → E, thereby node E can receive the HELLO message that oneself sends from secondary port, and need not initiate link switchover.In addition, also can be on the link of not out of order link B->C between Node B and the node C, protocol massages according to the direction transmission subring opposite with the transmission direction of this link, be C->B, the HELLO message that sends of node E master port then, through E → D → C → B → A → F → E, thereby can receive, therefore need not initiate link switchover from the secondary port of node E.
Because network topology changes, for avoiding the directed mistake of message, further, after the link occurs fault, host node in the main ring can also send COMMON-FLUSH-FDB message (refreshing the forwarding database message), each node in the notice main ring refreshes ARP (Address Resolution Protocol separately, address resolution protocol) and MAC (Media AccessControl, the medium access control sublayer agreement) list item, in like manner, host node in the subring also can send this message, and each node in the notice subring refreshes ARP list item and MAC address entries separately.
Further, can also comprise the step that fault recovery is handled:
Step 103: after at least one place fault recovery in two place's faults in the main ring, on the ring of the guilty culprit that recovers, transmit the protocol massages of subring according to the transmission direction of this ring.
For example, referring to Fig. 4, when on the interior ring during link failure recovery between Node B and the C, the secondary port of interior ring of Node B reports LINKUP (link connection) incident to Node B, the interior ring master port of node C reports the LINKUP incident to node C, then on the ring of the guilty culprit that between Node B and node C, recovers (promptly ring), according to the protocol massages of the transmission direction transmission subring of this ring, promptly according to the protocol massages of the transmission direction transmission subring of C->B on the interior ring.
Because network topology changes once more, for avoiding the directed mistake of message, further, host node in the main ring can also send COMPLETE-FLUSH-FDB message (looped network recovery refreshing FDB message) each interior node of notice main ring and refresh ARP list item and MAC address entries separately, in like manner, host node in the subring also can send this message, and each node in the notice subring refreshes ARP list item and MAC address entries separately.
Present embodiment is by being configured to main ring have the twin nuclei of interior ring and outer shroud, and have when in a link failure and all the other links link occurs fault being arranged in the main ring common link, two place's faults are not at same ring, by on not out of order link, transmitting the protocol massages of subring according to opposite transmission direction, greatly improve the reliability of link, reduce the failure rate of main ring, make main ring healthy and strong more; When the failure rate of main ring reduces, can reduce because of the main ring fault causes fringe node and block the probability of edge port, and reduce the subring link switchover probability that causes owing to the main ring fault, the assurance business is interrupt run not; By load balancing can be more reasonable, effectively utilize outer shroud and interior ring message transmission.
Embodiment 2
The embodiment of the invention provide a kind of improve dependability of fast looped network system, fast looped network comprises main ring and subring, main ring and subring intersect at two nodes, direct connected link between two nodes that intersect is a common link, ring and outer shroud in main ring comprises, the transmission direction of interior ring and outer shroud is opposite, when two place faults take place on the main ring when, wherein first place's fault is arranged in the link that common link has the transmission direction identical with the protocol massages of subring, second place's fault is positioned at all the other links except that common link, and in same ring, system does not specifically comprise the link of two place's guilty culprits:
With the node of the direct link connection of guilty culprit, be used on the ring that does not break down protocol massages according to the direction transmission subring opposite with the transmission direction of this ring.
Wherein, the node with the direct link connection of guilty culprit can comprise fringe node, assistant edge node and transmission node for the arbitrary node on the main ring.
Further, the node with the direct link connection of guilty culprit can also comprise:
The fault recovery processing module is used for after fault recovery, on the ring of the guilty culprit that recovers, transmits the protocol massages of subring according to the transmission direction of this ring.
When present embodiment has a link occurs fault by having when the main ring common link in a link failure and all the other links, two place's faults are not at same ring, by on the link that does not break down, transmitting the protocol massages of subring according to opposite transmission direction, greatly improve the reliability of link, reduce the failure rate of main ring, make main ring healthy and strong more; When the failure rate of main ring reduces, can reduce because of the main ring fault causes fringe node and block the probability of edge port, and reduce the subring link switchover probability that causes owing to the main ring fault, the assurance business is interrupt run not.
Embodiment 3
Referring to Fig. 5, the embodiment of the invention provides a kind of node device, be positioned on the main ring of fast looped network, fast looped network comprises main ring and subring, main ring and subring intersect at two nodes, direct connected link between two nodes that intersect is a common link, ring and outer shroud in main ring comprises, when two place faults take place on the main ring when, wherein first place's fault is arranged in the link that common link has the transmission direction identical with the protocol massages of subring, second place's fault is positioned at all the other links except that common link, and the link of two place's guilty culprits is in same ring, and node device specifically comprises:
Configuration module is used to be provided with node device reverse transfer message on interior ring and outer shroud;
Detection module, whether be used to detect the link that links to each other with node device has fault to take place;
Control module is used for when detection module has detected the fault generation, on the ring that does not break down, according to the protocol massages of the opposite direction transmission subring of the transmission direction of this ring.
Wherein, node device can comprise fringe node, assistant edge node and transmission node for the arbitrary node on the main ring.
Further, node device can also comprise:
The fault recovery processing module is used for after detection module detects fault recovery, on the ring of the guilty culprit that recovers, transmits the protocol massages of subring according to the transmission direction of this ring.
Further, node device can also comprise:
Distribution module is used to be provided with node device at interior ring transmitting data message, and node device is set uploads the transmission protocol message at outer shroud; Node device perhaps is set at interior ring transmitting data message, and the partial data message that node device is uploaded the transmission protocol message and told from interior ring by the load balancing algorithm at outer shroud is set.
Further, node device can also comprise:
Distribution module is used to be provided with node device at outer shroud transmitting data message, and node device transmission protocol message on interior ring is set; Node device perhaps is set at outer shroud transmitting data message, and node device transmission protocol message and partial data message of telling from outer shroud by the load balancing algorithm on interior ring are set.
When present embodiment has detected link occurs fault by detection module, control module is transmitted the protocol massages of subring according to opposite transmission direction on not out of order link, greatly improve the reliability of link, reduce the failure rate of main ring, make main ring healthy and strong more; When the failure rate of main ring reduces, can reduce because of the main ring fault causes fringe node and block the probability of edge port, and reduce the subring link switchover probability that causes owing to the main ring fault, the assurance business is interrupt run not; By distribution module adopt the mode of load balancing distribute in the flow of ring and outer shroud, can be more reasonable, effectively utilize outer shroud and interior ring message transmission.
The technical scheme that the embodiment of the invention provides can be by the hardware and software realization that combines, and corresponding software programs can be stored on the storage medium that can read, as the hard disk of router or buffer memory etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.