CN107995113B - Path establishing method and device - Google Patents
Path establishing method and device Download PDFInfo
- Publication number
- CN107995113B CN107995113B CN201711137220.9A CN201711137220A CN107995113B CN 107995113 B CN107995113 B CN 107995113B CN 201711137220 A CN201711137220 A CN 201711137220A CN 107995113 B CN107995113 B CN 107995113B
- Authority
- CN
- China
- Prior art keywords
- message
- label
- label switching
- equipment
- path
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure relates to a path establishing method and device. The path establishing method comprises the following steps: receiving a first label switching message for establishing a label switching path from a second device; establishing a first label switching path by taking first equipment as an entrance node, taking intermediate equipment through which a first label switching message passes as a forwarding node and taking second equipment as an exit node; the first label switching path is used for forwarding a first MPLS packet sent by the first device to the second device. The path establishing method and the device can establish the label switching path for sending the MPLS message according to the label switching message, so that the communication can be quickly established between the user equipment and the server, and the message forwarding efficiency can be improved.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a path establishment method and apparatus.
Background
Fig. 1 shows a schematic diagram of DS-Lite networking in the related art. As shown in fig. 1, in the process of accessing the server by the host, after being encapsulated as an IPv6 message by a B4(Basic Bridging Broad Band) device, the IPv4 message is transmitted to an AFTR (Address Family Transition Router) device through a DS-Lite (Dual Stack Lite) tunnel, decapsulated as an IPv4 message by the AFTR device, and subjected to NAT (Network Address Transition) Translation, and then reaches the server after being subjected to IPv4 route lookup for multiple times. The IPv4 message returned by the server reaches AFTR equipment after being searched by IPv4 for many times, then is subjected to NAT conversion by the AFTR equipment and is packaged into an IPv6 message, and then is transmitted to B4 equipment through a DS-Lite tunnel, and is unpacked into an IPv4 message by the B4 equipment. In the above process, when the number of forwarded messages is large, the burden of the B4 device and the afrr device will be increased, and the efficiency of message forwarding is limited.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for establishing a path, so as to solve the problems of large equipment burden and low message forwarding efficiency caused when a large number of messages are forwarded through a DS-Lite tunnel in the related art.
According to an aspect of the present disclosure, there is provided a path establishment method, including:
receiving a first label switching message for establishing a label switching path from a second device;
establishing a first label switching path by taking the first equipment as an entrance node, taking intermediate equipment through which the first label switching message passes as a forwarding node and taking the second equipment as an exit node; the first label switching path is used for forwarding a first MPLS packet sent by the first device to the second device.
According to another aspect of the present disclosure, there is provided a path establishment apparatus including:
a message receiving module, configured to receive a first label switching message for establishing a label switching path from a second device;
a path establishing module, configured to establish a first label switching path by using the first device as an ingress node, using an intermediate device through which the first label switching message passes as a forwarding node, and using the second device as an egress node; the first label switching path is used for forwarding a first MPLS packet sent by the first device to the second device.
According to the path establishing method and device, under the condition that first equipment receives a first label switching message which is from second equipment and used for establishing a label switching path, the first equipment is used as an entrance node, intermediate equipment through which the first label switching message passes is used as a forwarding node, the second equipment is used as an exit node, the first label switching path is established, and the first label switching path is used for forwarding a first MPLS message which is sent to the second equipment by the first equipment, so that the label switching path used for sending the MPLS message can be established according to the label switching message, communication can be established between user equipment and a server rapidly, and message forwarding efficiency can be improved.
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 schematic diagram of DS-Lite networking in the related art.
Fig. 2 is a schematic diagram showing a DS-Lite networking in the related art.
Fig. 3 shows a flow chart of a path establishment method according to an embodiment of the present disclosure.
Fig. 4 shows a schematic diagram of a label switching message according to an embodiment of the present disclosure.
Fig. 5 shows a schematic diagram of DS-Lite networking according to an embodiment of the present disclosure.
Fig. 6 shows a schematic flow chart of a path establishment method according to an embodiment of the present disclosure.
Fig. 7 shows an exemplary flow chart of a path establishment method according to an embodiment of the disclosure.
Fig. 8 shows a block diagram of a path establishment apparatus according to an embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating an apparatus 900 for path establishment in accordance with an example embodiment.
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. 2 is a schematic diagram showing a DS-Lite networking in the related art. As shown in fig. 2, R1 and R2 are routers in an IPv4 network. In the DS-Lite networking, message forwarding will form the situation of IPv4-IPv6-IPv4, the message needs to pass through a DS-Lite tunnel between B4 equipment and AFTR equipment, NAT conversion needs to be carried out through the AFTR equipment, then hop-by-hop routing is carried out, and forwarding is carried out through R1 and R2, and when the quantity of forwarded messages is large, the message forwarding efficiency is low. In the path establishment method disclosed by the present disclosure, MPLS (Multi-Protocol Label Switching) is adopted to forward the packet, which can effectively solve the problem of low packet forwarding efficiency caused by a large number of forwarded packets in the process of forwarding the packet by using the route.
Fig. 3 shows a flow chart of a path establishment method according to an embodiment of the present disclosure. As shown in fig. 3, the method may include steps S31 through S32.
In step S31, a first label switching message for establishing a label switched path is received from a second device.
In step S32, a first label switching path is established with the first device as an ingress node, with the intermediate device through which the first label switching message passes as a forwarding node, and with the second device as an egress node; the first label switching path is used for forwarding a first MPLS packet sent by the first device to the second device.
In one implementation, the method further comprises: sending a second label switching message for establishing a label switching path to second equipment, so that the second equipment takes the second equipment as an entrance node, intermediate equipment through which the second label switching message passes as a forwarding node and the first equipment as an exit node under the condition that the second equipment receives the second label switching message, and establishes the second label switching path; the second label switched path is used for forwarding a second MPLS packet sent by the second device to the first device.
In one implementation, in a case that the first device is a B4 device, the second device is a router, the terminal device that is hung down by the first device is a user device, and the terminal device that is hung down by the second device is a server; or, in the case that the first device is a router, the second device is a B4 device, the terminal device on which the first device is hung is a server, and the terminal device on which the second device is hung is a user device.
As one example, a B4 device receives a first label switching message from a router for establishing a label switched path. B4 equipment is used as an entrance node, intermediate equipment through which the first label switching message passes is used as a forwarding node, a router is used as an exit node, and a first label switching path is established; the first label switched path is used for forwarding a first MPLS packet sent by the B4 device to the router. The B4 device sends a second label switching message to the router for establishing the label switched path. Establishing a second label switching path by taking the router as an entrance node, taking intermediate equipment through which the second label switching message passes as a forwarding node and taking B4 equipment as an exit node; the second label switched path is used for forwarding a second MPLS packet sent by the router to the B4 device.
In one implementation, after establishing the first label switched path, the method further comprises: receiving a first message from a terminal device hung down by a first device; under the condition that the destination address of the first message has an incidence relation with the second equipment, inserting a label value into the first message to obtain a first MPLS message; and forwarding the first MPLS message through the first label switching path.
In one implementation, the first label switching message carries a label value used for generating the first MPLS packet and an address of the terminal device that is to be dropped by the second device, and the method further includes: and establishing a binding relationship between the second equipment and the label value, and establishing an association relationship between the address of the terminal equipment hung down by the second equipment and the second equipment.
The first device establishes a binding relationship between the second device and the label value, and establishes an association relationship between the address of the terminal device under the second device and the second device, so that when the first device receives the packet, if the destination address of the packet has an association relationship with the second device (i.e. the terminal device under the second device is visited), the label value bound with the second device can be inserted into the packet to obtain a first MPLS packet, and the first MPLS packet is forwarded through the first label switching path. In the message forwarding process, the communication between the user equipment and the server can be established quickly, and the message forwarding efficiency can be improved.
Fig. 4 shows a schematic diagram of a label switching message according to an embodiment of the present disclosure. In one implementation, as shown in fig. 4, the Label switching Message (Label switching Message) may include a Message Type (Message Type), a Message Length (Message Length), a Message number (Message ID), a forwarding equivalence class identifier (FEC TLV), a Label identifier (Label TLV), an Optional parameter (Optional Parameters), and the like, which is not limited by this disclosure.
The message type of the label switching message may use, among other things, fields not already used in the RFC5036 protocol, e.g., 0x 0499. The Label value reserved for the path establishment method of the present disclosure, e.g., the Label value that is not yet used between 4 and 15, may be saved in the Label TLV. The FEC TLV may store an address of the corresponding user equipment or server, which is stored when the packet is forwarded for the first time, for example, may be an address or an address list, and establish an association relationship with the corresponding B4 device or router.
The Label Switching Path (LSP) may be a packet forwarding Path established by each LSR (Label Switching Router) in the MPLS domain through an LDP (Label Distribution Protocol) packet, for example, the Label Switching Path may be determined according to an intermediate device through which a Label Switching message passes.
In one implementation, the router may be a router directly connected to the server. As shown in fig. 2, R2 is a router directly connected to the server. In the case where B4 receives the label switching message from R2, LSP1 is established. The LSP1 has B4 as an Ingress Node (Ingress Node) and R2 as an Egress Node (Egress Node). If the label switching message passes through R1 and AFTR in the process of being transmitted from R2 to B4, LSP 1: b4 → AFTR → R1 → R2. In this way, in the process of forwarding the message, there is no need to perform the conversion between IPv4 and IPv6, perform the NAT conversion between the private network and the public network, and perform the route selection hop by each router, thereby improving the forwarding efficiency of the message.
In another implementation, the router may be a router that is not directly connected to the server. As shown in fig. 2, R1 is a router that is not directly connected to a server. In the case where B4 receives the label switching message from R1, LSP2 is established. The LSP2 has B4 as an Ingress Node (Ingress Node) and R1 as an Egress Node (Egress Node). If the label switching message passes the AFTR in the transmission from R1 to B4, LSP 1: b4 → AFTR → R1. In this way, in the process of forwarding the message, the conversion between IPv4 and IPv6 is not required, and the NAT conversion between the private network and the public network is not required, so that the forwarding efficiency of the message can be improved.
Fig. 5 shows a schematic diagram of DS-Lite networking according to an embodiment of the present disclosure. As shown in fig. 5, the address of the user equipment (Host) is 1.1.1.1, the LSR ID of the B4 equipment is 9.1.1.1, the interface address of the Host and the B4 equipment is 1.1.1.2, the address of the AFTR equipment is 1.1.1- >10.1.1.1, the address of the R1 equipment is 11.1.1.1, the interface address of the R2 equipment and the Server is 2.1.1, the LSR ID of the R2 equipment is 2.2.2.1, the address of the Application Server (Application Server) is 2.2.2.2, and the address of the Log Server (Log Server) is 3.2.2.3. A DS-Lite tunnel (DS-Lite tunnel) exists between the B4 device and the AFTR device. Among them, the R2 device is a router directly connected to the server.
As an example, as shown in fig. 5, B4 receives the label switching message from R2, establishes LSP 1: b4 → AFTR → R1 → R2. In the Label switching message, if the address stored in the FEC TLV is address 2.2.2.2 of the Application server and the Label value stored in the Label TLV is 15, B4 associates address 2.2.2.2 with R2, for example, stores 2.2.2 in the address pool corresponding to R2. In the case where B4 receives the packet from Host with the destination address of 2.2.2.2, since 2.2.2 belongs to the address pool corresponding to R2, 15 is determined as the label value determined for forwarding the packet. B4 inserts the label value 15 into the message to obtain the MPLS message, and forwards the MPLS message according to LSP 1. R2 receives the MPLS message, and then the label 15 is stripped and forwarded to the Application server.
In one implementation, the method further comprises: under the condition of receiving a second MPLS message forwarded through a second label switching path from second equipment, stripping a label value of the second MPLS message to obtain a second message, and forwarding the second message according to a destination address of the second message; the second label switched path has the second device as an ingress node and the first device as an egress node.
The path establishing method can establish the label switching path for sending the MPLS message according to the label switching message, and the MPLS message does not need to be converted into IPv4 and IPv6 in the forwarding process, NAT conversion of a private network and a public network is not needed, routing selection of each router in a hop-by-hop manner is not needed, so that communication can be quickly established between user equipment and a server, and the message forwarding efficiency can be improved.
Fig. 6 shows a schematic flow chart of a path establishment method according to an embodiment of the present disclosure. The method is used in a B4 plant, and the disclosure is not limited thereto. As shown in fig. 6, the method may include steps S61 to S66.
In step S61, the B4 device establishes a label distribution protocol, LDP, session with the router.
In step S62, when receiving the label switching message from the router, the B4 device establishes a first label switched path with the B4 device as an ingress node, with the intermediate device through which the label switching message passes as a forwarding node, and with the router as an egress node.
In step S63, the B4 device acquires the address of the server carried in the label switching message, and associates the address of the server with the router.
In step S64, when receiving the first packet from the user equipment, the B4 device determines whether the destination address of the first packet is associated with the router.
In step S65, in the case that the destination address of the first packet is associated with the router, the B4 device determines the label value carried in the label switching message as the label value for forwarding the first packet.
In step S66, the B4 device inserts the label value into the first packet to obtain a first MPLS packet, and forwards the first MPLS packet according to the first label switched path.
In one implementation, in the process of first bidirectional forwarding of a packet between a user equipment and a server, the packet is forwarded according to a packet forwarding flow in the related art. That is, the message needs to pass through the DS-Lite tunnel between the B4 device and the AFTR device, and also needs to pass through the AFTR device for NAT conversion, and then is forwarded after performing routing hop-by-hop. After the first bidirectional message forwarding between the ue and the server is completed, if there is message forwarding between the ue and the server, the message forwarding process from step S61 to step S66 is adopted to forward the message.
In one implementation, after the first bidirectional forwarding of the message between the user equipment and the server is completed, the LDP session is established between the B4 device and the router according to the address of the B4 device and the address of the router. Among them, the B4 device may be a network device directly connected with the user equipment. The router may be a router directly connected to the server, i.e. the router may be an end device of the IPv4 network. In this way, the LDP session can be established according to the forwarding requirement of the message, and the LDP session is automatically closed when no corresponding message is forwarded for a long time in the follow-up process, so that the session resource is effectively saved.
In one implementation, before receiving a first label switching message from a second device for establishing a label switched path, the method further includes: receiving a second message from the terminal equipment hung below the second equipment; if the destination address of the second message corresponds to the terminal device hung down by the first device, establishing an LDP session between the first device and the second device; the LDP session is used to send label exchange messages between the first device and the second device.
In one implementation, when a message passes through a B4 device or a router, the B4 device or the router can know that there is a message to access a corresponding user device or server through a destination address of the message, and then initiate establishment of an LDP session. If the LDP session is successfully established, it indicates that the first bidirectional forwarding of the packet between the user equipment and the server is successful, otherwise, the B4 equipment or the router does not receive the corresponding packet, and the LDP session is not successfully established.
As an example, as shown in FIG. 5, in the process of first forwarding a message bidirectionally between the Host and the Application Server, if R2 receives a message with a destination address of 2.2.2.2 from the Host and B4 receives a message with a destination address of 1.1.1.1 from the Application Server, then B4 and R2 send LDP messages bidirectionally to establish an LDP session. After the LDP session establishment is successful, label exchange messages are sent bi-directionally between B4 and R2. For example, R2 sends a Label switching message { dst:1.1.1.2, src:2.2.2.1, FEC TLV:2.2.2, Label TLV:15}, B4 sends a Label switching message { dst:2.2.2.1, src:1.1.1.2, FEC TLV:1.1.1, Label TLV:15 }.
In one implementation, after the LDP session establishment is successful, the B4 device sends label exchange messages bi-directionally to the router. The source address and the destination address of the label switching message adopt the transmission address for establishing the LDP session. The devices passed by the label exchange message form a temporary label forwarding table item, thereby establishing a label switching path. The device receiving the label switching message may be an Ingress Node, the device transmitting the label switching message may be a Transit Node, and the device sending the label switching message may be an Egress Node.
Wherein, Ingress Node: after receiving the Label switching message, according to the Label value in the Label TLV, the Ingress Node forms an out-Label forwarding entry corresponding to the Label TLV. And establishing an association relation between the label-outgoing forwarding table entry and the interface and the address corresponding to the Egress Node. For the message entering from the interface, if the destination address of the message belongs to the address pool corresponding to the Egress Node, the Ingress Node presses the Label value in the Label TLV into the message, and forwards the MPLS message after obtaining the MPLS message. Transit Node: and forming a temporary Label forwarding table entry according to the interfaces of the incoming direction and the outgoing direction, wherein the incoming Label and the outgoing Label are equal to the Label value in the Label TLV. Egress Node: and for the received MPLS message, the Egress Node peels off the label of the MPLS message and then forwards the MPLS message. For example, after the Egress Node strips the label of the MPLS packet, it forwards the packet according to the IP address of the packet. Therefore, when the Egress Node is connected with a plurality of servers, the Egress Node can forward the information to the corresponding servers, and the forwarding efficiency of the public network is ensured.
In one implementation, in the case of a bidirectional label switched message, a situation may arise where a device is both an Ingress Node and an Egress Node at the same time. And if the message with the corresponding label is not forwarded for a long time (for example, the message exceeds a set time threshold), deleting the LDP session and sending a label canceling message. The forwarding flow of the label revocation message is similar to the forwarding flow of the label switching message. The format of the label canceling message is the same as that of the label switching message, but the message type of the label canceling message is marked as label canceling.
Fig. 7 shows an exemplary flow chart of a path establishment method according to an embodiment of the disclosure. The method is used in a router, and the present disclosure does not limit this. As shown in fig. 7, the method may include steps S71 to S76.
In step S71, the router establishes a label distribution protocol, LDP, session with the B4 device.
In step S72, the router establishes a second label switched path with the router as an ingress node, with the intermediate device through which the label switched message passes as a forwarding node, and with the B4 device as an egress node, upon receiving the label switched message from the B4 device.
In step S73, the router acquires the address of the ue carried in the label switching message, and associates the address of the ue with the B4 device.
In step S74, the router determines whether the destination address of the second packet is associated with the B4 device when receiving the second packet from the server.
In step S75, in the case that the destination address of the second packet is associated with the B4 device, the router determines the label value carried in the label switching message as the label value for forwarding the second packet.
In step S76, the router inserts the label value into the second packet to obtain a second MPLS packet, and forwards the second MPLS packet according to the second label switched path.
As an example, as shown in FIG. 5, after the first bi-directional forwarding of the message between Host and Application Server, B4 and R2 send LDP messages bi-directionally to establish LDP sessions. After the LDP session establishment is successful, label exchange messages are sent bi-directionally between B4 and R2. For example, R2 sends a Label switching message { dst:1.1.1.2, src:2.2.2.1, FEC TLV:2.2.2, Label TLV:15}, B4 sends a Label switching message { dst:2.2.2.1, src:1.1.1.2, FEC TLV:1.1.1, Label TLV:15 }.
B4 forms a corresponding out-Label forwarding table entry according to the Label value 15 in the Label TLV after receiving the Label switching message. B4 is regarded as Ingress Node, and R2 is regarded as Egress Node. B4 establishes an association relationship with the corresponding interface and address, i.e. { address: 2.2.2.1, physical interface: g0/1, tag value: 15}. B4 forms a corresponding in-Label forwarding table entry according to the Label value 15 in the Label TLV after sending the Label switching message. R2 is used as Ingress Node, B4 is used as Egress Node. B4, for the MPLS packet whose label value is 15, after the label of the MPLS packet is peeled, it forwards the packet according to the IP address of the packet. In addition, B4 stores address 2.2.2.1 in association with server address 2.2.2.2, e.g., 2.2.2.2 in the corresponding address pool of 2.2.2.1.
R2 also receives and transmits label switching messages. R2 is used as Ingress Node, B4 is used as Egress Node. Similarly, R2 establishes an association relationship with the corresponding interface and address, i.e. { address: 1.1.1.2, physical interface: g0/2, tag value: 15}. B4 is regarded as Ingress Node, and R2 is regarded as Egress Node. R2, for the MPLS packet whose label value is 15, removes the label of the MPLS packet, and then forwards the packet according to the IP address of the packet. In addition, R2 associates address 1.1.1.2 with user equipment address 1.1.1.1, for example, storing 1.1.1.1 in the corresponding address pool of 1.1.1.2. All devices between B4 and R2 are Transit nodes, and form a temporary label forwarding table entry with an incoming label of 15 and an outgoing label of 15, where the incoming direction and the outgoing direction are interfaces for receiving label switching messages.
As described above, as shown in FIG. 5, Host (1.1.1.1) accesses Application Server (2.2.2.2). If the label forwarding table is established and the message enters B4, B4 determines whether the interface used in the incoming direction of the message belongs to the association relationship. If yes, judging whether the destination address of the message belongs to an address pool corresponding to the address 2.2.2.1 in the association relation. In this example, the message comes in from interface g0/1 and has a destination address of 2.2.2.2. The destination address of the message belongs to the address pool corresponding to the address 2.2.2.1 in the association relationship. B4 presses the label value 15 to get the MPLS message. In the intermediate devices AFTR and R1 between the MPLS message paths B4 and R2, because the AFTR and R1 already have temporary label forwarding table entries, the switching is directly carried out according to the incoming label 15 without searching a corresponding routing table. After the MPLS message reaches R2, R2 judges that the label 15 is entered, the pop-up label exposes the IP message header, the IP destination address is 2.2.2.2, and R2 directly transfers the message to the Application Server. The reverse flow is similar.
Subsequently, as shown in fig. 5, if the Log Server (3.2.2.3) also wants to join, after the packet is forwarded bi-directionally for the first time between the Host and the Log Server, R2 sends a label switching message to B4, and the address 3.2.2.3 is stored in the FEC TLV carried by the message. Therefore, in the address pool corresponding to the address 2.2.2.1 in the association relationship corresponding to B4, the destination address 3.2.2.3 that can be entered can be newly added. When the destination node finally reaches R2, the destination node is forwarded through IP, so that the destination node can be directly used by using the currently established tunnel network. If the label 15 is not used for a long time (for example, exceeds a set time threshold), the LDP session is deleted and a label revocation message is sent.
The path establishing method can establish the label switching path for sending the MPLS message according to the label switching message, so that the communication can be quickly established between the user equipment and the server, and the message forwarding efficiency can be improved.
Fig. 8 shows a block diagram of a path establishment apparatus according to an embodiment of the present disclosure. As shown in fig. 8, the apparatus includes:
a message receiving module 81, configured to receive a first label switching message for establishing a label switching path from a second device; a path establishing module 82, configured to establish a first label switching path by using the first device as an ingress node, using an intermediate device through which the first label switching message passes as a forwarding node, and using the second device as an egress node; the first label switching path is used for forwarding a first MPLS packet sent by the first device to the second device.
In an implementation manner, the first label switching message carries a label value used for generating the first MPLS packet and an address of the terminal device that is suspended by the second device, and the apparatus further includes: and the relationship establishing module is used for establishing a binding relationship between the second equipment and the tag value and establishing an association relationship between the address of the terminal equipment hung down by the second equipment and the second equipment.
In one implementation, the apparatus further comprises: the first message receiving module is used for receiving a first message from the terminal equipment hung down by the first equipment; a generating module, configured to insert the label value into the first packet to obtain the first MPLS packet when a destination address of the first packet has an association with the second device; and a forwarding module, configured to forward the first MPLS packet through the first label switched path.
In one implementation, the apparatus further comprises: the second message receiving module is used for receiving a second message from the terminal equipment hung down by the second equipment; a session establishing module, configured to establish an LDP session between the first device and the second device if a destination address of the second packet corresponds to a terminal device that is hung down by the first device; the LDP session is used for sending label exchange messages between the first device and the second device.
In one implementation, the apparatus further comprises: a message sending module, configured to send a second label switching message used for establishing a label switching path to the second device, so that the second device, when receiving the second label switching message, uses the second device as an ingress node, uses an intermediate device through which the second label switching message passes as a forwarding node, and uses the first device as an egress node, to establish the second label switching path; the second label switched path is used for forwarding a second MPLS packet sent by the second device to the first device.
In an implementation manner, in a case that the first device is a B4 device, the second device is a router, the terminal device that is under-hung by the first device is a user device, and the terminal device that is under-hung by the second device is a server; or in the case that the first device is a router, the second device is a B4 device, the terminal device that is hung down by the first device is a server, and the terminal device that is hung down by the second device is a user device.
The path establishing device can establish the label switching path for sending the MPLS message according to the label switching message, so that the communication can be quickly established between the user equipment and the server, and the message forwarding efficiency can be improved.
Fig. 9 is a block diagram illustrating an apparatus 900 for path establishment in accordance with an example embodiment. Referring to fig. 9, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 performs the path establishment method described above by reading machine executable instructions in the machine readable storage medium 902 corresponding to the path establishment logic.
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 (10)
1. A path establishing method is used for a first device in a lightweight dual-stack DS-Lite networking, and comprises the following steps:
receiving a first label switching message for establishing a label switching path from a second device;
establishing a first label switching path by taking the first equipment as an entrance node, taking intermediate equipment through which the first label switching message passes as a forwarding node and taking the second equipment as an exit node; the first label switching path is used for forwarding a first MPLS message sent by the first device to the second device;
under the condition that the first device is a B4 device, the second device is a router, the terminal device hung down by the first device is a user device, and the terminal device hung down by the second device is a server; or the like, or, alternatively,
and under the condition that the first device is a router, the second device is a B4 device, the terminal device hung down by the first device is a server, and the terminal device hung down by the second device is a user device.
2. The method of claim 1, wherein the first label switching message carries a label value used for generating the first MPLS packet and an address of a terminal device on which the second device is suspended, and wherein the method further comprises:
and establishing a binding relationship between the second equipment and the label value, and establishing an association relationship between the address of the terminal equipment hung down by the second equipment and the second equipment.
3. The method of claim 2, wherein after establishing the first label switched path, the method further comprises:
receiving a first message from the terminal device hung down by the first device;
under the condition that the destination address of the first message has an incidence relation with the second equipment, inserting the label value into the first message to obtain the first MPLS message;
and forwarding the first MPLS message through the first label switching path.
4. The method of claim 1, wherein prior to receiving the first label switching message from the second device for establishing the label switched path, the method further comprises:
receiving a second message from the terminal device hung down by the second device;
if the destination address of the second message corresponds to the terminal device hung down by the first device, establishing an LDP session between the first device and the second device; the LDP session is used for sending label exchange messages between the first device and the second device.
5. The method of claim 1, further comprising:
sending a second label switching message for establishing a label switching path to the second device, so that the second device establishes the second label switching path by taking the second device as an ingress node, taking an intermediate device through which the second label switching message passes as a forwarding node and taking the first device as an egress node, under the condition that the second device receives the second label switching message; the second label switched path is used for forwarding a second MPLS packet sent by the second device to the first device.
6. A path establishing apparatus, configured to be used in a first device in a lightweight dual-stack DS-Lite networking, and including:
a message receiving module, configured to receive a first label switching message for establishing a label switching path from a second device;
a path establishing module, configured to establish a first label switching path by using the first device as an ingress node, using an intermediate device through which the first label switching message passes as a forwarding node, and using the second device as an egress node; the first label switching path is used for forwarding a first MPLS message sent by the first device to the second device;
under the condition that the first device is a B4 device, the second device is a router, the terminal device hung down by the first device is a user device, and the terminal device hung down by the second device is a server; or the like, or, alternatively,
and under the condition that the first device is a router, the second device is a B4 device, the terminal device hung down by the first device is a server, and the terminal device hung down by the second device is a user device.
7. The apparatus of claim 6, wherein the first label switching message carries a label value used for generating the first MPLS packet and an address of a terminal device on which the second device is to be dropped, the apparatus further comprising:
and the relationship establishing module is used for establishing a binding relationship between the second equipment and the tag value and establishing an association relationship between the address of the terminal equipment hung down by the second equipment and the second equipment.
8. The apparatus of claim 7, further comprising:
the first message receiving module is used for receiving a first message from the terminal equipment hung down by the first equipment;
a generating module, configured to insert the label value into the first packet to obtain the first MPLS packet when a destination address of the first packet has an association with the second device;
and a forwarding module, configured to forward the first MPLS packet through the first label switched path.
9. The apparatus of claim 6, further comprising:
the second message receiving module is used for receiving a second message from the terminal equipment hung down by the second equipment;
a session establishing module, configured to establish an LDP session between the first device and the second device if a destination address of the second packet corresponds to a terminal device that is hung down by the first device; the LDP session is used for sending label exchange messages between the first device and the second device.
10. The apparatus of claim 6, further comprising:
a message sending module, configured to send a second label switching message used for establishing a label switching path to the second device, so that the second device, when receiving the second label switching message, uses the second device as an ingress node, uses an intermediate device through which the second label switching message passes as a forwarding node, and uses the first device as an egress node, to establish the second label switching path; the second label switched path is used for forwarding a second MPLS packet sent by the second device to the first device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711137220.9A CN107995113B (en) | 2017-11-16 | 2017-11-16 | Path establishing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711137220.9A CN107995113B (en) | 2017-11-16 | 2017-11-16 | Path establishing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107995113A CN107995113A (en) | 2018-05-04 |
CN107995113B true CN107995113B (en) | 2020-12-25 |
Family
ID=62031526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711137220.9A Active CN107995113B (en) | 2017-11-16 | 2017-11-16 | Path establishing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107995113B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11483281B2 (en) | 2020-03-27 | 2022-10-25 | Arris Enterprises Llc | Apparatus and method for establishing and maintaining a DS-lite tunnel |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103067411A (en) * | 2013-01-23 | 2013-04-24 | 杭州华三通信技术有限公司 | Method and device for preventing DoS (denial of service) attack in DS-Lite (dual stack-Lite) networking |
CN103986654A (en) * | 2014-05-05 | 2014-08-13 | 杭州华三通信技术有限公司 | LSP generating method and device |
CN104620637A (en) * | 2012-09-14 | 2015-05-13 | 弗洛伊德梅什网络公司 | Method and system for mobility management in label switched networks |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043429B (en) * | 2006-06-05 | 2010-05-12 | 华为技术有限公司 | Method for establishing multicasting LSP in MPLS field and multicasting data communication system |
CN101090355B (en) * | 2007-07-24 | 2010-09-22 | 杭州华三通信技术有限公司 | Label exchange route setting method, system and equipment of virtual special network channel |
CN102439917B (en) * | 2011-10-31 | 2015-04-08 | 华为技术有限公司 | Connection building method and device for transponding neighbour-lable switching path |
CN106209630B (en) * | 2016-07-26 | 2019-09-06 | 新华三技术有限公司 | A kind of label management method and device |
-
2017
- 2017-11-16 CN CN201711137220.9A patent/CN107995113B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104620637A (en) * | 2012-09-14 | 2015-05-13 | 弗洛伊德梅什网络公司 | Method and system for mobility management in label switched networks |
CN103067411A (en) * | 2013-01-23 | 2013-04-24 | 杭州华三通信技术有限公司 | Method and device for preventing DoS (denial of service) attack in DS-Lite (dual stack-Lite) networking |
CN103986654A (en) * | 2014-05-05 | 2014-08-13 | 杭州华三通信技术有限公司 | LSP generating method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107995113A (en) | 2018-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10484203B2 (en) | Method for implementing communication between NVO3 network and MPLS network, and apparatus | |
RU2321959C2 (en) | Source identifier for finding the mac-address | |
CN111682996B (en) | Method for forwarding message in network, network node and network system | |
US7590119B2 (en) | Method and apparatus for context-based prefix updates in border gateway protocol | |
US8416787B2 (en) | Method, system and apparatus for implementing L2VPN between autonomous systems | |
CN110912796B (en) | Communication method, device and system | |
EP4131872A1 (en) | Multicast traffic transmission method and apparatus, communication node, and storage medium | |
EP3364613B1 (en) | Method and device for transmitting traffic via specified path | |
CN112019433B (en) | Message forwarding method and device | |
CN103716172B (en) | A kind of OAM method and devices based on multiprotocol label switching | |
CN110535768B (en) | Multicast data transmission method and related equipment | |
WO2017124709A1 (en) | Method of establishing traffic engineering tunnel and device | |
CN105337881A (en) | Data message processing method, service node and stream guiding point | |
WO2022127586A1 (en) | Message processing method, node, and computer-readable storage medium | |
WO2017211164A1 (en) | Method, apparatus, and system for determining inter-as label switched path tunnel | |
CN112491706B (en) | Data message processing method and device, storage medium and electronic device | |
US20240154902A1 (en) | Packet forwarding method and system, storage medium, and electronic device | |
CN107995113B (en) | Path establishing method and device | |
EP3846392B1 (en) | Cross-domain bidirectional tunnel creation method, communication method and apparatus, and storage medium | |
CN111277426B (en) | IOAM information processing method and device | |
CN110535675B (en) | Method and device for multicast fast switching | |
JP5840211B2 (en) | Pseudowire providing an in-band control channel with offset | |
CN108540343B (en) | Path detection method and device | |
EP4340303A1 (en) | Data forwarding method and apparatus, storage medium, and electronic apparatus | |
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 |