Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

NAT crossing method and system for TCP, third-party server X and client

A server and client technology, applied in the field of communication, can solve problems such as aggravating network congestion

Inactive Publication Date: 2015-03-18
PEKING UNIV FOUNDER GRP CO LTD +2
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a TCP-oriented NAT traversal method, system, third-party server X, and client, which are used to solve the problem of aggravating network congestion when the UDP connection method is used in the communication of NAT devices in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • NAT crossing method and system for TCP, third-party server X and client
  • NAT crossing method and system for TCP, third-party server X and client
  • NAT crossing method and system for TCP, third-party server X and client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0095] The embodiment of the present invention provides a NAT traversal method for TCP. In this embodiment, the client that initiates the TCP connection is the source client, the NAT device corresponding to the source client is the source NAT device, the client that receives the TCP connection is the target client, and the NAT device corresponding to the target client is the target NAT device , the client can serve as a source client to initiate a TCP connection to other clients, and can also serve as a target client to receive TCP connections initiated by other clients. For example, the source client may be a certain client A in the private network NAT-A, and the target client may be a certain client B in the private network NAT-B.

[0096]The private network NAT in this embodiment refers to a cone-shaped NAT network architecture.

[0097] see figure 2 , which is a flowchart of a TCP-oriented NAT traversal method provided by an embodiment of the present invention. Such as...

Embodiment 2

[0150] The embodiment of the present invention also provides a NAT traversal method for TCP. see image 3 , which is a flowchart of a TCP-oriented NAT traversal method provided by an embodiment of the present invention. Such as image 3 As shown, the method includes:

[0151] In step S201, the third-party server X allows the first TCP connection established by the source client.

[0152] In step S202, the third-party server X allows the target client to establish the first TCP connection with it.

[0153] Wherein, step S201 and step S202 are in no particular order.

[0154] In step S203, the third-party server X allows the second TCP connection established by the source client.

[0155] Step S204, the third-party server X receives the connection request message sent by the source client through the first TCP connection, and the connection request message is used to request a connection with the target client.

[0156] Step S205, after receiving the connection request mes...

Embodiment 3

[0164] The embodiment of the present invention also provides a NAT traversal method for TCP. see Figure 4A and Figure 4B , which is a flowchart of a TCP-oriented NAT traversal method provided by an embodiment of the present invention.

[0165] The NAT traversal method for TCP provided by the embodiment of the present invention includes:

[0166] The client establishes a TCP connection with the target client in the other private network through the third-party server X, and,

[0167] The client receives, through the third-party server X, the TCP connections established between source clients in other private networks and the client.

[0168] Such as Figure 4A As shown, the client establishes a TCP connection with a target client in another private network through a third-party server X and specifically includes:

[0169] In step S301, the client establishes a first TCP connection with a third-party server X.

[0170] Step S302, the client establishes a second TCP conne...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an NAT crossing method for a TCP. The method comprises: a source client sending a connection request message to a third-party server X; the third-party server X, after receiving the connection request message, sending end point information of a source NAT device corresponding to the source client to a target client, and notifying the target client of initiating a TCP connection to the source NAT device corresponding to the source client; the target client initiating the TCP connection to the source NAT device; the third-party server X sending the end point information of the target NAT device to the source client; the source client, after receiving the end point information, initiating the TCP connection to the target NAT device; and the target NAT device sending packets from the source NAT device to the target client. Through such a method, TCP connections can be established for clients in different NAT networks. Compared to an NAT crossing method for a UDP, the method improves data communication reliability and can perform self-adaptive adjustment in case of a network congestion condition.

Description

technical field [0001] The present invention relates to the communication field, in particular to a TCP-oriented NAT traversal method, system, third-party server X, and client. Background technique [0002] At present, the widespread existence of NAT devices has brought many obstacles to the communication between hosts in different intranets. The main reason is that NAT does not allow public network hosts to actively access intranet hosts, which makes public network IP addresses impossible. Actively access the host behind the NAT, and the mutual access between hosts behind different NATs is even more difficult. Therefore, to carry out effective P2P communication between different NATs, there must be a way to traverse NATs. [0003] Currently relatively mature and widely used is the NAT traversal method for UDP. However, the NAT traversal method for UDP has the following problems in use: first, firewalls generally only allow specific protocols and ports opened in advance, s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12H04L29/06
CPCH04L61/256H04L67/14H04L47/10H04L69/163H04L65/1073H04L2101/663
Inventor 初鹏飞谭磊
Owner PEKING UNIV FOUNDER GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products