Variable Petri Nets for Mobility

Zhijun Ding, Ru Yang, Puwen Cui, MengChu Zhou, Changjun Jiang · DOI

Abstract

Mobile computing systems, service-based systems, and other architectures with mobile interacting components have recently received significant attention. However, due to characteristics such as mobility and frequent disconnection, it is difficult to model and analyze them using structure-fixed models. This work proposes a new Petri net model called Variable Petri Net (VPN) for modeling and analyzing these systems. In a VPN, possible interaction interfaces are abstracted as "virtual places," and the occurrences of connections or disconnections are described by new functions, facilitating component collaboration and system scalability. Furthermore, VPNs utilize a constraint function alongside markings to represent complete system configurations, overcoming the limitations of traditional markings in reflecting link capability. Several examples demonstrate the model's efficacy in formal verification.

Introduction

Traditional Petri Nets (PNs) are powerful tools for modeling concurrent systems, but they suffer from a fundamental "rigidity" problem. In a standard PN, the set of places (states) and transitions (actions) is fixed at design time. In modern dynamic environments such as the Internet of Things (IoT) or Vehicular Cyber-Physical Systems (VCPS), components frequently join, leave, or move within a network. Modeling these changes in a fixed-structure PN often requires manual, complex modifications to the entire model. Variable Petri Nets (VPNs) address this by allowing the model's topology to change dynamically during execution, reflecting real-world mobility and link dynamicity.

Methodology: The VPN Framework

The core innovation of the VPN model is the introduction of structural flexibility through several key concepts:

  • Virtual Places: These act as abstracted interfaces or placeholders for communication channels. They represent potential interactions that are instantiated only when components connect.
  • Constraint Function ($\gamma$): This function maps virtual places to actual physical places, tracking the current "topology" of the system.
  • Link Function ($\rho$): This defines the logic for adding or deleting connections. When a transition fires, it can trigger a change in the constraint function, effectively "rewiring" the net on the fly.
A basic VPN model illustrating a communication scene with a virtual place $I_{A-B}$.

In a VPN, the system state is defined as a Configuration, a triple consisting of the token marking, the current set of active places, and the current constraint function. This allows the model to capture not just token distribution, but the underlying connectivity of the system.

Model Compactness and Analysis

VPNs offer significant advantages in model representation through "folding." By using variables to represent different components, VPNs can consolidate multiple similar transitions into a single, parameterized transition. This results in models that are substantially more compact and readable than equivalent Coloured Petri Nets (CPNs).

Comparison between a standard Coloured Petri Net (CPN) and the proposed Variable Petri Net (VPN), demonstrating model compactness.

To analyze these dynamic structures, the authors developed the Configuration Tree (CT), a state-space analysis method that accounts for structural changes. This enables the automated verification of properties like reachability and deadlock detection. Using a custom-built Java tool, the authors successfully identified logic faults in complex service-based systems, proving the model's utility for software verification.

Conclusion

Variable Petri Nets provide a robust formal framework for modeling systems with high mobility and dynamic connectivity. By treating mobility as a first-class citizen within the firing rules and introducing virtual places, VPNs offer a scalable and compact alternative to traditional Petri net variants. Future work will focus on integrating temporal logic and exploring algebraic analysis methods to further enhance the verification capabilities of the VPN model.

Summary updated

Abstract

Mobile computing systems, service-based systems and some other systems with mobile interacting components have recently received much attention. However, because of their characteristics such as mobility and disconnection, it is difficult to model and analyze them by using a structure-fixed model. This work proposes a new Petri net model called Variable Petri Net (VPN) for modeling and analyzing these systems. The definition, firing rule, and related analysis technology of VPN are introduced in detail. In a VPN, the possible interaction interfaces are abstracted as a new kind of places called virtual places, and the occurrences of (dis)connections are described by new functions, which makes it appropriate to describe the component collaboration in systems and realize the scalability and pluggability of systems. Moreover, to overcome the shortcoming that markings cannot reflect link capability of a system, VPNs add a constraint function along with a marking to represent a complete system configuration. Several examples are used to demonstrate the newly proposed model and method.
BibTeX
@article{ding2022variable,
  author = {Zhijun Ding and Ru Yang and Puwen Cui and MengChu Zhou and Changjun Jiang},
  title = {{Variable Petri Nets for Mobility}},
  journal = {IEEE Trans. Syst. Man Cybern. Syst.},
  year = {2022},
  url = {https://openreview.net/forum?id=lyZmqQOn9q},
}
Figure