The massive increase in computing and network capabilities has resulted in a paradigm shift from vehicular networks to the Internet of Vehicles (IoV). Owing to the dynamic and heterogeneous nature of IoV, it requires efficient resource management using smart technologies, such as software-defined network (SDN), machine learning (ML), and so on. Roadside units (RSUs) in software-defined-IoV (SD-IoV) networks are responsible for network efficiency and offer several safety functions. However, it is not viable to deploy enough RSUs, and also the existing RSU placement lacks universal coverage within a region. Furthermore, any disruption in network performance or security impacts vehicular activities severely. Thus, this work aims to improve net...