Embodiment
Below in conjunction with accompanying drawing, the embodiment of communication means, device and the switch of a kind of Layer 2 virtual private network that the embodiment of the invention is provided is described in detail.
In the communication means of the Layer 2 virtual private network that the embodiment of the invention provides, adopt network topology to realize as Fig. 2, among Fig. 2, the first provider edge equipment PE1 forms Layer 2 virtual private network by the pseudo-circuit forward node S-PE and the second provider edge equipment PE2, the customer edge CE1 that is positioned at website A links to each other with PE1 by place in circuit, the customer edge CE2 that is positioned at website B links to each other with PE2 by place in circuit, wherein, what PE1 adopted is for example Border Gateway Protocol (BGP) of first procotol, and that PE2 adopts is for example tag distribution protocol LDP of second procotol; Perhaps, what PE1 adopted is the LDP agreement, and what PE2 adopted is bgp protocol.In the prior art, because PE1 and PE2 adopt different agreement, PE1 and PE2 can't realize intercommunication on chain of command, the communication means of the Layer 2 virtual private network that the embodiment of the invention provides, by the function of pseudo-circuit forward node S-PE is improved, realize above-mentioned PE1 and the PE2 intercommunication between on the chain of command.
The communication means of the Layer 2 virtual private network that the embodiment of the invention provides as shown in Figure 3, comprises the steps:
The first control signaling that first provider edge equipment sends in S301, the reception Layer 2 virtual private network;
S302, determine the first kind agreement of first control under the signaling;
The first kind agreement that S303, basis are determined, second provider edge equipment sends second corresponding with the described first control signaling in second type protocol relative with the described first kind agreement control signaling in Layer 2 virtual private network.
In order to be illustrated more clearly in the communication means of the Layer 2 virtual private network that the embodiment of the invention provides, below to describe with two kinds of situations respectively:
First kind of situation is that the first provider edge equipment PE1 adopts bgp protocol, and the second provider edge equipment PE2 adopts the LDP agreement;
Second kind of situation is that the first provider edge equipment PE1 adopts the LDP agreement, and the second provider edge equipment PE2 adopts bgp protocol.
The communication means of the Layer 2 virtual private network that the embodiment of the present application provides, need to solve the intercommunication problem of chain of command between PE1 and the PE2, in fact just solve between PE1 and the PE2 with pseudo-line set up with remove relevant control signaling for example multi-protocols can reach the problem of the intercommunication of (MP-REACH) message, multi-protocols unreachable (MP-UNREACH) message, label mapping message and label release message etc., the processing of other message is according to the processing of existing standard agreement.
At first the communication means to the Layer 2 virtual private network under first kind of situation describes.
In the dismounting flow process of setting up flow process and pseudo-circuit that specifically comprises pseudo-circuit between PE1 and the PE2 in such cases again.
Setting up on the chain of command by S-PE and PE2 at PE1 before the flow process of the pseudo-circuit of pseudo-circuit or dismounting, need need finish corresponding basic configuration to PE1, S-PE and PE2, for example: the relevant configuration (PE2 and S-PE are set to LDP peer) of the relevant configuration in the configuration of mpls protocol, public network tunnel, the relevant configuration of bgp protocol (PE1 and S-PE), LDP agreement.
As shown in Figure 4, in that to set up the step of setting up pseudo-circuit between PE-1 and the PE-2 on the chain of command as follows:
Step S401, PE1 send first multi-protocols to S-PE can reach message (MP-REACH), and can reach in these first multi-protocols and to carry the place in circuit interface status information in the message and be normal (UP).
In this step S401, PE1 the Interface status of judging local place in circuit be normally after, because the long-range PE equipment of the BGP example appointment that this locality is pre-configured is S-PE, carrying the interface circuit interface status information to the S-PE transmission is that normal first multi-protocols can reach information.
S402, S-PE receive after first multi-protocols can reach message, judge that first multi-protocols can reach the place in circuit interface status information of carrying in the message and be normal (UP) or fault (DOWN), when judging first multi-protocols and can reach the place in circuit interface status information of carrying in the message, carry out capability negotiation with PE1 for normal (UP).
S-PE is with after the PE1 capability negotiation is consistent, and on the one hand, S-PE continues to carry out following step S403 owing to bound the pseudo-line configuration of the LDP of PE2 in advance; On the other hand, S-PE can reach Network Layer Reachable Information (the Network Layer ReachabilityInformation that carries in the message according to first multi-protocols that receive, NLRI), and local pre-configured Network Layer Reachable Information, calculate first and go into label (IL1) and first outgoing label (OL1) and preservation, the process of calculating the label of coming in and going out can realize with reference to the computational methods of existing RFC 4761 definition.Do not repeat them here.
S403, S-PE to PE2 send with step S401 in first multi-protocols can reach corresponding first label mapping message that belongs to the LDP agreement of message;
S404, PE2 carry out capability negotiation with S-PE after receiving first label mapping message of S-PE transmission;
Among this step S404, because the long-range PE equipment of the LDP example appointment of the local configuration of PE2 is S-PE, PE2 carries out following step S405 after consensus with the PE capacity of equipment;
S405, PE2 generate second label mapping message according to the LDP configuration information of self, and second label mapping message is back to S-PE;
S406, S-PE receive second label mapping message from PE2, and according to the Network Layer Reachable Information of this locality configuration, generate second multi-protocols and can reach message, and second multi-protocols can be reached message are back to first provider edge equipment.
In this step S406, preferably, S402 is corresponding with step, also needs to carry out following step:
According to second label mapping message that receives, get access to second and go into label (IL2) and second outgoing label (OL2) and preservation.
Go into label and second outgoing label with first and carry out the label exchange, go into label and first outgoing label carries out the label exchange second;
Go into the label and second outgoing label (second outgoing label and second before the corresponding label exchange is gone into label respectively) in label exchange back first and be pressed into the public network tunnel label between S-PE and the PE1 before, create the first data forwarding list item and storage;
Go into the label and second outgoing label (first outgoing label and first before the corresponding label exchange is gone into label respectively) in label exchange back second and be pressed into the public network tunnel label between S-PE and the PE2 before, create the second data forwarding list item and storage.
The purpose of setting up the above-mentioned first data forwarding list item and the second data forwarding list item is, when the data surface of Layer 2 virtual private network carries out data forwarding, can transmit according to these two data forwarding-table items, for the intercommunication that also can realize data surface between PE1 and the PE2 provides condition.
Through above-mentioned steps S401~S406, the pseudo-circuit between PE1 and the PE2 is set up successfully.The public network tunnel is divided into two sections of PE1~S-PE and PE2~S-PE, and the pseudo-circuit (or virtual circuit) between PE1~S-PE is carrying on corresponding public network respectively.
As shown in Figure 4, as follows in the step of removing the pseudo-circuit between PE-1 and the PE-2 on the chain of command:
S407, PE1 send first multi-protocols to S-PE can reach message, and it is DOWN that these first multi-protocols can reach the place in circuit interface status information of carrying in the message;
In this step S407, when PE1 is malfunction at the Interface status of finding local place in circuit, can initiate to send that to carry the circuit interface state information be that first multi-protocols of fault can reach message to S-PE to S-PE;
S408, S-PE receive after first agreement that PE1 sends can reach message, judge that it is UP or DOWN that first multi-protocols can reach the place in circuit interface status information of carrying in the message, when judging first multi-protocols and can reach the place in circuit interface status information of carrying in the message and be DOWN, send with these first multi-protocols to PE2 and can reach corresponding first label recovery message of message.
In this step S408, preferably, also need to unload the data forwarding list item (comprising the first data forwarding list item and the second data forwarding list item) of when pseudo-circuit is set up, creating and preserving between first provider edge equipment and second provider edge equipment.
S409, PE2 return first label release message to S-PE after receiving first label recovery message of S-PE.
S410, S-PE receive first label release message that PE2 sends, and return the unreachable message of first multi-protocols (MP_UNREACH) to PE1.
Through above-mentioned steps S407~S410, promptly removed the pseudo-circuit of setting up between PE1 and the PE2.
At the i.e. first provider edge equipment PE1 employing of above-mentioned second situation LDP agreement, the second provider edge equipment PE2 adopts the situation of bgp protocol, the communication means of the Layer 2 virtual private network that the embodiment of the invention provides, as shown in Figure 5, comprise that following pseudo-circuit sets up flow process and pseudo-line disconnection flow process.
Similar with first kind of situation, before flow process as described in Figure 5, also comprise the step that to finish corresponding basic configuration to PE1, S-PE and PE2, comprise the configuration of mpls protocol, the relevant configuration in public network tunnel, the relevant configuration (PE1 and S-PE are set to LDP peer) of LDP agreement, the relevant configuration (PE2 and S-PE) of bgp protocol.
The flow process that pseudo-circuit is set up among Fig. 5 comprises the steps:
S501, PE1 send the 3rd label mapping message that belongs to the LDP agreement to S-PE;
In this step S501, obtain a pair of discrepancy label i.e. the 3rd discrepancy label (IL3) and the 3rd outgoing label (OL3) and preservation according to the 3rd label mapping message;
S502, S-PE receive the 3rd label mapping message that PE1 sends, and carry out capability negotiation with PE1;
S503, S-PE are after the capability negotiation success, according to the 3rd label mapping message that receives, and the Network Layer Reachable Information of local configuration, generate three multi-protocols that belong to BGP corresponding and can reach message, can reach the state information of carrying indication place in circuit interface UP in the message in the 3rd multi-protocols with the 3rd label mapping message; Send the 3rd multi-protocols to second provider edge equipment and can reach message.
S504, PE2 send the 4th multi-protocols to S-PE can reach message;
Because the 3rd multi-protocols can reach the message that message belongs to broadcast nature, S-PE needs passive wait PE2 to respond the 4th multi-protocols can reach message, on carrying out, do not have strict time order and function order between this step S504 and the above-mentioned steps S502, and separate between the step S502.In this step S504, PE2 sends the 4th multi-protocols that carry this Network Layer Reachable Information to S-PE and can reach message according to the Network Layer Reachable Information of the configuration of this locality.
After S505, S-PE receive the 4th multi-protocols and can reach message, return the 4th label mapping message to PE1.
In this step S505, preferably, S-PE can reach Network Layer Reachable Information in the message according to the 4th multi-protocols that receive, and the Network Layer Reachable Information of local configuration, calculates the 4th and goes into label (IL4) and the 4th outgoing label (OL4) and preservation; The computational methods that concrete computational methods can provide with reference to RFC4761 of the prior art.
And S406 is similar with step, goes into label and the 4th outgoing label with the 3rd and carries out the label exchange, goes into label and the 3rd outgoing label carries out the label exchange with the 4th;
Go into label and the 3rd outgoing label (label exchange the 4th outgoing label and the 4th is before gone into label) in label exchange back the 3rd and be pressed into the public network tunnel label between S-PE and the PE1 before, create the 3rd data forwarding list item and storage;
Go into label and the 4th outgoing label (label exchange the 3rd outgoing label and the 3rd is before gone into label) in label exchange back the 4th and be pressed into the public network tunnel label between S-PE and the PE2 before, create the 4th data forwarding list item and storage.
The purpose of setting up above-mentioned the 3rd data forwarding list item and the 4th data forwarding list item is equally, when the data surface of Layer 2 virtual private network carries out data forwarding, can transmit according to these two data forwarding-table items, for the intercommunication that also can realize data surface between PE1 and the PE2 provides condition.
After above-mentioned steps S501~S505, the pseudo-circuit between PE1 and the PE2 is set up successfully.
As shown in Figure 5, as follows in the step of removing pseudo-circuit between PE-1 and the PE-2 on the chain of command:
S506, PE1 send second label to S-PE and reclaim message;
This step S506 triggers when PE1 finds that local place in circuit interface status information breaks down;
S507, S-PE send the corresponding with it unreachable message of second multi-protocols to PE2 after second label that receives the PE1 transmission reclaims message; The pseudo-circuit between PE2 and the S-PE is cancelled in the unreachable message indication of these second multi-protocols;
S508, S-PE return second label release message to PE1.
Above-mentioned steps S506~S508 has finished the dismounting of pseudo-circuit between S-PE and the PE1 equally.
Based on same inventive concept, the embodiment of the invention also provides a kind of communicator device and pseudo-circuit forward node equipment of Layer 2 virtual private network, because this device is similar to the communication means of aforementioned realization Layer 2 virtual private network with the principle that equipment is dealt with problems, therefore the enforcement of this device and equipment can repeat part and repeat no more referring to the enforcement of method.
The communicating devices of the Layer 2 virtual private network that the embodiment of the invention provides as shown in Figure 6, comprising:
Receiving element 601 is used for receiving the first control signaling that Layer 2 virtual private network first provider edge equipment sends, and determines the first kind agreement under the first control signaling;
Transmitting element 602 is used for according to the first kind agreement of determining, second provider edge equipment sends second corresponding with the first control signaling in second protocol type relative with the first kind agreement control signaling in Layer 2 virtual private network.
Further, in the embodiment of the invention, above-mentioned receiving element 601 also is used to receive first multi-protocols that belong to Border Gateway Protocol (BGP) that first provider edge equipment sends and can reaches message; Judge that first multi-protocols can reach the place in circuit interface status information of carrying in the message and be normal (UP) or fault (DOWN);
Accordingly, transmitting element 602 is further used for when the judged result of receiving element 601 is normal (UP), according to the LDP configuration information of this locality configuration, sends first label mapping message that belongs to the LDP agreement to second provider edge equipment; And when judged result is fault (DOWN),, sends first label that belongs to the LDP agreement to second provider edge equipment and reclaim message according to the LDP configuration information of this locality configuration.
Further, receiving element 601 also is used for after transmitting element 602 sends first label mapping message, receives second label mapping message that the LDP configuration information according to himself that second provider edge equipment returns generates;
Transmitting element 602 also is used for the Network Layer Reachable Information according to this locality configuration, generates second multi-protocols and can reach message, and return first provider edge equipment.
Further, receiving element 601 also is used for receiving first label release message that second provider edge equipment returns after transmitting element 602 sends first label recovery message;
Transmitting element 602 also is used for returning the unreachable message of first multi-protocols that pseudo-circuit between first provider edge equipment and second provider edge equipment is removed in indication to first provider edge equipment.
As shown in Figure 6, the communicating devices of the Layer 2 virtual private network that the embodiment of the invention provides also comprises: the first forwarding-table item processing unit 603;
The first forwarding-table item processing unit 603, be used for judging that at receiving element 601 first multi-protocols can reach place in circuit interface status information that message carries for after normal, can reach Network Layer Reachable Information in the message according to first multi-protocols that receive, and the Network Layer Reachable Information of local configuration, calculate first and go into label and first outgoing label and preservation; And after second label mapping message that receiving element 601 receptions second provider edge equipment returns,, obtain second and go into label and second outgoing label and preservation according to second label mapping message; Go into label and second outgoing label with first and carry out the label exchange, go into label and first outgoing label carries out the label exchange second; Before the label and first outgoing label are gone in first after the label exchange, be pressed into the public network tunnel label between the pseudo-circuit forward node and first provider edge equipment, create the first data forwarding list item and storage; Before the label and second outgoing label are gone in second after the label exchange, be pressed into the public network tunnel label between the pseudo-circuit forward node and second provider edge equipment, create the second data forwarding list item and storage.
Further, receiver module 601 also is used to receive the 3rd label mapping message that belongs to LDP that first provider edge equipment sends;
Correspondingly, transmitting element 602, also be used for Network Layer Reachable Information according to the 3rd label mapping message that receives and local configuration, the 3rd multi-protocols that generation belongs to BGP can reach message, can reach the state information of carrying indication place in circuit (AC) interface normal (UP) in the message in the 3rd multi-protocols; Send the 3rd multi-protocols to second provider edge equipment and can reach message.
Further, receiver module 601 also is used to receive second label recovery message that belongs to LDP that first provider edge equipment sends;
Correspondingly, transmitting element 602 also is used to generate the unreachable message of second multi-protocols that belongs to bgp protocol, sends the unreachable message of second multi-protocols to second provider edge equipment.
Further, receiving element 601 also is used to receive the 4th multi-protocols that send from second provider edge equipment and can reaches message;
Correspondingly, transmitting element 602 also is used for can reaching message according to the 4th multi-protocols that receive, and sends the 4th label mapping message to first provider edge equipment.
Further, transmitting element 602 also is used for returning second label release message to first provider edge equipment after sending the unreachable message of second multi-protocols to second provider edge equipment.
As shown in Figure 6, the communicating devices of the Layer 2 virtual private network that the embodiment of the invention provides, also comprise: the second forwarding-table item processing unit 604, be used for after receiving element 601 receives the 3rd label mapping message of first provider edge equipment transmission, according to the 3rd label mapping message that receives, obtain the 3rd and go into label and the 3rd outgoing label and preservation; And receive after the 4th multi-protocols can reach message at receiving element, according to the Network Layer Reachable Information that can reach according to the 4th multi-protocols that receive in the message, and the Network Layer Reachable Information of local configuration, calculate the 4th and go into label and the 4th outgoing label and preserve; Go into label and the 4th outgoing label with the 3rd and carry out the label exchange, go into label and the 3rd outgoing label carries out the label exchange the 4th; Before label and the 3rd outgoing label are gone in label exchange back the 3rd, be pressed into and first provider edge equipment between the public network tunnel label, create the 3rd data forwarding list item and storage; Before label and the 4th outgoing label are gone in label exchange back the 4th, be pressed into the public network tunnel label between the pseudo-circuit forward node and second provider edge equipment, create the 4th data forwarding list item and storage.
The communicator of the above-mentioned Layer 2 virtual private network that the embodiment of the invention provides, in the specific implementation, can be not according to the division of above-mentioned functions module, for example can be divided into the LDP processing module, BGP processing module and message scheduling treatment progress module etc., the LDP processing module, BGP processing module and message scheduling treatment progress module are responsible for realizing the function of above-mentioned sending module and receiver module jointly, the LDP processing module is handled according to existing Martini mode, the BGP processing module is handled according to existing Kompella processing mode, message scheduling treatment progress module is carried out respective handling respectively according to the dissimilar message of LDP processing module or the reception of BGP processing module, and announcement LDP processing module or BGP processing module are sent the corresponding message that pseudo-circuit is set up or removed, send by LDP processing module or BGP processing module again, certainly, in the specific implementation, can also adopt the division implementation of other functional modules, the embodiment of the invention is not done qualification to this.
The embodiment of the invention also provides a kind of pseudo-circuit forward node equipment, has comprised the communicator of the above-mentioned Layer 2 virtual private network that the embodiment of the invention provides in this puppet circuit forward node equipment.
The communication means of a kind of Layer 2 virtual private network that the embodiment of the invention provides, device and pseudo-circuit forward node equipment, when receiving the first control signaling that first provider edge equipment sends in the Layer 2 virtual private network, determine the affiliated first kind agreement of this first control signaling; According to the first kind agreement of determining, second provider edge equipment in Layer 2 virtual private network sends second corresponding with the first control signaling in second type protocol relative with the first kind agreement control signaling.By said method, can adopt under the situation of different network protocol at two provider edge equipments of Layer 2 virtual private network, realize the intercommunication of chain of command between two provider edge equipments.
In addition, the communication means of the Layer 2 virtual private network that the embodiment of the invention provides, device and pseudo-circuit forward node equipment, can reach Network Layer Reachable Information in the message according to the multi-protocols that receive, and the Network Layer Reachable Information of local configuration, calculate come in and go out label and outgoing label and preservation, then according to the label mapping message that receives, obtain another to going into label and outgoing label, go into label and second pair of outgoing label exchanges with first pair, first pair of outgoing label and second pair are gone into label to be exchanged, before going into label and outgoing label, two couple after the exchange is pressed into corresponding public network label again, create forwarding-table item between first provider edge equipment and the pseudo-circuit forward node and the forwarding-table item between second provider edge equipment and the pseudo-circuit forward node, on the chain of command for PE1 and PE2 between the intercommunication of data surface condition is provided.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.