Logical Reliability of Interacting Real-Time Tasks Krishnendu Chatterjee, UC Berkeley Arkadeb Ghosal, UC Berkeley Thomas A. Henzinger, EPFL Daniel Iercan,

Slides:



Advertisements
Similar presentations
Separate Compilation of Hierarchical Real-Time Programs into Linear-Bounded Embedded Machine Code Arkadeb GHOSAL, UC Berkeley Christoph KIRSCH, University.
Advertisements

Design by Contract.
Flexible Scheduling of Software with Logical Execution Time Constraints* Stefan Resmerita and Patricia Derler University of Salzburg, Austria *UC Berkeley,
Translation-Based Compositional Reasoning for Software Systems Fei Xie and James C. Browne Robert P. Kurshan Cadence Design Systems.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
A General Characterization of Indulgence R. Guerraoui EPFL joint work with N. Lynch (MIT)
A Hierarchical Co-ordination Language for Interacting Real-time Tasks Arkadeb Ghosal, UC Berkeley Thomas A. Henzinger, EPFL Daniel Iercan, "Politehnica"
Parallel Programming Motivation and terminology – from ACM/IEEE 2013 curricula.
CS 795 – Spring  “Software Systems are increasingly Situated in dynamic, mission critical settings ◦ Operational profile is dynamic, and depends.
1 Design by Contract Building Reliable Software. 2 Software Correctness Correctness is a relative notion  A program is correct with respect to its specification.
Modeling Kanban Scheduling in Systems of Systems Alexey Tregubov, Jo Ann Lane.
An Associative Broadcast Based Coordination Model for Distributed Processes James C. Browne Kevin Kane Hongxia Tian Department of Computer Sciences The.
1 Sensor Relocation in Mobile Sensor Networks Guiling Wang, Guohong Cao, Tom La Porta, and Wensheng Zhang Department of Computer Science & Engineering.
Lab Meeting Performance Analysis of Distributed Embedded Systems Lothar Thiele and Ernesto Wandeler Presented by Alex Cameron 17 th August, 2012.
Event Driven Real-Time Programming CHESS Review University of California, Berkeley, USA May 10, 2004 Arkadeb Ghosal Joint work with Marco A. Sanvido, Christoph.
Introduction Designing cost-sensitive real-time control systems for safety-critical applications requires a careful analysis of the cost/fault-coverage.
Overview of PTIDES Project
Date:2011/06/08 吳昕澧 BOA: The Bayesian Optimization Algorithm.
Integrated Design and Analysis Tools for Software-Based Control Systems Shankar Sastry (PI) Tom Henzinger Edward Lee University of California, Berkeley.
CS 582 / CMPE 481 Distributed Systems Fault Tolerance.
Chess Review May 11, 2005 Berkeley, CA Composable Code Generation for Distributed Giotto Tom Henzinger Christoph Kirsch Slobodan Matic.
Design of Fault Tolerant Data Flow in Ptolemy II Mark McKelvin EE290 N, Fall 2004 Final Project.
© Chinese University, CSE Dept. Distributed Systems / Distributed Systems Topic 9: Time, Coordination and Replication Dr. Michael R. Lyu Computer.
Expressing Giotto in xGiotto and related schedulability problems Class Project Presentation Concurrent Models of Computation for Embedded Software University.
Giotto A Time-Triggered Language for Embedded Programming Thomas A. Henzinger, Benjamin Horowitz Christoph M. Kirsch, Rupak Majumdar UC Berkeley.
Agent-Based Acceptability-Oriented Computing International Symposium on Software Reliability Engineering Fast Abstract by Shana Hyvat.
SNAL Sensor Networks Application Language Alvise Bonivento Mentor: Prof. Sangiovanni-Vincentelli 290N project, Fall 04.
Designing Predictable and Robust Systems Tom Henzinger UC Berkeley and EPFL.
November 18, 2004 Embedded System Design Flow Arkadeb Ghosal Alessandro Pinto Daniele Gasperini Alberto Sangiovanni-Vincentelli
November 18, 2004 Conservative Approximations for Heterogeneous Design Roberto Passerone Alessandro Pinto Jerry R. Burch Alberto Sangiovanni Vincentelli.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
Frequently asked questions about software engineering
Lecture 1.
EMBEDDED SOFTWARE Team victorious Team Victorious.
Overview SAP Basis Functions. SAP Technical Overview Learning Objectives What the Basis system is How does SAP handle a transaction request Differentiating.
Chapter 1 Embedded And Real-Time System Department of Computer Science Hsu Hao Chen Professor Hsung-Pin Chang.
Analysis of Simulation Results Andy Wang CIS Computer Systems Performance Analysis.
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
Timed UML State Machines Ognyana Hristova Tutor: Priv.-Doz. Dr. Thomas Noll June, 2007.
An Introduction to Software Architecture
Mesos A Platform for Fine-Grained Resource Sharing in the Data Center Benjamin Hindman, Andy Konwinski, Matei Zaharia, Ali Ghodsi, Anthony Joseph, Randy.
Joseph Cordina 1/11 The Use of Model-Checking for the Verification of Concurrent Algorithms Joseph Cordina Department of C.S.&A.I.
Requirements Capture. Four Steps of requirements capture List candidate requirements Understand system context Capture functional requirements Capture.
S-Paxos: Eliminating the Leader Bottleneck
Conformance Test Experiments for Distributed Real-Time Systems Rachel Cardell-Oliver Complex Systems Group Department of Computer Science & Software Engineering.
Handling Mixed-Criticality in SoC- based Real-Time Embedded Systems Rodolfo Pellizzoni, Patrick Meredith, Min-Young Nam, Mu Sun, Marco Caccamo, Lui Sha.
The 14 th IEEE Real-Time and Embedded Technology and Applications Symposium, April 2008 Real-Time Distributed Discrete-Event Execution with Fault Tolerance.
6. A PPLICATION MAPPING 6.3 HW/SW partitioning 6.4 Mapping to heterogeneous multi-processors 1 6. Application mapping (part 2)
CSC480 Software Engineering Lecture 8-9 September 20, 2002.
Silberschatz, Galvin and Gagne  Operating System Concepts UNIT II Operating System Services.
Embedded and Real Time Systems Lecture #2 David Andrews
The Beauty and Joy of Computing Lecture #6 Algorithms I UC Berkeley EECS Sr Lecturer SOE Dan Garcia.
Lecture 2, CS52701 The Real Time Computing Environment I CS 5270 Lecture 2.
CGS 3763 Operating Systems Concepts Spring 2013 Dan C. Marinescu Office: HEC 304 Office hours: M-Wd 11: :30 AM.
“Distributed Algorithms” by Nancy A. Lynch SHARED MEMORY vs NETWORKS Presented By: Sumit Sukhramani Kent State University.
4 th Workshop, Amsterdam, 23 rd -25 th April 2007 ASAS-SEP Applications Airborne Implementation Overall Architectural Considerations.
A hierarchical coordination language for reliable real-time tasks Arkadeb Ghosal University of California, Berkeley Dissertation Talk CHESS Seminar 22.
What is Discrete Math?. “Discrete mathematics is the study of mathematical structures that are fundamentally discrete rather than continuous.” mathematicalstructuresdiscrete.
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
Fail-Stop Processors UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department CS 739 Distributed Systems Andrea C. Arpaci-Dusseau One paper: Byzantine.
Embedded Control System Development with Giotto Thomas A. Henzinger, Benjamin Horowitz, Christoph Meyer Kirsch UC Berkeley.
 Operating system.  Functions and components of OS.  Types of OS.  Process and a program.  Real time operating system (RTOS).
Response time analysis in real-time distributed automotive systems
Frequently asked questions about software engineering
Period Optimization for Hard Real-time Distributed Automotive Systems
Shanna-Shaye Forbes Ben Lickly Man-Kit Leung
Chapter 1: Introduction to Real-Time Systems
Topic Based Data Distribution in GSpace
CS 501: Software Engineering Fall 1999
Boltzmann Machine (BM) (§6.4)
Presentation transcript:

Logical Reliability of Interacting Real-Time Tasks Krishnendu Chatterjee, UC Berkeley Arkadeb Ghosal, UC Berkeley Thomas A. Henzinger, EPFL Daniel Iercan, ”Politehnica” U. of Timisoara Christoph M. Kirsch, University of Salzburg Claudio Pinello, Cadence Research Labs Alberto Sangiovanni-Vincentelli, UC Berkeley

2 Implementation Overview Specification Architecture Hosts Sensors s1s1 s2s2 sksk h1h1 h2h2 hnhn Properties - Task WCET - Hosts and sensors reliability Task Set t1t1 t2t2 tntn Communicator Set c1c1 c2c2 ckck Constraints - Task release time and dead line - Reliability constraints MAPPINGMAPPING MAPPINGMAPPING MAPPINGMAPPING

3 Logical Execution Time (LET) Task Model { release eventtermination event active Logical Execution Time (LET) Logical releaseterminationstartpreemptionresumecompletion running { Physical input read output written c1 LET Tasks and Communicators LET for task t1 c2 read c1 write c2

4 Timing Separation of requirements from guarantees –Timing requirements through LETs –Performance guarantees through WCETs Separation of application from architecture –Release and termination times are application dependent “logical” information –WCETs are architecture dependent “physical” data

5 Reliability Separation of reliability requirements from performance guarantee Separation of application dependent “logical” reliability from architecture dependent “physical” data

6 Logical (long-term) Reliability Constraint (LRC) Each communicator has an LRC, a real number between 0 and 1 LRC = 0.9 means in the long run, at least 0.9 fraction of all periodic writes to the communicator are required to be valid A requirement on the specification –Similar to the concept of release times and termination times in LET c1 24 ● 264 ● = 18/20 = 0.9

7 Singular (short-term) Reliability Guarantee (SRG) Guarantee of updating a communicator with valid value in one step A real number between 0 and 1 –SRG = 0.95 means that the probability that a communicator gets a reliable value at write instance is at least 0.95 –Similar to the concept of WCET in schedulability analysis t sa LRC = 1LRC = 0.9 h specificationarchitecture1 h reliability = 0.8SRG =.96 reliability = 0.95SRG = 0.95 h architecture2

8 Assumptions on Architecture and Inputs Hosts are fail-silent –A host either works correctly or stops functioning (becomes silent) Hosts are connected over a reliable broadcast network Tasks algorithms are “correct” –If a task executes reliably, the output is correct Unreliability of inputs can be accounted for three models –If an input is unreliable, the task uses a pre-defined value –If any one of the inputs fails, the task fails to execute –If all inputs are unreliable, the task fails to execute; if a subset of the inputs fail then the task may execute

9 Schedulability Analysis vs. Reliability Analysis For all tasks, time safety is ensured –All replications of a task complete execution and transmission within task LET For all communicators, long-run average of the number of reliable values observed at access points is at least LRC of the communicator –For race-free, memory-free specification, SRG of a communicator should be no less than the corresponding LRC

10 Refinement Timing* Reliability t1 t2 c1 c2 LRC(c2) ≤ LRC(c1) If LRC(c1) is satisfied, then LRC(c2) will be satisfied t1 t2 c2 c4 c1 c3 Release(t1) ≥ Release(t2) Termination(t1) ≤ Termination(t2) If t1 is schedulable, then t2 is schedulable *A Hierarchical Coordination Language for Interacting Real-Time Tasks A. Ghosal, T.A. Henzinger, D. Iercan, C.M. Kirsch, A.L. Sangiovanni-Vincentelli. 2006, EMSOFT, Seoul, Korea.

11 Schedulability Analysis vs. Reliability Analysis Refinement constraints ensure that if a specification is schedulable then refinement is schedulable for the matching implementation Refinement constraints ensure that if a specification is reliable then refinement is reliable for the matching implementation

12 Example 0 r t1 t2 u1 u2 l1 l2 estimate1 estimate2 read1 read2 u1 l1 u2 l2 l1 l2 s1 s2 c13 c32 T1 T3 T2 e1e3e2 P1P2 s1s2

13 Example : Architecture 1 H1 (0.999)H2 (0.999)H3 (0.999) s1(0.999)s2(0.999)

14 Example : Implementation 1 H1 (0.999)H2 (0.999)H3 (0.999) s1(0.999)s2(0.999) t1t2 read1 read2 estimate1 estimate2

15 Example : Reliability Analysis 1 CommunicatorLRC u10.99 u20.99 Communicators LRCs Communicators SRGs CommunicatorSRG l u l u Implementation is reliable

16 Example : Reliability Analysis 2 CommunicatorLRC u u Communicators LRCs Communicators SRGs CommunicatorSRG l u l u Implementation is not reliable

17 Example : Implementation 2 H1 (0.999)H2 (0.999)H3 (0.999) s1(0.999)s2(0.999) t1 t2 read1 read2 estimate1 estimate2 t1 t2

18 Example : Reliability Analysis 3 CommunicatorLRC u u Communicators LRCs Communicators SRGs CommunicatorSRG l u l u Implementation is reliable

19 Example: Architecture 2 and Implementation 1 H1 (0.999)H2 (0.999)H3 (0.999) s11(0.999)s21(0.999) t1t2 read1 read2 estimate1 estimate2 s12(0.999)s22(0.999)

20 Example: Reliability Analysis 4 CommunicatorLRC u u Communicators LRCs Communicators SRGs CommunicatorSRG l u l u Implementation is reliable

21 Real Experiment H1 H2 H3 t1 t2 read1 read2 estimate1 estimate2 t1 t2 h1 h2 u1 u2

22 Comparison Separation of reliability requirements (LRCs) from reliability guarantees (SRGs) LRCs are application dependent “logical” information SRGs are platform dependent “physical” data Separation of timing requirements (LETs) from performance guarantees (WCETs) Release and termination times are application dependent “logical” information WCETs are platform dependent “physical” data LET and WCET LRC and SRG

23 Conclusion Separation-of-concerns approach for the joint schedulability and reliability analysis of safety-critical real-time embedded applications Separation of reliability requirements in a specification, from the reliability guarantees offered by hosts and communication links The implementation must ensure that all timing and reliability requirements of the specification are met.

24 Thank you!