CN105591806B - A kind of link switch-over method and device - Google Patents

A kind of link switch-over method and device Download PDF

Info

Publication number
CN105591806B
CN105591806B CN201510631918.0A CN201510631918A CN105591806B CN 105591806 B CN105591806 B CN 105591806B CN 201510631918 A CN201510631918 A CN 201510631918A CN 105591806 B CN105591806 B CN 105591806B
Authority
CN
China
Prior art keywords
link
flow
primary
target
mac
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.)
Active
Application number
CN201510631918.0A
Other languages
Chinese (zh)
Other versions
CN105591806A (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510631918.0A priority Critical patent/CN105591806B/en
Publication of CN105591806A publication Critical patent/CN105591806A/en
Application granted granted Critical
Publication of CN105591806B publication Critical patent/CN105591806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of link switch-over method and device, and the method is applied to connect the primary PE of primary link in H-VPLS network, which comprises when detecting primary link breaks, the first link connecting with itself and the second link are converted into hierarchical link;The spare PE is sent by local target MAC (Media Access Control) address, so as to guide the flow to be sent to the primary PE according to the target MAC (Media Access Control) address after the spare PE receives flow by the reserve link;The flow that spare PE is sent is received, the flow is forwarded to the target device according to local the first MAC address entries for instructing flow to forward.Therefore the stability of network can be promoted to avoid the service disconnection during link switching.

Description

A kind of link switch-over method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of link switch-over methods and device.
Background technique
In a VPLS (Virtual Private LAN Service, Virtual Private LAN Service) example, usually It is required that the link between all PE (Provider Edge, the operator edge network equipment) connects entirely.However network size not Break in widened situation, the number of link can also be doubled and redoubled, and make the management of network and extension that will all become complicated.For simplification Network management, H-VPLS (Hierarchical VPLS, Hierarchical Virtual Private LAN Service) technology are come into being.H-VPLS can be by by network It is divided into backbone area and borderline region, to avoid establishing excessive link.
In the prior art, when the primary link in the borderline region of H-VPLS networking breaks down, the forward-path of message It can be switched on reserve link.The forwarding of message is instructed since the PE on reserve link needs to establish VPLS MAC address entries, from And will lead to the service disconnection during the VPLS MAC address entries are established, reduce the stability of network.
Summary of the invention
In view of this, the present invention provides a kind of link switch-over method and device to solve primary link breaks in H-VPLS networking When, reserve link is because establishing the problem of MAC address entries lead to service disconnection.
Specifically, the present invention is achieved through the following technical solutions:
A kind of link switch-over method, the method are applied to connect the primary PE, the H- of primary link in H-VPLS network VPLS network is used to the flow that source equipment is sent being transferred to target device, further includes that connection is spare in the H-VPLS network The spare PE of the link and target PE of linking objective equipment, which comprises
When detecting primary link breaks, the first link connecting with itself and the second link are converted into hierarchical link;
The spare PE is sent by local target MAC (Media Access Control) address, so that the spare PE is received by the reserve link To after flow, the flow is guided to be sent to the primary PE according to the target MAC (Media Access Control) address;
The flow that spare PE is sent is received, instructs the first MAC address entries of flow forwarding by the flow according to local It is forwarded to the target device.
Further, the primary PE is connect by the first link with the spare PE, and the primary PE passes through the second chain Road is connect with the target PE, the method also includes:
Send the spare PE for the MAC Address locally learnt dynamic in advance so that the spare PE receive it is described After target MAC (Media Access Control) address, the second MAC address entries are created, and the flow is passed through into first link according to second MAC address entries It is sent to the primary PE;Wherein the destination address in second MAC address entries be the flow destination address, described second The next-hop of MAC address entries is first link;
It, will according to local the first MAC address entries for instructing flow to forward when receiving the flow of the spare PE forwarding The flow is forwarded to the target PE by second link.
Based on identical design, the present invention also provides another link switch-over method, the method is applied to H-VPLS net The spare PE of reserve link is connected in network, the H-VPLS network is set for the flow that source equipment is sent to be transferred to target It is standby, it further include the target PE for the primary PE and linking objective equipment for connecting primary link, the method in the H-VPLS network Include:
When primary link breaks, the primary PE is received by the first link connecting with itself and the second link and converts ingredient The target MAC (Media Access Control) address sent after layer link;
When receiving flow by the reserve link, sent the flow to according to the target MAC (Media Access Control) address primary PE, so that the link is forwarded to the target device according to the first MAC address entries for instructing flow to forward by the primary PE.
Further, the primary PE is connect by the first link with the spare PE, and the primary PE passes through the second chain Road is connect with the target PE, described to send primary PE for the flow according to the target MAC (Media Access Control) address, comprising:
According to the MAC Address that the target MAC (Media Access Control) address and the primary PE are sent in advance, the second MAC address entries are created, Described in destination address in the second MAC address entries be the flow destination address, the next-hop of second MAC address entries is institute State the first link;
According to second MAC address entries, the primary PE is sent by first link by the flow, so that institute It states primary PE and the flow is forwarded to the target by second link according to the first MAC address entries for instructing flow to forward PE。
Based on identical design, the present invention also provides a kind of link switching device, described device is applied to H-VPLS network The primary PE of middle connection primary link, the H-VPLS network are used to the flow that source equipment is sent being transferred to target device, institute State further includes the spare PE of the connection reserve link and target PE of linking objective equipment, described device packet in H-VPLS network It includes:
Link converting unit, for when detecting primary link breaks, by the first link being connect with itself and the second chain Road is converted into hierarchical link;
Address transmission unit, for sending the spare PE for local target MAC (Media Access Control) address, so that the spare PE is logical It crosses after the reserve link receives flow, guides the flow to be sent to primary PE according to the target MAC (Media Access Control) address;
Flow retransmission unit, the flow sent for receiving spare PE, according to local instruct flow to forward first The flow is forwarded to the target device by MAC address entries.
Further, the primary PE is connect by the first link with the spare PE, and the primary PE passes through the second chain Road is connect with the target PE, described device further include:
Address synchronization unit, for sending the spare PE for the MAC Address locally learnt dynamic in advance, so that described Spare PE creates the second MAC address entries after receiving the target MAC (Media Access Control) address, and according to second MAC address entries by the flow The primary PE is sent to by first link;Wherein the destination address in second MAC address entries is the flow Destination address, the next-hop of second MAC address entries are first link;
The flow retransmission unit, specifically for when receiving the flow of the spare PE forwarding, according to locally referring to The flow is forwarded to the target PE by second link by the first MAC address entries of water conservancy diversion amount forwarding.
Based on identical design, the present invention also provides another link switching device, described device is applied to H-VPLS net The spare PE of reserve link is connected in network, the H-VPLS network is set for the flow that source equipment is sent to be transferred to target It is standby, it further include the target PE for the primary PE and linking objective equipment for connecting primary link, described device in the H-VPLS network Include:
Address receiving unit, in primary link breaks, receiving the first link that the primary PE will be connect with itself The target MAC (Media Access Control) address sent after hierarchical link is converted into the second link;
Flow retransmission unit, for when receiving flow by the reserve link, according to the target MAC (Media Access Control) address by institute It states flow and is sent to primary PE, so that the primary PE forwards the link according to the first MAC address entries for instructing flow to forward To the target device.
Further, the primary PE is connect by the first link with the spare PE, and the primary PE passes through the second chain Road is connect with the target PE,
The flow retransmission unit, specifically for what is sent in advance according to the target MAC (Media Access Control) address and the primary PE MAC Address creates the second MAC address entries, wherein the destination address in second MAC address entries is the destination address of the flow, The next-hop of second MAC address entries is first link;According to second MAC address entries, the flow is passed through described First link is sent to the primary PE, so that the primary PE is according to the first MAC address entries for instructing flow to forward by the stream Amount is forwarded to the target PE by second link.
It can be seen that the present invention can be by other link switchings in addition to primary link for connecting primary PE at layering Link allows spare PE that the flow received is forwarded to primary PE and handles, due to having MAC Address list item on primary PE, because This can direct converting flow, so that the service disconnection during avoiding link switching, promotes the stability of network.
Detailed description of the invention
Fig. 1 is illustrative a kind of H-VPLS group-network construction figure of the invention;
Fig. 2 is a kind of process flow diagram of one of illustrative embodiments of present invention link switch-over method;
Fig. 3 is the process flow diagram of another link switch-over method in a kind of illustrative embodiments of the present invention;
Fig. 4 is the interaction diagrams of link switch-over method in a kind of illustrative embodiments of the present invention;
Fig. 5 a is a kind of flow forwarding process figure in a kind of illustrative embodiments of the present invention;
Fig. 5 b is another flow forwarding process figure in a kind of illustrative embodiments of the present invention;
Fig. 6 a is the hardware configuration of the primary PE where the link switching device in a kind of illustrative embodiments of the present invention Figure;
Fig. 6 b is a kind of building-block of logic of one of illustrative embodiments of present invention link switching device;
Fig. 7 a is the hardware configuration of the primary PE where the link switching device in a kind of illustrative embodiments of the present invention Figure;
Fig. 7 b is a kind of building-block of logic of one of illustrative embodiments of present invention link switching device.
Specific embodiment
The H-VPLS group-network construction figure of Fig. 1 is please referred to, wherein borderline region and backbone area can be divided into, usual borderline region One UPE (User facing-Provider Edge, user oriented PE equipment) of middle deployment, and disposed in backbone area more The identical NPE (Network Provider Edge, the PE equipment of network-oriented) of a function passes through N-PW between them (Pseudo Wire, virtual link) intercommunication.In order to guarantee the stability of H-VPLS networking, UPE would generally be with two in backbone area A NPE establishes link connection respectively, one of them is as primary link, another is as reserve link, such as MU-PW is main chain Road, BU-PW are reserve link.In the state of normal, when CE1 is communicated by H-VPLS networking with CE2, flow can pass through primary link It is forwarded in backbone area, forward-path are as follows: CE1 → UPE → NPE1 → NPE2 → CE2, as indicated by a dashed arrow in the figure.
In VPLS, the MAC Address list item for instructing flow to forward generated after MAC address learning will be generally stored in carrying On the primary PE of primary link.And when primary link failure, the forward-path of the flow would generally be switched on reserve link.At this moment All PE equipment (including UPE and NPE) in H-VPLS networking can all send MAC ((Media Access Control, matchmaker Body access control) message is recycled in address, and the spare PE for carrying reserve link can relearn VPLS MAC address entries, to instruct Forwarding of the flow in H-VPLS networking after link switching.Therefore the process for relearning MAC Address is recovered in MAC Address In, it will lead to the interruption of business.
It is of the existing technology in order to solve the problems, such as, the present invention can by by primary PE connect in addition to primary link Other link switchings allow spare PE that the flow received is forwarded to primary PE and handle, due on primary PE at hierarchical link Existing MAC Address list item, thus can direct converting flow, so that the service disconnection during avoiding link switching, promotes net The stability of network.
Referring to FIG. 2, be a kind of process flow diagram of one of illustrative embodiments of present invention link switch-over method, Wherein the method is applied to connect the primary PE of primary link in H-VPLS network, and the H-VPLS network is used for source equipment The flow of transmission is transferred to target device, further includes connecting the spare PE of reserve link, and connect in the H-VPLS network The target PE of target device, wherein the primary PE is connect by the first link with the spare PE, the primary PE passes through the Two links are connect with the target PE, which comprises
Step 201, when detecting primary link breaks, the first link connecting with itself and the second link are converted into ingredient Layer link;
In the present embodiment, it when primary PE detects primary link failure, in order to guarantee that flow normally forwards, then needs to lead to It crosses reserve link and forwards the traffic to spare PE and handled.But there is no the corresponding MAC address entries of the flow on spare PE, and learn Practise the MAC address entries will lead to service disconnection again, therefore the flow is forwarded to and has the corresponding MAC table of the flow by spare PE needs It is handled on the primary PE of item.However in the backbone network of general H-VPLS network, each PE can be interconnected, in order to prevent Link cyclization, the link state of primary PE and spare PE are arranged to activestandby state, therefore the between primary PE and spare PE The flow of one link can only be sent to spare PE by primary PE, on the contrary then obstructed.In order to solve this problem, primary PE is being detected When to primary link failure, control instruction can be issued to bottom, for first link and the second link of the primary PE connection Identical layered label is distributed, makes have the link of same hierarchical level label mutually reachable, thus not only can be cyclic to avoid link, but also The flow on spare PE can be made to be forwarded to primary PE.
Local target MAC (Media Access Control) address is sent the spare PE by step 202 so that the spare PE pass through it is described standby After receiving flow with link, the flow is guided to be sent to primary PE according to the target MAC (Media Access Control) address;
It in the present embodiment, can after the first link and the second link switching that primary PE connects itself are at hierarchical link To send the spare PE for the local target MAC (Media Access Control) address learnt, so that the spare PE is receiving reserve link forwarding The flow after, when including the corresponding target MAC (Media Access Control) address of the flow in determining the target MAC (Media Access Control) address that primary PE is sent, recognize To there are the MAC address entries for guiding flow forwarding on primary PE, therefore make spare PE that the flow is passed through first link It is sent to primary PE.
In optional embodiment of the present invention, when network environment is relative complex, in order to improve the guide of target MAC (Media Access Control) address Accuracy rate, primary PE can also send the spare PE for the MAC Address dynamic of itself study in advance.So that spare PE is being received To primary PE send purpose MAC when, by compared with received MAC Address before, it is known that on primary PE exist guide the stream Measure the MAC address entries of forwarding.
In optional embodiment of the present invention, when spare PE has the MAC for guiding flow forwarding on determining primary PE After list item, the second MAC address entries can be created for the flow, be handled for flow to be directed on primary PE.Second MAC table Destination address in is the destination address of the flow, and next-hop is first link for connecting the primary PE.It is spare PE can send the primary PE by first link for the flow according to second MAC address entries.
Step 203 receives the flow that spare PE is sent, will according to local the first MAC address entries for instructing flow to forward The flow is forwarded to the target device.
It, can be according to locally for instruct that flow forwards first after primary PE receives the flow of the spare PE forwarding The flow is forwarded to the target PE by second link by MAC address entries, then forwards the traffic to target by target PE Equipment.Due to having existed the corresponding MAC address entries of the flow on primary PE, flow is switched to the process of reserve link forwarding In without re-starting address learning, so that service disconnection will not be caused.
It can be seen that the present invention can be by other link switchings in addition to primary link for connecting primary PE at layering Link allows spare PE that the flow received is forwarded to primary PE and handles, due to having MAC Address list item on primary PE, because This can direct converting flow, so that the service disconnection during avoiding link switching, promotes the stability of network.
Referring to FIG. 3, being the process flow of another link switch-over method in a kind of illustrative embodiments of the present invention Figure, the method are applied to connect the spare PE of reserve link in H-VPLS network, and the H-VPLS network is for setting source The flow that preparation is sent is transferred to target device, further includes connecting the primary PE of primary link, and connect in the H-VPLS network The target PE of target device, wherein the primary PE is connect by the first link with the spare PE, the primary PE passes through the Two links are connect with the target PE, which comprises
Step 301, when primary link breaks, receive the primary PE for the first link connecting with itself and the second link It is converted into the target MAC (Media Access Control) address sent after hierarchical link;
In the present embodiment, when primary link breaks, the first link and the second link for connecting itself in primary PE are cut After changing hierarchical link into, spare PE can receive the target MAC (Media Access Control) address that primary PE is sent.
Step 302, when receiving the flow by the reserve link, according to the target MAC (Media Access Control) address by the stream Amount is sent to primary PE, so that the link is forwarded to institute according to the first MAC address entries for instructing flow to forward by the primary PE State target device.
In the present embodiment, when the flow reaches spare PE by reserve link, spare PE can be by by primary PE The target MAC (Media Access Control) address of transmission is compared with the target MAC (Media Access Control) address of flow, when in the target MAC (Media Access Control) address for determining primary PE transmission When target MAC (Media Access Control) address corresponding including the flow, it is believed that there are the MAC address entries for guiding flow forwarding on primary PE, because This is spare can to send primary PE by first link for the flow, then flow is passed through the second link by primary PE The target device is forwarded to target PE.
In optional embodiment of the present invention, when network environment is relative complex, in order to improve the guide of target MAC (Media Access Control) address Accuracy rate, primary PE can send stand-by equipment for the MAC Address dynamic of itself study, therefore spare PE can synchronize acquisition The MAC Address that primary PE learns.When spare PE receives the target MAC (Media Access Control) address that primary PE is sent, pass through preamble therewith MAC Address compares, it is known that there are the MAC address entries for guiding flow forwarding on primary PE.Due on spare PE without the flow MAC address entries, in order to avoid because of service disconnection caused by relearning list item, spare PE can create the second MAC address entries for the flow, Wherein the destination address in second MAC address entries is the destination address of the flow, and the next-hop of second MAC address entries is Connect first link of the primary PE.Then spare PE can be forwarded the traffic to primary according to second MAC address entries PE.Due on primary PE exist instruct the flow forward the first MAC address entries, target PE can be sent traffic to, then Target device is forwarded to through target PE.
It can be seen that the present invention can be by other link switchings in addition to primary link for connecting primary PE at layering Link allows spare PE that the flow received is forwarded to primary PE and handles, due to having MAC Address list item on primary PE, because This can direct converting flow, so that the service disconnection during avoiding link switching, promotes the stability of network.
After the link is forwarded to target device by target PE, the target device can be received and answered for what the flow returned Answer flow.Due to the MAC Address that the source address of the flow is source equipment, destination address is the MAC Address of target device, so The source address of the response flow is then the MAC Address of the target device, and destination address is the MAC Address of source equipment.Target When PE receives the response flow, optimal path can be calculated according to the source address and destination address of the response flow and be forwarded. For example, when there are when third link, being learned since target PE can send itself to spare PE between spare PE and target PE The MAC Address practised, therefore the new MAC address entries for guiding flow forwarding can be generated in spare PE, next-hop therein is then Third link.Specific implementation is referred to existing optimal path computation method, and details are not described herein again.
It should be noted that since primary PE can only convert the link of primary PE connection when converting hierarchical link, it cannot The third link between spare PE and target PE is converted, thus in the first converting flow of spare PE, third chain cannot be passed through Road is forwarded to target PE.When MAC Address recycles and recalculates optimal path in networking, the third link be just defaulted as with BU-PW belongs to same layer, therefore flow can be forwarded directly to target PE by third link by spare PE.So, standby It can be forwarded directly to target PE with the flow on PE, so as to optimize forward-path, improve forward efficiency.
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, below based on the H-VPLS group rack of Fig. 1 Composition is described in further detail scheme of the present invention.
In the H-VPLS networking of Fig. 1, NPE-1 and NPE-3 in UPE and backbone area pass through primary link MU-PW respectively It is connected with reserve link BU-PW.NPE-1, NPE2, NPE-3 and NPE-4 are deployed in backbone area, wherein NPE-1 and NPE-3 It is connected by NPW-1;NPE-1 is connected with NPE-2 by NPW-2;NPE-2 is connected with NPE-3 by NPW-3;NPE-2 and NPE- 4 pass through NPW-4 connection;NPE-3 is connected with NPE-4 by NPW-5;NPE-1 is connected with NPE-4 by NPW-6.CE1, CE3 points It is not connect with UPE, NPE-2 is connect with CE2, and NPE-4 is connect with CE4.It is identical it is normal in the state of, CE1 passes through H-VPLS group When net is communicated with CE2, flow can be forwarded in backbone area by primary link, forward-path are as follows: and CE1 → UPE → NPE1 → NPE2→CE2。
When primary link failure, the forward-path of the flow would generally be switched on reserve link, at this time the H-VPLS group The interaction flow of link switching in net as shown in figure 4, including:
When NPE-1 detects that MU-PW link breaks down, NPE-1 issues control instruction, by itself connection NPW-1, NPW-2, NPW-6 switch to layering PW, and add layered label, such as VPLS-ID=1 for NPW-1, NPW-2, NPW-6.Later Itself the destination of study MAC Address can be handed down to NPE-3 by NPE-1.Such as A-A-A, B-B-B etc..
When NPE-3 receives flow by BU-PW, NPE-3 can by NPE-1 send target MAC (Media Access Control) address in advance from NPE-1 synchronous MAC Address compares, if identical as the target MAC (Media Access Control) address from the synchronous MAC Address of NPE-1 in advance, it is determined that The MAC address entries for instructing flow to forward are on NPE-1.Therefore NPE-3, which can create the second MAC address entries, should guide to NPE- for flow 1, second MAC address entries, as shown in table 1.
Source address Destination address VPLS-ID Next-hop
C-C-C A-A-A 1 NPW-1
Table 1
Since NPW-1, NPW-2 have been converted into hierarchical link, NPE-3 can be according to second MAC address entries, will Flow is forwarded to NPE-1 by NPW-1.
After NPE-1 receives the flow, the flow can be passed through into NPW-2 according to the first MAC address entries for instructing the flow to forward It is forwarded to NPE-2.Wherein first MAC address entries are as shown in table 2.
Source address Destination address VPLS-ID Next-hop
C-C-C A-A-A 1 NPW-2
Table 2
Wherein, C-C-C is the MAC Address of source device CE1, and A-A-A is the MAC Address of target device CE2.
After NPE-2 receives the flow of NPE-1 transmission, target device CE2, forwarding process such as Fig. 5 a can be forwarded the traffic to It is shown, forward-path are as follows: CE1 → UPE → NPE3 → NPE1 → NPE2 → CE2, dotted arrow direction is flow forwarding in figure Direction.
When CE2 returns to response flow to CE1, NPE-2 can learn and establish third MAC address entries, as shown in table 3.With The third MAC address entries can be sent to NPE-3 by the notification message of LDP by NPE-2 afterwards.And by response stream Amount is forwarded to NPE-3 by NPW-3.
Source address Destination address VPLS-ID Next-hop
A-A-A C-C-C 1 NPW-3
Table 3
When response flow can be forwarded to UPE by BU-PW by NPE-3, then CE1 is forwarded to by UPE.
In addition, NPE-3 can be according to the third MAC address entries be received, in the link of locally matching VPLS-ID=1, then Optimal forward-path is selected in the link of VPLS-ID=1, and generates corresponding 4th MAC address entries, as shown in table 4.And with should 4th MAC address entries replace the second MAC address entries, to instruct to go to the flow forwarding of CE2.
Source address Destination address VPLS-ID Next-hop
C-C-C A-A-A 1 NPW-3
Table 4
Therefore the subsequent flow for going to CE2 can be forwarded to NPE-2 by NPW-3, and forwarding process is as shown in Figure 5 b, Its forward-path are as follows: CE1 → UPE → NPE-3 → NPE-2 → CE2, dotted arrow direction is flow routing direction in figure.
It can be seen that the present invention can be by other link switchings in addition to primary link for connecting primary PE at layering Link allows spare PE that the flow received is forwarded to primary PE and handles, due to having MAC Address list item on primary PE, because This can direct converting flow, so that the service disconnection during avoiding link switching, promotes the stability of network, and subsequent Forward efficiency can be promoted by transformation forward-path in repeating process.
Based on identical design, the present invention also provides a kind of link switching device, described device can by software realization, It can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, link switching device of the invention is made It is by the CPU of PE primary where it by computer program instructions corresponding in memory for the device on a logical meaning It is run after reading.
Fig. 6 a and Fig. 6 b is please referred to, is a kind of one of illustrative embodiments of present invention link switching device 600, institute Device 600 is stated applied to the primary PE for connecting primary link in H-VPLS network, the H-VPLS network is for sending out source equipment The flow sent is transferred to target device, further includes connecting the spare PE of reserve link, and connect mesh in the H-VPLS network The target PE of marking device, the basic running environment of described device 600 includes CPU, memory and other hardware, from logic level From the point of view of, described device 600 includes:
Link converting unit 601, for when detecting primary link breaks, by the first link being connect with itself and second Link is converted into hierarchical link;
Address transmission unit 602, for sending the spare PE for local target MAC (Media Access Control) address, so that described spare After PE receives flow by the reserve link, the flow is guided to be sent to primary PE according to the target MAC (Media Access Control) address;
Flow retransmission unit 603, the flow sent for receiving spare PE, according to local instruct that flow forwards the The flow is forwarded to the target device by one MAC address entries.
Optionally, the primary PE is connect by the first link with the spare PE, and the primary PE passes through the second link It is connect with the target PE, described device 600 further include:
Address synchronization unit 604, for sending the spare PE for the MAC Address locally learnt dynamic in advance, so that The spare PE creates the second MAC address entries after receiving the target MAC (Media Access Control) address, and will be described according to second MAC address entries Flow is sent to the primary PE by first link;Wherein the destination address in second MAC address entries is the stream The destination address of amount, the next-hop of second MAC address entries are first link;
The flow retransmission unit 603, specifically for when receiving the flow of the spare PE forwarding, according to local The flow is forwarded to the target PE by second link by the first MAC address entries for instructing flow to forward.
Based on identical design, the present invention also provides another link switching device, described device can pass through software reality It is existing, it can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, link switching device of the invention It is to be referred to computer program corresponding in memory by the CPU of PE spare where it as the device on a logical meaning It enables and being run after reading.
Fig. 7 a and Fig. 7 b is please referred to, is another link switching device 700 in a kind of illustrative embodiments of the present invention, Described device 700 is applied to connect the spare PE of reserve link in H-VPLS network, and the H-VPLS network is for setting source The flow that preparation is sent is transferred to target device, further includes connecting the primary PE of primary link, and connect in the H-VPLS network The target PE of target device, the basic running environment of described device 700 includes CPU, memory and other hardware, from logic level On from the point of view of, described device 700 includes:
Address receiving unit 701, in primary link breaks, receiving the first chain that the primary PE will be connect with itself Road and the second link are converted into the target MAC (Media Access Control) address sent after hierarchical link;
Flow retransmission unit 702, for when receiving flow by the reserve link, according to the target MAC (Media Access Control) address Primary PE is sent by the flow, so that the primary PE is according to the first MAC address entries for instructing flow to forward by the link It is forwarded to the target device.
Optionally, the primary PE is connect by the first link with the spare PE, and the primary PE passes through the second link It connect, the flow retransmission unit 702, is specifically used for according to the target MAC (Media Access Control) address and described primary with the target PE The MAC Address that PE is sent in advance creates the second MAC address entries, wherein the destination address in second MAC address entries is the flow Destination address, the next-hops of second MAC address entries is first link;According to second MAC address entries, by the stream Amount is sent to the primary PE by first link, so that the primary PE is according to the first MAC table for instructing flow to forward The flow is forwarded to the target PE by second link by item.
In conclusion the present invention can be by other link switchings in addition to primary link for connecting primary PE at layering Link allows spare PE that the flow received is forwarded to primary PE and handles, due to having MAC Address list item on primary PE, because This can direct converting flow, so that the service disconnection during avoiding link switching, promotes the stability of network.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (8)

1. a kind of link switch-over method, which is characterized in that the method is applied to connect the primary of primary link in H-VPLS network PE, the H-VPLS network are used to the flow that source equipment is sent being transferred to target device, also wrap in the H-VPLS network Include the spare PE of the connection reserve link and target PE of linking objective equipment, which comprises
When detecting primary link breaks, the first link connecting with itself and the second link are converted into hierarchical link;
The spare PE is sent by local target MAC (Media Access Control) address, so that the spare PE receives stream by the reserve link After amount, the flow is guided to be sent to the primary PE according to the target MAC (Media Access Control) address;
The flow that spare PE is sent is received, is forwarded the flow according to local the first MAC address entries for instructing flow to forward To the target device.
2. the method according to claim 1, wherein the primary PE is connected by the first link and the spare PE It connecing, the primary PE is connect by the second link with the target PE, the method also includes:
The spare PE is sent by the MAC Address locally learnt dynamic in advance, so that the spare PE is receiving the purpose After MAC Address, the second MAC address entries are created, and send the flow by first link according to second MAC address entries To the primary PE;Wherein the destination address in second MAC address entries is the destination address of the flow, the 2nd MAC The next-hop of list item is first link;
It, will be described according to local the first MAC address entries for instructing flow to forward when receiving the flow of the spare PE forwarding Flow is forwarded to the target PE by second link.
3. a kind of link switch-over method, which is characterized in that the method is applied to connect the standby of reserve link in H-VPLS network With PE, the H-VPLS network is used to for the flow that source equipment is sent being transferred to target device, goes back in the H-VPLS network Including connecting the primary PE of the primary link and target PE of linking objective equipment, which comprises
When primary link breaks, the primary PE is received by the first link connecting with itself and the second link and is converted into layering chain The target MAC (Media Access Control) address sent behind road;
When receiving flow by the reserve link, primary PE is sent for the flow according to the target MAC (Media Access Control) address, with Make the primary PE that the link are forwarded to the target device according to the first MAC address entries for instructing flow to forward.
4. according to the method described in claim 3, it is characterized in that, the primary PE is connected by the first link and the spare PE It connects, the primary PE is connect by the second link with the target PE, described to be sent out the flow according to the target MAC (Media Access Control) address It is sent to primary PE, comprising:
According to the MAC Address that the target MAC (Media Access Control) address and the primary PE are sent in advance, the second MAC address entries are created, wherein institute State the destination address that destination address in the second MAC address entries is the flow, the next-hop of second MAC address entries is described the One link;
According to second MAC address entries, the primary PE is sent by first link by the flow, so that the master The flow is forwarded to the target PE by second link according to the first MAC address entries for instructing flow to forward with PE.
5. a kind of link switching device, which is characterized in that described device is applied to connect the primary of primary link in H-VPLS network PE, the H-VPLS network are used to the flow that source equipment is sent being transferred to target device, also wrap in the H-VPLS network It includes the spare PE of connection reserve link and the target PE of linking objective equipment, described device includes:
Link converting unit, for when detecting primary link breaks, the first link connecting with itself and the second link to be turned Change hierarchical link into;
Address transmission unit, for sending the spare PE for local target MAC (Media Access Control) address, so that the spare PE passes through institute It states after reserve link receives flow, guides the flow to be sent to primary PE according to the target MAC (Media Access Control) address;
Flow retransmission unit, the flow sent for receiving spare PE, according to local the first MAC table for instructing flow to forward The flow is forwarded to the target device by item.
6. device according to claim 5, which is characterized in that the primary PE is connected by the first link and the spare PE It connects, the primary PE is connect by the second link with the target PE, described device further include:
Address synchronization unit, for sending the spare PE for the MAC Address locally learnt dynamic in advance, so that described spare PE creates the second MAC address entries after receiving the target MAC (Media Access Control) address, and is passed through the flow according to second MAC address entries First link is sent to the primary PE;Wherein the destination address in second MAC address entries is the purpose of the flow Address, the next-hop of second MAC address entries are first link;
The flow retransmission unit, specifically for being flowed according to local guidance when receiving the flow of the spare PE forwarding The flow is forwarded to the target PE by second link by the first MAC address entries of amount forwarding.
7. a kind of link switching device, which is characterized in that described device is applied to connect the standby of reserve link in H-VPLS network With PE, the H-VPLS network is used to for the flow that source equipment is sent being transferred to target device, goes back in the H-VPLS network The target PE of primary PE and linking objective equipment including connection primary link, described device include:
Address receiving unit receives the primary PE for the first link connecting with itself and the in primary link breaks Two links are converted into the target MAC (Media Access Control) address sent after hierarchical link;
Flow retransmission unit, for when receiving flow by the reserve link, according to the target MAC (Media Access Control) address by the stream Amount is sent to primary PE, so that the link is forwarded to institute according to the first MAC address entries for instructing flow to forward by the primary PE State target device.
8. device according to claim 7, which is characterized in that the primary PE is connected by the first link and the spare PE It connecing, the primary PE is connect by the second link with the target PE,
The flow retransmission unit, specifically for the MAC that is sent in advance according to the target MAC (Media Access Control) address and the primary PE Location creates the second MAC address entries, wherein destination address in second MAC address entries is the destination address of the flow, described the The next-hop of two MAC address entries is first link;According to second MAC address entries, the flow is passed through into first chain Road is sent to the primary PE, so that the primary PE passes through the flow according to the first MAC address entries for instructing flow to forward Second link is forwarded to the target PE.
CN201510631918.0A 2015-09-29 2015-09-29 A kind of link switch-over method and device Active CN105591806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510631918.0A CN105591806B (en) 2015-09-29 2015-09-29 A kind of link switch-over method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510631918.0A CN105591806B (en) 2015-09-29 2015-09-29 A kind of link switch-over method and device

Publications (2)

Publication Number Publication Date
CN105591806A CN105591806A (en) 2016-05-18
CN105591806B true CN105591806B (en) 2019-04-09

Family

ID=55931065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510631918.0A Active CN105591806B (en) 2015-09-29 2015-09-29 A kind of link switch-over method and device

Country Status (1)

Country Link
CN (1) CN105591806B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107949021B (en) * 2017-11-15 2019-12-03 维沃移动通信有限公司 Switch the method and terminal device of receives link in terminal device
CN111614554B (en) * 2020-05-20 2022-02-01 中国联合网络通信集团有限公司 Route switching method, control device, multi-route network system and storage medium
CN114340041A (en) * 2020-09-29 2022-04-12 华为技术有限公司 Data transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123531A (en) * 2006-12-30 2008-02-13 华为技术有限公司 Convergence method and device based on VPLS dual home full connection network
CN102098231A (en) * 2011-03-18 2011-06-15 杭州华三通信技术有限公司 Method and equipment for fast switching flow in H-VPLS (H-virtual private lan service)
CN102333028A (en) * 2011-06-22 2012-01-25 杭州华三通信技术有限公司 Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN102664788A (en) * 2012-04-05 2012-09-12 中兴通讯股份有限公司 CE dual-homed link protection method in MPLS L3VPN and system thereof
CN103546379A (en) * 2013-10-30 2014-01-29 杭州华三通信技术有限公司 Device and method for upgrading MAC address table entries in VPLS

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8107386B2 (en) * 2008-02-07 2012-01-31 Cisco Technology, Inc. VPLS N-PE redundancy using pseudo wire fast failover

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123531A (en) * 2006-12-30 2008-02-13 华为技术有限公司 Convergence method and device based on VPLS dual home full connection network
CN102098231A (en) * 2011-03-18 2011-06-15 杭州华三通信技术有限公司 Method and equipment for fast switching flow in H-VPLS (H-virtual private lan service)
CN102333028A (en) * 2011-06-22 2012-01-25 杭州华三通信技术有限公司 Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN102664788A (en) * 2012-04-05 2012-09-12 中兴通讯股份有限公司 CE dual-homed link protection method in MPLS L3VPN and system thereof
CN103546379A (en) * 2013-10-30 2014-01-29 杭州华三通信技术有限公司 Device and method for upgrading MAC address table entries in VPLS

Also Published As

Publication number Publication date
CN105591806A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US8711863B2 (en) Virtual links in a routed ethernet mesh network
CN101616082B (en) Method for message processing in VPLS service network and device
CN100450039C (en) Fast convergence method and device of the end-to-end service
CN104283789B (en) Route convergent method and system
CN102377680B (en) Route convergence method and device
CN102364900B (en) Based on the data transmission method of FRR and equipment in a kind of IRF system
CN101651630A (en) Switching method and switching device based on link fault
CN101860482B (en) Two-layer virtual private network fast re-route method and device
US10320653B2 (en) Route topology discovery in data networks
WO2014022726A1 (en) Label distribution and route installation in a loop-free routing topology using routing arcs
CN104270231B (en) A kind of system and method for realizing binode interconnection pseudo-wire
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
CN102611629B (en) Fast re-route method and device in MPLS (Multi-Protocol Label Switching)
CN103036787A (en) Network route convergence processing method and network route convergence processing device
CN103023773A (en) Method, device and system for forwarding message in multi-topology network
CN105591806B (en) A kind of link switch-over method and device
EP3255838B1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN103532840A (en) Link switching method and link switching device
CN105763439A (en) Data center interconnection (DCI) method and device in transparent interconnection of lots of links (TRILL) network
CN103178976A (en) Method for multicast tree establishment and fault restoration
CN104937878A (en) Method to setup protocol independent multicast trees in the presence of unidirectional tunnels
CN103152265A (en) Message forwarding method and equipment in SPB (Shortest Path Bridge) network
CN104883300B (en) A kind of method and apparatus of message transmissions
CN103973498B (en) A kind of many home network active-standby path systems of selection and equipment
CN104753820A (en) Asymmetric forwarding method and device for service stream in aggregated link and switch

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