Summary of the invention
In view of this, the present invention provides the device of a kind of Virtual Private LAN Service VPLS link switching,
The user side service provider network edge equipment being applied to be configured with primary link and standby link information is i.e. controlled
On user PE processed, described device includes:
List item recycling module, for cutting between the primary link and standby link of access carrier network
Before changing, transmitting medium access control MAC addresses reclaims message and uses to the opposite end of carrier network opposite side
Family PE, described MAC Address reclaims in message and carries user's MAC address set and virtual link PW ID,
The peer user PE being concurrently accessed primary link and standby link for instruction deletes and described user MAC ground
The mac address forwarding table item that location set is corresponding, and forbid real with the described corresponding virtual switch of PW ID
MAC address learning is carried out in example VSI;
Switching control module, reports for receiving reclaiming for this address of described peer user PE transmission
After the recovery response message of literary composition, carry out link switching.
The present invention also provides for a kind of Virtual Private LAN Service VPLS link auxiliary switching device, application
On user side service provider network edge equipment i.e. user PE, described user PE is concurrently accessed main chain
Road and standby link, described device includes:
Reclaim more new module, control, for receiving, the MAC Address recovery message that user PE sends, obtain
Described MAC Address reclaims the user's MAC address set in message and PW ID, deletes described use
The mac address forwarding table item that family MAC Address set is corresponding, and forbid corresponding with described PW ID
Carry out MAC address learning in VSI, described control user PE is configured with primary link and standby link letter
Breath;
Response feedback module, reclaims the recovery response message of message to described control for sending for this address
User PE processed.
The present invention also provides for a kind of Virtual Private LAN Service VPLS link switch-over method, is applied to join
The user side service provider network edge equipment being equipped with primary link and standby link information i.e. controls user
On PE, described method includes:
Before switching between the primary link and standby link of access carrier network, send MAC ground
Location is reclaimed message and is reclaimed in message to the peer user PE of carrier network opposite side, described MAC Address
Carry user's MAC address set and PW ID, be concurrently accessed primary link and standby link for instruction
Peer user PE delete the mac address forwarding table item corresponding with described user's MAC address set,
And forbid carrying out MAC address learning in the described corresponding VSI of PW ID;
After receiving the recovery response message reclaiming message for this address that described peer user PE sends,
Carry out link switching.
The present invention also provides for a kind of Virtual Private LAN Service VPLS link auxiliary changing method, application
On user side service provider network edge equipment i.e. user PE, described user PE is concurrently accessed main chain
Road and standby link, described method includes:
Receive and control the MAC Address recovery message that user PE sends, obtain described MAC Address and reclaim
User's MAC address set in message and PW ID, delete described user's MAC address set pair
The mac address forwarding table item answered, and forbid with carry out in the described corresponding VSI of PW ID MAC ground
Location learns;
Send and reclaim the recovery response message of message to described control user PE for this address.
From above technical scheme, before the present invention switches between primary link and standby link, logical
Cross the control user PE peer user PE directly with carrier network opposite side to interact, cut at link
Guarantee peer user PE success deleting MAC address list item before changing, and then reduce operator to greatest extent
The Network Packet Loss phenomenon that network occurs during link switching operates, improves the service of carrier network
Quality, promotes Consumer's Experience.
Detailed description of the invention
Refer to a kind of VPLS typical case's networking diagram shown in Fig. 1.Wherein, the relational language related to has:
CE(Customer Edge, user network boundary device): there is interface directly and SP (Service
Provider, service provider) it is connected.CE can be router or switch, it is also possible to is a main frame.
The CE " perception " existence less than VPN.
PW (Pseudo Wire, virtual link): by a pair unidirectional VC LSP (Virtual in opposite direction
Circuit Label Switched Path, virtual-circuit label switching path) composition.
VPLS is the accessibility learning to provide message by source MAC.Each PE plant maintenance
One bridge mac address table.
In the networking schematic diagram shown in Fig. 1, CE1 and CE2 accesses respectively by the way of VLAN
PE3;Set up PW between PE3 with PE1, PE2 respectively to be connected, wherein PE2 alternately link;
PE1, PE2 set up PW respectively and connect with PE4;CE3 is connected to network by PE4.When chain occurs
When road fault or PW down fall, it is necessary to carry out the switching between primary link and standby link, in order to
Continue to provide the user with vpn service.As a example by being switched to primary link from standby link, from CE3 to CE1
The path of message transmissions just by original CE3--> PE4--> PE2--> PE3--> CE1, become
CE3--> PE4--> PE1--> PE3--> CE1, this is accomplished by PE2 and PE4 more new bridge mac address table,
Since meet the message after link switching and forward.
Specifically, at present link switching when, it is common that PE3 carry out while PW renewal to from
Oneself neighbours PE2 sends MAC Address and reclaims message, after PE2 receives this MAC Address recovery message
Delete the MAC address entries oneself acquired, and the neighbours PE4, PE4 being sent to it deletes and oneself acquire
After MAC address entries, become broadcast for mailing to the message of CE1 from CE3, wait the message come from PE1
Update list item after carrying out MAC address learning and become clean culture.
In this process, it has been required for necessarily due to the triggering of MAC Address reclaim mechanism and message
Time, within the time that this is of short duration, all CE3 are sent to the message of CE1 through PE4, also
It is to walk standby link CE3--> PE4--> PE2--> PE3--> CE1, and now PE3 has been carried out main chain
Switching between road and standby link, standby link has been the state that down falls, all from standby during this
The message of link transmission all can all be discarded, thus affects Consumer's Experience.
The problem existed for such scheme, the present invention provides a kind of VPLS link switching device, this dress
Put as a logic device, its user side service being applied to be configured with primary link and standby link information
Provider network edge device i.e. controls on user PE.The control running carrier as this logic device
User PE, its hardware environment the most all includes CPU, internal memory and nonvolatile memory,
Certainly the hardware such as various forwarding chips it are also possible that.Refer to Fig. 2, described device is at logical layer bread
Include: neighbours set up module, list item recycling module and switching control module.
The present invention also provides for a kind of VPLS link auxiliary switching device, this device as a logic device,
It applies on user side service provider network edge equipment i.e. user PE, and described user PE connects simultaneously
Enter primary link and standby link.As the user PE running carrier of this logic device, its hardware environment is usual
The most all include CPU, internal memory and nonvolatile memory, be certainly also possible that various forwarding core
The hardware such as sheet.Refer to Fig. 3, described device includes at logic level: reclaim more new module and sound
Answer feedback module.
Refer to Fig. 4, in one embodiment of the invention, described VPLS link switching, auxiliary
Switching device performs following steps in running:
Step 101, before switching between the primary link and standby link of access carrier network, with
The peer user PE of carrier network opposite side sets up the long-range neighborhood of tag distribution protocol LDP, and
LDP agreement and peer user PE is used to carry out message interaction.This step is by the neighbours controlling user PE
Establishment module performs.
Specifically, refer to the networking schematic diagram shown in Fig. 1, described control user PE is PE3, PE3
On be configured with primary link (PE3-> PE1-> PE4) and the information of standby link (PE3-> PE2-> PE4),
The peer user PE of carrier network opposite side is PE4.The present invention is not intended to primary link and standby link
Switching direction, illustrates below as a example by be switched to primary link by standby link.PE3 is performing standby link
Before the switching of primary link, PE3 first sets up long-range neighborhood with PE4.Specifically, in VPLS,
PE3 can take LDP(Label Distribution Protocol, tag distribution protocol), RSVP
(Resource Reservation Protocol, RSVP), BGP(border gateway
Protocol, Border Gateway Protocol) etc. agreement come and PE4 sets up long-range neighborhood.Owing to LDP assists
View is to be specifically used in MPLS realize label distribution, it is preferable that PE3 Yu PE4 sets up long-range LDP
Neighborhood, and use LDP agreement and PE4 to carry out message interaction.Specifically, PE3 selection one can
Described long-range LDP neighborhood, such as standby link (PE3-> PE2-> PE4) is set up with PE4 with path.
Use original agreement, avoid to extend the inconvenience that other agreements are brought.Carry out with standby link at primary link
Before switching, PE3 learns the address of long-range PE4 according to configuration in advance, and then sets up neighborhood therewith.
Step 102, by setting up the link of LDP agreement, sends MAC Address and reclaims message to operation
The peer user PE of business's network opposite side, described MAC Address reclaims in message and carries user MAC
Address set and PW ID, the peer user PE being concurrently accessed primary link and standby link for instruction deletes
Except the mac address forwarding table item corresponding with described user's MAC address set, and forbid with described
MAC address learning is carried out in PW ID correspondence VSI.This step is reclaimed by the list item controlling user PE
Module performs.
Step 103, receives and controls the MAC Address recovery message that user PE sends, obtain described MAC
The user's MAC address set in message and PW ID are reclaimed in address, delete described user MAC ground
The mac address forwarding table item that location set is corresponding, and forbid carrying out in the described corresponding VSI of PW ID
MAC address learning.This step is performed by the recovery more new module of user PE.
For avoiding primary link to occur the problem of message packet loss with standby link during switching, the present invention is arranged
Control the PE3 in user PE, i.e. networking schematic diagram shown in Fig. 1, before the handover, directly transmit MAC
Address is reclaimed message and is carried out MAC Address recovery to PE4, notice PE4.Specifically, described MAC
Address is reclaimed message and is carried user's MAC address set and PW ID, described user's MAC address
Set includes being connected with PE3 the MAC Address of user, owing to primary link and standby link are at same VSI
Under (Virtual Switch Instance, virtual switch instance), so described PW ID can be switching
The PW ID of Target Link, it is also possible to be the PW ID of presently used MESSAGE EXCHANGE link.PE4 deletes
Except the mac address forwarding table item that described user's MAC address set is corresponding, and forbid with described PW
MAC address learning is carried out in ID correspondence VSI.Described MAC Address reclaims message foundation LDP agreement,
The Ldp Label Withdraw Message message shown in Fig. 5 can be taked, wherein, it is only necessary at this
Spreading parameter in message, i.e. increases four optional parameters Optional Parameters newly:
At described user's MAC address set MAC TLV field in messages, described MAC TLV
Form as shown in Figure 6, including due to link switching PE4 need delete forwarding-table item MAC ground
Location.In practical implementations, for the ease of configuration, it will usually specify the MAC Address in MAC TLV
For NULL, i.e. delete all mac address forwarding table items under described PW ID correspondence VSI.
Form such as Fig. 7 and Fig. 8 institute of the FEC TLV in Ldp Label Withdraw Message message
Show, wherein said FEC Element carries PW id information.According to described PW ID, PE4 is permissible
Judge the VSI corresponding for PW ID with this, and then forbid carrying out MAC address learning in this VSI.
This is because now link does not the most switch over, if being not prohibited by MAC address learning, then delete
After mac address forwarding table item, described PE4 still can learn to go out, from PE2, the message sended over.Prohibit
Only after MAC address learning, PE4 becomes broadcast.
Step 104, sends and reclaims the recovery response message of message to controlling user PE for this address.This
Step is performed by the response feedback module of user PE.
Step 105, receives the recovery response report reclaiming message for this address that peer user PE sends
Wen Hou, carries out link switching.This step is performed by the switching control module controlling user PE.
Preferably due to the unreliability that network transmission exists, the present invention is additionally provided with insurance mechanism, can
To be pre-configured with the time controlling the user PE described recovery response message of wait according to networking structure.If
The most described switching control module does not receive the recovery response report that peer user PE sends
Literary composition, the most described list item recycling module, resend described MAC Address and reclaim message to peer user PE.
It is also possible to be pre-configured with control user PE to resend the number of times of MAC Address recovery message.Ratio
As: 3 times.If after controlling 3 MAC Address recovery messages of user PE transmission, be all not received by
The recovery response message that peer user PE sends, then acquiescence peer user PE the most successfully deletes MAC
Address repeat listing, thus carry out link switching.
Further, to be on the safe side, described list item recycling module sends MAC Address and reclaims message
Give the neighbor device on switching Target Link.As a example by the networking diagram shown in Fig. 1, if PE3 is predetermined
Time and predetermined sending times after, the most do not receive PE4 send recovery response message, that
PE3 acquiescence PE4 success deleting MAC address forwarding-table item, route PE2 by chain and is switched to
PE1, meanwhile, identical with existing implementation, PE3 also can send MAC Address and reclaim message
Delete the mac address forwarding table item of oneself to PE2, PE2, then described MAC Address can be reclaimed
Message is transmitted to PE4, PE4 and reclaims message deletion MAC according to the described MAC Address that PE2 sends
Address repeat listing.If there is no successful deleting MAC address forwarding-table item before PE4, then now
Delete.If the success deleting MAC address forwarding-table item of the instruction according to PE3 before PE4,
So because the MAC address learning of primary link can be re-started after now deleting, so to whole chain
The message on road forwards also will not produce impact.
Step 106, after completing link switching, sends and relearns message to peer user PE, described
Relearn and message carries PW ID, be used for indicating peer user PE again corresponding with this PW ID
VSI in carry out MAC address learning.This step is performed by the list item recycling module controlling user PE.
Step 107, receive control user PE transmission relearns message, relearns report described in acquisition
PW ID in literary composition, carries out MAC address learning again in described VSI corresponding for PW ID.This step
Suddenly performed by the recovery more new module of user PE.
Step 108, sends and relearns the study response message of message to controlling user PE for this.This
Step is performed by the response feedback module of user PE.
It can be seen from the above descriptions that switch between the primary link and standby link of access carrier network
Before, the present invention hands over by controlling the user PE peer user PE directly with carrier network opposite side
Mutually, before link switching, guarantee peer user PE success deleting MAC address list item, and then to greatest extent
Ground reduces the Network Packet Loss phenomenon that carrier network occurs during link switching operates, and improves operation
The service quality of business's network, promotes Consumer's Experience.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in
Within the scope of protection of the invention.