PySNS3: A Real-Time Communication Interface and Protocol for Vehicular Ad-Hoc Networks

  • Tong Wang
  • Azhar Hussain
Conference paper
Part of the Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering book series (LNICST, volume 234)


Vehicular Ad-hoc Network (VANET) being a key part of Intelligent Transportation Systems (ITS), is gaining interest among road authorities, automotive industry, network operators, and public for its numerous solutions related to road safety, comfort, and traffic efficiency. The prohibitive cost of deploying large-scale Testbeds for these solutions has attracted VANET’s research community towards cooperative ITS simulation platforms. SUMO is a widely adopted microscopic traffic simulator with a Traffic Control Interface (TraCI) in various programming languages. Recently, Python has become the first priority programming language (used by many companies such as Google, Yahoo!, CERN, NASA, etc.) for data science, web development, embedded applications, artificial intelligence, information security and computation-driven scientific research. Moreover, only Python-based SUMO’s TraCI has full support for the up-to-date set of commands. The lack of a Python-based cooperative ITS simulation platform, capable to communicate SUMO’s TraCI with a widely adopted network simulator NS3, has led us to develop PySNS3 (a Python-based communication model for SUMO and NS3). We have tested the robustness and reliability of PySNS3 for VANET’s experimentation, and compared its mobility as well as communication related simulation results with state-of-the-art NS2-mobility-model. The results have proved the reliability and robustness of the proposed PySNS3.


Vehicular Ad-Hoc Networks Intelligent transport system Automobile industry SUMO NS3 Traffic Control Interface 



This paper was supported by the National Natural Science Foundation (61102105), the Engineering and Physical Sciences Research Council of UK (EPSRC) (Funding number EP/N01300X/1), the Harbin Science Fund for Young Reserve Talents (No. 2015RAQXJ008), Key Program for International S&T Cooperation Projects of China No. 2015DFG12150.


  1. 1.
    Tong, W., Jiyi, W., He, X., Jinghua, Z., Charles, M.: A cross unequal clustering routing algorithm for sensor network. Measur. Sci. 13(4), 200–205 (2013)Google Scholar
  2. 2.
    Younes, M.B., Boukerche, A.: An efficient dynamic traffic light scheduling algorithm considering emergency vehicles for intelligent transportation systems. Wirel. Netw. J. Mobile Commun. Comput. Inf. (2017). Springer, New York.
  3. 3.
    Rondinone, M., Maneros, J., Krajzewicz, D., Bauza, R., Cataldi, P., Hrizi, F., Gozalvez, J., Kumar, V., Rockl, M., Lin, L., Lazaro, O., Leguay, J., Harri, J., Vaz, S., Lopez, Y., Sepulcre, M., Wetterwald, M., Blokpoel, R., Cartolano, F.: iTETRIS: a modular simulation platform for the large scale evaluation of cooperative ITS applications. Simul. Model. Pract. Theory 34, 99–125 (2013)CrossRefGoogle Scholar
  4. 4.
    Tian, R., Zhang, B., Zheng, J., et al.: A new distributed routing protocol using partial traffic information for vehicular ad hoc networks. Wireless Netw. 20, 1627–1637 (2014).
  5. 5.
    Bononi, L., Di Felice, M., D’Angelo, G., Bracuto, M., Donatiello, L.: MoVES: a framework for parallel and distributed simulation of wireless vehicular ad hoc networks. Elsevier Comput. Netw. 52(1), 155–179 (2008)CrossRefzbMATHGoogle Scholar
  6. 6.
    Gorgorin, C., Gradinescu, V., Diaconescu, R., Cristea, V., Iftode, L.: An integrated vehicular and network simulator for vehicular ad-hoc networks. In: Proceedings of the European Simulation and Modelling Conference (ESM), pp. 1–8 (2006)Google Scholar
  7. 7.
    Wang, S.Y., Chou, C.L.: NCTUns tool for wireless vehicular communication network researches. Elsevier Simul. Model. Pract. Theory 17(7), 1211–1226 (2009)CrossRefGoogle Scholar
  8. 8.
    Killat, M., Hartenstein, H.: An empirical model for probability of packet reception in vehicular ad hoc networks. EURASIP J. Wireless Commun. Netw. 2009, 721301 (2009)CrossRefGoogle Scholar
  9. 9.
    Multiple Simulator Interlinking Environment (MSIE) for C2CC in VANETs.
  10. 10.
    Mangharam, R., et al.: GrooveSim: a topography-accurate simulator for geographic routing in vehicular networks. In: Proceedings of the 2nd ACM International Workshop on Vehicular Ad hoc Networks (VANET 2005), September 2005Google Scholar
  11. 11.
    Piorkowski, M., Raya, M., Lugo, A.L., Papadimitratos, P., Grossglauser, M., Hubaux, J.-P.: TraNS: realistic joint traffic and network simulator for VANETs. In: Proceedings of the ACM SIGMOBILE Mobile Computing and Communications Review, January 2008Google Scholar
  12. 12.
    Pigne, Y., Danoy, G., Bouvry, P.: A platform for realistic online vehicular network management. In: Proceedings of IEEE GLOBECOM Workshops, pp. 595–599 (2010)Google Scholar
  13. 13.
    Sommer, C., German, R., Dressler, F.: Bidirectionally coupled network and road traffic simulation for improved IVC analysis. IEEE Trans. Mobile Comput. 10(1), 3–15 (2011)CrossRefGoogle Scholar
  14. 14.
  15. 15.
  16. 16.
    Wu, H., Lee, J., Hunter, M., Fujimoto, R., Guensler, R.L., Ko, J.: Efficiency of simulated vehicle-to-vehicle message propagation on Atlantas I-75 corridor, transportation research record. J. Transp. Res. Board 1910, 82–89 (2005)CrossRefGoogle Scholar
  17. 17.
    Behrisch, M., Bieker, L., Erdmann, J., Krajzewicz, D.: SUMO: simulation of urban mobility: an overview. In: Proceedings of the Third International Conference on Advances in System Simulation (SIMUL 2011), pp. 63–68 (2011)Google Scholar
  18. 18.
    NS3, The network simulator NS-3.
  19. 19.
    Interfaces by Programming Languages.
  20. 20.
  21. 21.
    Wang, T., Cao, Y., Zhou, Y., Li, P.: A survey on geographic routing protocols in delay/disruption tolerant networks. Int. J. Distrib. Sensor Netw. 2016, 1–12 (2016). Article ID 3174670Google Scholar
  22. 22.

Copyright information

© ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering 2018

Authors and Affiliations

  1. 1.College of Information and Communication EngineeringHarbin Engineering UniversityHarbinChina

Personalised recommendations