In this article, an improved VANETs routing with particles swarm optimization to improve the quality-of-service parameters (IVRPSO) are developed. The core modules which are present in the article are RPL protocol-based routing and particles swarm optimization. Through these processes routing of the high-speed vehicles is standardized and the quality of communication is improvised. The implementation of this network is done in NS3 software and the parameters which are concentrated to analyze the performance are the data success rate, network throughput, routing overhead, data loss date and average delay. The simulation output states that from the execution of the varying number of vehicles the performance of the IVRPSO is better than the earlier works concerned with efficiency and data success rate.