SlideShare a Scribd company logo
1 of 24
Download to read offline
Pushing the limits of CAN -
   Scheduling frames with offsets
provides a major performance boost

 Nicolas NAVET
 INRIA / RealTime-at-Work

 http://www.loria.fr/~nnavet
 http://www.realtime-at-work.com
 Nicolas.Navet@loria.fr
 ERTS – 30/01/2008

  Joint work with Mathieu GRENIER and Lionel HAVET
In-vehicle networking :
will CAN be able to keep up the pace?
Typically max. bus load is set to 35%
Not enough wrt to short/medium term bandwidth
needs …
  Solution 1: multiple CAN networks … but
  gateways induce heavy overhead
  Solution 2: switch to FlexRay … expensive for
  bandwidth alone
  Solution 3: optimize the scheduling of CAN
  frame .. Offsets provide a solution to make
  CAN predictable at higher network load
  (≥60%)
                                                  2
Scheduling frames with offsets ?!
 Principle: desynchronize transmissions to avoid
 load peaks
0       10        15                                         Periods
0        5         5                                          20 ms
0        0         5                                          15 ms
                                                              10 ms




0       10   20        30   40   50   60    70   80   90   100         110

 5                                     5
2,5                                   2,5                    Periods
 0                                     0
                                                              20 ms
                                                              15 ms
                                                              10 ms



0       10   20        30   40   50   60    70   80   90   100         110



 Algorithms to decide offsets are based on arithmetical
 properties of the periods and size of the frame
                                                                             3
System model (1/2)

                    Frame response time

         task
ECU
           Frame Transmission request


                   Higher prio. frames
                                         frame
CAN


 Performance metric: worst-case response time

                                                 4
System model (2/2)
The offset of a message stream is the time at which
the transmission request of the first frame is issued




Complexity: best choosing the offsets is exponential in
the task periods → approximate solutions
Middleware task imposes a certain granularity
Without ECU synchronisation, offsets are local to ECUs
                                                          5
But task scheduling has to be
                adapted…

                                  Frame response time

           task
ECU
             Frame Transmission request


                     Higher prio. frames
                                           frame
CAN


 In addition, avoiding consecutive frame constructions
on an ECU allows to reduce latency
                                                         6
Offsets Algorithm (1/3)
Ideas:
  assign offsets in the order of the transmission
  frequencies
  release of the first frame is as far as possible
  from adjacent frames
  identify “least loaded interval”
Ex: f1=(T1=10), f2=(T2=20), f3(T3=20)

Time    0 2    4     6    8     10 12 14 16 18
Frame         f1,1       f2,1        f1,2    f3,1


                                                     7
Offsets Algorithm applied on a typical
            body network



                                  65 ms




                                  21 ms




                                          8
Offsets Algorithm (3/3)

Low complexity and efficient as is but
further improvements possible:
  add frame(s) / ECU(s) to an existing design
  user defined criteria : optimize last 10 frames,
  a specific frame,
  take into account priorities
  optimization algorithms: tabu search, hill
  climbing, genetic algorithms
  …



                                                     9
Efficiency of offsets :
               some insight (1/2)


 Work =
 time to
transmit
the CAN
 frames
 sent by
   the
 stations




   Almost a straight line, suggests that our algorithm is near-optimal
                                                                   10
Efficiency of offsets :
           some insight (2/2)




   A larger workload waiting for transmission implies
larger response times for the low priority frames ..
                                                        11
Computing worst-case
response times with offsets
Computing frame worst-case
        response time with offsets
                       AUTOSAR COM

                    5ms       Frame-packing task           Waiting queue:

Requirements :
                                                           -FIFO

                                                       2   -Highest Priority First
- handle 100+ frames                                       (HPF - Autosar)
                                                       1   -Carmaker specific
- very fast execution times
- ≠ waiting queue policy at the                CAN Controller
microcontroller level
                                                   9   6   8
- limited number of transmission
buffers                                                        buffer Tx
                                                                           CAN Bus

                                                                                     13
WCRT : State of the art
Scientific literature:
  Complexity is exponential
  No schedulability analysis with offsets in the
  distributed non-preemptive case
  Offsets in the preemptive case : not suited
  for > 10-20 tasks
  WCRT without offsets: infinite number of Tx
  buffers and no queue at the microcontroller
  level
Our software: NETCAR-Analyzer

                                                   14
NETCAR-Analyzer : developed at INRIA, then RealTime-at-Work




                                                          15
NETCAR-Analyzer : an overview
   Worst-case response time on CAN with and without
offsets
  Proven near-optimal offsets assignments with user-
defined performance criteria (e.g. WCRT of the 10 lowest prio.
frames)

   Exhibit the situations leading to the worst-case (results can
be checked by simulations/testing)

  Enable to dimension transmission/reception buffers
(RAM)
   Handle both FIFO and prioritized ECUs
   Fast multi-core implementation (<1mn for 100 frames)
   Industrial use since December 2006

                                                                   16
Performance evaluation :
  Experimental Setup
  WCRT of the frames wrt random offsets
and lower bound
  WCRT reduction ratio for chassis and body
networks
  Load increase : add new ECUs / add more
traffic
Experimental Setup

   Body and chassis networks
Network   #ECUs    #Messages   Bandwidth    Frame periods
 Body      15-20     ≈ 70       125Kbit/s      50ms-2s
Chassis     5-15     ≈ 60       500Kbit/s      10ms-1s

With / without load concentration: one ECU generates 30%
of the load


  Set of frames generated with NETCARBENCH
 (GPL-licenced)
                                                       18
Offsets in practice : large response
     time improvements (1/2)



                               65 ms



                               32
                               21
                               17




                                       19
WCRT Reduction Ratio

    Body Networks               Chassis Networks




Results are even better with loaded stations

                                                   20
Offsets allow higher network loads
 Typically: WCRT at 60% with offsets ≈ WCRT
 at 30% without offsets




                                              21
Partial offset usage



                       65 ms


                       42
                       34
                       17




                               22
Conclusions
  Offsets provide an cost-effective short-term
  solution to postpone multiple CANs and FlexRay
  Tradeoff between Event and Time Triggered

  ET CAN        CAN with offsets    TT-CAN

                                     + Complexity
                                     + Determinism

  Further large improvements are possible by
synchronizing the ECUs …


                                                   23
Questions, feedback?
please contact me at
Nicolas.Navet@loria.fr




                         24

More Related Content

What's hot

Docsis cmts receiver
Docsis cmts receiverDocsis cmts receiver
Docsis cmts receiver
herooftit01
 
Tcp congestion control (1)
Tcp congestion control (1)Tcp congestion control (1)
Tcp congestion control (1)
Abdo sayed
 
Dan_Duncan_PhD_Defense
Dan_Duncan_PhD_DefenseDan_Duncan_PhD_Defense
Dan_Duncan_PhD_Defense
Dan Duncan
 
Tcp congestion control
Tcp congestion controlTcp congestion control
Tcp congestion control
Abdo sayed
 

What's hot (20)

Extending TFWC towards Higher Throughput
Extending TFWC towards Higher ThroughputExtending TFWC towards Higher Throughput
Extending TFWC towards Higher Throughput
 
TCP Congestion Control By Owais Jara
TCP Congestion Control By Owais JaraTCP Congestion Control By Owais Jara
TCP Congestion Control By Owais Jara
 
Docsis cmts receiver
Docsis cmts receiverDocsis cmts receiver
Docsis cmts receiver
 
FlexRay Product Days RTaW
FlexRay Product Days RTaWFlexRay Product Days RTaW
FlexRay Product Days RTaW
 
idle mode_operation_v1.1_chema
 idle mode_operation_v1.1_chema idle mode_operation_v1.1_chema
idle mode_operation_v1.1_chema
 
CSMA/CD
CSMA/CDCSMA/CD
CSMA/CD
 
Tcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identificationTcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identification
 
TCP congestion control
TCP congestion controlTCP congestion control
TCP congestion control
 
10 fn s22
10 fn s2210 fn s22
10 fn s22
 
Cat @ scale
Cat @ scaleCat @ scale
Cat @ scale
 
Csma(carriers sense-multiple-acess)
Csma(carriers sense-multiple-acess) Csma(carriers sense-multiple-acess)
Csma(carriers sense-multiple-acess)
 
Cubic
CubicCubic
Cubic
 
Tcp congestion control (1)
Tcp congestion control (1)Tcp congestion control (1)
Tcp congestion control (1)
 
Java and Containers - Make it Awesome !
Java and Containers - Make it Awesome !Java and Containers - Make it Awesome !
Java and Containers - Make it Awesome !
 
Lightweight DNN Processor Design (based on NVDLA)
Lightweight DNN Processor Design (based on NVDLA)Lightweight DNN Processor Design (based on NVDLA)
Lightweight DNN Processor Design (based on NVDLA)
 
Resolution enhancement of low-quality videos using a high-resolution frame
Resolution enhancement of low-quality videos using a high-resolution frameResolution enhancement of low-quality videos using a high-resolution frame
Resolution enhancement of low-quality videos using a high-resolution frame
 
A Prototype Storage Subsystem based on Phase Change Memory
A Prototype Storage Subsystem based on Phase Change MemoryA Prototype Storage Subsystem based on Phase Change Memory
A Prototype Storage Subsystem based on Phase Change Memory
 
Dan_Duncan_PhD_Defense
Dan_Duncan_PhD_DefenseDan_Duncan_PhD_Defense
Dan_Duncan_PhD_Defense
 
Tcp congestion control
Tcp congestion controlTcp congestion control
Tcp congestion control
 
Introduction to Real Time Java
Introduction to Real Time JavaIntroduction to Real Time Java
Introduction to Real Time Java
 

Viewers also liked

Viewers also liked (7)

Automotive communication systems: from dependability to security
Automotive communication systems: from dependability to securityAutomotive communication systems: from dependability to security
Automotive communication systems: from dependability to security
 
Isi2007 nn shc_2007
Isi2007 nn shc_2007Isi2007 nn shc_2007
Isi2007 nn shc_2007
 
Automating the Configuration of the FlexRay Communication Cycle
Automating the Configuration of the FlexRay Communication CycleAutomating the Configuration of the FlexRay Communication Cycle
Automating the Configuration of the FlexRay Communication Cycle
 
New policies
New policiesNew policies
New policies
 
Mécanismes de protection dans AUTOSAR OS
Mécanismes de protection dans AUTOSAR OSMécanismes de protection dans AUTOSAR OS
Mécanismes de protection dans AUTOSAR OS
 
In-Vehicle Networking : a Survey and Look Forward
In-Vehicle Networking : a Survey and Look ForwardIn-Vehicle Networking : a Survey and Look Forward
In-Vehicle Networking : a Survey and Look Forward
 
Battery Aware Dynamic Scheduling for Periodic Task Graphs
Battery Aware Dynamic Scheduling for Periodic Task GraphsBattery Aware Dynamic Scheduling for Periodic Task Graphs
Battery Aware Dynamic Scheduling for Periodic Task Graphs
 

Similar to Pushing the limits of CAN - Scheduling frames with offsets provides a major performance boost

Ertss2010 multicore scheduling
Ertss2010 multicore schedulingErtss2010 multicore scheduling
Ertss2010 multicore scheduling
Nicolas Navet
 
Capacity analysis of gsm systems using slow frequency hoppin
Capacity analysis of gsm systems using slow frequency hoppinCapacity analysis of gsm systems using slow frequency hoppin
Capacity analysis of gsm systems using slow frequency hoppin
Shiju Chacko
 
Computer network (5)
Computer network (5)Computer network (5)
Computer network (5)
NYversity
 
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
RealTime-at-Work (RTaW)
 

Similar to Pushing the limits of CAN - Scheduling frames with offsets provides a major performance boost (20)

Pushing the limits of Controller Area Network (CAN)
Pushing the limits of Controller Area Network (CAN)Pushing the limits of Controller Area Network (CAN)
Pushing the limits of Controller Area Network (CAN)
 
Configuring the communication on FlexRay: the case of the static segment
Configuring the communication on FlexRay: the case of the static segmentConfiguring the communication on FlexRay: the case of the static segment
Configuring the communication on FlexRay: the case of the static segment
 
Frame latency evaluation: when simulation and analysis alone are not enough
Frame latency evaluation: when simulation and analysis alone are not enoughFrame latency evaluation: when simulation and analysis alone are not enough
Frame latency evaluation: when simulation and analysis alone are not enough
 
Challenges of Parallel Simulation of Power Systems_english
Challenges of Parallel Simulation of Power Systems_englishChallenges of Parallel Simulation of Power Systems_english
Challenges of Parallel Simulation of Power Systems_english
 
Ertss2010 multicore scheduling
Ertss2010 multicore schedulingErtss2010 multicore scheduling
Ertss2010 multicore scheduling
 
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-StudyDo We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
 
CAN in Automotive Applications: a Look Forward
CAN in Automotive Applications: a Look ForwardCAN in Automotive Applications: a Look Forward
CAN in Automotive Applications: a Look Forward
 
SpeedIT : GPU-based acceleration of sparse linear algebra
SpeedIT : GPU-based acceleration of sparse linear algebraSpeedIT : GPU-based acceleration of sparse linear algebra
SpeedIT : GPU-based acceleration of sparse linear algebra
 
Capacity analysis of gsm systems using slow frequency hoppin
Capacity analysis of gsm systems using slow frequency hoppinCapacity analysis of gsm systems using slow frequency hoppin
Capacity analysis of gsm systems using slow frequency hoppin
 
Computer network (5)
Computer network (5)Computer network (5)
Computer network (5)
 
can bus theory solution
can bus theory solutioncan bus theory solution
can bus theory solution
 
6TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 20156TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 2015
 
Designing TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion ControlDesigning TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion Control
 
weblogic perfomence tuning
weblogic perfomence tuningweblogic perfomence tuning
weblogic perfomence tuning
 
Automotive network and gateway simulation
Automotive network and gateway simulationAutomotive network and gateway simulation
Automotive network and gateway simulation
 
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
Thesis Presentation on Renewal theory based 802.15.6 latest.pptxThesis Presentation on Renewal theory based 802.15.6 latest.pptx
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
 
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
 
MEDIUM ACCESS CONTROL Sublayer IN CN.ppt
MEDIUM ACCESS CONTROL Sublayer IN CN.pptMEDIUM ACCESS CONTROL Sublayer IN CN.ppt
MEDIUM ACCESS CONTROL Sublayer IN CN.ppt
 
3-MACSublayer.ppt
3-MACSublayer.ppt3-MACSublayer.ppt
3-MACSublayer.ppt
 
CDMA BSC 6600
CDMA BSC 6600CDMA BSC 6600
CDMA BSC 6600
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Pushing the limits of CAN - Scheduling frames with offsets provides a major performance boost

  • 1. Pushing the limits of CAN - Scheduling frames with offsets provides a major performance boost Nicolas NAVET INRIA / RealTime-at-Work http://www.loria.fr/~nnavet http://www.realtime-at-work.com Nicolas.Navet@loria.fr ERTS – 30/01/2008 Joint work with Mathieu GRENIER and Lionel HAVET
  • 2. In-vehicle networking : will CAN be able to keep up the pace? Typically max. bus load is set to 35% Not enough wrt to short/medium term bandwidth needs … Solution 1: multiple CAN networks … but gateways induce heavy overhead Solution 2: switch to FlexRay … expensive for bandwidth alone Solution 3: optimize the scheduling of CAN frame .. Offsets provide a solution to make CAN predictable at higher network load (≥60%) 2
  • 3. Scheduling frames with offsets ?! Principle: desynchronize transmissions to avoid load peaks 0 10 15 Periods 0 5 5 20 ms 0 0 5 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 110 5 5 2,5 2,5 Periods 0 0 20 ms 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 110 Algorithms to decide offsets are based on arithmetical properties of the periods and size of the frame 3
  • 4. System model (1/2) Frame response time task ECU Frame Transmission request Higher prio. frames frame CAN Performance metric: worst-case response time 4
  • 5. System model (2/2) The offset of a message stream is the time at which the transmission request of the first frame is issued Complexity: best choosing the offsets is exponential in the task periods → approximate solutions Middleware task imposes a certain granularity Without ECU synchronisation, offsets are local to ECUs 5
  • 6. But task scheduling has to be adapted… Frame response time task ECU Frame Transmission request Higher prio. frames frame CAN In addition, avoiding consecutive frame constructions on an ECU allows to reduce latency 6
  • 7. Offsets Algorithm (1/3) Ideas: assign offsets in the order of the transmission frequencies release of the first frame is as far as possible from adjacent frames identify “least loaded interval” Ex: f1=(T1=10), f2=(T2=20), f3(T3=20) Time 0 2 4 6 8 10 12 14 16 18 Frame f1,1 f2,1 f1,2 f3,1 7
  • 8. Offsets Algorithm applied on a typical body network 65 ms 21 ms 8
  • 9. Offsets Algorithm (3/3) Low complexity and efficient as is but further improvements possible: add frame(s) / ECU(s) to an existing design user defined criteria : optimize last 10 frames, a specific frame, take into account priorities optimization algorithms: tabu search, hill climbing, genetic algorithms … 9
  • 10. Efficiency of offsets : some insight (1/2) Work = time to transmit the CAN frames sent by the stations Almost a straight line, suggests that our algorithm is near-optimal 10
  • 11. Efficiency of offsets : some insight (2/2) A larger workload waiting for transmission implies larger response times for the low priority frames .. 11
  • 13. Computing frame worst-case response time with offsets AUTOSAR COM 5ms Frame-packing task Waiting queue: Requirements : -FIFO 2 -Highest Priority First - handle 100+ frames (HPF - Autosar) 1 -Carmaker specific - very fast execution times - ≠ waiting queue policy at the CAN Controller microcontroller level 9 6 8 - limited number of transmission buffers buffer Tx CAN Bus 13
  • 14. WCRT : State of the art Scientific literature: Complexity is exponential No schedulability analysis with offsets in the distributed non-preemptive case Offsets in the preemptive case : not suited for > 10-20 tasks WCRT without offsets: infinite number of Tx buffers and no queue at the microcontroller level Our software: NETCAR-Analyzer 14
  • 15. NETCAR-Analyzer : developed at INRIA, then RealTime-at-Work 15
  • 16. NETCAR-Analyzer : an overview Worst-case response time on CAN with and without offsets Proven near-optimal offsets assignments with user- defined performance criteria (e.g. WCRT of the 10 lowest prio. frames) Exhibit the situations leading to the worst-case (results can be checked by simulations/testing) Enable to dimension transmission/reception buffers (RAM) Handle both FIFO and prioritized ECUs Fast multi-core implementation (<1mn for 100 frames) Industrial use since December 2006 16
  • 17. Performance evaluation : Experimental Setup WCRT of the frames wrt random offsets and lower bound WCRT reduction ratio for chassis and body networks Load increase : add new ECUs / add more traffic
  • 18. Experimental Setup Body and chassis networks Network #ECUs #Messages Bandwidth Frame periods Body 15-20 ≈ 70 125Kbit/s 50ms-2s Chassis 5-15 ≈ 60 500Kbit/s 10ms-1s With / without load concentration: one ECU generates 30% of the load Set of frames generated with NETCARBENCH (GPL-licenced) 18
  • 19. Offsets in practice : large response time improvements (1/2) 65 ms 32 21 17 19
  • 20. WCRT Reduction Ratio Body Networks Chassis Networks Results are even better with loaded stations 20
  • 21. Offsets allow higher network loads Typically: WCRT at 60% with offsets ≈ WCRT at 30% without offsets 21
  • 22. Partial offset usage 65 ms 42 34 17 22
  • 23. Conclusions Offsets provide an cost-effective short-term solution to postpone multiple CANs and FlexRay Tradeoff between Event and Time Triggered ET CAN CAN with offsets TT-CAN + Complexity + Determinism Further large improvements are possible by synchronizing the ECUs … 23
  • 24. Questions, feedback? please contact me at Nicolas.Navet@loria.fr 24