CN108494684B - Method and device for establishing tunnel - Google Patents
Method and device for establishing tunnel Download PDFInfo
- Publication number
- CN108494684B CN108494684B CN201810296441.9A CN201810296441A CN108494684B CN 108494684 B CN108494684 B CN 108494684B CN 201810296441 A CN201810296441 A CN 201810296441A CN 108494684 B CN108494684 B CN 108494684B
- Authority
- CN
- China
- Prior art keywords
- label
- address information
- path
- forwarding
- tunnel
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/34—Source routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present disclosure relates to a method and an apparatus for creating a tunnel, where the method is applied to Provider Edge (PE) equipment, and the method includes: synchronizing routing information, wherein the routing information comprises a segment route SR and a private network route; acquiring next hop address information of private network routing; if the next hop address information is matched with the SR and the path between the PE devices corresponding to the next hop address information can be reached, establishing a special label forwarding tunnel between the PE devices corresponding to the next hop address information, wherein the special label forwarding tunnel is used for forwarding the private network service corresponding to the next hop address information. By establishing the special tunnel for label forwarding, the method and the device for establishing the tunnel according to the embodiment of the disclosure can enable the private network service to select a required mode without influencing the link overhead value of the route.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for creating a tunnel.
Background
The SR (Segment Routing) protocol employs a source path selection mechanism, and may encapsulate, in advance, a SID (Segment Identifier) of a Segment that a path needs to pass through at a source node. When the message speaks through the SR node, the node may forward the message according to the SID of the message. Except for the source node, other nodes do not need to maintain the path state.
The SR (Segment Routing with MPLS) based on MPLS (Multi-Protocol Label Switching) means that when an SR is used in an MPLS network, a packet is forwarded with a Label as an SID. The Label is used as SID to forward the message by segment route, the path passed by the message is called SRLSP (segment Routing Label Switched Path), and the Label is Switched based on the segment route.
By expanding and optimizing the existing protocols such as ISIS and OSPF, the label distribution can be directly carried out by utilizing the protocols such as ISIS (Intermediate System to Intermediate System), OSPF (Open Shortest Path First) and the like, and the MPLS forwarding is realized by depending on the MPLS forwarding architecture.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for creating a tunnel, which can form a label forwarding dedicated tunnel for private network services without affecting a link cost value of a route itself.
According to an aspect of the present disclosure, there is provided a method for creating a tunnel, the method being applied to an operator edge PE device, the method including: synchronizing routing information, wherein the routing information comprises a segment route SR and a private network route; acquiring next hop address information of private network routing; if the next hop address information is matched with the SR and the path between the PE devices corresponding to the next hop address information can be reached, establishing a special label forwarding tunnel between the PE devices corresponding to the next hop address information, wherein the special label forwarding tunnel is used for forwarding the private network service corresponding to the next hop address information.
According to another aspect of the present disclosure, there is provided an apparatus for creating a tunnel, the apparatus being applied to a provider edge PE device, the apparatus including: synchronizing routing information, wherein the routing information comprises a segment route SR and a private network route; acquiring next hop address information of private network routing; if the next hop address information is matched with the SR and the path between the PE devices corresponding to the next hop address information can be reached, establishing a special label forwarding tunnel between the PE devices corresponding to the next hop address information, wherein the special label forwarding tunnel is used for forwarding the private network service corresponding to the next hop address information.
According to another aspect of the present disclosure, there is provided an apparatus for creating a tunnel, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
By synchronizing the SR and the private network route, if the next hop address information of the private network route is matched with the SR and the path between the PE devices corresponding to the next hop address information can be reached, a label forwarding dedicated tunnel is established between the PE devices corresponding to the next hop address information.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure.
Fig. 2 shows a schematic diagram of an MPLS network according to an embodiment of the present disclosure.
Fig. 3 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure.
Fig. 4 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure.
Fig. 5 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of an apparatus for creating a tunnel according to an embodiment of the present disclosure.
Fig. 7 shows a block diagram of an apparatus for creating a tunnel according to an embodiment of the present disclosure.
FIG. 8 illustrates a block diagram of a machine-readable storage medium according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure. Fig. 2 shows a schematic diagram of an MPLS network according to an embodiment of the present disclosure. As shown in fig. 2, R1, R2, R3, R4, R5, R6, R7, and R8 are routing devices. There are three types of routing devices in the MPLS network, including CE (Customer Edge) devices, PE (Provider Edge) devices, and P (Provider Edge) devices. The CE device is a customer edge device, a customer premises routing device to which the service provider is connected. The CE device may be connected to one or more PE devices to provide service access for users. The CE device establishes an adjacency with the connected PE device. The PE device is an operator edge routing device, and may connect the CE device and the P device, and is equivalent to a label edge routing device, and the user traffic may flow into the user network through the PE device or flow into the MPLS backbone network through the PE device. The PE device may process and forward VPN data from the CE device or LSP (Label Switched Path) according to the stored routing information, and is responsible for exchanging routing information with other PE devices. The P device is a provider routing device, is a backbone routing device without connecting any CE device, and corresponds to an LSR (Label Switching Router). The P device can transparently forward VPN data according to the outer layer label of the packet, and only maintains the routing information to the PE device, but not maintains the routing information related to VPN. As shown in fig. 2, R2 and R5 are PE devices, and R6 is a CE device.
In one example, R2 and R5 are PE devices, denoted PE1 and PE2, respectively, and R6 is a CE device. Route synchronization may be performed between PE1 and PE 2. For public network services and other services (such as FTP services), a route is issued to the PE1 through the PE2, an equivalent path is formed between the PE1 and the PE2 for load balancing according to the needs of link planning, and at this time, the costs of two links from the PE1 to the PE2 are the same. For private network traffic (e.g., traffic such as L2VPN, L3VPN, etc.), a route is issued to PE1 through PE2, and PE1 wants to form an active/standby path with PE2 to improve reliability. At this time, the two paths traversed by PE1 through PE2 are required to be configured with different overheads, which may affect the existence of the previous equivalent link. In the related art, the equal cost path and the main standby path may be distinguished by creating a plurality of ISIS processes or routing policies. However, a plurality of ISIS processes are created, so that more resources are occupied, and the number of router identifications corresponding to ISISs in the network is increased. For the way of creating the routing strategy, the number of routes in the network is large at that time, and when the routes are irregular, the configuration strategy is large, and the maintenance and the use are inconvenient.
The method of creating a tunnel shown in fig. 1 may be applied to a PE device, such as R2 shown in fig. 2. As shown in fig. 1, the method for creating a tunnel includes:
step S11, synchronizing the routing information, the routing information includes SR and private network route.
SR is segment route, SR is labeled route. The labels of the SR tape may be contiguous labels, etc. The adjacency label represents a single-hop path for a link on the routing device, and the label is valid only locally on the device. Each routing device advertises an adjacent label to a device adjacent to the routing device by one hop through an IGP extension, or directly allocates a label for each link in the SR domain through an SDN controller.
In one implementation, the SR includes a correspondence between a tag of a device that transmits the SR and address information of the device. For example, the network device 1 transmits an SR including a correspondence between a label of the network device 1 and address information of the network device 1 to the network device 2. After receiving the SR, the network device 2 may obtain the label of the network device 1 and the address information corresponding to the label.
Private network routing may be used to represent the route issued by a CE device to a connected PE device. The CE device may register member information of the VPN with the connected PE device. One PE device may serve a CE device for multiple VPNs, and the PE device must be able to discern to which VPN the CE belongs. The CE device may route the PE device to the connected PE device. In one implementation, the CE device may publish a private network route to the connected PE device through ISIS or OSPF. The PE devices connected to the CE device may synchronize the private network route to other PE devices through the BGP VPNV 4.
In one implementation, the PE devices may synchronize SRs with each other through IGP (Interior Gateway Protocol), such as OSPF, ISIS, and the like.
In one implementation, the route information synchronized between the PE devices further includes ordinary routes without labels.
And step S12, acquiring the next hop address information of the private network route.
The CE device may issue a private network route to the connected PE device, where a next hop of the private network route is the PE device connected to the CE device, and address information of the next hop of the private network route corresponds to the PE device connected to the CE device.
The next hop address information may be an IP address, a MAC address, etc., and the disclosure is not limited thereto.
Step S13, if the next hop address information matches an SR and a path between PE devices corresponding to the next hop address information is reachable, a label forwarding dedicated tunnel is established between the PE devices corresponding to the next hop address information, where the label forwarding dedicated tunnel is used to forward a private network service corresponding to the next hop address information.
In one implementation, the PE device may obtain a correspondence between the label and the address information from the SR; and if the next hop address information is found in the corresponding relationship, determining that the next hop address information is matched with the SR.
The SR node synchronizes an SR to the PE device, and the PE device can obtain the label and the address information corresponding to the label from the received SR and then search the next hop address information from the address information corresponding to the label. And if the next hop address information is found, the PE equipment determines that the next hop information is matched with the SR.
And when the next hop address information is matched with the SR, indicating that the PE device corresponding to the next hop address information can be used as the SR node. When the path between the PE device and the PE device corresponding to the next hop address information is reachable, it indicates that the PE device can send a message to the PE device corresponding to the next hop address information. Therefore, if the next hop address information matches the SR and a path between the PE device and the PE device corresponding to the next hop address information is reachable, a dedicated tunnel for label forwarding can be established between the PE device and the PE device corresponding to the next hop address information by using the PE device as a head node and the PE device corresponding to the next hop address information as a tail node. The label forwarding special tunnel can be used for forwarding the private network service corresponding to the next hop address information.
By synchronizing the SR and the private network route, if the next hop address information of the private network route is matched with the SR with the label and the path between the PE devices corresponding to the next hop address information can be reached, a label forwarding special tunnel is established between the PE devices corresponding to the next hop address information.
In one implementation, the label forwarding dedicated tunnel is an equivalent label path. Wherein an equivalent label path may be used to represent a pair of label paths with the same cost. Fig. 3 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure. As shown in fig. 3, establishing a label forwarding dedicated tunnel between the PE devices corresponding to the next-hop address information is implemented as step S131 and step S132:
step S131, collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next-hop address information.
If multiple reachable paths exist between the PE devices corresponding to the next-hop address information, the PE device can forward the message to the PE device corresponding to the next-hop address information through any one path. The cost of each reachable path may be different.
Each reachable path may be composed of multiple links, for example, the reachable path between PE1 and PE2 through R4 shown in fig. 2 is composed of a link between PE1 and R4 and a link between R4 and PE 2. Each link is assigned a label. The reachable path may employ a label stack of labels of the links that make up the reachable path. The reachable path has directionality and is divided into an outgoing direction and an incoming direction, for example, the reachable path between PE1 and PE2 is an outgoing direction with respect to PE1 and an incoming direction with respect to PE 2.
The PE device may send all the labels of each reachable path between PE devices corresponding to the next hop address information, so that a label stack composed of all the labels of one reachable path is used to represent the reachable path.
Step S132, according to a certain rule, selecting the labels of two reachable paths as the equivalent label path of the special tunnel for label forwarding.
If multiple reachable paths exist between the PE devices corresponding to the next-hop address information, the PE device may select the labels of two reachable paths from the multiple reachable paths as equivalent label paths of the label forwarding dedicated tunnel. In one example, the PE device may select two reachable paths from the reachable paths according to a label value of the label or an address of the neighbor routing device. For example, the PE device may use the labels of the two reachable paths corresponding to the two labels with the maximum label value as the equivalent label path of the label forwarding dedicated tunnel.
In one implementation, the label forwarding dedicated tunnel is a primary/standby label path. The active-standby label path may be used to represent a pair of label paths forming an active-standby relationship. Fig. 4 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure. As shown in fig. 4, establishing a label forwarding dedicated tunnel between the PE devices corresponding to the next-hop address information is implemented as step S133 and step S134:
step S133, collecting all available labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information.
The description of this step may refer to step S131, and is not repeated here.
Step S134, according to a certain rule, selecting a label of one of the two reachable paths as a main label path of the label forwarding dedicated tunnel, and selecting a label of the other of the two reachable paths as a standby label path of the label forwarding dedicated tunnel.
The rule for selecting two reachable paths may refer to step S132, which is not described herein.
Fig. 5 shows a flowchart of a method of creating a tunnel according to an embodiment of the present disclosure. As shown in fig. 5, the method further includes:
step S14, receiving the data message.
Step S15, obtaining next hop address information of the data packet from the routing table entry matched with the data packet.
Step S16, if there is a special label forwarding tunnel corresponding to the next hop address information of the data packet, forwarding the data packet through the special label forwarding tunnel.
In an implementation manner, if it is determined that a main/standby path is formed between the PE device and the PE device corresponding to the next hop address information according to the network topology, an equivalent label path is established between the PE device and the PE device corresponding to the next hop address information. Thus, when the data message received by the PE device matches the private network service corresponding to the next hop address information, the PE device may forward the data message through one of the equivalent label paths.
In an implementation manner, if it is determined according to a network topology that an equivalent path is formed between the PE device and a PE device corresponding to next-hop address information, an active/standby label path is established between the PE device and the PE device corresponding to the next-hop address information. Thus, when the data message received by the PE device matches the private network service corresponding to the next hop address information, the PE device may forward the data message through the main label path in the main label path.
In an implementation manner, the PE device establishes a primary and a secondary label paths and an equivalent label path between the PE devices corresponding to the next hop address information, respectively. And then, selecting the main label path or the equivalent label path according to actual requirements to forward the data message.
In an implementation manner, when the dedicated label forwarding tunnel is a primary label path, forwarding the data packet through the dedicated label forwarding tunnel may be implemented as: judging whether the main label path fails or not; if the main label path is not in fault, forwarding the data message through the main label path; and if the main label path fails, forwarding the data message through a standby label path.
Application example
As shown in fig. 2, public network traffic 2.2.2.2 or other traffic is routed through PE2 for distribution to PE 1. The two reachable paths between PE1 and PE2 have the same cost, and the two reachable paths between PE1 and PE2 form an equal cost path. PE2 also synchronizes SRs to the PE, which include the correspondence of the tags of PE2 and 5.5.5.5.
If the private network service 20.1.1.2 needs to be forwarded through the public network tunnel formed between PE1 and PE 2. The PE2 connected to the CE synchronizes a private network route corresponding to the private network service 20.1.1.2 to the PE1, and the next hop address information of the private network route is 5.5.5.5(PE 2). At which point PE1 determines 5.5.5.5 matches to the SR. PE1 establishes a label forwarding tunnel between PE1 and PE2 for 5.5.5.5. The label forwarding tunnel can be established as a main label path or an equivalent label path according to the user requirement. Taking the main label path established between PE1 and PE2, the path passing through R4 as the main label path, and the path passing through R3 as the standby label path as an example, when PE1 receives a data packet and matches a private network service corresponding to 5.5.5.5, PE1 may push the label of the main label path into the data packet for forwarding.
Thus, according to the method for creating a tunnel in the embodiment of the present disclosure, an active/standby label path between PE1 and PE2 may be formed, an actual equivalence relation (or an active/standby relation) between PE1 and PE2 is not affected, and only the data packet matching the private network service corresponding to 5.5.5.5 is forwarded by using the active/standby label path (or the equivalent label path).
Fig. 6 shows a block diagram of an apparatus for creating a tunnel according to an embodiment of the present disclosure. The device is applied to Provider Edge (PE) equipment. As shown in fig. 6, the apparatus 60 includes:
a synchronization module 61, configured to synchronize routing information, where the routing information includes a segment route SR and a private network route;
a first obtaining module 62, configured to obtain next hop address information of a private network route;
and an establishing module 63, configured to establish a label forwarding dedicated tunnel between the PE devices corresponding to the next hop address information if the next hop address information matches the SR and a path between the PE devices corresponding to the next hop address information is reachable, where the label forwarding dedicated tunnel is used to forward a private network service corresponding to the next hop address information.
Fig. 7 shows a block diagram of an apparatus for creating a tunnel according to an embodiment of the present disclosure. As shown in fig. 7, in a possible implementation manner, the SR includes a correspondence between a tag of a device that transmits the SR and address information of the device, and the apparatus 60 further includes:
a second obtaining module 64, configured to obtain a corresponding relationship between a tag and address information from the SR;
a determining module 65, configured to determine that the next hop address information matches the SR if the next hop address information is found in the corresponding relationship.
In a possible implementation manner, the dedicated label forwarding tunnel includes an active/standby label path, where the active/standby label path is used to represent a pair of label paths forming an active/standby relationship, and the establishing module 63 is specifically configured to:
collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information;
and selecting the labels of the two reachable paths as equivalent label paths of the special label forwarding tunnel according to a certain rule.
In a possible implementation manner, the label forwarding dedicated tunnel includes an equivalent label path, where the equivalent label path is used to represent a pair of label paths with the same cost, and the establishing module 63 is specifically configured to:
collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information;
according to a certain rule, selecting the label of one of the two reachable paths as the main label path of the special label forwarding tunnel, and selecting the label of the other of the two reachable paths as the standby label path of the special label forwarding tunnel.
In one possible implementation, the apparatus 60 further includes:
a receiving module 66, configured to receive a data packet;
a third obtaining module 67, configured to obtain next hop address information of the data packet from a routing table entry matched with the data packet;
a forwarding module 68, configured to forward the data packet through a label forwarding dedicated tunnel if the label forwarding dedicated tunnel corresponding to the next hop address information of the data packet exists.
In a possible implementation manner, the forwarding module 68 is specifically configured to:
judging whether a main label path fails or not under the condition that the special label forwarding tunnel is a main label path and a standby label path;
if the main label path is not in fault, forwarding the data message through the main label path;
and if the main label path fails, forwarding the data message through a standby label path.
FIG. 8 illustrates a block diagram of a machine-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 8, the machine-readable storage medium 902 stores machine-executable instructions that, when invoked and executed by the processor 901, cause the processor 901 to implement the method of creating a tunnel described above.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (12)
1. A method for creating a tunnel, the method being applied to an operator edge PE device, the method being based on a segment routing, SR, of multi-protocol label switching, MPLS, the method comprising:
synchronizing routing information, wherein the routing information comprises a segment route SR and a private network route;
acquiring next hop address information of private network routing;
if the next hop address information is matched with the SR and a path between the PE devices corresponding to the next hop address information can be reached, establishing a label forwarding special tunnel between the PE devices corresponding to the next hop address information, wherein the label forwarding special tunnel is used for forwarding the private network service corresponding to the next hop address information;
the SR includes a correspondence between a tag of a device that transmits the SR and address information of the device, and the method further includes:
acquiring the corresponding relation between the label and the address information from the SR;
and if the next hop address information is found in the corresponding relationship, determining that the next hop address information is matched with the SR.
2. The method according to claim 1, wherein the label forwarding dedicated tunnel includes an active/standby label path, the active/standby label path is used to indicate a pair of label paths forming an active/standby relationship, and the forming of the label forwarding dedicated tunnel between the PE devices corresponding to the next-hop address information includes:
collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information;
and selecting the labels of the two reachable paths as equivalent label paths of the special label forwarding tunnel according to a certain rule.
3. The method according to claim 1, wherein the label forwarding dedicated tunnel includes an equivalent label path, the equivalent label path is used to represent a pair of label paths with the same cost, and the forming of the label forwarding dedicated tunnel between the PE devices corresponding to the next-hop address information includes:
collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information;
according to a certain rule, selecting the label of one of the two reachable paths as the main label path of the special label forwarding tunnel, and selecting the label of the other of the two reachable paths as the standby label path of the special label forwarding tunnel.
4. The method according to any one of claims 1 to 3, further comprising:
receiving a data message;
acquiring next hop address information of the data message from a routing table item matched with the data message;
and if the label forwarding special tunnel corresponding to the next hop address information of the data message exists, forwarding the data message through the label forwarding special tunnel.
5. The method of claim 4, wherein forwarding the data packet through the label forwarding dedicated tunnel comprises:
judging whether a main label path fails or not under the condition that the special label forwarding tunnel is a main label path and a standby label path;
if the main label path is not in fault, forwarding the data message through the main label path;
and if the main label path fails, forwarding the data message through a standby label path.
6. An apparatus for creating a tunnel, wherein the apparatus is based on a Segment Routing (SR) of multi-protocol label switching (MPLS), and the apparatus is applied to a Provider Edge (PE) device, and the apparatus comprises:
the synchronous module is used for synchronizing routing information, and the routing information comprises a Segment Routing (SR) and a private network routing;
the first acquisition module is used for acquiring the next hop address information of the private network route;
the establishing module is used for establishing a label forwarding special tunnel between the PE devices corresponding to the next hop address information if the next hop address information is matched with the SR and the path between the PE devices corresponding to the next hop address information can be reached, and the label forwarding special tunnel is used for forwarding the private network service corresponding to the next hop address information;
the SR includes a correspondence between a tag of a device that transmits the SR and address information of the device, and the apparatus further includes:
the second acquisition module is used for acquiring the corresponding relation between the label and the address information from the SR;
and the determining module is used for determining that the next hop address information is matched with the SR if the next hop address information is found in the corresponding relation.
7. The apparatus according to claim 6, wherein the dedicated label forwarding tunnel includes an active/standby label path, where the active/standby label path is used to represent a pair of label paths forming an active/standby relationship, and the establishing module is specifically configured to:
collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information;
and selecting the labels of the two reachable paths as equivalent label paths of the special label forwarding tunnel according to a certain rule.
8. The apparatus of claim 6, wherein the label forwarding dedicated tunnel comprises an equivalent label path, the equivalent label path is used to represent a pair of label paths with the same cost, and the establishing module is specifically configured to:
collecting all labels in the outgoing direction of each reachable path between the PE devices corresponding to the next hop address information;
according to a certain rule, selecting the label of one of the two reachable paths as the main label path of the special label forwarding tunnel, and selecting the label of the other of the two reachable paths as the standby label path of the special label forwarding tunnel.
9. The apparatus of any one of claims 6 to 8, further comprising:
the receiving module is used for receiving the data message;
a third obtaining module, configured to obtain next hop address information of the data packet from a routing table entry matched with the data packet;
and the forwarding module is used for forwarding the data message through the special label forwarding tunnel if the special label forwarding tunnel corresponding to the next hop address information of the data message exists.
10. The apparatus of claim 9, wherein the forwarding module is specifically configured to:
judging whether a main label path fails or not under the condition that the special label forwarding tunnel is a main label path and a standby label path;
if the main label path is not in fault, forwarding the data message through the main label path;
and if the main label path fails, forwarding the data message through a standby label path.
11. An apparatus for creating a tunnel comprising a processor and a machine-readable storage medium having stored thereon machine-executable instructions executable by the processor to perform the method of any of claims 1-5.
12. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810296441.9A CN108494684B (en) | 2018-03-30 | 2018-03-30 | Method and device for establishing tunnel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810296441.9A CN108494684B (en) | 2018-03-30 | 2018-03-30 | Method and device for establishing tunnel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108494684A CN108494684A (en) | 2018-09-04 |
CN108494684B true CN108494684B (en) | 2021-01-26 |
Family
ID=63318113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810296441.9A Active CN108494684B (en) | 2018-03-30 | 2018-03-30 | Method and device for establishing tunnel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108494684B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110611616A (en) * | 2019-09-18 | 2019-12-24 | 下一代互联网重大应用技术(北京)工程研究中心有限公司 | Traffic scheduling method, system, device and medium based on Radius server |
CN112788637A (en) * | 2020-06-29 | 2021-05-11 | 中兴通讯股份有限公司 | Tunnel protection method, edge router, and computer-readable medium |
CN114650250B (en) * | 2020-12-18 | 2024-08-09 | 中国移动通信有限公司研究院 | Processing method, device, management and control system and network equipment of bidirectional segment routing tunnel |
CN115037682B (en) * | 2022-05-23 | 2024-09-06 | 新华三技术有限公司 | Communication method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1968178A (en) * | 2006-11-02 | 2007-05-23 | 杭州华为三康技术有限公司 | LSP establishing method |
CN103841022A (en) * | 2014-03-12 | 2014-06-04 | 华为技术有限公司 | Method and device for building tunnel |
CN107306222A (en) * | 2016-04-25 | 2017-10-31 | 华为技术有限公司 | The method and apparatus that traffic engineering tunnel on label switched path is set up |
CN107637031A (en) * | 2015-07-06 | 2018-01-26 | 华为技术有限公司 | Path-calculating element central controller (PCECC) for Network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9444677B2 (en) * | 2013-10-18 | 2016-09-13 | Cisco Technology, Inc. | Scalable edge node protection using IPv6 segment routing extension header |
-
2018
- 2018-03-30 CN CN201810296441.9A patent/CN108494684B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1968178A (en) * | 2006-11-02 | 2007-05-23 | 杭州华为三康技术有限公司 | LSP establishing method |
CN103841022A (en) * | 2014-03-12 | 2014-06-04 | 华为技术有限公司 | Method and device for building tunnel |
CN107637031A (en) * | 2015-07-06 | 2018-01-26 | 华为技术有限公司 | Path-calculating element central controller (PCECC) for Network |
CN107306222A (en) * | 2016-04-25 | 2017-10-31 | 华为技术有限公司 | The method and apparatus that traffic engineering tunnel on label switched path is set up |
Also Published As
Publication number | Publication date |
---|---|
CN108494684A (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3200402B1 (en) | Segment routing information obtainment method and segment routing network establishment method | |
CN101120552B (en) | Loop prevention method for MPLS using service labels and network node | |
US9525619B2 (en) | Scalable edge node protection using segment routing | |
CN101044728B (en) | Fast reroute (frr) protection at the edge of a rfc 2547 network | |
US9444677B2 (en) | Scalable edge node protection using IPv6 segment routing extension header | |
CN108494684B (en) | Method and device for establishing tunnel | |
CN110661711B (en) | Method for generating label forwarding table, message sending method, device and equipment | |
US8098663B2 (en) | Carrier's carrier without customer-edge-to-customer-edge border gateway protocol | |
US7693047B2 (en) | System and method for PE-node protection | |
CN101164265B (en) | Algorithm for backup pe selection | |
US12034632B2 (en) | Fault protection method, node, and storage medium | |
EP3905609A1 (en) | Service data forwarding method, network device, and network system | |
CN109218197B (en) | Conflict resolution method in segmented routing and router | |
CN112511418A (en) | Message indicating method, device, equipment and storage medium | |
WO2013045084A1 (en) | Incremental deployment of mrt based ipfrr | |
US20120124238A1 (en) | Prioritization of routing information updates | |
CN107864091B (en) | Link failure processing method and device | |
KR102245989B1 (en) | Redundancy Administrating Method for a Virtual Private Network and Network Switching Apparatus with the method implemented on it | |
CN107682261B (en) | Flow forwarding method and device | |
CN113542126A (en) | Generalized SRv6 full-path compression method and device | |
CN115460107A (en) | Route detection method, device, system and storage medium | |
CN117640512A (en) | Communication method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |