Embodiment
For solving the problem that prior art exists; In the embodiment of the invention; It is the professional peer (opposite end) of L2VPN/VPLS that PE equipment is still specified final purpose PE equipment, but PE equipment and middle backbone device (being core network) are set up LDP neighbours, handles the professional relevant mutual message of L2VPN/VPLS by backbone device; Then the professional relevant mutual message of L2VPN/VPLS is transmitted; Finally pass to purpose PE equipment, realize parameter negotiation and private network tags exchange between the PE, set up the L2VPN/VPLS business between the PE thereby let.PE only needs and backbone network is set up LDP neighbours like this, does not need all to set up LDP neighbours with all mutual PE equipment of other needs, significantly reduces the full number of connection between the PE equipment.
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
In the embodiment of the invention; Under the existing network framework; Increase the backbone device of one type of P equipment as MPLS, PE equipment can with these P equipment in one or morely set up LDP neighbours, through this type P equipment and the professional association message of the mutual L2VPN/VPLS of opposite end PE equipment.The P equipment that relates in following examples of the present invention refers in particular to the equipment of this character.
The professional association message of said L2VPN/VPLS is meant and is used for setting up between the PE equipment or the professional required message of dismounting L2VPN/VPLS; Between the PE equipment through this message can consultation parameter, exchange private network tags etc., between PE equipment, to set up or to remove L2VPN/VPLS professional.The professional association message of L2VPN/VPLS in the embodiment of the invention can include but not limited to: the message that message or the like L2VPN/VPLS need exchange is reclaimed in label request (label request) message, label mapping (label mapping) message, label withdraw (label recovery) message, labelrelease (label release) message, MAC (Media Access Control, media interviews control) address.
Fig. 2 shows the L2VPN/VPLS network architecture example that a kind of embodiment of the invention provides, and wherein, P1, P2, P3 and P4 are backbone network P equipment, is used for being responsible for transmitting the professional association message of L2VPN/VPLS of PE equipment room.The full connection or virtual full connection (being that logic connects entirely) set up LDP neighbours for one in PE device just and these P equipment between these P equipment, can and opposite end PE equipment between mutual L2VPN/VPLS business association message.
Based on the above-mentioned network architecture, the embodiment of the invention is expanded and is defined in the following aspects:
(1) LDP peer (the being PE equipment) information that connected of backbone network P exchanged between equipment, and record PE equipment and establish the annexation of the P equipment of LDP session with it.
During practical implementation; For the LDP peer information that realizes that the clearing house connects between the backbone device; The embodiment of the invention has defined a kind of notification packet that is used to notify LDP session UP, and wherein carry PE equipment and establish the incidence relation of the P equipment of LDP session with it, and when the LDP session status between backbone network P equipment and the PE equipment is operation; Other P equipment to being connected with self sends this notification packet, so that the peer information that the clearing house connects between backbone device.
With the network architecture shown in Figure 2 is example, specifies between PE1 and the P1 and sets up LDP session 1, sets up LDP session 2 between PE2 and the P4.After session 1 state reaches operaion (operation) state; P1 is assembled into the notification packet that is used for notifying LDP session UP with the peer information that connects on the own equipment (being the lsr-id of PE1 here); Duplicate three parts of messages; The message destination address is respectively the lsr-id of P2, P3, P4, and source address is the lsr-id of P1, and sends to P2, P3, P4 respectively.After P2, P3, P4 receive this notification packet, preserving a tabulation with the form of { PEn (lsr-id), Pn (lsr-id) }, is { PE1 (lsr-id), P1 (lsr-id) } here.In like manner, after session 2 states reached the operation state, P4 carried out similar processing, and the PE equipment as shown in table 1 and the contingency table of P equipment are all arranged on final P1, P2, P3 and the P4 equipment:
Table 1, PE equipment and P device association table
?PE?peer |
Related P equipment |
The list item state |
?PE1(lsr-id) |
?P1(lsr-id) |
Ready (state comprises: Ready, Idle) |
?PE2(lsr-id) |
?P4(lsr-id) |
Ready (state comprises: Ready, Idle) |
" list item state " field in the table 1 is represented the state of the LDP session of corresponding PE equipment and P equipment room, and wherein, " Ready " representes effective status, and " Idle " representes disarmed state.
(2) expansion L2VPN/VPLS is professional through the mutual content of message of LDP; Promptly when PE equipment arrives opposite end PE equipment through the professional association message of backbone network transmission L2VPN/VPLS; In this message, increase IE (information unit) newly; With the information (like purpose PE equipment lsr-id) of carrying purpose PE equipment, so that backbone network P equipment can be through inquiring about the contingency table of its PE equipment that writes down and P equipment, the P equipment that finds this purpose PE equipment to connect; And this message is transmitted to this purpose PE equipment through this P equipment, to carry out processing such as parameter negotiation, private network tags exchange.
During practical implementation; Can in the professional association message of the L2VPN/VPLS that PE equipment sends, increase the TLV (Type of peer-list (neighbor list) newly; Length and Value); Wherein carry source PE equipment lsr-id and purpose PE equipment lsr-id, and make P equipment can check, discern and handle this TLV.
When the CE equipment that connects on the PE equipment need be through L2VPN/VPLS professional with opposite end PE equipment on the CE equipment that is connected when carrying out intercommunication; Configuration L2VPN/VPLS is professional on these two PE equipment respectively; Specifying the opposite end mutually is L2VPN/VPLS peer; And to processes such as the relevant parameter negotiation of opposite end PE equipment initiation, private network tags exchanges, its process can be as shown in Figure 3.
Referring to Fig. 3, the schematic flow sheet of the professional association message of PE equipment room transmission L2VPN/VPLS that provides for the embodiment of the invention.Wherein, PE1 and PE2 be the professional peer of L2VPN/VPLS each other, and PE1 can comprise to the process that PE2 sends the professional association message of L2VPN/VPLS:
Step 301, PE1 sends the professional association message of L2VPN/VPLS to the current backbone network P equipment that establishes the LDP session with it, wherein carries the information of purpose PE equipment PE2, like the lsr-id of PE2.This message can increase IE on the basis of the professional association message form of existing L2VPN/VPLS, to carry the lsr-id of purpose PE equipment.
Step 302; After the LDP neighbours P equipment of PE1 receives this message; Lsr-id according to the PE2 that wherein carries; Inquire about the contingency table of its PE equipment that writes down and P equipment, and when inquiring the P equipment related (promptly establishing the P equipment of LDP session), this VPLS message is transmitted to this P equipment with purpose PE equipment with PE2.
Step 303 after the P equipment that establishes the LDP session with PE2 receives this message, sends it to the PE2 that establishes the LDP session with it.
After PE2 receives this message, carry out corresponding M PLS L2VPN business information according to this message and handle.This processing process can adopt existing mode to realize.
If PE2 also need return the professional association message (when receiving the label request message of PE1 like PE2) of L2VPN/VPLS to PE1; MPLS L2VPN business information such as parameter negotiation or private network tags exchange to accomplish are each other handled; Then processing procedure and the above-mentioned flow process in PE2 professional association message of transmission L2VPN/VPLS on the direction of PE1 is similar, repeats no more at this.
Consider that PE equipment can also adopt between existing mode and the opposite end PE equipment and carry out processing such as parameter negotiation or private network tags exchange; Promptly; Set up direct-connected or indirectly connected LDP neighbours with opposite end PE equipment; Carrying out information interaction through LDP session and opposite end PE equipment, so the embodiment of the invention is at the basic enterprising one-step optimization of above-mentioned flow process, with the existing implementation of compatibility.
Among the embodiment of this optimization, when the P equipment of PE equipment in specifying backbone network is peer (being LDP neighbours at configuration P equipment promptly), need be to carrying out mark, to come with LDP neighbours' difference of PE type with the LDP session of this LDP neighbours' foundation.As; Can increase designated parameter; Indicating this peer is the P equipment in the backbone network; Promptly these LDP neighbours are not direct-connected PE, neither common peer (indirectly connected PE), so that PE equipment is sending the professional association message of L2VPN/VPLS or when this P equipment receives the professional association message of L2VPN/VPLS, is carrying out handled to this backbone network P equipment.
During practical implementation, PE equipment can increase a keyword core in the order line of setting up LDP target peer (LDP purpose opposite end).PE equipment disposes this keyword when setting up the LDP session with backbone network P equipment, PE equipment adds a core label to this session simultaneously, to distinguish other LDP sessions.
Based on above configuration, the flow process of the professional association message of PE equipment room transmission L2VPN/VPLS after the optimization can be as shown in Figure 4.Wherein, PE1 and PE2 be the professional peer of L2VPN/VPLS each other, and PE1 can comprise to the process that PE2 sends the professional association message of L2VPN/VPLS:
Step 401, PE1 searches the direct-connected LDP session that whether exists with PE2, if exist, then changes step 402 over to; Otherwise change step 403 over to.
Step 402, PE1 adopts existing mode to send the professional association message of L2VPN/VPLS to PE2.
Step 403, PE1 searches whether there is the LDP session of setting up with backbone network P equipment, if exist, then execution in step 404~406, otherwise process ends.
Concrete, PE1 can search the LDP session that whether has the core mark, if exist, then show this LDP session be and backbone network P equipment between the LDP session of setting up.
Step 404~406; PE1 sends the professional association message of L2VPN/VPLS to the backbone network P equipment that establishes the LDP session with it; Wherein carry the sign of purpose PE equipment PE2, so that this backbone device, is searched the purpose backbone network P equipment that establishes the LDP session with PE2 according to the corresponding relation of its PE equipment safeguarded and backbone network P equipment; And this message being transmitted to PE2 through this purpose backbone network P equipment, this process is basic identical with step 301~302 shown in Figure 3.
Based on the network architecture shown in Figure 2, be example below, flow process shown in Figure 4 is described in detail with mutual label mapping message between the PE equipment.
Suppose that current C E1 need carry out intercommunication through L2VPN/VPLS business and CE4, the PE1 and the PE2 that connect CE1 and CE4 go up configuration L2VPN/VPLS business, specify peer mutually.After configuring, PE1 at first searches the direct-connected LDP session that whether exists with PE2, if exist, then sends label mapping message with existing mode, does not wherein carry the peer-list TLV of embodiment of the invention expansion; If do not exist, then search the LDP session that whether has the core mark, if exist; Then send label mapping message, wherein have VC-ID, VC TYPE to the opposite end of this session; Information such as VC LABEL and some interface parameterss; These information keep original realization constant, but newly-increased peer-list TLV, and the TYPE of this TLV can be the arbitrary value of TYPE conflict among the TLV of the current use of discord; VLUE fills out source peer address (lsr-id of PE1) and destination peer (lsr-id of PE2) address, then this label mapping message is sent to the LDP neighbours P1 equipment of oneself.Preferably, this newly-increased TLV is carried on first TLV of message, to make things convenient for P equipment inspection and processing.If the LDP session of band core mark does not exist yet, then return, be left intact;
P1 equipment is after receiving this message; Search whether have peer-list TLV in the message,, then in above table 1, search according to the address of destination peer if having; Behind the address that finds PE2 (lsr-id); Find that it is related with P4, search route this moment, and to find destination address be the route next jump of P4, re-assemblies this label mapping message and send to P4;
After P4 receives this label mapping message, search whether have peer-list TLV in the message, if having, then search LDP session on the current device, finding has the LDP session of setting up with PE2, redispatches to PE2 after re-assemblying this label mapping message;
PE2 peels off peer-list TLV, analytic message after receiving this label mapping message; Write down local VC-ID; Information such as VC TYPE, VC LABEL and interface parameters contrast local VC-ID and VC TYPE and interface parameters then, if mate with local; Then L2VPN/VPLS is connected UP, this process and original realization are consistent.
On the opposite direction, PE2 can send label mapping message equally and give PE1, and processing procedure is the same.
In another embodiment of the present invention; On the basis of above-mentioned Fig. 3 or flow process shown in Figure 4; The LDP session that has also designed between PE equipment and the P equipment is broken off and the informing mechanism that recovers; So that the LDP session status of PE equipment perception opposite end PE equipment, and in time handle the professional UP/DOWN of L2VPN/VPLS.For realizing this purpose; In the embodiment of the invention in above-mentioned Fig. 3 or flow process shown in Figure 4; Receive the professional association message of L2VPN/VPLS of the PE equipment transmission that has the LDP session with it when backbone network P equipment after, also set up the incidence relation of source PE equipment and purpose PE equipment in this locality, purpose backbone network P equipment is after receiving the professional association message of the next L2VPN/VPLS of other backbone network P device forwards; Also set up the incidence relation of source PE equipment and purpose PE equipment in this locality; When changing with the LDP session status between convenient backbone network P device discovery itself and the PE equipment, according to the PE equipment of setting up and the incidence relation of its opposite end PE equipment, and the incidence relation of PE equipment and P equipment; Notify the opposite end PE equipment of corresponding PE equipment with the situation of change of LDP session status, so that opposite end PE equipment carries out handled.
Be example still with mutual label mapping message between the network architecture shown in Figure 2 and the PE equipment; Receive the label mapping message of its LDP neighbours PE1 equipment transmission as P1 after; According to source peer among the peer-list TLV wherein and destination peer, set up the related list item of PE as shown in table 2; Receive the label mapping message of P1 transmission as P4 after,, set up source peer as shown in table 2 and the related list item of destination peer according to source peer among the message peer-list TLV and destination peer.On opposite direction, owing to established the related list item of PE1 and PE2 on P4 and the P1, so need not repeat foundation again.
Table 2, source peer and destination peer contingency table
?PE?peer |
Associate?PE?peer |
The list item state |
?PE1(lsr-id) |
PE2(lsr-id) |
Ready (state comprises: Ready, Idle) |
Wherein, the PE equipment associated with each other of record in the table 2, i.e. the PE equipment of the professional opposite end of L2VPN/VPLS each other." list item state " field in the table 2 is represented the professional annexation state of the L2VPN/VPLS of corresponding PE equipment room, and wherein, " Ready " representes effective status, and " Idle " representes disarmed state.
When PE2 and P4 have broken off LDP neighbours for a certain reason, corresponding LDP session status becomes the Idle state from the operation state, and the LDP session status notice flow process of its PE equipment and P equipment room can be as shown in Figure 5, comprising:
Step 501, the state in P4 the list item that the PE equipment of record on it is corresponding with PE2 in the P device association table (like table 1) is updated to the Idle state, and startup fault recovery overtime timer timer.
Step 502; P4 is according to the PE contingency table (like table 2) of record on it; Inquiring about the PE equipment related with PE2 is PE1, and searching the corresponding P equipment of PE1 according to the PE equipment of record on it with P device association table (like table 1) again is P1, and assembling is used to notify the notification packet of LDP session failure then; And this notification packet sent to P1, carry the lsr-id of PE2 in this notification packet.
Step 503 after P1 receives this notification packet, is searched the corresponding PE equipment and the related list item of P equipment according to the lsr-id of the PE2 that wherein carries, and the state of this list item is updated to the Idle state.Further, also can assemble a response message and give P4, receive the notice that LDP neighbours break off to inform P4.
Step 504, P1 through searching corresponding PE device association list item, inquires the PE1 related with PE2 according to the lsr-id of the PE2 that carries in the notification packet that receives, sends notification packet to PE1 then and is connected to notify PE1 to lose with PE2.
Step 505, PE1 receives that this notification packet writes down this state later on, and the L2VPN/VPLS service connected state is set is down.
Need to prove that for session status signalling trouble process, the operation that starts fault recovery overtime timer timer is optional.Also provide in the embodiment of the invention under the situation of corresponding fault recovery informing mechanism, just need to start fault recovery overtime timer timer.
If before the timer that starts on the P4 is overtime; LDP session between PE2 and P4 has recovered; Then P4 becomes Ready with the recovering state of the list item at the middle PE2 of PE equipment and P device association table (like table 1) place, finds the related PE equipment PE1 of PE2 according to PE device association table (table 2) then, finds the related P equipment P1 of PE1 according to the PE equipment and the contingency table (table 1) of P equipment again; Send the notification packet that is used to notify LDP session recovery to P1 then, carry the lsr-id of PE2 in this notification packet.After P1 receives this message; According to the lsr-id of PE2 the related list item recovering state of corresponding PE equipment and P equipment is become Ready; And can further assemble a response message and give P4, received that to inform P4 neighbours recover message, and sent notification packet and recover for PE1 with notice LDP session.After PE1 finds that the LDP between P4 and the PE2 recovers, initiate parameter negotiation, private network tags exchange process through Fig. 3 or flow process shown in Figure 4.
If after the timer that on P4, starts is overtime; The pairing LDP session of list item of Idle state (here being the LDP session between PE2 and P4) does not also recover in PE equipment and the P device association list item; Then P4 deletes this LDP neighbours PE2 relevant entries (comprising the corresponding list item that comprises PE2 in PE equipment and P device association table list item and the PE device association table); And notify all P unit deletion PE2 relevant entries that link to each other with P4 (to comprise PE equipment and P device association table list item; Further, for P1, also to delete the corresponding list item that comprises PE2 in the PE device association table).
In another embodiment of the present invention, on the basis of the foregoing description, backbone network P equipment is increased alternate device, so that when current P equipment breaks down, can in time switch to alternate device, continue to bear data exchanging function.
Concrete, be example with the network architecture shown in Figure 6, can on PE equipment, dispose a plurality of backbone network P equipment is LDP neighbours, and each LDP neighbour has different priority, and wherein limit priority P equipment is main equipment, and all the other are alternate device.Such as, on PE1, specifying P1, P3 respectively is LDP neighbours, priority is followed successively by 1,2, and (priority value is low more; Corresponding priorities is high more); Last P4, the P2 of specifying respectively of PE2 is LDP neighbours, and priority is followed successively by 1,2, in such cases; Priority is that 1 LDP neighbours P1 is main P equipment, and priority is that 2 LDP neighbours P equipment is backup P equipment.Certain backup P equipment can be configured to a plurality of, to realize redundant the connection, improves reliability.
LDP neighbours specify after the completion, and PE equipment is set up the LDP neighborhood with the P equipment that respectively is designated as LDP neighbours respectively.With aforementioned embodiment, in this process, when the LDP session status between P equipment and the PE equipment was operation, this P equipment sent notification packet to other P equipment that is connected with self, so that the peer information that the clearing house connects between backbone device.With previous embodiment different be; In the present embodiment; Because PE1 and a plurality of P equipment establish the LDP session; Therefore need in notification packet, carry the active and standby state of use of P equipment, so that there are the active and standby state of using of each P equipment of LDP session in each P equipment record and PE1 in the contingency table (table 1) of PE equipment that it is safeguarded and P equipment, so that the opposite end PE2 of PE1 is when PE1 transmission L2VPN/VPLS business association message; The P equipment that connects with PE2 can be according to that write down in the contingency table (table 1) of PE equipment and P equipment and the active and standby state of using corresponding each the P equipment of PE1; Therefrom select main P equipment, and transmit the professional association message of L2VPN/VPLS, thereby with P equipment message is transmitted to opposite end PE equipment through main to it with state.In like manner, because PE2 and a plurality of P equipment establish the LDP session, the process and the said process of the corresponding peer information that announcement P equipment is connected between P equipment are similar, repeat no more at this.
When PE1 need be when opposite end PE2 initiates the professional association message of L2VPN/VPLS, this message is sent to current main P1 with state with the realization exchanges data, said data comprise the related data of protocol level and control aspect etc.Ditto said; When PE2 initiates in the process of the professional association message of L2VPN/VPLS to opposite end PE1; The P equipment related with PE2 is selected with state according to the active and standby of P equipment related with PE1 that writes down in this table when selecting the corresponding purpose P equipment of PE1 according to the contingency table (table 1) of PE equipment and P equipment.In like manner, the process that PE1 initiates the professional association message of L2VPN/VPLS to opposite end PE2 similarly repeats no more at this.
Under current main situation about breaking down with the P1 of state, as shown in Figure 7, subsequent use P equipment replaces the master can comprise with the process that P equipment carries out exchanges data:
Step 701, after main P1 with state broke down, PE1 and P1 broke off neighborhood, and the P3 that PE1 takes second place to priority sends notification packet, serves as the main state of using to notify P3 current.
Step 702; After P3 receives this notification packet; With using status modifier to be stand-by state or invalid other state that waits with corresponding the main of P1 of PE1 in the contingency table (table 1) of PE equipment and P equipment, the opposite end PE equipment that inquires PE1 according to PE device association table (table 2) is PE2, inquires the P equipment that is connected with PE2 according to table 1 again and comprises P2 and P4; Send notification packet respectively to P2 and P4 then; Wherein carry the lsr-id of PE1, and to indicate current oneself be the main state of use, with the list item of PE1 correspondence in notice P2 and the P4 updating form 1.
Step 703; Receive the lsr-id of the P equipment of this notification packet according to the PE1 that carries in this message; Question blank 1, the stand-by state of the P3 that PE1 wherein is corresponding is updated to the main state of using, and the master of the pairing P1 of PE1 is updated to other states such as stand-by state or disarmed state with state.
Through said process, backup and the main P equipment of the accomplishing a P equipment later a series of transfer of data that break down are guaranteed the correct convergence of L2VPN.Handling process when other leads with the P device fails of state similarly repeats no more at this.
Whenever increasing a PE equipment, can repeat the above operation of the embodiment of the invention, thereby on corresponding P equipment, set up corresponding list item, to transmit corresponding message.
Can find out that through above description the embodiment of the invention can significantly reduce the full connection neighbours number between the PE equipment, reduce the performance requirement of PE equipment, improve Business Processing speed.In addition, the embodiment of the invention is applied to the MAC Address management process in the VPLS network, when the MAC Address inundation occurring, can reduces the number that PE device replication MAC Address reclaims message.
Based on identical technical conceive, the embodiment of the invention also provides a kind of backbone device.
Referring to Fig. 8 A, the structural representation of the backbone network P equipment that provides for the embodiment of the invention.This backbone network P equipment is generally the backbone network router.As shown in the figure, this equipment can comprise:
The first contingency table memory module 801 is used to store first contingency table that is used to write down PE equipment and connected backbone network P equipment;
First forwarding module 802; Be used for when this backbone network P equipment when connected PE equipment receives the professional relevant mutual message of L2VPN/VPLS; According to the opposite end PE device identification and first contingency table that carry said PE equipment in the professional relevant mutual message of said L2VPN/VPLS; Inquiry and said opposite end PE equipment purpose of connecting backbone network P equipment; And said message is transmitted to the purpose backbone network P equipment that inquires, so that this purpose backbone network P equipment sends to connected PE equipment with said message;
Second forwarding module 803; Be used for when this backbone network P equipment receives the professional relevant mutual message of L2VPN/VPLS that other backbone network P device forwards comes as purpose backbone network P equipment, said message being sent to connected PE equipment handling to carry out MPLS L2VPN business information.
Further, also record the connection status of PE equipment and P equipment room in the list item of first contingency table, shown in Fig. 8 B, also comprise the second contingency table memory module 804 and fault processing module 805 at this backbone network P equipment, wherein:
The second contingency table memory module 804 is used to store second contingency table that is used to write down PE equipment and its opposite end PE equipment;
Fault processing module 805; Be used for when detecting when breaking down with being connected of PE equipment; The pairing connection status of this PE equipment is set to invalidly in first contingency table, and the opposite end PE equipment of the PE equipment that breaks down according to this connection of second contingency table inquiry is inquired about the backbone network P equipment that said opposite end PE equipment is connected according to first contingency table; And, wherein carry the PE equipment mark that this connection is broken down to the backbone network P equipment transmission connection fault notification message that finds; Behind the connection fault notification message that receives the transmission of other backbone network P equipment; According to the PE equipment mark of carrying in this message; In first contingency table connection status corresponding with this PE equipment be set to invalid; According to the opposite end PE equipment of this PE equipment of second contingency table inquiry, being connected between its opposite end of PE equipment PE equipment that notice inquires and the backbone network P equipment broken down.
Further, fault processing module 805 also is used for: when detecting when breaking down with being connected of PE equipment, also start timer; Recover just often when under the also not overtime situation of timer, detecting the connection of breaking down, the pairing connection status of PE equipment that this connection recovers in first contingency table is set to effectively; This connects the opposite end PE equipment that recovers normal PE equipment according to the inquiry of second contingency table; Inquire about the backbone network P equipment that said opposite end PE equipment is connected according to first contingency table; And send connection to the backbone network P equipment that finds and recover notification packet, wherein carry this connection and recover normal PE equipment mark; After the connection that receives the transmission of other backbone network P equipment recovers notification packet; According to the PE equipment mark of carrying in this message; The connection status corresponding with this PE equipment is set to effectively in first contingency table; According to the opposite end PE equipment of this PE equipment of second contingency table inquiry, being connected between its opposite end of PE equipment PE equipment that notice inquires and the backbone network P equipment recovers normally.
Further, fault processing module 805 also is used for: when detecting when breaking down with being connected of PE equipment, also start timer; Do not recover normal if behind timer expiry, detect the connection of breaking down; Then delete the list item that should be connected the unrecovered PE equipment correspondence of fault in first contingency table and second contingency table; And, wherein carry the unrecovered PE equipment mark of this connection fault to other backbone network P equipment transmission remove entries notification packet that is connected with said backbone network P equipment; After receiving the list item deletion notification packet that other backbone network P equipment sends, delete first contingency table or/and the pairing list item of corresponding PE equipment in second contingency table.
Further, above-mentioned backbone network P equipment also can comprise the first contingency table maintenance module 806 and the second contingency table maintenance module 807, wherein:
The first contingency table maintenance module 806; Be used for when the connection status between this backbone network P equipment and the PE equipment is running status; Send notification packet to connected other backbone network P equipment; Wherein carry the PE equipment mark that self sign is connected with it, in first contingency table that it is safeguarded, add corresponding list item to notify said other backbone network P equipment; And; What receive that other backbone network P equipment sends is used for notifying after first contingency table adds the notification packet of corresponding list item; In first contingency table, add corresponding list item, said corresponding list item comprises backbone network P equipment mark and the PE equipment mark that from said notification packet, extracts;
The second contingency table maintenance module 807, be used to receive the professional relevant mutual message of said L2VPN/VPLS after, according to the source PE equipment that wherein carries and purpose PE equipment mark, the corresponding list item of interpolation in second contingency table.
In another embodiment; Two above P equipment in PE equipment and backbone network connect; Under the situation comprising host apparatus and stand-by equipment, record the active and standby state of using of corresponding backbone network P equipment in first contingency table in the list item corresponding with said PE equipment.Accordingly, the professional relevant mutual message of L2VPN/VPLS that receives from PE equipment of this backbone network P equipment be said PE to backbone network P equipment that said PE equipment is connected the message of main P equipment transmission with state.First forwarding module 802 when the purpose backbone network P equipment of selecting according to first contingency table, select with backbone network P equipment that said opposite end PE equipment is connected in lead backbone network P equipment with state.
Further, on the basis of the backbone network P equipment shown in Fig. 8 A, also comprise the second contingency table memory module 808 and active and standby hand-off process module 809, shown in Fig. 8 C, wherein:
The second contingency table memory module 808 is used to store second contingency table that is used to write down PE equipment and its opposite end PE equipment;
Active and standby hand-off process module 809; Be used for this backbone network P equipment current receive that connected PE equipment sends during for stand-by state be used for notification packet that update notifications is a host apparatus after; According to said notification packet; The stand-by state of this P equipment is updated to the main state of using in the list item that PE equipment described in first contingency table is corresponding; Use the P renewal of the equipment of state to be stand-by state corresponding former main of this PE equipment, inquire about the opposite end PE equipment of said PE, the P equipment that inquiry is connected with said opposite end PE equipment according to first contingency table again according to second contingency table; Send notification packet to the P equipment that inquires then; Wherein carry said PE equipment mark, the stand-by state of oneself in the list item that corresponding PE equipment is corresponding in first contingency table is updated to the main state of using, use the P renewal of the equipment of state to be stand-by state the former main of corresponding PE equipment correspondence with notice;
Wherein, when main backbone network P device fails with state, the PE equipment disconnection that is connected with this backbone network P equipment is connected with this P equipment, is used for the notification packet that update notifications is a host apparatus to the subsequent use backbone network P equipment transmission that it connected.
Further, also comprise the first contingency table maintenance module 810 and the second contingency table maintenance module 811 in the above-mentioned backbone network P equipment, wherein:
The first contingency table maintenance module 810; When being used for connection status between this backbone network P equipment and PE equipment and being running status; Send notification packet to connected other backbone network P equipment; Wherein carry the sign of self, the active and standby PE equipment mark that is connected with it with state of self, in first contingency table that it is safeguarded, add corresponding list item to notify said other backbone network P equipment; What receive that other backbone network P equipment sends is used for notifying after first contingency table adds the notification packet of corresponding list item; In first contingency table of self maintained, add corresponding list item; Said corresponding list item comprises backbone network P equipment mark and the PE equipment mark that from said notification packet, extracts, and the active and standby state of using of this backbone network P equipment;
The second contingency table maintenance module 811, be used to receive the professional relevant mutual message of said L2VPN/VPLS after, according to the source PE equipment that wherein carries and purpose PE equipment mark, the corresponding list item of interpolation in second contingency table.
The professional relevant mutual message of said L2VPN/VPLS comprises: label request message, label mapping message, label recovery message, label discharge message, media interviews control MAC Address reclaims message.
Need to prove; The embodiment of the invention is connected to example and describes to set up LDP between PE equipment and the backbone network P equipment; But those skilled in the art should be understood that the connection type between PE equipment and the backbone network P equipment does not constitute restriction to protection scope of the present invention.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.