Summary of the invention
In view of this, the main purpose of the embodiment of the invention provides a kind of convergence method and device based on the dual-homed fully-connected network of VPLS.
The purpose of the embodiment of the invention is achieved through the following technical solutions, the embodiment of the invention provides a kind of convergence method based on the dual-homed fully-connected network of VPLS, described fully-connected network is made up of communication apparatus, described communication apparatus comprises VPLS main equipment, VPLS stand-by equipment and other communication apparatus, dual-homed equipment is connected with described VPLS stand-by equipment with described VPLS main equipment by dual-homed main/slave link respectively, connect by link between the described communication apparatus, under the normal condition, dual-homed primary link is an active link, it is characterized in that, comprising:
Described dual-homed equipment is preserved the mapping relations of described dual-homed primary link and described VPLS stand-by equipment and described other communication apparatus;
Break down the MAC Address that described dual-homed unit deletion is learnt from described dual-homed primary link when detecting described dual-homed primary link;
Described dual-homed equipment sends the address and cancels message and described mapping relations to described VPLS stand-by equipment;
The MAC Address that described VPLS stand-by equipment is learnt from described dual-homed primary link according to described mapping relations deletion;
Described VPLS stand-by equipment sends the address to described other communication apparatus and cancels the mapping relations of message and described other communication apparatus and affiliated dual-homed primary link;
The MAC Address that described other communication apparatus are learnt from described dual-homed primary link according to the mapping relations deletion of being received;
Described dual-homed equipment and described communication apparatus are learnt again to the MAC Address of being deleted.
In addition, it is a kind of based on the dual-homed fully-connected network convergence method of VPLS that the embodiment of the invention also provides, described fully-connected network is made up of communication apparatus, described communication apparatus comprises VPLS main equipment, VPLS stand-by equipment and other communication apparatus, dual-homed equipment is connected with described VPLS stand-by equipment with described VPLS main equipment by dual-homed main/slave link respectively, and under the normal condition, dual-homed primary link is an active link, each communication apparatus all has self identification, it is characterized in that, comprise the steps:
Described VPLS main equipment is preserved the mapping relations with described dual-homed primary link and described other communication apparatus, and to the described mapping relations of described dual-homed devices advertise;
When described dual-homed primary link breaks down, the MAC Address that described dual-homed unit deletion is learnt from described dual-homed primary link;
Described dual-homed equipment transmission active/standby link switching message and described mapping relations are to described VPLS stand-by equipment;
Described VPLS stand-by equipment switches to active link according to described active/standby link switching message and described mapping relations with described dual-homed reserve link;
Described VPLS stand-by equipment sends the mapping relations of masterslave switchover message and described other communication apparatus and VPLS main equipment to described other communication apparatus;
Described other communication apparatus will switch to from described dual-homed reserve link from the message that described dual-homed primary link is transmitted according to the mapping relations of being received and transmit.
In addition, another embodiment of the present invention provides a kind of convergence device based on the dual-homed fully-connected network of VPLS, described fully-connected network is made up of communication apparatus, described communication apparatus comprises VPLS main equipment, VPLS stand-by equipment and other communication apparatus, dual-homed equipment is connected with the VPLS stand-by equipment with the VPLS main equipment by dual-homed main/slave link respectively, connect by link between the described communication apparatus, under the normal condition, dual-homed primary link is an active link, it is characterized in that, comprise as lower module:
First mapping relations are preserved module, the mapping relations that are used to preserve described dual-homed primary link and described VPLS stand-by equipment and described other communication apparatus;
Whether fault detection module is used to detect described dual-homed primary link and breaks down;
The first address removing module, after being used to receive the fault message of described fault detection module, the MAC Address that deletion is learnt from described dual-homed primary link;
The message sending module is cancelled in first address, and after being used to receive the fault message of described fault detection module, the tabulation of structure MAC Address is cancelled message for empty address, and sends to described VPLS stand-by equipment;
The first mapping relations announcement module is used for the mapping relations of described first mapping relations preservation module are sent to described VPLS stand-by equipment;
The second address removing module, be used to receive that the message of the message sending module and the first mapping relations announcement module is cancelled in first address after, the MAC Address that deletion is learnt from described dual-homed primary link;
The message sending module is cancelled in second address, after being used for cancelling message according to first address of being received, sends the MAC Address tabulation and cancels message to described other communication apparatus for empty address;
The second mapping relations announcement module, the mapping relations from the described first mapping relations announcement module that are used for being received send to described other communication apparatus;
The three-address removing module, be used to receive that the message of the message sending module and the second mapping relations announcement module is cancelled in second address after, the MAC Address that deletion is learnt from described dual-homed primary link;
The MAC address learning module is used for the MAC Address of being deleted is learnt again.
In addition, another embodiment of the present invention also provides a kind of convergence device based on the dual-homed fully-connected network of VPLS, described fully-connected network is made up of communication apparatus, described communication apparatus comprises VPLS main equipment, VPLS stand-by equipment and other communication apparatus, dual-homed equipment is connected with the VPLS stand-by equipment with the VPLS main equipment by dual-homed main/slave link respectively, connect by link between the described communication apparatus, under the normal condition, dual-homed primary link is an active link, it is characterized in that, comprise as lower module:
First mapping relations are preserved module, the mapping relations that are used to preserve described VPLS main equipment and described VPLS stand-by equipment and described other communication apparatus;
Whether fault detection module is used to detect described dual-homed primary link and breaks down;
The first address removing module, after being used to receive the fault message of described fault detection module, the MAC Address that deletion is learnt from described dual-homed primary link;
The first active/standby link switching message transmission module after being used to receive the fault message of described fault detection module, sends the first active/standby link switching message to described VPLS stand-by equipment;
The first mapping relations announcement module is used for described mapping relations are sent to described VPLS stand-by equipment;
The first active/standby link switchover module, be used to receive described first masterslave switchover message and described mapping relations after, described dual-homed reserve link is switched to active link;
The second active/standby link switching message transmission module is used for sending the second active/standby link switching message to described other communication apparatus according to the described first masterslave switchover chain circuit message;
The second mapping relations announcement module is used for described mapping relations are sent to described other communication apparatus;
The second active/standby link switchover module, be used to receive described second active/standby link switching message and described mapping relations after, will switch to from the message that described dual-homed primary link is transmitted and transmit from described dual-homed reserve link.
As seen from the above technical solution provided by the invention, the present invention is by preserving the mapping relations of dual-homed primary link and all communication apparatus on dual-homed equipment before dual-homed primary link breaks down, after dual-homed primary link breaks down, can realize cancelling fast the MAC Address of learning from described dual-homed primary link, and do not delete and the irrelevant MAC Address of described dual-homed primary link, thereby the convergence rate of network has been accelerated in a large amount of generations of the broadcasting packet in the minimizing network.
Embodiment
For convenience of description, we at first briefly introduce fully-connected network, fully-connected network is made up of communication apparatus, described communication apparatus comprises VPLS stand-by equipment and other communication apparatus, dual-homed equipment is connected with the VPLS stand-by equipment with the VPLS main equipment by dual-homed main/slave link respectively, connect by link between the described communication apparatus, under the normal condition, dual-homed primary link is an active link, the embodiment of the invention is example with H-VPLS, with reference to figure 3, the corresponding relation schematic diagram of dual-homed primary link of the H-VPLS of the embodiment of the invention and link.In Fig. 3, MTU-S is dual-homed main equipment, communication apparatus is the PE equipment in the fully-connected network, wherein, PE1-rs is the dual-homed main equipment of fully-connected network, PE2-rs is the dual-homed stand-by equipment of fully-connected network, and other communication apparatus are the communication apparatus except that dual-homed main equipment and dual-homed stand-by equipment just.Dual-homed primary link is pw1, and dual-homed reserve link is pw2, and under normal circumstances, having only pw1 is active link.All pw among we the hypothesis figure belong to same VSI, and we only are described at the situation of a VSI, and other VSI can also do similar operation.In Fig. 3, PE1-rs is the dual-homed main equipment of fully-connected network, connects with other far-end PE-rs, and PE1-rs and each far-end PE-rs set up some hub pw.PE1-rs has pw1, pw9 and three dual-homed spoke pw of pw10 among Fig. 3, wherein pw1 is dual-homed spoke pw, in the hub pw that sets up with PE2-rs, PE3-rs and PE4-rs, pw3 ', pw4 ', the corresponding pw1 of pw6 ', above the flow that comes from pw1 of transmission only, transmit next flow and pw3, pw4, pw6 are last from other pw.
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples, and with reference to accompanying drawing, the present invention is described in more detail.
Embodiment one:
With reference to figure 4, Fig. 4 is the convergence method flow chart based on the dual-homed fully-connected network of VPLS of the embodiment of the invention one;
The mapping relations that step 401, dual-homed equipment are preserved VPLS main equipment and VPLS stand-by equipment and described other communication apparatus;
In the specific implementation of the embodiment of the invention, described VPLS main equipment sends link tags respectively to described VPLS stand-by equipment and described other communication apparatus, described link tags is used for identifying respectively the link between described VPLS stand-by equipment and described other communication apparatus and the described dual-homed main equipment, and the packet of described link bearer is transmitted by described dual-homed primary link;
For example in Fig. 3, PE1-rs can distribute hub-pw labels by all the opposite end PE in described VSI.Described VPLS main equipment is preserved the mapping relations with described VPLS stand-by equipment and described other communication apparatus respectively, and described mapping relations comprise the mapping relations of the self identification and the described VPLS stand-by equipment link corresponding label of described dual-homed primary link, described VPLS stand-by equipment; Mapping relations with the self identification that comprises described dual-homed primary link, described other communication apparatus and described other communication apparatus link corresponding labels.
Described VPLS main equipment by described dual-homed primary link to the described mapping relations of described dual-homed devices advertise.
For example in Fig. 3, described communication apparatus can pass through LSR-ID (Label Switching Router-ID; The unique identification of LSR) identifies, the PE1-rs mapping relations of preservation and PE2-rs and other PE-rs respectively then, promptly the mapping relations of preserving respectively comprise following three at least:<spokepw, LSR-ID, hub pw 〉, and announce this mapping relations to MTU by pw1, when mapping relations change, need in time to the new mapping relations of MTU announcement.
Step 402, break down the MAC Address that described dual-homed unit deletion is learnt from described dual-homed primary link when detecting described VPLS primary link;
For example in Fig. 3, after pw1 broke down, MTU detected this fault and removes the MAC Address of originally learning from pw1 in this VSI.
Step 403, described dual-homed equipment send the address and cancel message and described mapping relations to described VPLS stand-by equipment;
In specific implementation, message is cancelled in described address can be empty message for comprising the MAC Address tabulation.For example in Fig. 3, MTU cancels message with the mapping relations of the pw1 of the PE1-rs that received and communication apparatus and MAC tabulation for empty LDP address and sends to PE2-rs.
The MAC Address that step 404, described VPLS stand-by equipment are learnt from described dual-homed primary link according to described mapping relations deletion;
In specific implementation, described VPLS stand-by equipment is inquired about described mapping relations table by self identification and is obtained described VPLS stand-by equipment link corresponding sign, deletes the MAC Address of learning from described dual-homed primary link according to described chain line.For example in Fig. 3, PE2-rs finds the pw3 ' that need cancel by the LSR-ID of self, and only cancel the MAC Address of learning from pw3 ', and deleting the clauses and subclauses of the pairing hub pw of self LSR-ID, PE2-rs has just cancelled from the next MAC Address of pw1 study like this.
Step 405, described VPLS stand-by equipment send the address to described other communication apparatus and cancel the mapping relations of message and described other communication apparatus and VPLS main equipment;
For example in Fig. 3, PE2-rs sends LSR-ID, the hub pw of PE-rs and the mapping relations of pw1 and the LDP address that the MAC tabulation is sky to the PE-rs of its far-end equipment and cancels message.
The MAC Address that step 406, described other communication apparatus are learnt from described dual-homed primary link according to the mapping relations deletion of being received.
For example in Fig. 3, far-end PE-rs equipment is cancelled the MAC Address that the message deletion is learnt from pw1 according to mapping relations of being received and MAC tabulation for empty LDP address.
Step 407, described dual-homed equipment and described communication apparatus are learnt again to the MAC Address of being deleted.
In addition, described dual-homed equipment and described communication apparatus are also learnt the unknown MAC Address except that the MAC Address of being deleted.
Embodiment two:
The mapping relations that step 501, dual-homed equipment are preserved VPLS main equipment and VPLS stand-by equipment and described other communication apparatus;
In the specific implementation of the embodiment of the invention, described communication apparatus adds tunnel label to the packet of receiving and transmits in described fully-connected network, and described tunnel label is used for identification data and wraps in the label that enters tunnel, the preceding place of described fully-connected network (tunnel);
Described communication apparatus is preserved the mapping relations of the sign of described tunnel label, described VPLS corresponding virtual exchange example and described communication apparatus;
The mapping relations that described VPLS main equipment is preserved to the described VPLS main equipment of described dual-homed devices advertise by described dual-homed primary link.
When described mapping relations changed, described VPLS main equipment was preserved new mapping relations and to the new mapping relations of described dual-homed devices advertise.
For example in Fig. 1, after PE-rs equipment is received the packet of sending from the user, described packet is added an innermost layer label, show that Frame is at the label that enters tunnel, the preceding place of fully-connected network (tunnel), described tunnel label can only be used for sign, and is not used in forwarding.Can use<LSR-ID, tunnel, VSI〉mapping relations come pw of unique identification, this scheme adopts three layers of label to transmit in the full core that connects of HVPLS, except original normal two-layer label of transmitting, also added an innermost layer label, when packet arrives PE-rs, except the study MAC Address, also need to learn this sign.In addition, PE1-rs can announce described mapping relations to MTU.
Step 502, break down the MAC Address that described dual-homed unit deletion is learnt from described dual-homed primary link when detecting described VPLS main equipment;
For example in Fig. 1, after pw1 broke down, MTU can delete the MAC Address of learning from pw1.
Step 503, described dual-homed equipment send the address and cancel message and described mapping relations to described VPLS stand-by equipment;
For example in Fig. 1, MTU can carry<LSR-ID, tunnel, VSI〉and MAC tabulation cancel message to PE2-rs. for empty LDP address
The MAC Address that step 504, described VPLS stand-by equipment are learnt from described dual-homed primary link according to described mapping relations deletion;
For example in Fig. 1, PE2-rs is according to the mapping relations<LSR-ID that is received, tunnel, VSI〉delete the MAC Address of learning from described dual-homed primary link.
Step 505, described VPLS stand-by equipment send the address to described other communication apparatus and cancel the mapping relations of message and described other communication apparatus and VPLS main equipment;
For example in Fig. 1, PE2-rs sends described mapping relations and the MAC tabulation is cancelled message for empty LDP address to other PE equipment of fully-connected network.
The MAC Address that step 506, described other communication apparatus are learnt from described dual-homed primary link according to the mapping relations deletion of being received.
Step 507, described dual-homed equipment and described communication apparatus are learnt again to the MAC Address of being deleted.
In addition, described dual-homed equipment and described communication apparatus are also learnt the unknown MAC Address except that the MAC Address of being deleted.
Embodiment three: can be with reference to figure 5, and Fig. 5 is the convergence method schematic diagram based on the dual-homed fully-connected network of VPLS of the embodiment of the invention three.
Step 601, VPLS main equipment are preserved the mapping relations with described VPLS stand-by equipment and each described other communication apparatus, and to the described mapping relations of described dual-homed devices advertise;
Step 602, break down the MAC Address that described dual-homed unit deletion is learnt from described main equipment when described VPLS main equipment;
Step 603, described dual-homed equipment transmission active/standby link switching message and described mapping relations are to described stand-by equipment;
For example in Fig. 3, can carry described masterslave switchover message by structure interface change message, described interface change message can send by tag distribution protocol.
Step 604, described VPLS stand-by equipment switch to active link according to described masterslave switchover message and described mapping relations with described dual-homed reserve link;
For example in Fig. 3, PE2-rs finds next jumping of outgoing interface by self LSR-ID and is the pw3 ' of PE1-rs, and the working flow of pw3 ' is switched to pw2, that is to say that at this moment, pw2 is an active link.
Step 605, described VPLS stand-by equipment send the mapping relations of masterslave switchover message and described other communication apparatus and VPLS primary link to described other communication apparatus;
Step 606, described other communication apparatus will switch to from described dual-homed reserve link from the message that described dual-homed primary link is transmitted according to the mapping relations of being received and transmit.
For example in Fig. 3, PE3-rs finds outgoing interface by self LSR-ID, and next is jumped and is the pw4 ' of PE1-rs, and the working flow of pw4 ' is switched to next jumping of outgoing interface is the pw7 of PE1-rs.PE4-rs finds outgoing interface by self LSR-ID, and next is jumped and is the pw6 ' of PE1-rs, and the working flow of pw6 ' is switched to next jumping of outgoing interface is the pw5 of PE1-rs.
In addition, specific embodiments of the invention also provide a kind of convergence device based on the dual-homed fully-connected network of VPLS, described fully-connected network is made up of communication apparatus, described communication apparatus comprises VPLS main equipment, VPLS stand-by equipment and other communication apparatus, dual-homed equipment is connected with the VPLS stand-by equipment with the VPLS main equipment by dual-homed main/slave link respectively, connects by link between the described communication apparatus, under the normal condition, dual-homed primary link is an active link
Embodiment four: with reference to figure 6, Fig. 6 is the convergence device schematic diagram based on the dual-homed fully-connected network of VPLS of the embodiment of the invention four; Comprise as lower module
First mapping relations are preserved module, the mapping relations that are used to preserve described dual-homed primary link and described VPLS stand-by equipment and described other communication apparatus;
Described mapping relations can obtain by following modules:
The link tags sending module, be used for sending link tags to described VPLS stand-by equipment and described other communication apparatus, described link tags is used for identifying respectively the link between described VPLS stand-by equipment and described other communication apparatus and the described dual-homed main equipment, and the packet of described link bearer is transmitted by described dual-homed primary link;
Mapping relations are preserved modules A, be used to preserve the mapping relations with described VPLS stand-by equipment and other communication apparatus, described mapping relations comprise the mapping relations of the self identification and the described VPLS stand-by equipment link corresponding label of described dual-homed primary link, described VPLS stand-by equipment; Mapping relations with the self identification that comprises described dual-homed primary link, described other communication apparatus and described other communication apparatus link corresponding labels.
Mapping relations announcement module A is used for the mapping relations of described mapping relations preservation modules A are announced to described dual-homed equipment, and preserves module by first mapping relations and preserve described mapping relations.
Whether fault detection module is used to detect described dual-homed primary link and breaks down;
The first address removing module, after being used to receive the fault message of described fault detection module, the MAC Address that deletion is learnt from described dual-homed primary link;
The message sending module is cancelled in first address, and after being used to receive the fault message of described fault detection module, the tabulation of structure MAC Address is cancelled message for empty address, and sends to described VPLS stand-by equipment;
The first mapping relations announcement module is used for the mapping relations of described mapping relations preservation module are sent to described VPLS stand-by equipment;
The second address removing module, be used to receive that the message of the message sending module and the first mapping relations announcement module is cancelled in first address after, the MAC Address that deletion is learnt from described dual-homed primary link;
The message sending module is cancelled in second address, after being used for cancelling message according to first address of being received, sends the MAC Address tabulation and cancels message to described other communication apparatus for empty address;
The second mapping relations announcement module, the mapping relations that are used for the described first mapping relations announcement module that will be received send to described other communication apparatus;
The three-address removing module, be used to receive that the message of the message sending module and the second mapping relations announcement module is cancelled in second address after, the MAC Address that deletion is learnt from described dual-homed primary link;
The MAC address learning module is used for the MAC Address of being deleted is learnt again.
Embodiment five: described VPLS is corresponding one by one with virtual switch instance, can be with reference to shown in Figure 7, and Fig. 7 is the convergence device schematic diagram based on the dual-homed fully-connected network of VPLS of the embodiment of the invention five; Comprise as lower module:
First mapping relations are preserved module, the mapping relations that are used to preserve described dual-homed primary link and described VPLS stand-by equipment and described other communication apparatus;
Described mapping relations can obtain by following modules:
Tunnel label adds module, is used for the packet of receiving is added tunnel label, and described tunnel label is used to identify described packet at the label that enters tunnel, the preceding place of described fully-connected network;
Mapping relations are preserved module B, are used to preserve the mapping relations of the sign of described tunnel label, described VPLS corresponding virtual exchange example and described communication apparatus;
Mapping relations announcement module B is used for the mapping relations of preserving to the described VPLS main equipment of described dual-homed devices advertise by described dual-homed primary link.
Whether fault detection module is used to detect described dual-homed primary link and breaks down;
The first address removing module, after being used to receive the fault message of described fault detection module, the MAC Address that deletion is learnt from described dual-homed primary link;
The message sending module is cancelled in first address, and after being used to receive the fault message of described fault detection module, the tabulation of structure MAC Address is cancelled message for empty address, and sends to described VPLS stand-by equipment;
The first mapping relations announcement module is used for the mapping relations of described mapping relations preservation module are sent to described VPLS stand-by equipment;
The second address removing module, be used to receive that the message of the message sending module and the first mapping relations announcement module is cancelled in first address after, the MAC Address that deletion is learnt from described dual-homed primary link;
The message sending module is cancelled in second address, after being used for cancelling message according to first address of being received, sends the MAC Address tabulation and cancels message to described other communication apparatus for empty address;
The second mapping relations announcement module, the mapping relations that are used for the described first mapping relations announcement module that will be received send to described other communication apparatus;
The three-address removing module, be used to receive that the message sending module and the second mapping relations announcement module are cancelled in second address after, the MAC Address that deletion is learnt from described dual-homed primary link;
The MAC address learning module is used for the MAC Address of being deleted is learnt again.
Embodiment six, can be with reference to figure 8, and Fig. 8 is the convergence device schematic diagram based on the dual-homed fully-connected network of VPLS of the embodiment of the invention six; Comprise as lower module:
First mapping relations are preserved module, the mapping relations that are used to preserve described VPLS main equipment and VPLS stand-by equipment and described other communication apparatus;
Whether fault detection module is used to detect described dual-homed primary link and breaks down;
The first address removing module, after being used to receive the fault message of described fault detection module, the MAC Address that deletion is learnt from described dual-homed primary link;
The first active/standby link switching message transmission module after being used to receive the fault message of described fault detection module, sends the first active/standby link switching message to described VPLS stand-by equipment;
The first mapping relations announcement module is used for described mapping relations are sent to described VPLS stand-by equipment;
The first active/standby link switchover module, be used to receive described first masterslave switchover message and described mapping relations after, described dual-homed reserve link is switched to active link;
The second active/standby link switching message transmission module is used for sending the second active/standby link switching message to described other communication apparatus according to the described first masterslave switchover chain circuit message;
The second mapping relations announcement module is used for described mapping relations are sent to described other communication apparatus;
The second active/standby link switchover module, be used to receive described second active/standby link switching message and described mapping relations after, will switch to from the message that described dual-homed primary link is transmitted and transmit from described dual-homed reserve link.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.