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.realtimeatwork.com   [email_address] 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%)
Scheduling frames with offsets ?! Principle:  desynchronize transmissions to avoid load peaks Algorithms  to decide offsets are based on arithmetical properties of the periods and size of the frame  0 0 0 10 5 0 15 5 5 0 10 20 30 40 50 60 70 80 90 100 110 Periods 20 ms 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 5 2,5 0 110 5 2,5 0 Periods 20 ms 15 ms 10 ms
System model (1/2)  ECU Frame Transmission request task Frame response time Performance metric:  worst-case response time CAN Higher prio. frames frame
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
But task scheduling has to be adapted…  ECU In addition, avoiding consecutive frame constructions on an ECU allows to reduce latency  Frame Transmission request task Frame response time CAN Higher prio. frames frame
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:   f 1 =(T 1 =10) ,  f 2 =(T 2 =20) , f 3 (T 3 =20)  f 1,1 f 1,2 f 2,1 f 3,1 Frame 18 16 14 12 10 8 6 4 2 0 Time
Offsets Algorithm applied on a typical body network 21 ms 65 ms
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 …
Efficiency of offsets :  some insight (1/2) Almost a straight line, suggests that our algorithm is near-optimal Work = time to transmit the CAN frames sent by the stations
Efficiency of offsets :  some insight (2/2) A larger workload waiting for transmission implies larger response times for the low priority frames ..
Computing worst-case response times with offsets
Computing frame worst-case response time with offsets CAN Controller buffer   Tx CAN Bus 9 6 8 1 2 Waiting queue : FIFO Highest Priority First (HPF - Autosar) Carmaker specific Requirements :   handle 100+ frames  very fast execution times  ≠  waiting queue policy at the microcontroller level limited number of transmission buffers  AUTOSAR COM Frame-packing   task 5ms
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
NETCAR-Analyzer :  developed at INRIA, then RealTime-at-Work
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
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 Performance evaluation :
Experimental Setup Body and chassis networks Set of frames generated with NETCARBENCH (GPL-licenced) With / without load concentration: one ECU generates 30% of the load N e t w o r k # E C U s # M e s s a g e s B a n d w i d t h F r a m e p e r i o d s B o d y 1 5 - 2 0 ¼ 7 0 1 2 5 K b i t / s 5 0 m s - 2 s C h a s s i s 5 - 1 5 ¼ 6 0 5 0 0 K b i t / s 1 0 m s - 1 s
Offsets in practice : large response time improvements (1/2) 21 17 32 65 ms
WCRT Reduction Ratio Body Networks Chassis Networks Results are even better with loaded stations
Offsets allow higher network loads Typically:  WCRT at 60% with offsets    WCRT at 30% without offsets
Partial offset usage 34 17 42 65 ms
Conclusions Offsets provide an  cost-effective short-term solution  to postpone multiple CANs and FlexRay Tradeoff between Event and Time Triggered  Further large improvements are possible  by synchronizing the ECUs  … ET CAN CAN with offsets TT-CAN  + Complexity + Determinism
Questions, feedback?  please contact me at   [email_address]

More Related Content

PDF
Timing verification of real-time automotive Ethernet networks: what can we ex...
PDF
Multicore scheduling in automotive ECUs
PDF
Practical Use Cases for Ethernet Redundancy
PDF
PEGASE – a robust and efficient tool for worst-case network traversal time ev...
PDF
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
PDF
Insights into the performance and configuration of TCP in Automotive Ethernet...
PDF
Early-stage topological and technological choices for TSN-based communication...
PDF
QoS-Predictable SOA on TSN: Insights from a Case-Study
Timing verification of real-time automotive Ethernet networks: what can we ex...
Multicore scheduling in automotive ECUs
Practical Use Cases for Ethernet Redundancy
PEGASE – a robust and efficient tool for worst-case network traversal time ev...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Insights into the performance and configuration of TCP in Automotive Ethernet...
Early-stage topological and technological choices for TSN-based communication...
QoS-Predictable SOA on TSN: Insights from a Case-Study

What's hot (20)

PDF
Timing verification of automotive communication architecture using quantile ...
PDF
Early-stage Bottleneck Identification and Removal in TSN Networks
PDF
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
PDF
Automotive communication systems: from dependability to security
PDF
Insights on the configuration and performances of SOME/IP Service Discovery
PDF
Simulation-Based Fault Injection as a Verification Oracle for the Engineering...
PDF
20160531 Testing Expo_Benefits and Requirements of Automotive Ethernet
PDF
CAN in Automotive Applications: a Look Forward
PDF
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
PDF
Frame latency evaluation: when simulation and analysis alone are not enough
PDF
Timing verification of automotive communication architectures using quantile ...
PDF
FAUST: Fast Per-Scene Encoding Using Entropy-Based Scene Detection and Machin...
PDF
EPIQ'21: Days of Future Past: An Optimization-based Adaptive Bitrate Algorith...
PDF
Media-Aware Network Elements on Legacy Devices
PPTX
Discrete-event simulation: best practices and implementation details in Pytho...
DOCX
BULK IEEE PROJECTS IN VLSI ,BULK IEEE PROJECTS, IEEE 2015-16 VLSI PROJECTS I...
PPT
Generic and Automatic Specman Based Verification Environment
PDF
Overcoming challenges of_verifying complex mixed signal designs
PDF
On the Impact of Viewing Distance on Perceived Video Quality
PPTX
5G Network Slicing Using Mininet
Timing verification of automotive communication architecture using quantile ...
Early-stage Bottleneck Identification and Removal in TSN Networks
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
Automotive communication systems: from dependability to security
Insights on the configuration and performances of SOME/IP Service Discovery
Simulation-Based Fault Injection as a Verification Oracle for the Engineering...
20160531 Testing Expo_Benefits and Requirements of Automotive Ethernet
CAN in Automotive Applications: a Look Forward
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
Frame latency evaluation: when simulation and analysis alone are not enough
Timing verification of automotive communication architectures using quantile ...
FAUST: Fast Per-Scene Encoding Using Entropy-Based Scene Detection and Machin...
EPIQ'21: Days of Future Past: An Optimization-based Adaptive Bitrate Algorith...
Media-Aware Network Elements on Legacy Devices
Discrete-event simulation: best practices and implementation details in Pytho...
BULK IEEE PROJECTS IN VLSI ,BULK IEEE PROJECTS, IEEE 2015-16 VLSI PROJECTS I...
Generic and Automatic Specman Based Verification Environment
Overcoming challenges of_verifying complex mixed signal designs
On the Impact of Viewing Distance on Perceived Video Quality
5G Network Slicing Using Mininet
Ad

Viewers also liked (6)

PPTX
Controller area network (can bus)
PDF
Insights on the Configuration and Performances of SOME/IP Service Discovery
PPT
CAN (Controller Area Network) Bus Protocol
PDF
Designs of input and output driver circuits for 16 bit electronic control uni...
PPTX
Electronic Control Unit(ECU)
PPTX
Automotive Electronics In Automobile | Electronic control unit
Controller area network (can bus)
Insights on the Configuration and Performances of SOME/IP Service Discovery
CAN (Controller Area Network) Bus Protocol
Designs of input and output driver circuits for 16 bit electronic control uni...
Electronic Control Unit(ECU)
Automotive Electronics In Automobile | Electronic control unit
Ad

Similar to Pushing the limits of Controller Area Network (CAN) (20)

PDF
Pushing the limits of CAN - Scheduling frames with offsets provides a major p...
PDF
Configuring the communication on FlexRay: the case of the static segment
PDF
TSN Timing QoS Mechanisms: What Did We Learn over the Past 10 Years?
PDF
can bus theory solution
PPTX
6TiSCH @Telecom Bretagne 2015
PDF
CESEC_CAN for automotive communication which can used
PPTX
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
PPT
Troubleshooting TCP/IP
PPT
UDT
PPT
UDT
PDF
CRC AND TRANSMIT ERROR REPORT
PDF
Computer network (5)
PDF
Computer network (13)
PDF
Ethernet as fabric
PDF
Designing a Fault-Tolerant Channel Extension Network for Internal Recovery
PDF
Quality of Service for Video Streaming using EDCA in MANET
PPT
TLS in manet
PDF
Communication Performance Over A Gigabit Ethernet Network
PDF
D031201021027
PPTX
Shubham chakravarty ppt_wcan
Pushing the limits of CAN - Scheduling frames with offsets provides a major p...
Configuring the communication on FlexRay: the case of the static segment
TSN Timing QoS Mechanisms: What Did We Learn over the Past 10 Years?
can bus theory solution
6TiSCH @Telecom Bretagne 2015
CESEC_CAN for automotive communication which can used
Thesis Presentation on Renewal theory based 802.15.6 latest.pptx
Troubleshooting TCP/IP
UDT
UDT
CRC AND TRANSMIT ERROR REPORT
Computer network (5)
Computer network (13)
Ethernet as fabric
Designing a Fault-Tolerant Channel Extension Network for Internal Recovery
Quality of Service for Video Streaming using EDCA in MANET
TLS in manet
Communication Performance Over A Gigabit Ethernet Network
D031201021027
Shubham chakravarty ppt_wcan

More from RealTime-at-Work (RTaW) (12)

PDF
AUTOMOTIVE SYSTEM REQUIREMENTS ON TRAFFIC SHAPING
PDF
What are the relevant differences between Asynchronous (ATS) and Credit Based...
PDF
Time-Predictable Communication in Service-Oriented Architecture - What are th...
PDF
Strategies for End-to-End Timing Guarantees in a Centralized Software Defined...
PDF
Signal-Oriented ECUs in a Centralized Service-Oriented Architecture: Scalabil...
PDF
What fUML can bring to MBSE?
PDF
Virtualization in Automotive Embedded Systems: an Outlook
PDF
Prototypage virtuel à partir de SysML
PDF
In‐Vehicle Networking: a Survey and Look Forward
PDF
RTaW-Sim Brochure
PDF
Mécanismes de protection AUTOSAR OS
PDF
Overview of RTaW SysML-Companion
AUTOMOTIVE SYSTEM REQUIREMENTS ON TRAFFIC SHAPING
What are the relevant differences between Asynchronous (ATS) and Credit Based...
Time-Predictable Communication in Service-Oriented Architecture - What are th...
Strategies for End-to-End Timing Guarantees in a Centralized Software Defined...
Signal-Oriented ECUs in a Centralized Service-Oriented Architecture: Scalabil...
What fUML can bring to MBSE?
Virtualization in Automotive Embedded Systems: an Outlook
Prototypage virtuel à partir de SysML
In‐Vehicle Networking: a Survey and Look Forward
RTaW-Sim Brochure
Mécanismes de protection AUTOSAR OS
Overview of RTaW SysML-Companion

Recently uploaded (20)

PDF
Life Cycle Analysis of Electric and Internal Combustion Engine Vehicles
PPTX
LESSON 3 Apply Safety Practices mmms.pptx
PDF
Caterpillar Cat 324E LN Excavator (Prefix LDG) Service Repair Manual Instant ...
PDF
Articulated Dump Truck John Deere 370E 410E 460E Technical Manual.pdf
PPTX
Engineering equation silver Presentation.pptx
PDF
6. Chapter Twenty_Managing Mass Communications Advertising Sales Promotions E...
PPTX
Independence_Day_Patriotic theme (1).pptx
PPTX
368455847-Relibility RJS-Relibility-PPT-1.pptx
PPTX
internal combustion engine renewable new
PPTX
Money and credit.pptx from economice class IX
PDF
Governor Volvo EC55 Service Repair Manual.pdf
PPTX
729193dbwbsve251-Calabarzon-Ppt-Copy.pptx
PDF
Pharmacy is a goood college yvucc7t7tvy7tv7t
PDF
Compact Excavator Volvo EC55 Service Repair Manual.pdf
PDF
150 caterpillar motor grader service repair manual EB4
PDF
John Deere 410E service Repair Manual.pdf
PPTX
Victory precisions_Die casting foundry_.pptx
PPTX
Constitutional Design PPT.pptxl from social science class IX
PDF
Fuel injection pump Volvo EC55 Repair Manual.pdf
PDF
Transmission John Deere 370E 410E 460E Technical Manual.pdf
Life Cycle Analysis of Electric and Internal Combustion Engine Vehicles
LESSON 3 Apply Safety Practices mmms.pptx
Caterpillar Cat 324E LN Excavator (Prefix LDG) Service Repair Manual Instant ...
Articulated Dump Truck John Deere 370E 410E 460E Technical Manual.pdf
Engineering equation silver Presentation.pptx
6. Chapter Twenty_Managing Mass Communications Advertising Sales Promotions E...
Independence_Day_Patriotic theme (1).pptx
368455847-Relibility RJS-Relibility-PPT-1.pptx
internal combustion engine renewable new
Money and credit.pptx from economice class IX
Governor Volvo EC55 Service Repair Manual.pdf
729193dbwbsve251-Calabarzon-Ppt-Copy.pptx
Pharmacy is a goood college yvucc7t7tvy7tv7t
Compact Excavator Volvo EC55 Service Repair Manual.pdf
150 caterpillar motor grader service repair manual EB4
John Deere 410E service Repair Manual.pdf
Victory precisions_Die casting foundry_.pptx
Constitutional Design PPT.pptxl from social science class IX
Fuel injection pump Volvo EC55 Repair Manual.pdf
Transmission John Deere 370E 410E 460E Technical Manual.pdf

Pushing the limits of Controller Area Network (CAN)

  • 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.realtimeatwork.com [email_address] 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%)
  • 3. Scheduling frames with offsets ?! Principle: desynchronize transmissions to avoid load peaks Algorithms to decide offsets are based on arithmetical properties of the periods and size of the frame 0 0 0 10 5 0 15 5 5 0 10 20 30 40 50 60 70 80 90 100 110 Periods 20 ms 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 5 2,5 0 110 5 2,5 0 Periods 20 ms 15 ms 10 ms
  • 4. System model (1/2) ECU Frame Transmission request task Frame response time Performance metric: worst-case response time CAN Higher prio. frames frame
  • 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
  • 6. But task scheduling has to be adapted… ECU In addition, avoiding consecutive frame constructions on an ECU allows to reduce latency Frame Transmission request task Frame response time CAN Higher prio. frames frame
  • 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: f 1 =(T 1 =10) , f 2 =(T 2 =20) , f 3 (T 3 =20) f 1,1 f 1,2 f 2,1 f 3,1 Frame 18 16 14 12 10 8 6 4 2 0 Time
  • 8. Offsets Algorithm applied on a typical body network 21 ms 65 ms
  • 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 …
  • 10. Efficiency of offsets : some insight (1/2) Almost a straight line, suggests that our algorithm is near-optimal Work = time to transmit the CAN frames sent by the stations
  • 11. Efficiency of offsets : some insight (2/2) A larger workload waiting for transmission implies larger response times for the low priority frames ..
  • 12. Computing worst-case response times with offsets
  • 13. Computing frame worst-case response time with offsets CAN Controller buffer Tx CAN Bus 9 6 8 1 2 Waiting queue : FIFO Highest Priority First (HPF - Autosar) Carmaker specific Requirements : handle 100+ frames very fast execution times ≠ waiting queue policy at the microcontroller level limited number of transmission buffers AUTOSAR COM Frame-packing task 5ms
  • 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
  • 15. NETCAR-Analyzer : developed at INRIA, then RealTime-at-Work
  • 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
  • 17. 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 Performance evaluation :
  • 18. Experimental Setup Body and chassis networks Set of frames generated with NETCARBENCH (GPL-licenced) With / without load concentration: one ECU generates 30% of the load N e t w o r k # E C U s # M e s s a g e s B a n d w i d t h F r a m e p e r i o d s B o d y 1 5 - 2 0 ¼ 7 0 1 2 5 K b i t / s 5 0 m s - 2 s C h a s s i s 5 - 1 5 ¼ 6 0 5 0 0 K b i t / s 1 0 m s - 1 s
  • 19. Offsets in practice : large response time improvements (1/2) 21 17 32 65 ms
  • 20. WCRT Reduction Ratio Body Networks Chassis Networks Results are even better with loaded stations
  • 21. Offsets allow higher network loads Typically: WCRT at 60% with offsets  WCRT at 30% without offsets
  • 22. Partial offset usage 34 17 42 65 ms
  • 23. Conclusions Offsets provide an cost-effective short-term solution to postpone multiple CANs and FlexRay Tradeoff between Event and Time Triggered Further large improvements are possible by synchronizing the ECUs … ET CAN CAN with offsets TT-CAN + Complexity + Determinism
  • 24. Questions, feedback? please contact me at [email_address]