SlideShare a Scribd company logo
1 of 30
Download to read offline
1
TIMING ANALYSIS OF THE FLEXRAY
COMMUNICATION PROTOCOL
presented by:
CHENG SUN // YINGLAI YANG // YUNNING LI
TRAIAN POP, PAUL
POP, PETRU ELES, ZEBO
PENG, ALEXANDRU
ANDREI
2
Developments in automotive
 Comfort:
β€’ x-by-wire (drive-by-wire, brake-by-wire, …)
β€’ Lane control
 Safety:
β€’ Automatic emergency brake
β€’ Pedestrian recognition
 Future:
β€’ Self-driving cars
CHENG SUN // YINGLAI YANG // YUNNING LI
3
Realized by distributed systems
CHENG SUN // YINGLAI YANG // YUNNING LI
4
New solution: FlexRay
 We need fast, deterministic (safe) communication
protocol: Development started at BMW and continued by
a consortium resulted in FlexRay protocol.
 CAN, LIN vs. FlexRay
Bus LIN CAN FlexRay
Speed 40 kbit/s 1 Mbit/s 10 Mbit/s
Cost $ $$ $$$
Wires 1 2 2 or 4
Typical
Applications
Body
Electronics
Powertrain Safety-critical
apps
CHENG SUN // YINGLAI YANG // YUNNING LI
5
The FlexRay Protocol
 The overview of the system
CHENG SUN // YINGLAI YANG // YUNNING LI
6
The FlexRay Protocol
 Detailed information of cycles
CHENG SUN // YINGLAI YANG // YUNNING LI
7
Internal architecture of a node
 CPU: writes
messages into...
 CHI: reserves a
buffer...
 Controller:
reads messages
from...
 Black Chunk:
~Static
 Grey Chunk:
~Dynamic
CHENG SUN // YINGLAI YANG // YUNNING LI
8
Internal architecture of a node
The number
of slots in
ST is fixed,…
The size of
each slot is
fixed,…
CHENG SUN // YINGLAI YANG // YUNNING LI
9
Delays in dynamic segment
 (1) Delays by higher priority messages.
Here mg and mf
share the same
Frame ID,
but ...
CHENG SUN // YINGLAI YANG // YUNNING LI
10
(1)Delays by higher priority messages
 Here mg is delayed by mf .
CHENG SUN // YINGLAI YANG // YUNNING LI
11
Delays in the dynamic segment
 (2)Delays by earlier (lower frame) messages and without
enough slots left.
Such as mh,
static segment;
Frame ID=5;
Assuming that the
length of mh takes
2 slots
CHENG SUN // YINGLAI YANG // YUNNING LI
12
(2)Delays by earlier (lower FrameID) messages
and without enough slots left.
 We can not
be too
stingy to
mh !
CHENG SUN // YINGLAI YANG // YUNNING LI
13
(2)Delays by earlier (lower FrameID) messages
and without enough slots left.
 Finally, mh
finds an
available
position.
 Although…
 What if mg …
CHENG SUN // YINGLAI YANG // YUNNING LI
14
Timing analysis
Question for safety issue:
How long can it take until a message reaches its recipient?
β€œThe driver turns the steering wheel to the left. How long does it maximally
take until the car follows that movement?”
Value of interest:
Worst Response Time – Longest possible time from
creation of message to complete arrival.
CHENG SUN // YINGLAI YANG // YUNNING LI
15
Quantization of delay-causes
Note:
Assume regular, periodic messages with period T (dynamic
messages)
Such a message will occur
𝑑+𝐽
𝑇
times in the time frame 𝑑.
E.g. β„Žπ‘ 𝑑 =
𝑑+π½β„Žπ‘
π‘‡β„Žπ‘
for higher priority messages
J is the jitter of the message β†’ difference between best response time to worst response
time
CHENG SUN // YINGLAI YANG // YUNNING LI
16
Definition of response time
Important for us:
Those are the only things that can change.
CHENG SUN // YINGLAI YANG // YUNNING LI
17
Mathematical formulation for 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š
Make it an ILP problem:
Furthermore constraints are added to the ILP formulation
to satisfy the FlexRay protocol …
frame overfilled: 𝑦𝑖 = 1
frame can take message: 𝑦𝑖 = 0
CHENG SUN // YINGLAI YANG // YUNNING LI
18
Messages are not sent multiple times per cycle
CHENG SUN // YINGLAI YANG // YUNNING LI
19
FrameIDs are unique
Or: β€žYou shall not use the same π‘“π‘Ÿπ‘Žπ‘šπ‘’πΌπ· multiple times in
one cycleβ€œ
CHENG SUN // YINGLAI YANG // YUNNING LI
20
Fixed assignment of frameID
Or: β€žA message can only be transmitted with the π‘“π‘Ÿπ‘Žπ‘šπ‘’πΌπ·
that was assigned to itβ€œ
CHENG SUN // YINGLAI YANG // YUNNING LI
21
Messages need to fit completely
Or: β€žAny message can only be sent if it fits in the remaining
space.β€œ
CHENG SUN // YINGLAI YANG // YUNNING LI
22
Optimal solution for 𝑀 π‘š
β€²
After 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š is known, we maximize the delay in the
cycle where the message π‘š is being sent (inserted in the
dynamic frame).
ILP is used again and the max. 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š is being
enforced. The optimization goal is now to find the largest
possible 𝑀 π‘š
β€²
.
Same constraints as before (FlexRay compliance)
CHENG SUN // YINGLAI YANG // YUNNING LI
23
Summary of optimal calculation
 ILP used
 β€žOptimizationβ€œ goal: Maximize 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š and 𝑀 π‘š
β€²
 Constraints used to model FlexRay rules
However:
 ILP is very computationally complex. Takes extremely
long and can exceed available computational power
easily!
CHENG SUN // YINGLAI YANG // YUNNING LI
24
Heuristic Solution for 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š & 𝑀 π‘š
β€²
Simplification of calculation of 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š:
Straightforward computation of 𝑀 π‘š
β€²
:
CHENG SUN // YINGLAI YANG // YUNNING LI
by adding pessimistic π‘šπ‘ -count to communication time:
25
Experimental Setup
CHENG SUN // YINGLAI YANG // YUNNING LI
OO- is not used in production since it is optimistic about
WRT. It is only used to be able to calculate a common
reference value for OH and HH.
26
Experimental Results
Where A presents OO, OH or HH, and n is the number of
messages in the analyzed application.
CHENG SUN // YINGLAI YANG // YUNNING LI
27
Experimental Results
CHENG SUN // YINGLAI YANG // YUNNING LI
Fewer frameIDs/processor β†’ constraints more important β†’
heuristics worse
28
Conclusions
 The paper showed a way to analyze the worst response
time.
 It was shown how heuristics can be used to radically
reduce the calculation time of the WRT with a trade off
in additional pessimism of the result.
 Allows timing assertions for safety analysis.
 First paper to analyze dynamic FlexRay timing without
simplifying constraints.
 Good heuristics with very low calculation time.
CHENG SUN // YINGLAI YANG // YUNNING LI
29 CHENG SUN // YINGLAI YANG // YUNNING LI
Thank you for your attention!
30
Q&A
CHENG SUN // YINGLAI YANG // YUNNING LI

More Related Content

Similar to Flexray

Topic2-Network_FlexRayCommBus_20111013.ppt
Topic2-Network_FlexRayCommBus_20111013.pptTopic2-Network_FlexRayCommBus_20111013.ppt
Topic2-Network_FlexRayCommBus_20111013.pptjacu123
Β 
Vol 14 No 2 - September 2014
Vol 14 No 2 - September 2014Vol 14 No 2 - September 2014
Vol 14 No 2 - September 2014ijcsbi
Β 
Improvement of Congestion window and Link utilization of High Speed Protocols...
Improvement of Congestion window and Link utilization of High Speed Protocols...Improvement of Congestion window and Link utilization of High Speed Protocols...
Improvement of Congestion window and Link utilization of High Speed Protocols...IOSR Journals
Β 
PAISS (PRAIRIE AI Summer School) Digest July 2018
PAISS (PRAIRIE AI Summer School) Digest July 2018 PAISS (PRAIRIE AI Summer School) Digest July 2018
PAISS (PRAIRIE AI Summer School) Digest July 2018 Natalia DΓ­az RodrΓ­guez
Β 
Fire and Rescue system in Railways using LABview
Fire and Rescue system in Railways using LABviewFire and Rescue system in Railways using LABview
Fire and Rescue system in Railways using LABviewRincy Ben
Β 
Learning Intrusion Prevention Policies Through Optimal Stopping
Learning Intrusion Prevention Policies Through Optimal StoppingLearning Intrusion Prevention Policies Through Optimal Stopping
Learning Intrusion Prevention Policies Through Optimal StoppingKim Hammar
Β 
Cost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resourcesCost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resourcesVincenzo De Florio
Β 
IRJET- R-Lorgnon to Locate Humans Got in Fire Accident
IRJET-  	  R-Lorgnon to Locate Humans Got in Fire Accident IRJET-  	  R-Lorgnon to Locate Humans Got in Fire Accident
IRJET- R-Lorgnon to Locate Humans Got in Fire Accident IRJET Journal
Β 
Reactive by example - at Reversim Summit 2015
Reactive by example - at Reversim Summit 2015Reactive by example - at Reversim Summit 2015
Reactive by example - at Reversim Summit 2015Eran Harel
Β 
EGRE 310 RAMEYJM Final Project Writeup
EGRE 310 RAMEYJM Final Project WriteupEGRE 310 RAMEYJM Final Project Writeup
EGRE 310 RAMEYJM Final Project WriteupJacob Ramey
Β 
Network Planning and Optimization
Network Planning and OptimizationNetwork Planning and Optimization
Network Planning and OptimizationEM Legacy
Β 
Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2
Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2
Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2Mohammed Ghaleb
Β 
Guideline for lte_backhaul_traffic_estimation
Guideline for lte_backhaul_traffic_estimationGuideline for lte_backhaul_traffic_estimation
Guideline for lte_backhaul_traffic_estimationRoel Gabon
Β 
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...ijcseit
Β 
A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...ijcseit
Β 

Similar to Flexray (20)

Topic2-Network_FlexRayCommBus_20111013.ppt
Topic2-Network_FlexRayCommBus_20111013.pptTopic2-Network_FlexRayCommBus_20111013.ppt
Topic2-Network_FlexRayCommBus_20111013.ppt
Β 
Vol 14 No 2 - September 2014
Vol 14 No 2 - September 2014Vol 14 No 2 - September 2014
Vol 14 No 2 - September 2014
Β 
Improvement of Congestion window and Link utilization of High Speed Protocols...
Improvement of Congestion window and Link utilization of High Speed Protocols...Improvement of Congestion window and Link utilization of High Speed Protocols...
Improvement of Congestion window and Link utilization of High Speed Protocols...
Β 
PAISS (PRAIRIE AI Summer School) Digest July 2018
PAISS (PRAIRIE AI Summer School) Digest July 2018 PAISS (PRAIRIE AI Summer School) Digest July 2018
PAISS (PRAIRIE AI Summer School) Digest July 2018
Β 
ECE 467 Mini project 2
ECE 467 Mini project 2ECE 467 Mini project 2
ECE 467 Mini project 2
Β 
Fire and Rescue system in Railways using LABview
Fire and Rescue system in Railways using LABviewFire and Rescue system in Railways using LABview
Fire and Rescue system in Railways using LABview
Β 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
Β 
ECI Risk Free Transition to Packet-UTC LATAM-April 2016
ECI Risk Free Transition to Packet-UTC LATAM-April 2016ECI Risk Free Transition to Packet-UTC LATAM-April 2016
ECI Risk Free Transition to Packet-UTC LATAM-April 2016
Β 
Learning Intrusion Prevention Policies Through Optimal Stopping
Learning Intrusion Prevention Policies Through Optimal StoppingLearning Intrusion Prevention Policies Through Optimal Stopping
Learning Intrusion Prevention Policies Through Optimal Stopping
Β 
Cost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resourcesCost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resources
Β 
IRJET- R-Lorgnon to Locate Humans Got in Fire Accident
IRJET-  	  R-Lorgnon to Locate Humans Got in Fire Accident IRJET-  	  R-Lorgnon to Locate Humans Got in Fire Accident
IRJET- R-Lorgnon to Locate Humans Got in Fire Accident
Β 
Clockless chips
Clockless chipsClockless chips
Clockless chips
Β 
Reactive by example - at Reversim Summit 2015
Reactive by example - at Reversim Summit 2015Reactive by example - at Reversim Summit 2015
Reactive by example - at Reversim Summit 2015
Β 
EGRE 310 RAMEYJM Final Project Writeup
EGRE 310 RAMEYJM Final Project WriteupEGRE 310 RAMEYJM Final Project Writeup
EGRE 310 RAMEYJM Final Project Writeup
Β 
Network Planning and Optimization
Network Planning and OptimizationNetwork Planning and Optimization
Network Planning and Optimization
Β 
Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2
Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2
Ngmn whitepaper guideline_for_lte_backhaul_traffic_estimation_2
Β 
Guideline for lte_backhaul_traffic_estimation
Guideline for lte_backhaul_traffic_estimationGuideline for lte_backhaul_traffic_estimation
Guideline for lte_backhaul_traffic_estimation
Β 
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
Β 
A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...
Β 
H1803064257
H1803064257H1803064257
H1803064257
Β 

Recently uploaded

(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...
(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...
(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...Hot Call Girls In Sector 58 (Noida)
Β 
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxUNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxDineshKumar4165
Β 
Delhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 personDelhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 personshivangimorya083
Β 
call girls in G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in  G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in  G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...D&V Business Consulting
Β 
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 HybridHyundai Motor Group
Β 
Digamma / CertiCon Company Presentation
Digamma / CertiCon Company  PresentationDigamma / CertiCon Company  Presentation
Digamma / CertiCon Company PresentationMihajloManjak
Β 
Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsFifth Gear Automotive
Β 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubaikojalkojal131
Β 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...Hot Call Girls In Sector 58 (Noida)
Β 
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /WhatsappsBeautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsappssapnasaifi408
Β 
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGERUNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGERDineshKumar4165
Β 
εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€
εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€
εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€mkfnjj
Β 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERunosafeads
Β 
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...Garima Khatri
Β 
BLUE VEHICLES the kids picture show 2024
BLUE VEHICLES the kids picture show 2024BLUE VEHICLES the kids picture show 2024
BLUE VEHICLES the kids picture show 2024AHOhOops1
Β 
John Deere 200lc Excavator Operation And Tests Repair Manual.pdf
John Deere 200lc Excavator Operation And Tests Repair Manual.pdfJohn Deere 200lc Excavator Operation And Tests Repair Manual.pdf
John Deere 200lc Excavator Operation And Tests Repair Manual.pdfExcavator
Β 
κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚
κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚
κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚Hot Call Girls In Sector 58 (Noida)
Β 
(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts
(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts
(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar EscortsCall girls in Ahmedabad High profile
Β 

Recently uploaded (20)

(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...
(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...
(COD)οΏ£Young Call Girls In Dwarka , New Delhi꧁❀ 7042364481❀꧂ Escorts Service i...
Β 
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxUNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
Β 
Delhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 personDelhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 β˜Žβœ”πŸ‘Œβœ” Full night Service for more than 1 person
Β 
call girls in G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in  G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in  G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in G.T.B. Nagar (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
Β 
Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...Transformative journey for Automotive Components Manufacturers- D&V Business ...
Transformative journey for Automotive Components Manufacturers- D&V Business ...
Β 
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
2024 WRC Hyundai World Rally Team’s i20 N Rally1 Hybrid
Β 
Digamma / CertiCon Company Presentation
Digamma / CertiCon Company  PresentationDigamma / CertiCon Company  Presentation
Digamma / CertiCon Company Presentation
Β 
Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These Symptoms
Β 
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls  Size E6 (O525547819) Call Girls In DubaiDubai Call Girls  Size E6 (O525547819) Call Girls In Dubai
Dubai Call Girls Size E6 (O525547819) Call Girls In Dubai
Β 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi *οΌŠβœΏβ€7042364481β€βœΏοΌŠ*Escorts ServiCes C...
Β 
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /WhatsappsBeautiful Vip  Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Beautiful Vip Call Girls Punjabi Bagh 9711199012 Call /Whatsapps
Β 
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGERUNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
Β 
εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€
εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€
εŠžη†εŸƒι»˜ι‡Œε€§ε­¦ζ―•δΈšθ―Emoryζ―•δΈšθ―εŽŸη‰ˆδΈ€ζ―”δΈ€
Β 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
Β 
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
VIP Mumbai Call Girls Thakur village Just Call 9920874524 with A/C Room Cash ...
Β 
Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...
Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...
Indian Downtown Call Girls # 00971528903066 # Indian Call Girls In Downtown D...
Β 
BLUE VEHICLES the kids picture show 2024
BLUE VEHICLES the kids picture show 2024BLUE VEHICLES the kids picture show 2024
BLUE VEHICLES the kids picture show 2024
Β 
John Deere 200lc Excavator Operation And Tests Repair Manual.pdf
John Deere 200lc Excavator Operation And Tests Repair Manual.pdfJohn Deere 200lc Excavator Operation And Tests Repair Manual.pdf
John Deere 200lc Excavator Operation And Tests Repair Manual.pdf
Β 
κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚
κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚
κ§ΰΌ’β˜¬ 7042364481 (Call Girl) In Dwarka Delhi Escort Service In Delhi Ncrβ˜¬ΰΌ’κ§‚
Β 
(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts
(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts
(NEHA) Call Girls Pushkar Booking Open 8617697112 Pushkar Escorts
Β 

Flexray

  • 1. 1 TIMING ANALYSIS OF THE FLEXRAY COMMUNICATION PROTOCOL presented by: CHENG SUN // YINGLAI YANG // YUNNING LI TRAIAN POP, PAUL POP, PETRU ELES, ZEBO PENG, ALEXANDRU ANDREI
  • 2. 2 Developments in automotive  Comfort: β€’ x-by-wire (drive-by-wire, brake-by-wire, …) β€’ Lane control  Safety: β€’ Automatic emergency brake β€’ Pedestrian recognition  Future: β€’ Self-driving cars CHENG SUN // YINGLAI YANG // YUNNING LI
  • 3. 3 Realized by distributed systems CHENG SUN // YINGLAI YANG // YUNNING LI
  • 4. 4 New solution: FlexRay  We need fast, deterministic (safe) communication protocol: Development started at BMW and continued by a consortium resulted in FlexRay protocol.  CAN, LIN vs. FlexRay Bus LIN CAN FlexRay Speed 40 kbit/s 1 Mbit/s 10 Mbit/s Cost $ $$ $$$ Wires 1 2 2 or 4 Typical Applications Body Electronics Powertrain Safety-critical apps CHENG SUN // YINGLAI YANG // YUNNING LI
  • 5. 5 The FlexRay Protocol  The overview of the system CHENG SUN // YINGLAI YANG // YUNNING LI
  • 6. 6 The FlexRay Protocol  Detailed information of cycles CHENG SUN // YINGLAI YANG // YUNNING LI
  • 7. 7 Internal architecture of a node  CPU: writes messages into...  CHI: reserves a buffer...  Controller: reads messages from...  Black Chunk: ~Static  Grey Chunk: ~Dynamic CHENG SUN // YINGLAI YANG // YUNNING LI
  • 8. 8 Internal architecture of a node The number of slots in ST is fixed,… The size of each slot is fixed,… CHENG SUN // YINGLAI YANG // YUNNING LI
  • 9. 9 Delays in dynamic segment  (1) Delays by higher priority messages. Here mg and mf share the same Frame ID, but ... CHENG SUN // YINGLAI YANG // YUNNING LI
  • 10. 10 (1)Delays by higher priority messages  Here mg is delayed by mf . CHENG SUN // YINGLAI YANG // YUNNING LI
  • 11. 11 Delays in the dynamic segment  (2)Delays by earlier (lower frame) messages and without enough slots left. Such as mh, static segment; Frame ID=5; Assuming that the length of mh takes 2 slots CHENG SUN // YINGLAI YANG // YUNNING LI
  • 12. 12 (2)Delays by earlier (lower FrameID) messages and without enough slots left.  We can not be too stingy to mh ! CHENG SUN // YINGLAI YANG // YUNNING LI
  • 13. 13 (2)Delays by earlier (lower FrameID) messages and without enough slots left.  Finally, mh finds an available position.  Although…  What if mg … CHENG SUN // YINGLAI YANG // YUNNING LI
  • 14. 14 Timing analysis Question for safety issue: How long can it take until a message reaches its recipient? β€œThe driver turns the steering wheel to the left. How long does it maximally take until the car follows that movement?” Value of interest: Worst Response Time – Longest possible time from creation of message to complete arrival. CHENG SUN // YINGLAI YANG // YUNNING LI
  • 15. 15 Quantization of delay-causes Note: Assume regular, periodic messages with period T (dynamic messages) Such a message will occur 𝑑+𝐽 𝑇 times in the time frame 𝑑. E.g. β„Žπ‘ 𝑑 = 𝑑+π½β„Žπ‘ π‘‡β„Žπ‘ for higher priority messages J is the jitter of the message β†’ difference between best response time to worst response time CHENG SUN // YINGLAI YANG // YUNNING LI
  • 16. 16 Definition of response time Important for us: Those are the only things that can change. CHENG SUN // YINGLAI YANG // YUNNING LI
  • 17. 17 Mathematical formulation for 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š Make it an ILP problem: Furthermore constraints are added to the ILP formulation to satisfy the FlexRay protocol … frame overfilled: 𝑦𝑖 = 1 frame can take message: 𝑦𝑖 = 0 CHENG SUN // YINGLAI YANG // YUNNING LI
  • 18. 18 Messages are not sent multiple times per cycle CHENG SUN // YINGLAI YANG // YUNNING LI
  • 19. 19 FrameIDs are unique Or: β€žYou shall not use the same π‘“π‘Ÿπ‘Žπ‘šπ‘’πΌπ· multiple times in one cycleβ€œ CHENG SUN // YINGLAI YANG // YUNNING LI
  • 20. 20 Fixed assignment of frameID Or: β€žA message can only be transmitted with the π‘“π‘Ÿπ‘Žπ‘šπ‘’πΌπ· that was assigned to itβ€œ CHENG SUN // YINGLAI YANG // YUNNING LI
  • 21. 21 Messages need to fit completely Or: β€žAny message can only be sent if it fits in the remaining space.β€œ CHENG SUN // YINGLAI YANG // YUNNING LI
  • 22. 22 Optimal solution for 𝑀 π‘š β€² After 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š is known, we maximize the delay in the cycle where the message π‘š is being sent (inserted in the dynamic frame). ILP is used again and the max. 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š is being enforced. The optimization goal is now to find the largest possible 𝑀 π‘š β€² . Same constraints as before (FlexRay compliance) CHENG SUN // YINGLAI YANG // YUNNING LI
  • 23. 23 Summary of optimal calculation  ILP used  β€žOptimizationβ€œ goal: Maximize 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š and 𝑀 π‘š β€²  Constraints used to model FlexRay rules However:  ILP is very computationally complex. Takes extremely long and can exceed available computational power easily! CHENG SUN // YINGLAI YANG // YUNNING LI
  • 24. 24 Heuristic Solution for 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š & 𝑀 π‘š β€² Simplification of calculation of 𝐡𝑒𝑠𝐢𝑦𝑐𝑙𝑒𝑠 π‘š: Straightforward computation of 𝑀 π‘š β€² : CHENG SUN // YINGLAI YANG // YUNNING LI by adding pessimistic π‘šπ‘ -count to communication time:
  • 25. 25 Experimental Setup CHENG SUN // YINGLAI YANG // YUNNING LI OO- is not used in production since it is optimistic about WRT. It is only used to be able to calculate a common reference value for OH and HH.
  • 26. 26 Experimental Results Where A presents OO, OH or HH, and n is the number of messages in the analyzed application. CHENG SUN // YINGLAI YANG // YUNNING LI
  • 27. 27 Experimental Results CHENG SUN // YINGLAI YANG // YUNNING LI Fewer frameIDs/processor β†’ constraints more important β†’ heuristics worse
  • 28. 28 Conclusions  The paper showed a way to analyze the worst response time.  It was shown how heuristics can be used to radically reduce the calculation time of the WRT with a trade off in additional pessimism of the result.  Allows timing assertions for safety analysis.  First paper to analyze dynamic FlexRay timing without simplifying constraints.  Good heuristics with very low calculation time. CHENG SUN // YINGLAI YANG // YUNNING LI
  • 29. 29 CHENG SUN // YINGLAI YANG // YUNNING LI Thank you for your attention!
  • 30. 30 Q&A CHENG SUN // YINGLAI YANG // YUNNING LI