CN101345715A - MAC address learning method and system based on VPLS dual-homing network - Google Patents

MAC address learning method and system based on VPLS dual-homing network Download PDF

Info

Publication number
CN101345715A
CN101345715A CNA2008102139225A CN200810213922A CN101345715A CN 101345715 A CN101345715 A CN 101345715A CN A2008102139225 A CNA2008102139225 A CN A2008102139225A CN 200810213922 A CN200810213922 A CN 200810213922A CN 101345715 A CN101345715 A CN 101345715A
Authority
CN
China
Prior art keywords
mac address
virtual link
opposite end
unit
timer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008102139225A
Other languages
Chinese (zh)
Other versions
CN101345715B (en
Inventor
杨扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2008102139225A priority Critical patent/CN101345715B/en
Publication of CN101345715A publication Critical patent/CN101345715A/en
Application granted granted Critical
Publication of CN101345715B publication Critical patent/CN101345715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides an MAC address learning method based on VPLS and a system, wherein VPLS dual homing network includes a plurality of renting units and a plurality of PEs, and a main virtual link and a standby virtual link are arranged between the plurality of renting units and opposite terminals PEs connected to a first PE of CE. The method comprises: the first PE timely acquires local MAC address, and transmits the acquired MAC address to all opposite terminals PEs of the first PE; each opposite terminal PE respectively uses corresponding virtual link to receive and store MAC address, under the condition that the virtual link for receiving the MAC address is not used for flow transmission, binds the MAC address to the virtual link of the MAC address and transmits the MAC address to the plurality of renting units; the plurality of renting units receive and store the MAC address, and binds the MAC address to the virtual link for receiving the MAC address. According to the invention, the condition of flow broadcast after switch of the main/standby virtual link is avoided.

Description

MAC address learning method and system based on the VPLS dual-home network
Technical field
The present invention relates to the communications field, particularly, relate to a kind of medium access control (Media Access Control abbreviates MAC as) address learning method and system based on virtual special local area network service (Virtual Private LAN Service abbreviates VPLS as) dual-home network.
Background technology
The virtual special local area network service is to be used for realizing on public network two-layer VPN (the Virtual Private Network of multiple spot to multiple spot, Virtual Private Network) virtual private network technology of function, it can make the user who is in different websites connect by wide area network or metropolitan area network, form a virtual local area network (LAN) thus, each VLAN is called a VFI (VirtualForward Instance, Virtual Switch Instance) or VSI (Virtual Switch Instance, virtual switch instance).
Particularly, the VPLS technology is based upon MPLS (Multi-Protocol LabelSwitching, the multi protocol label exchange) on the infrastructure of network, mainly comprise: PE (Provider Edge, provider edge equipment) router, P (Provider, operator's equipment), LDP (Label Distribution Protocol, tag distribution protocol) and LSPTunnel (Label Switch Path Tunnel, the label switched tunnel), wherein, pe router has and safeguards link information with its two layers of transparent transmissions that directly link to each other, and the P router only is responsible for carrying out label and is specially sent out.Pe router is responsible for VPN client's general data bag is marked and remove mark, by the VC (Virtual Circuit, virtual circuit) between the PE packet is sent to the opposite end then, and pe router must be an edge labelling switch router.
As shown in Figure 1, be the general network environment schematic diagram of VPLS.Wherein, terminal 1, terminal 2, terminal 3 are linked into respectively on three different PE equipment, between these three PE equipment by a MPLS network mutual communication that is structured on the wide area network.Three PE equipment are in the same VPLS territory, and opposite end (peer) each other between any two, and by AC (Attachment Circuit, access link) three terminals are linked in this VPLS territory.Like this, three station terminal equipment just are in the virtual local area network (LAN), can be as being connected same the communication on the switch.Introduce the broadcasting phenomenon in the VPLS territory below.
In the VPLS territory, the forwarding of packet is based on that the target MAC (Media Access Control) address of packet carries out.When terminal 1 when terminal 2 sends packets, if PE1 equipment is not known the outgoing interface of target MAC (Media Access Control) address, then PE1 equipment can send to PE2 equipment and PE3 equipment with this packet with the form of broadcasting, the source MAC of this packet under the PE1 equipment records then is as the MAC Address of local CE; PE2 and PE3 receive after this packet, note source MAC too, different with PE1 is, because the not local CE of this packet sends, but opposite end (peer) (being PE1 equipment) forward, so be to be recorded as the remote MAC Address.When processing and the said process of terminal 2 when terminal 1 sends packet similar.Final result is that the MAC Address of the last record of PE1 terminal 1 is a local mac address, and the MAC Address of terminal 2 is the remote MAC Address; The MAC Address of the last record of PE2 terminal 2 is a local mac address, and the MAC Address of terminal 1 is the remote MAC Address.When transmitting the packet of identical purpose MAC once more afterwards, just phenomenon can not appear broadcasting again.
In order to improve the reliability of network, introduced double-attaching technology, it can provide link backup, node backup and load sharing function, is the protection mechanism that present operator extensively adopts.Double-attaching technology to VPLS in RFC 4762 has carried out detailed networking explanation, is briefly described below in conjunction with Fig. 2.
MTU-s (Multi-Tenant Unit, rent the unit more) set up two PW (Pseudo wire with PE1-rs and PE3-rs respectively, virtual link), as can be seen from Figure 2, wherein one is the main PW that uses, connect PE1-rs (PE with two layers of function of exchange represents with PE-rs), other one is standby PW, connects PE3-rs.When the master disconnected with PW or abnormal conditions occur, MTU-s switched to flow on the standby PW automatically.Because PE1-rs can the main PW fault of using of perception, and PE2-rs can't perception, so switching in a period of time of standby PW, MAC on the PE2-rs (Media Access Control, the medium access control) outlet of transmitting still connects PE1-rs, causes flow to arrive PE1-rs and can't continue afterwards to transmit.In order to address this problem, defined a kind of TLV (TypeLength Value, type lengths values) among the RFC 4762, be MAC list TLV, types value is 0x0404, and this TLV is included in the withdrawal message of LDP, comprising the d/d MAC Address of all needs.
Show the structural representation of withdrawal message as Fig. 3, comprising: type (Type), length (Length), and the d/d MAC Address of a plurality of needs comprise MAC address#1, MAC address#2, MAC address#n etc.
The withdrawal message that MTU-s sends as shown in Figure 3 by standby PW after the main PW of using fault arrives PE3-rs, and PE3-rs is forwarded to PE1-rs and PE2-rs again, promptly removes corresponding M AC list item after PE1-rs and PE2-rs receive.
Even carry out aforesaid operations, when switching, still can there be some problems.For example, in Fig. 2, MTU-s just inserts a pair of PE, be connected with standby PW with PW with main respectively, but MTU-s also may be linked into the 3rd even more PEn-rs, as shown in Figure 4.In this case, if above-mentioned PE is in same VPLS territory, then when main break down with PW switch to standby PW after, MTU-s is before relearning the far-end MAC Address, packet will send in the mode of broadcasting all with PE that MTU-s is connected on, waste bandwidth so not only, and influence information security.
Summary of the invention
The present invention aims to provide a kind of learning of media accessing control address method and system based on virtual special local area network service dual-home network, to solve in virtual special local area network service dual-home network, active/standby PW takes place switch the problem that the back flow is broadcasted.
According to an aspect of the present invention, a kind of media access control MAC address learning method based on virtual special local area network service VPLS dual-home network is provided, wherein, comprise in the VPLS dual-home network and rent unit and a plurality of provider edge equipment PE more, rent the unit more and be connected to be provided with between the opposite end PE of a PE of customer edge CE main with virtual link and standby virtual link, method comprises: a PE regularly obtains local mac address, and the MAC Address of obtaining is sent to all opposite end PE of a PE; For each opposite end PE, use corresponding virtual link to receive respectively and the preservation MAC Address, under the virtual link that receives MAC Address is not used for situation that flow transmits, MAC Address is tied to the virtual link that receives MAC Address, and MAC Address is transmitted to rents the unit more; Rent the unit more and receive and preserve MAC Address, and MAC Address is tied to the virtual link that receives MAC Address.
According to another aspect of the invention, a kind of MAC address learning method based on the VPLS dual-home network is provided, wherein, comprise MTU-s and a plurality of PE in the VPLS dual-home network, it is main with virtual link and standby virtual link that MTU-s and being connected to is provided with between the opposite end PE of a PE of CE, method comprises: a PE regularly obtains local mac address, and the MAC Address of obtaining is sent to all opposite end PE of a PE; For each opposite end PE, use corresponding virtual link to receive respectively and the preservation MAC Address, MAC Address is tied to the virtual link that receives MAC Address, the master is not used in virtual link under the situation of flow forwarding, MAC Address is transmitted to rents the unit more; Rent that the unit receives and preserve MAC Address more, and MAC Address is tied to the master who receives MAC Address uses virtual link.
In accordance with a further aspect of the present invention, a kind of MAC address learning system based on the VPLS dual-home network is provided, comprise MTU-s and a plurality of PE, wherein, it is main with virtual link and standby virtual link that MTU-s and being connected to is provided with between the opposite end PE of a PE of CE, system also comprises: acquisition module, be arranged in a PE, and be used to obtain local mac address; Notification module is arranged in a PE, is used for the MAC Address that acquisition module obtains is notified the opposite end PE of a PE; First receiver module is arranged in the opposite end PE of a PE, is used for receiving and the record MAC Address; First binding module is arranged in the opposite end PE of a PE, is used for MAC Address is tied to the virtual link that receives MAC Address; Forwarding module is arranged in the opposite end PE of a PE, is used for MAC Address is forwarded to renting the unit more; Second receiver module is positioned at and rents the unit more, is used to receive and write down the MAC Address from forwarding module; Second binding module is positioned at and rents the unit more, is used for MAC Address is tied to the virtual link that receives MAC Address.
By technique scheme one of at least, by the PE that makes connecting terminal the local mac address that regularly obtains is sent to the opposite end, and be forwarded to by its opposite end and rent the unit more, make rent more the unit main with virtual link failure before the MAC Address on aim of learning ground in advance, make after active/standby PW switching takes place, can not cause flow to be broadcast on all PE, thereby avoid bandwidth waste and information leakage because of the MAC Address that does not arrive the destination.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the general network environment schematic diagram of VPLS;
Fig. 2 shows the schematic diagram of the double-attaching technology network of VPLS among the RFC 4762;
Fig. 3 shows the structural representation of withdrawal message among the RFC 4762;
Fig. 4 shows the VPLS double-attaching technology network architecture diagram that inserts a plurality of PE among the RFC 4762;
Fig. 5 shows the structured flowchart based on the MAC address learning system of VPLS dual-home network of system according to the invention embodiment;
Fig. 6 shows the flow chart based on the MAC address learning method of VPLS dual-home network according to the inventive method embodiment;
Fig. 7 shows the structural representation based on the LDP Address Message in the MAC address learning method of VPLS dual-home network according to the inventive method embodiment;
Fig. 8 shows the concrete process chart based on the MAC address learning method of VPLS dual-home network according to the inventive method embodiment;
Fig. 9 shows and recovers process flow figure normal after based on main in the MAC address learning method of VPLS dual-home network with PW according to the inventive method embodiment.
Embodiment
Functional overview
By above description as can be seen, in present VPLS dual-home network, there is the problem that active/standby PW switches back flow broadcasting that takes place, be directed to this, the embodiment of the invention provides a kind of MAC address learning method and system based on the VPLS dual-home network, by PE equipment timed sending local mac address by connection purpose terminal, make MTU-s (renting the unit) before the master is with the PW fault, learn the MAC Address of destination in advance more, thereby avoided switching the situation of back flow broadcasting at active/standby PW.
System embodiment
Based on above-mentioned accompanying drawing 4 described network environments, Fig. 5 shows the structured flowchart based on the MAC address learning system of VPLS dual-home network of system according to the invention embodiment, this system comprises MTU-s and a plurality of PE, wherein, it is main with PW and standby PW that MTU-s and being connected to is provided with between the opposite end PE of a PE of CE, in specific implementation process, a PE can be the PE2-rs among Fig. 4, and then a PE opposite end PE can be the PE3-rs on the reserve link.
Fig. 5 shows the opposite end PE 20 of a PE 10, the one PE 10, and MTU-s 30, and in specific implementation process, the opposite end PE of a PE 10 can comprise a plurality of PE, only shows one in Fig. 5.Particularly, as shown in Figure 5, a PE 10 comprises: acquisition module 102 and notification module 104; The opposite end PE20 of the one PE 10 comprises: forwarding module 202, first binding module 204 and first receiver module 206; MTU-s 30 comprises: second receiver module 302 and second binding module 304 further describe above-mentioned each entity and part thereof below in conjunction with accompanying drawing 5 and accompanying drawing 4.
(1) the one PE 10
Acquisition module 102, be used to obtain local mac address, particularly, in network environment shown in Figure 4, the acquisition module 102 of PE2-rs writes MAC list TLV with the local mac address that gets access to, and MAC list TLV joined among the LDP AddressMessage, at last LDP Address Message is sent to its announcement module 104 and handle.
Notification module 104 is connected with acquisition module 102, be used for the MAC Address that acquisition module 102 obtains is notified the opposite end PE 20 of a PE, particularly, notification module 104 will receive LDP Address Message by all opposite ends that the LSP at PW place sends to PE2-rs from acquisition module 102, comprise the PE3-rs among Fig. 4.
The opposite end PE 20 of (2) the one PE 10
First receiver module 206 is used to receive the LDP Address Message that the notification module 104 of a PE 10 sends, and extracts and record MAC Address wherein.
First binding module 204 is connected with first receiver module 206, is used for the MAC Address of first receiver module, 206 records is tied to the PW that receives MAC Address.
Forwarding module 202, the LDP Address Message that is used for receiving is forwarded to MTU-s.
In specific implementation process, the opposite end of opposite end PE 20 may include MTU-s, also may comprise other PE, in Fig. 4, the opposite end of PE3-rs comprises: MTU-s and PE1-rs, may also comprise other network element in practice, therefore, PE3-rs need judge whether and transmit LDP Address Message to certain opposite end after having preserved MAC Address, in concrete operations, whether PE 20 can transmit LDPAddress Message to certain opposite end according to following condition judgment:
(1) whether opposite end PE 20 is in same VPLS territory with its opposite end; And
(2) whether opposite end PE 20 handles same aspect with its this opposite end.In the concrete system that implements, the relation between opposite end PE 20 and its opposite end comprises: HUB neighbours and SPOKE neighbours.Wherein, HUB neighbours are meant that opposite end PE 20 and its opposite end are in same aspect, as PE1-rs among Fig. 4 and PE3-rs; SPOKE neighbours are meant the relation between the neighbours of different aspects, as MTU-s among Fig. 4 and PE3-rs.If a PE3-rs and one opposite end is HUB neighbours, represent that then this opposite end is MTU-s scarcely, PE3-rs does not need to transmit LDP Address Message to this opposite end; Otherwise, if a PE3-rs and one opposite end is SPOKE neighbours, representing that then this opposite end is MTU-s, PE3-rs need transmit LDP Address Message to this opposite end.
Therefore, opposite end PE 20 can also comprise: judging unit (not marking among the figure), be used for before forwarding module 202 is transmitted LDP Address Message, whether the opposite end of judging opposite end PE 20 is in same VPLS territory with opposite end PE, and is whether the judge opposite end of opposite end PE of the situation that is is in same aspect with opposite end PE in judged result.
(3) MTU-s 30
Second receiver module 302 is used to receive the LDP Address Message that the forwarding module 202 of the opposite end PE 20 of a PE is transmitted, and extracts also record MAC Address.
Second binding module 304 is connected with second receiver module 302, is used for the MAC Address of second receiver module, 302 records is tied to the PW that receives MAC Address, and here, this PW is standby PW.
In specific implementation process, in order to guarantee the ageing of MAC Address that a PE 10 obtains, need obtain MAC Address at set intervals one time, therefore, PE 10 in said system can also comprise first timer, be used to calculate the time of setting, and when the time of setting arrives, trigger acquisition module 202 and obtain local mac address.
And, for fear of the main flow concussion that causes with the state labile of PW, after recovering normally with PW, the master flow is not switched back at once, but finish switching again after waiting for a time, therefore, in MTU-s 30, also comprise: second timer, recover the back startup main with PW, and when arriving the default time, trigger second binding module MAC Address of preserving is tied to the main PW that uses, it is main with behind the PW that this has guaranteed that flow switches to from standby PW, and flow can correctly arrive the destination.
From foregoing description as can be known, by main with the PW fault before, MTU-s learns the MAC Address of the destination that will arrive in advance, avoided main with the PW fault after, the broadcasting behavior when flow switches to standby PW.
Method embodiment
In an embodiment of the present invention, provide a kind of MAC address learning method, in the method based on the VPLS dual-home network, before active/standby PW switches, at first MAC is recorded on the standby PW, but does not participate in transmitting, after switching generation, can avoid packet broadcasting.With Fig. 4 is example, and the MAC that learns on the MTU-s is the access port MAC Address that PE2-rs connects CE, i.e. AC side MAC Address (CE that PE2-rs hangs down among the figure does not mark).MTU-s learns after the MAC Address, and it is bundled on the upstream Interface of standby PW.Be described in detail below in conjunction with Fig. 6.
Fig. 6 shows the flow chart based on the MAC address learning method of VPLS dual-home network according to the inventive method embodiment, wherein, comprise MTU-s and a plurality of PE in the VPLS dual-home network, it is main with PW and standby PW that MTU-s and being connected to is provided with between the opposite end PE of a PE of CE, and this method comprises:
Step S602, a PE (being PE2-rs in Fig. 4) regularly obtains local mac address, and the MAC Address of obtaining is sent to all opposite end PE of a PE;
Step S604 for each opposite end PE, uses corresponding PW to receive respectively and the preservation MAC Address, is not used at the PW that receives MAC Address under the situation of flow forwarding MAC Address being tied to the PW that receives MAC Address, and MAC Address is transmitted to MTU-s;
Step S606, MTU-s receive and preserve MAC Address, and MAC Address is tied to the PW that receives MAC Address.
As can be seen from the above description, by before the master is with the PW fault, make MTU-s learn the MAC Address of the destination that will arrive in advance, so just avoided after the main PW of using fault, broadcasting behavior when flow switches to standby PW, and then avoided the waste of this type of bandwidth, also can not cause the leakage of information.
In the specific embodiment process, the concrete operations of step S602 are: a PE writes MAC list type length value (MAC listTLV) with the local mac address that regularly obtains; MAC list type length value is added address message; By PW address message is sent to all opposite end PE.Address message in this preferred embodiment can be LDPAddress Message.
The one PE joins the MAC list TLV that has defined among the RFC in the LDP message of an appointment, i.e. LDP Address Message along PW sends to all opposite ends of a PE with LDPAddress Message main before with the PW fault.MAC list TLV stipulates must join among the Address ListTLV of Address Withdraw Message in RFC, is used for announcing the MAC Address of recovery.The preferred embodiment is applied in a flexible way MAC list TLV in other message, be used for announcing the MAC Address that needs record, and LDPAddress Message meets this behavior of announcement MAC Address as a kind of message of announcing type.
Fig. 7 shows the structural representation of above-mentioned LDP Address Message, wherein also comprise: address style value (Address (0x0300)) except Address List TLV, message-length (Message Length), message id (Message ID), and parameter options (Optional Parameters).
Before in step S604, MAC Address being transmitted to MTU-s, whether being in same VPLS territory and being in same VPLS territory if judge the opposite end PE of a PE, and judge whether the opposite end of opposite end PE is in same aspect with opposite end PE with its opposite end PE.Concrete judge as described in the above-mentioned system embodiment.
When MTU-s when standby PW receives LDP Address Message, under main situation about breaking down with PW, MTU-s switches to standby PW, and use sends packet with the MAC Address that standby PW binds.Flow after active/standby PW switches just can correctly be forwarded to the destination like this.
Can in time correctly obtain MAC Address in order to ensure a PE, the MAC Address that makes MTU-s learn is up-to-date, can in a PE first timer be set, at first timer to obtaining local mac address constantly.Can guarantee to switch the correct transmission of back flow like this at active/standby PW.
Fig. 8 shows the concrete process chart based on the MAC address learning method of VPLS dual-home network according to the inventive method embodiment, is elaborated according to the specific implementation process below.
Step S801 at first sets up n bar PW, and wherein two is exactly the active/standby PW that mentions among the RFC, is connected to PE1-rs and PE3-rs respectively, and other PW connects PEn-rs;
Step S802, the selection of active/standby PW can use the LDP agreement to carry out Path selection according to the suggestion of RFC, perhaps makes by hand and specifies;
Ageing for the MAC Address that guarantees to send from PE2-rs needs just to send once at set intervals, and therefore timer is set on PE2-rs.
Step S803 goes up the startup first timer at PE2-rs (an above-mentioned PE).
After timer sets, whenever, just obtain local mac address one time through a timer time PE2-rs, write MAC list TLV, send a LDP Address Message by PW to the opposite end of all PE2-rs then, wherein carried MAC list TLV.
Step S804, LDP Address Message at first is sent to all peer of PE2-rs, comprises PE1-rs and PE3-rs.PE3-rs receives after this message, extracts MAC list TLV wherein, notes wherein MAC Address and corresponding PW then.Like this, switch if active/standby PW takes place MTU-s, flow just can utilize the MAC Address of preserving to send to PE2-rs after arriving PE3-rs, and can not make flow be broadcasted because of the MAC Address that does not have the destination.
PE3-rs also needs LDP Address Message is forwarded to MTU-s after having write down MAC Address, otherwise does not still know the MAC Address of destination on MTU-s.
Step S805, PE3-rs (other peer that also comprise PE2-rs certainly are as the PE1-rs among Fig. 4, PEn-rs) judges the opposite end and oneself is HUB neighbours or SPOKE neighbours; If PE3-rs and opposite end are HUB neighbours, just represent that this opposite end is MTU-s scarcely, execution in step S807 then, otherwise, if PE3-rs and opposite end are SPOKE neighbours, just represent that this opposite end is MTU-s, then execution in step S806;
Before execution in step S805, PE3-rs at first uses determination methods among the said system embodiment and judges that whether and lay oneself open in the same VPLS territory its opposite end, because the opposite end that only is in the same VPLS territory just can be forwarded, in judged result ability execution in step S805 under the situation that is.
Step S806, PE3-rs need transmit LDP Address Message to its opposite end;
Step S807, PE3-rs do not need to transmit LDP Address Message to its opposite end.
Step S808, MTU-s extract MAC Address wherein after receiving the LDP Address Message that is transmitted by PE3-rs, and MAC Address and corresponding PW are noted together.LDP Address Message herein is owing to be that standby PW from MTU-s receives, so the just standby PW of binding.After this, if main situation with the PW fault, flow is directly switch to standby PW, owing to learnt MAC Address in advance, so broadcast data packet more not.
For LDP Address Message, traditional usage is to add Address list TLV therein, is used for announcing interface IP address.In the present invention, be that MAC listTLV is joined the MAC Address that Address list TLV announces needs record.After equipment is received a LDP Address Message, at first judge that by the type field of message this message is LDP Address Message, further then, judge by the TYPE field of TLV and to belong to any TLV, if be judged as MAC list TLV, the MAC Address of then above mentioning is extracted operation.
By said method, can guarantee that switching to standby PW in the main situation down-off that breaks down with PW does not broadcast phenomenon later on, has guaranteed the safety of information.
In an embodiment of the present invention, also provide a kind of after the master recovers normally with PW, to be switched back main method with PW by the flow that standby PW transmits, specifically comprise: a PE regularly obtains local mac address, and the MAC Address of obtaining is sent to all opposite end PE of a PE; For each opposite end PE, use corresponding PW to receive respectively and the preservation MAC Address, MAC Address is tied to the PW that receives MAC Address, and is not used in PW the master under the situation of flow forwarding, MAC Address is transmitted to MTU-s; MTU-s receives and also to preserve MAC Address, and MAC Address is tied to the master who receives MAC Address uses PW.
From last description as can be known, when main recover with PW normal after owing to mainly bound the MAC Address of destination with PW, so just can flow switch back the master with PW after, flow can correctly be sent to the destination.
After the master recovers normally with PW, the master does not switch back flow with PW at once from standby PW, but finish switching again after waiting for a time, so just can avoid owing to the main flow that causes with the state labile of PW shakes, so second timer is set in MTU-s, second timer starts when the master who breaks down recovers with PW.Arrive constantly at second timer, MTU-s is tied to the main PW that uses with the MAC Address of preserving, and has the sufficient time to bind the MAC Address of up-to-date destination in order to guarantee the master with PW, and the duration of second timer should be more than or equal to the twice of first timer duration.
Describe in detail main with the normal processing method afterwards of PW recovery below in conjunction with Fig. 9.
Fig. 9 show according to the inventive method embodiment recover process flow figure after normal based on the master of the MAC address learning method of VPLS dual-home network with PW, the second timer here can be a timer.
When main recover with PW after, still can not be broadcasted after leading with PW switching back in order to guarantee flow, need PE2-rs to send LDP AddressMessage equally to far-end, still carry MAC list TLV.This process and above-mentioned mention identical are example with accompanying drawing 4, when PE1-rs receives the LDP Address Message that PE2-rs sends over, judge with opposite equip. be SPOKE neighbours, promptly MTU-s just sends to MTU-s with LDP AddressMessage.Concrete steps are as follows:
Step S901, original master who is provided with recovers with PW, and promptly the PW at PE1-rs place recovers;
Step S902, the timer on the MTU-s picks up counting;
Step S903, since PE2-rs can't perception MTU-s and PE1-rs between the PW state, so still the time of setting according to first timer regularly sends LDP Address Message along each PW, according to the mode that above illustrates, LDP Address Message arrives the opposite end of PE2-rs, comprises PE1-rs;
Step S904, the PE1-rs judgement receives whether the PW of message is participating in converting flow, participating in converting flow if receive the PW of message, then execution in step S906 does not participate in converting flow if receive the PW of message, execution in step S905 then, here the PW at PE1-rs place is because fault is just recovered, and timer does not arrive setting-up time, so this PW does not participate in converting flow, and the PW at PE3-rs place is as original standby PW, just at converting flow;
Step S905 is tied to the MAC Address among the LDP Address Message on the PW that receives this LDP Address Message;
Step S906 need not be tied to MAC Address on the PW that receives LDP Address Message;
Step S907 judges whether the timer timing on the MTU-s finishes, if finish, and execution in step S909, otherwise execution in step S908;
Step S908 continues to wait for that timing finishes, and returns step S907;
Step S909 after the timer timing on the MTU-s finishes, switches to former master with on the PW with the flow on the standby PW.
For guarantee flow switch back after former master with having bound MAC on the PW, the timer time should be provided with the timing more than or equal to 2 times first timer.
More than be " counter-rotating " mode of adopting to the processing of former master after with the PW recovery; Can adopt " non-counter-rotating " mode to handle, promptly former master does not switch back after recovering with PW yet, and this moment, the PW of converting flow promptly was the new main PW that uses, and described as following specific embodiment.
After the master is with the PW fault recovery, uses PW as new standby PW the master, and standby PW is used PW as new master, particularly, after the master recovered normally with PW, standby PW is converting flow still, promptly this standby PW uses PW as new master, and the main PW that uses after recovering is as new standby PW.
In sum, by embodiments of the invention, learnt MAC Address in advance by MTU-s before the master is with the PW fault, make after the main PW of using fault, when using standby PW converting flow, can not cause flow to be broadcast on all PE, avoid this type of bandwidth waste, can not cause information leakage simultaneously yet because of the MAC Address that does not arrive the destination.
Need to prove that in addition following strategy has been adopted in the binding about MAC Address among the present invention: no matter be to lead, in converting flow, do not bind the MAC that receives, have only the PW that does not participate in transmitting just to bind, prevent the flow concussion with PW or standby PW.But the invention is not restricted to this, also can adopt the MAC that goes up binding such as standby PW not participate in transmitting, go wrong with PW and after flow is switched to standby PW, directly transmit the such binding strategy of packets by searching these MAC when main.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. media access control MAC address learning method based on virtual special local area network service VPLS dual-home network, wherein, comprise in the described VPLS dual-home network and rent unit MTU-s and a plurality of provider edge equipment PE more, rent the unit more and be connected to be provided with between the opposite end PE of a PE of customer edge CE main with virtual link and standby virtual link, it is characterized in that described method comprises:
A described PE regularly obtains local mac address, and the described MAC Address that will obtain is sent to all opposite end PE of a described PE;
For each opposite end PE, use corresponding virtual link to receive and preserve described MAC Address respectively, be not used at the described virtual link that receives described MAC Address under the situation of flow forwarding, described MAC Address is tied to the virtual link that receives described MAC Address, and described MAC Address is transmitted to rents the unit more;
The described unit of renting receives and preserves described MAC Address more, and described MAC Address is tied to the virtual link that receives described MAC Address.
2. method according to claim 1 is characterized in that, described MAC Address is transmitted to rents the unit more and comprise:
Described opposite end PE will be in same VPLS territory with it and not be defined as the described unit of renting more in the opposite end of same aspect;
Described MAC Address is transmitted to rents the unit more.
3. method according to claim 1 is characterized in that, a described PE regularly obtains local mac address, and all opposite end PE that the described MAC Address that will obtain is sent to a described PE specifically comprise:
A described PE writes MAC list type length value with the described local mac address that regularly obtains;
Described MAC list type length value is added address message;
By virtual link described address message is sent to described all opposite end PE.
4. method according to claim 1 is characterized in that, described that to rent the virtual link that the unit receives described MAC Address be described standby virtual link is more, and under the situation that described master breaks down with virtual link, described method also comprises:
Rent unit described more and switch to described standby virtual link, and the described MAC Address of use and described standby virtual link binding sends packet.
5. according to claim 1 or 4 described methods, it is characterized in that, also comprise: at a described PE first timer is set in advance, wherein, a described PE at described first timer to obtaining described MAC Address constantly.
6. method according to claim 5 is characterized in that, also comprises: more rent the unit second timer is set described in advance, wherein, described second timer starts when the described master who breaks down recovers with virtual link;
To constantly, the described described MAC Address that will preserve the unit of renting are tied to the described main virtual link of using more at described second timer;
Wherein, the duration of described second timer is more than or equal to the twice of described first timer duration.
7. method according to claim 1 is characterized in that, also comprises:
More rent the unit second timer is set described in advance, wherein, described second timer starts when the described master who breaks down recovers with virtual link;
To constantly, the described described MAC Address that will preserve the unit of renting are tied to described master and use virtual link more at described second timer.
8. according to claim 1 or 4 described methods, it is characterized in that, also comprise:
After described master recovers with virtual link failure, use virtual link as new standby virtual link described master, and described standby virtual link is used virtual link as new master.
9. MAC address learning method based on the VPLS dual-home network, wherein, comprise MTU-s and a plurality of PE in the described VPLS dual-home network, it is main with virtual link and standby virtual link that MTU-s and being connected to is provided with between the opposite end PE of a PE of CE, it is characterized in that described method comprises:
A described PE regularly obtains local mac address, and the described MAC Address that will obtain is sent to all opposite end PE of a described PE;
Each opposite end PE uses corresponding virtual link to receive and preserve described MAC Address respectively, described MAC Address is tied to the described virtual link that receives described MAC Address, be not used in virtual link described master under the situation of flow forwarding, described MAC Address be transmitted to rent the unit more;
The described unit of renting receives and preserves described MAC Address more, and described MAC Address is tied to the described master who receives described MAC Address uses virtual link.
10. MAC address learning system based on the VPLS dual-home network, comprise and rent unit MTU-s and a plurality of PE more that wherein, it is main with virtual link and standby virtual link that MTU-s and being connected to is provided with between the opposite end PE of a PE of CE, it is characterized in that described system also comprises:
Acquisition module is arranged in a PE, is used to obtain local mac address;
Notification module is arranged in a PE, is used for the described MAC Address that described acquisition module obtains is notified the opposite end PE of a described PE;
First receiver module is arranged in the opposite end PE of a described PE, is used for receiving and writing down described MAC Address;
First binding module is arranged in the opposite end PE of a described PE, is used for described MAC Address is tied to the virtual link that receives described MAC Address;
Forwarding module is arranged in the opposite end PE of a described PE, is used for described MAC Address is forwarded to the described unit of renting more;
Second receiver module is positioned at and described rents the unit more, is used to receive and write down the described MAC Address from described forwarding module;
Second binding module is positioned at and described rents the unit more, is used for described MAC Address is tied to the virtual link that receives described MAC Address.
11. MAC address learning according to claim 10 system is characterized in that,
Also comprise among the opposite end PE of a described PE:
Judging unit if be used to judge whether the opposite end of described opposite end PE is in same VPLS territory and is in same VPLS territory with described opposite end PE, and judges whether the opposite end of described opposite end PE is in same aspect with described opposite end PE.
12. MAC address learning according to claim 10 system is characterized in that,
Also comprise:
First timer is arranged in a described PE, is used for triggering described acquisition module when the time that is provided with arrives;
Second timer is arranged in and described rents the unit more, is used at described second timer to constantly, triggers described MAC Address that described second binding module will preserve and is tied to described master and uses virtual link.
CN2008102139225A 2008-08-28 2008-08-28 MAC address learning method and system based on VPLS dual-homing network Active CN101345715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102139225A CN101345715B (en) 2008-08-28 2008-08-28 MAC address learning method and system based on VPLS dual-homing network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102139225A CN101345715B (en) 2008-08-28 2008-08-28 MAC address learning method and system based on VPLS dual-homing network

Publications (2)

Publication Number Publication Date
CN101345715A true CN101345715A (en) 2009-01-14
CN101345715B CN101345715B (en) 2011-05-25

Family

ID=40247608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102139225A Active CN101345715B (en) 2008-08-28 2008-08-28 MAC address learning method and system based on VPLS dual-homing network

Country Status (1)

Country Link
CN (1) CN101345715B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820397A (en) * 2010-05-25 2010-09-01 杭州华三通信技术有限公司 Network convergence method and device in virtual private local area network
CN101895480A (en) * 2010-08-18 2010-11-24 杭州华三通信技术有限公司 Method and equipment for transmitting message
WO2011147342A1 (en) * 2010-11-29 2011-12-01 华为技术有限公司 Method, equipment and system for exchanging routing information
CN102332986A (en) * 2010-07-13 2012-01-25 杭州华三通信技术有限公司 Address processing method, system and device
CN102361474A (en) * 2011-09-29 2012-02-22 杭州华三通信技术有限公司 Method and equipment for realizing GR (Graceful Restart) treatment
CN102694718A (en) * 2011-03-25 2012-09-26 华为技术有限公司 Virtual private LAN service (VPLS) rapid rerouting method and equipment thereof
CN101621550B (en) * 2009-08-14 2012-12-12 杭州华三通信技术有限公司 Method and device for recycling MAC address in VPLS
CN103052118A (en) * 2012-12-07 2013-04-17 北京华为数字技术有限公司 Communication channel switching method and network equipment
CN103259726A (en) * 2012-02-21 2013-08-21 华为技术有限公司 Method, device and system for storing and sending MAC address table entries
CN103560869A (en) * 2013-09-10 2014-02-05 杭州华三通信技术有限公司 VPLS link switching device, auxiliary switching device thereof and method thereof
CN104135434A (en) * 2014-08-04 2014-11-05 杭州华三通信技术有限公司 Method and device for path switching in Ethernet virtualized interconnect (EVI) network
WO2014186978A1 (en) * 2013-05-24 2014-11-27 华为技术有限公司 Method and device used in ethernet virtual private network
WO2018113294A1 (en) * 2016-12-20 2018-06-28 华为技术有限公司 Method, device and system for forwarding packet
CN109981452A (en) * 2019-02-28 2019-07-05 新华三技术有限公司 A kind of switchback method and device of PW link
CN111683160A (en) * 2020-04-01 2020-09-18 新华三信息安全技术有限公司 MAC address recovery method and device
CN113660106A (en) * 2021-06-21 2021-11-16 酒泉钢铁(集团)有限责任公司 Load balancing and automatic switching method based on different operator private line links

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888105B (en) * 2015-12-16 2019-11-08 中国移动通信集团河北有限公司 A kind of discovery method and device of three layers of virtual link end to end

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621550B (en) * 2009-08-14 2012-12-12 杭州华三通信技术有限公司 Method and device for recycling MAC address in VPLS
CN101820397B (en) * 2010-05-25 2012-10-03 杭州华三通信技术有限公司 Network convergence method and device in virtual private local area network
CN101820397A (en) * 2010-05-25 2010-09-01 杭州华三通信技术有限公司 Network convergence method and device in virtual private local area network
CN102332986A (en) * 2010-07-13 2012-01-25 杭州华三通信技术有限公司 Address processing method, system and device
CN101895480B (en) * 2010-08-18 2012-11-28 杭州华三通信技术有限公司 Method and equipment for transmitting message
CN101895480A (en) * 2010-08-18 2010-11-24 杭州华三通信技术有限公司 Method and equipment for transmitting message
WO2011147342A1 (en) * 2010-11-29 2011-12-01 华为技术有限公司 Method, equipment and system for exchanging routing information
CN102694718A (en) * 2011-03-25 2012-09-26 华为技术有限公司 Virtual private LAN service (VPLS) rapid rerouting method and equipment thereof
WO2012130034A1 (en) * 2011-03-25 2012-10-04 华为技术有限公司 Vpls fast rerouting method and device
CN102694718B (en) * 2011-03-25 2016-03-30 华为技术有限公司 A kind of VPLS fast rerouting method and equipment
US9143396B2 (en) 2011-03-25 2015-09-22 Huawei Technologies Co., Ltd. VPLS fast rerouting method and device
EP2675121A1 (en) * 2011-03-25 2013-12-18 Huawei Technologies Co., Ltd. Vpls fast rerouting method and device
EP2675121A4 (en) * 2011-03-25 2013-12-18 Huawei Tech Co Ltd Vpls fast rerouting method and device
CN102361474B (en) * 2011-09-29 2014-10-29 杭州华三通信技术有限公司 Method and equipment for realizing GR (Graceful Restart) treatment
CN102361474A (en) * 2011-09-29 2012-02-22 杭州华三通信技术有限公司 Method and equipment for realizing GR (Graceful Restart) treatment
US11153274B2 (en) 2012-02-21 2021-10-19 Huawei Technologies Co., Ltd. Method and device for storing and sending MAC address entry, and system
US9531663B2 (en) 2012-02-21 2016-12-27 Huawei Technologies Co., Ltd. Method and device for storing and sending MAC address entry, and system
US10505895B2 (en) 2012-02-21 2019-12-10 Huawei Technologies Co., Ltd. Method and device for storing and sending MAC address entry, and system
WO2013123862A1 (en) * 2012-02-21 2013-08-29 华为技术有限公司 Method, device, and system for storing and transmitting mac address entry
CN103259726B (en) * 2012-02-21 2017-04-12 华为技术有限公司 Method, device and system for storing and sending MAC address table entries
CN103259726A (en) * 2012-02-21 2013-08-21 华为技术有限公司 Method, device and system for storing and sending MAC address table entries
CN103052118B (en) * 2012-12-07 2015-08-19 北京华为数字技术有限公司 A kind of communication tunnel changing method and the network equipment
CN103052118A (en) * 2012-12-07 2013-04-17 北京华为数字技术有限公司 Communication channel switching method and network equipment
WO2014186978A1 (en) * 2013-05-24 2014-11-27 华为技术有限公司 Method and device used in ethernet virtual private network
CN104365066A (en) * 2013-05-24 2015-02-18 华为技术有限公司 Method and device used in ethernet virtual private network
CN104365066B (en) * 2013-05-24 2017-11-24 华为技术有限公司 Method and apparatus for ether Virtual Private Network
CN108063716A (en) * 2013-05-24 2018-05-22 华为技术有限公司 For the method and apparatus of ether Virtual Private Network
CN103560869B (en) * 2013-09-10 2016-10-12 杭州华三通信技术有限公司 A kind of VPLS link switching, auxiliary switching device and method
CN103560869A (en) * 2013-09-10 2014-02-05 杭州华三通信技术有限公司 VPLS link switching device, auxiliary switching device thereof and method thereof
CN104135434B (en) * 2014-08-04 2017-09-22 新华三技术有限公司 Path switching method and device in Ethernet virtualization internet network
CN104135434A (en) * 2014-08-04 2014-11-05 杭州华三通信技术有限公司 Method and device for path switching in Ethernet virtualized interconnect (EVI) network
US10992570B2 (en) 2016-12-20 2021-04-27 Huawei Technologies Co., Ltd. Packet forwarding method and device for a virtual private wire service (VPWS) pseudo wire (PW) network using traffic balancing
WO2018113294A1 (en) * 2016-12-20 2018-06-28 华为技术有限公司 Method, device and system for forwarding packet
CN109981452A (en) * 2019-02-28 2019-07-05 新华三技术有限公司 A kind of switchback method and device of PW link
CN109981452B (en) * 2019-02-28 2021-03-23 新华三技术有限公司 Method and device for switching back PW link
CN111683160A (en) * 2020-04-01 2020-09-18 新华三信息安全技术有限公司 MAC address recovery method and device
CN111683160B (en) * 2020-04-01 2022-07-12 新华三信息安全技术有限公司 MAC address recovery method and device
CN113660106A (en) * 2021-06-21 2021-11-16 酒泉钢铁(集团)有限责任公司 Load balancing and automatic switching method based on different operator private line links

Also Published As

Publication number Publication date
CN101345715B (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN101345715B (en) MAC address learning method and system based on VPLS dual-homing network
CN101330424B (en) Method, system and apparatus for processing service fault of virtual special network
Kompella et al. Virtual private LAN service (VPLS) using BGP for auto-discovery and signaling
CN103731288B (en) Message forwarding method and device
CN101257441B (en) Method, equipment and system for forwarding message as well as equipment for receiving message
CN102025646B (en) Link switching method and device thereof
CN103270724B (en) For ethernet line service dual-homed
CN102694718B (en) A kind of VPLS fast rerouting method and equipment
CN100459531C (en) Method for notifying pseudo-lines fault based on bidirectional transmission detecting protocol
US20140219135A1 (en) Virtual Private Network Implementation Method and System Based on Traffic Engineering Tunnel
KR20150008449A (en) 802.1aq support over ietf evpn
EP3641240B1 (en) Node protection for bum traffic for multi-homed node failure
CN112422398B (en) Message transmission method and communication device
CN103326940A (en) Method for forwarding message in network and edge device of operator
CN100559772C (en) Mixed virtual private network system and backbone network edge apparatus and collocation method thereof
CN100428739C (en) Implementing method and system for support VPLS service on IP skeletal network
CN102316014A (en) Load sharing method and router under hierarchical virtual dedicated local area network service environment
CN102170390B (en) Method and system for parameter negotiation
CN101789903B (en) Method, device and system for protecting semi-ring network
CN107547337B (en) Tunnel switching method, leaf node automatic discovery route sending method and device
CN103685029B (en) Message forwarding method and equipment in a kind of rapid ring protection protocol networking
CN104219073B (en) Message forwarding method and device in SPBM network
CN102724126A (en) Method, device and equipment for forwarding Ethernet tree (E-tree) service message
CN103634210B (en) Find the method and apparatus of the opposite end PE equipment of VPLS example
JP6371399B2 (en) Interface parameter synchronization method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant