Professional Documents
Culture Documents
Tutorial:
Simulating VANET and ITS
(using OMNeT++ and SUMO)
MJ (Thinus) Booysen
mjbooysen at sun dot ac dot za
Intersection
Mobile networks
Recent developments:
Vehicular Ad-hoc NETworks (VANET)
Intelligent Transportation Systems (ITS)
3
Intra-car Inter-car Extra-car Networks Servers and
V2V V2I Consumers
Navigation
CAN bus
RSU
OBU
Safety and
ITS network
detectors
traffic management
Emergency
WAVE WAVE
databases
Servers and
Wi-Fi
sources
Cellular
Operators and end users
WIMAX
Audio-visual
MM
ring
MOST
Internet
Entertainment and
Internet connectivity
Displays
CAN Controller Area Network OBU On Board Unit
ISP Internet Service Provision RSU Road Side Unit (WAVE)
ITS Intelligent Transportation Systems V2I Vehicle to Infrastructure
MM MOST Master V2V Vehicle to vehicle
MOST Media Oriented Systems Transport Wi-Fi Wireless Fidelity
WIMAX Worldwide Interoperability for Microwave Access
WAVE Wireless Access in Vehicular Environments
4
Vehicular simulation: challenges, whats different?
5
What is required for simulation?
VANET:
Accurate simulation of communications
signal propagation
networking
Accurate simulation of vehicle mobility
Comms simulation use mobility info
ITS:
Same as VANET
More applications support
Comms simulation (application) affects mobility
6
Some approaches
Mobility
Fixed number of vehicles at constant speed in straight
line in the same direction
Proprietary simulators (simple following, no overtaking)
Generate traces with a proper simulator, save to file
Limited scenarios and densities
Highway
Urban
Communications
Fixed range, if within range communications successful.
Taking into account radio properties
Interference
Obstacles 7
VANET simulation packages
MiXiM
HD traffic flows MAC layer
LD traffic flows PHY layer
rc.osm
net.net.xml
Export map from web site, and convert to XML with SUMOs netconvert
10
netconvert --osm rc.osm
SUMO setup: trips
Generate random trips (from A to B) from the road network (net.net.xml)
randomTrips.py -n net.net.xml -l -e 600 -o trips.trips.xml
trips.trips.xml
routes.routes.xml
Convert the trips to routes (what is between A and B) and traffic flow
duarouter -n net.net.xml t trips.trips.xml -o routes.rou.xml
--ignore-errors 11
SUMO setup: simulation
Can also specify flows (in stead of single vehicles), vehicle types, different
following models, etc.
<vType id="vtype0" accel="2.6" decel="4.5" sigma="0.5" length="2.5"
minGap="2.5" maxSpeed="35" color="1,1,0"/>
<flow id="flow0" type="vtype" route="route0" begin="0" period="5"
number="200" departlane="random" departpos="base"/>
Configure the simulation by specifying the network, the routes, and the
duration in a config file.
sumo.sumo.cfg
12
SUMO simulation
13
OMNeT++ Setup
14
OMNeT++ setup
16
NED files (there are many)
In TraCIDemo.NED (application layer)
In Car.NED:
17
Initialization file
In config.ini:
For each node, you can also specify location and speed, managed
by the mobility module.
18
OMNeT++ simple mobility demo
BaseNetwork example that ships with MiXiM installation, just run the
config.ini file (right click, run as OMNeT simulation)
19
Veins setup
20
Veins (OMNeT++ & SUMO) demo
Demo that ships with Veins installation, just run the config.ini file
(Traci launch demo) (right click, run as OMNeT simulation)
Only thing replaced are the SUMO net.net.xml and routes.rou.xml
files.
21
Remaining challenges
Data dissemination
Signal propagation with obstacles
Multichannel management in IEEE 802.11p
22
Questions or comments?
23