CN107995113A - Path establishment method and device - Google Patents

Path establishment method and device Download PDF

Info

Publication number
CN107995113A
CN107995113A CN201711137220.9A CN201711137220A CN107995113A CN 107995113 A CN107995113 A CN 107995113A CN 201711137220 A CN201711137220 A CN 201711137220A CN 107995113 A CN107995113 A CN 107995113A
Authority
CN
China
Prior art keywords
equipment
message
label
tag switching
switched 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.)
Granted
Application number
CN201711137220.9A
Other languages
Chinese (zh)
Other versions
CN107995113B (en
Inventor
郭威
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201711137220.9A priority Critical patent/CN107995113B/en
Publication of CN107995113A publication Critical patent/CN107995113A/en
Application granted granted Critical
Publication of CN107995113B publication Critical patent/CN107995113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

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

Abstract

This disclosure relates to a kind of path establishment method and device.The path establishment method includes:Receive the first Tag switching message for being used to establish label switched path for coming from the second equipment;Using the first equipment as Ingress node, the intermediate equipment passed through using the first Tag switching message, using the second equipment as Egress node, establishes the first label switched path as forward node;First label switched path is used for the first MPLS messages for forwarding the first equipment to be sent to the second equipment.The path establishment method and device of the disclosure, can establish the label switched path for being used for sending MPLS messages so that communication can be quickly established between user equipment and server, it is possible to increase message forward efficiency according to Tag switching message.

Description

Path establishment method and device
Technical field
This disclosure relates to field of communication technology, more particularly to a kind of path establishment method and device.
Background technology
Fig. 1 shows the schematic diagram of the DS-Lite networkings in correlation technique.As shown in Figure 1, access the mistake of server in host Cheng Zhong, IPv4 message by B4 (Basic Bridging Broad Band, bridge broadband substantially) equipment packages for IPv6 messages it Afterwards, by DS-Lite (Dual Stack Lite, lightweight dual stack) tunnel transmissions to AFTR (Address Family Transition Router, address family translation router) equipment, IPv4 messages are descapsulated into by AFTR equipment and carry out NAT (Network Address Translation, network address translation) is changed, then by being arrived after multiple IPv4 route queryings Up to server.The IPv4 messages that server returns need to reach AFTR equipment, Ran Houyou after multiple IPv4 route queryings AFTR equipment carries out NAT conversions and is encapsulated as after IPv6 messages, by DS-Lite tunnel transmissions to B4 equipment, by B4 equipment It is descapsulated into IPv4 messages.In above process, when the message amount of forwarding is larger, it will increase B4 equipment and AFTR equipment Burden, limitation message forwarding efficiency.
The content of the invention
In view of this, the present disclosure proposes a kind of path establishment method and device, to solve a large amount of messages in correlation technique The problem of facility load is big, message forward efficiency is low is caused when being forwarded by DS-Lite tunnels.
According to the one side of the disclosure, there is provided a kind of path establishment method, including:
Receive the first Tag switching message for being used to establish label switched path for coming from the second equipment;
Using first equipment as Ingress node, using the first Tag switching message pass through intermediate equipment as turn Node is sent out, using second equipment as Egress node, establishes the first label switched path;First label switched path is used In the first MPLS messages for forwarding first equipment to be sent to second equipment.
According to another aspect of the present disclosure, there is provided device is established in a kind of path, including:
Message reception module, the first label for being used to establish label switched path that the second equipment is come from for receiving are handed over Change message;
Module is established in path, for using first equipment as Ingress node, being passed through with the first Tag switching message The intermediate equipment crossed, using second equipment as Egress node, establishes the first label switched path as forward node;It is described First label switched path is used to forward the first MPLS messages that first equipment is sent to second equipment.
The path establishment method and device of the disclosure, the first equipment receive come from the second equipment be used for establish mark In the case of the first Tag switching message for signing switching path, using the first equipment as Ingress node, disappeared with the first Tag switching The intermediate equipment passed through is ceased as forward node, using the second equipment as Egress node, establishes the first label switched path, first Label switched path is used for the first MPLS messages for forwarding the first equipment to be sent to the second equipment, thus, it is possible to according to Tag switching Message establishes the label switched path for being used for sending MPLS messages so that can quickly be established between user equipment and server logical Letter, it is possible to increase message forward efficiency.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, the further feature and aspect of the disclosure It is clear.
Brief description of the drawings
Comprising in the description and the attached drawing of a part for constitution instruction and specification together illustrate the disclosure Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 shows the schematic diagram of the DS-Lite networkings in correlation technique.
Fig. 2 shows a schematical schematic diagram of the DS-Lite networkings in correlation technique.
Fig. 3 shows the flow chart of the path establishment method according to one embodiment of the disclosure.
Fig. 4 shows the schematic diagram of the Tag switching message according to one embodiment of the disclosure.
Fig. 5 shows the schematic diagram of the DS-Lite networkings according to one embodiment of the disclosure.
Fig. 6 shows a schematical flow chart of the path establishment method according to one embodiment of the disclosure.
Fig. 7 shows a schematical flow chart of the path establishment method according to one embodiment of the disclosure.
Fig. 8 shows to establish the block diagram of device according to the path of one embodiment of the disclosure.
Fig. 9 is a kind of block diagram that device 900 is established for path according to an exemplary embodiment.
Embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to attached drawing.It is identical in attached drawing Reference numeral represent functionally the same or similar element.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically point out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details is given in embodiment below. It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 2 shows a schematical schematic diagram of the DS-Lite networkings in correlation technique.As shown in Fig. 2, R1 and R2 are Router in IPv4 networks.In the DS-Lite networkings, message forwards the situation that will form IPv4-IPv6-IPv4, report Text is needed by the DS-Lite tunnels between B4 equipment and AFTR equipment, it is also necessary to carries out NAT conversions by AFTR equipment, so Hop-by-hop is routed afterwards is forwarded to by R1 and R2, when the message amount of forwarding is larger will caused by message forward It is less efficient.In the path establishment method of the disclosure, using MPLS (Multi-Protocol Label Switching, it is more Agreement label switched) message forwarding is carried out, it can effectively solve the problem that during using progress message forwarding is route, when forwarding The problem of caused message forward efficiency is relatively low when message amount is larger.
Fig. 3 shows the flow chart of the path establishment method according to one embodiment of the disclosure.As shown in figure 3, this method can be with Including step S31 to step S32.
In step S31, the first Tag switching for being used to establish label switched path that reception comes from the second equipment disappears Breath.
In step s 32, using the first equipment as Ingress node, the intermediate equipment passed through with the first Tag switching message is made For forward node, using the second equipment as Egress node, the first label switched path is established;First label switched path is used to turn Send out the first MPLS messages that the first equipment is sent to the second equipment.
In one implementation, this method further includes:Sent to the second equipment and be used to establish the of label switched path Two Tag switching message so that the second equipment is in the case where receiving the second Tag switching message, using the second equipment as Ingress node, using the intermediate equipment that the second Tag switching message is passed through as forward node, using the first equipment as Egress node, Establish the second label switched path;Second label switched path is used for the 2nd MPLS for forwarding the second equipment to be sent to the first equipment Message.
In one implementation, in the case where the first equipment is B4 equipment, the second equipment is router, the first equipment The terminal device of lower extension is user equipment, and the terminal device hung under the second equipment is server;Or in the first equipment it is router In the case of, the second equipment is B4 equipment, and the terminal device hung under the first equipment is server, and the terminal hung under the second equipment is set Standby is user equipment.
As an example, B4 equipment receives the first label friendship for being used to establish label switched path for coming from router Change message.Using B4 equipment as Ingress node, the intermediate equipment passed through using the first Tag switching message is as forward node, with road By device as Egress node, the first label switched path is established;First label switched path is used to forward B4 equipment to router The first MPLS messages sent.B4 equipment sends the second Tag switching message for being used for establishing label switched path to router. Using router as Ingress node, using the intermediate equipment that the second Tag switching message is passed through as forward node, made with B4 equipment For Egress node, the second label switched path is established;Second label switched path is used for what forwarding router was sent to B4 equipment 2nd MPLS messages.
In one implementation, after the first label switched path is established, this method further includes:Reception comes from First message of the terminal device hung under one equipment;There are the feelings of incidence relation in the destination address of the first message and the second equipment Under condition, label value is inserted into the first message, obtains the first MPLS messages;First MPLS reports are forwarded by the first label switched path Text.
In one implementation, the first Tag switching message carries the label value for being used for generating the first MPLS messages, with And second the terminal device hung under equipment address, this method further includes:Second equipment and label value are established into binding relationship, and Incidence relation is established into the address for the terminal device hung under second equipment and the second equipment.
Wherein, the second equipment and label value are established binding relationship by the first equipment, and the terminal hung under the second equipment is set Incidence relation is established in standby address with the second equipment, thus when the first equipment receives message, if the destination address of the message There is incidence relation (accessing the terminal device hung under the second equipment) with the second equipment, then can by with the second apparatus bound Label value is inserted into the message, obtains the first MPLS messages, and forward the first MPLS messages by the first label switched path.At this In kind message repeating process so that communication can be quickly established between user equipment and server, it is possible to increase message forwarding effect Rate.
Fig. 4 shows the schematic diagram of the Tag switching message according to one embodiment of the disclosure.In one implementation, as schemed Shown in 4, Tag switching message (Label Swithing Message) can include type of message (Message Type), message Length (Message Length), message numbering (Message ID), forwarding equivalence class mark (FEC TLV), tag identifier (Label TLV) and optional parameters (Optional Parameters) etc., the disclosure is not restricted this.
Wherein, the type of message of Tag switching message can use still untapped field in RFC5036 agreements, such as 0x0499.The label value that the path establishment method of the disclosure retains can be saved as in Label TLV, such as between 4~15 also Untapped label value.The corresponding user equipment or clothes preserved when carrying out message forwarding first can be preserved in FEC TLV The address of business device, such as can be an address or address list, and establish incidence relation with corresponding B4 equipment or router.
Wherein, label switched path (Label Switching Path, LSP) can be each LSR in mpls domain (Label Switching Router, Label Switch Router) passes through LDP (Label Distribution Protocol, mark Sign distribution protocol) message establish message forwarding path, such as can according to Tag switching message pass through intermediate equipment determine Label switched path.
In one implementation, router can be the router being directly connected to server.As shown in Fig. 2, R2 is The router being directly connected to server.In the case where B4 is received and come from the Tag switching message of R2, LSP1 is established. LSP1 is used as Egress node (Egress Node) using B4 as Ingress node (Ingress Node), using R2.If Tag switching disappears Breath passes through R1 and AFTR during B4 is transmitted to from R2, then LSP1:B4→AFTR→R1→R2.Under this kind of mode, report Text is during forwarding, and without carrying out the conversion of IPv4 and IPv6, the NAT without carrying out private network and public network is changed, without every A router hop-by-hop is routed, the forward efficiency thus, it is possible to improve message.
In another implementation, router can be the router not being directly connected to server.As shown in Fig. 2, R1 is the router not being directly connected to server.In the case where B4 is received and come from the Tag switching message of R1, establish LSP2.LSP2 is used as Egress node (Egress Node) using B4 as Ingress node (Ingress Node), using R1.If label Exchange message and pass through AFTR during B4 is transmitted to from R1, then LSP1:B4→AFTR→R1.Under this kind of mode, message During forwarding, without carrying out the conversion of IPv4 and IPv6, the NAT without carrying out private network and public network is changed, thus, it is possible to Improve the forward efficiency of message.
Fig. 5 shows the schematic diagram of the DS-Lite networkings according to one embodiment of the disclosure.As shown in figure 5, user equipment (Host) address is 1.1.1.1, and the LSR ID of B4 equipment are that the interface IP address of 9.1.1.1, Host and B4 equipment is 1.1.1.2, the address of AFTR equipment is 1.1.1.1->10.1.1.1, the address of R1 equipment is 11.1.1.1, R2 equipment and service The interface IP address of device is 2.1.1.1, and the LSR ID of R2 equipment are 2.2.2.1, application server (Application Server) Address be 2.2.2.2, the address of log server (Log Server) is 3.2.2.3.Deposited between B4 equipment and AFTR equipment At DS-Lite tunnels (DS-Lite tunnel).Wherein, R2 equipment is the router being directly connected to server.
As an example, as shown in figure 5, B4 receives the Tag switching message for coming from R2, LSP1 is established:B4→ AFTR→R1→R2.In Tag switching message, if the address preserved in FEC TLV is the address of Application Sever 2.2.2.2, the label value preserved in Label TLV is 15, then address 2.2.2.2 and R2 are established incidence relation by B4, such as will 2.2.2.2 store into the corresponding address pools of R2.Received in B4 and come from message that Host and destination address are 2.2.2.2 In the case of, since 2.2.2.2 belongs to the corresponding address pools of R2, then 15 are determined as determining the label value for E-Packeting.B4 Label value 15 is inserted into message, obtains MPLS messages, and MPLS messages are forwarded according to LSP1.R2 receives MPLS messages, then will Label 15 is transmitted to Application Sever after peeling off.
In one implementation, this method further includes:Come from being handed over by the second label for the second equipment receiving In the case of the 2nd MPLS messages for changing path forwarding, the label value of the 2nd MPLS messages is peeled off, obtains the second message, and according to The destination address of second message forwards the second message;Second label switched path is using the second equipment as Ingress node, with first Equipment is as Egress node.
The path establishment method of the disclosure, the label for being used to send MPLS messages can be established according to Tag switching message and is handed over Path is changed, MPLS messages are during forwarding, without carrying out the conversion of IPv4 and IPv6, without carrying out private network and public network NAT is changed, and is routed without each router hop-by-hop so that can quickly be established between user equipment and server logical Letter, it is possible to increase message forward efficiency.
Fig. 6 shows a schematical flow chart of the path establishment method according to one embodiment of the disclosure.This method is used for In B4 equipment, the disclosure is not restricted this.As shown in fig. 6, this method can include step S61 to S66.
In step S61, B4 equipment establishes tag distribution protocol LDP sessions with router.
In step S62, B4 equipment is in the case where receiving the Tag switching message for coming from router, with B4 equipment As Ingress node, the intermediate equipment passed through using Tag switching message, using router as Egress node, is built as forward node Vertical first label switched path.
In step S63, B4 equipment obtains the address for the server that Tag switching message carries, and by the ground of the server Incidence relation is established in location with router.
In step S64, B4 equipment judges the first report in the case where receiving and coming from the first message of user equipment Whether the destination address of text with router establishes incidence relation.
In step S65, in the case where destination address and the router of the first message establish incidence relation, B4 equipment will The label value carried in Tag switching message is determined as the label value for forwarding the first message.
In step S66, label value is inserted into the first message by B4 equipment, obtains the first MPLS messages, and according to the first mark Sign switching path and forward the first MPLS messages.
In one implementation, between user equipment and server first during two-way converting message, according to Message forwarding process in correlation technique carries out message forwarding.I.e. message is needed by the DS- between B4 equipment and AFTR equipment Lite tunnels, it is also necessary to carry out NAT conversions by AFTR equipment, forwarded after then hop-by-hop is routed.Set in user It is standby after two-way converting message is completed first between server, if also there are message forwarding between user equipment and server, Message forwarding is then carried out using the message forwarding process described in step S61 to step S66.
In one implementation, after two-way converting message is completed first between user equipment and server, according to The address of B4 equipment and the address of router, establish LDP sessions between B4 equipment and router.Wherein, B4 equipment can be The network equipment being directly connected to user equipment.Router can be the router being directly connected to server, i.e. router can Think the end-equipment of IPv4 networks.Under this kind of mode, LDP sessions can be established according to the forwarding demand of message, and rear It is continuous when being forwarded for a long time without corresponding message, LDP sessions are automatically closed, are effectively saved Session Resources.
In one implementation, the first label for being used to establish label switched path of the second equipment is come from reception Before exchanging message, this method further includes:Receive the second message for coming from the terminal device hung under the second equipment;If the second report The destination address of text corresponds under the first equipment the terminal device hung, then LDP meetings are established between the first equipment and the second equipment Words;LDP sessions are used to send Tag switching message between the first equipment and the second equipment.
In one implementation, when message passes through B4 equipment or router, B4 equipment or router pass through message Destination address, it is known that there are message to access corresponding user equipment or server, then initiates to establish LDP sessions.If LDP meetings Words are successfully established, then it represents that two-way converting message is successful first between user equipment and server, otherwise B4 equipment or router Corresponding message was not received, then will not send LDP messages, and LDP sessions will not be then successfully established.
As an example, as shown in figure 5, the two-way converting message first between Host and Application Server During, if R2 receives the message for coming from that Host and destination address are 2.2.2.2, B4, which is received, to be come from Application Server and destination address are the message of 1.1.1.1, then the bi-directionally sent LDP messages of B4 and R2 establish LDP meetings Words.After the success of LDP session establishments, bi-directionally sent Tag switching message between B4 and R2.Disappear for example, R2 sends Tag switching Cease { dst:1.1.1.2,src:2.2.2.1,FEC TLV:2.2.2.2,Label TLV:15 }, B4 sends Tag switching message {dst:2.2.2.1,src:1.1.1.2,FEC TLV:1.1.1.1,Label TLV:15}。
In one implementation, after the success of LDP session establishments, bi-directionally sent label between B4 equipment and router Exchange message.The source address and destination address of Tag switching message are using the transmission address for establishing LDP sessions.Tag switching message The equipment passed through on the way forms interim label forwarding list item, thus establishes tag transform path.Wherein, label friendship is received Ingress Node can be used as by changing the equipment of message, and the equipment of intermediate conveyor Tag switching message can be Transit Node, Egress Node can be used as by sending the equipment of Tag switching message.
Wherein, Ingress Node:After Tag switching message is received, according to the label value in Label TLV, Ingress Node form the corresponding outgoing label forwarding-table items of Label TLV.Outgoing label forwarding-table item and Egress Node are corresponded to Interface and address establish incidence relation.Ingress Node are for the message that enters from interface, if the destination address category of message In the corresponding address pools of Egress Node, then the label value in Label TLV is pressed into message, obtain after MPLS messages again into Row forwarding.Transit Node:According to the interface for entering direction and outgoing direction, form interim label forwarding list item, enter label and Outgoing label is equal to the label value in Label TLV.Egress Node:For the MPLS messages received, Egress Node strippings Label from MPLS messages is forwarded to again afterwards.For example, after Egress Node peel off the label of MPLS messages, according to report The IP address of text is forwarded to.Thus, corresponding server can be forwarded in the Egress Node multiple servers of connection, Ensure the forward efficiency of public network.
In one implementation, in the case of bi-directionally sent Tag switching message, it may appear that while equipment is both Ingress Node are the situation of Egress Node again.Long-term if (such as time threshold more than setting) is without corresponding label Message forwards, then deletes LDP sessions, sends label withdraw message.The forwarding process of label withdraw message is similar to Tag switching The forwarding process of message.The form of label withdraw message is identical with the form of Tag switching message, but label withdraw message disappears Breath type mark is label withdraw.
Fig. 7 shows a schematical flow chart of the path establishment method according to one embodiment of the disclosure.This method is used for In router, the disclosure is not restricted this.As shown in fig. 7, this method can include step S71 to S76.
In step S71, router establishes tag distribution protocol LDP sessions with B4 equipment.
In step S72, router is in the case where receiving the Tag switching message for coming from B4 equipment, with router As Ingress node, the intermediate equipment passed through using Tag switching message, using B4 equipment as Egress node, is built as forward node Vertical second label switched path.
In step S73, router obtains the address for the user equipment that Tag switching message carries, and by the user's equipment Address and B4 equipment establish incidence relation.
In step S74, router judges the second message in the case where receiving and coming from the second message of server Destination address whether with B4 equipment establish incidence relation.
In step S75, in the case where destination address and the B4 equipment of the second message establish incidence relation, router will The label value carried in Tag switching message is determined as the label value for forwarding the second message.
In step S76, label value is inserted into the second message by router, obtains the 2nd MPLS messages, and according to the second mark Sign switching path and forward the 2nd MPLS messages.
As an example, as shown in figure 5, the two-way converting message first between Host and Application Server Afterwards, the bi-directionally sent LDP messages of B4 and R2 establish LDP sessions.After the success of LDP session establishments, two-way hair between B4 and R2 Send Tag switching message.For example, R2 sends Tag switching message { dst:1.1.1.2,src:2.2.2.1,FEC TLV: 2.2.2.2,Label TLV:15 }, B4 sends Tag switching message { dst:2.2.2.1,src:1.1.1.2,FEC TLV: 1.1.1.1,Label TLV:15}。
For B4 after Tag switching message is received, the label value 15 in Label TLV forms corresponding outgoing label Forwarding-table item.B4 is as Ingress Node, and R2 is as Egress Node.B4 establishes association with corresponding interface and address and closes System, i.e. { address:2.2.2.1, physical interface:G0/1, label value:15}.B4 after Tag switching message is sent, according to Label value 15 in Label TLV formed it is corresponding enter label forwarding list item.R2 is as Ingress Node, and B4 is as Egress Node.B4 after the label for peeling off MPLS messages, is turned for the MPLS messages that label value is 15 according to the IP address of message Hair.In addition, B4 is by address 2.2.2.1 associated servers address 2.2.2.2, such as 2.2.2.2 stored corresponding to 2.2.2.1 In address pool.
R2 equally receives and dispatches Tag switching message.R2 is as Ingress Node, and B4 is as Egress Node.Similarly, R2 Incidence relation, i.e. { address are established with corresponding interface and address:1.1.1.2, physical interface:G0/2, label value:15}.B4 makees For Ingress Node, R2 is as Egress Node.R2 is for the MPLS messages that label value is 15, the mark of stripping MPLS messages After label, it is forwarded to according to the IP address of message.In addition, R2 is by address 1.1.1.2 association users device address 1.1.1.1, Such as 1.1.1.1 is stored into the corresponding address pools of 1.1.1.2.All devices between B4 and R2 are Transit Node, it is interim label forwarding list item that 15 outgoing label are also 15 to be formed into label, enters direction and outgoing direction to receive label Exchange the interface of message.
As described above, as shown in figure 5, Host (1.1.1.1) accesses Application Server (2.2.2.2).If with Upper label forwarding list item, which is established, to be completed, when message enters B4, B4 can judge message enter direction whether belong to pass using interface In connection relation.If so, then judging whether the destination address of message belongs to 2.2.2.1 corresponding address pools in address in incidence relation In.In this example, message enters from interface g0/1 and destination address is 2.2.2.2.The destination address of message belongs to association and closes In system in the corresponding address pools of address 2.2.2.1.B4 is pressed into label value 15, obtains MPLS messages.MPLS message approach B4 and R2 Between intermediate equipment AFTR and R1, since AFTR and R1 is there are interim label forwarding list item, then directly according to entering mark Label 15 swap, without searching corresponding routing table.After MPLS messages reach R2, R2 judges into label 15, then to eject Label exposes IP packet head, and IP destination addresses are 2.2.2.2, then message is directly given to Application Server by R2.Instead It is similar to flow.
Subsequently, if as shown in figure 5, Log Server (3.2.2.3) also are intended to add, Host and Log Server it Between first after two-way converting message, R2 sends Tag switching message to B4, and address 3.2.2.3 is preserved in the FEC TLV of carrying. Thus, in the corresponding incidence relations of B4 in the corresponding address pools of address 2.2.2.1, can newly increase can entrance destination address 3.2.2.3.When eventually arriving at R2, by then passing through IP forwardings, so using the current tunneled network set up, can directly it make With.If label 15 (such as time threshold more than setting) is not used for a long time, LDP sessions are deleted, send label withdraw message.
The path establishment method of the disclosure, the label for being used to send MPLS messages can be established according to Tag switching message and is handed over Change path so that communication can be quickly established between user equipment and server, it is possible to increase message forward efficiency.
Fig. 8 shows to establish the block diagram of device according to the path of one embodiment of the disclosure.As shown in figure 8, the device includes:
Message reception module 81, the first label for being used to establish label switched path of the second equipment is come from for receiving Exchange message;Module 82 is established in path, for using first equipment as Ingress node, with the first Tag switching message The intermediate equipment of process, using second equipment as Egress node, establishes the first label switched path as forward node;Institute State the first MPLS messages that the first label switched path is used to forward first equipment to send to second equipment.
In one implementation, the first Tag switching message carries the mark for being used for generating the first MPLS messages The address for the terminal device hung under label value, and second equipment, described device further include:Relation establishes module, for inciting somebody to action Second equipment and the label value establish binding relationship, and by the address for the terminal device hung under second equipment and institute State the second equipment and establish incidence relation.
In one implementation, described device further includes:First message receiving module, comes from described for receiving First message of the terminal device hung under one equipment;Generation module, for the destination address and described the in first message In the case that two equipment have incidence relation, the label value is inserted into first message, obtains the first MPLS messages; Forwarding module, for forwarding the first MPLS messages by first label switched path.
In one implementation, described device further includes:Second message receiving module, comes from described for receiving Second message of the terminal device hung under two equipment;Session establishment module, if the destination address for second message corresponds to The terminal device hung under first equipment, then establish LDP sessions between first equipment and second equipment;Institute LDP sessions are stated to be used to send Tag switching message between first equipment and second equipment.
In one implementation, described device further includes:Message transmission module, is used for being sent to second equipment In the second Tag switching message for establishing label switched path, so that second equipment is receiving the second label friendship In the case of changing message, using second equipment as Ingress node, set with the centre that the second Tag switching message is passed through It is standby to be used as forward node, using first equipment as Egress node, establish the second label switched path;Second label is handed over Change the 2nd MPLS messages that path is used to forward second equipment to send to first equipment.
In one implementation, in the case where first equipment is B4 equipment, second equipment is router, The terminal device hung under first equipment is user equipment, and the terminal device hung under second equipment is server;Or In the case that first equipment is router, second equipment is B4 equipment, the terminal device hung under first equipment For server, the terminal device hung under second equipment is user equipment.
Device is established in the path of the disclosure, and the label for being used to send MPLS messages can be established according to Tag switching message and is handed over Change path so that communication can be quickly established between user equipment and server, it is possible to increase message forward efficiency.
Fig. 9 is a kind of block diagram that device 900 is established for path according to an exemplary embodiment., should with reference to Fig. 9 Device 900 may include processor 901, be stored with the machinable medium 902 of machine-executable instruction.Processor 901 with Machinable medium 902 can communicate via system bus 903.Also, processor 901 passes through read machine readable storage medium The corresponding machine-executable instruction of logic is established with path in matter 902 to perform path establishment method described above.
Machinable medium 902 referred to herein can be any electronics, magnetism, optics or other physical stores Device, can include or store information, such as executable instruction, data, etc..For example, machinable medium can be: RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven Dynamic device (such as hard disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), or similar storage are situated between Matter, or combinations thereof.
The presently disclosed embodiments is described above, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport Best explain the principle of each embodiment, practical application or technological improvement to the technology in market, or lead this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (12)

  1. A kind of 1. path establishment method, it is characterised in that for the first equipment, including:
    Receive the first Tag switching message for being used to establish label switched path for coming from the second equipment;
    Using first equipment as Ingress node, saved using the intermediate equipment that the first Tag switching message is passed through as forwarding Point, using second equipment as Egress node, establishes the first label switched path;First label switched path is used to turn The first MPLS messages sent out the first equipment described and sent to second equipment.
  2. 2. according to the method described in claim 1, it is characterized in that, the first Tag switching message carrying is described for generating The address for the terminal device hung under the label value of first MPLS messages, and second equipment, the method further include:
    Second equipment and the label value are established into binding relationship, and by the ground for the terminal device hung under second equipment Incidence relation is established in location with second equipment.
  3. It is 3. described according to the method described in claim 2, it is characterized in that, after first label switched path is established Method further includes:
    Receive the first message for coming from the terminal device hung under first equipment;
    In the case where the destination address of first message has incidence relation with second equipment, the label value is inserted Enter first message, obtain the first MPLS messages;
    The first MPLS messages are forwarded by first label switched path.
  4. 4. according to the method described in claim 1, it is characterized in that, come from being handed over for establishing label for the second equipment receiving Change before the first Tag switching message in path, the method further includes:
    Receive the second message for coming from the terminal device hung under second equipment;
    If the destination address of second message corresponds under first equipment terminal device hung, in first equipment LDP sessions are established between second equipment;The LDP sessions are used to send out between first equipment and second equipment Send Tag switching message.
  5. 5. according to the method described in claim 1, it is characterized in that, the method further includes:
    The the second Tag switching message for being used for establishing label switched path is sent to second equipment, so that described second sets It is standby in the case where receiving the second Tag switching message, using second equipment as Ingress node, with described second The intermediate equipment that Tag switching message is passed through, using first equipment as Egress node, establishes the second mark as forward node Sign switching path;Second label switched path is used for forward second equipment to be sent to first equipment second MPLS messages.
  6. 6. according to the method described in claim 1, it is characterized in that,
    In the case where first equipment is B4 equipment, second equipment is router, the end hung under first equipment End equipment is user equipment, and the terminal device hung under second equipment is server;Or
    In the case where first equipment is router, second equipment is B4 equipment, the end hung under first equipment End equipment is server, and the terminal device hung under second equipment is user equipment.
  7. 7. device is established in a kind of path, it is characterised in that for the first equipment, including:
    Message reception module, the first Tag switching for being used to establish label switched path that the second equipment is come from for receiving disappear Breath;
    Module is established in path, for using first equipment as Ingress node, being passed through with the first Tag switching message Intermediate equipment, using second equipment as Egress node, establishes the first label switched path as forward node;Described first Label switched path is used to forward the first MPLS messages that first equipment is sent to second equipment.
  8. 8. device according to claim 7, it is characterised in that the first Tag switching message carries described for generating The address for the terminal device hung under the label value of first MPLS messages, and second equipment, described device further include:
    Relation establishes module, for second equipment and the label value to be established binding relationship, and by second equipment Incidence relation is established in the address of the terminal device of lower extension with second equipment.
  9. 9. device according to claim 8, it is characterised in that described device further includes:
    First message receiving module, the first message of the terminal device hung under first equipment is come from for receiving;
    Generation module, in the case of there is incidence relation in the destination address of first message and second equipment, The label value is inserted into first message, obtains the first MPLS messages;
    Forwarding module, for forwarding the first MPLS messages by first label switched path.
  10. 10. device according to claim 7, it is characterised in that described device further includes:
    Second message receiving module, the second message of the terminal device hung under second equipment is come from for receiving;
    Session establishment module, sets if the destination address for second message corresponds under first equipment terminal hung It is standby, then establish LDP sessions between first equipment and second equipment;The LDP sessions are used for first equipment Tag switching message is sent between second equipment.
  11. 11. device according to claim 7, it is characterised in that described device further includes:
    Message transmission module, disappears for sending the second Tag switching for being used to establish label switched path to second equipment Breath so that second equipment is in the case where receiving the second Tag switching message, using second equipment as Ingress node, the intermediate equipment passed through using the second Tag switching message as forward node, using first equipment as Egress node, establishes the second label switched path;Second label switched path is used to forward second equipment to described The 2nd MPLS messages that first equipment is sent.
  12. 12. device according to claim 7, it is characterised in that
    In the case where first equipment is B4 equipment, second equipment is router, the end hung under first equipment End equipment is user equipment, and the terminal device hung under second equipment is server;Or
    In the case where first equipment is router, second equipment is B4 equipment, the end hung under first equipment End equipment is server, and the terminal device hung under second equipment is user equipment.
CN201711137220.9A 2017-11-16 2017-11-16 Path establishing method and device Active CN107995113B (en)

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 true CN107995113A (en) 2018-05-04
CN107995113B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021189415A1 (en) * 2020-03-27 2021-09-30 Arris Enterprises Llc Apparatus and method for establishing and maintaining ds-lite tunnel

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043429A (en) * 2006-06-05 2007-09-26 华为技术有限公司 Method for establishing multicasting LSP in MPLS field and multicasting data communication system
CN101090355A (en) * 2007-07-24 2007-12-19 杭州华三通信技术有限公司 Label exchange route setting method, system and equipment of virtual special network channel
CN102439917A (en) * 2011-10-31 2012-05-02 华为技术有限公司 Connection building method and device for transponding neighbour-lable switching path
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
CN106209630A (en) * 2016-07-26 2016-12-07 杭州华三通信技术有限公司 A kind of label management method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043429A (en) * 2006-06-05 2007-09-26 华为技术有限公司 Method for establishing multicasting LSP in MPLS field and multicasting data communication system
CN101090355A (en) * 2007-07-24 2007-12-19 杭州华三通信技术有限公司 Label exchange route setting method, system and equipment of virtual special network channel
CN102439917A (en) * 2011-10-31 2012-05-02 华为技术有限公司 Connection building method and device for transponding neighbour-lable switching path
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
CN106209630A (en) * 2016-07-26 2016-12-07 杭州华三通信技术有限公司 A kind of label management method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021189415A1 (en) * 2020-03-27 2021-09-30 Arris Enterprises Llc Apparatus and method for establishing and maintaining ds-lite tunnel
US11483281B2 (en) 2020-03-27 2022-10-25 Arris Enterprises Llc Apparatus and method for establishing and maintaining a DS-lite tunnel
US11777898B2 (en) 2020-03-27 2023-10-03 Arris Enterprises Llc Apparatus and method for establishing and maintaining a DS-lite tunnel

Also Published As

Publication number Publication date
CN107995113B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN109756425B (en) Multicast forwarding method, device and BFR
CN104380673B (en) System and method for using tag distribution protocol (LDP) example in IPv6 networks
US8416787B2 (en) Method, system and apparatus for implementing L2VPN between autonomous systems
CN105791457B (en) A kind of data processing method and device
US8081563B2 (en) Protecting multi-segment pseudowires
US7126949B2 (en) Source identifier for MAC address learning
US8787218B2 (en) Dynamic establishment of virtual circuits multisegment pseudowires
CN109936629B (en) Hybrid cloud network interconnection method and system
WO2016197344A1 (en) Method, device and system for realizing service link
CN107547383A (en) Path detection method and device
US20140211629A1 (en) System and method for reporting out-of-resources (oor) conditions in a data network
CN104022936B (en) A kind of tunnel establishing method and device
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
CN102724117A (en) Multi-protocol label switching (MPLS) traffic engineering (TE) tunnel building method and device
KR101699643B1 (en) Oam method and device based on multi-protocol label switching
CN102571375B (en) Multicast forwarding method and device as well as network device
CN100428739C (en) Implementing method and system for support VPLS service on IP skeletal network
CN105553810A (en) Method and device for forwarding special line service packet
US20150281063A1 (en) Method and system for network traffic steering based on dynamic routing
Li et al. SRv6 Network Programming: Ushering in a New Era of IP Networks
CN107659436B (en) Method and device for preventing service interruption
US20150281050A1 (en) Method for Adjacency Status Synchronization in Label Distribution Protocol
CN107995113A (en) Path establishment method and device
US20130259057A1 (en) Pseudowire groups in a packet switched network
CN107547389B (en) Network access method, device and machine readable storage medium

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