It should be understood that because no random access resource is configured in the conditional handover configuration information (the second information), the terminal device performs contention-based random access to the first target cell. For example, the terminal device obtains a system message (for example, a SIB 1) broadcast by the first target cell, where the system message includes a common random access resource. The terminal device performs contention-based random access to the first target cell by using the common random access resource.
530. The terminal device sends an RRC message to the second network device.
Specifically, after the random access is completed, the terminal device sends the RRC message to the second network device. The RRC message may be an RRC reconfiguration complete message, or may be another message. The embodiments are not limited thereto. The RRC message is used to notify the second network device corresponding to the target cell of a completed handover.
Specifically, the terminal device sends a first message to the second network device. It should be understood that the first message may be an RRC message, or the first message may be another message, for example, a MAC message or DCI. This embodiment of this application is not limited thereto. Specifically, the first message may be an RRC reconfiguration complete message, or may be another message. This embodiment is not limited thereto. The first message is used to notify the second network device of a successful handover of the terminal device, and the second network device is a network device to which the first target cell belongs.