A method for allocating communication resources for communications ( c i) performed by user equipment ( 110a-f; 410a-c) in a mobile communication network, the method comprising, at a communication system of the mobile communication network: step a) receiving a first indication ( M DL, M UL) about an amount of available communication resources; step b) obtaining information about interfering communications between user equipment; for each communication between user equipment to which communication resources have to be allocated: step c) receiving a second indication R i D 2 ⁢ D R i UL R i DL about an available communication rate for an infrastructure-based communication and for a device-to-device communication; step d) receiving a third indication ( A i) about a requested communication rate for said each communication; step e) making a selection (215;515) between an infrastructure-based communication type or a device-to-device communication type based on the first, second and third indications and the information about interfering communications, and step f) allocating communication resources to each communication on the basis of the selection between an infrastructure-based communication type or a device-to-device communication type, wherein the steps a), b), c), d), and e) are performed with a periodicity longer than a periodicity at which the step f) is performed, wherein each communication comprises a plurality of data packets and the periodicity of the step f) corresponds to a duration of a transmission in the mobile communication network. step a) receiving a first indication ( M DL, M UL) about an amount of available communication resources; step b) obtaining information about interfering communications between user equipment; for each communication between user equipment to which communication resources have to be allocated: step c) receiving a second indication R i D 2 ⁢ D R i UL R i DL about an available communication rate for an infrastructure-based communication and for a device-to-device communication; step d) receiving a third indication ( A i) about a requested communication rate for said each communication; step e) making a selection (215;515) between an infrastructure-based communication type or a device-to-device communication type based on the first, second and third indications and the information about interfering communications, and step f) allocating communication resources to each communication on the basis of the selection between an infrastructure-based communication type or a device-to-device communication type, wherein the steps a), b), c), d), and e) are performed with a periodicity longer than a periodicity at which the step f) is performed, wherein each communication comprises a plurality of data packets and the periodicity of the step f) corresponds to a duration of a transmission in the mobile communication network. step c) receiving a second indication R i D 2 ⁢ D R i UL R i DL about an available communication rate for an infrastructure-based communication and for a device-to-device communication; step d) receiving a third indication ( A i) about a requested communication rate for said each communication; step e) making a selection (215;515) between an infrastructure-based communication type or a device-to-device communication type based on the first, second and third indications and the information about interfering communications, and step f) allocating communication resources to each communication on the basis of the selection between an infrastructure-based communication type or a device-to-device communication type,