Data transmission method and system, and apparatus
First Claim
1. A data transmission method, the method comprising:
- establishing a wireless link between a terminal and an access control point device, wherein the access control point device is configured to periodically transmit beacon frames to the terminal via the wireless link in accordance with a preset period;
determining, by a link layer of the terminal, link state information of the wireless link, wherein the determining the link state information of the wireless link comprises;
receiving, by the terminal, at least one beacon frame sent by the access control point device indicating that the wireless link is connected,determining that the wireless link is subsequently disconnected responsive to;
determining that a duration between a current time and a previous time that the terminal device received the most recent beacon frame sent by the access control point exceeds a preset duration threshold, or determining that the terminal has not received a beacon frame sent by the access control point in N consecutive preset periods, where N is a positive integer,determining that the wireless link is subsequently reconnected after being disconnected responsive to receiving a subsequent beacon frame sent by the access control point, anddetermining, responsive to determining that the wireless link is subsequently reconnected, the link state information based on a signal strength of a signal used for receiving the beacon frame;
sending, responsive to determining that the wireless link is subsequently reconnected, the link state information from the link layer to a transport layer; and
sending, by the terminal to a server using the transport layer, a link notification corresponding to the link state information, wherein the link notification is carried in an extension field of an acknowledgement (ACK) packet, and wherein the extension field comprises a TCP Option included in a TCP header of the ACK packet.
1 Assignment
0 Petitions
Accused Products
Abstract
This application provides a data transmission method and system, an apparatus, and belongs to the field of communications technologies. The method is applied to a terminal, a wireless link is established between the terminal and an access control point device, a transmission control protocol (TCP) connection is established between the terminal and a server, and the wireless link is used to bear the TCP connection. The method includes: determining, by the terminal, link state information of the wireless link by using a link layer, and sending the link state information from the link layer to a transport layer. The method also includes: sending, by the terminal to the server by using the transport layer, a link notification corresponding to the link state information. In this application, data transmission efficiency can be improved.
15 Citations
8 Claims
-
1. A data transmission method, the method comprising:
-
establishing a wireless link between a terminal and an access control point device, wherein the access control point device is configured to periodically transmit beacon frames to the terminal via the wireless link in accordance with a preset period; determining, by a link layer of the terminal, link state information of the wireless link, wherein the determining the link state information of the wireless link comprises; receiving, by the terminal, at least one beacon frame sent by the access control point device indicating that the wireless link is connected, determining that the wireless link is subsequently disconnected responsive to;
determining that a duration between a current time and a previous time that the terminal device received the most recent beacon frame sent by the access control point exceeds a preset duration threshold, or determining that the terminal has not received a beacon frame sent by the access control point in N consecutive preset periods, where N is a positive integer,determining that the wireless link is subsequently reconnected after being disconnected responsive to receiving a subsequent beacon frame sent by the access control point, and determining, responsive to determining that the wireless link is subsequently reconnected, the link state information based on a signal strength of a signal used for receiving the beacon frame; sending, responsive to determining that the wireless link is subsequently reconnected, the link state information from the link layer to a transport layer; and sending, by the terminal to a server using the transport layer, a link notification corresponding to the link state information, wherein the link notification is carried in an extension field of an acknowledgement (ACK) packet, and wherein the extension field comprises a TCP Option included in a TCP header of the ACK packet. - View Dependent Claims (2, 3)
-
-
4. A data transmission method, the method comprising:
-
receiving, by a server using a transport layer, a link notification corresponding to link state information of a wireless link established between a terminal and an access control point device, wherein the link notification is sent to the server by the terminal via a transmission control protocol (TCP) connection established between the server and the terminal, wherein the link notification is carried in an extension field of an acknowledgement (ACK) packet, and wherein the extension field comprises a TCP Option included in a TCP header of the ACK packet; and performing, by the server, data transmission management on the TCP connection based on the link notification, wherein the link state information comprises a signal level, a link quality, and a link bit rate; and
the performing comprises;adjusting, by the server based on the link notification, a transmission rate for transmitting data to the terminal based on a weighted calculation involving the signal level, the link quality, and the link bit rate. - View Dependent Claims (5)
-
-
6. A terminal, comprising:
-
a receiver; a processor configured to; establish a wireless link between the terminal and an access control point device, wherein the access control point device is configured to periodically transmit beacon frames to the terminal via the wireless link in accordance with a preset period, determine link state information of the wireless link using a link layer by; receiving, at the receiver, at least one beacon frame sent by the access control point device indicating that the wireless link is connected, determining that the wireless link is subsequently disconnected responsive to;
determining that a duration between a current time and a previous time that the terminal device received the most recent beacon frame sent by the access control point exceeds a preset duration threshold, or determining that the terminal has not received a beacon frame sent by the access control point in N consecutive preset periods, where N is a positive integer,determining that the wireless link is subsequently reconnected after being disconnected responsive to receiving a subsequent beacon frame sent by the access control point, and determining, responsive to determining that the wireless link is subsequently reconnected, the link state information based on a signal strength of a signal used for receiving the beacon frame, and send, responsive to determining that the wireless link is subsequently reconnected, the link state information from the link layer to a transport layer; and a transmitter configured to; send, to a server using the transport layer, a link notification corresponding to the link state information, wherein the link notification is carried in an extension field of an acknowledgement (ACK) packet, and wherein the extension field comprises a TCP Option included in a TCP header of the ACK packet. - View Dependent Claims (7, 8)
-
Specification