Modelling avionics communicating systems: successes, failures, - - PowerPoint PPT Presentation

modelling avionics communicating systems successes
SMART_READER_LITE
LIVE PREVIEW

Modelling avionics communicating systems: successes, failures, - - PowerPoint PPT Presentation

Modelling avionics communicating systems: successes, failures, challenges Marc Boyer ONERA The French Aerospace Lab Dagstuhl Seminar on Network Calculus March 8-11, 2015 1/30 Marc Boyer Modelling avionics systems Disclaimer some


slide-1
SLIDE 1

Modelling avionics communicating systems: successes, failures, challenges Marc Boyer

ONERA – The French Aerospace Lab Dagstuhl Seminar on Network Calculus March 8-11, 2015

1/30 Marc Boyer Modelling avionics systems

slide-2
SLIDE 2

Disclaimer

“some perspectives on the application modelling side, what is required from NC, what is still missing, what are success and failure stories”

2/30 Marc Boyer Modelling avionics systems

slide-3
SLIDE 3

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

3/30 Marc Boyer Modelling avionics systems

slide-4
SLIDE 4

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

4/30 Marc Boyer Modelling avionics systems

slide-5
SLIDE 5

AFDX: Avionic Full DupleX

Standard ARINC 664 P7 Ethernet tailored for avionic needs

Flows: Virtual links

static routing static priority flow control: minimal inter-arrival distance (BAG ) , maximal packet size (Smax)

Network: Full duplex, SP/FIFO

Comp Comp Comp Comp Comp Comp Comp Comp Comp

time

≤ Smax ≤ Smax ≤ Smax ≥ BAG ≥ BAG 5/30 Marc Boyer Modelling avionics systems

slide-6
SLIDE 6

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

6/30 Marc Boyer Modelling avionics systems

slide-7
SLIDE 7

Modelling AFDX in network calculus

Modelling the arrival curves: fluid token bucket stair-case function Modelling server impact: Static Priority/FIFO: residual service Grouping/Shaping: maximal service / shaper Handling arrival curves/service curves: sum, minus, convolution, deconvolution.... Topology analyse: kind of mix between SFA/TFA handling maximal service

7/30 Marc Boyer Modelling avionics systems

slide-8
SLIDE 8

AFDX accuracy

Realistic configuration ≈ 6-8 switches ≈ 104 virtual links flows Impact of modelling:

1 start from token-buckets curves, local FIFO analyse 2 add maximal service/shaping

switch to concave/convex piecewise linear functions gain: ≈ 40%

3 switch to stair-case functions: gain of 6%

Performance (RTaW-PEGASE) computing time: ≈ 1 − 10s accuracy: ≈ 20%

8/30 Marc Boyer Modelling avionics systems

slide-9
SLIDE 9

Future of AFDX modelling

Exact FIFO delays: exact delay computation time implementation complexity

9/30 Marc Boyer Modelling avionics systems

slide-10
SLIDE 10

Future of AFDX modelling

Exact FIFO delays: exact delay computation time implementation complexity Modelling end-system behaviour: gain of ≈ 20% implementation complexity implementation dependant

9/30 Marc Boyer Modelling avionics systems

slide-11
SLIDE 11

Future of AFDX modelling

Exact FIFO delays: exact delay computation time implementation complexity Modelling end-system behaviour: gain of ≈ 20% implementation complexity implementation dependant No current industrial interest: implementation cost vs accuracy gain

9/30 Marc Boyer Modelling avionics systems

slide-12
SLIDE 12

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

10/30 Marc Boyer Modelling avionics systems

slide-13
SLIDE 13

Spacewire I

Spacewire: a spatial ESA standard (ECSS-E-ST-50-12C, 2003) Topology: switches, full duplex links Throughput: 2Mb/s - 200Mb/s Flow control: Wormhole

small buffer blocking/back-pressure

11/30 Marc Boyer Modelling avionics systems

slide-14
SLIDE 14

Spacewire II

  • Cross trafic

Back−pressure

12/30 Marc Boyer Modelling avionics systems

slide-15
SLIDE 15

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

13/30 Marc Boyer Modelling avionics systems

slide-16
SLIDE 16

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

14/30 Marc Boyer Modelling avionics systems

slide-17
SLIDE 17

Always more scheduling policies

Next embedded networks? GPS, Deficit Round Robin AVB, TSN (AVB 2.0) TTEthernet TDMA ... Hierarchical scheduling: (SP/DRR/FIFO, SP/AVB) generic β service residual service

15/30 Marc Boyer Modelling avionics systems

slide-18
SLIDE 18

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

16/30 Marc Boyer Modelling avionics systems

slide-19
SLIDE 19

Packet/Event model I

Industrial case study: gateway connecting two nets packet reception releases a forwarding task CPU shared between forwarding tasks and computing tasks task execution time may depend on packet size, or not Cumulative curves: amount of data/bits (network/real-time calculus), A number of packets/events (event stream) E packet curve: P(A) = E On going work: three bounding curves (A ≤ A ∗ α, E ≤ E ∗ η, P ≤ P ∗ π) a theory to bring them all and in the same model bind them

17/30 Marc Boyer Modelling avionics systems

slide-20
SLIDE 20

Packet/Event model II

Expected benefits: better links with scheduling analyses heterogeneous networks heterogeneous analyses (state-less and state-based) application to application delay

18/30 Marc Boyer Modelling avionics systems

slide-21
SLIDE 21

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

19/30 Marc Boyer Modelling avionics systems

slide-22
SLIDE 22

Network on chip

Hardware evolution From 1 to 4 to 64 cores From bus to network on chip (NoC) ⇒ can network calculus handle it?

20/30 Marc Boyer Modelling avionics systems

slide-23
SLIDE 23

Network on chip

Hardware evolution From 1 to 4 to 64 cores From bus to network on chip (NoC) ⇒ can network calculus handle it? Obstacles founds: get the NoC model back pressure behaviour (wormhole)

20/30 Marc Boyer Modelling avionics systems

slide-24
SLIDE 24

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

21/30 Marc Boyer Modelling avionics systems

slide-25
SLIDE 25

Probabilistic bounds for critical systems I

10 WCTT

−9

Observed delay

  • ver−provisionning

rare events Deterministic bound WCTT Probabilistic bound

?

  • bservable events

22/30 Marc Boyer Modelling avionics systems

slide-26
SLIDE 26

Probabilistic bounds for critical systems II

S, β A1, α1(t, p) A2, α2(t, p) A′

1

A′

2

Naive questions: how to get input probabilities? what if arrivals are not independent? are 10−9 stoch. bounds lesser than deterministic ones

23/30 Marc Boyer Modelling avionics systems

slide-27
SLIDE 27

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

24/30 Marc Boyer Modelling avionics systems

slide-28
SLIDE 28

New notion of delay: cumulative delay

critical network is often in a control/command loop performances of control/command law are based on delay upper bound a new contract ∆, “Delay density” can be defined 1, Let di be the delay of i-th message D(n) =

n

  • i=1

di ∀p, q ∈ N : D(p + q) − D(p) ≤ ∆(q) can network calculus compute such bound?

1A Delay Density Model for Networked Control Systems, Tobias Bund and

Frank Slomka, Proc. of the 21st Int. Conf. on Real-Time Networks and Systems (RTNS ’13),

25/30 Marc Boyer Modelling avionics systems

slide-29
SLIDE 29

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

26/30 Marc Boyer Modelling avionics systems

slide-30
SLIDE 30

Design help

network calculus computes bounds from configuration can we compute configuration from bounds?

routing priority allocation minimal topology task/CPU allocation

27/30 Marc Boyer Modelling avionics systems

slide-31
SLIDE 31

Outline

The core technology: AFDX Success: modelling AFDX in network calculus Failure: modelling spacewire/whormhole Challenges Always more scheduling policies Packet/Event model Network on chip Probabilistic bounds for critical systems New notion of delay Design help Formal correctness proofs

28/30 Marc Boyer Modelling avionics systems

slide-32
SLIDE 32

Formal correctness proofs

Can you trust the results? is the theory correct? is the implementation bug-free? Approach model NC in formal proof assistant (Isabelle/HOL, Coq) generate a proof at each computation

29/30 Marc Boyer Modelling avionics systems

slide-33
SLIDE 33

Conclusion Successes 1 Failures 1 Challenges 7 Questions ?

30/30 Marc Boyer Modelling avionics systems