Netedit is a Road network editor for the road traffic simulation in SUMO. Using this utility users can quickly design road networks and obtain Network xml file which is part of SUMO configuration.
Steps to create a simple SUMO network using netedit utility:
1. Open netedit from <SUMO_INSTALL_DIRECTORY>/bin and select File-->New Network
Refer: "http://sumo.dlr.de/wiki/NETEDIT#Edit_Modes" for more details on modes of operation
2. Select "(e) Create Edge" option from the drop down list as shown below or click on character "e" in the keyboard.
3. Enable the check boxes "chain" and "two-way" which are present next to the Drop down list.
4. Adjust the design area to ensure that the road network lies in the positive XY quadrant. This will help in avoiding complexities when opening the network scenario in NetSim.
5. Click on blank white area to create edges, clicking again will create a new edge which will automatically get connected to the previous edge as shown below:
6. Select "(t) Traffic Lights" from the drop down. Select the junctions and click on Create TLS button on the left to add Traffic Signal to it.
7. Select "(c) Connect" from the drop down. Select the lanes and ensure connectivity between them.
8. Create a new folder and save the network file(*.net.xml) over there, say with a name network.net.xml
9. Open command prompt with the current working directory as the folder where you have saved the network file in the previous step.
10. Using randomtrips.py utility present in <SUMO_INSTALL_DIRECTORY>/tools directory create trips file with the command
>"C:\sumo-0.32.0\tools\randomTrips.py" -n "network.net.xml" -e 2 --route-file "trips.xml"
This will create a trips file in your folder along with associated files.
11. Create a SUMO configuration file (*sumo.cfg) which points to the network and trips file, in your folder which contains the network and route file.
Refer: "http://sumo.dlr.de/wiki/Tutorials/Hello_Sumo" include parameter "<step-length value="0.4"/>"
Following is a sample SUMO Configuration:
You can copy the above contents to create a SUMO configuration file in your folder.
12. Open SUMO using sumo-gui.exe present in <SUMO_INSTALL_DIRECTORY>/bin. Open scenario in SUMO using Open->Simulation and verify whether the network loads and simulation happens as per the configuration done.
13. Open the SUMO scenario via NetSim VANET by selecting VANET under the New option in the Home Screen. Browse and locate the SUMO Configuration file present in your directory to load the road traffic network in NetSim GUI. The road network created in SUMO will be automatically replicated in NetSim GUI environment.
14. Configure traffic between vehicles using the Application icon, enable trace files, dynamic metrics.
15. Click on Run Simulation button. It is preferable to specify the simulation time less than or equal to the end time specified in sumo configuration (sumo.cfg) file.
16. As simulation starts SUMO interface(Vanet.exe) command line will be initialized in parallel and will be displaying the step calculations done in SUMO during runtime. SUMO interface window will be terminated before simulation in NetSim is over, since SUMO takes care of road traffic conditions whereas NetSim takes care of the Network Communication and instantiates the TCP/IP stack for each device taking part in the simulation.
17. At the end of the simulation NetSim will provide a detailed performance metrics along with packet trace, event trace, link and application throughput plots based on the user configuration done.
NetSim animation window which appears at the end of the simulation can be used to visualize vehicular movement along with packet flow and several other additional options.
18. To visualize vehicular movement during runtime, run the simulation with Play & record animation option selected. NetSim animation window which appears at the start of the simulation can be ignored and closed.
19. Now in addition to the SUMO Interfacing console, SUMO-GUI will be loaded in parallel. Vehicular movement can be visualized here by configuring the coloring schemes for better visibility. The following window can be obtained by clicking on the colored palette just before the camera icon. Under vehicles, set Show As to 'simple shapes' and set Exaggerate by to 20 or any other value as per your preference and click on Use button.
20. You will now start seeing vehicle movement in SUMO-GUI as per the number of vehicles, departure time and routes configured in the routes (*.trips.xml)file. You can zoom in and out and move the simulation area to visualize it better.
21. NetSim animation window which appears in parallel can be used to visualize vehicular movement along with packet flow and other additional options as explained above.
For further reference and documentation related to NetEdit and SUMO visit:
For more information on NetSim visit