Data sending method and apparatus, and method and system for establishing P2P connection
AssigneeShanghai Bilibili Technology Co., Ltd.
InventorsShunli Liang, Hanchao Zheng, Honglei Cui, Hao Wang, Biao Hu
Life of this patent
Estimating the term…
Loading patent…
AssigneeShanghai Bilibili Technology Co., Ltd.
InventorsShunli Liang, Hanchao Zheng, Honglei Cui, Hao Wang, Biao Hu
Estimating the term…
This application provides techniques comprising S1: establishing a queue for accommodating m file descriptors for creating n1 first access request data packets; S2: creating an ith file descriptor in the queue, sending an ith first access request data packet by using the ith file descriptor, and monitoring a source port recorded by the ith file descriptor; S3: at every first preset time interval t1, enabling i to automatically increase by 1, continuing to perform operation S2, and setting preset monitoring time T for each source port, where T=t1*m; and S4: ending monitoring of an (i−m)th source port and destroying a corresponding file descriptor while creating an ith file descriptor in the queue when m*j<i≤m*(j+1), and stopping monitoring of other source ports in response to detecting that a first port receives a response data packet, where the first port is any source port in a monitored state.
A method of sending data, applied to a terminal device associated with symmetric network address translation (NAT), the method comprising:
A method of establishing a peer to peer (P2P) connection, comprising:
A system for establishing a peer to peer (P2P) connection, comprising port-restricted network address translation (NAT), a first terminal device associated with the port-restricted NAT, symmetric NAT, and a second terminal device associated with the symmetric NAT,
A computing device, comprising a memory, a processor, and computer instructions that are stored in the memory and executable by the processor, wherein the computer instructions upon execution by the processor cause the processor to perform operations comprising:
Dependencies are inferred from the claim text.