TL;DR
This paper tackles the memory consumption issue in explicit-state model checking for real-time systems. They introduce two novel data structures, PTries and time darts, which significantly reduce memory usage while maintaining competitive verification times, making explicit model checking more practical for complex systems.
What Problem Does This Paper Address?
Verifying the behavior of real-time systems often involves exploring their state space. Two main approaches exist: continuous (symbolic) and discrete (explicit) state-space exploration. While explicit exploration can be faster for systems with moderate timing constraints, it suffers from a significant drawback: high memory consumption. This memory bloat can render the verification process infeasible for larger or more complex systems. The authors aim to alleviate this memory bottleneck by developing more efficient data structures for storing the explored states.
Methods
The paper proposes and evaluates two primary data structures for improving memory efficiency in explicit model checking of timed-arc Petri nets (TAPNs):
- PTries (Partial Tries): This is a novel data structure based on tries. Instead of storing the full binary representation of a state (marking) at each node, PTries store prefixes in the tree structure and suffixes in "buckets" at different levels. This hierarchical storage aims to reduce redundancy and memory overhead, especially when many states share common prefixes.
- Time Darts: This is a semi-symbolic data structure, adapted from its use in timed automata. A time dart represents a set of markings that are "close" to a base marking, characterized by a waiting distance and a passed distance. This allows for a more compact representation of states that are essentially time-delayed versions of each other, reducing the number of distinct states that need to be explicitly stored.
These methods are implemented within the TAPAAL tool, a publicly available model checker for TAPNs.
Datasets
The paper evaluates their proposed methods on four case studies:
- Alternating Bit Protocol (ABP)
- Business Activity with Participant Completion (BAwPC)
- Patient Monitoring System (PMS)
- MPEG-2 video encoder
These models are scaled by factors like the number of messages or frames, allowing for a comprehensive comparison of the data structures' performance under varying system complexity.
Key Insights and Ideas
- Explicit model checking's memory Achilles' heel: The paper clearly identifies and quantifies the significant memory overhead of traditional explicit-state exploration as the primary challenge.
- PTries offer a practical improvement: The PTrie data structure provides a good balance between memory savings and runtime performance, showing only a modest slowdown compared to a basic approach.
- Time darts excel with larger constants: The semi-symbolic nature of time darts proves particularly effective for models with larger timing constants, where many states can be compactly represented.
- Synergy of PTries and Time Darts: Combining PTries and time darts yields the most substantial memory savings, demonstrating the power of using both structural and temporal compression techniques.
- BDDs are memory-efficient but slow: While BDDs offer good memory compression, their normalization process after each insertion leads to unacceptable runtime performance for this application.
Key Results
The experiments demonstrate significant memory savings across the evaluated models:
- PTries: Achieved memory savings of 20-30% compared to a basic explicit-state storage method, with a comparable verification time.
- Time Darts: Showed notable memory improvements, especially on models with larger constants like MPEG2.
- PTries + Time Darts: This combination delivered the largest memory savings, often an order of magnitude or more, while maintaining acceptable verification times. For instance, in the MPEG2 case, the combined approach used 5162 MB compared to OOM (Out Of Memory) for the basic approach.
- The paper also notes that while explicit methods are faster on models with small constants, zone-based methods eventually outperform them as constants increase.
Limitations and Future Work
- Adaptation effort for Time Darts: The paper acknowledges that the semi-symbolic nature of time darts requires a more substantial adaptation effort for integration into model checkers compared to PTries.
- Future Work: The authors suggest that the PTrie data structure can be directly employed by any explicit model checker, implying its broad applicability. The promising results of time darts also suggest further exploration of semi-symbolic techniques for timed systems. The paper highlights the successful implementation and availability of these techniques in the TAPAAL tool, paving the way for further research and application.
Summary updated