For example, if a plurality of first frequency resources are selected as the target first resources, the second predetermined rule includes either of the following: the Y first frequency resources are selected, and all first frequency resources satisfying the first condition are selected from the Y first frequency resources.
Step 203: The network device sends a random access response on a target second frequency resource to the terminal.
Correspondingly, the terminal at the other end receives the random access response sent by the network device to the terminal on the target second frequency resource.
The target second frequency resource is a free frequency resource in the N second frequency resources.
In this embodiment of the present disclosure, after the network device receives the random access request sent by the terminal, if there is one free second frequency resource in the N second frequency resources, the network device sends the random access response on the free second frequency resource (that is, the target second frequency resource); or if there are a plurality of free second frequency resources in the N second frequency resources, the network device may select one or more free second frequency resources (that is, the target second frequency resource) from the plurality of free second frequency resource to send the random access response.