Switched Ethernet solutions for embedded real time...

47
Switched Ethernet solutions for embedded real time networks Jean-Luc Scharbarg Universit´ e de Toulouse - IRIT - ENSEEIHT/INPT August 2015 ETR’2015 Jean-Luc ScharbargUniversit´ e de Toulouse - IRIT - ENSEEIHT/INPT Switched Ethernet solutions for embedded real time networks August 2015 1 / 47

Transcript of Switched Ethernet solutions for embedded real time...

Page 1: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Switched Ethernet solutions for embedded real timenetworks

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPT

August 2015

ETR’2015

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 1 / 47

Page 2: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 2 / 47

Page 3: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 3 / 47

Page 4: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Historical evolution of embedded networks

Early days: one single computer for all embedded functions

Then distribution of the functions on computing nodesI Transmission of data between these functionsI Dedicated point-to-point links for deterministic transmissions

Two many links ⇒ shared communication mediumI Timing constraints have to be insuredI Specific technologies have been defined, e.g. CANI Timing analysis have been developed

More and more functions ⇒ huge increase of communication needsI Specific technologies are no more sufficientI Ethernet technologies are candidate

F Pros: large bandwidth, mature technologyF Cons: Ethernet is not deterministic

Real-time Ethernet widely used for industrial communications, e.g.Profinet

Candidates for embeded communications: AFDX, Ethernet-AVB,TTEthernet, . . .

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 4 / 47

Page 5: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 5 / 47

Page 6: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Civilian aircraft communications

Ground Information System (Airlines, Airbus,…)

Con

nect

ivity

Pla

tform

(s)

Con

nect

ivity

Pla

tform

(s)

A I R L I N E

………

Avionics ARINC 429 - 664

IFE

HF/VHF/SATCOM

A/C Ops & CABIN ARINC 429- Ethernet

A340

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 6 / 47

Page 7: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Avionics systems characteristicsAvionics: electronic systems installed in an aircraft

I Calculators and their software, sensors and actuatorsI Communication links between these elements

Example of avionic systems: autopilot, navigation, flight control, . . .Constraints on the avionics systems

I Volume and weight limitationsI Correct behavior in severe conditions: heat, vibrations, electromagnetic

interferences, . . .I Safety level required, depending on the system (ARP 4754):

catastrophic (failure = loss of the aircraft), hazardous, major, minor,no effect

I Segregation between critical functions

Aeronautical Radio INCorporated (ARINC): leadership in thedevelopment of specifications and standards for avionics equipment

Airlines Electronic Engineering Committee (AEEC): development andmaintenance of specifications and standards (airlines, governments,ARINC)

ADN: Aircraft Data NetworkJean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 7 / 47

Page 8: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Avionics systems evolutionIn the 1950’s

I Very simple standalone systemsI One single calculator for the execution of all the functions

In the 1960’sI The beginning of modern avionicsI Replacement of analog devices by their digital equivalent

Since thenI Huge increase in the complexity of avionicsI More and more digital equipments for existing or new functionsI New needs inherent to the evolution of civil aviation or better answers

to existing problems (e.g. fly-by-wire command system)

Increase in the number of embedded systems and functions ⇒increase in communication needsIntegrated Modular Avionics (IMA) in the 1990’s: better sharing ofexecution and communication resources

I First implementation of IMA for the Boeing 777, based on the ARINC629 multiplexed data bus

I IMA in the Airbus A380, based on the ARINC 664 (switched Ethernet)

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 8 / 47

Page 9: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Classical avionics architecture (up to A340)Each equipment (LRU) dedicated to a system function (braking,flight computers, . . .): sensors, actuators, calculators . . .natural segregation between the equipments

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 9 / 47

Page 10: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Data transmission in classical avionics

A network of equipments

G1 G2

F1

F2

F3

Each data is transmitted from its source to every equipment thatneeds the data

One dedicated line for each data

Repetitive transmission of the data on each line

Each line: a mono-emitter ARINC 429 data bus

Each data individually identified by a label

Low bit rate: 12 Kbits/s to 100 Kbits/s

At most 20 receivers per line

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 10 / 47

Page 11: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

90% of the avionic

  A310 (1983) A320 (1988) A340 (1993)

Avionic Volume 745 litres 760 litres 830 litres

Number of equipment 77 102 115

Embedding Software 4 Mo 10 Mo 20 Mo

Number of ARINC 429 136 253 368

Computing Power 60 Mips 160 Mips 250 Mips

Avionic repartition

A380 (2005)

147

100 Mo

1000 (AFDX)

Classic avionics evolution

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 11 / 47

Page 12: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

IMA characteristicsHardware components

I LRM (Line Replaceable modules): resources in common cabinetsF Core modules for the execution of the applicationsF Input/output modules for communications with non-IMA equipmentsF Gateway modules for communications between cabinets

I LRU (Line Replaceable Unit): existing non-IMA equipmentsI Backplane databus: ARINC 659

Sharing of execution resourcesI An avionics subsystem: a partition with an assigned time window to

execute its application on a shared moduleI Guarantee isolation between subsystems ⇒ robust partitioning concept

F Spatial isolation: limitation and protection of the address space of eachpartition, e.g. by a MMU

F Temporal isolation: static allocation of a time slice for the execution ofeach partition, based on WCET

I Communications between partitions via ports (APEX: APplicationEXecutive)

F Sampling ports: only the last value of data is storedF Queueing ports: all the values of data are stored

I Logical channel: multicast link between ports, independent of thecommunication technology

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 12 / 47

Page 13: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

The reasons for Ethernet in avionics

ARINC 429 is no more sufficient: too many buses are needed

ARINC 629 is too expensive

Why Ethernet technology ?I High throughput offered to the connected units (100 Mbits/s)I High connectivity offered by the network structureI A mature industrial standardI Low connection cost

But Ethernet CSMA/CD is not deterministicI Potential collision on the physical mediumI Binary Exponential Back off retransmission algorithm

The solution adopted for ARINC 664I switched Ethernet technology: units directly connected by

point-to-point links to Ethernet switches ⇒ possible collision domain =single link between two elements

I Full duplex links ⇒ no more collisions

The problem is shifted to the switch level

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 13 / 47

Page 14: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 14 / 47

Page 15: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

From point-to-point to multiplexed communicationsBefore 1970, mechanical and hydraulic systems for engine control,brake system, gear system, . . .After 1970, huge increase in the number of electronic systemsPerformance and reliability of hardware components + softwaretechnologies ⇒ implementation of complex functions that improvethe comfort and safety (Antilock Braking System, Electronic StabilityProgram, active suspension, GPS, doors, entertainment, . . .)Early days of automotive electronics: 1 function = 1 ElectronicControl Unit (ECU: a microcontroller and sensors and actuators)Exchanges of data between functions via dedicated links (e.g. speedestimated by the engine control and used by the suspension control)

Central control

Suspension

ABS

Engine

control

Gearbox

Dash

bord

conditioning

Seats

Air

Interiorlight

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 15 / 47

Page 16: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

From point-to-point to multiplexed communications

A function is either too complex or too small for a single ECU ⇒functions distributed over several ECUs or several functions on thesame ECU

Too many information exchanges ⇒ need for a shared communicationmedium.

I Reduces the weight of the electronic systems: reduction of 15 Kg withthe replacement of the dedicated links by a shared bus for the controlof the doors of a BMW

I Necessary to guarantee that the communication delays can be bounded

First automotive bus: Controller Area Network (Bosch, 1980s)

First embedded CAN bus: Mercedes class S (1991)

Today: a complex architecture with several communicationtechnologies

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 16 / 47

Page 17: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Automotive functional domains

Different applications with different domains

PowertrainI Control of engine and transmissionI Complex control laws implemented in microcontrollers with high

computing powerI Stringent time constraintsI Frequent data exchanges with other car domainsI Closed-loop control systems ⇒ implentation is moving toward a

time-triggered approach

ChassisI Control of the vehicle’s according to steering, braking and driving

conditionsI Part of the vehicle active safety systems (Antilock Braking System,

Adaptive Cruise Control, . . .)I Communication requirements similar to those for the powertrain, more

emphasis on safety

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 17 / 47

Page 18: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Automotive functional domains

Body and comfortI Software-based systems that control dashboard, wipers, lights, doors,

windows, seats, mirrors, air conditioningI Many exchanges of small pieces of informationI Activation of body functions triggered by occupants’ solicitations ⇒

event-triggered communication

Multimedia/infotainmentI Audio CD, DVD players, rear seat entertainmentI Hand-free phones, in-car navigation systems, traffic information

systems, remote vehicle diagnostic, vehicle tracking, fleet management,. . .

I Large amounts of data to be exchanged within the vehicle and with theexternal world

I QoS of multimedia data stream, bandwidth, security

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 18 / 47

Page 19: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Automotive network architecture in 2006

ECU

ECU

ECU

ECU

ECU

ECU

Gateway

ECU

ECU ECU

ECU

ECULIN

ECULIN

(MOST) (Flexray)

CAN low

CAN

CAN highGateway

Gateway

Habitacle et confort Habitacle et confort Chassis

Fonctions pour

la surete

Diagnostic

ECU

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 19 / 47

Page 20: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Vision for future in-car networks

à l’arriere

Audio TV

Amplificateur

DVDEcran Ecran

Radar Cameras

Aide au

conducteur

Cam 3

Cam 1

Vision

panoramique

Cam 2

Cam 4

Controle moteur

et chassis

Multimedia

Information et divertissement

HabitacleDiagnostic

CAN 1CAN 2

Ethernet

Flexray

...

Divertissement

LIN

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 20 / 47

Page 21: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 21 / 47

Page 22: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 22 / 47

Page 23: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Shared Ethernet

A set of stations share a single communication channel

A frame from a station is received by all the other stations (eventuallythrough hubs)

Collisions may occur ⇒ CSMA/CDI CSMA (Carrier Sense Multiple Access): listen to the medium, send

only when medium is detected idleI CD (Collision Detection): if a collision is detected during transmission

F Transmission is stoppedF Station waits a random delay (exponential backoff)F Station tries to transmit again

At least 64 bytes in order to detect a collision

Number of collisions: major impact on Ethernet performanceI Performance decreases very quickly when number of collisions increasesI Collision domain: the whole network

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 23 / 47

Page 24: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Switched Ethernet

Division of the network with separate collision domains ⇒ more thanone frame being transmitted at a given time without collision

A switch:I A set of input and output ports with buffers for pending framesI A switch fabric which “moves” each frame from its input port to its

destination output portsI A service discipline for the scheduling of frames in output ports

Two modes for a switchI Store and forward: reception and verification of the whole frame before

it is forwarded to its output port(s)I Cut through: frame is transfered as soon as destination is decoded

F Smaller latencyF Invalid frame might be transferred

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 24 / 47

Page 25: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Shared Ethernet Vs switched Ethernet

Switched EthernetShared Ethernet

Collision domain

Full duplex links ⇒ no more collisions

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 25 / 47

Page 26: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Full duplex switched Ethernet is not deterministicTemporary congestion on an output port

I Increase of the waiting delay of frames in the Tx bufferI Frame loss by overflow of the Tx buffer

An illustrative examplef1

f2

f3

f4

f5

f6

f7

f8

f9

f10

Switch

f1,f2,f3,f4,f5,f6,f7,f8,f9,f10

I Five frames at the same time ⇒ one frame waits until the transmissionof the four other ones

I More than five frames at the same time ⇒ at least one frame is lost

Addition of dedicated mechanisms to classical full duplex switchedEthernet in order to guarantee the determinism of transmissions

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 26 / 47

Page 27: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 27 / 47

Page 28: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

The AFDX key characteristicsStatic full duplex Switched Ethernet: no CSMA/CD, no spanningtree, static 802.1D tablesTwo FIFO buffers per output port (high and low priorities)Traffic characterization based on the Virtual Link (VL) concept

I Static definition of the flows which enter the networkI Multicast path with deterministic routingI Mono transmitter assumptionI Sporadic flows (BAG : Bandwidth Allocation Gap)

F Discrete values: 1, 2, 4, 8, 16, 32, 64, 128 msF Traffic shaping on each emitting end system

I Minimum (Smin) and maximum (Smax) frame lengths for each VLI BAG and Smax define the maximum bandwidth allocated to a VL

F Example: BAG = 16 ms and Smax = 128 bytes ⇒ 64000 bits/sI Scheduling of VLs on end systems ⇒ (bounded) jitter

S1

S4e3

e4

vx,v1

v2,v3

S3

e1v6,v8

e2v7,v9

S2

vx,v2

v5

v6,v7

S5

e5

vx,v6,v7

e7

e8

e9v2,v5

v1,v3

e6v4

v1,v3,v4e10

v6,v8,v9v6,v8,v9

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 28 / 47

Page 29: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Worst-case end-to-end delay on an AFDX network

Three parts in the delayI Transmission times on links (known): link bandwidth, frame sizeI Switching latency (known)I Waiting time in FIFO queues (unknown)

mi3

mi4

v3

v4

mi1

mi2v2

v3,v4

mi5v5

v2

mi6

mi7

v1v1 v1,v2 ,v3,v4,v5

Upper bound on the waiting time in FIFO queuesI Network calculus

F based on modelling with arrival curves and service curvesF Certification of AFDX on board A380 and A350

I Trajectory approachF Maximum workload of interfering frames on the considered path

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 29 / 47

Page 30: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

An industrial AFDX configuration

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 30 / 47

Page 31: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

An industrial AFDX configuration

2 redundant networks, 9 switches per network, 24 ports per switch,123 end systems

984 VLs, 6412 paths

100 Mbits data rate

BAG and maximum frame length

Bag Number Smax Number(ms) of VL (bytes) of VL

2 20 0-150 5614 40 151-300 2028 78 301-600 114

16 142 601-900 5732 229 901-1200 1264 220 1201-1500 35

128 255 > 1500 3

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 31 / 47

Page 32: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

An industrial AFDX configuration

Length of VL paths

Number of crossed switches Number of paths

1 17972 27873 15374 291

Load of the links

0

10

20

30

40

50

60

70

0 0.05 0.1 0.15 0.2 0.25 0.3

nu

mb

er o

f li

nk

output link load

Number of links

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 32 / 47

Page 33: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Need for QoS support in embedded networks

in the context of avionicsI AFDX is purely event-triggered with no global synchronizationI AFDX only support two priority levels which are not significantly usedI AFDX is lightly loaded ⇒ share the network with non avionic flows ⇒

non avionic flows should not disturb avionic ones

In the context of automotiveI Hetergeneous flows with heterogeneous constraints ⇒ needs for

differentiated service disciplines

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 33 / 47

Page 34: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 34 / 47

Page 35: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Ethernet AVB (IEEE Audio Video Bridging)

Set of standards that provide the specification for time-synchronizedlow latency streaming services through IEEE 802.1 networks

I IEEE 802.1AS: timing and synchronization for time-sensitiveapplications

F Variation of IEEE 1588F Precise time synchronization with an accuracy better than 1 µs

I IEEE 802.1Qat: stream Reservation protocolF Resevation of resources along the path between the talker and the

listener

I IEEE 802.1Qav: forwarding and queueing enhancements fortime-sensitive streams

F Different classes for time-critical and non-time-critical trafficF Two Stream Reservation classes for time-critical traffic: SR-A and SR-BF Credit-Based Shaper (CBS) to prevent traffic burstsF SR-A and SR-B can start transmission only if their credit is not negative

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 35 / 47

Page 36: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Ethernet-AVB Credit-Based ShaperCredit decreases at sendslope rate during the transmission of framesof the associated classCredit increases at idleslope rate when frames of the associated classare waiting or no frame of the associated class is waiting, but credit isnegativeCredit reset to 0 when credit greater than 0 and no frame of theassociated class is waiting

SR−ACredit

BE 1

SR−A 3SR−A 1

SR−A 2

BE 1 SR−A 1 SR−A 2 SR−B 1 SR−A 3

SR−B 1

0

Ent1

Ent2

Ent3

Sortie

Ent1

Ent2

Ent3

Sortie

idleslopesendslope

t0 t1 t3t2 t4 t5 t6 t7

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 36 / 47

Page 37: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Scheduled traffic over AVB

Ongoing project within the Time Sensitive Networking Task GroupI Procedures to suspend the transmission of a non-time critical frame

and allows for one or multiple critical frames to be transmittedI Policies to support scheduled traffic

Scheduled traffic is a traffic class thatI Requires to schedule frame transmission based on timeI Is time-sensitive and requires a bounded latency

F Ex: delay-sensitive command and control traffic which requiresdeterministic and very small delays

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 37 / 47

Page 38: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Latency assessments for time-sensitive trafficWithout interfering traffic

I Maximum latency of a time-sensitive frame mainly depends onF Transmission time of the time-sensitive frame on links (computed from

the frame size)

TS latency

TS

TS

TS

ES1−>S1

S1−>S2

S2−>ES2

TS

S1ES1 S2 ES2TS TS TS

Good news since time-sensitive flows typically feature small frames

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 38 / 47

Page 39: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Latency assessments for time-sensitive trafficWith interfering traffic

I Maximum latency of a time-sensitive frame also depends onF Maximum size of the interfering frames, due to non-preemptive

scheduling at the egress port of each network device

TS latency

F1 TS

F2 TS

S1ES1 S2 ES2TS, F1 TS, F2 TS, F3

F2 F1 F3 F2

F3 TS

ES1−>S1

S1−>S2

S2−>ES2

TS

Bad news since non time-sensitive frames might be large

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 39 / 47

Page 40: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Time-Aware Shapers (TAS)Time-Aware Shapers have been defined to deal with interfering framesBased on the knowledge of the next arrival time for scheduledtime-sensitive frames

I Synchronization is provided by IEEE 802.1ASI Time-sensitive traffic typically follows a regular pattern

TAS blocks any lower priority frame that would interfere with anupcoming time-sensitive frame

I Time-sensitive traffic mapped onto SR Class A

TS latency

S1ES1 S2 ES2TS, F1 TS, F2 TS, F3

F2 F1 F3 F2

TS F1

TS F2

TS F3

ES1−>S1

S1−>S2

S2−>ES2

F1 TS

F2

F3

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 40 / 47

Page 41: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

An alternative solution to support scheduled traffic

TAS alone are not enough to support scheduled trafficI Only two real-time traffic classes (A and B) ⇒ time-sensitive control

traffic often has to share Class A with other real-time trafficI It might interfere significantly with time-sensitive framesI Increased effect due to credit-based shaping

AVB ST (Scheduled Traffic) approachI A new ST on top of AVB SR class A and BI ST traffic is handled in a separate queueI ST traffic does not undergo credit-based shapingI Offline scheduling of ST frames (a priori known periods and frame

sizes)

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 41 / 47

Page 42: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

AVB ST

TAS

CB

SC

BS

ST queue

SR Class A queue

SR Class B queue

BE queue

...

Sta

tic

pri

ori

tyJean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 42 / 47

Page 43: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 43 / 47

Page 44: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

TTEthernet very short summary

Time is shared between time-triggered and event-triggered traffic

Three types of trafficI TT flows: scheduled flows, possible thanks to the clock synchronizationI Rate Constrained flows (RC): very similar to AFDX VLsI Best Effort flows (BE)

Priority order: TT, then RC, then BE

RC and BE frames might interfere with TT frames

Three solutions when a RC or BE frame is ready before a TT slotI RC or BE frame starts transmission and might delay TT frameI RC or BE frame starts transmission and is preempted if TT frame is

readyI RC or BE frame starts transmission only if there is enough time before

TT slot

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 44 / 47

Page 45: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Agenda

1 ContextAvionics network architectureAutomotive network architecture

2 EthernetEthernet EvolutionAFDXEthernet-AVBTTEthernet

3 Some open issues

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 45 / 47

Page 46: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Some open issues

Comparative analysis of candidate switched Ethernet solutions

Design and analysis of heterogeneous network architecturesI Interconnection of fieldbuses through an Ethernet backbone

Probabilistic analysisI Up to now, certification process based on guaranteed delay upper

boundI Worst-case delay scenario: very rare eventI Leads to over-dimensionning of the networkI Do we really need a guaranteed upper bound?I Is it ok if the probability to exceed the deadline is 1012?I Avionics functions designed to behave correctly even if some (rare)

frames are lost ⇒ computing a probabilistic upper bound makes sense

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 46 / 47

Page 47: Switched Ethernet solutions for embedded real time networksetr2015.irisa.fr/images/presentations/Jean-Luc_Scharbarg_ETR2015.pdfReal-time Ethernet widely used for industrial communications,

Thank you for your attention

Jean-Luc ScharbargUniversite de Toulouse - IRIT - ENSEEIHT/INPTSwitched Ethernet solutions for embedded real time networks August 2015 47 / 47