Observations on OMNeT++ Real-Time Behaviour Christina Obermaier, - - PowerPoint PPT Presentation

observations on omnet real time behaviour
SMART_READER_LITE
LIVE PREVIEW

Observations on OMNeT++ Real-Time Behaviour Christina Obermaier, - - PowerPoint PPT Presentation

Observations on OMNeT++ Real-Time Behaviour Christina Obermaier, Christian Facchi 7. September 2017 Outline 1. Inter Vehicle Communication 2. HIL Testing with OMNeT++ 3. Timing Observations 4. Conclusion 5. Further Work 2 Christina


slide-1
SLIDE 1

Christina Obermaier, Christian Facchi · 7. September 2017

Observations on OMNeT++ Real-Time Behaviour

slide-2
SLIDE 2

Outline

  • 1. Inter Vehicle Communication
  • 2. HIL Testing with OMNeT++
  • 3. Timing Observations
  • 4. Conclusion
  • 5. Further Work

2 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-3
SLIDE 3

Inter Vehicle Communication

3 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-4
SLIDE 4

Inter Vehicle Communication

Overview

Features

Communication between vehicles as well as road side units Acts like a 360 degree (bidirectional) sensor Enhances traffic flow and traffic safety

4 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-5
SLIDE 5

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-6
SLIDE 6

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC dedicated spectrum

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-7
SLIDE 7

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC Outside the Context

  • f Basic Service Set (OCB)

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-8
SLIDE 8

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC geographical routing

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-9
SLIDE 9

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC local knowledge base

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-10
SLIDE 10

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC HMI, automated driving…

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-11
SLIDE 11

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC Congestion Control packets, bitrate, tx power

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-12
SLIDE 12

Inter Vehicle Communication

ETSI ITS-G5 Protocol Stack

PHY: 5.9 GHz OFDM MAC: EDCA IEEE 802.11p ETSI ITS-G5 GeoNet & BTP Facilities & Applications Security DCC Privacy & Authenticity

5 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-13
SLIDE 13

Simulation Tools

VANET simulation tools by THI Research Centre

  • pen-source ITS-G5 stack

standard compliant packets integrated in Artery variable application sets suitable for rapid prototyping soon: radar sensors

Available at https://github.com/riebl/{artery, vanetza}

6 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-14
SLIDE 14

HIL Testing with OMNeT++

7 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-15
SLIDE 15

HIL Concept

Overview

HIL Overview

Simulated environment vehicles (blue) Physical twin vehicle with stripped down functionality (red) 802.11p proxy (USRP RIO) Message forwarding Simulated packets are sent over the air

8 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-16
SLIDE 16

HIL Concept

Possible Problems

Timing Problems

OMNeT++ is running too fast OMNeT++ is running too slow Running too slow is not recognized

9 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-17
SLIDE 17

HIL Testing

Real Time Scheduler

cEvent* RealTimeScheduler::takeNextEvent pseudocode

Result: next cEvent currentRealTimeMiss = simTime - wallClockTime; if (currentRealTimeMiss * -1) ∠realTimeMissThreshold then // simulation unacceptable slow stop simulation; else eventDuration = wallClockTime - eventStartTime; log currentRealTimeMiss and eventDuration and nextEventIdentifier; while SimTime ∠wallClockTime do // simulation faster than real time wait; end set nextEventIdentifier; set eventStartTime; return nextEvent; end

10 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-18
SLIDE 18

HIL Testing

Real Time Requirements

Duplicate packet detection GPS timestamp Replay attack detection DENM validity Long range communication using MAC layer unicasts

11 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-19
SLIDE 19

Timing Observations

12 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-20
SLIDE 20

Real-Time Observations

Scenario Description

Hardware

Component Laptop Computer Simulation Cluster CPU Intel Core i5-6300U @ 2.40GHz Intel Xeon E7-8867 v4 @ 2.40GHz Cores 1 x 4 4 x 18 RAM 16GB 3TB Hard Drive 256GB SSD 450GB SAS SSD RAID 1

Scenario

Three vehicles on highway Five vehicles on highway

13 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-21
SLIDE 21

Real-Time Observations

Event List

ID Event name # Events ”3 vehicles” # Events ”5 vehicles” 1 TraCI Connect 1 1 2 TraCI Step 322 370 3 GeoNet packet 3870 11298 4 GeoNet data frame 3870 11298 5 txStart-0 3 5 6 endIFS 661 1189 7 configureRadioMode 1322 2378 8 transmissionTimer 661 1189 9 remove non Interfering Transmission 661 1188 10 report CL 928 1650 11 middleware update 925 1645 12 txStart-1 658 1184 13 GeoNet radio frame 1274 4460 14 reception Timer 1274 4460 Overall events 16430 42315

14 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-22
SLIDE 22

Real-Time Observation

Event Times

1e-04 1e-02 1e+00 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Event ID Event Duration in [s]

Figure: Event times cluster

1e-04 1e-02 1e+00 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Event ID Event Duration in [s]

Figure: Event times laptop

15 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-23
SLIDE 23

Real-Time Observation

Real-Time Flow

3 vehicles (cluster) 3 vehicles (laptop) 10.1 10.2 10.3 10.4 10.1 10.2 10.3 10.4 0.00 0.01 0.02 0.03 0.04

Simulation time in [s] Real time in [s] instant event durations real time delay

5 vehicles (cluster) 5 vehicles (laptop) 10.1 10.2 10.3 10.4 10.1 10.2 10.3 10.4 0.00 0.02 0.04 0.06

Simulation time in [s] Real time in [s] instant event durations real time delay 16 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-24
SLIDE 24

Real-Time Observation

Simulation Run Overview

1 10 100 1000 10000 0.0

  • 0.5
  • 1.0
  • 1.5
  • 2.0
  • 2.5
  • 3.0

Real Time Loss in [s] Amount of Events

1 10 100 1000 10000 0.0

  • 0.5
  • 1.0
  • 1.5
  • 2.0
  • 2.5
  • 3.0

Real Time Loss in [s] Amount of Events

Figure: Laptop

1 10 100 1000 10000 0.0

  • 0.5
  • 1.0
  • 1.5
  • 2.0
  • 2.5
  • 3.0

Real Time Loss in [s] Amount of Events

1 10 100 1000 10000 0.0

  • 0.5
  • 1.0
  • 1.5
  • 2.0
  • 2.5
  • 3.0

Real Time Loss in [s] Amount of Events

Figure: Cluster

17 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-25
SLIDE 25

Conclusion

18 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-26
SLIDE 26

Conclusion

Which Parts can be Tested Properly?

Duplicate packet detection GPS timestamp Replay attack detection DENM validity Long range communication using MAC layer unicasts

19 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-27
SLIDE 27

Further Work

20 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-28
SLIDE 28

Further Work

Tweak simulation performance Add some parallelism Replay simulated test data

21 · Christina Obermaier, Christian Facchi · 7. September 2017

slide-29
SLIDE 29

Thank You For Your Attention

Any Questions?

22 · Christina Obermaier, Christian Facchi · 7. September 2017