Runtime Monitoring of Cyber-Physical Systems Under Timing and Memory Constraints
Authors:
Open Access
- 20 October 2015
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 14 (4) , 1-29
Abstract
The goal of runtime monitoring is to inspect the well-being of a system by employing a monitor process that reads the state of the system during execution and evaluates a set of properties expressed in some specification language. The main challenge in runtime monitoring is dealing with the costs imposed in terms of resource utilization. In the context of cyber-physical systems, it is crucial for a software monitoring solution to be time predictable to improve scheduling, as well as support composition of monitoring solutions with an overall predictable behavior. Moreover, a small memory footprint is often required in components of cyber-physical systems, especially in deeply embedded systems. In this article, we propose a novel control-theoretic software monitoring solution for coordinating time predictability and memory utilization in runtime monitoring of systems that interact with the physical world. The controllers attempt to reduce monitoring jitter and maximize memory utilization while simultaneously ensuring the soundness of evaluation of properties. For systems where multiple properties are required to be monitored simultaneously, we construct a buffer sharing mechanism in which controllers dynamically share the memory space to negate the effect of bursts of environment actions, thus reducing jitter due to transient high loads. To validate our design choices, we present three case studies: (1) a Bluetooth mobile payment system, which shows a sporadic rate of events during peak hours; (2) a laser beam stabilizer for target tracking, and (3) a monitoring system for air/fuel ratio in a car engine exhaust and the CAM inlet position in the engine’s cylinders. The experimental results of the case studies demonstrate up to 40% improvement in time predictability of the monitoring solution when compared to a basic event-triggered approach. Moreover, memory utilization reaches an average of 90% when using our dynamic buffer resizing mechanism.Keywords
Funding Information
- NSERC Discovery (418396- 2012)
- Canada NSERC Strategic Project (463324-2014 and 430575-2012)
This publication has 23 references indexed in Scilit:
- Sampling-Based Runtime Verification2011
- Software monitoring with controllable overheadInternational Journal on Software Tools for Technology Transfer, 2010
- MopACM SIGPLAN Notices, 2007
- A Staged Static Program Analysis to Improve the Performance of Runtime Monitoring2007
- Event-triggered versus time-triggered real-time systems2005
- Event-based runtime verification of java programsACM SIGSOFT Software Engineering Notes, 2005
- Efficient Monitoring of ω-LanguagesLecture Notes in Computer Science, 2005
- Low-overhead memory leak detection using adaptive statistical profilingACM SIGPLAN Notices, 2004
- The time-triggered architectureProceedings of the IEEE, 2003
- Internal model control: PID controller designIndustrial & Engineering Chemistry Process Design and Development, 1986