CN104601381A - Method and equipment for preventing flow interruption - Google Patents

Method and equipment for preventing flow interruption Download PDF

Info

Publication number
CN104601381A
CN104601381A CN201510047512.8A CN201510047512A CN104601381A CN 104601381 A CN104601381 A CN 104601381A CN 201510047512 A CN201510047512 A CN 201510047512A CN 104601381 A CN104601381 A CN 104601381A
Authority
CN
China
Prior art keywords
opposite end
main
standby
service message
message
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
CN201510047512.8A
Other languages
Chinese (zh)
Other versions
CN104601381B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510047512.8A priority Critical patent/CN104601381B/en
Publication of CN104601381A publication Critical patent/CN104601381A/en
Application granted granted Critical
Publication of CN104601381B publication Critical patent/CN104601381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method and equipment for preventing flow interruption. The method comprises the steps of controlling a main PE (Provider Edge) between the PE and a main PW (Psedowire) opposite terminal to replace a reserved PW for packets transmitting between the PC and a reserved PW opposite terminal PE on the PE to carry out packets transmitting by a cut-back method when a chain between a main PW opposite terminal configured on the PE and a CE (Customer Edge) connected with the main PW opposite terminal, and then informing the locally connected CE of deleting a learned outcoming interface to connect with an MAC (media access control) table item of the interface of the PE, so as to prevent the flow interruption.

Description

Prevent the method and apparatus of flow interrupt
Technical field
The application relates to the network communications technology, particularly prevents the method and apparatus of flow interrupt.
Background technology
For making the application's easy understand, below the technical term that the application relates to is described:
Multiprotocol label switching (MPLS:Multiprotocol Label Switching): be current Application comparison a kind of backbone technology widely, connectionless IP network is introduced connection-oriented Tag switching concept, third layer route technology and second layer switching technology are combined, has given full play to the flexibility of IP route and the terseness of Layer2 switching.
Two-layer virtual private network (L2VPN:Layer 2Virtual Private Network): based on Layer 2 virtual private network (the VPN:Virtual Private Network) technology of MPLS, it utilizes MPLS technology to set up two layers of connection between different user node.Adopt L2VPN technology, operator can on unified MPLS or IP backbone the Layer 2 data of transparent transmission different pieces of information link layer, make data link layer service can cross over MPLS or IP backbone transmission.
User network boundary device (CE:Customer Edge): the user network side apparatus be directly connected with service provider network.
Service provider network edge equipment (PE:Provider Edge): the service provider network side apparatus be connected with CE.The access of PE primary responsibility VPN traffic, completes message from user network to public network tunnel, from public network tunnel to the mapping of user network and forwarding.
Pseudo-line (PW:Pseudowire): the dummy bidirectional between two PE connects.
CE's is dual-homed: refer to that CE accesses two different PE simultaneously, and the interface that CE accesses two different PE belongs to same VLAN (VLAN), be then called that CE's is dual-homed.In such as Fig. 1, CE1 connects PE1 and PE2 respectively, and two interfaces connecting PE1 and PE2 belong to same L2VPN, achieve the dual-homed of CE1.
Above the technical term that the application relates to is described.
In an mpls network, when the link failure relevant to main PW, this main PW can be taken over by the standby PW of this main PW and carrying out message repeating by configuring active and standby PW between PE, improving message repeating reliability.In Fig. 1, if be configured with PW between PE1 and PE3 as main PW, the backup (be called for short standby PW) of PW as main PW is configured with between PE3 and PE2, then as dual-homed CE CE1 and PE1 between link failure time, the main PW that this PE1 connects just can not use, and takes over main PW work by the standby PW of this main PW.As shown in Figure 1, during link failure between CE1 and PE1, the access path that CE1 accesses CE2 is updated to CE1->PE2->PE3-GreatT.GreaT.G TCE2 from CE1->PE1->PE3-GreatT.GreaT.G TCE2, the access path that CE2 accesses CE1 is updated to CE2->PE3->PE2-GreatT.GreaT.G TCE1 from CE2->PE3->PE1> CE1, wherein, CE1 learns corresponding MAC address entries when receiving the message of CE2 access, CE2 also can learn MAC address entries when receiving the message of CE1 access.
But, when the link of fault is from fault recovery, just need to switch to main PW by switchback mode from standby PW, and standby PW reduces to Status of Backups automatically.When after active and standby PW switchback, now dual-homed CE is when sending message to other CE, and it still carries out message repeating according to the MAC address entries learnt when link failure before, and this message that this dual-homed CE can be caused to send can interrupt because of forwarding obstructed.
Summary of the invention
This application provides the method and apparatus preventing flow interrupt, to prevent flow interrupt.
The technical scheme that the application provides comprises:
A kind of method preventing flow interrupt, the method is applied to PE, described PE is configured with main pseudo-line PW opposite end PE and for establishing main PW between PW opposite end PE, described PE and described main PW opposite end PE, between described PE with described standby PW opposite end PE, establishes the standby PW corresponding with described main PW; It is characterized in that, the method comprises:
Link between the user network boundary device CE connect described main PW opposite end PE and described main PW opposite end PE detects,
When described link failure being detected, taking over described main PW by described standby PW and carrying out service message forwarding, and whether detecting described link from fault recovery;
When detecting described link from fault recovery, be that described main PW carries out service message forwarding by described standby PW switchback, and notify that the interface connecting this PE is deleted as the MAC address entries of outgoing interface by the CE that this PE connects.
A kind of method preventing flow interrupt, the method is applied to CE, described CE is dual-homed CE, it is corresponding that its service provider network edge equipment PE connected is configured with the corresponding and standby PW opposite end PE of main pseudo-line PW opposite end PE, wherein, establish main PW between described PE and described main PW opposite end PE, between described PW with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; It is characterized in that, the method comprises:
Receive the notice that service provider network edge equipment PE sends, described PE be link between the CE that described main PW opposite end PE connects and described main PW opposite end PE from fault recovery and described standby PW switchback is described main PW time the described notice that sends;
The MAC address entries met the following conditions learnt is deleted: outgoing interface is the interface connecting described PE according to described notice.
A kind of equipment preventing flow interrupt, this equipment is applied to PE, a kind of equipment preventing flow interrupt, this equipment is applied to service provider network edge equipment PE, described PE is configured with main pseudo-line PW opposite end PE and standby PW opposite end PE, establish main PW between described PE and described main PW opposite end PE, between described PE with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; This equipment comprises:
Detecting unit, detect for the link between the user network boundary device CE that connects described main PW opposite end PE and described main PW opposite end PE, and during link failure between the CE that main PW opposite end PE connects and main PW opposite end PE, whether detection failure link is from fault recovery;
Control unit, during for detecting the link failure between the connected CE of main PW opposite end PE at described detecting unit, takes over described main PW by described standby PW and carries out service message forwarding; And, when described detecting unit detects faulty link from fault recovery, be that described main PW carries out service message forwarding transmission notice request to notification unit by described standby PW switchback;
Described notification unit, during for receiving described notice request, notifies that the interface connecting this PE is deleted as the MAC address entries of outgoing interface by the CE that this PE connects.
A kind of equipment preventing flow interrupt, this equipment is applied to CE, described CE is dual-homed CE, it is corresponding that its service provider network edge equipment PE connected is configured with the corresponding and standby PW opposite end PE of main pseudo-line PW opposite end PE, wherein, establish main PW between described PE and described main PW opposite end PE, between described PW with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; This equipment comprises:
Receiving element, for receiving the notice that service provider network edge equipment PE sends, described PE be link between the CE that described main PW opposite end PE connects and described main PW opposite end PE from fault recovery and described standby PW switchback is described main PW time the described notice that sends;
Delete cells, for deleting according to described notice the MAC address entries met the following conditions learnt: outgoing interface is the interface connecting described PE.
As can be seen from the above technical solutions, in the present invention, when detecting the link between the CE that the main PW opposite end PE of the upper configuration of this PE connects and this main PW opposite end PE from fault recovery, this PE switchback is to carrying out message repeating by main PW opposite end PE, and by notifying that the CE that this PE connects deletes the MAC address entries that the outgoing interface learnt is the interface connecting this PE, to prevent flow interrupt.
Accompanying drawing explanation
Fig. 1 is MPLS networking schematic diagram;
Fig. 2 is the networking schematic diagram that the present invention applies;
Fig. 3 is method flow diagram provided by the invention;
Fig. 4 is equipment structure chart provided by the invention;
Fig. 5 is another equipment structure chart provided by the invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, describe the present invention below in conjunction with the drawings and specific embodiments.
The flow interrupt that method provided by the invention can prevent link from occurring from flow during fault recovery because forwarding is obstructed.
Before description method provided by the invention, first the application scenarios that the present invention relates to is described:
Be application networking diagram provided by the invention see Fig. 2, Fig. 2.As shown in Figure 2, CE1 by simultaneously access PE1 and PE3 and access PE1 and PE3 interface belong to same L2VPN, realize dual-homed CE; CE2, by accessing PE2 and PE4 and the interface of access PE2 and PE4 belongs to same L2VPN and realizes dual-homed CE simultaneously, in fig. 2, establishes PW between any two PE in PE1 to PE4 and PE1 to PE4 is configured with its active and standby PW opposite end PE connected.Table 1 shows the active and standby PW opposite end PE of the upper configuration of PE1 to PE4:
PE Main PW opposite end PE Standby PW opposite end PE
PE1 PE2 PE4
PE2 PE1 PE3
PE3 PE2 PE4
PE4 PE1 PE3
Table 1
When CE1 accesses CE2 first, broadcasting service message in the VLAN of CE1 belonging to it.MAC Address (being designated as MAC1), the VLAN1 of VLAN belonging to CE1 that the source MAC of service message of CE1 broadcast is CE1; The service message of CE1 broadcast can be sent to PE1 and PE3 respectively.
When links all in networking shown in Fig. 2 are normal, only have main PW for message repeating, and standby PW is just in Status of Backups, successfully cannot forward service message.
Based on this, main PW opposite end PE when PE1 receives from the service message of CE1 broadcast to its configuration continues to forward this message, as shown in table 1, the main PW opposite end PE of PE1 configuration is PE2, then PE2 can receive service message, find that when PE2 receives message this service message is sended over by the main PW opposite end PE1 of its configuration, then forward this message to CE2.That is, the service message of final CE1 broadcast is along following path: CE1->PE1->PE2-GreatT.GreaT.G TCE2 arrives CE2.When CE2 receives service message at the source MAC of local mac address table learning message and MAC address entries (being designated as MAC address entries 1) corresponding to MAC1, the MAC address entries 1 of this study at least comprises: MAC1, outgoing interface (CE2 connects the interface of PE2), VLAN1;
And continue to forward this service message when PE3 receives the service message of CE1 broadcast to the main PW opposite end PE of its configuration, as shown in table 1, the main PW opposite end PE of PE3 configuration is PE2, then PE2 can receive service message, find that when PE2 receives service message this service message is sended over by the standby PW opposite end PE3 of its configuration, because now only have main PW to forward for service message, when PE2 receives the service message that standby PW sends, acquiescence abandons this service message, then cannot complete forwarding service message for PW.
Similarly, when CE2 accesses CE1 first, broadcasting service message in the VLAN of CE2 belonging to it, MAC Address (being designated as MAC2), the VLAN1 of VLAN belonging to CE2 that the source MAC of service message of CE2 broadcast is CE2; The service message of CE2 broadcast can be sent to PE2 and PE4 respectively.The pass-through mode of the service message of broadcasting according to above-mentioned CE1, the service message of final CE2 broadcast can along following path: CE2->PE2->PE1-GreatT.GreaT.G TCE1 arrives CE1, when CE1 receives broadcasting service message at the source MAC of local mac address table learning service message and MAC address entries (being designated as MAC address entries 2) corresponding to MAC2, the MAC address entries 2 of this study at least comprises: MAC2, outgoing interface (CE1 connects the interface of PE1), VLAN1.
With the link between PE1 and the CE1 in networking shown in Fig. 2, and the link failure between PE2 and CE2 is example, link between PE1 and CE1 in networking shown in Fig. 2, or the principle of the link failure between PE2 and CE2 is similar, launch no longer respectively to describe, it is the MAC address entries 1 that CE1 is connected the interface of PE1 that CE1 deletes because perceiving the link failure between this CE1 with PE1 the outgoing interface learnt in local mac table, equally, it is the MAC address entries 2 that CE2 is connected the interface of PE2 that CE2 also can delete because of the link failure perceived between this CE2 with PE2 the outgoing interface learnt in local mac table.
As shown in table 1, the main PW opposite end PE of the upper configuration of PE4 is PE1, then based on the detection of PW, PE4 can detect that PE1 connects the link failure of CE1, when PE4 detects that PE1 connects the link failure of CE1, PE4 will take over main PW for PW and carry out service message forwarding, and here, standby PW is the standby PW between standby PW opposite end PE and PE3 of the upper configuration of PE4 and PE4; Main PW is the main PW between main PW opposite end PE and PE1 of the upper configuration of PE4 and PE4.In like manner, because the main PW opposite end PE of configuration on PE3 is PE2, then based on the detection of PW, PE3 can detect that PE2 connects the link failure of CE2, when PE3 detects that PE2 connects the link failure of CE2, PE3 will take over main PW for PW and carry out service message forwarding, here, standby PW is the standby PW between upper standby PW opposite end PE and PE4 configured of PE3 and PE3, main PW is the main PW between main PW opposite end PE and PE4 of the upper configuration of PE3 and PE3.
So, when CE1 accesses CE2, because CE1 has deleted MAC address entries 1, then access is now equivalent to CE1 and accesses CE2 first.Based on this, broadcasting service message in the VLAN of CE1 belonging to it.MAC Address (being designated as MAC1), the VLAN1 of VLAN belonging to CE1 that the source MAC of service message of CE1 broadcast is CE1; Because the link failure between CE1 and PE1, then the service message of CE1 broadcast only arrives PE3.
When PE3 receives the service message of CE1 broadcast, as above describe, the main PW that the standby PW now between PE3 and PE4 takes between PE3 and PE4 carries out service message forwarding, then PE3 can continue to forward this service message to standby PW opposite end PE and PE4 of its configuration.
When PE4 receives the service message of PE3 forwarding, find that this service message is sended over by standby PW opposite end PE and PE3 of its configuration, but, as mentioned above, the main PW that standby PW now between PE4 and PE3 takes between PE4 and PE1 carries out service message forwarding, namely PE4 approves the service message of PE3 transmission, continues to forward this service message to CE2.That is, the service message of final CE1 broadcast is along following path: CE1->PE3->PE4-GreatT.GreaT.G TCE2 arrives CE2.When CE2 receives the service message of CE1 broadcast, at the source MAC of local mac address table learning service message and MAC address entries (being designated as MAC address entries 3) corresponding to MAC1, the MAC address entries 3 of this study at least comprises: MAC1, outgoing interface (CE2 connects the interface of PE4), VLAN1;
Similarly, when CE2 accesses CE1, because CE2 has deleted MAC address entries 2, then access is now equivalent to CE2 and accesses CE1 first.Based on this, broadcasting service message in the VLAN of CE2 belonging to it, MAC Address (being designated as MAC2), the VLAN1 of VLAN belonging to CE2 that the source MAC of service message of CE2 broadcast is CE2.Because the link failure between CE2 and PE2, then the service message of CE2 broadcast only arrives PE4.
When PE4 receives the service message of CE2 broadcast, as above describe, the main PW that the standby PW now between PE4 and PE3 takes between PE4 and PE1 carries out service message forwarding, then PE4 can continue to forward this service message to standby PW opposite end PE and PE3 of its configuration.
When PE3 receives the service message of PE4 forwarding, find that this service message is sended over by standby PW opposite end PE and PE4 of its configuration, but, as mentioned above, the main PW that standby PW now between PE3 and PE4 takes between PE3 and PE2 carries out service message forwarding, namely PE3 recognizes the service message that configurable standby PW opposite end PE and PE4 sends, and continues to forward this service message to CE1.That is, the service message of final CE2 broadcast is along following path: CE2->PE4->PE3-GreatT.GreaT.G TCE1 arrives CE1.When CE1 receives the service message of CE2 broadcast at the source MAC of local mac address table learning service message and MAC address entries (being designated as MAC address entries 4) corresponding to MAC2, the MAC address entries 4 of this study at least comprises: MAC2, outgoing interface (CE1 connects the interface of PE3), VLAN1.
Link between PE1 and the CE1 in networking shown in Fig. 2, when link between PE2 and CE2 is from fault recovery, as shown in table 1, the main PW opposite end PE of the upper configuration of PE4 is PE1, then based on the detection of PW, PE4 can detect that PE1 connects the link of CE1 from fault recovery, when PE4 detects that PE1 connects the link of CE1 from fault recovery, main PW is taken over the former standby PW carrying out work by switchback mode and carries out service message forwarding by PE4, here, main PW is the main PW between main PW opposite end PE and PE1 of the upper configuration of PE4 and PE4, standby PW is the standby PW between standby PW opposite end PE and PE3 of the upper configuration of PE4 and PE4.In like manner, because the main PW opposite end PE of configuration on PE3 is PE2, then based on the detection of PW, PE3 can detect that PE2 connects the link of CE2 from fault recovery, when PE3 detects that PE2 connects the link of CE2 from fault recovery, then main PW is taken over the former standby PW carrying out work by switchback mode and carries out service message forwarding by PE3, here, main PW is the main PW between main PW opposite end PE and PE4 of the upper configuration of PE3 and PE3, and standby PW is the standby PW between standby PW opposite end PE and PE4 of the upper configuration of PE3 and PE3.
Now, when CE1 accesses CE2 because CE1 also exist before the MAC address entries 4 of corresponding CE2 of study, then CE1 sends service message by the outgoing interface of MAC address entries 4.
As mentioned above, MAC address entries 4 outgoing interface is the interface that CE1 connects PE3, then PE3 can receive the service message that CE1 sends.
When PE3 receives the service message of CE1 transmission, as above describe, the standby PW that main PW now between PE3 and PE2 takes between former PE3 and the PE4 carrying out work carries out service message forwarding, then PE3 can continue to forward this service message to main PW opposite end PE and PE2 of its configuration.
When PE2 receives the data service message of PE3 forwarding, find that this broadcasting service message is sended over by standby PW opposite end PE and PE3 of its configuration, the service message that PE2 can give tacit consent to standby PW opposite end PE and PE3 transmission is invalid service message, abandon this service message, namely occur the situation of flow interrupt.
Equally, when CE2 accesses CE1 because CE2 also exist before the MAC address entries 3 of corresponding CE2 of study, then CE2 sends service message by the outgoing interface of MAC address entries 3.
As mentioned above, MAC address entries 3 outgoing interface is the interface that CE2 connects PE4, then PE4 can receive the service message that CE1 sends.
When PE4 receives the service message of CE2 transmission, as above describe, the standby PW that main PW between main PW opposite end PE and PE1 of the now upper configuration of PE4 and PE4 takes between upper standby PW opposite end PE and PE4 configured of PE4 and PE4 carries out service message forwarding, then PE4 can continue to forward this service message to main PW opposite end PE and PE1 of its configuration.
When PE1 receives the service message of PE4 forwarding, find that this service message is sended over by standby PW opposite end PE and PE4 of its configuration, the service message that PE1 can give tacit consent to standby PW opposite end PE and PE4 transmission is invalid service message, abandons this service message, has namely occurred the situation of flow interrupt.
In summary it can be seen, when link between PE1 and CE1 and the link between PE2 and CE2 are from fault recovery, although main PW is substituted the former standby PW carrying out service message forwarding by switchback mode by PE4, PE3 again carry out service message forwarding, but, CE1, CE2 still forward according to the MAC address entries learnt during link failure between the link between PE1 and CE1, PE2 and CE2, and this can produce flow interrupt recited above.
In order to prevent flow interrupt recited above, the invention provides the method shown in following Fig. 3:
Be method flow diagram provided by the invention see Fig. 3, Fig. 3.The method is applied to PE, based on above-mentioned application scenarios, PE is configured with main PW opposite end PE and standby PW opposite end PE, wherein, establishes between main PW, PE with standby PW opposite end PE and establish the standby PW corresponding with described main PW between PE and main PW opposite end PE;
Then as shown in Figure 3, this flow process being applied to PE can perform following steps:
Step 301, the link between the CE connect main PW opposite end PE and main PW opposite end PE detects, and when described link failure being detected, taking over described main PW carry out service message forwarding by described standby PW.
Application scenarios as described above, during link failure between PE1 and CE1, because the main PW opposite end PE of configuration is PE1 on PE4, based on the detection of PW, PE4 can detect that PE1 connects the link failure of CE1.When PE4 detects that PE1 connects the link failure of CE1, PE4 will take over main PW for PW and carry out service message forwarding, here, standby PW is the standby PW between upper standby PW opposite end PE and PE3 configured of PE4 and PE4, main PW is the main PW between main PW opposite end PE and PE1 of the upper configuration of PE4 and PE4.Similarly, during link failure between PE2 and CE2, because the main PW opposite end PE of configuration on PE3 is PE2, then based on the detection of PW, PE3 can detect that PE2 connects the link failure of CE2.When PE3 detects that PE2 connects the link failure of CE2, PE3 will take over main PW for PW and carry out service message forwarding, here, standby PW is the standby PW between upper standby PW opposite end PE and PE4 configured of PE3 and PE3, main PW is the main PW between main PW opposite end PE and PE2 of the upper configuration of PE3 and PE3.
Step 302, the link of detection failure, whether from fault recovery, when detecting the link of described fault from fault recovery, performs step 303.
And when detecting the link of above-mentioned fault not from fault recovery, then still perform according to message repeating mode during above-described link failure.
Described standby PW switchback is that described main PW carries out service message forwarding by step 303, and notifies that the interface connecting this PE is deleted as the MAC address entries of outgoing interface by the CE that this PE connects
That is, in this step 303, when detecting the link of above-mentioned fault from fault recovery, except will for PW switchback be main PW proceed service message forward except, also send the CE informing connection, when CE receives the notice of this PE transmission, outgoing interface is just that the MAC address entries of the interface connecting this PE is deleted by CE.
Then the link between above-described link between PE1 and the CE1 in networking shown in Fig. 2, PE2 and CE2 is illustrated from during fault recovery, as shown in table 1, the main PW opposite end PE of the upper configuration of PE4 is PE1, then based on the detection of PW, PE4 can detect that PE1 connects the link of CE1 from fault recovery, when PE4 detects that PE1 connects the link of CE1 from fault recovery, based on the step 303 shown in Fig. 3, then main PW is taken over the former standby PW carrying out work by switchback mode and carries out service message forwarding by PE4.Here, main PW is the main PW between main PW opposite end PE and PE1 of the upper configuration of PE4 and PE4, standby PW is the standby PW between standby PW opposite end PE and PE3 of the upper configuration of PE4 and PE4, and the CE2 that notice connects deletes the MAC address entries that the outgoing interface learnt is the interface of CE2 connection PE4, i.e. above-described MAC address entries 3.
Equally, as shown in table 1, because the main PW opposite end PE of configuration on PE3 is PE2, then based on the detection of PW, PE3 can detect that PE2 connects the link of CE2 from fault recovery.When PE3 detects that PE2 connects the link of CE2 from fault recovery, based on the step 303 shown in Fig. 3, then main PW to be taken over standby PW by switchback mode and carries out service message forwarding by PE3, here, main PW is the main PW between main PW opposite end PE and PE2 of the upper configuration of PE3 and PE3, for the standby PW that PW is between upper standby PW opposite end PE and PE4 configured of PE3 and PE3, and the CE1 that notice connects deletes the MAC address entries that the outgoing interface learnt is the interface of CE1 connection PE3, i.e. above-described MAC address entries 4.
So, when CE1 accesses CE2, because CE1 has deleted MAC address entries 4, then access is now equivalent to CE1 and accesses CE2 first.Based on this, broadcasting service message in the VLAN of CE1 belonging to it.MAC Address (being designated as MAC1), the VLAN1 of VLAN belonging to CE1 that the source MAC of service message of CE1 broadcast is CE1; Because the link between CE1 and PE1 is from fault recovery, then the service message of CE1 broadcast can arrive PE1 and PE3 respectively.
Main PW opposite end PE when PE1 receives from the service message of CE1 broadcast to its configuration continues to forward this service message, as shown in table 1, the main PW opposite end PE of PE1 configuration is PE2, then PE2 can receive service message, find that when PE2 receives service message this service message is sended over by main PW opposite end PE and PE1 of its configuration, then continue to forward this service message to CE2.The service message of final CE1 broadcast is along following path: CE1->PE1->PE2-GreatT.GreaT.G TCE2 arrives CE2.
When PE3 receives the service message of CE1 broadcast, as above describe, main PW is taken over the former standby PW carrying out work by switchback mode and carries out service message forwarding by PE3, then PE3 can continue to forward this service message to main PW opposite end PE and PE2 of its configuration.Find that when PE2 receives service message this service message is sended over by standby PW opposite end PE and PE3 of its configuration, because main PW is taken over the former standby PW carrying out work by switchback mode by PE3 carry out service message forwarding, namely the standby PW now between PE3 and standby PW opposite end PE and PE4 of configuration is not used in service message and forwards, based on this, PE2 acquiescence abandons this service message.In summary it can be seen, the service message of CE1 broadcast can only along following path: CE1->PE1->PE2-GreatT.GreaT.G TCE2 arrives CE2.(MAC address entries 5 is designated as at the source MAC of local mac address table learning service message and MAC address entries corresponding to MAC1 when CE2 receives the service message of CE1 broadcast, it is consistent with MAC address entries 1 above), the MAC address entries 5 of this study at least comprises: MAC1, outgoing interface (CE2 connects the interface of PE2), VLAN1.
Similarly, when CE2 accesses CE1, because CE2 has deleted MAC address entries 3, then access is now equivalent to CE2 and accesses CE1 first.Based on this, broadcasting service message in the VLAN of CE2 belonging to it, MAC Address (being designated as MAC2), the VLAN1 of VLAN belonging to CE2 that the source MAC of service message of CE2 broadcast is CE2; Because the link between CE2 and PE2 is from fault recovery, then the service message of CE2 broadcast can arrive PE2 and PE4 respectively.
Main PW opposite end PE when PE2 receives from the service message of CE2 broadcast to its configuration continues to forward this service message, as shown in table 1, the main PW opposite end PE of PE2 configuration is PE1, then PE1 can receive service message, find that when PE1 receives service message this service message is sended over by main PW opposite end PE and PE2 of its configuration, then forward this broadcasting service message to CE1.The service message of final CE2 broadcast can along following path: CE2->PE2->PE1-GreatT.GreaT.G TCE1 arrives CE1.
When PE4 receives the service message of CE2 broadcast, as mentioned above, main PW is taken over the former standby PW carrying out work by switchback mode and carries out service message forwarding by PE4, then PE4 can continue to forward this message traffic message to main PW opposite end PE and PE1 of its configuration.Find that when PE1 receives service message this service message is sended over by standby PW opposite end PE and PE4 of its configuration, because main PW is taken over standby PW by switchback mode by PE4 carry out service message forwarding, standby PW now between PE4 and standby PW opposite end PE and PE3 of configuration is not used in service message and forwards, and abandons this service message based on this PE1 acquiescence.In summary it can be seen, the service message of CE2 broadcast can only along following path: CE2->PE2->PE1-GreatT.GreaT.G TCE1 arrives CE1.(MAC address entries 6 is designated as at the source MAC of local mac address table learning service message and MAC address entries corresponding to MAC2 when CE1 receives the service message of CE2 broadcast, it is consistent with MAC address entries 2 above), the MAC address entries 6 of this study at least comprises: MAC2, outgoing interface (CE1 connects the interface of PE1), VLAN1.
Can find out, based in the step 302 shown in Fig. 3 and step 303, in the present invention, can ensure that CE1, CE2 are when faulty link recovers, not carry out service message forwarding according to the MAC address entries learnt during link failure, avoid the flow interrupt because fault link-recovery causes according to the MAC address entries forwarding service message learnt during link failure.
As one embodiment of the present of invention, in the present invention, in above-mentioned steps 303, notify that the MAC address entries deletion of the interface of this PE of connection as outgoing interface comprises by the CE that this PE connects:
Belonging to the interface this PE being connected CE, VLAN is carried at the CE sending to this PE to connect in the notice message of setting, the CE connected to make this PE by the interface of this PE of connection as outgoing interface and the MAC address entries deletion of the VLAN of VLAN corresponding to the VLAN that carries in described notice message.This can ensure that CE accurately deletes the MAC address entries that may cause flow interrupt relatively, avoids other irrelevant MAC address entries to be deleted by mistake.
Here, notify that message is: EtherType value is not by the Ethernet message of value used in Ether protocoll.EtherType value in Ether protocoll is the field of two Eight characters joints, and at present, Ether protocoll is for EtherType is assigned with some values, such as 0x0000,0x0101,0x0600 etc., EtherType value is different, and the implication of expression is also different, specifically can see Ether protocoll.Based on Ether protocoll, the EtherType value that the field that the present invention can be two Eight characters joints according to EtherType value arranges described notice message is except Ether protocoll has been the value except the value of EtherType distribution, is such as 0x9300 (0x9300 is also not yet assigned to EtherType in Ether protocoll).
Above method provided by the invention is described.Below equipment provided by the invention is described:
Be equipment structure chart provided by the invention see Fig. 4, Fig. 4.This equipment is applied to PE, described PE is configured with main pseudo-line PW opposite end PE and for establishing main PW between PW opposite end PE, described PE and described main PW opposite end PE, establishes the standby PW corresponding with described main PW between described PE with described standby PW opposite end PE; As shown in Figure 4, this equipment comprises:
Detecting unit, detect for the link between the user network boundary device CE that connects described main PW opposite end PE and described main PW opposite end PE, and during link failure between the CE that main PW opposite end PE connects and main PW opposite end PE, whether detection failure link is from fault recovery;
Control unit, during for detecting the link failure between the connected CE of main PW opposite end PE at described detecting unit, takes over described main PW by described standby PW and carries out service message forwarding; And, when described detecting unit detects faulty link from fault recovery, be that described main PW carries out service message forwarding by described standby PW switchback, and send notice request to notification unit;
Described notification unit, during for receiving described notice request, notifies that the interface connecting this PE is deleted as the MAC address entries of outgoing interface by the CE that this PE connects.
Preferably, described notification unit notifies that the MAC address entries deletion of the interface of this PE of connection as outgoing interface comprises by the CE that this PE connects:
Belonging to the interface this PE being connected CE, VLAN is carried at the CE sending to this PE to connect in the notice message of setting, the CE connected to make this PE by the interface of this PE of connection as outgoing interface and the MAC address entries deletion of the VLAN of VLAN corresponding to the VLAN that carries in described notice message.
Preferably, described notice message is: EtherType value is not by the Ethernet message of value used in Ether protocoll.
Preferably, as shown in Figure 4, this equipment comprises further:
Message process unit, after notifying that at described notification unit CE that this PE connects deletes the MAC address entries satisfied condition learnt, if receive the service message of the CE transmission that this PE connects, described service message is sent to the main PW opposite end PE of the upper configuration of this PE, if receive the service message that described standby PW opposite end PE sends, abandon the service message of reception; If receive the service message that described main PW opposite end PE sends, continue to forward based on service message forwarding-table item the service message received.
So far, complete the device structure shown in Fig. 4 to describe.
In addition, see Fig. 5, present invention also offers the structure chart of another equipment.This equipment is applied to CE, described CE is dual-homed CE, it is corresponding that its service provider network edge equipment PE connected is configured with the corresponding and standby PW opposite end PE of main pseudo-line PW opposite end PE, wherein, establish main PW between described PE and described main PW opposite end PE, between described PW with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; As shown in Figure 5, this equipment comprises:
Receiving element, for receiving the notice that service provider network edge equipment PE sends, described PE be link between the CE that described main PW opposite end PE connects and described main PW opposite end PE from fault recovery and described standby PW switchback is described main PW time the described notice that sends;
Delete cells, for deleting according to described notice the MAC address entries met the following conditions learnt: outgoing interface is the interface connecting described PE.
So far, the equipment structure chart shown in Fig. 5 is completed.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. one kind prevents the method for flow interrupt, the method is applied to service provider network edge equipment PE, described PE is configured with main pseudo-line PW opposite end PE and standby PW opposite end PE, establish main PW between described PE and described main PW opposite end PE, between described PE with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; It is characterized in that, the method comprises:
Link between the user network boundary device CE connect described main PW opposite end PE and described main PW opposite end PE detects;
When described link failure being detected, taking over described main PW by described standby PW and carrying out service message forwarding, and whether detecting described link from fault recovery;
When detecting described link from fault recovery, be that described main PW carries out service message forwarding by described standby PW switchback, and notify that the interface connecting this PE is deleted as the MAC address entries of outgoing interface by the CE that this PE connects.
2. method according to claim 1, is characterized in that, the MAC address entries deletion of the interface of this PE of connection as outgoing interface comprises by the CE that described this PE of notice connects:
Belonging to the interface this PE being connected CE, VLAN is carried at the CE sending to this PE to connect in the notice message of setting, the CE connected to make this PE by the interface of this PE of connection as outgoing interface and the MAC address entries deletion of the VLAN of VLAN corresponding to the VLAN that carries in described notice message.
3. method according to claim 2, is characterized in that, described notice message is: EtherType value is not by the Ethernet message of value used in Ether protocoll.
4. method according to claim 1, is characterized in that, after notifying that CE that this PE connects deletes the MAC address entries satisfied condition learnt, the method comprises further:
Receive the service message of the CE transmission that this PE connects, described service message is sent to the main PW opposite end PE of the upper configuration of this PE;
Receive the service message that described standby PW opposite end PE sends, abandon the service message of reception;
Receive the service message that described main PW opposite end PE sends, continue to forward based on message repeating list item the service message received.
5. one kind prevents the method for flow interrupt, the method is applied to user network boundary device CE, described CE is dual-homed CE, it is corresponding that its service provider network edge equipment PE connected is configured with the corresponding and standby PW opposite end PE of main pseudo-line PW opposite end PE, wherein, establish main PW between described PE and described main PW opposite end PE, between described PW with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; It is characterized in that, the method comprises:
Receive the notice that service provider network edge equipment PE sends, described PE be link between the CE that described main PW opposite end PE connects and described main PW opposite end PE from fault recovery and described standby PW switchback is described main PW time the described notice that sends;
The MAC address entries met the following conditions learnt is deleted: outgoing interface is the interface connecting described PE according to described notice.
6. one kind prevents the equipment of flow interrupt, this equipment is applied to service provider network edge equipment PE, described PE is configured with main pseudo-line PW opposite end PE and standby PW opposite end PE, establish main PW between described PE and described main PW opposite end PE, between described PE with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; It is characterized in that, this equipment comprises:
Detecting unit, detect for the link between the user network boundary device CE that connects described main PW opposite end PE and described main PW opposite end PE, and during link failure between the CE that main PW opposite end PE connects and main PW opposite end PE, whether detection failure link is from fault recovery;
Control unit, during for detecting the link failure between the connected CE of main PW opposite end PE at described detecting unit, takes over described main PW by described standby PW and carries out service message forwarding; And, when described detecting unit detects faulty link from fault recovery, be that described main PW carries out service message forwarding by described standby PW switchback, and send notice request to notification unit;
Described notification unit, during for receiving described notice request, notifies that the interface connecting this PE is deleted as the MAC address entries of outgoing interface by the CE that this PE connects.
7. equipment according to claim 6, is characterized in that, described notification unit notifies that the MAC address entries deletion of the interface of this PE of connection as outgoing interface comprises by the CE that this PE connects:
Belonging to the interface this PE being connected CE, VLAN is carried at the CE sending to this PE to connect in the notice message of setting, the CE connected to make this PE by the interface of this PE of connection as outgoing interface and the MAC address entries deletion of the VLAN of VLAN corresponding to the VLAN that carries in described notice message.
8. equipment according to claim 7, is characterized in that, described notice message is: EtherType value is not by the Ethernet message of value used in Ether protocoll.
9. equipment according to claim 6, is characterized in that, this equipment comprises further:
Message process unit, after notifying that at described notification unit CE that this PE connects deletes the MAC address entries satisfied condition learnt, if receive the service message of the CE transmission that this PE connects, described service message is sent to the main PW opposite end PE of the upper configuration of this PE, if receive the service message that described standby PW opposite end PE sends, abandon the service message of reception; If receive the service message that described main PW opposite end PE sends, continue to forward based on message repeating list item the service message received.
10. one kind prevents the equipment of flow interrupt, this equipment is applied to user network boundary device CE, described CE is dual-homed CE, it is corresponding that its service provider network edge equipment PE connected is configured with the corresponding and standby PW opposite end PE of main pseudo-line PW opposite end PE, wherein, establish main PW between described PE and described main PW opposite end PE, between described PW with described standby PW opposite end PE, establish the standby PW corresponding with described main PW; It is characterized in that, this equipment comprises:
Receiving element, for receiving the notice that service provider network edge equipment PE sends, described PE be link between the CE that described main PW opposite end PE connects and described main PW opposite end PE from fault recovery and described standby PW switchback is described main PW time the described notice that sends;
Delete cells, for deleting according to described notice the MAC address entries met the following conditions learnt: outgoing interface is the interface connecting described PE.
CN201510047512.8A 2015-01-30 2015-01-30 The method and apparatus for preventing flow interrupt Active CN104601381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510047512.8A CN104601381B (en) 2015-01-30 2015-01-30 The method and apparatus for preventing flow interrupt

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510047512.8A CN104601381B (en) 2015-01-30 2015-01-30 The method and apparatus for preventing flow interrupt

Publications (2)

Publication Number Publication Date
CN104601381A true CN104601381A (en) 2015-05-06
CN104601381B CN104601381B (en) 2018-07-20

Family

ID=53126906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510047512.8A Active CN104601381B (en) 2015-01-30 2015-01-30 The method and apparatus for preventing flow interrupt

Country Status (1)

Country Link
CN (1) CN104601381B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600310A (en) * 2018-12-21 2019-04-09 安徽皖兴通信息技术有限公司 A kind of pw linear protection function switchback method of vpls
CN109981452A (en) * 2019-02-28 2019-07-05 新华三技术有限公司 A kind of switchback method and device of PW link
WO2020001389A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Communication method, device and system for avoiding loop

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047601A (en) * 2006-04-10 2007-10-03 华为技术有限公司 Implementing method and system of double-attach network based on VPLS
CN101227397A (en) * 2008-01-28 2008-07-23 华为技术有限公司 System, equipment and method for protecting link circuit
CN101257441A (en) * 2008-02-29 2008-09-03 华为技术有限公司 Method, equipment and system for forwarding message as well as equipment for receiving message
CN101330424A (en) * 2007-06-18 2008-12-24 华为技术有限公司 Method, system and apparatus for processing service fault of virtual special network
CN103560869A (en) * 2013-09-10 2014-02-05 杭州华三通信技术有限公司 VPLS link switching device, auxiliary switching device thereof and method thereof
CN103888353A (en) * 2012-12-19 2014-06-25 北京华为数字技术有限公司 Protection group protection switching cut-back processing method and customer edge equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047601A (en) * 2006-04-10 2007-10-03 华为技术有限公司 Implementing method and system of double-attach network based on VPLS
CN101330424A (en) * 2007-06-18 2008-12-24 华为技术有限公司 Method, system and apparatus for processing service fault of virtual special network
CN101227397A (en) * 2008-01-28 2008-07-23 华为技术有限公司 System, equipment and method for protecting link circuit
CN101257441A (en) * 2008-02-29 2008-09-03 华为技术有限公司 Method, equipment and system for forwarding message as well as equipment for receiving message
CN103888353A (en) * 2012-12-19 2014-06-25 北京华为数字技术有限公司 Protection group protection switching cut-back processing method and customer edge equipment
CN103560869A (en) * 2013-09-10 2014-02-05 杭州华三通信技术有限公司 VPLS link switching device, auxiliary switching device thereof and method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020001389A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Communication method, device and system for avoiding loop
CN110661701A (en) * 2018-06-30 2020-01-07 华为技术有限公司 Communication method, equipment and system for avoiding loop
CN110661701B (en) * 2018-06-30 2022-04-22 华为技术有限公司 Communication method, equipment and system for avoiding loop
CN109600310A (en) * 2018-12-21 2019-04-09 安徽皖兴通信息技术有限公司 A kind of pw linear protection function switchback method of vpls
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

Also Published As

Publication number Publication date
CN104601381B (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN101931520B (en) Switching method and system
CN101009569B (en) Data communication device and the method thereof
CN101330424B (en) Method, system and apparatus for processing service fault of virtual special network
US9871708B2 (en) Method and system for ring protection switching
CN100512148C (en) Convergence method and device based on VPLS dual home full connection network
CN101616082B (en) Method for message processing in VPLS service network and device
CN101924654B (en) Point-to-multipoint service-based path switching method and system
CN102333028A (en) Method and communication equipment for sending messages by using layered bi-layer virtual private network
US20130272114A1 (en) Pseudo wire switching method and device
CN102104520B (en) Ring network protection method and device based on topology information
CN102347889B (en) Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
CN102088415B (en) Method and device for MAC (media access control) address withdrawal
CN101860482B (en) Two-layer virtual private network fast re-route method and device
CN105472049B (en) CGN backup protection method and device for carrier-grade network address conversion
CN100461706C (en) Method for recovering sponsor media accessing control address and operation businesss edge apparatus
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
US8705346B2 (en) Method and system for joint detection of Ethernet part segment protection
CN100446476C (en) Method and apparatus for communicating network trouble dtecting result
CN102064999B (en) Method and equipment for forwarding multicast message
CN101321077B (en) Reliable multicast method, provider edge upper layer device and system
CN102143060B (en) Method and device for building primary pseudowire and spare pseudowire
CN104601381A (en) Method and equipment for preventing flow interruption
CN101989944B (en) Method for local protection of Ethernet tunnel and shared node of protection domain working segment
CN103414642A (en) Maintaining method and device of information forwarding
CN104009919A (en) Message forwarding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant