Constellation: An Edge-Based Semantic Runtime System for Internet of Things Applications

Mitch Terrell, Yixuan Wang, Matt Dorow, Soumya Agrawal, Bhaargav Sriraman, Zach Leidall, Abhishek Chandra, Jon B. WeissmanarXiv 2022

Introduction

The Internet of Things (IoT) landscape is currently characterized by proprietary "silos." Large corporations often develop devices within closed ecosystems, using unique protocols that explicitly exclude competitors. For developers, this creates significant complexity; supporting multiple hardware brands often requires writing redundant, protocol-specific implementations. Constellation is a distributed runtime system designed to address these challenges by decoupling applications from specific hardware protocols through a semantic operating system layer.

Beyond interoperability, Constellation targets three critical bottlenecks in modern IoT: scalability (managing high-frequency requests), fault tolerance (handling dynamic node availability), and privacy (controlling raw data leakage to third-party apps).

System Architecture and Methods

Constellation operates as a hierarchical peer-to-peer network composed of "Edge Nodes"—typically lower-power, volatile devices—and "Leader Nodes," which are stable entities with higher computational capacity.

The Constellation Node architecture, showing the layers from applications down to physical devices.

The core of the system is the Constellation Node, which integrates several key components to bridge the gap between software and hardware:

  • CQL (Constellation Query Language): A declarative language that allows developers to interact with "Semantic Sets" of devices using high-level commands like FIND, SENSE, and ACTUATE rather than low-level driver code.
  • WebThings Integration: By utilizing the WebThings Gateway, Constellation gains immediate compatibility with industry-standard drivers such as Zigbee, Z-Wave, and Bluetooth.
  • Predictive Edge Caching: To reduce device strain, Edge Nodes build mathematical models (e.g., Linear Regression, ARIMA) of sensor data. If a query's requested accuracy falls within the model's error threshold, the system returns a predicted value rather than querying the physical hardware.
  • Privacy Mediators: This layer "denatures" or summarizes sensitive data (e.g., providing a general region instead of exact GPS coordinates) before it reaches the application layer, ensuring privacy is a runtime guarantee.

Fault Tolerance and Scalability

In dynamic edge environments, nodes frequently join or leave the network. Constellation manages this through a robust leader-election and device-reassignment protocol inspired by P2P networks.

The process of leader failure detection and new leader election to ensure system fault tolerance.

When a Leader Node fails, the system detects the outage via "heartbeat" signals. A new leader is automatically chosen from a list of potential candidates stored in a persistent metadata store. This hierarchical structure ensures that managed devices are seamlessly reassigned, preventing system crashes during hardware failures or network shifts.

Key Results and Insights

Evaluation using real-world meteorological data demonstrated the efficiency of Constellation’s predictive caching. Using a Polynomial Regression model, the system achieved a 74.7% reduction in physical device queries with a median prediction error of only 0.1°C. This significantly extends the battery life of constrained IoT devices.

Furthermore, the privacy mediator functions were found to add negligible latency (measured in milliseconds), proving that data protection can be integrated into the runtime without compromising performance. The concept of "Semantic Equivalency" also allows the system to treat functionally identical sensors as interchangeable, providing a layer of abstraction that simplifies application development.

Conclusion

Constellation successfully demonstrates how a semantic runtime can bridge the gap between heterogeneous IoT hardware and scalable applications. While the system excels with predictable data like temperature, future work will focus on improving model convergence for highly volatile data and testing the architecture in city-scale deployments.

Summary updated

BibTeX
@misc{terrell2022constellation,
  author = {Mitch Terrell and Yixuan Wang and Matt Dorow and Soumya Agrawal and Bhaargav Sriraman and Zach Leidall and Abhishek Chandra and Jon B. Weissman},
  title = {{Constellation: An Edge-Based Semantic Runtime System for Internet of Things Applications}},
  year = {2022},
  eprint = {2201.12394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.12394},
}
Figure