Currently, Device-to-Device communications (D2D) communication plays an important role in communication, as it increases the efficiency of the use of network resources. This allows the devices to communicate directly with each other, without using the transmission nodes. It is also one of the solutions to the problem of limited network coverage, which can be extended with D2D, and therefore costs and energy can be reduced. This article compares various resource allocation solutions - one of the three main D2D communication problems (D2D detection, connection mode selection and resource allocation). There are two operating modes: the controlled mode (supported by the base station eNodeB) and the autonomous mode