This paper focuses on exploiting the service architecture that exercises the Software-Defined Network (SDN) concept in heterogeneous vehicular networks for handling data traffic using optimal path selection and routing in the situation like congestion in Vehicle Ad Hoc Networks (VANETs). In particular, we consider the scenario where a set of information is requested by a vehicular node from other vehicular nodes. Software-Defined Networking (SDN) have caught much attention in vehicular networks where decoupling of data and control plane enables the centralized control of the network; providing flexibility to a great extent. In this paper, we design an efficient network traffic routing algorithm assisted by SDN. Finally, we built a realistic traffic based simulation model. Simulation results show that the proposed protocol leveraged by the SDN framework outperforms the conventional network for data traffic management in terms of Round Trip Time (RTT) and Packet Delivery Ratio (PDR).