The neediness of cordless apps and offerings with high bandwidth requirements over the years has increased the demand for high-speed internet and data volumes exponentially. Current wireless networks like 4G LTE technology face issues from this increase in demand as they battle to keep up with users’ growing demands. To satisfy the rising demand for wireless data, 5G cellular networks have been created as a solution to this issue. D-2-D communication has emerged as a brand-new cellular communication paradigm. This technology enables the User Equipment (UE) in 5G cellular networks to instinctively communicate without going through the evolved Node-B (eNB). D2D communications enhance the efficiency and capacity of wireless networks and play a crucial part in ensuring the level of service quality (QoS). However, several unresolved issues, such as mode selection, need to be addressed and mobility management for better performance. It should be managed wisely so that it provides lower latency, less complexity, lower power consumptions, and minimum potential data continuity connection which are primary for cell phone networks of the future. In this paper, we proposed an updated D-2-D mobility management protocol that is performance-based and enhances the user experience in 5G networks utilizing mode selection. The proposed scheme considers the user’s travel between different locations which is the mobility patterns of devices and dynamically selects the optimal mode of communication to minimize the handover delay.