| CPC H04W 12/037 (2021.01) [H04L 9/0838 (2013.01); H04L 9/14 (2013.01); H04W 12/03 (2021.01); H04W 12/041 (2021.01); H04W 12/0431 (2021.01); H04W 12/0433 (2021.01); H04W 76/19 (2018.02); H04W 84/12 (2013.01)] | 20 Claims |

|
1. A data transmission method, applied to a first network element, wherein the first network element and a second network element have successfully established a connection, and have completed initial key negotiation, and the method comprises:
in response to determining that the connection between the first network element and the second network element is disconnected, storing, by the first network element, identification information of an ith frame of data and connection status information transmitted before the connection is disconnected, wherein i is an integer greater than or equal to 1, the ith frame of data is the last frame of data transmitted between the first network element and the second network element before the connection is disconnected;
in response to determining that the first network element and the second network element meet a condition for re-communication, generating, by the first network element, a third key based on a first key and a second key that are stored in the first network element, wherein the first key is a key used to transmit the ith frame of data, and the second key comprises a key used by the first network element and the second network element to transmit each of j frames of data before the ith frame of data, and j is an integer greater than or equal to 0 and less than or equal to i−1; and
communicating, by the first network element, with the second network element based on the third key, the identification information of the ith frame of data, and the connection status information.
|