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

Similar documents
In Vehicle Networking : a Survey and Look Forward

Verification of automotive networks -

netcarbench V3.4 User Manual

NETCAR-Analyzer V1.6.1 User Manual

Outline INSIGHTS ON THE CONFIGURATION AND PERFORMANCES OF SOME/IP SERVICE DISCOVERY. What is SOME/IP and SOME/IP SD

Insights on the performance and configuration of AVB and TSN in automotive applications

Organic Self-organizing Bus-based Communication Systems

Reducing CAN latencies by use of weak synchronization between stations

Insights into the performance and configuration of TCP in Automotive Ethernet Networks

Timing Analysis of Automotive Architectures and Software. Nicolas Navet University of Luxembourg, founder RealTime-at-Work

Implementation of automotive CAN module requirements

The Best Protocol for Real-time Data Transport

Real-Time (Paradigms) (47)

Fine-grained Simulation in the Design of Automotive Communication Systems

An Encapsulated Communication System for Integrated Architectures

MATLAB Expo Simulation Based Automotive Communication Design using MATLAB- SimEvent. Sudhakaran M Anand H General Motors

Tomorrow s In-Car Interconnect? A Competitive Evaluation of IEEE AVB and Time-Triggered Ethernet (AS6802) NET

Multimedia Systems 2011/2012

Properties of Processes

Simulation-Based Fault Injection as a Verification Oracle for the Engineering of Time-Triggered Ethernet networks

Model transformation and scheduling analysis of an AUTOSAR system

Start of Lecture: February 10, Chapter 6: Scheduling

Slot Allocation Schemes for the FlexRay Static Segment

Managing Cisco QoS Using ehealth

Enhanced Ethernet Switching Technology. Time Applications. Rui Santos 17 / 04 / 2009

ZiLOG Real-Time Kernel Version 1.2.0

UDP Traffic Management

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

Timing Analysis on Complex Real-Time Automotive Multicore Architectures

Real-Time Protocol (RTP)

ESCAN An Open Source, High Bandwidth, Event Scheduled Controller Area Network

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Handling Challenges of Multi-Core Technology in Automotive Software Engineering

Relaxation Control of Packet Arrival Rate in the Neighborhood of the Destination in Concentric Sensor Networks

FlexRay and Automotive Networking Future

IEEE Time-Sensitive Networking (TSN)

Insights on the Performance and Configuration of AVB and TSN in Automotive Ethernet Networks

OVERHEADS ENHANCEMENT IN MUTIPLE PROCESSING SYSTEMS BY ANURAG REDDY GANKAT KARTHIK REDDY AKKATI

Systems. Roland Kammerer. 10. November Institute of Computer Engineering Vienna University of Technology. Communication Protocols for Embedded

Atacama: An Open Experimental Platform for Mixed-Criticality Networking on Top of Ethernet

Using Time Division Multiplexing to support Real-time Networking on Ethernet

Contents The Definition of a Fieldbus An Introduction to Industrial Systems Communications.

Ethernet Design Challenges The requirements and use of Ethernet with AUTOSAR

Introduction to Real-Time Communications. Real-Time and Embedded Systems (M) Lecture 15

Developing deterministic networking technology for railway applications using TTEthernet software-based end systems

A CAN Protocol for Calibration and Measurement Data Acquisition

A Framework for Space and Time Efficient Scheduling of Parallelism

QoS MIB Implementation

Probabilistic Worst-Case Response-Time Analysis for the Controller Area Network

On Latency Management in Time-Shared Operating Systems *

NET. A Hardware/Software Co-Design Approach for Ethernet Controllers to Support Time-triggered Trac in the Upcoming IEEE TSN Standards

JAMS: Jitter-Aware Message Scheduling for FlexRay Automotive Networks Special Session Paper

Scheduling. CSC400 - Operating Systems. 7: Scheduling. J. Sumey. one of the main tasks of an OS. the scheduler / dispatcher

Unit 2 Buffer Pool Management

Proposal for a Resource Allocation Protocol based on 802.1CS LRP

2. REAL-TIME CONTROL SYSTEM AND REAL-TIME NETWORKS

Configuration Guideline for CANopen Networks

AN1077 APPLICATION NOTE

Architectures of Automotive Electrical. Nicolas Navet. Can be freely used for teaching Complexity Mastered. Outline

Lecture 5: Performance Analysis I

Burst-mode Transceivers and Differentiated Classes of Service for PON. Dr. Monir Hossen ECE, KUET

nesc Prof. Chenyang Lu How should network msg be handled? Too much memory for buffering and threads

Design Optimization of Multi-Cluster Embedded Systems for Real-Time Applications

Chapter 5: CPU Scheduling

Real-Time Operating Systems Issues. Realtime Scheduling in SunOS 5.0

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Mentor Automotive. Vehicle Network Design to meet the needs of ADAS and Autonomous Driving

The Effects of Asymmetry on TCP Performance

CPU Scheduling. Rab Nawaz Jadoon. Assistant Professor DCS. Pakistan. COMSATS, Lahore. Department of Computer Science

A Practical Message ID Assignment Policy for Controller Area Network that Maximizes Extensibility

ECE 697J Advanced Topics in Computer Networks

Tutorial 11. Final Exam Review

Chapter -5 QUALITY OF SERVICE (QOS) PLATFORM DESIGN FOR REAL TIME MULTIMEDIA APPLICATIONS

Uniprocessor Scheduling. Aim of Scheduling

Uniprocessor Scheduling. Aim of Scheduling. Types of Scheduling. Long-Term Scheduling. Chapter 9. Response time Throughput Processor efficiency

CHAPTER 7 COMPARISON OF DIFFERENT ROUTING SCHEMES

Operating Systems, Concurrency and Time. real-time communication and CAN. Johan Lukkien

Getafix: Workload-aware Distributed Interactive Analytics

SMD149 - Operating Systems

CAN protocol enhancement

Schedule Integration for Time-Triggered Systems

Communication (III) Kai Huang

High-Speed Reprogramming and Calibration with CAN FD: A Case Study

Distributed Embedded Systems and realtime networks

Presented by: Murad Kaplan

Pick a time window size w. In time span w, are there, Multiple References, to nearby addresses: Spatial Locality

Trade Offs in the Design of a Router with Both Guaranteed and Best-Effort Services for Networks on Chip

CPU Scheduling. CSE 2431: Introduction to Operating Systems Reading: Chapter 6, [OSC] (except Sections )

A Generalized Blind Scheduling Policy

Real-Time Component Software. slide credits: H. Kopetz, P. Puschner

Operating System Concepts Ch. 5: Scheduling

Computer Networking. Queue Management and Quality of Service (QOS)

Chap 7, 8: Scheduling. Dongkun Shin, SKKU

Real-time Multiple Video Player Systems

Subject Name: OPERATING SYSTEMS. Subject Code: 10EC65. Prepared By: Kala H S and Remya R. Department: ECE. Date:

Streaming Video and TCP-Friendly Congestion Control

Not all SD-WANs are Created Equal: Performance Matters

Zilog Real-Time Kernel

Uniprocessor Scheduling. Basic Concepts Scheduling Criteria Scheduling Algorithms. Three level scheduling

Transcription:

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

0 0 0 Scheduling frames with offsets?! Principle: desynchronize transmissions to avoid load peaks 10 5 0 15 5 5 Periods 20 ms 15 ms 10 ms 0 10 20 30 40 50 60 70 80 90 100 110 5 2,5 0 5 2,5 0 Periods 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 ECU task Frame Transmission request CAN Higher prio. frames frame 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 ECU task Frame Transmission request CAN Higher prio. frames frame In addition, avoiding consecutive frame constructions on an ECU allows to reduce latency 6

Ideas: Offsets Algorithm (1/3) 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) Time 0 2 4 6 8 10 12 14 16 18 Frame f 1,1 f 2,1 f 1,2 f 3,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 : - handle 100+ frames - very fast execution times 2 1 -FIFO -Highest Priority First (HPF - Autosar) -Carmaker specific - waiting queue policy at the microcontroller level - limited number of transmission buffers CAN Controller 9 6 8 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 userdefined 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 Further large improvements are possible by synchronizing the ECUs + Complexity + Determinism 23

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