30 September 2014

SUMO and MOVE Example Traffic Simulation


This post will show you the example of SUMO and MOVE using the Ubuntu 12.04 (64bit) operating system.

Requirements:
  • MOVE.jar (This software will work only with sumo version 0.12.3).
  • SUMO (0.12.3)  
  • jdk (To run MOVE)
The command to run MOVE.jar is
$] java -jar MOVE.jar

Here is the screenshot of all the images.
My Own Road with Traffic Signals

 The above diagram shows there are 6 junctions (0 to 5) and the Traffic signals are at 1,2,4 and 5. There are roads connecting the junctions. Each Road has two lanes named R for Right, L for Left, U for Up and D for down.
R12 indicates a lane from 1 to 2 and L12 indicates 2 to 1

To create simulation using MOVE, The following options in MOVE.jar have to be implemented. 
  •  Mobility Model
    • Node (file.nod.xml)
    • Edge (file.edge.xml)
    • Configuration (file.netc.cfg)
    • Create Map (file.net.xml)
    • Flow (file.flow.xml)
    • Turn (file.turn.xml)
    • Create Vehicle (file.rou.xml)
    • Configuration (file.sumo.cfg) - This file is the one running in sumo-gui
    • Visualization (file.sumo.tr) - This file will be helpful in creating the tcl file for ns2.
    • Run Simulation (no of vehicles emitted and running with simulation time will be shown)
  •  Traffic Model
    • Static Mobility (this creates file.nam, file.tr, file.tcl) that can be running using ns2.
MOVE.jar
First screen of MOVE

MOVE
After Selecting Mobility Model from the above Image

Node

Edges

SUMO Configuration

Generate Map

Flow

Turn
Route

Sumo configuration file generation


SUMO Demo for the Road designed in Fig 1

Sumo Demo in Zoom Out

 To create tcl file for ns2
To Create Tcl file for ns2


nam file demo

nam file demo
All the above images shows that the move and sumo is helpful in creating a traffic simulation that transmit packets between the vehicles. Here each node in nam represents the vehicle and they transmit packets between them.
The packet delivery ratio, throughput, bit error rate, loss rate, end to end delay can be calculated based on the tracefile generation.

The same project can be extended as following
  • A car act as a malicious node and can be analysed for the packet loss before and after malicious activity
  • Instead our own design of junctions and roads, real roads may be taken using openstreetmap and some of the above procedures may be carried out. 
If any user needs the source code for any of these applications, they can contact me through my email or comment in the following section. 


 T S Pradeep Kumar