| CPC H04W 12/03 (2021.01) [H04W 12/0431 (2021.01); H04W 76/20 (2018.02); H04W 76/30 (2018.02)] | 17 Claims |

|
1. A data transmission method, comprising:
initiating, by a primary network device, a process of a carrier change, wherein the carrier change is performed by the primary network device;
in response to initiating the process of the carrier change, sending, by the primary network device, a first message to a terminal device, wherein the terminal device performs, before the carrier change, data encryption and decryption by using a key of the primary network device, and the first message indicates the terminal device to perform, after the carrier change, data encryption and decryption by using the key that is of the primary network device and that is stored in the terminal device;
controlling, by the primary network device, a packet data convergence protocol (PDCP) entity of the primary network device to send a downlink data packet to a radio link control (RLC) entity of the primary network device, wherein the downlink data packet is from the PDCP entity of the primary network device; and
controlling the RLC entity of the primary network device to send the downlink data packet to the terminal device, wherein the PDCP entity of the terminal device encrypts and decrypts the downlink data packet by using the key of the primary network device.
|