Peer-to-Peer Connection Establishment via Dual Initiation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current P2P connection technologies, such as BitTorrent, are limited by their reliance on TCP for data transmission, which is not suitable for real-time applications and result in low connection rates since only the initiating peer can establish connections, leading to failed connections if the other peer cannot initiate a connection.
Innovation Solution
A method allowing both the terminal initiating and the terminal to be connected to initiate P2P connections, using both UDP and TCP protocols, with a central server facilitating message exchange to establish connections, enabling both peers to initiate connections and increasing connection rates.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If only the initiating peer can establish P2P connections, then the connection establishment process is simple, but the connection rate becomes very low
Solution Approach 1:
The patent applies inversion by allowing the peer to be connected (second peer) to initiate a connection back to the initiating peer (first peer), reversing the traditional unidirectional connection initiation model. This dual-initiation capability resolves the contradiction by maintaining process simplicity while significantly improving connection rate through multiple connection attempts from different directions
2Reliability
If TCP protocol is used for P2P connections, then data transmission is reliable, but real-time transmission requirements cannot be fulfilled
Solution Approach 1:
The patent implements multi-functionality by supporting both TCP and UDP protocols for P2P connections. TCP provides reliable data transmission for applications requiring accuracy, while UDP enables real-time transmission for applications like multimedia where speed is critical. This dual-protocol support resolves the contradiction by making the system adaptable to different transmission requirements
Data Source
AI summary
The embodiment of the present invention provides a method for establishing P2P connection, comprising the steps of: a first terminal initiating connection sends a message to a second terminal to be connected, wherein the message contains the address of the first terminal; the second terminal reads the address of the first terminal initiating connection upon receiving the message, and initiates a P2P connection to the address of the first terminal. The embodiment of the present invention also provides another method for establishing P2P connection, through which both UDP P2P connection and TCP P2P connection can be established. Through the methods provided by the embodiments of the present invention, the terminal to be connected may initiate P2P connection, hence a P2P connection can be initiated by both ends of the connection; furthermore, a P2P connection can be established by using multiple policies through the multiple policy P2P connection establishment method provided by the embodiment of the present invention, thus the P2P connection rate is improved.


