FIG. 6 is a schematic diagram of a hardware structure of a terminal for implementing the embodiments of the present disclosure. The terminal 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. A person skilled in the art may understand that the structure of the terminal 100 shown in FIG. 6 does not constitute a limitation on the terminal. The terminal 100 may include more or fewer components than those shown in the figure, or combine some of the components, or arrange the components differently. In this embodiment of the present disclosure, the terminal 100 includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle terminal, a wearable device, a pedometer, or the like.
The user input unit 107 is configured to receive first resource configuration information sent by a network device, where the first resource configuration information is used to indicate M first frequency resources and N second frequency resources, and M and N are positive integers greater than or equal to 1. The user input unit 107 is further configured to send a random access request on a target first frequency resource to the network device, and receive a random access response sent by the network device on a target second frequency resource, where the target first frequency resource is a free frequency resource in the M first frequency resources, and the target second frequency resource is a free frequency resource in the N second frequency resources.