[go: up one dir, main page]

WO2013178014A1 - Site communication method, rtr and tunnel router - Google Patents

Site communication method, rtr and tunnel router Download PDF

Info

Publication number
WO2013178014A1
WO2013178014A1 PCT/CN2013/075529 CN2013075529W WO2013178014A1 WO 2013178014 A1 WO2013178014 A1 WO 2013178014A1 CN 2013075529 W CN2013075529 W CN 2013075529W WO 2013178014 A1 WO2013178014 A1 WO 2013178014A1
Authority
WO
WIPO (PCT)
Prior art keywords
site
itr
message
etr
rtr
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.)
Ceased
Application number
PCT/CN2013/075529
Other languages
French (fr)
Chinese (zh)
Inventor
成黎
骆文
孙默
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2013178014A1 publication Critical patent/WO2013178014A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2546Arrangements for avoiding unnecessary translation

Definitions

  • the present invention relates to the field of mobile communications and the Internet, and more particularly to a method for communicating a station, a repackaged tunnel router (RTR), and a tunnel router.
  • RTR repackaged tunnel router
  • the Locator/ID Separation Protocol (LISP) technology is a popular solution for separating the host identity from the host location identity. As shown in Figure 1, it is the basic logical architecture of the LISP network. The way is as follows:
  • the site network (usually referred to as the user network) is separated from the transport network (usually referred to as the carrier network), and the address space is divided into an endpoint identifier (EID, which represents an address within the site network) address space and a route location identifier (Routing Locator) , RLOC , which represents the reachability of the border router network) address space.
  • EID endpoint identifier
  • RLOC route location identifier
  • the routing information inside the site network in the network that is, the EID address information, is not advertised to the transmission network.
  • the two site networks pass between the Ingress Tunnel Router (ITR) and the Egress Tunnel Router (ETR). Establish a tunnel that traverses the transport network to connect.
  • the site network implements the maintenance of mapping information from EID to RLOC through a separate mapping system.
  • the LISP network architecture includes a data plane and a mapping plane.
  • the data plane implements the forwarding and transmission of data packets.
  • the source node that generated the packet in the LISP site sends the packet to the ingress tunnel router ITR at the site.
  • the ITR encapsulates the data packet according to the mapping relationship between the destination node EID address obtained by the cache plane or the mapping plane and the RLOC address of the ETR of the site where the destination node is located, and then sends the encapsulated data packet to the ETR of the destination site.
  • the EDR forwards the data packet to the destination node in the site according to the EID address of the data packet.
  • the mapping plane can help the ITR find the site ETR corresponding to the destination node and obtain mapping information.
  • the ETR registers the mapping information of the EID to RLOC in the site to the mapping server (MS).
  • MS mapping server
  • the mapping request packet is forwarded to the MS through the mapping plane, thereby further finding the corresponding destination site ETR.
  • the ITR caches the mapping information of the MS or the destination station ETR response, the packet forwarding of the data packet is performed.
  • the site is referred to as a post-NAT site.
  • the ETR of the post-NAT site registers the obtained private RLOC address to the MS. Since the RLOC address is a private address, the external node cannot communicate with the nodes in the site.
  • a Re-encapsulating Tunnel Router RTR is introduced in the LISP mechanism, as shown in Figure 2.
  • the RTR receives the encapsulation mapping register message sent by the ETR after the NAT, and caches the related information in the registration message, and then re-encapsulates the mapping registration message and sends it to the MS.
  • the communication peer node searches for mapping information of the nodes in the intra-NAT after the NAT, the MS or the site ETR responds to the communication peer with the RLOC address of the RTR.
  • RTR Data plane angle
  • RTR is used as a relay device for communication between the site and the external peer after NAT.
  • the external peer sends a message to the node in the post-NAT site
  • the external peer obtains the RLOC address pointing to the RTR through the mapping search
  • the RTR receives the data packet, and after decapsulating the data packet, according to the saved post-NAT site related information,
  • the data packet encapsulation and forwarding is performed.
  • the site ITR does not perform the peer mapping information search, but the packet is directly encapsulated and sent to the RTR device, and the RTR searches the peer mapping information. Perform packet encapsulation and forwarding again.
  • the relay encapsulation and forwarding based on the RTR device can well solve the problem of interworking between the post-NAT and the external public network. However, in some special scenarios, the forwarding process may cause unnecessary routing detours.
  • Site 1 and Site 2 are located behind the same NAT device, and both sites are registered by the same RTR device.
  • Siter's ITR needs to first send the data packet to the RTR. After the data packet passes through the NAT device and arrives at the RTR, the RTR stores the Site2 based on its own. information, The data packet is re-encapsulated, and the encapsulated data packet is sent to the ETR in Site2 through the NAT. Because the ITR does not perform the mapping information search, the ITR cannot know the RLOC information of the ETR in Site2. Therefore, the data packet cannot be directly encapsulated or sent to the ETR through the NAT device, thereby causing the route to be bypassed.
  • NAT2 secondary NAT device
  • Site1 are both behind NAT1 (primary NAT device)
  • Site2 is behind NAT2.
  • the data packet needs to pass through NAT1 to reach the RTR, and then encapsulates and forwards again, and then passes through NAT1 and NAT2 to reach Site2, and the scenario also has a route bypass.
  • the source site is located on a multi-level NAT device
  • the destination site is located behind a primary NAT device
  • the two sites are located behind a multi-level NAT device. The problem is similar to the scenario in Figure 4.
  • the LISP mobile node can be regarded as a LISP site, and the MN performs the functions of the ITR and the ETR at the same time. Therefore, the special scenario of routing bypass includes the two LISP MNs behind the same NAT device communicating with each other, or the LISP site and the LISP MN communicating with each other after the same NAT device. Summary of the invention
  • the embodiment of the invention provides a communication method of a station, an RTR and a tunnel router, to solve the problem of route detour caused by re-encapsulation and forwarding of an RTR that is forwarded to a NAT device.
  • An embodiment of the present invention provides a method for communication of a station, where the method includes:
  • the repackage tunneling router After receiving the data packet, the repackage tunneling router (RTR) determines that the source node and the destination node of the data packet are located behind the same network address translation (NAT) device, and the tunnel to the source node or the site where the destination node is located.
  • the router (xTR) sends an information advertisement message, where the information advertisement message includes the peer site information;
  • the RTR receives the information notification response message returned by the xTR.
  • the sending, by the RTR, the information advertisement message to the xTR of the source node or the site where the destination node is located includes:
  • the RTR sends the letter to an ingress tunnel router (ITR) of a site where the source node is located Information notification message; or,
  • the RTR sends the information advertisement message to an egress tunnel router (ETR) of the site where the destination node is located.
  • ETR egress tunnel router
  • the peer site information includes: a local routing location identifier (RLOC) of the peer site xTR, a local port number, a global RLOC, a global port number, and an endpoint identity (EID) address prefix information.
  • RLOC local routing location identifier
  • EID endpoint identity
  • the method further includes:
  • the RTR is configured to indicate that the RTR only performs the packet encapsulation and forwarding between the source node or the site where the destination node is located and the peer site thereof after receiving the information advertisement response message. length of time.
  • the embodiment of the invention further provides a method for communication of a site, the method comprising:
  • the tunnel router (xTR) of the source node or the site where the destination node is located receives the information advertisement message that is sent by the re-encapsulation tunnel router (RTR) and contains the information of the opposite site;
  • the xTR obtains the peer site information from the information advertisement packet, determines that the peer site is reachable according to the peer site information, and directly sends the data packet to the peer site.
  • the xTR of the site where the source node is located is an ingress tunnel router (ITR), and the xTR of the site where the destination node is located is an egress tunnel router (ETR).
  • ITR ingress tunnel router
  • ETR egress tunnel router
  • the determining, by the xTR, the peer site reachable according to the peer site information that: the ITR sends a probe message to the ETR, and receives a probe response message returned by the ETR; or
  • the ETR sends a probe message to the ITR, receives a mapping request message sent by the ITR after receiving the probe message, and returns a mapping response to the ITR.
  • the method further includes:
  • the xTR sends a data packet to the peer site through Network Address Translation (NAT).
  • NAT Network Address Translation
  • the determining, by the xTR, the peer site reachability according to the peer site information includes: The ITR sends a probe message to the ETR through the NAT device, and receives a probe response message returned by the ETR through the NAT device; or
  • the ETR sends a probe message to the ITR through the NAT device, and receives a mapping request message sent by the ITR after receiving the probe message by using the NAT device, and The ITR returns a mapping response message.
  • the embodiment of the present invention further provides a repackage tunneling router (RTR), where the RTR includes: a determining module, configured to: after receiving the data packet, determining that the source node and the destination node of the data packet are in the same network address translation (NAT) ) behind the device, triggering the channel module;
  • RTR includes: a determining module, configured to: after receiving the data packet, determining that the source node and the destination node of the data packet are in the same network address translation (NAT) ) behind the device, triggering the channel module;
  • NAT network address translation
  • the notification module is configured to send an information advertisement message to the tunnel node (xTR) of the source node or the site where the destination node is located, where the information advertisement message includes the peer site information; and the receiving module is set as the receiving station The information returned by the xTR announces the response message.
  • xTR tunnel node
  • the notification module is set to:
  • the peer site information includes: a local routing location identifier (RLOC) of the peer site xTR, a local port number, a global RLOC, a global port number, and an endpoint identity (EID) address prefix information.
  • RLOC local routing location identifier
  • EID endpoint identity
  • the RTR further includes:
  • a setting module configured to: after the receiving module receives the information notification response message returned by the xTR, set a time interval, where the time interval is used to indicate that the RTR only performs the information after receiving the information notification response message The length of time that the source node or the site where the destination node is located and its peer site is encapsulated and forwarded.
  • the embodiment of the present invention further provides a tunnel router, where the tunnel router includes:
  • the transceiver module is configured to receive an information advertisement message that is sent by the re-encapsulation tunneling router (RTR) and that includes a peer station information, and return a message notification response message to the RTR.
  • the data processing module is configured to obtain the peer site information from the information advertisement packet, determine that the peer site is reachable according to the peer site information, and directly send the data packet to the peer site.
  • the tunnel router is an ingress tunnel router (ITR) or an egress tunnel router (ETR).
  • ITR ingress tunnel router
  • ERR egress tunnel router
  • the data processing module is configured to: send a probe message to the ETR, receive a probe response message returned by the ETR, or receive the ETR transmission. After the packet is probed, the mapping request message is sent, and the mapping response message returned by the ETR is received.
  • the data processing module is configured to: send a probe to the ITR. And receiving a mapping request message sent by the ITR after receiving the probe message, and returning a mapping response message to the ITR, or receiving the probe message sent by the ITR, to the The ITR returns the probe response message.
  • the data processing module is further configured to: after determining that the peer site is reachable according to the peer site information, send a data packet to the peer site by using network address translation (NAT).
  • NAT network address translation
  • the data processing module is configured to: send, by the NAT device, a probe packet to the ETR, and receive a probe response packet returned by the ETR by the NAT device. Or, after receiving the probe packet sent by the ETR by the NAT device, sending a mapping request packet, and receiving a mapping response packet returned by the ETR by the NAT device; or, the tunnel router is
  • the data processing module is configured to: send, by the NAT device, a probe packet to the ITR, and receive a mapping request packet sent by the ITR after receiving the probe packet by using the NAT device. And returning, by the NAT device, a mapping response message to the ITR, or receiving the probe packet sent by the ITR through the NAT device, and returning the probe to the ITR by using the NAT device. Respond to 4 essays.
  • the device when multiple LISP sites or LISP mobile nodes located behind the same NAT device can communicate with each other, the device can transmit along the optimized path to prevent the data packet from being forwarded to the RTR outside the NAT device for rerouting and forwarding. Reduce the burden on RTR devices.
  • FIG. 1 is a related art LISP network architecture diagram
  • 2 is a schematic diagram of NAT traversal deployment in a related art LISP network architecture
  • FIG. 3 is a schematic diagram of multi-site or multi-LISP MN deployment after NAT in a related art LISP network architecture
  • FIG. 4 is a schematic diagram of multi-level NAT deployment in a related art LISP network architecture
  • FIG. 5 is a signaling flow chart of Embodiment 1 of the optimized post-NAT station communication method of the present invention
  • FIG. 6 is a signaling flow chart of Embodiment 2 of the optimized post-NAT station communication method of the present invention
  • FIG. 7 is an optimized NAT of the present invention.
  • FIG. 8 is a schematic structural diagram of an RTR embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an embodiment of a tunnel router according to the present invention. Preferred embodiment of the invention
  • Post-NAT site The LISP site is deployed on the private network, behind the NAT device, and is called the post-NAT site.
  • the LISP MN accesses the private network behind the NAT device, the LISP MN can also be regarded as a post-NAT site.
  • the site xTR (including ITR and ETR) obtains the private network address as the RLOC, which is called the local RLOC address.
  • Global RLOC address After the NAT sends the data packet sent by the site xTR through the NAT device, the NAT device replaces the external source address and port number of the data packet, and replaces the local RLOC address as the source address with the public network. Address, which is called the global RLOC address.
  • An embodiment of the present invention provides a method for communication of a station.
  • the embodiment is described from the perspective of an RTR, and the method includes:
  • Step 11 After receiving the data packet, the re-encapsulation tunneling router (RTR) determines whether the source node and the destination node of the data packet are located behind the same network address translation (NAT) device; Step 12: The RTR determines that the source node and the destination node are located in the same NAT device, and sends an information advertisement message to the tunnel node (xTR) of the source node or the site where the destination node is located, where the information notification message is sent. Contains the peer site information;
  • NAT network address translation
  • the RTR sending the information advertisement message to the xTR of the source node or the site where the destination node is located may include: sending, by the RTR, the information notification to an ingress tunnel router (ITR) of a site where the source node is located. Or the RTR sends the information advertisement message to an egress tunnel router (ETR) of the site where the destination node is located;
  • ITR ingress tunnel router
  • ETR egress tunnel router
  • Step 13 The RTR receives the information notification response message returned by the xTR.
  • the method may further include: setting, by the RTR, a time interval, where the RTR receives the information notification response message, and only executes the source node or the destination node and the site The length of time that the packet between the peer sites is encapsulated and forwarded.
  • the above communication method by transmitting the information of the opposite site to the tunnel router, lays a foundation for optimizing the path transmission of the packet edge and avoiding route detour.
  • an embodiment of the present invention further provides a method for communication of a station, which is described from the perspective of an xTR, and the method includes:
  • Step 21 The tunnel router (xTR) of the source node or the site where the destination node is located receives the information advertisement message that is sent by the re-encapsulation tunnel router (RTR) and contains the information of the peer site.
  • RTR re-encapsulation tunnel router
  • the xTR of the site where the source node is located is an ingress tunnel router (ITR), and the xTR of the site where the destination node is located is an egress tunnel router (ETR);
  • Step 22 The xTR obtains the peer site information from the information advertisement packet, determines that the peer site is reachable according to the peer site information, and directly sends the data packet to the peer site.
  • Determining the peer site reachability according to the peer site information includes: the ITR sending a probe message to the ETR, and receiving a probe response message returned by the ETR; or the ETR to the ITR Sending a probe message, and receiving a mapping request message sent by the ITR after receiving the probe message, and returning a mapping response message to the ITR.
  • the method may further include: Address translation (NAT) sends a packet to the peer site.
  • NAT Address translation
  • the xTR 4 determines that the peer site is reachable according to the peer site information:
  • the ITR sends a probe message to the ETR by using the NAT device, and receives a probe response message returned by the ETR by the NAT device;
  • the ETR sends a probe message to the ITR through the NAT device, and receives a mapping request message sent by the ITR after receiving the probe message by using the NAT device, and The ITR returns a mapping response message.
  • Embodiment 1 The following describes the embodiments of the present invention from the perspective of interaction between the RTR and the xTR: Embodiment 1
  • FIG. 5 it is a signaling flowchart of Embodiment 1 of the post-NAT communication method of the present invention.
  • the present embodiment is applicable to the mapping of the mapping information of the same RTR after the same NAT device is used.
  • the RTR forwards the data packet between the two sites, it notifies the two sites of the information about the peer site; the following steps are included:
  • Step 501 The Sitel ITR encapsulates the data packet sent by the source node in Site1 to the destination node in Site2.
  • Step 502 When receiving the data packet, the NAT device replaces the external source address and port number of the data packet with the global RLOC address and the global port number corresponding to the ITR according to the locally stored address translation information.
  • Step 503 The NAT device sends the replaced data packet to the RTR.
  • Step 504 The RTR determines, according to the locally cached information on the Sitel and the Site2, whether the source site and the destination site of the sent data packet are located behind the same NAT device, and is determined to be located in the same NAT. After the device, perform the next steps;
  • the related information includes at least a local RLOC, a local port number, a global RLOC, a global port number, and an intra-site EID address prefix information used by the two sites xTR to establish a connection with the RTR;
  • the RTR may also cache the type information of the NAT device corresponding to the site and the global RLOC address pool configured on the NAT device.
  • the RTR determines whether the source site and the destination site are located in the same NAT device by comparing whether the global RLOC addresses registered by the two sites are the same or similar. If the global RLOC address pool information of the NAT device is cached on the RTR, it can be determined by comparing whether the global RLOC address of the two sites belongs to the global RLOC address pool of the same NAT device.
  • Step 505a The RTR sends an information advertisement message to the Iter site ITR, where the message includes information about the Site2 site, and the information includes at least the local RLOC, the local port number, the global RLOC, the global port number, and the site of the Site2 site ETR.
  • EID address prefix information
  • Step 505b The RTR sends an information advertisement message to the Site 2 ETR, where the message includes
  • the RTR device may perform one of the steps 505a and 505b, or both steps may be performed. If the above two steps are performed, the order of execution of the steps may be performed indefinitely or simultaneously.
  • Step 506a After receiving the information advertisement message of the RTR, the Site1 ITR sends a message notification response to the RTR.
  • Step 506b After receiving the information advertisement message of the RTR, the Site 2 ETR sends an information notification response to the RTR.
  • the RTR device can set a time value after receiving the information notification response from the Sitel ITR and the Site2 ETR. During the valid time, when the RTR device receives the data packet sent by the Sitel ITR to the Site2 ETR, only the packet encapsulation and forwarding is performed, and the information notification message is not sent to the two sites; Step 507: After receiving the data packet, the RTR searches for the information about the locally cached Site2 site, and re-encapsulates the data packet.
  • the outer source address of the data packet is the RLU address of the RTR, and the destination address is the global RLOC address of the ETR of the Site2 site.
  • Step 508 The RTR sends the repacked data packet to the NAT, and the NAT device replaces the outer address and destination port number of the data packet with the local RLOC and port number of the Site2 site ETR, and then sends the data packet to the ETR in Site2.
  • steps 507 and 508 are prior art, and the execution sequences of the steps 504, 505a, and/or 505b and the steps 507 and 508 are performed in sequence, or may be performed simultaneously.
  • the information about the peer site can be notified to the post-NAT site.
  • FIG. 6 it is a signaling flowchart of Embodiment 2 of the optimized post-NAT station communication method of the present invention. This embodiment is applicable to related operations after the source station Sitel ITR receives the information about the destination site sent by the RTR. Steps:
  • Step 601 After receiving the relevant information in the destination site Site2 sent by the RTR, the ITR in the source site Site1 sends the probe packet to the Site2 ETR by using the local RLOC of the ETR in Site2 as the destination address.
  • a data probe packet is defined, and the reachability of the RLOC address of the communication peer can be detected.
  • the Sitel ITR can select to use the existing data probe packet to probe the Site2.
  • ETR corresponds to the reachability of the local RLOC;
  • Step 602 After receiving the probe packet sent by the Site1 ITR, the Site2 ETR sends a probe response packet to the Site1 ITR, where the packet may include mapping information of the EID address prefix to the local RLOC in the Site2 ETR.
  • Step 603 After receiving the probe response message of the Site2 ETR, the Sitel ITR uses the local RLOC of the Site2 ETR as the destination address of the outer package of the data packet to directly send the data packet to the Site2 ETR;
  • Step 604 The ITR in the source station uses the global RLOC of the ETR in Site2 as the destination address, and sends a probe message to the Site2 ETR.
  • Step 605 The probe packet is routed to the NAT device.
  • the NAT device finds that the destination address of the packet is the global RLOC address of a device that is allocated to the NAT. If the NAT device supports the hairpin translation function, the NAT device pairs the data. Replace the source address, source port number, destination address, and destination port number of the packet;
  • Step 606 The NAT device sends the probe message after the address and port number replacement to the Site2 ETR.
  • Step 608 The NAT device performs the address and port number replacement of the probe response packet.
  • Step 609 The NAT device sends the probe response message after the address and the port number are replaced to Sitel.
  • Step 610 After receiving the probe response message of the Site2 ETR, the Site1 ITR uses the global RLOC of the Site2 ETR as the destination address of the outer package of the data packet when the data packet is subsequently sent.
  • Step 611 The NAT device replaces the address of the data packet. The port number;
  • Step 612 The NAT device sends the data packet to the Site2 ETR.
  • the Sitel ITR performs the optional steps 604-612 because, in some special scenarios, although the source site and the destination site are located behind the same NAT device, the two sites may not be able to communicate using the local RLOC of the peer.
  • the destination site Site2 is located behind the NAT2 (secondary NAT) device, and Sitel obtains the local RLOC of Site2 as the private network address of Site2 behind the NAT2 device. If the Sitel ITR uses the address to initiate to Site2. Active communication, packets cannot pass through NAT2 and reach ETR. Application Steps 604-609, the Sitel ITR sends a probe packet to the Site2 ETR through NAT1. After the packet is successfully sent, the actual forwarding path of the data packet between the Sitel ITR and the Site2 ETR is: ITR NAT1 NAT2 ETR.
  • the above-mentioned probe method using the peer global RLOC address as the destination address is also applicable to the source station. Both the point and destination sites are located behind a multi-level NAT device.
  • the Sitel ITR may continue to send the packet with the destination address pointing to the EID in Site2 to the RTR to avoid the impact of the probe process on data forwarding.
  • FIG. 7 it is a signaling flowchart of the third embodiment of the post-NAT communication method of the present invention.
  • the embodiment is applicable to the related operations after the destination site Site 2 ETR receives the information about the source site sent by the RTR. The following steps:
  • Step 701 After receiving the information about the source site Site1 sent by the RTR, the ETR of the destination site Site2 sends the probe packet to the Sitel ITR by using the local RLOC of the ITR in the Site1 as the destination address.
  • the communication peer ITR sends a mapping request to itself.
  • the Site2 ETR may select an existing SMR packet to detect the reachability of the local RLOC corresponding to the ETR in the Site2.
  • Step 702 After receiving the probe message sent by the Site2 ETR, the Sitel ITR may send a mapping request to the Site2 ETR, and the destination address points to the local RLOC of the Site2 ETR;
  • Step 703 The Site2 ETR returns a mapping response message to the Sitel ITR, where the packet includes mapping information of the Site2 EID prefix information and the Site2 ETR local RLOC.
  • Step 704 After receiving the mapping response message of the Site2 ETR, the Sitel ITR uses the local RLOC of the Site2 ETR as the destination address of the outer package of the data packet to directly send the data packet to the Site2 ETR.
  • Step 705 ETR in the destination site Site2 Sending a probe message to the Sitel ITR by using the global RLOC of the ITR in the Sitel as the destination address;
  • Step 706 The probe packet is routed to the NAT device, and the NAT device discovers the destination address of the packet. If the NAT device supports the hairpin conversion function, the NAT device replaces the source address, source port number, destination address, and destination port number of the data packet.
  • Step 707 The NAT device sends the probe packet with the address and the port number to the Sitel ITR.
  • Step 709 The NAT device performs the mapping of the address and the port number of the mapping request packet, and sends the replaced packet to the Site2 ETR.
  • Step 710 After receiving the Sitel ITR mapping request message, the Site2 ETR sends a mapping response message to the Site1 ITR, where the packet includes the mapping information of the Site2 EID prefix information and the Site2 ETR local RLOC.
  • Step 711 The NAT device performs the mapping of the address and port number of the mapping response packet, and sends the replaced packet to the Sitel ITR.
  • Step 712 After receiving the mapping response message of the Site2 ETR, the Site1 ITR uses the global RLOC of the Site2 ETR as the destination address of the outer package of the data packet when the data packet is subsequently sent.
  • Step 713 The NAT device replaces the address of the data packet. The port number and the packet is sent to the Site2 ETR.
  • the Site2 ETR performs the optional steps 705-713 because, in some special scenarios, although the source site and the destination site are located behind the same NAT device, the two sites may not be able to communicate using the local RLOC of the peer. For specific reasons, refer to the related description in the second embodiment.
  • the Sitel ITR can continue to send the data packet with the destination address pointing to the EID in Site2 to the RTR, so as to avoid the impact of the probe process on data forwarding.
  • the foregoing embodiments are described by taking a LISP site located behind a NAT device as an example.
  • the embodiments are also applicable to the communication between the LISP MNs after the NAT device, and the LISP sites behind the NAT device and the LISP MN.
  • FIG. 8 is a schematic structural diagram of an RTR embodiment of the present invention, where the RTR includes a prediction mode.
  • Block 81 an announcement module 82, and a receiving module 83, wherein:
  • the judging module is configured to: after receiving the data packet, determine that the source node and the destination node of the data packet are located behind the same network address translation (NAT) device, and trigger the notification module;
  • NAT network address translation
  • the notification module is configured to send an information advertisement message to the tunnel node (xTR) of the source node or the site where the destination node is located, where the information notification message includes the peer site information;
  • the receiving module is configured to receive the information notification response message returned by the xTR.
  • the notification module is configured to: send the information advertisement message to an ingress tunnel router (ITR) of the site where the source node is located; or send to an egress tunnel router (ETR) of a site where the destination node is located
  • ITR ingress tunnel router
  • ERR egress tunnel router
  • the RTR further includes: a setting module 84, configured to: after the receiving module receives the information notification response message returned by the xTR, setting a time interval, where the time interval is used to indicate that the RTR receives the information notification After the response packet, only the length of time for the data packet encapsulation and forwarding between the source node or the site where the destination node is located and its peer site is performed.
  • a setting module 84 configured to: after the receiving module receives the information notification response message returned by the xTR, setting a time interval, where the time interval is used to indicate that the RTR receives the information notification After the response packet, only the length of time for the data packet encapsulation and forwarding between the source node or the site where the destination node is located and its peer site is performed.
  • the above RTR by transmitting the peer site information to the tunnel router, lays a foundation for realizing the packet path along the optimized path transmission and avoiding route detour.
  • FIG. 9 it is a schematic structural diagram of an embodiment of a tunnel router according to the present invention.
  • the tunnel router includes a transceiver module 91 and a data processing module 92, wherein:
  • the transceiver module is configured to receive an information advertisement message that is sent by the re-encapsulated tunneling router (RTR) and that includes a peer station information, and return a message notification response message to the RTR.
  • RTR re-encapsulated tunneling router
  • the data processing module is configured to obtain the peer site information from the information advertisement packet, determine that the peer site is reachable according to the peer site information, and directly send the data packet to the peer site.
  • the tunnel router may be an ingress tunnel router (ITR) or an egress tunnel router (ETR).
  • the data processing module is specifically configured to: when the tunnel router is the ITR, send a probe packet to the ETR. Receiving the probe response message returned by the ETR, or after receiving the probe message sent by the ETR, sending a mapping request message, and receiving a mapping response message returned by the ETR; or, the tunnel router is When the ETR is described, the probe message is sent to the ITR, and the mapping request message sent by the ITR after receiving the probe message is received, and The ITR returns a mapping response message, or receives the probe message sent by the ITR, and returns the probe response message to the ITR.
  • ITR ingress tunnel router
  • ETR egress tunnel router
  • the data processing module is further configured to: after determining that the peer site is reachable according to the peer site information, send a data packet to the peer site by using network address translation (NAT).
  • NAT network address translation
  • the data processing module is configured to: send, by the NAT device, a probe message to the ETR, and receive a probe response report that is returned by the ETR by the NAT device.
  • the data processing module is configured to: send, by the NAT device, a probe packet to the ITR, and receive a mapping request that is sent by the ITR after receiving the probe packet by using the NAT device. And returning, by the NAT device, a mapping response message to the ITR, or receiving the probe message sent by the ITR by using the NAT device, and returning, by the NAT device, the Probe response messages.
  • the above tunnel router can obtain the same information by obtaining the information of the opposite site.
  • the above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention.
  • a person skilled in the art should understand that the technical solutions of the present invention may be modified or equivalent, without departing from the spirit and scope of the present invention, and should be included in the scope of the claims of the present invention.
  • Industrial Applicability The embodiments of the present invention can implement multiple RISP sites or LISP mobile nodes located behind the same NAT device, and can transmit along the optimized path to prevent the data packets from being forwarded to the RTR outside the NAT device for re-encapsulation and forwarding. Roundabout, reducing the burden on RTR devices.

Landscapes

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

Abstract

A site communication method, Re-encapsulating Tunnel Router (RTR) and tunnel router are disclosed in the embodiment, wherein the site communication method comprises: after receiving the data packet, the RTR ensuring the source node and the destination node of the data packet are behind the same Network Address Translator (NAT) device, then sending an information notice message to the tunnel router (xTR) of the site in which the source node or the destination node is located, wherein the information notice message contains the information of the opposite site; and the RTR receiving the information notice response message returned from the xTR.

Description

站点的通信方法、 RTR及隧道路由器  Site communication method, RTR and tunnel router

技术领域 Technical field

本发明涉及移动通讯领域和互联网领域,尤其涉及一种站点的通信方法、 重封装隧道路由器(RTR )及隧道路由器。 背景技术  The present invention relates to the field of mobile communications and the Internet, and more particularly to a method for communicating a station, a repackaged tunnel router (RTR), and a tunnel router. Background technique

为了解决路由表规模不断扩大的问题, 更好地满足用户对移动性支持、 多归属网络部署及流量工程部署等技术的需求, 身份和位置分离的网络架构 设计成为业界关注的热点。  In order to solve the problem of increasing the size of the routing table and better meet the needs of users for technologies such as mobility support, multi-homed network deployment and traffic engineering deployment, the network architecture design of identity and location separation has become a hot spot in the industry.

位置与身份分离协议(Locator/ID Separation Protocol, LISP )技术就是 一种较为流行的基于主机身份标识与主机位置标识分离的解决方案, 如图 1 所示, 为 LISP网络的基本逻辑架构, 其实现方式如下:  The Locator/ID Separation Protocol (LISP) technology is a popular solution for separating the host identity from the host location identity. As shown in Figure 1, it is the basic logical architecture of the LISP network. The way is as follows:

站点网络(通常指用户网络) 与传输网络(通常指运营商网络)分离, 地址空间被划分为端点身份标识(Endpoint Identifier, EID, 表示站点网络内 的地址)地址空间与路由位置标识( Routing Locator , RLOC , 表示边界路由 器网络内的可达性)地址空间。 网络中的站点网络内部的路由信息, 即 EID 地址信息,不发布到传输网络中,两个站点网络通过入口隧道路由器( Ingress Tunnel Router, ITR )和出口隧道路由器 ( Egress Tunnel Router, ETR )之间 建立穿越传输网络的隧道进行连接。 站点网络通过一个单独的映射系统来实 现 EID到 RLOC的映射信息的维护。  The site network (usually referred to as the user network) is separated from the transport network (usually referred to as the carrier network), and the address space is divided into an endpoint identifier (EID, which represents an address within the site network) address space and a route location identifier (Routing Locator) , RLOC , which represents the reachability of the border router network) address space. The routing information inside the site network in the network, that is, the EID address information, is not advertised to the transmission network. The two site networks pass between the Ingress Tunnel Router (ITR) and the Egress Tunnel Router (ETR). Establish a tunnel that traverses the transport network to connect. The site network implements the maintenance of mapping information from EID to RLOC through a separate mapping system.

如图 1所示, LISP网络架构中包括数据平面和映射平面。  As shown in Figure 1, the LISP network architecture includes a data plane and a mapping plane.

数据平面实现数据包的转发和传输。 如图 1所示, LISP站点中生成数据 包的源节点将数据包发送至所在站点的入口隧道路由器 ITR。 ITR根据緩存 的或通过映射平面查找获取的目的节点 EID地址到目的节点所在站点 ETR 的 RLOC地址间的映射关系, 对数据包进行 LISP封装, 然后将封装的数据 包发送至目的站点的 ETR。 ETR去除数据包的外层 LISP封装后, 根据数据 包目的 EID地址将数据包转发给站点内的目的节点。 映射平面可帮助 ITR查找到目的节点对应的站点 ETR, 获取映射信息。 如图 1 所示, ETR将站点内 EID到 RLOC 的映射信息注册到映射服务器 ( Mapping Server, MS ) 。 当 LISP站点中的 ITR需查找目的节点映射信息 时, 通过映射平面将映射请求报文转发至 MS, 从而进一步查找到对应的目 的站点 ETR。 ITR緩存 MS或目的站点 ETR响应的映射信息后,执行数据包 的封装转发。 The data plane implements the forwarding and transmission of data packets. As shown in Figure 1, the source node that generated the packet in the LISP site sends the packet to the ingress tunnel router ITR at the site. The ITR encapsulates the data packet according to the mapping relationship between the destination node EID address obtained by the cache plane or the mapping plane and the RLOC address of the ETR of the site where the destination node is located, and then sends the encapsulated data packet to the ETR of the destination site. After the ETR removes the outer LISP encapsulation of the data packet, the EDR forwards the data packet to the destination node in the site according to the EID address of the data packet. The mapping plane can help the ITR find the site ETR corresponding to the destination node and obtain mapping information. As shown in Figure 1, the ETR registers the mapping information of the EID to RLOC in the site to the mapping server (MS). When the ITR in the LISP site needs to find the destination node mapping information, the mapping request packet is forwarded to the MS through the mapping plane, thereby further finding the corresponding destination site ETR. After the ITR caches the mapping information of the MS or the destination station ETR response, the packet forwarding of the data packet is performed.

若 LISP站点部署在私网中, 位于网络地址转换(NAT )设备后时, 将 该站点称为 NAT后站点。 按照 LISP映射注册的基本流程, NAT后站点的 ETR会将获取到的私有 RLOC地址注册到 MS上,由于该 RLOC地址为私有 地址, 外部节点无法与该站点内的节点进行通信。 为解决穿过 NAT设备进 行通信的问题, LISP 机制中引入了重封装隧道路由器 (Re-encapsulating Tunnel Router, RTR ) , 口图 2所示。  If the LISP site is deployed on a private network and is behind a network address translation (NAT) device, the site is referred to as a post-NAT site. According to the basic procedure of LISP mapping registration, the ETR of the post-NAT site registers the obtained private RLOC address to the MS. Since the RLOC address is a private address, the external node cannot communicate with the nodes in the site. To solve the problem of communication through the NAT device, a Re-encapsulating Tunnel Router (RTR) is introduced in the LISP mechanism, as shown in Figure 2.

控制面角度, RTR接收 NAT后站点 ETR发送的封装映射注册报文, 緩 存注册报文中的相关信息, 再将映射注册报文重封装后发送到 MS。 当通信 对端节点查找 NAT后站点内节点的映射信息时, MS或站点 ETR向通信对 端响应 RTR的 RLOC地址。  Control plane angle, the RTR receives the encapsulation mapping register message sent by the ETR after the NAT, and caches the related information in the registration message, and then re-encapsulates the mapping registration message and sends it to the MS. When the communication peer node searches for mapping information of the nodes in the intra-NAT after the NAT, the MS or the site ETR responds to the communication peer with the RLOC address of the RTR.

数据面角度, RTR作为 NAT后站点与外部对端通信的中继设备。 当外 部对端向 NAT后站点中的节点发送 文时, 外部对端通过映射查找获取到 指向 RTR的 RLOC地址, RTR接收数据包, 对数据包解封装后, 根据保存 的 NAT后站点相关信息, 执行数据包封装转发; 当 NAT后站点向外发送报 文时, NAT后站点 ITR不再进行对端映射信息查找, 而是直接将报文封装发 送给 RTR设备, 由 RTR查找对端映射信息, 再次进行数据包封装转发。  Data plane angle, RTR is used as a relay device for communication between the site and the external peer after NAT. When the external peer sends a message to the node in the post-NAT site, the external peer obtains the RLOC address pointing to the RTR through the mapping search, and the RTR receives the data packet, and after decapsulating the data packet, according to the saved post-NAT site related information, The data packet encapsulation and forwarding is performed. When the packet is sent out by the site after the NAT, the site ITR does not perform the peer mapping information search, but the packet is directly encapsulated and sent to the RTR device, and the RTR searches the peer mapping information. Perform packet encapsulation and forwarding again.

基于 RTR设备的中继封装转发, 可以良好地解决 NAT后站点与外部公 网互通的问题, 但在一些特殊场景中这种转发流程可能会造成不必要的路由 迂回问题。  The relay encapsulation and forwarding based on the RTR device can well solve the problem of interworking between the post-NAT and the external public network. However, in some special scenarios, the forwarding process may cause unnecessary routing detours.

如图 3所示, 站点(Site ) 1与 Site2位于同一个 NAT设备后, 且两个站 点通过同一个 RTR设备注册。基于相关技术, Sitel中源节点在向 Site2中目 的节点发送数据包时, Sitel 的 ITR需要先将数据包封装发送给 RTR, 数据 包穿过 NAT设备到达 RTR后, RTR根据自身存储 Site2站点的相关信息, 对数据包进行重封装,再将封装后的数据包穿过 NAT发送给 Site2中的 ETR。 由于该机制下, ITR不执行映射信息查找, 无法获知 Site2中 ETR的 RLOC 信息, 故而无法直接将数据包封装发送或通过 NAT设备转发给 ETR, 从而 造成路由迂回。 As shown in Figure 3, Site 1 and Site 2 are located behind the same NAT device, and both sites are registered by the same RTR device. Based on the related technology, when the source node in Site1 sends a data packet to the destination node in Site2, Siter's ITR needs to first send the data packet to the RTR. After the data packet passes through the NAT device and arrives at the RTR, the RTR stores the Site2 based on its own. information, The data packet is re-encapsulated, and the encapsulated data packet is sent to the ETR in Site2 through the NAT. Because the ITR does not perform the mapping information search, the ITR cannot know the RLOC information of the ETR in Site2. Therefore, the data packet cannot be directly encapsulated or sent to the ETR through the NAT device, thereby causing the route to be bypassed.

如图 4所示, 若网络拓朴中部署了多级 NAT, NAT2 (二级 NAT设备) 与 Sitel均位于 NAT1 (一级 NAT设备)后, 且 Site2位于 NAT2后。 该场 景中, 依据相关技术, Sitel与 Site2进行通信时, 数据包需要穿过 NAT1到 达 RTR后再次进行封装转发, 再穿过 NAT1和 NAT2到达 Site2, 该场景同 样存在路由迂回。 另外还可能存在源站点位于多级 NAT设备后, 目的站点 位于一级 NAT设备后, 或两站点同时位于多级 NAT设备后等场景, 存在问 题与图 4场景类似。  As shown in Figure 4, if multiple levels of NAT are deployed in the network topology, NAT2 (secondary NAT device) and Site1 are both behind NAT1 (primary NAT device), and Site2 is behind NAT2. In this scenario, according to the related technology, when Sitel communicates with Site2, the data packet needs to pass through NAT1 to reach the RTR, and then encapsulates and forwards again, and then passes through NAT1 and NAT2 to reach Site2, and the scenario also has a route bypass. There are also scenarios where the source site is located on a multi-level NAT device, the destination site is located behind a primary NAT device, or the two sites are located behind a multi-level NAT device. The problem is similar to the scenario in Figure 4.

需要说明的是, LISP移动节点(LISP mobile node, LISP MN )可看作是 一个 LISP站点, MN同时执行 ITR和 ETR的功能。 因此, 存在路由迂回的 特殊场景还包括位于同一 NAT设备后的两 LISP MN之间相互通信, 或同一 NAT设备后 LISP站点与 LISP MN之间相互通信。 发明内容  It should be noted that the LISP mobile node (LISP MN) can be regarded as a LISP site, and the MN performs the functions of the ITR and the ETR at the same time. Therefore, the special scenario of routing bypass includes the two LISP MNs behind the same NAT device communicating with each other, or the LISP site and the LISP MN communicating with each other after the same NAT device. Summary of the invention

本发明实施例提供了一种站点的通信方法、 RTR及隧道路由器, 以解决 因数据包转发到 NAT设备外的 RTR进行重封装转发而造成的路由迂回问题。  The embodiment of the invention provides a communication method of a station, an RTR and a tunnel router, to solve the problem of route detour caused by re-encapsulation and forwarding of an RTR that is forwarded to a NAT device.

本发明实施例提供了一种站点的通信方法, 该方法包括:  An embodiment of the present invention provides a method for communication of a station, where the method includes:

重封装隧道路由器(RTR )接收到数据包后, 判断所述数据包的源节点 与目的节点位于同一网络地址转换(NAT )设备的后面, 向所述源节点或所 述目的节点所在站点的隧道路由器 (xTR )发送信息通告报文, 所述信息通 告报文中包含对端站点信息;  After receiving the data packet, the repackage tunneling router (RTR) determines that the source node and the destination node of the data packet are located behind the same network address translation (NAT) device, and the tunnel to the source node or the site where the destination node is located. The router (xTR) sends an information advertisement message, where the information advertisement message includes the peer site information;

所述 RTR接收所述 xTR返回的信息通告响应报文。  The RTR receives the information notification response message returned by the xTR.

优选地, 所述 RTR向所述源节点或所述目的节点所在站点的 xTR发送 信息通告报文包括:  Preferably, the sending, by the RTR, the information advertisement message to the xTR of the source node or the site where the destination node is located includes:

所述 RTR向所述源节点所在站点的入口隧道路由器(ITR )发送所述信 息通告报文; 或者, The RTR sends the letter to an ingress tunnel router (ITR) of a site where the source node is located Information notification message; or,

所述 RTR向所述目的节点所在站点的出口隧道路由器(ETR )发送所述 信息通告报文。  The RTR sends the information advertisement message to an egress tunnel router (ETR) of the site where the destination node is located.

优选地, 所述对端站点信息包括: 该对端站点 xTR的本地路由位置标识 ( RLOC ) 、 本地端口号、 全局 RLOC、 全局端口号及端点身份标识 ( EID ) 地址前缀信息。  Preferably, the peer site information includes: a local routing location identifier (RLOC) of the peer site xTR, a local port number, a global RLOC, a global port number, and an endpoint identity (EID) address prefix information.

优选地, 所述 RTR接收所述 xTR返回的信息通告响应报文之后, 所述 方法还包括:  Preferably, after the RTR receives the information notification response message returned by the xTR, the method further includes:

所述 RTR设置一时间间隔, 该时间间隔用于表示所述 RTR接收所述信 息通告响应报文后只执行所述源节点或所述目的节点所在站点及其对端站点 间数据包封装转发的时间长度。  The RTR is configured to indicate that the RTR only performs the packet encapsulation and forwarding between the source node or the site where the destination node is located and the peer site thereof after receiving the information advertisement response message. length of time.

本发明实施例还提供了一种站点的通信方法, 该方法包括:  The embodiment of the invention further provides a method for communication of a site, the method comprising:

源节点或目的节点所在站点的隧道路由器 (xTR )接收重封装隧道路由 器(RTR )发送的包含对端站点信息的信息通告报文;  The tunnel router (xTR) of the source node or the site where the destination node is located receives the information advertisement message that is sent by the re-encapsulation tunnel router (RTR) and contains the information of the opposite site;

所述 xTR从所述信息通告报文中获得所述对端站点信息,根据所述对端 站点信息确定对端站点可达, 直接向所述对端站点发送数据包。  The xTR obtains the peer site information from the information advertisement packet, determines that the peer site is reachable according to the peer site information, and directly sends the data packet to the peer site.

优选地, 所述源节点所在站点的 xTR为入口隧道路由器 (ITR ) , 所述 目的节点所在站点的 xTR为出口隧道路由器( ETR ) 。  Preferably, the xTR of the site where the source node is located is an ingress tunnel router (ITR), and the xTR of the site where the destination node is located is an egress tunnel router (ETR).

优选地, 所述 xTR根据所述对端站点信息确定对端站点可达包括: 所述 ITR向所述 ETR发送探查报文, 接收所述 ETR返回的探查响应报 文; 或者  Preferably, the determining, by the xTR, the peer site reachable according to the peer site information, that: the ITR sends a probe message to the ETR, and receives a probe response message returned by the ETR; or

所述 ETR向所述 ITR发送探查报文, 接收所述 ITR在接收所述探查报 文后发送的映射请求 文, 并向所述 ITR返回映射响应 ^艮文。  The ETR sends a probe message to the ITR, receives a mapping request message sent by the ITR after receiving the probe message, and returns a mapping response to the ITR.

优选地, 所述 xTR根据所述对端站点信息确定对端站点可达之后, 所述 方法还包括:  Preferably, after the xTR determines that the peer site is reachable according to the peer site information, the method further includes:

所述 xTR通过网络地址转换(NAT ) 向所述对端站点发送数据包。 优选地, 所述 xTR根据所述对端站点信息确定对端站点可达包括: 所述 ITR通过所述 NAT设备向所述 ETR发送探查报文 , 以及接收所述 ETR通过所述 NAT设备返回的探查响应报文; 或者 The xTR sends a data packet to the peer site through Network Address Translation (NAT). Preferably, the determining, by the xTR, the peer site reachability according to the peer site information includes: The ITR sends a probe message to the ETR through the NAT device, and receives a probe response message returned by the ETR through the NAT device; or

所述 ETR通过所述 NAT设备向所述 ITR发送探查报文, 接收所述 ITR 在接收所述探查报文后通过所述 NAT设备发送的映射请求报文, 以及, 通 过所述 NAT设备向所述 ITR返回映射响应报文。  The ETR sends a probe message to the ITR through the NAT device, and receives a mapping request message sent by the ITR after receiving the probe message by using the NAT device, and The ITR returns a mapping response message.

本发明实施例另提供了一种重封装隧道路由器(RTR ) , 该 RTR包括: 判断模块, 设置为接收到数据包后, 判断所述数据包的源节点与目的节 点位于同一网络地址转换 ( NAT )设备的后面, 触发通道模块;  The embodiment of the present invention further provides a repackage tunneling router (RTR), where the RTR includes: a determining module, configured to: after receiving the data packet, determining that the source node and the destination node of the data packet are in the same network address translation (NAT) ) behind the device, triggering the channel module;

通告模块, 设置为向所述源节点或所述目的节点所在站点的隧道路由器 ( xTR )发送信息通告报文, 所述信息通告报文中包含对端站点信息; 以及 接收模块, 设置为接收所述 xTR返回的信息通告响应报文。  The notification module is configured to send an information advertisement message to the tunnel node (xTR) of the source node or the site where the destination node is located, where the information advertisement message includes the peer site information; and the receiving module is set as the receiving station The information returned by the xTR announces the response message.

优选地, 所述通告模块, 是设置为:  Preferably, the notification module is set to:

向所述源节点所在站点的入口隧道路由器 (ITR )发送所述信息通告报 文; 或者,  Sending the information advertisement message to an ingress tunnel router (ITR) of the site where the source node is located; or

向所述目的节点所在站点的出口隧道路由器 (ETR )发送所述信息通告 报文。  Sending the information advertisement message to an egress tunnel router (ETR) of the site where the destination node is located.

优选地, 所述对端站点信息包括: 该对端站点 xTR的本地路由位置标识 ( RLOC ) 、 本地端口号、 全局 RLOC、 全局端口号及端点身份标识 ( EID ) 地址前缀信息。  Preferably, the peer site information includes: a local routing location identifier (RLOC) of the peer site xTR, a local port number, a global RLOC, a global port number, and an endpoint identity (EID) address prefix information.

优选地, 所述 RTR还包括:  Preferably, the RTR further includes:

设置模块,设置为在所述接收模块接收所述 xTR返回的信息通告响应报 文之后,设置一时间间隔,该时间间隔用于表示所述 RTR接收所述信息通告 响应报文后只执行所述源节点或所述目的节点所在站点及其对端站点间数据 包封装转发的时间长度。  a setting module, configured to: after the receiving module receives the information notification response message returned by the xTR, set a time interval, where the time interval is used to indicate that the RTR only performs the information after receiving the information notification response message The length of time that the source node or the site where the destination node is located and its peer site is encapsulated and forwarded.

本发明实施例又提供了一种隧道路由器, 该隧道路由器包括:  The embodiment of the present invention further provides a tunnel router, where the tunnel router includes:

收发模块, 设置为接收重封装隧道路由器(RTR )发送的包含对端站点 信息的信息通告报文, 以及向所述 RTR返回信息通告响应报文; 数据处理模块, 设置为从所述信息通告报文中获得所述对端站点信息, 根据所述对端站点信息确定对端站点可达,直接向所述对端站点发送数据包。 The transceiver module is configured to receive an information advertisement message that is sent by the re-encapsulation tunneling router (RTR) and that includes a peer station information, and return a message notification response message to the RTR. The data processing module is configured to obtain the peer site information from the information advertisement packet, determine that the peer site is reachable according to the peer site information, and directly send the data packet to the peer site.

优选地, 所述隧道路由器为入口隧道路由器 (ITR )或出口隧道路由器 ( ETR ) 。  Preferably, the tunnel router is an ingress tunnel router (ITR) or an egress tunnel router (ETR).

优选地, 该隧道路由器为所述 ITR时, 所述数据处理模块是设置为: 向 所述 ETR发送探查报文, 接收所述 ETR返回的探查响应报文, 或者, 接收 到所述 ETR发送的探查报文后, 发送映射请求报文, 并接收所述 ETR返回 的映射响应报文; 或者, 该隧道路由器为所述 ETR时, 所述数据处理模块是 设置为: 向所述 ITR发送探查报文, 并接收所述 ITR在接收所述探查报文后 发送的映射请求报文,并向所述 ITR返回映射响应报文,或者,接收所述 ITR 发送的所述探查报文, 向所述 ITR返回所述探查响应报文。  Preferably, when the tunnel router is the ITR, the data processing module is configured to: send a probe message to the ETR, receive a probe response message returned by the ETR, or receive the ETR transmission. After the packet is probed, the mapping request message is sent, and the mapping response message returned by the ETR is received. When the tunnel router is the ETR, the data processing module is configured to: send a probe to the ITR. And receiving a mapping request message sent by the ITR after receiving the probe message, and returning a mapping response message to the ITR, or receiving the probe message sent by the ITR, to the The ITR returns the probe response message.

优选地, 所述数据处理模块, 还设置为: 在根据所述对端站点信息确定 对端站点可达之后, 通过网络地址转换( NAT )向所述对端站点发送数据包。  Preferably, the data processing module is further configured to: after determining that the peer site is reachable according to the peer site information, send a data packet to the peer site by using network address translation (NAT).

优选地, 该隧道路由器为所述 ITR时, 所述数据处理模块是设置为: 通 过所述 NAT设备向所述 ETR发送探查报文, 接收所述 ETR通过所述 NAT 设备返回的探查响应报文, 或者, 接收到所述 ETR通过所述 NAT设备发送 的探查报文后, 发送映射请求报文, 并接收所述 ETR通过所述 NAT设备返 回的映射响应报文; 或者, 该隧道路由器为所述 ETR时, 所述数据处理模块 是设置为: 通过所述 NAT设备向所述 ITR发送探查报文, 接收所述 ITR在 接收所述探查报文后通过所述 NAT设备发送的映射请求报文, 并通过所述 NAT设备向所述 ITR返回映射响应报文 ,或者 ,接收所述 ITR通过所述 NAT 设备发送的所述探查报文, 并通过所述 NAT设备向所述 ITR返回所述探查 响应 4艮文。  Preferably, when the tunnel router is the ITR, the data processing module is configured to: send, by the NAT device, a probe packet to the ETR, and receive a probe response packet returned by the ETR by the NAT device. Or, after receiving the probe packet sent by the ETR by the NAT device, sending a mapping request packet, and receiving a mapping response packet returned by the ETR by the NAT device; or, the tunnel router is When the ETR is described, the data processing module is configured to: send, by the NAT device, a probe packet to the ITR, and receive a mapping request packet sent by the ITR after receiving the probe packet by using the NAT device. And returning, by the NAT device, a mapping response message to the ITR, or receiving the probe packet sent by the ITR through the NAT device, and returning the probe to the ITR by using the NAT device. Respond to 4 essays.

本发明实施例,可以实现位于同一 NAT设备后的多个 LISP站点或 LISP 移动节点相互通信时, 能够沿优化路径传输, 避免数据包转发到 NAT设备 外的 RTR进行重封装转发造成的路由迂回, 减轻了 RTR设备的负担。 附图概述  In the embodiment of the present invention, when multiple LISP sites or LISP mobile nodes located behind the same NAT device can communicate with each other, the device can transmit along the optimized path to prevent the data packet from being forwarded to the RTR outside the NAT device for rerouting and forwarding. Reduce the burden on RTR devices. BRIEF abstract

图 1是相关技术的 LISP网络架构图; 图 2是相关技术的 LISP网络架构中 NAT穿越部署示意图; 图 3是相关技术的 LISP网络架构中 NAT后多站点或多 LISP MN部署 示意图; 1 is a related art LISP network architecture diagram; 2 is a schematic diagram of NAT traversal deployment in a related art LISP network architecture; FIG. 3 is a schematic diagram of multi-site or multi-LISP MN deployment after NAT in a related art LISP network architecture;

图 4是相关技术的 LISP网络架构中多级 NAT部署示意图;  4 is a schematic diagram of multi-level NAT deployment in a related art LISP network architecture;

图 5是本发明优化的 NAT后站点通信方法实施例一的信令流程图; 图 6是本发明优化的 NAT后站点通信方法实施例二的信令流程图; 图 7是本发明优化的 NAT后站点通信方法实施例三的信令流程图; 图 8是本发明 RTR实施例的结构示意图;  5 is a signaling flow chart of Embodiment 1 of the optimized post-NAT station communication method of the present invention; FIG. 6 is a signaling flow chart of Embodiment 2 of the optimized post-NAT station communication method of the present invention; FIG. 7 is an optimized NAT of the present invention. FIG. 8 is a schematic structural diagram of an RTR embodiment of the present invention; FIG.

图 9是本发明隧道路由器实施例的结构示意图。 本发明的较佳实施方式  FIG. 9 is a schematic structural diagram of an embodiment of a tunnel router according to the present invention. Preferred embodiment of the invention

下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.

为了更清楚地描述本发明实施例的内容, 对实施例中涉及的相关概念做 如下规定:  In order to more clearly describe the contents of the embodiments of the present invention, the related concepts involved in the embodiments are as follows:

NAT后站点: LISP站点部署在私网中, 位于 NAT设备之后, 称该站点 为 NAT后站点。 当 LISP MN接入 NAT设备后的私网时, 该 LISP MN也可 看作 NAT后站点。  Post-NAT site: The LISP site is deployed on the private network, behind the NAT device, and is called the post-NAT site. When the LISP MN accesses the private network behind the NAT device, the LISP MN can also be regarded as a post-NAT site.

本地 RLOC地址: NAT后站点 xTR(包括 ITR和 ETR )获取到作为 RLOC 的私网地址, 称该地址为本地 RLOC地址。  Local RLOC address: After the NAT, the site xTR (including ITR and ETR) obtains the private network address as the RLOC, which is called the local RLOC address.

全局 RLOC地址: NAT后站点 xTR发送的数据包在穿过 NAT设备时, NAT设备会将数据包外部源地址和端口号替换,将作为源地址的本地 RLOC 地址替换为可在公网中路由的地址, 称该地址为全局 RLOC地址。  Global RLOC address: After the NAT sends the data packet sent by the site xTR through the NAT device, the NAT device replaces the external source address and port number of the data packet, and replaces the local RLOC address as the source address with the public network. Address, which is called the global RLOC address.

本发明实施例提供了一种站点的通信方法,该实施例从 RTR角度进行描 述, 该方法包括:  An embodiment of the present invention provides a method for communication of a station. The embodiment is described from the perspective of an RTR, and the method includes:

步骤 11、 重封装隧道路由器(RTR )接收到数据包后, 判断所述数据包 的源节点与目的节点是否位于同一网络地址转换(NAT )设备后; 步骤 12、 RTR确定所述源节点与所述目的节点位于同一 NAT设备后, 向所述源节点或所述目的节点所在站点的隧道路由器(xTR )发送信息通告 报文, 所述信息通告报文中包含对端站点信息; Step 11: After receiving the data packet, the re-encapsulation tunneling router (RTR) determines whether the source node and the destination node of the data packet are located behind the same network address translation (NAT) device; Step 12: The RTR determines that the source node and the destination node are located in the same NAT device, and sends an information advertisement message to the tunnel node (xTR) of the source node or the site where the destination node is located, where the information notification message is sent. Contains the peer site information;

该步骤 12中, RTR向所述源节点或所述目的节点所在站点的 xTR发送 信息通告报文可以包括:所述 RTR向所述源节点所在站点的入口隧道路由器 ( ITR )发送所述信息通告报文; 或者, 所述 RTR向所述目的节点所在站点 的出口隧道路由器 ( ETR )发送所述信息通告报文;  In the step 12, the RTR sending the information advertisement message to the xTR of the source node or the site where the destination node is located may include: sending, by the RTR, the information notification to an ingress tunnel router (ITR) of a site where the source node is located. Or the RTR sends the information advertisement message to an egress tunnel router (ETR) of the site where the destination node is located;

步骤 13、 RTR接收所述 xTR返回的信息通告响应报文。  Step 13. The RTR receives the information notification response message returned by the xTR.

该步骤 13之后, 所述方法还可以包括: RTR设置一时间间隔, 该时间 间隔用于表示所述 RTR接收所述信息通告响应报文后只执行所述源节点或 所述目的节点所在站点及其对端站点间数据包封装转发的时间长度。  After the step 13, the method may further include: setting, by the RTR, a time interval, where the RTR receives the information notification response message, and only executes the source node or the destination node and the site The length of time that the packet between the peer sites is encapsulated and forwarded.

上述通信方法, 通过向隧道路由器发送对端站点的信息, 为实现数据包 沿优化路径传输, 避免路由迂回奠定了基础。  The above communication method, by transmitting the information of the opposite site to the tunnel router, lays a foundation for optimizing the path transmission of the packet edge and avoiding route detour.

相应地, 本发明实施例还提供了一种站点的通信方法, 该实施例从 xTR 角度进行描述, 该方法包括: Correspondingly, an embodiment of the present invention further provides a method for communication of a station, which is described from the perspective of an xTR, and the method includes:

步骤 21、 源节点或目的节点所在站点的隧道路由器(xTR )接收重封装 隧道路由器(RTR )发送的包含对端站点信息的信息通告报文;  Step 21: The tunnel router (xTR) of the source node or the site where the destination node is located receives the information advertisement message that is sent by the re-encapsulation tunnel router (RTR) and contains the information of the peer site.

其中, 所述源节点所在站点的 xTR为入口隧道路由器(ITR ) , 所述目 的节点所在站点的 xTR为出口隧道路由器(ETR ) ;  The xTR of the site where the source node is located is an ingress tunnel router (ITR), and the xTR of the site where the destination node is located is an egress tunnel router (ETR);

步骤 22、 xTR从所述信息通告报文中获得所述对端站点信息, 根据所述 对端站点信息确定对端站点可达, 直接向所述对端站点发送数据包。  Step 22: The xTR obtains the peer site information from the information advertisement packet, determines that the peer site is reachable according to the peer site information, and directly sends the data packet to the peer site.

该 xTR根据所述对端站点信息确定对端站点可达包括:所述 ITR向所述 ETR发送探查报文, 以及接收所述 ETR返回的探查响应报文; 或者, 所述 ETR向所述 ITR发送探查报文,并接收所述 ITR在接收所述探查报文后发送 的映射请求 文, 以及向所述 ITR返回映射响应 ^艮文。  Determining the peer site reachability according to the peer site information includes: the ITR sending a probe message to the ETR, and receiving a probe response message returned by the ETR; or the ETR to the ITR Sending a probe message, and receiving a mapping request message sent by the ITR after receiving the probe message, and returning a mapping response message to the ITR.

另外, 为了克服图 4所示场景下出现的路径迂回问题, 该 xTR根据所述 对端站点信息确定对端站点可达之后, 该方法还可以包括: xTR通过网络地 址转换(NAT ) 向所述对端站点发送数据包。 In addition, in order to overcome the path rounding problem occurring in the scenario shown in FIG. 4, after the xTR determines that the peer site is reachable according to the peer site information, the method may further include: Address translation (NAT) sends a packet to the peer site.

而这种情况下, 所述 xTR 4艮据所述对端站点信息确定对端站点可达包 括:  In this case, the xTR 4 determines that the peer site is reachable according to the peer site information:

所述 ITR通过所述 NAT设备向所述 ETR发送探查报文, 以及接收所述 ETR通过所述 NAT设备返回的探查响应报文; 或者  The ITR sends a probe message to the ETR by using the NAT device, and receives a probe response message returned by the ETR by the NAT device; or

所述 ETR通过所述 NAT设备向所述 ITR发送探查报文, 接收所述 ITR 在接收所述探查报文后通过所述 NAT设备发送的映射请求报文, 以及, 通 过所述 NAT设备向所述 ITR返回映射响应报文。  The ETR sends a probe message to the ITR through the NAT device, and receives a mapping request message sent by the ITR after receiving the probe message by using the NAT device, and The ITR returns a mapping response message.

基于上述方法, 当位于同一 NAT设备后的多个 LISP站点或 LISP MN 之间进行通信时, 不需要将所有的数据包发往 RTR进行封装转发,避免了数 据包发送过程中的路由迂回, 且减轻了 RTR的负担。  Based on the foregoing method, when communication is performed between multiple LISP sites or LISP MNs behind the same NAT device, all the data packets need not be sent to the RTR for encapsulation and forwarding, thereby avoiding route detour during the data packet transmission process, and Reduce the burden of RTR.

下面从 RTR与 xTR交互的角度对本发明实施例进行详细描述: 实施例一 The following describes the embodiments of the present invention from the perspective of interaction between the RTR and the xTR: Embodiment 1

如图 5所示, 是本发明优化的 NAT后站点通信方法实施例一的信令流 程图, 本实施例适用于同一 NAT设备后的 Sitel与 Site2通过同一个 RTR进 行映射信息注册, 当所述 RTR转发两站点间通信的数据包时, 向两站点通告 对端站点相关信息; 包括以下步骤:  As shown in FIG. 5, it is a signaling flowchart of Embodiment 1 of the post-NAT communication method of the present invention. The present embodiment is applicable to the mapping of the mapping information of the same RTR after the same NAT device is used. When the RTR forwards the data packet between the two sites, it notifies the two sites of the information about the peer site; the following steps are included:

步骤 501、 Sitel ITR封装发送 Sitel中源节点发往 Site2中目的节点的数 据包。 封装后的数据包, 内层头部源地址为源节点 EID, 目的地址为 Site2 中目的节点 EID; 外层头部源地址为 ITR的本地 RLOC地址, 目的地址为 RTR的 RLOC地址;  Step 501: The Sitel ITR encapsulates the data packet sent by the source node in Site1 to the destination node in Site2. The encapsulated data packet, the source address of the inner layer is the source node EID, the destination address is the destination node EID in Site2, the source address of the outer header is the local RLOC address of the ITR, and the destination address is the RLOC address of the RTR;

步骤 502、 NAT设备接收到该数据包时,根据本地保存的地址转换信息, 将数据包的外部的源地址和端口号替换为 ITR对应的全局 RLOC地址和全局 端口号;  Step 502: When receiving the data packet, the NAT device replaces the external source address and port number of the data packet with the global RLOC address and the global port number corresponding to the ITR according to the locally stored address translation information.

步骤 503、 NAT设备将替换后的数据包发送到 RTR;  Step 503: The NAT device sends the replaced data packet to the RTR.

步骤 504、 RTR根据本地緩存的 Sitel和 Site2上的相关信息判断发送数 据包的源站点与目的站点是否位于同一 NAT设备之后,确定是位于同一 NAT 设备之后, 执行后续步骤; Step 504: The RTR determines, according to the locally cached information on the Sitel and the Site2, whether the source site and the destination site of the sent data packet are located behind the same NAT device, and is determined to be located in the same NAT. After the device, perform the next steps;

所述相关信息, 至少应包括两站点 xTR与 RTR建立连接所使用的本地 RLOC, 本地端口号、 全局 RLOC、 全局端口号、 站点内 EID地址前缀信息 等;  The related information includes at least a local RLOC, a local port number, a global RLOC, a global port number, and an intra-site EID address prefix information used by the two sites xTR to establish a connection with the RTR;

若站点对应的 NAT设备与 RTR之间建立对应关系,则 RTR上还可能緩 存有站点对应的 NAT设备的类型信息,及 NAT设备上配置的全局 RLOC地 址池等相关信息;  If the corresponding NAT device is associated with the RTR, the RTR may also cache the type information of the NAT device corresponding to the site and the global RLOC address pool configured on the NAT device.

需要说明的是, RTR判断源站点与目的站点是否位于同一 NAT设备可 通过比较两站点注册的全局 RLOC地址是否相同或近似。 若 RTR上緩存了 NAT设备的全局 RLOC地址池信息, 可通过比较两站点全局 RLOC地址是 否归属同一 NAT设备的全局 RLOC地址池来进行判断;  It should be noted that the RTR determines whether the source site and the destination site are located in the same NAT device by comparing whether the global RLOC addresses registered by the two sites are the same or similar. If the global RLOC address pool information of the NAT device is cached on the RTR, it can be determined by comparing whether the global RLOC address of the two sites belongs to the global RLOC address pool of the same NAT device.

步骤 505a、RTR向 Sitel站点 ITR发送信息通告报文,该报文中包含 Site2 站点的相关信息 , 该信息中至少应包括 Site2站点 ETR的本地 RLOC、 本地 端口号、 全局 RLOC、 全局端口号及站点 EID地址前缀信息;  Step 505a: The RTR sends an information advertisement message to the Iter site ITR, where the message includes information about the Site2 site, and the information includes at least the local RLOC, the local port number, the global RLOC, the global port number, and the site of the Site2 site ETR. EID address prefix information;

步骤 505b、 RTR向 Site2站点 ETR发送信息通告报文, 该报文中包含 Step 505b: The RTR sends an information advertisement message to the Site 2 ETR, where the message includes

Sitel站点的相关信息, 该信息中至少应包括 Sitel站点 ITR的本地 RLOC、 本地端口号、 全局 RLOC、 全局端口号及站点 EID地址前缀信息; Information about the Sitel site, which should include at least the local RLOC, local port number, global RLOC, global port number, and site EID address prefix information of the Sitel site ITR;

需要说明的是, RTR设备可执行步骤 505a和 505b中的其中一个步骤, 也可两个步骤均执行。 若执行上述两步骤, 步骤执行顺序不分先后, 也可同 时执行。  It should be noted that the RTR device may perform one of the steps 505a and 505b, or both steps may be performed. If the above two steps are performed, the order of execution of the steps may be performed indefinitely or simultaneously.

步骤 506a、 Sitel ITR接收到 RTR的信息通告报文后, 向 RTR发送信息 通告响应;  Step 506a: After receiving the information advertisement message of the RTR, the Site1 ITR sends a message notification response to the RTR.

步骤 506b、 Site2 ETR接收到 RTR的信息通告报文后, 向 RTR发送信 息通告响应;  Step 506b: After receiving the information advertisement message of the RTR, the Site 2 ETR sends an information notification response to the RTR.

需要说明的是, RTR设备在接收到来自 Sitel ITR和 Site2 ETR的信息通 告响应后,可设定一时间值。在该有效时间内, 当 RTR设备再接收到由 Sitel ITR发往 Site2 ETR的数据包时, 只执行数据包封装转发, 而不需要向两个 站点发送信息通告报文; 步骤 507、RTR接收到数据包后,查找本地緩存的 Site2站点的相关信息, 对数据包进行重新封装, 数据包外层源地址为 RTR的 RLOC地址, 目的地 址为 Site2站点 ETR的全局 RLOC地址; It should be noted that the RTR device can set a time value after receiving the information notification response from the Sitel ITR and the Site2 ETR. During the valid time, when the RTR device receives the data packet sent by the Sitel ITR to the Site2 ETR, only the packet encapsulation and forwarding is performed, and the information notification message is not sent to the two sites; Step 507: After receiving the data packet, the RTR searches for the information about the locally cached Site2 site, and re-encapsulates the data packet. The outer source address of the data packet is the RLU address of the RTR, and the destination address is the global RLOC address of the ETR of the Site2 site.

步骤 508、 RTR将重封装后的数据包发送到 NAT, NAT设备将数据包 外层目的地址和目的端口号替换为 Site2站点 ETR的本地 RLOC和端口号后, 将数据包发送到 Site2中 ETR。  Step 508: The RTR sends the repacked data packet to the NAT, and the NAT device replaces the outer address and destination port number of the data packet with the local RLOC and port number of the Site2 site ETR, and then sends the data packet to the ETR in Site2.

需要说明的是, 步骤 507、 508为现有技术, 步骤 504、 505a和 /或 505b 与步骤 507、 508的执行顺序不分先后, 也可同时执行。  It should be noted that the steps 507 and 508 are prior art, and the execution sequences of the steps 504, 505a, and/or 505b and the steps 507 and 508 are performed in sequence, or may be performed simultaneously.

基于上述过程, 当 RTR判断通信两站点位于同一 NAT设备后, 可将对 端站点相关信息通告到 NAT后站点。  Based on the above process, when the RTR determines that the two sites of the communication are located on the same NAT device, the information about the peer site can be notified to the post-NAT site.

实施例二 Embodiment 2

如图 6所示, 是本发明优化的 NAT后站点通信方法实施例二的信令流 程图, 本实施例适用于源站点 Sitel ITR接收到 RTR发送的目的站点相关信 息后的相关操作; 包括以下步骤:  As shown in FIG. 6 , it is a signaling flowchart of Embodiment 2 of the optimized post-NAT station communication method of the present invention. This embodiment is applicable to related operations after the source station Sitel ITR receives the information about the destination site sent by the RTR. Steps:

步骤 601、源站点 Sitel中 ITR接收到 RTR发送的目的站点 Site2中相关 信息后, 以 Site2中 ETR的本地 RLOC作为目的地址, 向 Site2 ETR发送探 查报文;  Step 601: After receiving the relevant information in the destination site Site2 sent by the RTR, the ITR in the source site Site1 sends the probe packet to the Site2 ETR by using the local RLOC of the ETR in Site2 as the destination address.

需要说明的是, 现有 LISP机制中定义了数据探查报文, 可探测通信对 端 RLOC地址的可达性, 在步骤 601中, Sitel ITR可选择釆用现有数据探查 报文, 探查 Site2中 ETR对应本地 RLOC的可达性;  It should be noted that, in the existing LISP mechanism, a data probe packet is defined, and the reachability of the RLOC address of the communication peer can be detected. In step 601, the Sitel ITR can select to use the existing data probe packet to probe the Site2. ETR corresponds to the reachability of the local RLOC;

步骤 602、 Site2 ETR接收到 Sitel ITR发送的探查报文后, 向 Sitel ITR 发送探查响应报文,该报文中可包含 Site2 ETR中 EID地址前缀到本地 RLOC 的映射信息;  Step 602: After receiving the probe packet sent by the Site1 ITR, the Site2 ETR sends a probe response packet to the Site1 ITR, where the packet may include mapping information of the EID address prefix to the local RLOC in the Site2 ETR.

步骤 603、 Sitel ITR接收到 Site2 ETR的探查响应报文后, 在后续发送 数据包时, 使用 Site2 ETR的本地 RLOC作为数据包外层封装的目的地址, 直接将数据包发送到 Site2 ETR;  Step 603: After receiving the probe response message of the Site2 ETR, the Sitel ITR uses the local RLOC of the Site2 ETR as the destination address of the outer package of the data packet to directly send the data packet to the Site2 ETR;

若 Sitel ITR执行步骤 601后, 在设定时间内未接收到 Site2 ETR的探查 响应报文或由 Site2 ETR主动发送的探查报文, 则可选择执行如下步骤: 步骤 604、 源站点 Sitel中 ITR以 Site2中 ETR的全局 RLOC作为目的 地址, 向 Site2 ETR发送探查 4艮文; If the Sitel ITR performs step 601, it does not receive the probe of the Site2 ETR within the set time. In response to the message or the probe message sent by the Site2 ETR, the following steps may be performed: Step 604: The ITR in the source station uses the global RLOC of the ETR in Site2 as the destination address, and sends a probe message to the Site2 ETR.

步骤 605、 该探查报文路由至 NAT设备, NAT设备发现报文目的地址 为自身分配给 NAT后某设备的全局 RLOC地址,若 NAT设备支持发夹转换 ( Hairpin translation )功能, 则 NAT设备对数据包的源地址、 源端口号、 目 的地址、 目的端口号进行替换;  Step 605: The probe packet is routed to the NAT device. The NAT device finds that the destination address of the packet is the global RLOC address of a device that is allocated to the NAT. If the NAT device supports the hairpin translation function, the NAT device pairs the data. Replace the source address, source port number, destination address, and destination port number of the packet;

步骤 606、 NAT设备将地址、端口号替换后的探查 ^艮文发送给 Site2 ETR; 步骤 607、 Site2 ETR接收到 Sitel ITR发送的探查报文后, 以 Sitel ITR 全局 RLOC作为目的地址, 向 Sitel ITR发送探查响应报文, 该报文中包含 Site2 ETR中 EID地址前缀到本地 RLOC的映射信息;  Step 606: The NAT device sends the probe message after the address and port number replacement to the Site2 ETR. Step 607: After receiving the probe message sent by the Sitel ITR, the Site2 ETR uses the Sitel ITR global RLOC as the destination address to the Sitel ITR. Sending a probe response message, where the message includes mapping information of the EID address prefix to the local RLOC in the Site2 ETR;

步骤 608、 NAT设备执行探查响应报文的地址、 端口号替换;  Step 608: The NAT device performs the address and port number replacement of the probe response packet.

步骤 609、 NAT设备将地址、端口号替换后的探查响应报文发送给 Sitel Step 609: The NAT device sends the probe response message after the address and the port number are replaced to Sitel.

ITR; ITR;

步骤 610、 Sitel ITR接收到 Site2 ETR的探查响应报文后, 在后续发送 数据包时, 使用 Site2 ETR的全局 RLOC作为数据包外层封装的目的地址; 步骤 611、 NAT设备替换数据包的地址、 端口号;  Step 610: After receiving the probe response message of the Site2 ETR, the Site1 ITR uses the global RLOC of the Site2 ETR as the destination address of the outer package of the data packet when the data packet is subsequently sent. Step 611: The NAT device replaces the address of the data packet. The port number;

步骤 612、 NAT设备将数据包发送到 Site2 ETR。  Step 612: The NAT device sends the data packet to the Site2 ETR.

需要说明的是, Sitel ITR执行可选步骤 604-612, 是由于在一些特殊场 景中, 虽然源站点与目的站点位于同一个 NAT设备后, 但两站点使用对端 的本地 RLOC可能无法进行通信。  It should be noted that the Sitel ITR performs the optional steps 604-612 because, in some special scenarios, although the source site and the destination site are located behind the same NAT device, the two sites may not be able to communicate using the local RLOC of the peer.

例如, 如图 4所示场景中, 目的站点 Site2位于 NAT2 (二级 NAT )设 备之后, Sitel获取到 Site2的本地 RLOC为 Site2在 NAT2设备后的私网地 址, 若 Sitel ITR使用该地址向 Site2发起主动通信, 报文无法穿过 NAT2, 到达 ETR。 应用步骤 604-609, Sitel ITR通过 NAT1向 Site2 ETR发送探查 报文, 报文发送成功后, Sitel ITR与 Site2 ETR之间数据包的实际转发路径 为: ITR NAT1 NAT2 ETR。  For example, in the scenario shown in Figure 4, the destination site Site2 is located behind the NAT2 (secondary NAT) device, and Sitel obtains the local RLOC of Site2 as the private network address of Site2 behind the NAT2 device. If the Sitel ITR uses the address to initiate to Site2. Active communication, packets cannot pass through NAT2 and reach ETR. Application Steps 604-609, the Sitel ITR sends a probe packet to the Site2 ETR through NAT1. After the packet is successfully sent, the actual forwarding path of the data packet between the Sitel ITR and the Site2 ETR is: ITR NAT1 NAT2 ETR.

上述以对端全局 RLOC地址作为目的地址的探查方法, 同样适用于源站 点与目的站点均位于多级 NAT设备后的场景。 The above-mentioned probe method using the peer global RLOC address as the destination address is also applicable to the source station. Both the point and destination sites are located behind a multi-level NAT device.

上述探查步骤执行过程中,在接收到来自 Site2 ETR的探查响应前, Sitel ITR可继续将目的地址指向 Site2中 EID的数据包封装发送给 RTR, 以避免 探查过程对数据转发造成影响。  During the execution of the above probe step, before receiving the probe response from the Site2 ETR, the Sitel ITR may continue to send the packet with the destination address pointing to the EID in Site2 to the RTR to avoid the impact of the probe process on data forwarding.

实施例三 Embodiment 3

如图 7所示, 是本发明优化的 NAT后站点通信方法实施例三的信令流 程图, 本实施例适用于目的站点 Site2 ETR接收到 RTR发送的源站点相关信 息后的相关操作, 具体包括以下步骤:  As shown in FIG. 7 , it is a signaling flowchart of the third embodiment of the post-NAT communication method of the present invention. The embodiment is applicable to the related operations after the destination site Site 2 ETR receives the information about the source site sent by the RTR. The following steps:

步骤 701、 目的站点 Site2中 ETR接收到 RTR发送的源站点 Sitel中相 关信息后, 以 Sitel中 ITR的本地 RLOC作为目的地址, 向 Sitel ITR发送探 查报文;  Step 701: After receiving the information about the source site Site1 sent by the RTR, the ETR of the destination site Site2 sends the probe packet to the Sitel ITR by using the local RLOC of the ITR in the Site1 as the destination address.

Request, 触发映射请求 文), 触发通信对端 ITR向自身发送映射请求。 在 步骤 701中, Site2 ETR可选择釆用现有 SMR报文, 探查 Site2中 ETR对应 本地 RLOC的可达性; Request, trigger mapping request message), trigger the communication peer ITR sends a mapping request to itself. In step 701, the Site2 ETR may select an existing SMR packet to detect the reachability of the local RLOC corresponding to the ETR in the Site2.

步骤 702、 Sitel ITR接收到 Site2 ETR发送的探查报文后,可向 Site2 ETR 发送映射请求 4艮文, 目的地址指向 Site2 ETR的本地 RLOC;  Step 702: After receiving the probe message sent by the Site2 ETR, the Sitel ITR may send a mapping request to the Site2 ETR, and the destination address points to the local RLOC of the Site2 ETR;

步骤 703、 Site2 ETR向 Sitel ITR返回映射响应报文, 报文中包含 Site2 EID前缀信息与 Site2 ETR本地 RLOC的映射信息;  Step 703: The Site2 ETR returns a mapping response message to the Sitel ITR, where the packet includes mapping information of the Site2 EID prefix information and the Site2 ETR local RLOC.

步骤 704、 Sitel ITR接收到 Site2 ETR的映射响应报文后, 在后续发送 数据包时, 使用 Site2 ETR的本地 RLOC作为数据包外层封装的目的地址, 直接将数据包发送到 Site2 ETR;  Step 704: After receiving the mapping response message of the Site2 ETR, the Sitel ITR uses the local RLOC of the Site2 ETR as the destination address of the outer package of the data packet to directly send the data packet to the Site2 ETR.

若 Site2 ETR执行步骤 701后, 在设定时间内未接收到 Sitel lTR的映射 请求报文, 或由 Sitel ITR主动发送的探查报文, 则可选择执行如下步骤: 步骤 705、 目的站点 Site2中 ETR以 Sitel中 ITR的全局 RLOC作为目 的地址, 向 Sitel ITR发送探查报文;  If the Site2 ETR does not receive the mapping request message of the Sitel lTR or the probe packet sent by the Sitel ITR within the set time, the following steps are performed: Step 705: ETR in the destination site Site2 Sending a probe message to the Sitel ITR by using the global RLOC of the ITR in the Sitel as the destination address;

步骤 706、 该探查报文路由至 NAT设备, NAT设备发现报文目的地址 为自身分配给 NAT后某设备的全局 RLOC地址,若 NAT设备支持发夹转换 功能, 则 NAT设备对数据包的源地址、 源端口号、 目的地址、 目的端口号 进行替换; Step 706: The probe packet is routed to the NAT device, and the NAT device discovers the destination address of the packet. If the NAT device supports the hairpin conversion function, the NAT device replaces the source address, source port number, destination address, and destination port number of the data packet.

步骤 707、 NAT设备将地址、端口号替换后的探查报文发送给 Sitel ITR; 步骤 708、 Sitel ITR接收到 Site2 ETR发送的探查报文后, 以 Site2 ETR 全局 RLOC作为目的地址, 向 Site2 ETR发送映射请求 文;  Step 707: The NAT device sends the probe packet with the address and the port number to the Sitel ITR. Step 708: After receiving the probe packet sent by the Site2 ETR, the Site1 ITR sends the probe message to the Site2 ETR by using the Site2 ETR global RLOC as the destination address. Mapping request message;

步骤 709、 NAT设备执行映射请求报文的地址、 端口号替换, 将替换后 的报文发送给 Site2 ETR;  Step 709: The NAT device performs the mapping of the address and the port number of the mapping request packet, and sends the replaced packet to the Site2 ETR.

步骤 710、 Site2 ETR接收到 Sitel ITR映射请求报文后, 向 Sitel ITR发 送映射响应报文,报文中包含 Site2 EID前缀信息与 Site2 ETR本地 RLOC的 映射信息;  Step 710: After receiving the Sitel ITR mapping request message, the Site2 ETR sends a mapping response message to the Site1 ITR, where the packet includes the mapping information of the Site2 EID prefix information and the Site2 ETR local RLOC.

步骤 711、 NAT设备执行映射响应报文的地址、 端口号替换, 将替换后 的报文发送给 Sitel ITR;  Step 711: The NAT device performs the mapping of the address and port number of the mapping response packet, and sends the replaced packet to the Sitel ITR.

步骤 712、 Sitel ITR接收到 Site2 ETR的映射响应报文后, 在后续发送 数据包时, 使用 Site2 ETR的全局 RLOC作为数据包外层封装的目的地址; 步骤 713、 NAT设备替换数据包的地址、端口号,并将数据包发送到 Site2 ETR。  Step 712: After receiving the mapping response message of the Site2 ETR, the Site1 ITR uses the global RLOC of the Site2 ETR as the destination address of the outer package of the data packet when the data packet is subsequently sent. Step 713: The NAT device replaces the address of the data packet. The port number and the packet is sent to the Site2 ETR.

需要说明的是, Site2 ETR执行可选步骤 705-713 , 是由于在一些特殊场 景中, 虽然源站点与目的站点位于同一个 NAT设备后, 但两站点使用对端 的本地 RLOC可能无法进行通信。 具体原因可参见实施例二中的相关描述。  It should be noted that the Site2 ETR performs the optional steps 705-713 because, in some special scenarios, although the source site and the destination site are located behind the same NAT device, the two sites may not be able to communicate using the local RLOC of the peer. For specific reasons, refer to the related description in the second embodiment.

上述探查步骤执行过程中,在接收到来自 Site2 ETR的映射响应报文前, Sitel ITR可继续将目的地址指向 Site2中 EID的数据包封装发送给 RTR, 以 避免探查过程对数据转发造成影响。  During the execution of the above-mentioned probe step, before receiving the mapping response message from the Site2 ETR, the Sitel ITR can continue to send the data packet with the destination address pointing to the EID in Site2 to the RTR, so as to avoid the impact of the probe process on data forwarding.

上述各实施例以位于 NAT设备后的 LISP站点为例进行说明。 各实施例 同样适用于 NAT设备后的 LISP MN之间相互通信, 及 NAT设备后的 LISP 站点与 LISP MN间相互通信。  The foregoing embodiments are described by taking a LISP site located behind a NAT device as an example. The embodiments are also applicable to the communication between the LISP MNs after the NAT device, and the LISP sites behind the NAT device and the LISP MN.

如图 8所示, 是本发明 RTR实施例的结构示意图, 该 RTR包括判断模 块 81、 通告模块 82和接收模块 83 , 其中: FIG. 8 is a schematic structural diagram of an RTR embodiment of the present invention, where the RTR includes a prediction mode. Block 81, an announcement module 82, and a receiving module 83, wherein:

判断模块, 设置为接收到数据包后, 判断所述数据包的源节点与目的节 点位于同一网络地址转换 ( NAT )设备的后面, 触发通告模块;  The judging module is configured to: after receiving the data packet, determine that the source node and the destination node of the data packet are located behind the same network address translation (NAT) device, and trigger the notification module;

通告模块, 设置为向所述源节点或所述目的节点所在站点的隧道路由器 ( xTR )发送信息通告报文, 所述信息通告报文中包含对端站点信息;  The notification module is configured to send an information advertisement message to the tunnel node (xTR) of the source node or the site where the destination node is located, where the information notification message includes the peer site information;

接收模块, 设置为接收所述 xTR返回的信息通告响应报文。  The receiving module is configured to receive the information notification response message returned by the xTR.

其中, 所述通告模块, 是设置为: 向所述源节点所在站点的入口隧道路 由器 (ITR )发送所述信息通告报文; 或者, 向所述目的节点所在站点的出 口隧道路由器(ETR )发送所述信息通告报文。  The notification module is configured to: send the information advertisement message to an ingress tunnel router (ITR) of the site where the source node is located; or send to an egress tunnel router (ETR) of a site where the destination node is located The information is an advertisement message.

另外, 所述 RTR还包括: 设置模块 84, 设置为所述接收模块接收所述 xTR返回的信息通告响应报文之后, 设置一时间间隔, 该时间间隔用于表示 所述 RTR接收所述信息通告响应报文后只执行所述源节点或所述目的节点 所在站点及其对端站点间数据包封装转发的时间长度。  In addition, the RTR further includes: a setting module 84, configured to: after the receiving module receives the information notification response message returned by the xTR, setting a time interval, where the time interval is used to indicate that the RTR receives the information notification After the response packet, only the length of time for the data packet encapsulation and forwarding between the source node or the site where the destination node is located and its peer site is performed.

上述 RTR, 通过向隧道路由器发送对端站点信息, 为实现数据包沿优化 路径传输, 避免路由迂回奠定了基础。  The above RTR, by transmitting the peer site information to the tunnel router, lays a foundation for realizing the packet path along the optimized path transmission and avoiding route detour.

如图 9所示, 是本发明隧道路由器实施例的结构示意图, 该隧道路由器 包括收发模块 91和数据处理模块 92, 其中: As shown in FIG. 9, it is a schematic structural diagram of an embodiment of a tunnel router according to the present invention. The tunnel router includes a transceiver module 91 and a data processing module 92, wherein:

收发模块, 设置为接收重封装隧道路由器(RTR )发送的包含对端站点 信息的信息通告报文, 以及向所述 RTR返回信息通告响应报文;  The transceiver module is configured to receive an information advertisement message that is sent by the re-encapsulated tunneling router (RTR) and that includes a peer station information, and return a message notification response message to the RTR.

数据处理模块, 设置为从所述信息通告报文中获得所述对端站点信息, 根据所述对端站点信息确定对端站点可达,直接向所述对端站点发送数据包。  The data processing module is configured to obtain the peer site information from the information advertisement packet, determine that the peer site is reachable according to the peer site information, and directly send the data packet to the peer site.

其中, 所述隧道路由器可以为入口隧道路由器 (ITR )或出口隧道路由 器(ETR ) ; 所述数据处理模块, 具体用于: 该隧道路由器为所述 ITR时, 向所述 ETR发送探查报文, 接收所述 ETR返回的探查响应报文, 或者, 接 收到所述 ETR发送的探查报文后, 发送映射请求报文, 并接收所述 ETR返 回的映射响应报文; 或者, 该隧道路由器为所述 ETR时, 向所述 ITR发送探 查报文, 并接收所述 ITR在接收所述探查报文后发送的映射请求报文, 并向 所述 ITR返回映射响应报文, 或者, 接收所述 ITR发送的所述探查报文, 向 所述 ITR返回所述探查响应 艮文。 The tunnel router may be an ingress tunnel router (ITR) or an egress tunnel router (ETR). The data processing module is specifically configured to: when the tunnel router is the ITR, send a probe packet to the ETR. Receiving the probe response message returned by the ETR, or after receiving the probe message sent by the ETR, sending a mapping request message, and receiving a mapping response message returned by the ETR; or, the tunnel router is When the ETR is described, the probe message is sent to the ITR, and the mapping request message sent by the ITR after receiving the probe message is received, and The ITR returns a mapping response message, or receives the probe message sent by the ITR, and returns the probe response message to the ITR.

另外, 所述数据处理模块, 还设置为: 在根据所述对端站点信息确定对 端站点可达之后, 通过网络地址转换(NAT ) 向所述对端站点发送数据包。 此时, 该隧道路由器为所述 ITR时, 所述数据处理模块是设置为: 通过所述 NAT设备向所述 ETR发送探查^艮文, 接收所述 ETR通过所述 NAT设备返 回的探查响应报文, 或者, 接收到所述 ETR通过所述 NAT设备发送的探查 报文后, 发送映射请求报文, 并接收所述 ETR通过所述 NAT设备返回的映 射响应报文; 或者, 该隧道路由器为所述 ETR时, 所述数据处理模块是设置 为: 通过所述 NAT设备向所述 ITR发送探查报文, 接收所述 ITR在接收所 述探查报文后通过所述 NAT设备发送的映射请求报文, 并通过所述 NAT设 备向所述 ITR返回映射响应报文 , 或者 , 接收所述 ITR通过所述 NAT设备 发送的所述探查艮文, 并通过所述 NAT设备向所述 ITR返回所述探查响应 报文。  In addition, the data processing module is further configured to: after determining that the peer site is reachable according to the peer site information, send a data packet to the peer site by using network address translation (NAT). At this time, when the tunnel router is the ITR, the data processing module is configured to: send, by the NAT device, a probe message to the ETR, and receive a probe response report that is returned by the ETR by the NAT device. Or, after receiving the probe message sent by the ETR by the NAT device, sending a mapping request message, and receiving a mapping response message returned by the ETR by the NAT device; or, the tunnel router is In the ETR, the data processing module is configured to: send, by the NAT device, a probe packet to the ITR, and receive a mapping request that is sent by the ITR after receiving the probe packet by using the NAT device. And returning, by the NAT device, a mapping response message to the ITR, or receiving the probe message sent by the ITR by using the NAT device, and returning, by the NAT device, the Probe response messages.

上述隧道路由器, 通过获得对端站点的信息, 从而可以实现位于同一 The above tunnel router can obtain the same information by obtaining the information of the opposite site.

NAT设备后的多个 LISP站点或 LISP移动节点相互通信时,能够沿优化路径 传输, 避免了数据包转发到 NAT设备外的 RTR进行重封装转发造成的路由 迂回, 减轻了 RTR设备的负担。 When multiple LISP sites or LISP mobile nodes behind the NAT device communicate with each other, they can transmit along the optimized path, which avoids the route bypass caused by the RTR retransmission and forwarding of the data packet to the RTR outside the NAT device, which reduces the burden on the RTR device.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 上述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware to be stored in a computer readable storage medium, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.

以上实施例仅用以说明本发明的技术方案而非限制, 仅仅参照较佳实施 例对本发明进行了详细说明。 本领域的普通技术人员应当理解, 可以对本发 明的技术方案进行修改或者等同替换, 而不脱离本发明技术方案的精神和范 围, 均应涵盖在本发明的权利要求范围当中。 工业实用性 本发明实施例可以实现位于同一 NAT设备后的多个 LISP站点或 LISP 移动节点相互通信时, 能够沿优化路径传输, 避免数据包转发到 NAT设备 外的 RTR进行重封装转发造成的路由迂回, 减轻了 RTR设备的负担。 The above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention. A person skilled in the art should understand that the technical solutions of the present invention may be modified or equivalent, without departing from the spirit and scope of the present invention, and should be included in the scope of the claims of the present invention. Industrial Applicability The embodiments of the present invention can implement multiple RISP sites or LISP mobile nodes located behind the same NAT device, and can transmit along the optimized path to prevent the data packets from being forwarded to the RTR outside the NAT device for re-encapsulation and forwarding. Roundabout, reducing the burden on RTR devices.

Claims

权 利 要 求 书 claims 1、 一种站点的通信方法, 该方法包括: 1. A site communication method, the method includes: 重封装隧道路由器(RTR )接收到数据包后, 确定所述数据包的源节点 与目的节点位于同一网络地址转换(NAT )设备的后面, 则向所述源节点或 所述目的节点所在站点的隧道路由器 (xTR )发送信息通告报文, 所述信息 通告报文中包含对端站点信息; After receiving the data packet, the re-encapsulation tunnel router (RTR) determines that the source node and the destination node of the data packet are located behind the same network address translation (NAT) device, and then sends a request to the site where the source node or the destination node is located. The tunnel router (xTR) sends an information notification message, and the information notification message contains the peer site information; 所述 RTR接收所述 xTR返回的信息通告响应报文。 The RTR receives the information notification response message returned by the xTR. 2、 根据权利要求 1所述的方法, 其中: 2. The method according to claim 1, wherein: 所述 RTR向所述源节点或所述目的节点所在站点的 xTR发送信息通告 ^艮文包括: The RTR sends an information notification to the xTR of the site where the source node or the destination node is located. The text includes: 所述 RTR向所述源节点所在站点的入口隧道路由器(ITR )发送所述信 息通告报文; 或者, The RTR sends the information notification message to the ingress tunnel router (ITR) of the site where the source node is located; or, 所述 RTR向所述目的节点所在站点的出口隧道路由器(ETR )发送所述 信息通告报文。 The RTR sends the information notification message to the egress tunnel router (ETR) of the site where the destination node is located. 3. 根据权利要求 1所述的方法, 其中: 3. The method of claim 1, wherein: 所述对端站点信息包括: 该对端站点的 xTR 的本地路由位置标识 ( RLOC ) 、 本地端口号、 全局 RLOC、 全局端口号及端点身份标识 ( EID ) 地址前缀信息。 The peer site information includes: the local routing location identifier (RLOC), local port number, global RLOC, global port number and endpoint identity identifier (EID) address prefix information of the xTR of the peer site. 4、 根据权利要求 1-3任一权利要求所述的方法, 其中: 4. The method according to any one of claims 1-3, wherein: 所述 RTR接收所述 xTR返回的信息通告响应报文之后, 所述方法还包 括: After the RTR receives the information notification response message returned by the xTR, the method further includes: 所述 RTR设置一时间间隔, 该时间间隔用于表示所述 RTR接收所述信 息通告响应报文后只执行所述源节点或所述目的节点所在站点及其对端站点 间数据包封装转发的时间长度。 The RTR sets a time interval. This time interval is used to indicate that after the RTR receives the information notification response message, it only performs data packet encapsulation and forwarding between the source node or the site where the destination node is located and its opposite end site. length of time. 5、 一种站点的通信方法, 该方法包括: 5. A site communication method, the method includes: 源节点或目的节点所在站点的隧道路由器 (xTR )接收重封装隧道路由 器(RTR )发送的包含对端站点信息的信息通告报文; 所述 xTR从所述信息通告报文中获得所述对端站点信息,根据所述对端 站点信息确定对端站点可达, 直接向所述对端站点发送数据包。 The tunnel router (xTR) of the site where the source node or destination node is located receives the information advertisement message containing the peer site information sent by the re-encapsulation tunnel router (RTR); The xTR obtains the opposite site information from the information notification message, determines that the opposite site is reachable based on the opposite site information, and directly sends a data packet to the opposite site. 6、 根据权利要求 5所述的方法, 其中: 6. The method according to claim 5, wherein: 所述源节点所在站点的 xTR为入口隧道路由器(ITR ) , 所述目的节点 所在站点的 xTR为出口隧道路由器 ( ETR ) 。 The xTR of the site where the source node is located is an ingress tunnel router (ITR), and the xTR of the site where the destination node is located is an egress tunnel router (ETR). 7、 根据权利要求 6所述的方法, 其中: 7. The method according to claim 6, wherein: 所述 xTR根据所述对端站点信息确定对端站点可达包括: The xTR determining that the peer site is reachable based on the peer site information includes: 所述 ITR向所述 ETR发送探查报文, 接收所述 ETR返回的探查响应报 文; 或者 The ITR sends a probe message to the ETR, and receives the probe response message returned by the ETR; or 所述 ETR向所述 ITR发送探查报文, 接收所述 ITR在接收所述探查报 文后发送的映射请求 文, 并向所述 ITR返回映射响应 ^艮文。 The ETR sends a probe message to the ITR, receives a mapping request message sent by the ITR after receiving the probe message, and returns a mapping response message to the ITR. 8、 根据权利要求 5或 6所述的方法, 其中: 8. The method according to claim 5 or 6, wherein: 所述 xTR根据所述对端站点信息确定对端站点可达之后,所述方法还包 括: After the xTR determines that the opposite site is reachable based on the opposite site information, the method further includes: 所述 xTR通过网络地址转换( NAT ) 向所述对端站点发送数据包。 The xTR sends data packets to the peer site through Network Address Translation (NAT). 9、 根据权利要求 8所述的方法, 其中: 9. The method according to claim 8, wherein: 所述 xTR根据所述对端站点信息确定对端站点可达包括: The xTR determining that the peer site is reachable based on the peer site information includes: 所述 ITR通过所述 NAT设备向所述 ETR发送探查报文, 以及接收所述 ETR通过所述 NAT设备返回的探查响应报文; 或者 The ITR sends a probe message to the ETR through the NAT device, and receives a probe response message returned by the ETR through the NAT device; or 所述 ETR通过所述 NAT设备向所述 ITR发送探查报文, 接收所述 ITR 在接收所述探查报文后通过所述 NAT设备发送的映射请求报文, 以及, 通 过所述 NAT设备向所述 ITR返回映射响应报文。 The ETR sends a probe message to the ITR through the NAT device, receives a mapping request message sent by the ITR through the NAT device after receiving the probe message, and, sends a mapping request message to the ITR through the NAT device. The ITR returns a mapping response message. 10、 一种重封装隧道路由器(RTR ) , 该 RTR包括: 10. A re-encapsulation tunnel router (RTR), the RTR includes: 判断模块, 设置为接收到数据包后, 判断所述数据包的源节点与目的节 点位于同一网络地址转换 ( NAT )设备的后面, 触发通道模块; The judgment module is configured to, after receiving the data packet, judge that the source node and destination node of the data packet are located behind the same network address translation (NAT) device, and trigger the channel module; 所述通告模块, 设置为向所述源节点或所述目的节点所在站点的隧道路 由器(xTR )发送信息通告报文, 所述信息通告报文中包含对端站点信息; 以及 The notification module is configured to send an information notification message to the tunnel router (xTR) of the site where the source node or the destination node is located, where the information notification message contains the opposite end site information; as well as 接收模块, 设置为接收所述 xTR返回的信息通告响应报文。 The receiving module is configured to receive the information notification response message returned by the xTR. 11、 根据权利要求 10所述的 RTR, 其中: 11. The RTR according to claim 10, wherein: 所述通告模块是设置为: The notification module is set to: 向所述源节点所在站点的入口隧道路由器 (ITR )发送所述信息通告报 文; 或者, Send the information notification message to the ingress tunnel router (ITR) of the site where the source node is located; or, 向所述目的节点所在站点的出口隧道路由器 (ETR )发送所述信息通告 报文。 Send the information notification message to the egress tunnel router (ETR) of the site where the destination node is located. 12、 根据权利要求 10所述的 RTR, 其中: 12. The RTR according to claim 10, wherein: 所述对端站点信息包括:该对端站点 xTR的本地路由位置标识( RLOC )、 本地端口号、 全局 RLOC、 全局端口号及端点身份标识(EID )地址前缀信 息。 The peer site information includes: the local routing location identifier (RLOC), local port number, global RLOC, global port number and endpoint identity identifier (EID) address prefix information of the peer site xTR. 13、 根据权利要求 10-12任一权利要求所述的 RTR, 所述 RTR还包括: 设置模块,设置为在所述接收模块接收所述 xTR返回的信息通告响应报 文之后,设置一时间间隔,该时间间隔用于表示所述 RTR接收所述信息通告 响应报文后只执行所述源节点或所述目的节点所在站点及其对端站点间数据 包封装转发的时间长度。 13. The RTR according to any one of claims 10 to 12, the RTR further comprising: a setting module configured to set a time interval after the receiving module receives the information notification response message returned by the xTR. , this time interval is used to indicate the length of time that the RTR only performs data packet encapsulation and forwarding between the source node or the site where the destination node is located and its opposite end site after receiving the information announcement response message. 14、 一种隧道路由器, 该隧道路由器包括: 14. A tunnel router, the tunnel router includes: 收发模块, 设置为接收重封装隧道路由器(RTR )发送的包含对端站点 信息的信息通告报文, 以及向所述 RTR返回信息通告响应报文; The transceiver module is configured to receive an information notification message containing peer site information sent by a re-encapsulation tunnel router (RTR), and to return an information notification response message to the RTR; 数据处理模块, 设置为从所述信息通告报文中获得所述对端站点信息, 根据所述对端站点信息确定对端站点可达,直接向所述对端站点发送数据包。 The data processing module is configured to obtain the peer site information from the information notification message, determine that the peer site is reachable based on the peer site information, and directly send a data packet to the peer site. 15、 根据权利要求 14所述的隧道路由器, 其中: 15. The tunnel router according to claim 14, wherein: 所述隧道路由器为入口隧道路由器(ITR )或出口隧道路由器(ETR ) 。 The tunnel router is an ingress tunnel router (ITR) or an egress tunnel router (ETR). 16、 根据权利要求 15所述的隧道路由器, 其中: 16. The tunnel router according to claim 15, wherein: 该隧道路由器为所述 ITR时, 所述数据处理模块是设置为: 向所述 ETR 发送探查报文,接收所述 ETR返回的探查响应报文, 或者,接收到所述 ETR 发送的探查报文后,发送映射请求报文, 并接收所述 ETR返回的映射响应报 文; 或者, 该隧道路由器为所述 ETR时, 所述数据处理模块是设置为: 向所 述 ITR发送探查报文, 并接收所述 ITR在接收所述探查报文后发送的映射请 求报文, 并向所述 ITR返回映射响应报文, 或者, 接收所述 ITR发送的所述 探查艮文, 向所述 ITR返回所述探查响应艮文。 When the tunnel router is the ITR, the data processing module is configured to: send a probe message to the ETR, and receive a probe response message returned by the ETR, or receive the probe response message from the ETR. After sending the probe message, send a mapping request message, and receive the mapping response message returned by the ETR; or, when the tunnel router is the ETR, the data processing module is set to: send to the ITR Probe message, and receive the mapping request message sent by the ITR after receiving the probe message, and return a mapping response message to the ITR, or, receive the probe message sent by the ITR, and send the probe message to the ITR. The ITR returns the probe response text. 17、 根据权利要求 14或 15所述的隧道路由器, 其中: 17. The tunnel router according to claim 14 or 15, wherein: 所述数据处理模块, 还设置为: 在根据所述对端站点信息确定对端站点 可达之后, 通过网络地址转换(NAT ) 向所述对端站点发送数据包。 The data processing module is further configured to: after determining that the opposite site is reachable based on the opposite site information, send a data packet to the opposite site through network address translation (NAT). 18、 根据权利要求 17所述的隧道路由器, 其中: 18. The tunnel router according to claim 17, wherein: 该隧道路由器为所述 ITR 时, 所述数据处理模块是设置为: 通过所述 When the tunnel router is the ITR, the data processing module is set to: via the NAT设备向所述 ETR发送探查^艮文, 接收所述 ETR通过所述 NAT设备返 回的探查响应报文, 或者, 接收到所述 ETR通过所述 NAT设备发送的探查 报文后, 发送映射请求报文, 并接收所述 ETR通过所述 NAT设备返回的映 射响应报文; 或者, 该隧道路由器为所述 ETR时, 所述数据处理模块是设置 为: 通过所述 NAT设备向所述 ITR发送探查报文, 接收所述 ITR在接收所 述探查报文后通过所述 NAT设备发送的映射请求报文, 并通过所述 NAT设 备向所述 ITR返回映射响应报文 , 或者 , 接收所述 ITR通过所述 NAT设备 发送的所述探查艮文, 并通过所述 NAT设备向所述 ITR返回所述探查响应 报文。 The NAT device sends a probe message to the ETR, and receives a probe response message returned by the ETR through the NAT device, or, after receiving the probe message sent by the ETR through the NAT device, sends a mapping request. message, and receives the mapping response message returned by the ETR through the NAT device; or, when the tunnel router is the ETR, the data processing module is set to: send to the ITR through the NAT device Probe message, receive the mapping request message sent by the ITR through the NAT device after receiving the probe message, and return a mapping response message to the ITR through the NAT device, or, receive the ITR The probe response message is sent by the NAT device, and the probe response message is returned to the ITR by the NAT device.
PCT/CN2013/075529 2012-05-29 2013-05-13 Site communication method, rtr and tunnel router Ceased WO2013178014A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210170205.5 2012-05-29
CN201210170205.5A CN103457850B (en) 2012-05-29 2012-05-29 Communication means, RTR and the tunnel router of website

Publications (1)

Publication Number Publication Date
WO2013178014A1 true WO2013178014A1 (en) 2013-12-05

Family

ID=49672397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/075529 Ceased WO2013178014A1 (en) 2012-05-29 2013-05-13 Site communication method, rtr and tunnel router

Country Status (2)

Country Link
CN (1) CN103457850B (en)
WO (1) WO2013178014A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044247A1 (en) * 2003-07-15 2005-02-24 Tadiran Telecom Business Systems Ltd. Communication between users located behind a NAT device
CN101047548A (en) * 2006-03-31 2007-10-03 株式会社日立制作所 Communication in multiple NAT private network
CN102025591A (en) * 2009-09-18 2011-04-20 中兴通讯股份有限公司 Method and system for implementing virtual private network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567831B (en) * 2008-04-21 2011-11-16 成都市华为赛门铁克科技有限公司 Method and device for transmitting and receiving messages among local area networks and communication system
US7864765B2 (en) * 2008-09-30 2011-01-04 At&T Intellectual Property I, L.P. Anycast-based internet protocol redirection to alleviate partial routing tables
CN102045234B (en) * 2009-10-09 2013-04-03 中国移动通信集团公司 Buffering and overtime processing methods of route address mapping information as well as tunnel router
CN102231763B (en) * 2011-06-20 2014-04-09 北京思创银联科技股份有限公司 Sharing method based on NAT (Network Address Translation) penetration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044247A1 (en) * 2003-07-15 2005-02-24 Tadiran Telecom Business Systems Ltd. Communication between users located behind a NAT device
CN101047548A (en) * 2006-03-31 2007-10-03 株式会社日立制作所 Communication in multiple NAT private network
CN102025591A (en) * 2009-09-18 2011-04-20 中兴通讯股份有限公司 Method and system for implementing virtual private network

Also Published As

Publication number Publication date
CN103457850A (en) 2013-12-18
CN103457850B (en) 2018-03-20

Similar Documents

Publication Publication Date Title
JP5876505B2 (en) Method and system for efficient homeless MPLS micromobility
CN102907072B (en) Enabling ipv6 mobility with nat64
US8824480B2 (en) Method and apparatus for end-host based mobility, multi-homing and multipath protocols
JP2016515339A (en) Internet routing via service-oriented architecture bus
WO2013123847A1 (en) Packet transmission method and network device
KR20140099598A (en) Method for providing service of mobile vpn
KR20150136184A (en) Method and Apparatus for inter-domain routing based on Autonomous System architecture
JP2014017710A (en) Communication method and communication device
WO2023035836A1 (en) Message processing method and related apparatus
CN101552714B (en) Method and device for realizing traffic engineering in multi-home and multi-address space network
WO2013023465A1 (en) Interconnection and intercommunication method for identity location separated network and traditional network, ilr and asr
CN106576076A (en) Routing Control for Internet Exchange Points
WO2013083037A1 (en) Update packet processing method and system, mapping server and mobile node
CN107547376B (en) Route detection method and device
CN103166825B (en) The method and system of network interworking is realized by expanding universal routed encapsulation technology
WO2013178014A1 (en) Site communication method, rtr and tunnel router
WO2010066144A1 (en) Method, device and multi-address space mobile network for sending and forwarding data
WO2013044688A1 (en) Communication method and communication system for a node which is roaming in pmip domains
KR101022532B1 (en) Packet Routing Method in Wireless Communication System
CN100512172C (en) Method for, realizing self adaption extension domain management entity mechanism Flexible IP network technology system
CN103385011B (en) Method and device for mobility management in wireless communication system
JP5464360B2 (en) Mesh network and base station for realizing improved terminal information management method and communication method in mobile communication
KR20120046912A (en) Mobile terminal, communication network and mobility controlling method thereof
WO2013026295A1 (en) System and method for node communication between proxy mobile ip domains
Hasan et al. FPKIN: Firewall Public Key Infrastructure for NEMO

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13797008

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13797008

Country of ref document: EP

Kind code of ref document: A1