Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method and system for improving P2P connection rate

A technology of P2P connection and connection information, applied in the field of computer network, can solve problems such as port damage, consumption of bandwidth and memory, inability to establish P2P connection, etc., to achieve the effect of improving the connection success rate and the P2P connection rate.

Inactive Publication Date: 2019-08-23
庄奇东
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in fog computing, trillions of nodes perform related operations, which will put pressure on communication servers and backbone networks, especially for central / scheduling servers, which will consume additional resources such as bandwidth, CPU, and memory.
[0005] By analyzing the data returned by a large number of nodes, some of the NATs (probably 15% to 20%) have the following characteristics: the pre-used port will cause this pre-used port when it is accessed by other network devices. The used port cannot be allocated temporarily, so the prediction of Symmetric NAT is invalid
[0006] When initiating a connection in P2P, one end (Peer1) will always initiate a connection later than the other end (Peer2). For some NATs, if Peer1 initiates a connection first, when the connection information reaches the second NAT, it will send the second The pre-used port reserved for Peer2 on the NAT is destroyed, making it impossible to establish a P2P connection between Peer1 and Peer2, which will affect the P2P connection success rate

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
  • Method and system for improving P2P connection rate
  • Method and system for improving P2P connection rate
  • Method and system for improving P2P connection rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] Please refer to figure 1 as well as figure 2 , Embodiment 1 of the present invention is:

[0059] When one peer is a LAN and the other is an external network, only one NAT is needed for conversion. If two peers are on a LAN and are in different LANs, each peer needs a NAT for conversion. The translation address, namely, the name of the first peer and its corresponding first NAT and first connection information in this embodiment, and the second peer and its corresponding second NAT and second connection information. In this case, it is necessary to use an intermediate server with a unique IP. Because the unique IP of the intermediate server is fixed and known, let both devices send data packets to the intermediate server, and the intermediate server can know the public network IP of the two devices. , before the device P2P communication, first go to the intermediate server to find the IP:Port of the other party, and then Symmetric NAT needs to allocate the pre-used p...

Embodiment 2

[0068] Please refer to figure 1 as well as figure 2 , the second embodiment of the present invention is:

[0069] In P2P connection, if you need to use NAT for address translation, you need to send keep-alive information to NAT regularly to keep alive. For the situation that keep-alive information will always be sent to the peer to increase the pressure on the peer, provide Provided is a method for improving the P2P connection rate, comprising steps after step S1:

[0070] S3. The first peer judges whether the preset keep-alive time has been reached, and if so, generates keep-alive information including a second TTL value. The second TTL value is greater than the hop count A from the first peer to the first NAT and less than the first The number of hops C from the peer end to the second peer end.

[0071] In this embodiment, the second TTL value is also A+1, so that when the keep-alive information reaches the set "hop count" of the second TTL value, the information is no l...

Embodiment 3

[0073] Please refer to image 3 , Embodiment three of the present invention is:

[0074] A system 1 for improving the P2P connection rate, including a first peer 2 and a second peer 5, the first peer 2 includes a first memory 4, a first processor 3 and is stored in the first memory 4 and can be stored in the first memory 4 The first computer program that runs on the first processor 3, the second peer 5 includes a second memory 7, a second processor 6, and a second computer program that is stored on the second memory 7 and can run on the second processor 6. The computer program, when the first processor 3 executes the first computer program, implements step S1 of the first embodiment above, and when the second processor 6 executes the second computer program, implements step S2 of the first embodiment above.

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 a method and a system for improving P2P connection rate. When establishing P2P connection with a second opposite terminal, a first opposite terminal judges whether the first opposite terminal is one end which initiates connection firstly; if yes, first connection information comprising a first TTL value is generated, and the first TTL value is larger than the hop count A from the first opposite end to the corresponding first NAT and smaller than the hop count B from the first opposite end to the second opposite end; a first opposite terminal judges whether the first opposite end is a terminal which initiates connection first or not, if yes, first connection information comprising a first TTL value is generated, and a first NAT establishes a mapping relation betweenthe first opposite end and a second opposite end according to the first connection information. At the moment, the first connection information is automatically lost because the first TTL value is attenuated to 0 before reaching the second NAT, so that the pre-used port number reserved by the second NAT for the second opposite end is not damaged, and the P2P connection success rate is effectivelyimproved.

Description

technical field [0001] The invention relates to the field of computer networks, in particular to a method and system for improving the P2P connection rate. Background technique [0002] The full English name of NAT is Network Address Translation, which means Network Address Translation in Chinese. It is an IETF (Internet Engineering Task Force, Internet Engineering Task Force) standard, which allows an entire organization to appear on the Internet with a public IP (Internet Protocol) address. superior. As the name suggests, it is a technology that translates internal private network addresses (IP addresses) into legal network IP addresses. Therefore, we can think that, to a certain extent, NAT can effectively solve the problem of insufficient public network addresses. [0003] A very important prerequisite in P2P transmission is to obtain the public IP of the host on the intranet and the port mapped on the NAT. If you want to obtain the public IP:Port of the intranet host...

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
IPC IPC(8): H04L29/08H04L29/12
CPCH04L61/2503H04L67/104H04L67/1046
Inventor 吴必磊庄奇东
Owner 庄奇东
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products