Method, server and apparatus for establishing point-to-point connection
AssigneesThroughtek Technology (Shenzhen) Co., Ltd., Throughtek Co., Ltd.
InventorsYu-Li Kao, Wen-Kai Ho, Kuo-Tung Chien
Life of this patent
Estimating the term…
Abstract
When a first device is establishing a point-to-point connection with a second device, a server provides connection instructions for assistance. The connection instructions define multiple connection flows. When the connection instructions are received, the first device attempts a first connection flow under a priority order. If failed, another connection is tried by the first device. The server monitors connection status and adjusts the connection instructions according to statistics and circumstances.
Claims18
A method for establishing point-to-point connection using a server to assist a first device to connect to a second device via a point-to-point connection, comprising:
- receiving a point-to-point connection request from the first device;
- providing the first device with a connection parameter for connecting to the second device for the point-to-point connection, wherein the connection parameter includes a linked address of the second device;
- providing the first device with a connection instruction;
- assigning a plurality of connection flows according to the connection instruction;
- and
- with the connection instruction and the connection parameter, using the assigned connection flows to establish the point-to-point connection with between the first device and the second device;
- wherein the assigned connection flows comprise a first connection flow, a second connection flow and a third connection flow, the first connection flow indicates the point-to-point server being used for relaying data transmission between the first device and the second device, the second connection flow indicates the data transmission between the first device and the second device being not via the point-to-point server, and the third connection flow indicates Whether the first device and the second device are in the same private network being checked, and if yes, their private network addresses being directly used for establishing the point-to-point connection between the first device and the second device.
A server system for establishing a point-to-point connection between a first device and a second device via a network, comprising:
- a network interface for receiving a point-to-point connection request from the first device to be connected to the second device;
- a storage for storing a connection parameter for connecting to the second device via the point-to-point connection;
- and
- a processor for providing the first device with the connection parameter with a linked address of the second device, providing the first device with a connection instruction indicating an assignment of a plurality of connection flows, such that the first device uses the connection flows to establish the point-to-point connection with the second device according to the connection parameter and the connection instruction;
- wherein the connection flows comprise a first connection flow, a second connection flow and a third connection flow, the first connection flow indicates the server system being used for relaying data transmission between the first device and the second device, the second connection flow indicates the data transmission between the first device and the second device being not via the server system, and the third connection flow indicates whether the first device and the second device are in the same private network being checked, and if yes, their private network addresses being directly used for establishing the point-to-point connection between the first device and the second device.
An electronic apparatus for point-to-point connection, comprising:
- a network interface to be connected to a network;
- a bus;
- an internal memory;
- and
- a processor coupled to the network interface, the bus and the internal memory, for transmitting a connection request to a server to establish a point-to-point connection to a second device, the processor receiving a connection instruction indicating an assignment of a plurality of connection flows and a connection parameter including a linked address of the second device, wherein the processor dynamically determines how to use the connection flows to establish the point-to-point connection to the second device according to the connection parameter and the connection instruction, the connection instruction further indicates timeout parameters respectively corresponding to the connection flows, and when one of the connection flows is failed to establish the point-to-point connection between the electronic apparatus and the second device, the electronic apparatus tries another of the connection flows;
- wherein the connection flows comprises a first connection flow, a second connection flow and a third connection flow, the first connection flow indicates the server system being used for relaying data transmission between the first device and the second device, the second connection flow indicates the data transmission between the first device and the second device being not via the server system, and the third connection flow indicates whether the first device and the second device are in the same private network being checked, and if yes, their private network addresses being directly used for establishing the point-to-point connection between the first device and the second device.
Dependencies are inferred from the claim text.