Summary of the invention
The invention provides a kind of communication means and equipment of RPR looped network, in order to solve in the situation that occurs node failure in the RPR network, whole annular link is disabled problem all.
For achieving the above object, one aspect of the present invention provides a kind of communication means of RPR looped network, and described method comprises the following steps at least:
Website is determined according to the malfunctioning node information obtained on a ring of another website of only having a malfunctioning node in described looped network and being arranged in described looped network;
Described website arranges polymerization interface and virtual polymerization sub-interface, and wherein, described polymerization interface comprises the logic interface of all these end nodes, and described virtual polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with described malfunctioning node;
Described website transmits unicast message by described polymerization interface and the website that does not comprise described malfunctioning node, and by described virtual polymerization sub-interface and the website that comprises described malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Preferably, when on the different rings that described website is determined two above malfunctioning nodes to be arranged in described looped network and be arranged in described another website of looped network according to the malfunctioning node information of obtaining, described method also comprises:
Described website arranges polymerization interface and virtual polymerization sub-interface, and wherein, described polymerization interface comprises the logic interface of all these end nodes, and described virtual polymerization sub-interface comprises the logic interface that is positioned at other these end nodes of different rings with described malfunctioning node;
Described website transmits unicast message by described polymerization interface and the website that does not comprise described malfunctioning node, and by described virtual polymerization sub-interface and the website that comprises described malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Preferably, when determining on the different rings of two websites two malfunctioning nodes being arranged in described looped network and be arranged in described looped network according to the malfunctioning node information of obtaining when described website, described method also comprises:
described website arranges the polymerization interface, the first polymerization sub-interface, the second polymerization sub-interface and trimerization sub-interface, wherein, described polymerization interface comprises the logic interface of all these end nodes, described the first polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with a malfunctioning node, described the second polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with another malfunctioning node, described trimerization sub-interface comprises the logic interface that all is positioned at this end node of different rings with two malfunctioning nodes, described the first polymerization sub-interface, described the second polymerization sub-interface and described trimerization sub-interface all belong to described virtual polymerization sub-interface,
Described website transmits unicast message by described polymerization interface and other websites that does not comprise described malfunctioning node, transmit unicast message from the different websites that comprise malfunctioning node respectively by described the first polymerization sub-interface or described the second polymerization sub-interface, and transmit multicast message or broadcasting packet by all websites in described trimerization sub-interface and looped network.
Preferably, when on the more than one ring that described website is determined an above malfunctioning node to be arranged in described looped network and be positioned at described website local terminal according to the malfunctioning node information of obtaining, described method also comprises:
Described website arranges the polymerization interface, and described polymerization interface comprises the logic interface that is positioned at this end node of different rings with described malfunctioning node;
Described website transmits unicast message, multicast message or broadcasting packet by described polymerization interface and other websites that does not comprise malfunctioning node.
Preferably, when determining in described looped network, two malfunctioning nodes are arranged when described website according to the fault logic message breath that obtains and being positioned on the different rings of described website local terminal and another website, described method also comprises:
Described website arranges polymerization interface and virtual polymerization sub-interface, wherein, described polymerization interface comprises the logic interface that is positioned at this end node on different rings with the local terminal malfunctioning node, and described virtual polymerization sub-interface comprises the logic interface that is positioned at this end node on different rings with two malfunctioning nodes;
Described website transmits unicast message by the website that described polymerization interface and other do not comprise malfunctioning node, by described virtual polymerization sub-interface and the website that comprises another malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Preferably, described method further comprises:
Described website determines that according to the malfunctioning node recovery information of obtaining all malfunctioning nodes recover normal;
The described virtual polymerization sub-interface of described website deletion.
Preferably, described method further comprises,
Described website recovers information according to the malfunctioning node that obtains, and determines that an above node in all malfunctioning nodes recovers normal;
Described website will be positioned at the logic interface of this end node of identical ring with the normal node of recovery, add corresponding virtual polymerization sub-interface to;
Whether the virtual polymerization sub-interface after described website judgement is added comprises identical this end node logic interface with polymerization interface or other un-added virtual polymerization sub-interfaces, if judgment result is that be, delete the virtual polymerization sub-interface after described interpolation, if the determination result is NO, keep the virtual polymerization sub-interface after described interpolation.
Preferably, described method further comprises,
Described website determines that according to the malfunctioning node recovery information of obtaining an above node in the local terminal malfunctioning node recovers normal;
Described website adds the logic interface that recovers normal node to described polymerization interface.
Preferably, described method further comprises,
Described website recovers information according to the malfunctioning node that obtains, and determines that the malfunctioning node of local terminal malfunctioning node and/or other websites recovers normal;
Described website recovers local terminal the logic interface of normal node, adds described polymerization interface to, and/or will recover the logic interface that normal node is positioned at this end node on identical ring with other websites, adds described virtual polymerization sub-interface to;
The logic interface of this identical the end node whether virtual polymerization sub-interface after the polymerization interface after the judgement of described website is added and interpolation comprises, if judgment result is that be, delete the virtual polymerization sub-interface after described interpolation, if the determination result is NO, keep the virtual polymerization sub-interface after described interpolation.
On the other hand, the present invention also provides a kind of RPR looped network website, comprising:
Whether acquisition module exists malfunctioning node for detection of each website in looped network, and when breaking down node, obtains the information of described malfunctioning node;
Determination module is connected with described acquisition module, for the information of the malfunctioning node that obtains according to described acquisition module, determines quantity and the position of described malfunctioning node;
Module is set, is connected with described determination module, be used for quantity and position according to the determined described malfunctioning node of described determination module, polymerization interface and virtual polymerization sub-interface are set; Wherein, when described determination module is determined on a ring of another website of only having a malfunctioning node in described looped network and being arranged in described looped network, described polymerization interface comprises the logic interface of all these end nodes, and described virtual polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with described malfunctioning node;
Communication module is connected with the described module that arranges, and is used for transmitting message by described other websites that the set polymerization interface of module and virtual polymerization sub-interface and looped network are set.
Preferably, described communication module, be used for when described determination module determines that described looped network only has a malfunctioning node and is arranged on the ring of another website of described looped network, transmit unicast message by the described polymerization interface that the module setting is set and the website that does not comprise described malfunctioning node, and by described virtual polymerization sub-interface and the website that comprises described malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Preferably, the described module that arranges, be used for when described determination module determines that described looped network has two above malfunctioning nodes and is arranged on the different rings of described another website of looped network, polymerization interface and virtual polymerization sub-interface are set, wherein, the polymerization interface comprises the logic interface of all these end nodes, and described virtual polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with described malfunctioning node;
Described communication module, transmit unicast message by described polymerization interface and the website that does not comprise described malfunctioning node, and by described virtual polymerization sub-interface and the website that comprises described malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Preferably, described communication module, transmit unicast message by described polymerization interface and other websites that does not comprise described malfunctioning node, transmit unicast message from the different websites that comprise malfunctioning node respectively by described the first polymerization sub-interface or described the second polymerization sub-interface, and transmit multicast message or broadcasting packet by all websites in described trimerization sub-interface and looped network.
Preferably, the described module that arranges, be used for when described determination module determines that described looped network has an above malfunctioning node and is positioned on the more than one ring of described website local terminal, the polymerization interface is set, and described polymerization interface comprises the logic interface that is positioned at this end node of different rings with described malfunctioning node;
Described communication module transmits unicast message, multicast message or broadcasting packet by described polymerization interface and other websites that does not comprise malfunctioning node.
Preferably, the described module that arranges, be used for when described determination module determines that described looped network has two malfunctioning nodes and is positioned on the different rings of described website local terminal and another website, polymerization interface and virtual polymerization sub-interface are set, wherein, described polymerization interface comprises the logic interface that is positioned at this end node on different rings with the local terminal malfunctioning node, and described virtual polymerization sub-interface comprises the logic interface that is positioned at this end node on different rings with two malfunctioning nodes
Described communication module, the website that does not comprise malfunctioning node by described polymerization interface and other transmits unicast message, by described virtual polymerization sub-interface and the website that comprises another malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Preferably, described acquisition module also is used for obtaining malfunctioning node and recovers information;
Described determination module, the malfunctioning node that also is used for obtaining according to described acquisition module recovers information, determines to recover position and the quantity of normal malfunctioning node.
Preferably, also comprise interpolation module, judge module and removing module:
Described interpolation module, be connected with described determination module, be used for when described determination module determines that the normal malfunctioning node of recovery is this end node, logic interface on this end node place is encircled normally with recovery adds the polymerization interface, or be used for when described determination module is determined to recover normal malfunctioning node and be the node of other websites, will add corresponding virtual polymerization sub-interface to logic interface that the normal node of recovery is positioned at this end node on identical ring;
Described judge module is connected with described interpolation module, is used for judging whether the virtual polymerization sub-interface after described interpolation module is added comprises identical logic interface with polymerization interface or other un-added virtual polymerization sub-interfaces;
Described removing module, be connected with described judge module with described determination module, the described module that arranges, be used for when described determination module determines that all malfunctioning nodes recover normal, delete the described set virtual polymerization sub-interface of module that arranges, or the virtual polymerization sub-interface after the judgement of described judge module is added is when comprising identical logic interface with polymerization interface or other un-added virtual polymerization sub-interfaces, deletes the virtual polymerization sub-interface after described interpolation.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, solved when realizing the Ploymerized Interface operation in the RPR system, when a node on certain annular link breaks down, cause whole annular link unavailable, affect the problem of network service, by set up the mode of corresponding virtual polymerization sub-interface according to malfunctioning node, carry out network service in minute faulty link, improve the reliability of RPR link.
Embodiment
As stated in the Background Art, in order to solve the problem of prior art, the objective of the invention is to design a kind of aggregation scheme, make when some RPR node failure, other links on same ring can continue to use, and increase reliability, improve the utilance of bandwidth.
The present invention just is being based on the communication means that this purpose has proposed a kind of RPR looped network, and as shown in Figure 3, the schematic flow sheet of the communication means of a kind of RPR looped network that proposes for the present invention specifically comprises the following steps:
Step S301, website determine according to the malfunctioning node information of obtaining on a ring of another website of only having a malfunctioning node in looped network and being arranged in looped network.
Step S302, website arrange polymerization interface and virtual polymerization sub-interface.
Wherein, the polymerization interface comprises the logic interface of all these end nodes, and virtual polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with malfunctioning node.
Step S303, website transmit unicast message by polymerization interface and the website that does not comprise malfunctioning node, and by virtual polymerization sub-interface and the website that comprises malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
It is to be noted, above-mentioned step S301 is to only have a malfunctioning node in looped network to step S303 description, and be arranged in the situation on the ring of another website of looped network, in the practical application scene, the situation that may occur in looped network is incessantly like this, therefore, above-mentioned situation is described as situation one, it is as follows that the present invention further illustrates other situations:
Situation two, when on the different rings that website is determined two above malfunctioning nodes to be arranged in looped network and be arranged in another website of looped network according to the malfunctioning node information obtained, processing procedure is:
Website arranges polymerization interface and virtual polymerization sub-interface, and wherein, the polymerization interface comprises the logic interface of all these end nodes, and virtual polymerization sub-interface comprises the logic interface that is positioned at other these end nodes of different rings with malfunctioning node;
Website transmits unicast message by polymerization interface and the website that does not comprise malfunctioning node, and by virtual polymerization sub-interface and the website that comprises malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Situation three, when determining on the different rings of two websites two malfunctioning nodes being arranged in looped network and be arranged in looped network according to the malfunctioning node information obtained when website, processing procedure is:
Website arranges polymerization interface, the first polymerization sub-interface, the second polymerization sub-interface and trimerization sub-interface, wherein, the polymerization interface comprises the logic interface of all these end nodes, the first polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with a malfunctioning node, the second polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with another malfunctioning node, and the trimerization sub-interface comprises the logic interface that all is positioned at this end node of different rings with two malfunctioning nodes;
Website transmits unicast message by polymerization interface and other websites that does not comprise malfunctioning node, transmit unicast message from the different websites that comprise malfunctioning node respectively by the first polymerization sub-interface or the second polymerization sub-interface, and transmit multicast message or broadcasting packet by all websites in trimerization sub-interface and looped network.
Situation four, when on the more than one ring that website is determined a malfunctioning node to be arranged in looped network and be positioned at the website local terminal according to the malfunctioning node information obtained, processing procedure is:
Website arranges the polymerization interface, and the polymerization interface comprises the logic interface that is positioned at this end node of different rings with malfunctioning node;
Website transmits unicast message, multicast message or broadcasting packet by polymerization interface and other websites that does not comprise malfunctioning node.
Situation five, when determining in looped network, two malfunctioning nodes are arranged when website according to the fault logic message obtained breath and being positioned on the different rings of website local terminal and another website, processing procedure is:
Website arranges polymerization interface and virtual polymerization sub-interface, and wherein, the polymerization interface comprises the logic interface that is positioned at this end node on different rings with the local terminal malfunctioning node, and virtual polymerization sub-interface comprises the logic interface that is positioned at this end node on different rings with two malfunctioning nodes;
Website transmits unicast message by the website that polymerization interface and other do not comprise malfunctioning node, by virtual polymerization sub-interface and the website that comprises another malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
Processing by five kinds of above-mentioned situations, corresponding polymerization interface and virtual sub-interface have been set up in looped network, can carry out by such interface the transmission of clean culture, multicast or broadcasting packet between each website, and can not be subject to the impact of malfunctioning node, the present invention further illustrates the fault recovery processing procedure afterwards of malfunctioning node, different according to the situation of the malfunctioning node that recovers, concrete processing procedure equally also is divided into following several situation:
If situation one website determines that according to the malfunctioning node recovery information of obtaining all malfunctioning nodes that are arranged in other website of looped network recover normal, the virtual polymerization sub-interface of this website deletion.
situation two, corresponding aforesaid polymerization interface and virtual sub-interface set up situation two and situation three in process, if website recovers information according to the malfunctioning node that obtains, determine that an above node in all malfunctioning nodes recovers normal, if this node is certain node on the website local terminal, this website adds the polymerization interface with the logic interface on the ring of this node place, if this node is in looped network during certain node on other websites, to add corresponding virtual subnet polymerization interface to the logic interface that recovers normal node and be positioned at this end node on identical ring, whether the virtual polymerization sub-interface after this website judgement is added comprises identical this end node logic interface with polymerization interface or other un-added virtual polymerization sub-interfaces, if judgment result is that be, virtual polymerization sub-interface after deletion is added, if the determination result is NO, keep the virtual polymerization sub-interface after adding.
The situation four in process set up of situation three, corresponding aforesaid polymerization interface and virtual sub-interface, if website determines that according to the malfunctioning node recovery information of obtaining an above node in the local terminal malfunctioning node recovers normal, this website adds the logic interface that recovers normal node to the polymerization interface.
The situation five in process set up of situation four, corresponding aforesaid polymerization interface and virtual sub-interface, if website recovers information according to the malfunctioning node that obtains, the malfunctioning node of determining local terminal malfunctioning node and/or other websites recovers normal, this website will recover with local terminal the logic interface of normal node, add the polymerization interface to, and/or will recover the logic interface that normal node is positioned at this end node on identical ring with other websites, add virtual polymerization sub-interface to;
The logic interface of this identical the end node whether virtual polymerization sub-interface after the polymerization interface after website judgement is added and interpolation comprises, if judgment result is that be, virtual polymerization sub-interface after deletion is added if the determination result is NO, keeps the virtual polymerization sub-interface after adding.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, solved when realizing the Ploymerized Interface operation in the RPR system, when a node on certain annular link breaks down, cause whole annular link unavailable, affect the problem of network service, by set up the mode of corresponding virtual polymerization sub-interface according to malfunctioning node, carry out network service in minute faulty link, improve the reliability of RPR link.
In order further to set forth technological thought of the present invention, existing in conjunction with concrete application scenarios, technical scheme of the present invention is described.
Equally take as shown in Figure 1 application scenarios as example, comprise S1, S2, S3, four websites of S4 in the RPR looped network, the annular link (being previously described ring) of being connected with ring3 by ring1, ring2 between each website connects, on each website, the logic interface of the RPR node corresponding with each annular link is respectively R1, R2 and R3, setting up respectively the polymerization interface on each website is L1, wherein, L1 comprises R1, R2 and R3 simultaneously.
As shown in Figure 2, when the node of the upper ring3 of website S2 breaks down (the logic interface R3 on website S2 can't connect), increase the virtual polymerization sub-interface of an inside on the polymerization interface on S1, S3, S4.Because the processing on S1, S3, S4 is identical, below describe as an example of the processing procedure of website S1 example.
Specifically as shown in Figure 4, the schematic flow sheet for the communication means of the RPR looped network under a kind of concrete application scenarios proposed by the invention specifically comprises the following steps:
Set up virtual polymerization sub-interface in step S401, website S1.
At first, the RPR logic interface of the ring1 on website S1, ring2, the corresponding node of ring3 is R1, R2 and R3, and the polymerization interface that comprises above-mentioned three logic interfaces is L1, further increases in this step a virtual polymerization sub-interface L1.1.
The member interface of L1 is logic interface R1, logic interface R2 and logic interface R3, and the member interface of L1.1 only has logic interface R1 and the logic interface R2 of normal node place ring in website S1, does not namely comprise the logic interface R3 that is positioned at identical ring in website S1 with the malfunctioning node of website S2 in L1.1.
Be that logic interface R1, logic interface R2 add polymerization interface L1 and virtual polymerization sub-interface L1.1 simultaneously, and logic interface R3 only add L1.
The virtual polymerization sub-interface node state that to be website encircle on each website according to RPR creates and deletion automatically, creates when the node of a website on certain ring breaks down, and deletes when the fault recovery of this malfunctioning node.
Virtual polymerization sub-interface is that inner the realization used, and the user is invisible.Why be called virtual polymerization sub-interface and be exactly because this virtual polymerization sub-interface user is invisible, and have identical member interface with original polymerization interface.
To be website create according to the situation of RPR aggregation group interior nodes internal virtual polymerization sub-interface automatically, occurs under finding certain RPR ring that node hinders for some reason and create when disappearing; Deletion this virtual polymerization sub-interface when the fault recovery of the node that disappears, the node in some RPR rings disappear and are actually that corresponding logic interface cisco unity malfunction causes owing to encircling with this RPR on this RPR node.
Step S402, website S1 carry out the MAC address learning of other nodes.
When carrying out MAC address learning on website S1, needing the judgement message is which website is come, and processes accordingly according to judged result.
Come if the message of learning MAC address is slave site S3 or website S4, the outgoing interface of MAC Address is set to L1; Come if the message of learning MAC address is slave site S2, the outgoing interface of MAC Address is set to L1.1.
But when the user was shown, the outgoing interface unification was shown as L1, and namely the interior polymeric sub-interface is invisible to the user.
Concrete, website is that the SMAC address judgement message of RPR head in the basis message that receives is from which website to come.
Step S403, website S1 carry out the ARP study of other nodes.
When carrying out ARP study on website S1, needing the judgement message is which website is come, and processes accordingly according to judged result.
If the message of study ARP is that slave site S3 or website S4 come, the outgoing interface of ARP list item is set to L1; If the message of study ARP is that slave site S2 comes, the outgoing interface of ARP list item is set to L1.1.
But when the user was shown, the outgoing interface unification was shown as L1, and namely the interior polymeric interface is invisible to the user.
Concrete, website is that the SMAC address judgement message of RPR head in the basis message that receives is from which website to come.
It is pointed out that above-mentioned step S402 and step S403 do not have the differentiation of sequencing, sequence number does not affect the variation of execution sequence just for convenience of explanation.
By above-mentioned step S402 and S403, website S1 has set up the forwarding-table item of other each websites in the system.
The type of each message that step S404, website S1 identification receives.
If unicast message, execution in step S405;
If multicast message or broadcasting packet, execution in step S406.
Step S405, forward according to MAC Address list item, ARP list item.
When needing to forward two layers of unicast message or three layers of unicast message on website S1, inquire about MAC Address list item or ARP list item, select to forward from polymerization interface L1 or virtual polymerization sub-interface L1.1 according to the outgoing interface of list item.
If the outgoing interface of list item is polymerization interface L1, to describe as can be known according to above-mentioned setting, the message of this list item study is that slave site S3 or website S4 come, and therefore, can share ring1, ring2, ring3 when forwarding on polymerization interface L1.
If the outgoing interface of list item is virtual polymerization sub-interface L1.1, describe as can be known according to above-mentioned setting, the message of this list item study is that slave site S2 comes, therefore, when forwarding, only can share ring1 and ring2 on virtual polymerization sub-interface L1.1, avoid the ring3 at the corresponding logic interface R3 of malfunctioning node place, thereby, guarantee that website S2 can receive message.
Step S406, multicast, broadcasting packet only forward from virtual polymerization sub-interface.
When needing forwarding multicasting or broadcasting packet on website S1, because guaranteeing message, needs can receive by slave site S2, and therefore, multicast or broadcasting packet can only forward from virtual polymerization sub-interface L1.1, namely share on ring1 and ring2.And when forwarding from virtual polymerization sub-interface L1.1, can not forward from polymerization interface L1 again, otherwise other websites in looped network will be received 2 parts of messages.
On specific implementation, guarantee that the method that multicast, broadcast traffic only forward is on virtual polymerization sub-interface L1.1:
1) when being supported in this RPR looped network when directly forbidding the arranging of multicast, broadcast traffic on the polymerization interface, forbid on polymerization interface L1 that multicast, broadcast traffic get final product.
2) when carrying out multicast, broadcast traffic forwarding by multicast, broadcast interface list in this RPR looped network, first the logic interface in polymerization interface L1 is rejected from multicast, broadcast interface list, then the logic interface in virtual polymerization sub-interface L1.1 is added multicast, broadcast interface list.
3) if three layers of multicast because original related aggregation group is polymerization interface L1, need to be updated to virtual polymerization sub-interface L1.1 at this moment.If adopt the form of interface list, logic interface R3 (being the logic interface that differs between L1 and L1.1) rejecting is got final product.
Whether step S407, failure judgement are recovered.
If do not recover, return to step S404;
If recover, execution in step S408.
Step S408, website S1 delete virtual polymerization sub-interface.
above flow process is to describe as an example of website S1 example, because having fault equally, website S3 and website S4 do not occur, so, corresponding flow process equally as shown in Figure 4, be not repeated, but for website S2, because fault has occured the logic interface on node wherein, this logic interface can not normally carry out Business Processing again, so, polymerization interface in website S2 directly changes to the L1 of logic interface R1 and logic interface R2 composition, therefore, because the member interface in the polymerization interface itself variation has occured, therefore, adopt the quick handover mechanism of existing polymerization to get final product, need not other modifications.
And on website S1, website S3 and website S4, because aggregation group changes, therefore, if realize that quick switching need to carry out extra process.At first, the node failure that the corresponding ring3 of website S2 detected on website S1, website S3, website S4 (is the corresponding node failure of logic interface R3 on S2, this detection can be responded to fast by the RPR change in topology), immediately the outgoing interface of all MAC, ARP and multicast list is updated to virtual polymerization sub-interface L1.1.
Because virtual polymerization sub-interface L1.1 is complete ring, so flow guarantees and can pass through.If what multicast adopted is the form of interface table, logic interface R3 rejecting is got final product.
Then, trigger relearning of MAC, ARP at website S1, website S3, website S4.Relearning of MAC can realize by the MAC Address of learning under the deletion aggregation port.Relearning of ARP can ask to realize by initiate ARP on virtual polymerization sub-interface L1.1.
At last, adopt the mode of aforesaid step S402 and step S403 to relearn MAC and ARP list item, the outgoing interface of MAC and ARP is learnt respectively on virtual polymerization sub-interface L1 or L1.1 polymerization interface according to the situation of source node, guarantee flow can by and also can be on the fault ring load balancing.
When malfunctioning node recovers, it is the fault recovery of the malfunctioning node on website S2, when logic interface R3 place website occurs in ring3 again, the MAC Address list item that website S1, website S3, website S4 upward learn virtual polymerization sub-interface L1.1 and the outgoing interface of ARP list item are updated to polymerization interface L1, then delete virtual polymerization sub-interface L1.1.Multicast list upgrades outgoing interface to be polymerization interface L1 or to increase logic interface R3 as outgoing interface.
In concrete application scenarios, often there is the situation of a plurality of faults.
Wherein, when two nodes on the different ring of being positioned at of same website broke down, corresponding handling process was as follows:
As shown in Figure 5, the node of website S2 on ring2 and ring3 all breaks down, and be the same with aforementioned flow process, creates internal virtual polymerization sub-interface L1.1 on website S1, website S3, website S4, and the member interface of L1.1 only has logic interface R1.The foundation of L1.1 is actually in order to guarantee to avoid the corresponding logic interface R2 of malfunctioning node and logic interface R3, thereby, make website S1, website S3, website S4 send corresponding discharge to website S2 smoothly.
The study situation of MAC Address and ARP list item is with aforesaid step S402 and step S403.If being slave site S3 and website S4, the message of learning MAC address and ARP list item comes, the outgoing interface with corresponding MAC Address and ARP list item is L1, namely use L1 to send message to website S3 and website S4, if being slave site S2, the message of learning MAC address and ARP list item comes, the outgoing interface with corresponding MAC Address and ARP list item is L1.1, namely uses L1.1 to send message to website S2.
Multicast or broadcasting packet are still selected to forward from L1.1, and forbid forwarding from L1.Just, the member interface of L1.1 only has logic interface R1 at this moment.
Situation on website S3, website S4 need not to create virtual polymerization sub-interface with website S1 on website S2, only the member interface in configuration polymerization interface on website need to be adjusted into the R1 gating, gets final product as the polymerization interface that arranges on this website.
Wherein, when the fault recovery of the corresponding node of logic interface R2 in website S2, the member interface of L1.1 in website S1, website S3 and website S4 is adjusted into logic interface R1 and logic interface R2, the member interface of L1 in website S2 is adjusted into logic interface R1 and logic interface R2 gating, get final product as the polymerization interface that arranges on this website, when the fault recovery of the corresponding node of logic interface R3, processing procedure similarly.
It is to be noted, in two kinds of above-mentioned situations, because the node that breaks down all is positioned on website S2, therefore, virtual polymerization sub-interface is not set on S2, but according to the situation of fault recovery, in the polymerization interface, which logic interface of gating need to be adjusted according to failure condition as member interface.
In addition, if the fault of logic interface R2 and the corresponding node of logic interface R3 is all recovered, delete L1.1 in website S1, website S3 and website S4, the member interface of the L1 in website S2 is adjusted into logic interface R1, logic interface R2 and logic interface R3.
In another kind of situation, when the node that is positioned on different rings breaks down, and two nodes are on same website the time, and corresponding handling process is as follows:
As shown in Figure 6, website S2 is in node (the corresponding node of the logic interface R3) fault of ring3, and website S3 in node (the corresponding node of the logic interface R1) fault of ring1, processes respectively as follows according to the different situations of each node this moment simultaneously:
(1) the upper need of website S1 creates three virtual polymerization sub-interface L1.1, L1.2 and L1.3, is described as follows:
The member interface that L1.1 comprises is logic interface R1 and logic interface R2, the upper node (the corresponding node of logic interface R3) that breaks down of website S2 is avoided in assurance on ring3, thereby, can send corresponding discharge to website S2 smoothly, can think that L1.1 is corresponding with website S2, be the interface of website S1 in order to arrange to website S2 transmission message specially.
The member interface that L1.2 comprises is logic interface R2 and logic interface R3, the upper node (the corresponding node of logic interface R1) that breaks down of website S3 is avoided in assurance on ring1, thereby, can send corresponding discharge to website S3 smoothly, can think that L1.2 is corresponding with website S3, be the interface of website S1 in order to arrange to website S3 transmission message specially.
the member interface that L1.3 comprises is logic interface R2, guarantee to avoid simultaneously website S2 upper on node (the corresponding node of logic interface R3) that ring3 breaks down and website S3 at the ring1 node (the corresponding node of logic interface R1) that breaks down, thereby, can send corresponding discharge to website S2 and website S3 simultaneously smoothly, , because there is fault in the node in website S2 in looped network and website S3, so, in the situation that avoided the malfunctioning node of these two websites, can send corresponding discharges by all websites in the looped network by L1.3, can think that namely L1.3 is simultaneously corresponding with all websites, can be used for sending multicast/broadcast massage.
In the learning process of MAC Address list item and ARP list item, the outgoing interface of MAC Address list item and ARP list item arranges rule and is specially: if the received learning MAC address of website S1 and the message of ARP list item are that slave site S2 comes, the outgoing interface of the corresponding MAC Address of website S1 and ARP list item is set to L1.1; Come if the message of the learning MAC address that website S1 is received and ARP list item is slave site S3, the outgoing interface of the corresponding MAC Address of website S1 and ARP list item is set to L1.2; Come if the message of the learning MAC address that website S1 is received and ARP list item is slave site S4, the outgoing interface of the corresponding MAC Address of website S1 and ARP list item is set to L1; Because the ring in L1.3 is complete ring, can arrive any website on ring, so website S1 arranges broadcasting packet and forwards from L1.3.
(2) due to self node (the corresponding node of logic interface R3) fault, website S2 deletes logic interface R3 in L1, only logic interface R1 and logic interface R2 are carried out gating, in addition, website S2 also need create 1 virtual polymerization sub-interface L1.1, member interface in L1.1 is logic interface R2, when avoiding the malfunctioning node of self (the corresponding node of logic interface R3), the malfunctioning node (the corresponding node of logic interface R1) on website S3 is avoided in assurance, thereby, can send corresponding discharge to website S3 simultaneously smoothly, therefore, can think that L1.1 is corresponding with website S3, it is the interface of website S2 in order to arrange to website S3 transmission message specially, and, owing to only having the node on website S2 and website S3 to have fault in looped network, so, in the situation that avoided the malfunctioning node of these two websites, be equivalent to send corresponding discharges by all websites in the looped network by L1.1, can think that namely the L1.1 in website S2 is simultaneously corresponding with all websites, can be used for sending multicast/broadcast massage.
In the learning process of MAC Address list item and ARP list item, the outgoing interface of MAC Address list item and ARP list item arranges rule and is specially: if the received learning MAC address of website S2 and the message of ARP list item are that slave site S1 and website S4 come, the outgoing interface of the corresponding MAC Address of website S2 and ARP list item is set to L1; Come if the message of the learning MAC address that website S2 is received and ARP list item is slave site S3, the outgoing interface of the corresponding MAC Address of website S2 and ARP list item is set to L1.1; Because the ring in L1.1 is complete ring, can arrive any website on ring, so website S2 arranges broadcasting packet and forwards from L1.1.
(3) situation on website S3 is with website S2, due to self node (the corresponding node of logic interface R1) fault, website S3 deletes logic interface R1 in L1, only logic interface R2 and logic interface R3 are carried out gating, in addition, website S3 also need create 1 virtual polymerization sub-interface L1.1, member interface in L1.1 is logic interface R2, when avoiding the malfunctioning node of self (the corresponding node of logic interface R1), the malfunctioning node (the corresponding node of logic interface R3) on website S2 is avoided in assurance, thereby, can send corresponding discharge to website S2 simultaneously smoothly, therefore, can think that L1.1 is corresponding with website S3, it is the interface of website S3 in order to arrange to website S2 transmission message specially, and, owing to only having the node on website S2 and website S3 to have fault in looped network, so, in the situation that avoided the malfunctioning node of these two websites, be equivalent to send corresponding discharges by all websites in the looped network by L1.1, can think that namely the L1.1 in website S3 is simultaneously corresponding with all websites, can be used for sending multicast/broadcast massage.
In the learning process of MAC Address list item and ARP list item, the outgoing interface of MAC Address list item and ARP list item arranges rule and is specially: if the received learning MAC address of website S3 and the message of ARP list item are that slave site S1 and website S4 come, the outgoing interface of the corresponding MAC Address of website S3 and ARP list item is set to L1; Come if the message of the learning MAC address that website S3 is received and ARP list item is slave site S2, the outgoing interface of the corresponding MAC Address of website S3 and ARP list item is set to L1.1; Because the ring in L1.1 is complete ring, can arrive any website on ring, so website S3 arranges broadcasting packet and forwards from L1.1.
(4) the same S1 of the situation on S4 creates three each and every one virtual polymerization sub-interface L1.1, L1.2 and L1.3, is described as follows:
The member interface that L1.1 comprises is logic interface R1 and logic interface R2, the node (the corresponding node of logic interface R3) that website S2 breaks down is avoided in assurance on ring3, thereby, can send corresponding discharge to website S2 smoothly, can think that L1.1 is corresponding with website S2, be the interface of website S4 in order to arrange to website S2 transmission message specially.
The member interface that L1.2 comprises is logic interface R2 and logic interface R3, the interface node (the corresponding node of logic interface R1) that breaks down in node on website S3 is avoided in assurance, thereby, can send corresponding discharge to website S3 smoothly, can think that L1.2 is corresponding with website S3, be the interface of website S4 in order to arrange to website S3 transmission message specially.
The member interface that L1.3 comprises is logic interface R2, guarantee to avoid simultaneously website S2 at the node that breaks down on ring3 (the corresponding node of logic interface R3) and the website S3 node (the corresponding node of logic interface R1) that breaks down on ring1, thereby, can send corresponding discharge to website S2 and website S3 simultaneously smoothly.Owing to only having the node in website S2 and website S3 to have fault in looped network, so, in the situation that avoided the malfunctioning node of these two websites, be equivalent to send corresponding discharges by all websites in the looped network by L1.3, can think that namely L113 is simultaneously corresponding with all websites, can be used for sending multicast/broadcast massage.
In the learning process of MAC Address list item and ARP list item, the outgoing interface of MAC Address list item and ARP list item arranges rule and is specially: if the received learning MAC address of website S4 and the message of ARP list item are that slave site S2 comes, the outgoing interface of the corresponding MAC Address of website S4 and ARP list item is set to L1.1; Come if the message of the learning MAC address that website S4 is received and ARP list item is slave site S3, the outgoing interface of the corresponding MAC Address of website S4 and ARP list item is set to L1.2; Come if the message of the learning MAC address that website S4 is received and ARP list item is slave site S1, the outgoing interface of the corresponding MAC Address of website S4 and ARP list item is set to L1; Because the ring in L1.3 is complete ring, can arrive any website on ring, so website S4 arranges broadcasting packet and forwards from L1.3.
wherein, during the fault recovery of the node as website S2 on ring3 (the corresponding node of logic interface R3), L1.1 and L1.3 that in website S1 and website S4, deletion arranges self, the member interface that website S2 adjusts the L1 of self is logic interface R1, logic interface R2 and logic interface R3, and the member interface of virtual polymerization sub-interface L1.1 is adjusted into logic interface R2 and logic interface R3, in website S3, the virtual polymerization sub-interface L1.1 of deletion is (because except the malfunctioning node of website S3 self, no longer there have been other malfunctioning nodes in other websites in looped network, no longer keep virtual polymerization sub-interface L1.1).
When the fault recovery of the node on website S3 (the corresponding node of logic interface R1), virtual polymerization sub-interface L1.2 and L1.3 that in website S1 and website S4, deletion arranges self, the member interface that website S3 adjusts the L1 of self is logic interface R1, logic interface R2 and logic interface R3, and the member interface of L1.1 is adjusted into logic interface R1 and logic interface R2, delete L1.1 in website S2 (because except the malfunctioning node of website S2 self, no longer there have been other malfunctioning nodes in other websites in looped network, no longer keep virtual polymerization sub-interface L1.1).
In concrete application scenarios, if on ring, more node failure is arranged, can adopt the method in aforementioned flow process to analogize processing, just the situation of fault is too complicated at this moment, has at most 2nPlant situation (n is the fault number of ports).
The probability of considering the fault that so a plurality of nodes occur simultaneously is very little, therefore, can the failure condition more than 2 not processed.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, solved when realizing the Ploymerized Interface operation in the RPR system, when a node on certain annular link breaks down, cause whole annular link unavailable, affect the problem of network service, by set up the mode of corresponding virtual polymerization sub-interface according to malfunctioning node, carry out network service in minute faulty link, improve the reliability of RPR link.
In order to realize technical scheme of the present invention, the invention allows for a kind of RPR looped network website, its structural representation specifically comprises as shown in Figure 7:
Whetheracquisition module 71 exists malfunctioning node for detection of each website in looped network, and when breaking down node, obtains the information of malfunctioning node.
Determination module 72 is connected withacquisition module 71, for the information of the malfunctioning node that obtains according toacquisition module 71, determines quantity and the position of malfunctioning node.
Module 73 is set, is connected withdetermination module 72, be used for quantity and position according todetermination module 72 determined malfunctioning nodes, polymerization interface and virtual polymerization sub-interface are set.
Communication module 74 and arrangesmodule 73 and is connected, and is used for by other websites transmission messages of the set polymerization interface ofmodule 73 and virtual polymerization sub-interface and looped network are set.
Wherein, in conjunction with concrete application scenarios,module 73 is set to be used for whendetermination module 72 determines that looped network only has a malfunctioning node and is arranged on the ring of another website of looped network, polymerization interface and virtual polymerization sub-interface are set, wherein, the polymerization interface comprises the logic interface of all these end nodes, and virtual polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with malfunctioning node;
Communication module 74, be used for transmitting unicast message bymodule 73 the polymerization interface that arranges and the website that does not comprise malfunctioning node are set, and by virtual polymerization sub-interface and the website that comprises malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
In another kind of application scenarios,module 73 is set, be used for whendetermination module 72 determines that looped network has two above malfunctioning nodes and is arranged on the different rings of another website of looped network, polymerization interface and virtual polymerization sub-interface are set, wherein, the polymerization interface comprises the logic interface of all these end nodes, and virtual polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with malfunctioning node;
Communication module 74 transmits unicast message by polymerization interface and the website that does not comprise malfunctioning node, and by virtual polymerization sub-interface and the website that comprises malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
in another kind of application scenarios,module 73 is set, be used for whendetermination module 72 determines that looped network has two malfunctioning nodes and is arranged on the different rings of two websites of looped network,module 73 is set the polymerization interface is set, the first polymerization sub-interface, the second polymerization sub-interface and trimerization sub-interface, wherein, the polymerization interface comprises the logic interface of all these end nodes, the first polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with a malfunctioning node, the second polymerization sub-interface comprises the logic interface that is positioned at this end node of different rings with another malfunctioning node, the trimerization sub-interface comprises the logic interface that all is positioned at this end node of different rings with two malfunctioning nodes,
Communication module 74, transmit unicast message by polymerization interface and other websites that does not comprise malfunctioning node, transmit unicast message from the different websites that comprise malfunctioning node respectively by the first polymerization sub-interface or the second polymerization sub-interface, and transmit multicast message or broadcasting packet by all websites in trimerization sub-interface and looped network.
In another kind of application scenarios,module 73 is set, be used for whendetermination module 72 determines that looped network has a malfunctioning node and is positioned on the more than one ring of website local terminal, the polymerization interface being set, the polymerization interface comprises the logic interface that is positioned at this end node of different rings with malfunctioning node;
Communication module 74 transmits unicast message, multicast message or broadcasting packet by polymerization interface and other websites that does not comprise malfunctioning node.
In another kind of application scenarios,module 73 is set, be used for whendetermination module 72 determines that looped network has two malfunctioning nodes and is positioned on the different rings of website local terminal and another website, polymerization interface and virtual polymerization sub-interface are set, wherein, the polymerization interface comprises the logic interface that is positioned at this end node on different rings with the local terminal malfunctioning node, and virtual polymerization sub-interface comprises the logic interface that is positioned at this end node on different rings with two malfunctioning nodes
Communication module 74, the website that does not comprise malfunctioning node by polymerization interface and other transmits unicast message, by virtual polymerization sub-interface and the website that comprises another malfunctioning node transmit unicast message and with looped network in all websites transmit multicast message or broadcasting packets.
By above-mentioned processing, corresponding polymerization interface and virtual sub-interface have been set up in looped network, can carry out by such interface the transmission of clean culture, multicast or broadcasting packet between each website, and can not be subject to the impact of malfunctioning node, RPR looped network website proposed by the invention further can be realized the fault recovery processing procedure afterwards of malfunctioning node, and concrete processing procedure is as follows:
Acquisition module 71 also is used for obtaining malfunctioning node and recovers information.
Determination module 72, the malfunctioning node that also is used for obtaining according toacquisition module 71 recovers information, determines to recover position and the quantity of normal malfunctioning node.
On this basis, RPR looped network website also comprisesinterpolation module 75,judge module 76 and removingmodule 77.
Addmodule 75, be connected withdetermination module 72, be used for whendetermination module 72 determines that the normal malfunctioning node of recovery is this end node, logic interface on this end node place is encircled normally with recovery is keyed in the polymerization interface, or be used for whendetermination module 72 is determined to recover normal malfunctioning nodes and be the node of other websites, will add corresponding virtual subnet polymerization interface to logic interface that the normal node of recovery is positioned at this end node on identical ring.
Judge module 76 is connected withinterpolation module 75, and whether the virtual polymerization sub-interface that is used for afterjudgement interpolation module 75 is added comprises identical logic interface with polymerization interface or other un-added virtual polymerization sub-interfaces.
Removingmodule 77, withdetermination module 72,module 73 be set be connected withjudge module 76, be used for whendetermination module 72 determines that all malfunctioning nodes recover normal, deletion arranges the set virtual polymerization sub-interface ofmodule 73, or the virtual polymerization sub-interface afterjudge module 76 judgement is added is when comprising identical logic interface with polymerization interface or other un-added virtual polymerization sub-interfaces, the virtual polymerization sub-interface after the deletion interpolation.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, solved when realizing the Ploymerized Interface operation in the RPR system, when a node on certain annular link breaks down, cause whole annular link unavailable, affect the problem of network service, by set up the mode of corresponding virtual polymerization sub-interface according to malfunctioning node, carry out network service in minute faulty link, improve the reliability of RPR link.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) each implements the described method of scene to carry out the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred schematic diagram of implementing scene, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number does not represent just to description the quality of implementing scene.
Above disclosed be only several concrete enforcement scene of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.