Abstract
Transitioning a sensor network from a successful lab prototype to a robust, large-scale production system often encounters a "valley of death." This paper introduces Que, a unified framework designed to bridge this gap. Que provides a single environment for scripting, simulation, and multi-tier system integration. By enabling developers to "wire" together components from different hardware tiers—ranging from low-power motes to powerful microservers—and simulating them with realistic data traces, Que facilitates the development of scalable, long-lived, and well-integrated sensor networks.
Introduction: The Production Gap
While building a small-scale sensor network prototype is relatively straightforward, deploying a production-ready system presents significant challenges. These include managing scale and sensor density, ensuring long-term power reliability, processing raw data into actionable insights, and integrating the network with existing IT infrastructure. Existing tools often focus on a single tier or require extensive code rewrites when moving from simulation to deployment. Que addresses these issues by providing a unified environment where "what you script is what you deploy."
The Que Framework: Programming by Component Wiring
The core philosophy of Que is a "programming by component wiring" approach. Using a Python-like shell, users can instantiate components from various libraries and link their input/output ports.
To support this, the authors developed interface extraction tools like nc2moml and ServiceLibrary2Moml. These tools automatically scan existing software libraries (such as TinyOS for motes or MSRSense for microservers) and expose their components to the Que scripting environment. This allows for seamless integration of heterogeneous components into a single logical flow.
Multi-Tier Simulation and Emulation
A key strength of Que is its ability to handle multi-tier simulation. Unlike traditional simulators restricted to a single hardware type, Que can co-simulate different tiers simultaneously. For example, it can run TinyOS code using the TOSSIM simulator while natively executing .NET-based microserver code.
Furthermore, Que supports trace-driven emulation. Real-world data traces, such as temperature readings from previous deployments, can be fed back into the simulation. This allows developers to observe how system logic handles realistic scenarios before actual field deployment.
Case Study and Key Insights
The framework was evaluated using DataCenter.NET, a deployment for monitoring server room temperatures. A 35-mote prototype provided 18 days of temperature data and workload traces.
Analysis within Que revealed significant data redundancy among sensors. By using built-in correlation analysis, the authors could mathematically determine the minimum sensor density required for production, potentially reducing hardware costs. Additionally, simulation helped identify logic bugs in "threshold-triggered" reporting modes and uncovered complex thermodynamic interactions, such as airflow from one server rack cooling another.
Conclusion
Que successfully demonstrates the feasibility of a unified, multi-tier development environment for sensor networks. By simplifying the integration of diverse software components and providing robust simulation capabilities, it significantly reduces the friction in moving from lab prototypes to production-ready systems. Future work aims to automate dynamic operator placement and enhance live network querying capabilities.
Summary updated