Task- and Network-level Schedule Co-Synthesis of Ethernet-based Time-triggered Systems

Similar documents
Schedule Integration for Time-Triggered Systems

Deterministic Ethernet & Unified Networking

Optimization of TTEthernet Networks to Support Best-Effort Traffic

An Introduction to TTEthernet

Scheduling Real-Time Communication in IEEE 802.1Qbv Time Sensitive Networks

Analysis of Deterministic Ethernet Scheduling for the Industrial Internet of Things

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

Time-Triggered Ethernet

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

Formal Timing Analysis of Ethernet AVB for Industrial Automation

Deterministic Ethernet as Reliable Communication Infrastructure for Distributed Dependable Systems

Distributed IMA with TTEthernet

DTU IMM. MSc Thesis. Analysis and Optimization of TTEthernet-based Safety Critical Embedded Systems. Radoslav Hristov Todorov s080990

Communication (III) Kai Huang

Design Optimization of Frame Preemption in Real-Time Switched Ethernet

Applying CORBA to embedded time-triggered real-time systems. S. Aslam-Mir (Sam) Principal CORBA Architect Vertel USA

IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, VOL. 7, NO. 1, FEBRUARY

Optimal Implementation of Simulink Models on Multicore Architectures with Partitioned Fixed Priority Scheduling

LAN Overview (part 2) Interconnecting LANs - Hubs

Combined Task- and Network-level Scheduling for Distributed Time-Triggered Systems

Design Optimization of TTEthernet-based Distributed Real-Time Systems

Dependable Computer Systems

Technology for Adaptive Hard. Rui Santos, UA

Flexray Communication Controller for Intra-Vehicular Communication and Its Realization in FPGA

A Time-Triggered Ethernet (TTE) Switch

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

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

Chapter 6 Connecting Device

Generic term for using the Ethernet standard in automation / industrial applications

Model-Based Design of Automotive RT Applications

Compositional Analysis of Switched Ethernet Topologies

Understanding and Using the Controller Area Network Communication Protocol

An Encapsulated Communication System for Integrated Architectures

Design and Realization of TTE Network based on EDA

Implementation of the hardwired AFDX NIC

Scheduling Real-Time Communication in IEEE 802.1Qbv Time Sensitive Networks

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

Paul Milbredt AUDI AG, Germany CC 0 (Communication Cycle) CC 1 CC 63. Static Segment

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

An Application-Specific Design Methodology for STbus Crossbar Generation

Coexistence of Time-Triggered and Event-Triggered Traffic in Switched Full-Duplex Ethernet Networks

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

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

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

COS 140: Foundations of Computer Science

Running Head: NETWORKING 1

Latency on a Switched Ethernet Network

Real-Time Systems. Real-Time Communication. Hermann Härtig, Jork Löser (following Kopetz, Liu, Almeida, Jon Currey, Schönberg)

Developing and Testing Networked Avionics Systems and Devices By Troy Troshynski, Avionics Interface Technologies

Networked Control Systems for Manufacturing: Parameterization, Differentiation, Evaluation, and Application. Ling Wang

Time-Triggered Co-Scheduling of Computation and Communication with Jitter Requirements

Applied Networks & Security

Design and Performance Evaluation of a New Spatial Reuse FireWire Protocol. Master s thesis defense by Vijay Chandramohan

Evaluation of numerical bus systems used in rocket engine test facilities

COS 140: Foundations of Computer Science

IEEE Time-Sensitive Networking (TSN)

Applied Networks & Security

Compositional Analysis of Switched Ethernet Topologies

Delay Histogram Analysis

RT-Link: A global time-synchronized link protocol for sensor networks Anthony Rowe, Rahul Mangharam, Raj Rajkumar

Why an additional Shaper

Distributed Embedded Systems and realtime networks

AUTOBEST: A United AUTOSAR-OS And ARINC 653 Kernel. Alexander Züpke, Marc Bommert, Daniel Lohmann

European Network on New Sensing Technologies for Air Pollution Control and Environmental Sustainability - EuNetAir COST Action TD1105

Md. Imrul Hassan, Hai L. Vu, and Taka Sakurai Centre for Advanced Internet Architectures, Faculty of ICT Swinburne University, Australia

Communication in Avionics

Efficient Latency Guarantees for Mixed-criticality Networks-on-Chip

Latency on a Switched Ethernet Network

Routing Optimization of AVB Streams in TSN Networks

Quality-of-Service Modeling and Analysis of Dependable Aplication Models

Avnu Alliance Introduction

The Arbitrated Network Control Systems Approach to CPS

Real-time Ethernet Residual Bus Simulation: A Model-Based Testing Approach for the Next-Generation In-Car Network

SEtSim: A Modular Simulation Tool for Switched Ethernet Networks

Chapter 16: Switched Ethernet in Automation. Wenbo Qiao

Ethernet Technologies

First GENESYS Architectures Implemented in the INDEXYS Project

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

Taking the Right Turn with Safe and Modular Solutions for the Automotive Industry

SWITCHED ETHERNET TESTING FOR AVIONICS APPLICATIONS. Ken Bisson Troy Troshynski

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

Control Performance-Aware System Level Design

Reaching for the sky with certified and safe solutions for the aerospace market

Shared Cache Aware Task Mapping for WCRT Minimization

Routing Algorithms for IEEE802.1Qbv Networks

Timing Analysis of Rate Constrained Traffic for the TTEthernet Communication Protocol

Top-Down Network Design

The Flooding Time Synchronization Protocol

Robustness for Control-Data-Traffic in Time Sensitive Networks

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

European Conference on Nanoelectronics and Embedded Systems for Electric Mobility. Automotive Ethernet The Road Ahead

Pattern-Based Analysis of an Embedded Real-Time System Architecture

Analysis QoS Parameters for Mobile Ad-Hoc Network Routing Protocols: Under Group Mobility Model

Scheduling with Bus Access Optimization for Distributed Embedded Systems

WCET-Aware C Compiler: WCC

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

Fault tolerant TTCAN networks

Switched Ethernet Virtual LANs

Real-Time Communications. LS 12, TU Dortmund

Accelerating Analytical Workloads

Transcription:

Task- and Network-level Schedule Co-Synthesis of Ethernet-based Time-triggered Systems 2 Licong Zhang, Dip Goswami, Reinhard Schneider, Samarjit Chakraborty 1 1 1 1 Institute for Real-Time Computer Systems, TU Munich, Germany 2 Electrical Engineering Department, TU Eindhoven, Netherlands ASP-DAC 2014 Jan. 21, 2014

Overview Problem Ethernet-based time-triggered system Co-synthesis of task and communication schedule Application-level (multi-)objectives

Overview Problem Ethernet-based time-triggered system Co-synthesis of task and communication schedule Application-level (multi-)objectives Approach Formulation of the problem in Mixed Integer Programming model System description, constraints and objectives formulation Configurations applications tasks communication MIP model Synthesized schedules network topology device performance system description constraints formulation MIP Solver task schedules communication schedules Objectives timing requirements timing objectives objectives formulation results of objectives

Outline Motivation Ethernet-based Time-triggered System Constraints Formulation Multi-objective Optimization Experimental Results Concluding Remarks

Motivation Ethernet in safety-critical domain Safety-critical domains: avionics, automotive, industrial automation Increased complexity and load on communication Conventional buses reaching limits (e.g. CAN, FlexRay in automotive) Progress in Ethernet offers better determinism and QoS 1/19

Motivation Ethernet in safety-critical domain Safety-critical domains: avionics, automotive, industrial automation Increased complexity and load on communication Conventional buses reaching limits (e.g. CAN, FlexRay in automotive) Progress in Ethernet offers better determinism and QoS Need for performance guarantees Safety-critical applications (e.g. vehicle/plane dynamics control) Need for ultra-low latency, jitter and determinism 1/19

Motivation Ethernet in safety-critical domain Safety-critical domains: avionics, automotive, industrial automation Increased complexity and load on communication Conventional buses reaching limits (e.g. CAN, FlexRay in automotive) Progress in Ethernet offers better determinism and QoS Need for performance guarantees Safety-critical applications (e.g. vehicle/plane dynamics control) Need for ultra-low latency, jitter and determinism Time-triggered systems Offers determinism Schedules can be synthesized to minimize latency 1/19

Motivation Task- and communication-level schedule co-synthesis Application-level timing more important (e.g. feedback control loop) Schedules of tasks and communication must be synchronized Separate task or communication schedule synthesis -> not leading to optimal application-level timing properties 2/19

Motivation Task- and communication-level schedule co-synthesis Application-level timing more important (e.g. feedback control loop) Schedules of tasks and communication must be synchronized Separate task or communication schedule synthesis -> not leading to optimal application-level timing properties Related work On general time-triggered architecture [6] Schedule synthesis of FlexRay-based time-triggered system[7,8,9] Communication schedule synthesis of time-triggered Ethernet [10,11,12,13] 2/19

Motivation Task- and communication-level schedule co-synthesis Application-level timing more important (e.g. feedback control loop) Schedules of tasks and communication must be synchronized Separate task or communication schedule synthesis -> not leading to optimal application-level timing properties Related work On general time-triggered architecture [6] Schedule synthesis of FlexRay-based time-triggered system[7,8,9] Communication schedule synthesis of time-triggered Ethernet [10,11,12,13] Contributions Task and communication schedule co-synthesis in Ethernet-based time-triggered system (problem formulation in Mixed Integer Programming) Multi-objective optimization according to application-level objectives 2/19

Time-triggered Distributed System Distributed system Task partition and mapping onto different processing units Data sent through a network (e.g. CAN, Ethernet) Application-level timing -> interplay between tasks and communication application 3/19

Time-triggered Distributed System Distributed system Task partition and mapping onto different processing units Data sent through a network (e.g. CAN, Ethernet) Application-level timing -> interplay between tasks and communication application tasks/messages 3/19

Time-triggered Distributed System Distributed system Task partition and mapping onto different processing units Data sent through a network (e.g. CAN, Ethernet) Application-level timing -> interplay between tasks and communication application tasks/messages processing units network 3/19

Time-triggered Distributed System Distributed system Task partition and mapping onto different processing units Data sent through a network (e.g. CAN, Ethernet) Application-level timing -> interplay between tasks and communication application tasks/messages Time-triggered non-preemptive task scheduling processing units network Pre-defined static schedule / a task can not be preempted (e.g. ecos) Time-triggered communication scheduling Pre-defined static schedule for message transmission (e.g. FlexRay static seg., TTP) 3/19

Time-triggered Ethernet Communication Switched Ethernet Processing units connected through switches Commonly with full-duplex links Ethernet frames forwarded switch by switch PU SW SW SW PU 4/19

Time-triggered Ethernet Communication Switched Ethernet Processing units connected through switches Commonly with full-duplex links Ethernet frames forwarded switch by switch PU SW SW SW PU Network latency Propagation delay (negligible) Transmission delay Switch delay transmission delay switch delay 4/19

PORT PORT Time-triggered Ethernet Communication Switched Ethernet Processing units connected through switches Commonly with full-duplex links Ethernet frames forwarded switch by switch PU SW SW SW PU Network latency transmission delay switch delay Propagation delay (negligible) Transmission delay PORT Switch delay Processing delay CrossBar Queuing delay -> not deterministic -> can be relatively large PORT frame forwarding processing delay queuing delay 4/19

Time-triggered Ethernet Communication Time-triggered Ethernet communication Frames are scheduled to avoid queuing delay Frames are not queued at the output port Frame transmission on each link according to static schedule 5/19

Time-triggered Ethernet Communication Time-triggered Ethernet communication Frames are scheduled to avoid queuing delay Frames are not queued at the output port Frame transmission on each link according to static schedule 1 Link 1 5 Link 3 6 2 Link 2 End Station (Processing Unit) Link 4 3 Link 5 4 Switch Link 1 (1->5) Link 2 (2->5) Link 2 (5->2) Link 3 (5->6) Link 4 (6->3) Link 5 (6->4) t Transmission Time Schedule 5/19

Time-triggered Ethernet Communication Time-triggered Ethernet communication Frames are scheduled to avoid queuing delay Frames are not queued at the output port Frame transmission on each link according to static schedule 1 Link 1 Frame 1 5 Link 3 6 2 Link 2 End Station (Processing Unit) Link 4 Link 5 3 4 Switch Link 1 (1->5) Link 2 (2->5) Link 2 (5->2) Link 3 (5->6) Link 4 (6->3) Link 5 (6->4) t Transmission Time Schedule 5/19

Time-triggered Ethernet Communication Time-triggered Ethernet communication Frames are scheduled to avoid queuing delay Frames are not queued at the output port Frame transmission on each link according to static schedule 1 Link 1 Frame 1 5 Link 3 6 Link 2 Frame 2 2 End Station (Processing Unit) Link 4 Link 5 3 4 Switch Link 1 (1->5) Link 2 (2->5) Link 2 (5->2) Link 3 (5->6) Link 4 (6->3) Link 5 (6->4) t Transmission Time Schedule 5/19

Time-triggered Ethernet Communication Time-triggered Ethernet communication Frames are scheduled to avoid queuing delay Frames are not queued at the output port Frame transmission on each link according to static schedule 1 Link 1 Frame 1 5 Link 3 6 Frame 4 Link 2 Frame 2 2 End Station (Processing Unit) Link 4 3 Frame 3 Link 5 4 Switch Link 1 (1->5) Link 2 (2->5) Link 2 (5->2) Link 3 (5->6) Link 4 (6->3) Link 5 (6->4) t Transmission Time Schedule 5/19

Time-triggered Ethernet Communication Time-triggered Ethernet communication Frames are scheduled to avoid queuing delay Frames are not queued at the output port Frame transmission on each link according to static schedule 1 Link 1 Frame 1 5 Link 3 6 Frame 4 Link 2 Frame 2 2 End Station (Processing Unit) Link 4 3 Frame 3 Link 5 4 Switch Link 1 (1->5) Link 2 (2->5) Link 2 (5->2) Link 3 (5->6) Link 4 (6->3) Link 5 (6->4) t Transmission Time Schedule Ethernet-based protocols with time-triggered traffic Profinet IRT [1] Time-triggered traffic in TT Ethernet [3] IEEE802.1Qbv (not yet released) [5] 5/19

Problem Formulation Topology processing units or switches Ethernet links 6/19

Problem Formulation Topology processing units or switches Ethernet links Application task period, offset, WCET 6/19

Problem Formulation Topology processing units or switches Ethernet links Application task period, offset, WCET Communication task frame, path tree, offsets, period 6/19

Problem Formulation Topology processing units or switches Ethernet links Application task period, offset, WCET Communication task frame, path tree, offsets, period path from sender to one receiver path tree all paths in a communication task t 6/19

Problem Formulation Application task chain, period response time, latency 7/19

Problem Formulation Application task chain, period response time, latency task chain all application and communication tasks in temporal order response time time from period begin to the end of last task in task chain end-to-end latency time from begin of first task to the end of last task in task chain t 7/19

Problem Formulation Application task chain, period response time, latency Schedule co-synthesis problem To co-synthesize task schedules communication schedules according to application-level objectives (e.g. end-to-end latency, response time) t 7/19

Mixed Integer Programming (MIP) Mixed Integer (Linear) Programming : minimize subject to some variables in must take integer values Model formulation Formulate system constraints of the co-synthesis problem into a MIP problem 8/19

Constraints (C1) Collision-free application tasks no overlap between execution of two instances of tasks or PU PU t t end of begin of enumerate instances if periods are not equal 9/19

Constraints (C1) Collision-free application tasks no overlap between execution of two instances of tasks or PU PU t t end of begin of enumerate instances if periods are not equal (C2) Collision-free communication tasks no overlap between transmission of two frames or t end of Inter-frame gap begin of t 9/19

Constraints (C3) Path dependency Communication schedules -> correct temporal order in the path schedule on one link schedule on the following link t 10/19

Constraints (C3) Path dependency Communication schedules -> correct temporal order in the path schedule on one link schedule on the following link (C4) Data dependency task and communication schedules -> correct temporal order in task chain if followed by if followed by if followed by t 10/19

Constraints (C5) Application response time Response time < upper bound t 11/19

Constraints (C5) Application response time Response time < upper bound (C6) Application end-to-end latency End-to-end latency < upper bound t 11/19

Multi-Objective Optimization Application-level objectives Response time -> Applications that need to be finished as soon as possible in a period -> E.g. platform/system states, data/state integrity checks For a set of applications Max. response time: AVG. response time: period response time latency first task last task in an application 12/19

Multi-Objective Optimization Application-level objectives Response time -> Applications that need to be finished as soon as possible in a period -> E.g. platform/system states, data/state integrity checks For a set of applications Max. response time: AVG. response time: End-to-end latency -> Applications that need to have a low latency -> E.g. feedback control loops Max. latency: AVG. latency: period response time latency first task last task in an application 12/19

Multi-Objective Optimization Application-level objectives Response time -> Applications that need to be finished as soon as possible in a period -> E.g. platform/system states, data/state integrity checks For a set of applications Max. response time: AVG. response time: End-to-end latency -> Applications that need to have a low latency -> E.g. feedback control loops Max. latency: AVG. latency: Multi-objective optimization Optimize according to several objectives For all objectives period response time latency first task last task in an application 12/19

MIP Model Formulation/Solving Constraints and objective formulation MIP Simple inequity constraints: -> straight forward constraint formulation Either-or constraints (e.g. collision free constraints) : -> introduce a binary decision variable and formulate the constraint with two inequities [15] Mini-max objective (e.g. max. latency of N applications): -> introduce a continuous variable in the objective function and N inequities in the constraints [15] Solving the MIP models Commercial or non-commercial solvers (e.g. Gurobi, Cplex) 13/19

Case Study System description 30 applications: to, 53 application tasks, 23 communication tasks (frames) Harmonic periods {4,5,10,20} ms, various WCETs and frame lengths Network topologies 12 processing units 4 topologies 14/19

Case Study System description 30 applications: to, 53 application tasks, 23 communication tasks (frames) Harmonic periods {4,5,10,20} ms, various WCETs and frame lengths Network topologies 12 processing units 4 topologies Optimization Objectives max. response time of to max. response time of to max. response time of to avg. response time of to max. end-to-end latency of to 14/19

Experimental Results Experimental Results Comparison of different single-objective optimizations in tree topology 15/19

Experimental Results Experimental Results Comparison of different single-objective optimizations in tree topology min min min min min 15/19

Experimental Results Experimental Results Comparison of different multi-objective optimizations in tree topology multi-objective case 16/19

Experimental Results Experimental Results Comparison of different multi-objective optimizations in tree topology multi-objective case multi-objective case 16/19

Experimental Results Influence of weight in multi-objective optimization multi-objective case with different weight ratio for 17/19

Computational Cost/ Scalability Scalability analysis Synthetic test configurations from size of 9 application to 90 applications Setup: 1.87GHz dual core CPU, 4 GB memory, MATLAB 2010 with Gurobi 5.10 18/19

Concluding Remarks Approach Schedule co-synthesis problem for Ethernet-based time-triggered system Formulation of constraints in such a system Multi-objective optimization 19/19

Concluding Remarks Approach Schedule co-synthesis problem for Ethernet-based time-triggered system Formulation of constraints in such a system Multi-objective optimization Co-synthesis of task and communication schedules according to application-level objectives Independent of task and communication configuration, network topologies and device performance 19/19

Concluding Remarks Approach Schedule co-synthesis problem for Ethernet-based time-triggered system Formulation of constraints in such a system Multi-objective optimization Co-synthesis of task and communication schedules according to application-level objectives Independent of task and communication configuration, network topologies and device performance Outlook Extensibility and sustainability of synthesized schedules Local sub-optimal searches for plug-in schedules Schedule synthesis according to function-level properties 19/19

References [1] R. Pigan, M. Metter, Automating with PROFINET, Publicis Publishing, 2nd edition,. [2] 664P7-1 Aircraft Data Network, Part 7, Avionics Full-Duplex Switched Ethernet Network, ARINC, 2009. [3] AS6802: Time-triggered Ethernet, SAE International, 2011. [4] Media access contro (MAC) bridges and virtual bridge local area networks, IEEE Computer Society, 2011. [5] http://www.ieee802.org/1/pages/802.1bv.html. [6] H. Kopetz, G. Bauer, The time-triggered architecture, Proceedings of the IEEE, vol. 91, iss. 1, 112-126, 2003. [7] M. Lukasiewycz, M.Glass, J. Teich, P. Milbredt, FlexRay schedule optimization of the static segment, CODES+ISSS, 2009. [8] H. Zeng, M. Di Natale, A. Ghosal, A. Sandiovanni-Vincentelli, Schedule optimization of time-triggered systems communicating over the FlexRay static segment, Industrial Infomatics, IEEE Transactions on, vol. 7, iss. 1, 1-17, 2011. [9] D. Goswami, M. Lukasiewycz, R. Schneider, S. Chakraborty, Time-triggered implementations of mixed-criticality automotive software, DATE, 2012. [10] W. Steiner, An evaluation of SMT-based schedule synthesis for time-triggered multi-hop netoworks, RTSS, 2010. [11] W. Steiner, Synthesis of static communication schedules for mixed-criticality systems, ISORCW, 2011. [12] Z. Hanzalek, P. Burget, P. Sucha, Profinet IO IRT message scheduling with temporal constraints, Industrial Informatics, IEEE Transactions on, vol. 6, iss. 3, 269-380, 2010. [13] D. Tamas-Selicean, P. Pop, W. Steiner, Synthesis of communication schedules for TTEthernet-based mixed-criticality sytems, CODES+ISSS, 2012. [14] R. Seifert, J. Edwards, The All-New Switch Book: The Complete Guide to LAN Switching Technology, Wiley Publishing, Inc., 2008. [15] H. P. Williams, Model Building in Mathematical Programming, 4th edition, John Wiley and Sonds, LTD, 1999. [16] www.gurobi.com

The End Many thanks Q/A