The 5G communication network is a promising technology that offers user-centric connectivity to customers, enabling quick, high-capacity, and latency-free access to many applications. Software Defined Networking Controller (SDNC) is an emerging technology that is used for increasing the security and maintaining the dynamic nature of mobile devices in latency and energy-assured 5G wireless communication. Different SDN topology open flow controllers are used in the literature for increasing the throughput and security of the network but they possess some drawbacks such as frequent location update (LU) overhead, high latency, and high energy consumption. This paper proposes a hexagonal software defined network (H-SDN) controller to overcome these challenges. The proposed H-SDN topology is used to preserve Intermediate Message Layer (IML) location during multimedia data transmission. A Core Switch (CS) updates an IML's location within clusters of cells, as long as it remains within the cluster. However, in the proposed method, there will be a location update on the server if the IML departs the cluster. Experiment results show that the proposed method can increase security, which in turn increases throughput, while reduces the location update costs, energy consumption, and transmission latency.