Embodiment 2 of the present disclosure is mainly intended for a contention based random access process. The solution provided by Embodiment 2 of the present disclosure is implemented on a basis of the solution of Embodiment 1. Specifically, as shown in
Step 301: The terminal sends uplink data on a target third frequency resource to the network device.
Correspondingly, the network device at the other end receives the uplink data sent by the terminal on the target third frequency resource.
The target third frequency resource is a free frequency resource in the K third frequency resources.
Optionally, before step 301, the following steps are further included in this embodiment of the present disclosure:
Step 301a: The terminal monitors a part or an entirety of third frequency resources in the K third frequency resources.
Step 301b: If the terminal detects that H third frequency resources in the some or all third frequency resources are free, the terminal uses at least one of the H third frequency resources as the target third frequency resource.
H is less than or equal to a quantity of the some or all third frequency resources, and H is a positive integer greater than or equal to 1.