Vanets Simulations

Embed Size (px)

Citation preview

  • 8/17/2019 Vanets Simulations

    1/23

  • 8/17/2019 Vanets Simulations

    2/23

    Presentation Overview

    History and background

    Why is VANET special?

    Vehicular networking vs. ITS

    What is required for simulation?

    Existing approaches Simulation packages

    Veins (OMNeT++ & SUMO)

    SUMO demo

    OMNeT++ demo

    Veins demo

    Remaining challenges

    2

  • 8/17/2019 Vanets Simulations

    3/23

    History and Background

    Traditional traffic simulations: Civil worked with vehicular traffic

    Road design

    Intersection

    E&E worked with network traffic

    Computer networks

    Mobile networks

    Recent developments: Vehicular Ad-hoc NETworks (VANET)

    Intelligent Transportation Systems (ITS)

    3

  • 8/17/2019 Vanets Simulations

    4/23

     

    4

       O   B

       U

       R   S

       U

       V   2

       I

       V   2

       V

       W   i  -   F   i

       C   A   N

       I   S

       P

       I   T

       S

       M

       M

       M

       O   S   T

       W

       I   M   A   X

       W

       A   V   E

       C  o  n   t  r  o   l   l  e  r   A  r  e  a

       N  e   t  w  o  r   k

       I  n   t  e  r  n  e   t   S  e  r  v   i  c  e

       P  r  o  v   i  s   i  o  n

       I  n   t  e   l   l   i  g  e  n   t   T  r  a  n  s  p  o  r   t  a   t   i  o  n   S  y  s   t  e  m  s

       M   O   S   T   M  a  s   t  e  r

       M  e   d   i  a   O  r   i  e  n   t  e   d

       S  y  s   t  e  m  s   T  r  a  n  s  p  o  r   t

       W  o  r   l   d  w   i   d  e   I  n   t  e  r  o  p  e  r  a   b   i   l   i   t  y   f  o  r   M   i  c  r  o  w  a

      v  e   A  c  c  e  s  s

       W   i  r  e   l  e  s  s   A  c  c  e  s  s   i  n   V  e   h   i  c  u   l  a  r   E  n  v   i  r  o  n  m  e  n   t  s

       O  n   B  o  a  r   d   U  n   i   t

       R  o  a   d   S   i   d  e   U  n   i   t   (   W

       A   V   E   )

       V  e   h   i  c   l  e   t  o   I  n   f  r  a  s   t  r  u  c   t  u  r  e

       V  e   h   i  c   l  e   t  o  v  e   h   i  c   l  e

       W   i  r  e   l  e  s  s   F   i   d  e   l   i   t  y

    RSU

    OBU

    Internet

       I  n

       t  r  a  -  c  a  r

       I  n   t  e  r  -  c  a

      r

       V   2   V

       E  x   t  r  a  -  c  a  r

       V   2   I

    MM

       N  e

       t  w  o  r   k  s

       S  e  r  v  e  r

      s  a  n   d

       C  o  n  s  u

      m  e  r  s

    ITS network 

    WIMAX

    Wi-Fi

    Cellular 

    WAVE

    MOST

    ring

    CAN bus

    WAVE

    Servers and

    databases

    Operators and end users

     Navigation Emergencydetectors

    Audio-visualsources

    Displays

    Safety and

    traffic management

    Entertainment and

    Internet connectivity

  • 8/17/2019 Vanets Simulations

    5/23

    Vehicular simulation: challenges, what’s different? 

    V2I and V2V Mobility patterns

    Fast

    Unpredictable, but constrained.

    Broad range of applications Safety critical

    Infotainment

    Power usage

    5

  • 8/17/2019 Vanets Simulations

    6/23

    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

  • 8/17/2019 Vanets Simulations

    7/23

    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

  • 8/17/2019 Vanets Simulations

    8/23

    VANET simulation packages

    Tool Advantages Disadvantages

    Trafic and Network Simulator

    (TraNs) (SUMO and ns-2).

    Flexibility and real world maps.

    Integrated solution.

    No feedback is provided

    from ns-2 to SUMO.

    Development suspended

    recently.

    National Chiao Tung

    University network simulator(NCTUns) is a proprietary

    mobility and communications

    simulator.

    Single application with integrated

    GUI. Popular for VANETresearch.

    NCTUns is UNIX-based

    and only runs on Fedora.Limited support.

    VanetMobiSim with ns-2. Flexible mobility models with

    micro-mobility and macro-mobility

    models. Maps can be imported

    from TIGER database.

    No feedback is provided

    from ns-2 to

    VanetMobiSim.

    Separate simulators.

    Vehicles in Network

    Simulation

    (Veins), which integrates

    SUMO and OMNeT++

    Flexibility and real world maps.

     Active community with support.

    Full IEEE 802.11p

    implementation. Integrated

    solution.

    8

  • 8/17/2019 Vanets Simulations

    9/23

    Veins (SUMO & OMNeT) Simulation model

    Veins : veins.car2x.org/ (easy installation here)

    OMNeT++ : www.omnetpp.org/ (easy thorough tutorial here)

    MiXiM : mixim.sourceforge.net/ 

    SUMO : sumo.sourceforge.net/ 

    OpenStreetMap : www.openstreetmap.org/  9

    OM NeT++

       M   i   X   i   M

    Metrics

    VeinsSUMO   O  p  e

      n   S   t  r  e  e   t   M  a  p

       H   i  g

       h  w  a  y  m  a  p

       U

      r   b  a  n  m  a  p

    Highway routesUrban routes

    PHY layer 

    TraCI Mobility

    HD traffic flows

    LD traffic flows

    MAC layer 

    Application

    http://veins.car2x.org/http://goo.gl/NeACShttp://www.omnetpp.org/http://goo.gl/FuCJ8http://mixim.sourceforge.net/http://sumo.sourceforge.net/http://www.openstreetmap.org/http://mixim.sourceforge.net/http://mixim.sourceforge.net/http://www.openstreetmap.org/http://sumo.sourceforge.net/http://sumo.sourceforge.net/http://www.openstreetmap.org/http://sumo.sourceforge.net/http://mixim.sourceforge.net/http://goo.gl/FuCJ8http://www.omnetpp.org/http://goo.gl/NeACShttp://veins.car2x.org/

  • 8/17/2019 Vanets Simulations

    10/23

    SUMO Setup: Map: www.OpenStreetMap.org

    Export map from web site, and convert to XML with SUMO’s netconvert netconvert --osm rc.osm

    10

    rc.osm 

    net.net.xml 

    Road sections are called edges 

  • 8/17/2019 Vanets Simulations

    11/23

    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

    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

    trips.trips.xml 

    routes.routes.xml 

  • 8/17/2019 Vanets Simulations

    12/23

    SUMO setup: simulation

    Can also specify flows (in stead of single vehicles), vehicle types, different

    following models, etc.

    Configure the simulation by specifying the network, the routes, and theduration in a config file.

    12

    sumo.sumo.cfg 

  • 8/17/2019 Vanets Simulations

    13/23

    SUMO simulation

    13

  • 8/17/2019 Vanets Simulations

    14/23

  • 8/17/2019 Vanets Simulations

    15/23

    OMNeT++ setup

    Connections between layers are done using “gates”. C++ files specify the behaviour of the modules

    The NED files specify how gates are connected.

    In the .ini file specifies parameters Transmitter power, receiver sensitivity, thermal noise, slot durations, etc.

    15

  • 8/17/2019 Vanets Simulations

    16/23

    C++ module file: TraCIDemo.cc (application)

    16

  • 8/17/2019 Vanets Simulations

    17/23

    NED files (there are many)

    In TraCIDemo.NED (application layer)

    In Car.NED:

    17

  • 8/17/2019 Vanets Simulations

    18/23

    Initialization file

    In config.ini:

    For each node, you can also specify location and speed, managedby the mobility module.

    18

  • 8/17/2019 Vanets Simulations

    19/23

    OMNeT++ simple mobility demo

    BaseNetwork example that ships with MiXiM installation, just run the

    config.ini file (right click, run as OMNeT simulation)

    19

  • 8/17/2019 Vanets Simulations

    20/23

    Veins setup

    Veins connects SUMO and OMNeT++

    Veins uses a TCP connection and Python scripts to enableSUMO to act as a mobility model in OMNeT++

    Python set up to wait for Veins (module in OMNeT++)

    sumo-launchd.py -p 9999 -vv -c /c/user/src/sumo/bin/sumo.exe

     And OMNeT is configured to look for mobility module

    20

  • 8/17/2019 Vanets Simulations

    21/23

    Veins (OMNeT++ & SUMO) demo

    21

    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.

  • 8/17/2019 Vanets Simulations

    22/23

    Remaining challenges

    Data dissemination

    Signal propagation with obstacles

    Multichannel management in IEEE 802.11p

    22

    http://www.sun.ac.za/

  • 8/17/2019 Vanets Simulations

    23/23

    23

    Questions or comments?

    http://www.sun.ac.za/http://www.sun.ac.za/http://www.sun.ac.za/