Symbolic Monitoring against Specifications Parametric in Time and Data

Masaki Waga, Étienne André, Ichiro Hasuo

Presented at CAV 2019, this research introduces SyMon, a powerful framework for system monitoring that shifts the paradigm from simple "pass/fail" checks to providing symbolic answers about system behavior. By allowing specifications to contain "blanks" or parameters for both time and data, the tool can synthesize the exact conditions under which a system operates correctly.

The Monitoring Gap

In traditional runtime verification, monitors check execution logs against fixed specifications—for example, ensuring a "request" is followed by an "acknowledge" within exactly 5 milliseconds. However, real-world debugging often requires answering more complex, parametric questions:

  • Parameter Identification: What is the maximum observed delay between two events?
  • Data-Dependent Rules: Which users are withdrawing more than a specific percentage of total volume within a sliding time window?
  • Pattern Discovery: Is there a periodic behavior, and if so, what is the period?

Existing tools typically struggle to handle timing and complex data (like strings or infinite-domain rationals) simultaneously, especially when both are parametric. SyMon fills this gap by supporting specifications that are symbolic in both dimensions.

Comparison of SyMon with existing monitoring frameworks.

Methodology: Parametric Timed Data Automata

The core of the framework is a new formalism called Parametric Timed Data Automata (PTDA). PTDAs extend standard timed automata by incorporating infinite-domain data variables and parameters ($tp$ for time, $vp$ for data).

Symbolic Monitoring Algorithm

SyMon employs an online algorithm that processes log events sequentially. Instead of tracking concrete states, it maintains symbolic states. To manage the underlying mathematics, the tool utilizes the Parma Polyhedra Library (PPL), representing sets of possible parameter values as geometric shapes (polyhedra) in a multi-dimensional space.

One key innovation is the support for "epsilon" ($\epsilon$) transitions. This allows the monitor to non-deterministically "guess" the boundaries of a pattern within a long log, effectively enabling symbolic timed pattern matching.

Example of a log, its graphical representation, and the corresponding PTDA monitor.

Evaluation and Key Insights

The authors evaluated SyMon using three representative benchmarks: COPY (timing propagation), DOMINANT (banking volume thresholds), and PERIODIC (identifying unknown recurring periods). Logs for these tests ranged from 2,000 to 40,000 events.

Performance and Scalability

Despite the complexity of polyhedral operations, SyMon demonstrated linear scalability relative to log length. It processed 40,000 actions in under 7 seconds for the COPY benchmark. Memory usage remained remarkably stable (around 6-7 MB), which is critical for long-term online monitoring.

Comparison with Model Checkers

When compared to IMITATOR, a general-purpose parametric model checker, SyMon showed significant advantages. While IMITATOR exhausted available memory on a log of just 2,000 events, SyMon handled the same log in seconds, proving the efficiency of a specialized monitoring approach over general model checking.

Conclusion and Future Directions

SyMon demonstrates that treating monitoring as a synthesis problem provides a comprehensive map of system behavior rather than a binary result. While the use of polyhedra makes it slower than non-parametric monitors like MonPoly or DejaVu, the added expressivity is a significant step forward.

Future work aims to improve usability by creating higher-level "syntactic sugar" for writing PTDAs and exploring the integration of Binary Decision Diagrams (BDDs) to optimize performance for finite data types.

Summary updated

BibTeX
@inproceedings{waga2019symbolic,
  author = {Masaki Waga and Étienne André and Ichiro Hasuo},
  title = {{Symbolic Monitoring against Specifications Parametric in Time and Data}},
  booktitle = {CAV},
  year = {2019},
  doi = {10.1007/978-3-030-25540-4\_30},
}
Figure