CN106385373B - Traffic transmission method and device - Google Patents

Traffic transmission method and device Download PDF

Info

Publication number
CN106385373B
CN106385373B CN201510448442.7A CN201510448442A CN106385373B CN 106385373 B CN106385373 B CN 106385373B CN 201510448442 A CN201510448442 A CN 201510448442A CN 106385373 B CN106385373 B CN 106385373B
Authority
CN
China
Prior art keywords
tunnel
instance
node
route
label
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
CN201510448442.7A
Other languages
Chinese (zh)
Other versions
CN106385373A (en
Inventor
石浩鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510448442.7A priority Critical patent/CN106385373B/en
Priority to PCT/CN2016/080221 priority patent/WO2016180225A1/en
Publication of CN106385373A publication Critical patent/CN106385373A/en
Application granted granted Critical
Publication of CN106385373B publication Critical patent/CN106385373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a flow transmission method and a device, wherein the flow transmission method comprises the following steps: building a recovery route for the first tunnel with the fault; exchanging a first instance of an original route of the first tunnel on an edge device PE node with a second instance of a recovery route on the PE node, and modifying an outgoing label of a node of the first tunnel adjacent to the PE node according to the second instance; and switching the traffic transmitted on the first tunnel to the recovery route of the first tunnel for transmission. The problem that the traffic is easily interrupted momentarily when the traffic is switched between the recovery route and the original route in the related art is solved, and the effect of ensuring normal operation of the traffic when the traffic is switched between the recovery route and the original route is further achieved.

Description

Traffic transmission method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a traffic transmission method and apparatus.
Background
In a static model of a current Packet Transport Network (PTN) Network, two static tunnels are protected by a protection subnet, and a binding relationship is established between a pseudowire and a working tunnel therein. When the working tunnel has a fault, the protection groups at two ends are coordinated to carry out switching through an APS protocol, and the flow is switched to the protection tunnel. In the process, the configuration of the pseudo wires and the simulation service is not influenced, and the service cannot cause instantaneous interruption.
When a Software Defined Network (SDN) technology is implemented in a PTN Network, dynamic recovery needs to be implemented based on an existing static model. In return permanent 1: 1, when a working tunnel fails, in addition to protection switching, a failure-free route, called a restoration route of the working tunnel, needs to be recalculated for the working tunnel, and after the restoration route is built, the protection switching action is cancelled, and traffic is switched from the protection tunnel to the restoration route of the working tunnel.
When the failure of the original working tunnel disappears, the traffic needs to be switched from the recovery route of the working tunnel to the original route, which is called the return of dynamic recovery.
However, in the related art, there is no mature technology for realizing dynamic restoration under a static PTN model, and in the related art, when switching traffic between a restoration route and an original route, an adopted scheme is to modify a binding relationship between a pseudo wire and a tunnel, but the adoption of the scheme is easy to cause a transient interruption of service.
Aiming at the problem that the traffic is easy to be interrupted instantly when the flow is switched between the recovery route and the original route in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a traffic transmission method and a traffic transmission device, which at least solve the problem that the traffic is easily interrupted instantaneously when the traffic is switched between a recovery route and an original route in the related art.
According to an aspect of the present invention, there is provided a traffic transmission method, including: building a recovery route for the first tunnel with the fault; exchanging a first instance of an original route of the first tunnel on an edge device (PE) node with a second instance of the recovery route on the PE node, and modifying outgoing labels of nodes adjacent to the PE node of the first tunnel according to the second instance; and switching the traffic transmitted on the first tunnel to the recovery route of the first tunnel for transmission.
Optionally, the exchanging the first instance of the original route of the first tunnel on the edge device PE node and the second instance of the restoration route on the PE node includes: modifying the first instance according to the restoration route and modifying the second instance according to the first instance; wherein modifying the first instance according to the restoration route includes at least one of: modifying the forwarding interface and the next hop Internet protocol IP of the first instance into the forwarding interface and the IP corresponding to the recovery route; modifying the outgoing label of the first instance into a label matched with the incoming label of the recovery route adjacent node; modifying the second instance according to the first instance comprises: and modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the second example into the forwarding interface, the next hop IP and the outgoing label of the first example, wherein the incoming label of the second example is a redistributed incoming label.
Optionally, modifying the out-label of the node of the first tunnel adjacent to the PE node according to the second instance includes: modifying an outgoing label of a node of the first tunnel that is adjacent to the PE node to a label that matches an incoming label of the second instance on the PE node.
Optionally, after switching the traffic to the restoration route of the first tunnel for transmission, the method further includes: after the first tunnel is determined to be recovered to be normal, the exchanged first instance is recovered, and the label of the node adjacent to the PE node of the first tunnel after modification is recovered; and switching the flow to the original route of the first tunnel for transmission.
Optionally, the resuming the exchanged first instance comprises: modifying the forwarding interface, next hop Internet Protocol (IP) and outgoing label of the exchanged first instance into the forwarding interface, next hop IP and outgoing label of the first instance before the first instance and the second instance are exchanged; restoring the modified out-labels of the nodes of the first tunnel that are adjacent to the PE node comprises: and modifying the modified outgoing label of the node of the first tunnel, which is adjacent to the PE node, into the outgoing label of the node before modifying the outgoing label of the node of the first tunnel, which is adjacent to the PE node, according to the second instance.
Optionally, before building the restoration route for the failed first tunnel, the method further includes: and switching the flow transmitted on the first tunnel with the fault to a second tunnel for transmission.
According to another aspect of the present invention, there is provided a traffic transmitting apparatus, including: the building module is used for building a recovery route for the first tunnel with the fault; a processing module, configured to interchange a first instance of an original route of the first tunnel on an edge device PE node and a second instance of the restoration route on the PE node, and modify an outgoing label of a node of the first tunnel adjacent to the PE node according to the second instance; and the first switching module is used for switching the flow transmitted on the first tunnel to the recovery route of the first tunnel for transmission.
Optionally, when a first instance of an original route of the first tunnel on an edge device PE node and a second instance of the restoration route on the PE node are exchanged, the processing module includes: a first modification unit configured to modify the first instance according to the restoration route and to modify the second instance according to the first instance; wherein modifying the first instance according to the restoration route includes at least one of: modifying the forwarding interface and the next hop Internet protocol IP of the first instance into the forwarding interface and the IP corresponding to the recovery route; modifying the outgoing label of the first instance into a label matched with the incoming label of the recovery route adjacent node; modifying the second instance according to the first instance comprises: and modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the second example into the forwarding interface, the next hop IP and the outgoing label of the first example, wherein the incoming label of the second example is a redistributed incoming label.
Optionally, when the out-label of the node adjacent to the PE node of the first tunnel is modified according to the second instance, the processing module includes: a second modifying unit, configured to modify an outgoing label of a node of the first tunnel that is adjacent to the PE node to a label that matches an incoming label of the second instance on the PE node.
Optionally, the apparatus further comprises: a recovery module, configured to recover the exchanged first instance and recover the modified outgoing label of the node, adjacent to the PE node, of the first tunnel after it is determined that the first tunnel is recovered to normal; and the second switching module is used for switching the flow to the original route of the first tunnel for transmission.
Optionally, when the exchanged first instance is recovered, the recovering module includes: modifying the forwarding interface, next hop Internet Protocol (IP) and outgoing label of the exchanged first instance into the forwarding interface, next hop IP and outgoing label of the first instance before the first instance and the second instance are exchanged; upon recovering the modified out-labels of nodes of the first tunnel that are adjacent to the PE node, the recovery module includes: and modifying the modified outgoing label of the node of the first tunnel, which is adjacent to the PE node, into the outgoing label of the node before modifying the outgoing label of the node of the first tunnel, which is adjacent to the PE node, according to the second instance.
Optionally, the apparatus further comprises: and the third switching module is used for switching the flow transmitted on the first tunnel with the fault to a second tunnel for transmission before the restoration route is established for the first tunnel with the fault.
According to the invention, a recovery route is established for the first tunnel with the fault; exchanging a first instance of an original route of the first tunnel on an edge device (PE) node with a second instance of the recovery route on the PE node, and modifying outgoing labels of nodes adjacent to the PE node of the first tunnel according to the second instance; the traffic transmitted on the first tunnel is switched to the recovery route of the first tunnel for transmission, so that the problem that the traffic is easily interrupted momentarily when the traffic is switched between the recovery route and the original route in the related art is solved, and the effect of ensuring normal operation of the traffic when the traffic is switched between the recovery route and the original route is further achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flow chart of a traffic transmission method according to an embodiment of the present invention;
fig. 2 is a block diagram of a structure of a traffic transmitting apparatus according to an embodiment of the present invention;
fig. 3 is a first block diagram of the processing module 24 in the traffic transmission apparatus according to the embodiment of the present invention;
fig. 4 is a block diagram ii of the processing module 24 in the traffic transmission device according to the embodiment of the present invention;
FIG. 5 is a block diagram of a preferred structure of a traffic transmitting device according to an embodiment of the present invention;
fig. 6 is a block diagram of a preferred structure of a traffic transmission device according to an embodiment of the present invention;
fig. 7 is a first schematic diagram of a working tunnel and a protection tunnel according to a first embodiment of the present invention;
fig. 8 is a schematic diagram of a working tunnel and a protection tunnel according to the first embodiment of the present invention;
fig. 9 is a schematic diagram of a working tunnel and a protection tunnel according to a second embodiment of the present invention;
fig. 10 is a schematic diagram of a second working tunnel and a second protection tunnel according to a second embodiment of the present invention;
fig. 11 is a schematic diagram of a working tunnel and a protection tunnel according to a third embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a traffic transmission method is provided, and fig. 1 is a flowchart of a traffic transmission method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, a recovery route is built for the first tunnel with the fault;
step S104, a first instance of an original route of the first tunnel on the edge equipment PE node and a second instance of a recovery route on the PE node are exchanged, and outgoing labels of nodes adjacent to the PE node of the first tunnel are modified according to the second instance;
and step S106, switching the flow transmitted on the first tunnel to the recovery route of the first tunnel for transmission.
Through the steps, before the flow is switched to the recovery route from the original route, the instance of the original route on the PE node and the instance of the recovery route on the PE node are exchanged, the binding relationship between the pseudo wire and the tunnel is not modified, namely, the pseudo wire configuration and the tunnel protection configuration do not need to be changed, so that the transient interruption of the service can not be caused, the problem that the transient interruption of the service is easily caused when the flow is switched between the recovery route and the original route in the related technology is solved, and the effect of ensuring the normal operation of the service when the flow is switched between the recovery route and the original route is achieved.
In an optional embodiment, when a first instance of an original route of a first tunnel on an edge device PE node and a second instance of a restoration route on the PE node are exchanged, the method includes: modifying a first instance according to the restoration route and modifying a second instance according to the first instance; wherein modifying the first instance based on the restoration route includes at least one of: modifying the forwarding interface and the next hop Internet protocol IP of the first example into the forwarding interface and the IP corresponding to the recovery route; modifying the outgoing label of the first instance into a label matched with the incoming label of the adjacent node of the restoration route; modifying the second instance according to the first instance includes: and modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the second example into the forwarding interface, the next hop IP and the outgoing label of the first example, wherein the incoming label of the second example is a redistributed incoming label.
In an optional embodiment, modifying the out-label of the node of the first tunnel adjacent to the PE node according to the second example includes: an outgoing label of a node of the first tunnel adjacent to the PE node is modified to a label that matches an incoming label of a second instance on the PE node. Wherein the label matching the incoming label of the second instance on the PE node may be the same label as the incoming label of the second instance.
In an optional embodiment, after switching the traffic to the restoration route of the first tunnel for transmission, the method further includes: after the first tunnel is determined to be recovered to be normal, the first instance after the interchange is recovered, and the label output of the node adjacent to the PE node of the modified first tunnel is recovered; and switching the flow to the original route of the first tunnel for transmission.
In an alternative embodiment, the resuming the interchanged first instance comprises: modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the first example after the interchange into the forwarding interface, the next hop IP and the outgoing label of the first example before the interchange of the first example and the second example; restoring the out-labels of the nodes of the modified first tunnel adjacent to the PE node comprises: and modifying the modified outgoing label of the node adjacent to the PE node of the first tunnel into the outgoing label of the node before modifying the outgoing label of the node adjacent to the PE node of the first tunnel according to the second example.
In an optional embodiment, before building the restoration route for the failed first tunnel, the method further includes: and switching the traffic transmitted on the first tunnel with the fault to a second tunnel for transmission. The first tunnel may be a working tunnel and the second tunnel is a protection tunnel, or the first tunnel is a protection tunnel and the second tunnel is a working tunnel.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a traffic transmission device is further provided, and the traffic transmission device is used to implement the foregoing embodiments and preferred embodiments, and the description of the traffic transmission device that has been already described is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a flow transmission device according to an embodiment of the present invention, and as shown in fig. 2, the device includes a building module 22, a processing module 24, and a first switching module 26, which will be described below.
A building module 22, configured to build a restoration route for the failed first tunnel; a processing module 24, connected to the building module 22, configured to interchange a first instance of an original route of the first tunnel on a PE node of the edge device with a second instance of a restored route on the PE node, and modify an outgoing label of a node of the first tunnel adjacent to the PE node according to the second instance; and a first switching module 26, connected to the processing module 24, for switching the traffic transmitted on the first tunnel to the restoration route of the first tunnel for transmission.
Fig. 3 is a first block diagram of the processing module 24 in the traffic transmission apparatus according to the embodiment of the present invention, and as shown in fig. 3, the processing module 24 includes a first modification unit 32, and the processing module 24 is explained below.
A first modifying unit 32, configured to modify the first instance according to the restoration route and modify the second instance according to the first instance when a first instance of an original route of the first tunnel on the edge node and a second instance of a restoration route on the edge node are exchanged; wherein modifying the first instance based on the restoration route includes at least one of: modifying the forwarding interface and the next hop Internet protocol IP of the first example into the forwarding interface and the IP corresponding to the recovery route; modifying the outgoing label of the first instance into a label matched with the incoming label of the adjacent node of the restoration route; modifying the second instance according to the first instance includes: and modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the second example into the forwarding interface, the next hop IP and the outgoing label of the first example, wherein the incoming label of the second example is a redistributed incoming label.
Fig. 4 is a block diagram ii of a structure of the processing module 24 in the traffic transmission apparatus according to the embodiment of the present invention, and as shown in fig. 4, the processing module 24 includes a second modification unit 42, and the processing module 24 is explained below.
A second modifying unit 42, configured to modify, when the outgoing label of the node of the first tunnel adjacent to the PE node is modified according to the second example, the outgoing label of the node of the first tunnel adjacent to the PE node to a label matching the incoming label of the second example on the PE node.
Fig. 5 is a first block diagram of a preferred structure of a traffic transmission device according to an embodiment of the present invention, and as shown in fig. 5, the device includes a recovery module 52 and a second switching module 54 in addition to all modules shown in fig. 2, and the device is explained below.
A recovery module 52, connected to the first switching module 26, configured to recover the exchanged first instance and recover the outgoing label of the node adjacent to the PE node of the modified first tunnel after determining that the first tunnel is recovered to be normal; and a second switching module 54, connected to the recovering module 52, for switching the traffic to the original route of the first tunnel for transmission.
Optionally, when the exchanged first instance is recovered, the recovering module 52 includes: modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the first example after the interchange into the forwarding interface, the next hop IP and the outgoing label of the first example before the interchange of the first example and the second example; in restoring the out-labels of nodes of the modified first tunnel that are adjacent to the PE node, the restoration module 52 includes: and modifying the modified outgoing label of the node adjacent to the PE node of the first tunnel into the outgoing label of the node before modifying the outgoing label of the node adjacent to the PE node of the first tunnel according to the second example.
Fig. 6 is a block diagram of a preferred structure of a traffic transmission device according to an embodiment of the present invention, as shown in fig. 6, the device includes a third switching module 62 in addition to all modules shown in fig. 2, and the device is described below:
and a third switching module 62, connected to the building module 22, for switching the traffic transmitted on the first tunnel with the fault to a second tunnel for transmission.
Aiming at the problem that the traffic is easy to cause instantaneous interruption when the flow is switched between the recovery route and the original route in the prior art, the embodiment of the invention also provides a method for realizing dynamic recovery based on a PTN static model, and the following description is given for the fault of a working tunnel:
when the working tunnel fails, after the flow is confirmed to be switched to the protection tunnel, the route is recalculated and recovered for the working tunnel. The instances of the restoration route and the original working route on the PE node are interchanged.
In order to realize the exchange of the recovered route and the original working route on the PE node, the forwarding interface and the next hop IP of the original working route example on the PE node are modified to be matched with the newly calculated recovered route (if the recovered route and the original working route use the same outgoing interface, the modification is not needed), and meanwhile, the outgoing label is modified to be matched with the incoming label of the adjacent node of the recovered route.
And supplementing the newly-built instance on the PE node into the instance of the original working tunnel, using the forwarding interface, the next-hop IP and the outgoing label of the instance of the original working tunnel, and redistributing the incoming label.
And modifying the outgoing label of the adjacent node of the PE node of the original working tunnel to be matched with the incoming label of the newly-built instance on the PE node.
When the original working tunnel fault disappears, on the premise of ensuring that the protection tunnel has no fault, the forced switching is firstly carried out on the tunnel protection subnet, so that the tunnel protection subnet is switched to the protection tunnel, and then the recovery route and the example of the original working route on the PE node are switched again.
In order to realize the re-exchange of the restoration route and the instance of the original working route on the PE node, the forwarding interface and the next hop IP of the instance of the original working route on the PE node are modified, so that the forwarding interface and the next hop IP are modified to return to the original value (if the restoration route and the original working route use the same outgoing interface, the modification is not needed), and meanwhile, the outgoing label is modified, and the outgoing label is also modified to return to the original value.
And modifying the outgoing labels of the adjacent nodes of the PE node of the original working tunnel to make the outgoing labels modified back to the original values.
And dismantling the newly-built restoration route during restoration.
When recovery and return of the protection tunnel occur, the flow is similar to that of the working tunnel (it is necessary to ensure that traffic is processed on the working tunnel), and the description is not repeated.
The scheme can be applied to the tunnel recovery in a single domain and can also be applied to the tunnel recovery across domains. When the method is used for recovering the cross-domain tunnel, the multi-layer controller is required to cooperate with the tunnel to adjust.
The first embodiment is as follows:
the embodiment is mainly described with respect to the failure and recovery of a working tunnel:
fig. 7 is a first schematic diagram of a working tunnel and a protection tunnel according to a first embodiment of the present invention, in which solid lines in fig. 7 represent working tunnel routes and node examples, and two-dot chain lines represent protection tunnel routes and node examples, and this embodiment mainly focuses on the working tunnel. The working tunnel is bound to the interface 1 on the node a and the node Z, the next hop IP is 10.1.1.1 and 10.1.3.1, respectively, and the access labels of the working tunnel between the AB network elements and the CZ network elements are both 100.
Now, assuming that a working tunnel has a fault, initiating rerouting for the working tunnel, and assuming that a calculation result of a restoration route is AFGZ, as shown in fig. 8, fig. 8 is a schematic diagram two of a working tunnel and a protection tunnel according to a first embodiment of the present invention. The recovery action steps are as follows:
first ensuring that traffic is switched to the protection tunnel.
And modifying a forwarding interface and a next hop IP of the original working tunnel example (solid oval) on the node A, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.1.1 to 10.1.2.1.
And modifying a forwarding interface and a next hop IP of the original working tunnel example (solid oval) on the Z node, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.3.1 to 10.1.4.1.
And modifying the outgoing label of the original working tunnel instance (solid line ellipse) on the node A to be equal to the incoming label on the left side of the tunnel instance on the recovery route adjacent node F.
And modifying the outgoing label of the original working tunnel instance (solid line ellipse) on the node Z to be equal to the incoming label on the right side of the tunnel instance on the adjacent node G of the restoration route.
And (3) newly building a tunnel instance (a dotted line ellipse) on the node A, enabling the outgoing label to be 100, reallocating the incoming label, and modifying the outgoing label on the left side of the original working tunnel instance on the node B to be equal to the incoming label of the newly-built instance on the node A.
And (3) newly building a tunnel instance (a dotted line ellipse) on the node Z, enabling the outgoing label to be 100, reallocating the incoming label, and modifying the outgoing label on the right side of the original working tunnel instance on the node C to be equal to the incoming label of the newly-built instance on the node A.
And recovering the newly-built tunnel instance on the routing node F, and enabling the left outgoing label to be equal to 100.
And recovering the newly-built tunnel instance on the routing node G, and enabling the right outgoing label to be equal to 100.
The recovery action is finished, the original working tunnel instance on the AZ node belongs to the recovery route, and the pseudo wire is bound to the recovery route; and the tunnel instance newly built on the AZ node is regarded as the instance of the original route of the working tunnel. The label 100 on the original route is retained.
Now, assuming that the failure of the original working tunnel disappears, a return action is initiated for the working tunnel, and the return action steps are as follows:
first, it is ensured that the protection tunnel is failure-free and the traffic is switched to the protection tunnel.
And modifying the forwarding interface and the next hop IP of the original working tunnel example (solid line ellipse) on the node A, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.2.1 back to 10.1.1.1.
And modifying the forwarding interface and the next hop IP of the original working tunnel example (solid line ellipse) on the node Z, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.4.1 back to 10.1.3.1.
The outgoing label of the original instance of the working tunnel (solid oval) on node a is modified back to the original value of 100.
The out-label of the original instance of the working tunnel (solid oval) on the Z node is modified back to the original value of 100.
And deleting the newly-established dotted line instance on the node A.
And deleting the newly-created dotted line instance on the Z node.
And returning to finish the action, returning to the original working tunnel instance on the AZ node to the working route, restoring the pseudo wire bound on the original route, and restoring the label to 100.
Example two:
this embodiment is mainly explained for the case where AZ working routes are directly adjacent: fig. 8 is a schematic diagram of a working tunnel and a protection tunnel according to a second embodiment of the present invention, in which a solid line in fig. 9 represents a working tunnel route and a node example, and a two-dot chain line represents a protection tunnel route and a node example, and this example mainly focuses on the working tunnel. The working tunnel is bound to the interface 1 on the node a and the node Z, the next hop IP is 10.1.6.1 and 10.1.5.1, respectively, and the access labels of the working tunnel between AZ network elements are all 100.
Now, assuming that the working tunnel has a failure, initiating rerouting for the working tunnel, and assuming that the result of the calculation of the restoration route is AFGZ, as shown in fig. 10, fig. 10 is a schematic diagram of a working tunnel and a protection tunnel according to the second embodiment of the present invention. The recovery action steps are as follows:
first ensuring that traffic is switched to the protection tunnel.
And modifying a forwarding interface and a next hop IP of the original instance (solid oval) of the working tunnel on the node A, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.6.1 to 10.1.2.1.
And modifying a forwarding interface and a next hop IP of the original working tunnel (solid oval) on the Z node, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.5.1 to 10.1.4.1.
And modifying the outgoing label of the original working tunnel instance (solid line ellipse) on the node A to be equal to the incoming label on the left side of the tunnel instance on the recovery route adjacent node F.
And modifying the outgoing label of the original working tunnel instance (solid line ellipse) on the node Z to be equal to the incoming label on the right side of the tunnel instance on the adjacent node G of the restoration route.
And newly building a tunnel instance (a dotted line ellipse) on the node A, redistributing the incoming label, and enabling the outgoing label to be equal to the incoming label of the newly built tunnel instance on the node Z.
And newly building a tunnel instance (a dotted line ellipse) on the node Z, redistributing the incoming label, and enabling the outgoing label to be equal to the incoming label of the newly built tunnel instance on the node A.
And recovering the newly-built tunnel instance on the routing node F, and enabling the left outgoing label to be equal to 100.
And recovering the newly-built tunnel instance on the routing node G, and enabling the right outgoing label to be equal to 100.
The recovery action is finished, the original working tunnel instance on the AZ node belongs to the recovery route, and the pseudo wire is bound to the recovery route; and the tunnel instance newly built on the AZ node is regarded as the instance of the original route of the working tunnel. The label 100 on the original route is retained.
Now, assuming that the failure of the original working tunnel disappears, a return action is initiated for the working tunnel, and the return action steps are as follows:
first, it is ensured that the protection tunnel is failure-free and the traffic is switched to the protection tunnel.
The forwarding interface and next hop IP of the original instance of the working tunnel (solid oval) on node a are modified, the forwarding interface is modified from interface 3 back to interface 1, and the next hop IP is modified from 10.1.2.1 back to 10.1.6.1.
And modifying the forwarding interface and the next hop IP of the original working tunnel (solid oval) on the node Z, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.4.1 back to 10.1.5.1.
The outgoing label of the original instance of the working tunnel (solid oval) on node a is modified back to the original value of 100.
The out-label of the original instance of the working tunnel (solid oval) on the Z node is modified back to the original value of 100.
And deleting the newly-established dotted line instance on the node A.
And deleting the newly-created dotted line instance on the Z node.
And returning to finish the action, returning to the original working tunnel instance on the AZ node to the working route, restoring the pseudo wire bound on the original route, and restoring the label to 100.
Example three:
this embodiment is mainly explained for the case where AZ restoration routes are directly adjacent. Take the tunnel shown in fig. 7 as an example. In the figure, the solid line represents the working tunnel route and the node example, the two-dot chain line represents the protection tunnel route and the node example, and the example mainly focuses on the working tunnel. The working tunnel is bound to the interface 1 on the node a and the node Z, the next hop IP is 10.1.1.1 and 10.1.3.1, respectively, and the access labels of the working tunnel between the AB network elements and the CZ network elements are both 100.
Now, assuming that a working tunnel has a failure, initiating a rerouting for the working tunnel, and assuming that a calculation result of a restoration route is AZ, as shown in fig. 11, fig. 11 is a schematic diagram of a working tunnel and a protection tunnel according to a third embodiment of the present invention. The recovery action steps are as follows:
first ensuring that traffic is switched to the protection tunnel.
And modifying a forwarding interface and a next hop IP of the original working tunnel example (solid oval) on the node A, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.1.1 to 10.1.8.1.
And modifying a forwarding interface and a next hop IP of the original working tunnel example (solid oval) on the Z node, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.3.1 to 10.1.7.1.
And (3) newly building a tunnel instance (a dotted line ellipse) on the node A, enabling the outgoing label to be 100, reallocating the incoming label, and modifying the outgoing label on the left side of the original working tunnel instance on the node B to be equal to the incoming label of the newly-built instance on the node A.
And (3) newly building a tunnel instance (a dotted line ellipse) on the node Z, enabling the outgoing label to be 100, reallocating the incoming label, and modifying the outgoing label on the right side of the original working tunnel instance on the node C to be equal to the incoming label of the newly-built instance on the node A.
The recovery action is finished, the original working tunnel instance on the AZ node belongs to the recovery route, and the pseudo wire is bound to the recovery route; and the tunnel instance newly built on the AZ node is regarded as the instance of the original route of the working tunnel. The label 100 on the original route is retained.
Now, assuming that the failure of the original working tunnel disappears, a return action is initiated for the working tunnel, and the return action steps are as follows:
first, it is ensured that the protection tunnel is failure-free and the traffic is switched to the protection tunnel.
And modifying the forwarding interface and the next hop IP of the original working tunnel example (solid line ellipse) on the node A, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.8.1 back to 10.1.1.1.
And modifying the forwarding interface and the next hop IP of the original working tunnel example (solid line ellipse) on the node Z, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.7.1 back to 10.1.3.1.
Deleting a new tunnel instance (a dotted line ellipse) on the node A; the outgoing label on the node B to the left of the original working tunnel instance is modified and modified back to 100.
Deleting the newly built tunnel example (dotted line ellipse) on the Z node; the outgoing label on the right side of the original working tunnel instance on node C is modified and modified back to 100.
And returning to finish the action, returning to the original working tunnel instance on the AZ node to the working route, restoring the pseudo wire bound on the original route, and restoring the label to 100.
Example four:
mainly, the protection tunnel recovery is described, the procedure is similar to that of the working tunnel (specifically, refer to the first, second, and third embodiments, but in the fourth embodiment, the working tunnel in the first, second, and third embodiments is used as the protection tunnel, and the protection tunnel is used as the working tunnel), and only before the recovery and return actions start, it is necessary to ensure that the working tunnel is free of failure, and the traffic is switched to the working tunnel, so that the traffic is free of transient interruption.
The following describes the protection tunnel restoration with reference to fig. 7 and 8 in the first embodiment:
in this embodiment, the solid lines in fig. 7 represent the protection tunnel route and node instances, and the two-dot chain lines represent the working tunnel route and node instances, and this embodiment focuses mainly on the protection tunnel. The protection tunnel is bound to the interface 1 on the node a and the node Z, the next hop IP is 10.1.1.1 and 10.1.3.1, respectively, and the access labels of the protection tunnel between the AB network elements and the CZ network elements are both 100.
Now, assuming that the protection tunnel has a fault, initiating rerouting for the protection tunnel, and assuming that the calculation result of the restoration route is AFGZ, as shown in fig. 8, the steps of the restoration action are as follows:
first ensuring that traffic is switched to the working tunnel.
And modifying a forwarding interface and a next hop IP of the original instance (solid oval) of the protection tunnel on the node A, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.1.1 to 10.1.2.1.
And modifying a forwarding interface and a next hop IP of the original instance (solid oval) of the protection tunnel on the node Z, wherein the forwarding interface is modified from interface 1 to interface 3, and the next hop IP is modified from 10.1.3.1 to 10.1.4.1.
And modifying the outgoing label of the original instance (solid line ellipse) of the protection tunnel on the node A to be equal to the incoming label on the left side of the tunnel instance on the recovery route adjacent node F.
And modifying the outgoing label of the original instance (solid line ellipse) of the protection tunnel on the node Z to be equal to the incoming label on the right side of the tunnel instance on the adjacent node G of the restoration route.
And (3) newly building a tunnel instance (a dotted line ellipse) on the node A, enabling the outgoing label to be 100, reallocating the incoming label, and modifying the outgoing label on the left side of the original working tunnel instance on the node B to be equal to the incoming label of the newly-built instance on the node A.
And (3) newly building a tunnel instance (a dotted line ellipse) on the node Z, enabling the outgoing label to be 100, reallocating the incoming label, and modifying the outgoing label on the right side of the original protection tunnel instance on the node C to be equal to the incoming label of the newly-built instance on the node A.
And recovering the newly-built tunnel instance on the routing node F, and enabling the left outgoing label to be equal to 100.
And recovering the newly-built tunnel instance on the routing node G, and enabling the right outgoing label to be equal to 100.
The recovery action is finished, the original protection tunnel instance on the AZ node belongs to the recovery route, and the pseudo wire is bound to the recovery route; and the tunnel instance newly built on the AZ node is regarded as an instance for protecting the original route of the tunnel. The label 100 on the original route is retained.
Now, assuming that the failure of the original protection tunnel disappears, a return action is initiated for the protection tunnel, and the return action steps are as follows:
firstly, the working tunnel is ensured to be fault-free, and the flow is switched to the working tunnel.
And modifying the forwarding interface and the next hop IP of the original instance (solid line ellipse) of the protection tunnel on the node A, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.2.1 back to 10.1.1.1.
And modifying the forwarding interface and the next hop IP of the original instance (solid line ellipse) of the protection tunnel on the node Z, wherein the forwarding interface is modified from the interface 3 back to the interface 1, and the next hop IP is modified from 10.1.4.1 back to 10.1.3.1.
The outgoing label of the original instance of the protection tunnel (solid oval) on node a is modified back to the original value of 100.
The outgoing label of the original instance of the protection tunnel (solid oval) on the Z node is modified back to the original value of 100.
And deleting the newly-established dotted line instance on the node A.
And deleting the newly-created dotted line instance on the Z node.
And returning to finish the action, returning the original protection tunnel instance on the AZ node to the protection route, restoring the pseudo wire bound on the original route, and restoring the label to 100.
The recovery of the protection tunnel in the application scenario corresponding to the second embodiment and the third embodiment is similar to that in the second embodiment and the third embodiment, except that the protection tunnel in the second embodiment is required to be used as a working tunnel and the working tunnel is required to be used as a protection tunnel, and details are not described here.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in a plurality of processors.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, establishing a recovery route for the first tunnel with the fault;
s2, exchanging the first instance of the original route of the first tunnel on the edge device PE node with the second instance of the recovery route on the PE node, and modifying the outgoing label of the node of the first tunnel adjacent to the PE node according to the second instance;
and S3, switching the traffic transmitted in the first tunnel to the recovery route of the first tunnel for transmission.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Alternatively, in the present embodiment, the processor performs the above steps S1-S4 according to program codes already stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
By the above embodiment, the return permanent 1: 1, traffic demand. In the recovery and return process, the configuration of the pseudo wires and the simulation services of the client layer does not need to be changed, and the services can not be interrupted instantly. In the recovery process, the label and the identification information of the original route are both reserved, so that the label and the identification information of the tunnel can return to the value before the recovery action occurs after the return.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for transmitting traffic, comprising:
building a recovery route for the first tunnel with the fault;
exchanging a first instance of an original route of the first tunnel on an edge device (PE) node with a second instance of the recovery route on the PE node, and modifying outgoing labels of nodes adjacent to the PE node of the first tunnel according to the second instance;
switching the traffic transmitted on the first tunnel to a recovery route of the first tunnel for transmission;
wherein the exchanging the first instance of the original route of the first tunnel on the edge device PE node and the second instance of the restoration route on the PE node comprises: modifying the first instance according to the restoration route and modifying the second instance according to the first instance; wherein modifying the first instance according to the restoration route includes at least one of: modifying the forwarding interface and the next hop Internet protocol IP of the first instance into the forwarding interface and the IP corresponding to the recovery route; modifying the outgoing label of the first instance into a label matched with the incoming label of the recovery route adjacent node; modifying the second instance according to the first instance comprises: and modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the second example into the forwarding interface, the next hop IP and the outgoing label of the first example, wherein the incoming label of the second example is a redistributed incoming label.
2. The method of claim 1, wherein modifying the out-label of nodes of the first tunnel that neighbor the PE node according to the second instance comprises:
modifying an outgoing label of a node of the first tunnel that is adjacent to the PE node to a label that matches an incoming label of the second instance on the PE node.
3. The method of claim 1, further comprising, after switching the traffic to the restoration route of the first tunnel for transmission:
after the first tunnel is determined to be recovered to be normal, the exchanged first instance is recovered, and the label of the node adjacent to the PE node of the first tunnel after modification is recovered;
and switching the flow to the original route of the first tunnel for transmission.
4. The method of claim 3,
the first instance of resuming the interchange includes: modifying the forwarding interface, next hop Internet Protocol (IP) and outgoing label of the exchanged first instance into the forwarding interface, next hop IP and outgoing label of the first instance before the first instance and the second instance are exchanged;
restoring the modified out-labels of the nodes of the first tunnel that are adjacent to the PE node comprises: and modifying the modified outgoing label of the node of the first tunnel, which is adjacent to the PE node, into the outgoing label of the node before modifying the outgoing label of the node of the first tunnel, which is adjacent to the PE node, according to the second instance.
5. The method according to any one of claims 1 to 4, further comprising, before setting up the restoration route for the failed first tunnel:
and switching the flow transmitted on the first tunnel with the fault to a second tunnel for transmission.
6. A traffic transmitting device, comprising:
the building module is used for building a recovery route for the first tunnel with the fault;
a processing module, configured to interchange a first instance of an original route of the first tunnel on an edge device PE node and a second instance of the restoration route on the PE node, and modify an outgoing label of a node of the first tunnel adjacent to the PE node according to the second instance;
a first switching module, configured to switch traffic transmitted in the first tunnel to a restoration route of the first tunnel for transmission;
wherein, when the first instance of the original route of the first tunnel on the edge PE node and the second instance of the restoration route on the PE node are exchanged, the processing module includes: a first modification unit configured to modify the first instance according to the restoration route and to modify the second instance according to the first instance; wherein modifying the first instance according to the restoration route includes at least one of: modifying the forwarding interface and the next hop Internet protocol IP of the first instance into the forwarding interface and the IP corresponding to the recovery route; modifying the outgoing label of the first instance into a label matched with the incoming label of the recovery route adjacent node; modifying the second instance according to the first instance comprises: and modifying the forwarding interface, the next hop Internet protocol IP and the outgoing label of the second example into the forwarding interface, the next hop IP and the outgoing label of the first example, wherein the incoming label of the second example is a redistributed incoming label.
7. The apparatus of claim 6, wherein the processing module, when modifying the out-label of the nodes of the first tunnel that are adjacent to the PE node according to the second instance, comprises:
a second modifying unit, configured to modify an outgoing label of a node of the first tunnel that is adjacent to the PE node to a label that matches an incoming label of the second instance on the PE node.
8. The apparatus of claim 6, further comprising:
a recovery module, configured to recover the exchanged first instance and recover the modified outgoing label of the node, adjacent to the PE node, of the first tunnel after it is determined that the first tunnel is recovered to normal;
and the second switching module is used for switching the flow to the original route of the first tunnel for transmission.
9. The apparatus of claim 8,
upon restoring the exchanged first instance, the restoration module includes: modifying the forwarding interface, next hop Internet Protocol (IP) and outgoing label of the exchanged first instance into the forwarding interface, next hop IP and outgoing label of the first instance before the first instance and the second instance are exchanged;
upon recovering the modified out-labels of nodes of the first tunnel that are adjacent to the PE node, the recovery module includes: and modifying the modified outgoing label of the node of the first tunnel, which is adjacent to the PE node, into the outgoing label of the node before modifying the outgoing label of the node of the first tunnel, which is adjacent to the PE node, according to the second instance.
10. The apparatus of any one of claims 6 to 9, further comprising:
and the third switching module is used for switching the flow transmitted on the first tunnel with the fault to a second tunnel for transmission before the restoration route is established for the first tunnel with the fault.
CN201510448442.7A 2015-07-27 2015-07-27 Traffic transmission method and device Active CN106385373B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510448442.7A CN106385373B (en) 2015-07-27 2015-07-27 Traffic transmission method and device
PCT/CN2016/080221 WO2016180225A1 (en) 2015-07-27 2016-04-26 Traffic transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510448442.7A CN106385373B (en) 2015-07-27 2015-07-27 Traffic transmission method and device

Publications (2)

Publication Number Publication Date
CN106385373A CN106385373A (en) 2017-02-08
CN106385373B true CN106385373B (en) 2020-04-14

Family

ID=57247697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510448442.7A Active CN106385373B (en) 2015-07-27 2015-07-27 Traffic transmission method and device

Country Status (2)

Country Link
CN (1) CN106385373B (en)
WO (1) WO2016180225A1 (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454875C (en) * 2006-08-24 2009-01-21 华为技术有限公司 Method and system for realizing dual attachment or multiple attachment of user network boundary device
US8504727B2 (en) * 2007-01-17 2013-08-06 Rockstar Consortium Us Lp Method and apparatus for interworking ethernet and MPLS networks
JP5168230B2 (en) * 2009-05-26 2013-03-21 富士通株式会社 Communication system, edge router, and signal transfer method
CN101931586B (en) * 2009-06-26 2012-07-25 中国电信股份有限公司 Method and system for rapidly rerouting MPLS VPN (Multi-Protocol Label Switching Virtual Private Network)
CN101989944B (en) * 2009-07-31 2014-11-05 中兴通讯股份有限公司 Method for local protection of Ethernet tunnel and shared node of protection domain working segment
CN101997750A (en) * 2009-08-13 2011-03-30 中兴通讯股份有限公司 Method and system for segment protection of Ethernet tunnel
CN102271045B (en) * 2010-06-02 2014-08-13 华为技术有限公司 Virtual private network (VPN)-instance-based inter-equipment backup method, equipment and system
CN102143047B (en) * 2010-09-08 2014-05-07 华为技术有限公司 Routing switching triggering method and service provider-end provider edge equipment
CN102325042A (en) * 2011-07-19 2012-01-18 中兴通讯股份有限公司 PE (provider edge router) and protection method of homologous homoclinic PWs (pseudo wires)
CN102377676B (en) * 2011-11-21 2015-03-04 中兴通讯股份有限公司 Method and device for recovering tunnel path
CN103139040B (en) * 2013-03-13 2016-08-10 杭州华三通信技术有限公司 The VPN FRR implementation method of a kind of extension and equipment
US9178796B2 (en) * 2013-06-28 2015-11-03 Cisco Technology, Inc. Multi-layer stateful path computation element architecture
US9590892B2 (en) * 2013-12-02 2017-03-07 University Of Ontario Institute Of Technology Proactive controller for failure resiliency in communication networks
CN104270298B (en) * 2014-09-30 2018-10-09 新华三技术有限公司 Message forwarding method and device in a kind of VXLAN networks

Also Published As

Publication number Publication date
CN106385373A (en) 2017-02-08
WO2016180225A1 (en) 2016-11-17

Similar Documents

Publication Publication Date Title
US9954769B2 (en) Inter-domain fast reroute methods and network devices
CN104205748B (en) Has redundancy between the frame of coordinated traffic direction
EP2761832B1 (en) Optimizing endpoint selection of mrt-frr detour paths
CN111698152B (en) Fault protection method, node and storage medium
CN109861913B (en) Method and device for advertising prefix identification of cross-interior gateway protocol
WO2013045084A1 (en) Incremental deployment of mrt based ipfrr
CN104396197A (en) Selecting between equal cost shortest paths in a 802.1aq network using split tiebreakers
RU2517312C2 (en) Link state identifier conflict resolution
US9521073B2 (en) Enhanced fine-grained overlay transport virtualization multi-homing using per-network authoritative edge device synchronization
CN103391249A (en) Neighborship establishing method and device in IS-IS (intermediate system to intermediate system) network
CN106936795B (en) Method and gateway device for establishing internet protocol security tunnel
CN105227458A (en) The route computing method of TRILL ISIS and device
CN103179032B (en) A kind of route backup method and device
CN103001886A (en) ECT (Equal Cost Tree) smooth moving method and device
CN105592490A (en) Route switching method and equipment
CN103780437A (en) Information synchronization method and device
CN106385373B (en) Traffic transmission method and device
CN107294849A (en) Method, device and system for establishing service path
CN106817302B (en) Method and device for realizing coordination switching between two-layer virtual private network and three-layer virtual private network
CN103647709A (en) ARP form item establishing method and device
CN110784782B (en) MSP protection configuration inter-block time sequence suppression method and system
CN102025547B (en) MPLS (Multiple Protocol Label Switching) VPN (Virtual Private Network) routing backup method and system based on wireless mode
US8781320B2 (en) Automatically switched optical network and method for data transmission in the network
CN106487682A (en) A kind of Diameter signaling network route method and device
CN101193047A (en) Establishment method of resource share path

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant