In other words, in this implementation, when the signal quality of the serving cell is relatively good, for example, is greater than or equal to the fourth signal quality threshold, the terminal device may not need to search for the target cell. When the signal quality of the serving cell is relatively poor, for example, is less than the fourth signal quality threshold, the terminal device may search for, based on the configuration information, the target cell that satisfies the trigger condition.
Therefore, in this embodiment of this application, an unnecessary handover process performed when the signal quality of the serving cell is relatively good is avoided.
Optionally, in an implementation, the configuration information is further used to configure a handover cancellation condition. The method further includes: In a process in which the terminal device performs the random access to the first target cell, if the handover cancellation condition is satisfied, the terminal device cancels the random access process, and continues to communicate with the serving cell.
Optionally, in an implementation, the configuration information is further used to configure a handover cancellation condition. The method further includes: In a process in which the terminal device searches for the first target cell that satisfies the trigger condition, if the handover cancellation condition is satisfied, the terminal device cancels the searching process, and continues to communicate with the serving cell.
For example, the configuration information includes a cancellation condition, where whether the handover cancellation condition is satisfied is determined based on the cancellation condition and the signal quality of the serving cell and/or the signal quality of the candidate target cell.