Real-Time Simulation Support for Runtime Verification of Cyber-Physical Systems

In Cyber-Physical Systems (CPS), cyber and physical components must work seamlessly in tandem. Runtime verification of CPS is essential yet very difficult, due to deployment environments that are expensive, dangerous, or simply impossible to use for verification tasks. A key enabling factor of runtime verification of CPS is the ability to integrate real-time simulations of portions of the CPS into live running systems. We propose a verification approach that allows CPS application developers to opportunistically leverage real-time simulation to support runtime verification. Our approach, termed BraceBind, allows selecting, at runtime, between actual physical processes or simulations of them to support a running CPS application. To build BraceBind, we create a real-time simulation architecture to generate and manage multiple real-time simulation environments based on existing simulation models in a manner that ensures sufficient accuracy for verifying a CPS application. Specifically, BraceBind aims to both improve simulation speed and minimize latency, thereby making it feasible to integrate simulations of physical processes into the running CPS application. BraceBind then integrates this real-time simulation architecture with an existing runtime verification approach that has low computational overhead and high accuracy. This integration uses an aspect-oriented adapter architecture that connects the variables in the cyber portion of the CPS application with either sensors and actuators in the physical world or the automatically generated real-time simulation. Our experimental results show that, with a negligible performance penalty, our approach is both efficient and effective in detecting program errors that are otherwise only detectable in a physical deployment.

[1]  Amitay Isaacs,et al.  Hardware-In-Loop Simulator for Mini Aerial Vehicle , 2022 .

[2]  J. Bélanger,et al.  The What , Where and Why of Real-Time Simulation , 2010 .

[3]  Daniel Simon,et al.  Fast multi-core co-simulation of Cyber-Physical Systems: Application to internal combustion engines , 2014, Simul. Model. Pract. Theory.

[4]  Hong Linh Truong,et al.  MQTT-S — A publish/subscribe protocol for Wireless Sensor Networks , 2008, 2008 3rd International Conference on Communication Systems Software and Middleware and Workshops (COMSWARE '08).

[5]  Christine Julien,et al.  BraceAssertion: Runtime Verification of Cyber-Physical Systems , 2015, 2015 IEEE 12th International Conference on Mobile Ad Hoc and Sensor Systems.

[6]  Camille Alain Rabbath,et al.  Real-time simulations: effective real-time simulations of event-based systems , 2000 .

[7]  Gregor Kiczales,et al.  Aspect-oriented programming , 1996, CSUR.

[8]  Andreas Junghanns,et al.  Functional Mockup Interface 2.0: The Standard for Tool independent Exchange of Simulation Models , 2012 .

[9]  Tony Givargis,et al.  Application-specific codesign platform generation for digital mockups in cyber-physical systems , 2011, 2011 Electronic System Level Synthesis Conference (ESLsyn).

[10]  Xiaowei Li,et al.  Integrated simulation and emulation platform for cyber-physical system security experimentation , 2012, HiCoNS '12.

[11]  Sanjit A. Seshia,et al.  Mining Requirements From Closed-Loop Control Models , 2015, IEEE Trans. Comput. Aided Des. Integr. Circuits Syst..

[12]  M. Baszyński Low cost, high accuracy real-time simulation used for rapid prototyping and testing control algorithms on example of BLDC motor , 2016 .

[13]  Pravin Varaiya,et al.  What's decidable about hybrid automata? , 1995, STOC '95.

[14]  Srinivas Devadas,et al.  Time-Predictable Computer Architecture for Cyber-Physical Systems: Digital Emulation of Power Electronics Systems , 2011, 2011 IEEE 32nd Real-Time Systems Symposium.

[15]  Roy E. Crosbie,et al.  Stability of multi-rate simulation algorithms , 2007, SCSC.

[16]  Gregor Kiczales,et al.  Aspect-oriented programming , 2001, ESEC/FSE-9.

[17]  David L. Mills,et al.  Internet time synchronization: the network time protocol , 1991, IEEE Trans. Commun..

[18]  Gabor Karsai,et al.  Co-simulation framework for design of time-triggered cyber physical systems , 2013, 2013 ACM/IEEE International Conference on Cyber-Physical Systems (ICCPS).

[19]  J.J. Sanchez-Gasca,et al.  Variable time step, implicit integration for extended-term power system dynamic simulation , 1995, Proceedings of Power Industry Computer Applications Conference.

[20]  Ahmad T. Al-Hammouri,et al.  A comprehensive co-simulation platform for cyber-physical systems , 2012, Comput. Commun..

[21]  Samarjit Chakraborty,et al.  Co-design of cyber-physical systems via controllers with flexible delay constraints , 2011, 16th Asia and South Pacific Design Automation Conference (ASP-DAC 2011).

[22]  Victor R. Lesser,et al.  The Soft Real-Time Agent Control Architecture , 2005, Autonomous Agents and Multi-Agent Systems.

[23]  Michele L. Joyner,et al.  A stochastic simulation model for Anelosimus studiosus during prey capture: a case study for determination of optimal spacing. , 2014, Mathematical biosciences and engineering : MBE.

[24]  Flaviu Cristian,et al.  An optimal internal clock synchronization algorithm , 1995, COMPASS '95 Proceedings of the Tenth Annual Conference on Computer Assurance Systems Integrity, Software Safety and Process Security'.

[25]  Victor R. Lesser,et al.  Evolution of the GPGP/TÆMS Domain-Independent Coordination Framework , 2002, AAMAS '02.

[26]  Gregory A. Koenig,et al.  A Clock Synchronization Strategy for Minimizing Clock Variance at Runtime in High-End Computing Environments , 2010, 2010 22nd International Symposium on Computer Architecture and High Performance Computing.

[27]  Christine Julien,et al.  BraceForce: a middleware to enable sensing integration in mobile applications for novice programmers , 2014, MOBILESoft 2014.

[28]  Wook Hyun Kwon,et al.  Real-time distributed software-in-the-loop simulation for distributed control systems , 1999, Proceedings of the 1999 IEEE International Symposium on Computer Aided Control System Design (Cat. No.99TH8404).

[29]  Peter Schneider,et al.  Master for Co-Simulation Using FMI , 2011 .

[30]  L. Dagum,et al.  OpenMP: an industry standard API for shared-memory programming , 1998 .