| CPC H04W 28/14 (2013.01) [H04W 76/15 (2018.02)] | 20 Claims |

|
1. A method implemented by a first terminal device, wherein the method comprises:
establishing, using a first communications technology, a first communications connection to a network;
obtaining, using a second terminal device and a second communications technology, a second communications connection with the second terminal device;
when a preset condition is met:
establishing a first Transmission Control Protocol (TCP) connection to an application server;
establishing a second TCP connection to an application client on the second terminal device;
receiving, from the application server and through the first TCP connection, first service data;
buffering the first service data in a second buffer by:
obtaining a first buffer that is occupied by a first service carried by a third TCP connection and that is in a second terminal device;
setting the second buffer in the first terminal device for a second service that is carried by the second TCP connection, wherein a first size of the first buffer is equal to a second size of the second buffer;
adjusting the second buffer based on a first download rate and a second download rate, wherein the first download rate is a first rate at which the second terminal device downloads the first service data from the first terminal device within a first preset duration through the second communications connection, and wherein the second download rate is a second rate at which the first terminal device downloads the first service data from the application server within the first preset duration through the first communications connection; and
buffering the first service data in the second buffer; and
sending, through the second TCP connection, the first service data to the second terminal device,
wherein the preset condition comprises a quantity of data packets that are successfully received by the second terminal device within a second preset duration through the third TCP connection is less than a preset threshold, and
wherein the third TCP connection is between the second terminal device and the application server.
|