Skip to main content

Configurable-by-Construction Runtime Monitoring

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13701))

Abstract

Most modern systems, be it cyber-physical or mere software systems, are highly configurable. The main challenge when dealing with such configurable systems stems from the usually huge number of system variants that can be exponential in the number of configuration options or features. Monitoring systems that react on observations, e.g., sensor data, varying across system configurations or being themselves configurable also face this challenge but have barely been considered in the literature. In this paper, we discuss new aspects for runtime monitoring with variability in the system being monitored as well as the monitor itself. As a first step towards a configurable-by-construction runtime monitoring approach, we introduce configurable monitors from an automata-theoretic and stream-based perspective. For this, we harvest existing work on featured transition systems and present a variability-aware variant of the stream-based specification language Lola.

This work was partially supported by the DFG under the projects TRR 248 (see https://perspicuous-computing.science, project ID 389792660) and EXC 2050/1 (CeTI, project ID 390696704, as part of Germany’s Excellence Strategy).

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Similar test procedures exist for characteristics of electric vehicles, for instance, those issued by the United States Environmental Protection Agency [31].

  2. 2.

    For brevity, we shorten the feature names for computation and sensor features with tailing c and s, respectively.

  3. 3.

    This applies to all variants of Lola, including the original variant [12], Lola 2.0 [17], and RTLola [18]. For simplicity, we use “Lola ” as an umbrella term here.

  4. 4.

    A canonical candidate for \(\chi (\phi )\) would be the disjunctive normal form \(\chi (\phi )=\bigvee _{Y\in \llbracket \phi \rrbracket } \big (\bigwedge _{x\in Y} x \wedge \bigwedge _{x\in X\setminus Y} \lnot x \big )\), but also any other uniquely chosen formula, e.g., focusing on small lengths, would be suitable.

  5. 5.

    Note that behaviors for invalid feature configurations can be specified through non-satisfying feature guards on initial states, leading to empty initial state projections.

  6. 6.

    The corner case where \(|\Phi |=0\) is covered by the \(\top \)-verdicting featured monitor \(\mathcal {M} ^{\texttt{true}}_\texttt{true}\) that arises from \(\mathcal {A} ^\texttt{true}=(V,\Sigma ,\delta ,\top )\) where \(\delta (p,\alpha )=p\) for all \(p\in V\) and \(\alpha \in \Sigma \).

  7. 7.

    We slightly deviate from the original definition for notational convenience. In particular, we do not allow expressions of the form \(\eta {[z, c]}\) where \(\eta \) is an arbitrary stream expression. It has been shown that those can be rewritten to \(s' {[z, c]}\) by introducing an additional stream variable \(s'\) such that \(f(s') = \eta \).

References

  1. Alur, R., Mamouras, K., Stanford, C.: Automata-based stream processing. In: Proceedings of the 44th International Colloquium on Automata, Languages, and Programming (ICALP 2017). Schloss Dagstuhl, Leibniz-Zentrum für Informatik (2017)

    Google Scholar 

  2. Apel, S., Batory, D., Kästner, C., Saake, G.: Feature-oriented software product lines. In: Concepts and Implementation. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-37521-7

  3. Baier, C., Bertrand, N., Dubslaff, C., Gburek, D., Sankur, O.: Stochastic shortest paths and weight-bounded properties in Markov decision processes. In: Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2018), pp. 86–94. ACM, NY (2018)

    Google Scholar 

  4. Baier, C., et al.: From verification to causality-based explications. In: Proceedings of the 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021). LIPIcs, vol. 198, pp. 1:1–1:20. Leibniz-Zentrum für Informatik (2021)

    Google Scholar 

  5. Baier, C., Dubslaff, C., Hermanns, H., Klauck, M., Klüppelholz, S., Köhl, M.A.: Components in probabilistic systems: suitable by construction. In: Margaria, T., Steffen, B. (eds.) ISoLA 2020. LNCS, vol. 12476, pp. 240–261. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-61362-4_13

    Chapter  Google Scholar 

  6. Bartocci, E., Falcone, Y., Francalanza, A., Reger, G.: Introduction to runtime verification. In: Bartocci, E., Falcone, Y. (eds.) Lectures on Runtime Verification. LNCS, vol. 10457, pp. 1–33. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-75632-5_1

    Chapter  Google Scholar 

  7. Bauer, A., Leucker, M., Schallhart, C.: Monitoring of real-time properties. In: Arun-Kumar, S., Garg, N. (eds.) FSTTCS 2006. LNCS, vol. 4337, pp. 260–272. Springer, Heidelberg (2006). https://doi.org/10.1007/11944836_25

    Chapter  MATH  Google Scholar 

  8. Belder, T., ter Beek, M.H., de Vink, E.P.: Coherent branching feature bisimulation. In: Proceedings 6th Workshop on Formal Methods and Analysis in SPL Engineering (FMSPLE@ETAPS 2015). EPTCS, vol. 182, pp. 14–30 (2015)

    Google Scholar 

  9. Biewer, S., Finkbeiner, B., Hermanns, H., Köhl, M.A., Schnitzer, Y., Schwenger, M.: RTLola on board: testing real driving emissions on your phone. In: TACAS 2021. LNCS, vol. 12652, pp. 365–372. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-72013-1_20

    Chapter  Google Scholar 

  10. Chrszon, P., Baier, C., Dubslaff, C., Klüppelholz, S.: From features to roles. In: Proceedings of the 24th ACM International Systems and Software Product Line Conference (SPLC 2020), pp. 19:1–19:11. ACM (2020)

    Google Scholar 

  11. Classen, A., Cordy, M., Schobbens, P.Y., Heymans, P., Legay, A., Raskin, J.F.: Featured transition systems: foundations for verifying variability-intensive systems and their application to LTL model checking. IEEE Trans. Softw. Eng. 39(8), 1069–1089 (2013)

    Article  Google Scholar 

  12. d’Angelo, B., et al.: LOLA: runtime monitoring of synchronous systems. In: Proceedings of the 12th International Symposium on Temporal Representation and Reasoning (TIME 2005), pp. 166–174. IEEE Computer Society Press (2005)

    Google Scholar 

  13. Dubslaff, C.: Quantitative analysis of configurable and reconfigurable systems. Ph.D. thesis, TU Dresden, Institute for Theoretical Computer Science (2021)

    Google Scholar 

  14. Dubslaff, C., Baier, C., Klüppelholz, S.: Probabilistic model checking for feature-oriented systems. In: Chiba, S., Tanter, É., Ernst, E., Hirschfeld, R. (eds.) Transactions on Aspect-Oriented Software Development XII. LNCS, vol. 8989, pp. 180–220. Springer, Heidelberg (2015). https://doi.org/10.1007/978-3-662-46734-3_5

    Chapter  Google Scholar 

  15. Dubslaff, C., Koopmann, P., Turhan, A.-Y.: Ontology-mediated probabilistic model checking. In: Ahrendt, W., Tapia Tarifa, S.L. (eds.) IFM 2019. LNCS, vol. 11918, pp. 194–211. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-34968-4_11

    Chapter  Google Scholar 

  16. Dubslaff, C., Weis, K., Baier, C., Apel, S.: Causality in configurable software systems. In: Proceedings of the 44th International Conference on Software Engineering (ICSE) (2022)

    Google Scholar 

  17. Faymonville, P., Finkbeiner, B., Schirmer, S., Torfah, H.: A stream-based specification language for network monitoring. In: Falcone, Y., Sánchez, C. (eds.) RV 2016. LNCS, vol. 10012, pp. 152–168. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46982-9_10

    Chapter  Google Scholar 

  18. Faymonville, P., et al.: StreamLAB: stream-based monitoring of cyber-physical systems. In: Dillig, I., Tasiran, S. (eds.) CAV 2019. LNCS, vol. 11561, pp. 421–431. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-25540-4_24

    Chapter  Google Scholar 

  19. Gorostiaga, F., Sánchez, C.: Striver: stream runtime verification for real-time event-streams. In: Colombo, C., Leucker, M. (eds.) RV 2018. LNCS, vol. 11237, pp. 282–298. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-03769-7_16

    Chapter  Google Scholar 

  20. Kang, K.C., Cohen, S.G., Hess, J.A., Novak, W.E., Peterson, A.S.: Feature-oriented domain analysis (FODA) feasibility study. Carnegie-Mellon University Software Engineering Institute, Tech. rep. (1990)

    Google Scholar 

  21. Kim, C.H.P., Bodden, E., Batory, D., Khurshid, S.: Reducing configurations to monitor in a software product line. In: Barringer, H., et al. (eds.) RV 2010. LNCS, vol. 6418, pp. 285–299. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-16612-9_22

    Chapter  Google Scholar 

  22. Köhl, M.A., Hermanns, H., Biewer, S.: Efficient monitoring of real driving emissions. In: Colombo, C., Leucker, M. (eds.) RV 2018. LNCS, vol. 11237, pp. 299–315. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-03769-7_17

    Chapter  MATH  Google Scholar 

  23. Leucker, M., Sánchez, C., Scheffel, T., Schmitz, M., Schramm, A.: TeSSLa: runtime verification of non-synchronized real-time streams. In: Proceedings of the 33rd ACM Symposium on Applied Computing (SAC 2018). ACM, France (2018)

    Google Scholar 

  24. Leucker, M., Schallhart, C.: A brief account of runtime verification. J. Log. Algebr. Program. 78(5), 293–303 (2009)

    Article  Google Scholar 

  25. Mauro, J., Nieke, M., Seidl, C., Yu, I.C.: Context aware reconfiguration in software product lines. In: Proceedings of the 10th Workshop on Variability Modelling of Software-Intensive Systems (VaMoS 2016), pp. 41–48. ACM (2016)

    Google Scholar 

  26. Pnueli, A.: The temporal logic of programs. In: Proceedings of the 18th Symposium on Foundations of Computer Science (SFCS 1977), pp. 46–57. IEEE (1977)

    Google Scholar 

  27. Sánchez, C.: Online and offline stream runtime verification of synchronous systems. In: Colombo, C., Leucker, M. (eds.) RV 2018. LNCS, vol. 11237, pp. 138–163. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-03769-7_9

    Chapter  MATH  Google Scholar 

  28. The European Parliament and the Council of the European Union: Directive 98/69/ec of the European parliament and of the council. Official Journal of the European Communities (1998). https://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=CELEX:31998L0069:EN:HTML

  29. The European Parliament and the Council of the European Union: Commission Regulation (EU) 2017/1151 (2017). https://data.europa.eu/eli/reg/2017/1151/oj

  30. Thüm, T., Apel, S., Kästner, C., Schaefer, I., Saake, G.: A classification and survey of analysis strategies for software product lines. ACM Comput. Surv. 47(1s), 6:1–6:45 (2014)

    Google Scholar 

  31. United States Environmental Protection Agency. https://www.epa.gov/greenvehicles/explaining-electric-plug-hybrid-electric-vehicles

  32. Zave, P.: Feature-oriented description, formal methods, and DFC. In: Gilmore, S., Ryan, M. (eds.) Language Constructs for Describing Features. Springer, London (2001). https://doi.org/10.1007/978-1-4471-0287-8_2

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Clemens Dubslaff or Maximilian A. Köhl .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Dubslaff, C., Köhl, M.A. (2022). Configurable-by-Construction Runtime Monitoring. In: Margaria, T., Steffen, B. (eds) Leveraging Applications of Formal Methods, Verification and Validation. Verification Principles. ISoLA 2022. Lecture Notes in Computer Science, vol 13701. Springer, Cham. https://doi.org/10.1007/978-3-031-19849-6_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-19849-6_14

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-19848-9

  • Online ISBN: 978-3-031-19849-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics