User equipment, for a device-to-device technology, comprising: an obtaining unit, configured to obtain discovery information, wherein the discovery information is information that the user equipment needs to send to other user equipment by means of direct communication between devices; a request unit, configured to generate request information according to the discovery information obtained by the obtaining unit, wherein the request information is used to request a base station to allocate, to the user equipment, a time-frequency resource used to send the discovery information; a sending unit, configured to send the request information generated by the request unit to the base station; and a receiving unit, configured to receive resource information sent by the base station, wherein the resource information comprises a time-frequency resource, and the time-frequency resource is a time-frequency resource that is allocated by the base station to the user equipment and used to send the discovery information, wherein the sending unit is further configured to send the discovery information to the other user equipment by using the time-frequency resource received by the receiving unit, wherein the request unit is specifically configured to: determine a sending frequency of the discovery information and sending duration of the discovery information according to the discovery information, and generate the request information, wherein the request information comprises the sending frequency of the discovery information and the sending duration of the discovery information characterized in that the resource information further comprises a preset frequency and preset duration, wherein the preset frequency is a frequency of sending the discovery information and the preset duration represents a time of sending the discovery information using the time-frequency resource allocated by the base station to the user equipment; and the sending unit is specifically configured to: match the discovery information and the time-frequency resource of the discovery information, and send the discovery information to the other user equipment according to the preset frequency and the preset duration. an obtaining unit, configured to obtain discovery information, wherein the discovery information is information that the user equipment needs to send to other user equipment by means of direct communication between devices; a request unit, configured to generate request information according to the discovery information obtained by the obtaining unit, wherein the request information is used to request a base station to allocate, to the user equipment, a time-frequency resource used to send the discovery information; a sending unit, configured to send the request information generated by the request unit to the base station; and a receiving unit, configured to receive resource information sent by the base station, wherein the resource information comprises a time-frequency resource, and the time-frequency resource is a time-frequency resource that is allocated by the base station to the user equipment and used to send the discovery information, wherein the sending unit is further configured to send the discovery information to the other user equipment by using the time-frequency resource received by the receiving unit, wherein the request unit is specifically configured to: determine a sending frequency of the discovery information and sending duration of the discovery information according to the discovery information, and generate the request information, wherein the request information comprises the sending frequency of the discovery information and the sending duration of the discovery information characterized in that the resource information further comprises a preset frequency and preset duration, wherein the preset frequency is a frequency of sending the discovery information and the preset duration represents a time of sending the discovery information using the time-frequency resource allocated by the base station to the user equipment; and the sending unit is specifically configured to: match the discovery information and the time-frequency resource of the discovery information, and send the discovery information to the other user equipment according to the preset frequency and the preset duration.