Today, wireless research offers an enormous range of technologies for potential prototyping and real-life integration. One of the promising directions in this area is the utilization of proximity-based direct connections between mobile nodes (D2D). This paper studies proximity-based D2D communication scenarios related to beyond 5G cellular networks. A method of clustering mobile nodes in physical and social proximity is proposed. Numerical evaluation of delays, aggregated traffic, and the session interruption probability is provided aiming to identify the effects associated with the use of direct connections in 5G networks. The advantages of using classic infrastructure solutions in cases of incomplete cellular coverage are also provided.