In addition, related parameters such as the thresholds a, b, C0, and W0 and parameters related to T=f(x) and P=f(x) are parameters configured by the base station when there is network coverage, or parameters preconfigured when there is no network coverage, for example, parameters set at delivery of UE.
According to the resource conflict reducing method provided in this embodiment of the present invention, when the first UE needs to transmit data, the first UE sends the data to the at least one second UE according to the preset parameter by using the Z resources of the S resources. The preset parameter is at least one of the quantity c of conflicts of the first UE, the conflict time w of the first UE, the service priority Q of the first UE, or the priority of the UE. According to an existing D2D technology, UE randomly selects a resource in a preset resource pool to transmit data, and a conflict is caused because different UEs preempt a same resource. According to the method provided in the present invention, the UE determines the transmit probability or the wait period with reference to a parameter such as the quantity of conflicts of the UE, the conflict time of the UE, or the service priority of the UE. Different UEs are corresponding to different wait periods or transmit probabilities. This can avoid, to some extent, that the UE competes for a same resource with another UE, and effectively reduce a conflict generated in the D2D technology because transmit UE preempts a resource.
This embodiment of the present invention provides a resource conflict reducing method. As shown in
301. When first UE needs to transmit data, the first UE determines N available resources from S resources.