runtime enforcement of reactive systems using synchronous
play

Runtime Enforcement of Reactive Systems using Synchronous Enforcers - PowerPoint PPT Presentation

Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime Enforcement of Reactive Systems using Synchronous Enforcers Srinivas Pinisetty 1 , Partha Roop 3 , Steven Smyth


  1. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime Enforcement of Reactive Systems using Synchronous Enforcers Srinivas Pinisetty 1 , Partha Roop 3 , Steven Smyth 4 , Stavros Tripakis 1 , 2 , Reinhard von Hanxleden 4 Aalto University, Finland University of California, Berkeley University of Auckland, New Zealand Kiel University, Germany Partha Roop Synchron-2016, Bamberg 7 December 2016 1 / 32

  2. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Implantable pacemakers Heart Pacemaker ATRIAL ATRIAL H_APulse SENSING OUTPUT CIRCUIT CIRCUIT B SA node H_VPulse A VENTRICULAR T Left PACEMAKER SENSING T bundle APace CIRCUIT CONTROLLER E branch R AV node RA Y VPace VENTRICULAR RV EXTERNAL OUTPUT TIMERS CIRCUIT a Right bundle branch a Zhao and Roop, “Model Driven Design of Cardiac Pacemakers using IEC61499, CRC Press, 2015”. Partha Roop Synchron-2016, Bamberg 7 December 2016 2 / 32

  3. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Adverse events [Ref.]: Alemzadeh, H., Iyer, R.K., Kalbarczyk, Z., Raman, J., “Analysis of Safety-Critical Computer a Failures in Medical Devices”, Security and Privacy , IEEE , vol.11, no.4. pp.14,26. July-Aug, 2013. a This figure is reproduced from the reference above. Partha Roop Synchron-2016, Bamberg 7 December 2016 3 / 32

  4. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Approaches to enhance pacemaker software Two key CS related initiatives: http://cybercardia.cs.stonybrook.edu, and Marta Kwiatkowska’s group in Oxford. Model-based approach: Modeling and verification of a dual chamber implantable pacemaker, Jiang, Pajic, Moarref, Alur, Mangaram. TACAS 2012 Testing: Heart-on-a-chip: A closed-loop testing platform for implantable pacemakers Jiang, Radhakrishnan, Sampath, Sarode, Mangharam. CyPhy 2013 Requirements-Centric Closed-Loop Validation of Implantable Cardiac Devices. Weiwei Ai, Nitish Patel and Partha Roop. DATE ’16. Except the work of Ai et al., others consider a static model of the heart during closed-loop testing / model checking. Focus of the current work is on run-time enforcement , where a dynamically evolving heart model and a pacemaker can be used for run-time verification and enforcement. Partha Roop Synchron-2016, Bamberg 7 December 2016 4 / 32

  5. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime verification and enforcement Runtime verification Runtime enforcement Property ϕ Property ϕ Verification events events verdicts events Monitor Enforcer a · a · b · · · a · a · · · | = ϕ a · b · · · ? · True · · · Input: stream of events. Does σ satisfy ϕ ? Modified to satisfy the Output: stream of verdicts . property. Output: stream of events . Partha Roop Synchron-2016, Bamberg 7 December 2016 5 / 32

  6. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime enforcement (previous work) ϕ σ ∈ Σ ∗ o ∈ ϕ Event Event Enforcer Emitter Receiver Partha Roop Synchron-2016, Bamberg 7 December 2016 6 / 32

  7. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime enforcement (previous work) ϕ σ ∈ Σ ∗ o ∈ ϕ Event Event Enforcer Emitter Receiver Enforcer for ϕ operating at runtime ϕ : any regular property (defined as automaton). Partha Roop Synchron-2016, Bamberg 7 December 2016 6 / 32

  8. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime enforcement (previous work) ϕ σ ∈ Σ ∗ o ∈ ϕ Event Event Enforcer Emitter Receiver Enforcer for ϕ operating at runtime ϕ : any regular property (defined as automaton). An enforcer behaves as a function E : Σ ∗ → Σ ∗ . Input ( σ ∈ Σ ∗ ): any sequence of events over Σ (Event emitter is a black-box). Partha Roop Synchron-2016, Bamberg 7 December 2016 6 / 32

  9. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Runtime enforcement (previous work) ϕ σ ∈ Σ ∗ o ∈ ϕ Event Event Enforcer Emitter Receiver Enforcer for ϕ operating at runtime ϕ : any regular property (defined as automaton). An enforcer behaves as a function E : Σ ∗ → Σ ∗ . Input ( σ ∈ Σ ∗ ): any sequence of events over Σ (Event emitter is a black-box). Output ( o ∈ Σ ∗ ): a sequence of events such that o | = ϕ . Partha Roop Synchron-2016, Bamberg 7 December 2016 6 / 32

  10. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Example: EM Property ϕ a | b | c a | b | c ! l 0 l 1 l 3 Σ = { a , b , c , ! } Σ ! l 2 Σ Partha Roop Synchron-2016, Bamberg 7 December 2016 7 / 32

  11. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Example: EM Property ϕ a | b | c a | b | c ! l 0 l 1 l 3 Σ = { a , b , c , ! } Σ ! l 2 Σ INPUT MEMORY OUTPUT a �∈ ϕ a ǫ Partha Roop Synchron-2016, Bamberg 7 December 2016 7 / 32

  12. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Example: EM Property ϕ a | b | c a | b | c ! l 0 l 1 l 3 Σ = { a , b , c , ! } Σ ! l 2 Σ INPUT MEMORY OUTPUT a �∈ ϕ a ǫ a · b �∈ ϕ a · b ǫ a · b · c �∈ ϕ a · b · c ǫ Partha Roop Synchron-2016, Bamberg 7 December 2016 7 / 32

  13. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Example: EM Property ϕ a | b | c a | b | c ! l 0 l 1 l 3 Σ = { a , b , c , ! } Σ ! l 2 Σ INPUT MEMORY OUTPUT a �∈ ϕ a ǫ a · b �∈ ϕ a · b ǫ a · b · c �∈ ϕ a · b · c ǫ a · b · c · ! ∈ ϕ a · b · c · ! ǫ Partha Roop Synchron-2016, Bamberg 7 December 2016 7 / 32

  14. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Example: EM Property ϕ a | b | c a | b | c ! l 0 l 1 l 3 Σ = { a , b , c , ! } Σ ! l 2 Σ INPUT MEMORY OUTPUT a �∈ ϕ a ǫ a · b �∈ ϕ a · b ǫ a · b · c �∈ ϕ a · b · c ǫ a · b · c · ! ∈ ϕ a · b · c · ! ǫ Remarks Store events in the memory until observing input sequence that satisfies ϕ . Partha Roop Synchron-2016, Bamberg 7 December 2016 7 / 32

  15. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Shield Synthesis 1 Designed for reactive systems. Shield must “act upon erroneous outputs on the fly”, without knowledge of the future. Has multiple input streams to deal with. 1 Bloem et al., TACAS, 2015 Partha Roop Synchron-2016, Bamberg 7 December 2016 8 / 32

  16. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Synchronous Languages The reactive system operates “infinitely fast” relative to the environment. This is known as the synchrony hypothesis. All concurrent components progress in “lock-step” relative to the ticks of a logical clock. Concurrency is usually “compiled away” to produce sequential code. Partha Roop Synchron-2016, Bamberg 7 December 2016 9 / 32

  17. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Synchronous observers module BeatObserver: 1 input AS; VS 2 output beatViolation; 3 loop 4 present AS and VS then 5 emit beatViolation; 6 end; 7 pause; 8 end loop 9 end module 10 Figure: BeatObserver in Esterel Partha Roop Synchron-2016, Bamberg 7 December 2016 10 / 32

  18. Part-I: Introduction Preliminaries Problem Def. Functional Def. Algorithm Application to SCCharts and Results Conclusions Problem Statement Observers are usually static entities. Run-time observers may be considered as run-time verifiers but these are not enforcers. Observers are specified by the designers while monitors / enforcers are automatically synthesized from the specification of properties. Shield synthesis: this is the closest to our framework. Has two limitations. First, it performs no enforcement on the environment, which is very important for reactive systems. Second, it lacks causality and performs uni-directional enforcement. For synchronous reactive systems, enhanced bi-directional enforcement is essential. Partha Roop Synchron-2016, Bamberg 7 December 2016 11 / 32

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend