X-Lap : A Systems Approach for Cross-Layer Profjling and Latency - - PowerPoint PPT Presentation

x lap a systems approach for cross layer profjling and
SMART_READER_LITE
LIVE PREVIEW

X-Lap : A Systems Approach for Cross-Layer Profjling and Latency - - PowerPoint PPT Presentation

X-Lap : A Systems Approach for Cross-Layer Profjling and Latency Analysis for Cyber-Physical Networks RTN 2017 Stefan Reif, Timo Hnig, Wolfgang Schrder-Preikschat Department of Computer Science 4 (Distributed Systems and Operating Systems)


slide-1
SLIDE 1

X-Lap: A Systems Approach for Cross-Layer Profjling and Latency Analysis for Cyber-Physical Networks

RTN 2017 Stefan Reif, Timo Hönig, Wolfgang Schröder-Preikschat Department of Computer Science 4 (Distributed Systems and Operating Systems) Friedrich-Alexander-Universität Erlangen-Nürnberg Andreas Schmidt, Thorsten Herfet Telecommunications Lab Saarland Informatics Campus - Saarbrücken June 27, 2017

slide-2
SLIDE 2

Cyber-Physical Networks (CPNs)

2 / 19

slide-3
SLIDE 3

Cyber-Physical Networks (CPNs)

2 / 19

slide-4
SLIDE 4

Cyber-Physical Networks (CPNs)

2 / 19

slide-5
SLIDE 5

Cyber-Physical Networks (CPNs)

2 / 19

slide-6
SLIDE 6

Existing Solutions Single-Host Evaluation Tools

▶ Local evaluation ▶ Network-oblivious

Network Evaluation Tools

▶ Network protocol evaluation ▶ Abstract from host-related delays

Need for Cross-Layer-Analysis of communication stacks

3 / 19

slide-7
SLIDE 7

Existing Solutions Single-Host Evaluation Tools

▶ Local evaluation ▶ Network-oblivious

Network Evaluation Tools

▶ Network protocol evaluation ▶ Abstract from host-related delays

Need for Cross-Layer-Analysis of communication stacks

3 / 19

slide-8
SLIDE 8

Outline

Introduction X-Lap PRRT Evaluation Conclusion

4 / 19

slide-9
SLIDE 9

Outline

Introduction X-Lap PRRT Evaluation Conclusion

4 / 19

slide-10
SLIDE 10

X-Lap | Introduction

X-Lap Application Transport protocol Operating system Channel Packet creation Error correction ... Inter-process communication (IPC) Resource management ... Transmission delay Propagation delay ...

5 / 19

slide-11
SLIDE 11

X-Lap | Introduction

X-Lap Application Transport protocol Operating system Channel

▶ Packet creation ▶ Error correction ▶ ... ▶ Inter-process communication (IPC) ▶ Resource management ▶ ... ▶ Transmission delay ▶ Propagation delay ▶ ...

5 / 19

slide-12
SLIDE 12

X-Lap | Architecture jk Run-time evaluationjk

▶ Timestamping functions ▶ ⇒ Timestamps ▶ C codejk

Ofg-line analysisjk

▶ Data analysis ▶ ⇒ Latency and jitter ▶ Python code

*.csv Trace every packet Minimize run-time interference Embedded into protocol source code Collect traces Combine trace data Single-packet traces Jitter amongst packets Outlier analysis Correlation analysis

6 / 19

slide-13
SLIDE 13

X-Lap | Architecture jk Run-time evaluationjk

▶ Timestamping functions ▶ ⇒ Timestamps ▶ C codejk

Ofg-line analysisjk

▶ Data analysis ▶ ⇒ Latency and jitter ▶ Python code

*.csv

▶ Trace every packet ▶ Minimize run-time

interference

▶ Embedded into protocol

source code Collect traces Combine trace data Single-packet traces Jitter amongst packets Outlier analysis Correlation analysis

6 / 19

slide-14
SLIDE 14

X-Lap | Architecture jk Run-time evaluationjk

▶ Timestamping functions ▶ ⇒ Timestamps ▶ C codejk

Ofg-line analysisjk

▶ Data analysis ▶ ⇒ Latency and jitter ▶ Python code

*.csv Trace every packet Minimize run-time interference Embedded into protocol source code

▶ Collect traces ▶ Combine trace data

Single-packet traces Jitter amongst packets Outlier analysis Correlation analysis

6 / 19

slide-15
SLIDE 15

X-Lap | Architecture jk Run-time evaluationjk

▶ Timestamping functions ▶ ⇒ Timestamps ▶ C codejk

Ofg-line analysisjk

▶ Data analysis ▶ ⇒ Latency and jitter ▶ Python code

*.csv Trace every packet Minimize run-time interference Embedded into protocol source code Collect traces Combine trace data

▶ Single-packet traces ▶ Jitter amongst packets ▶ Outlier analysis ▶ Correlation analysis

6 / 19

slide-16
SLIDE 16

Outline

Introduction X-Lap PRRT Evaluation Conclusion

7 / 19

slide-17
SLIDE 17

Predictably Reliable Real-time Transport (PRRT) UDP

▶ Data integrity checks ▶ No timeliness guarantees

TCP

▶ Error control ▶ No timeliness guarantees

Not suitable for reliable real-time networks

PRRT

Error correction Latency-awareness

8 / 19

slide-18
SLIDE 18

Predictably Reliable Real-time Transport (PRRT) UDP

▶ Data integrity checks ▶ No timeliness guarantees

TCP

▶ Error control ▶ No timeliness guarantees

  • Not suitable for reliable

real-time networks

PRRT

Error correction Latency-awareness

8 / 19

slide-19
SLIDE 19

Predictably Reliable Real-time Transport (PRRT) UDP

▶ Data integrity checks ▶ No timeliness guarantees

TCP

▶ Error control ▶ No timeliness guarantees

  • Not suitable for reliable

real-time networks

PRRT

▶ Error correction ▶ Latency-awareness

8 / 19

slide-20
SLIDE 20

PRRT | Error Control and Timeliness

Automated Repeat reQuest (ARQ) Forward Error Correction (FEC) Hybrid Error Correction (HEC) Adaptive HEC (AHEC) + Application Constraints Channel State Information (CSI) Run-time CSI System Information Jitter

9 / 19

slide-21
SLIDE 21

PRRT | Error Control and Timeliness

Automated Repeat reQuest (ARQ) Forward Error Correction (FEC) Hybrid Error Correction (HEC) Adaptive HEC (AHEC) + Application Constraints Channel State Information (CSI) Run-time CSI System Information Jitter

9 / 19

slide-22
SLIDE 22

PRRT | Error Control and Timeliness

Automated Repeat reQuest (ARQ) Forward Error Correction (FEC) Hybrid Error Correction (HEC) Adaptive HEC (AHEC) + Application Constraints Channel State Information (CSI) Run-time CSI System Information Jitter

9 / 19

slide-23
SLIDE 23

PRRT | Error Control and Timeliness

Automated Repeat reQuest (ARQ) Forward Error Correction (FEC) Hybrid Error Correction (HEC) Adaptive HEC (AHEC) + Application Constraints Channel State Information (CSI) Run-time CSI System Information Jitter

9 / 19

slide-24
SLIDE 24

PRRT | Error Control and Timeliness

Automated Repeat reQuest (ARQ) Forward Error Correction (FEC) Hybrid Error Correction (HEC) Adaptive HEC (AHEC) + Application Constraints Channel State Information (CSI) Run-time CSI System Information Jitter

9 / 19

slide-25
SLIDE 25

PRRT | Error Control and Timeliness

Automated Repeat reQuest (ARQ) Forward Error Correction (FEC) Hybrid Error Correction (HEC) Adaptive HEC (AHEC) + Application Constraints Channel State Information (CSI) Run-time CSI System Information Jitter

9 / 19

slide-26
SLIDE 26

PRRT | Interaction with X-Lap Benefjts from X-Lap

▶ Obtain system information ▶ Analyse jitter

Goals: Latency and jitter ...

▶ ... avoidance

→ Eliminate causes of latency and jitter

▶ ... hiding

→ Preparatory/Clean-up tasks → Optimise resource management

▶ ... tolerance

→ Parameters for AHEC

10 / 19

slide-27
SLIDE 27

Outline

Introduction X-Lap PRRT Evaluation Conclusion

11 / 19

slide-28
SLIDE 28

X-Lap | Evaluation scope

X-Lap Application Transport protocol Operating system Channel

Evaluation focus

▶ PRRT ▶ Interaction with OS

Future work

▶ Application delays ▶ Network transmission time

12 / 19

slide-29
SLIDE 29

PRRT | Results: Packet Trace

20 40 60 80 Time [us] EndToEnd SenderTotal Send Submit SenderIPC Enqueue SenderEnqueued PrrtTransmit LinkTransmit ReceiverTotal HandlePacket ReceiverIPC Feedback

13 / 19

slide-30
SLIDE 30

PRRT | Results: Trace Jitter

20 40 60 80 100 Time [us] EndToEnd SenderTotal Send Submit SenderIPC Enqueue SenderEnqueued PrrtTransmit LinkTransmit ReceiverTotal HandlePacket ReceiverIPC Feedback

14 / 19

slide-31
SLIDE 31

PRRT | Results: Outliers

R e c e i v e r I P C H a n d l e P a c k e t S e n d e r E n q u e u e d P r r t T r a n s m i t S e n d e r I P C L i n k T r a n s m i t F e e d b a c k D e c

  • d

i n g E n q u e u e S e n d S u b m i t 10 20 30 40 Frequency

15 / 19

slide-32
SLIDE 32

PRRT | Results: Correlation SenderTotal

20 40 60 80 100 SenderTotal [us] 40 60 80 100 120 140 EndToEnd [us]

16 / 19

slide-33
SLIDE 33

PRRT | Results: Correlation ReceiverIPC

5 10 15 20 25 ReceiverIPC [us] 40 60 80 100 120 140 EndToEnd [us]

17 / 19

slide-34
SLIDE 34

Outline

Introduction X-Lap PRRT Evaluation Conclusion

18 / 19

slide-35
SLIDE 35

Conclusion X-Lap

▶ Cross-layer, inter-host timing analysis tool ▶ Evaluation of real-time network protocols

PRRT Analysis

Sender Receiver Network-related Latency PrrtTransmit SendFeedback LinkTransmit Jitter SenderEnqueue ReceiverIPC LinkTransmit Source Code available at: → http://xlap.larn.systems Thank you for your attention. Questions?

19 / 19

slide-36
SLIDE 36

Conclusion X-Lap

▶ Cross-layer, inter-host timing analysis tool ▶ Evaluation of real-time network protocols

PRRT Analysis

Sender Receiver Network-related Latency PrrtTransmit SendFeedback LinkTransmit Jitter SenderEnqueue ReceiverIPC LinkTransmit Source Code available at: → http://xlap.larn.systems Thank you for your attention. Questions?

19 / 19