Abstract
Traditional wireless sensor networks (WSNs) have historically relied on a "streaming" model, where data is filtered and immediately transmitted to a central base station due to the high energy costs and limited capacity of local storage. However, the rapid advancement of NAND flash memory has created a paradigm shift. This paper introduces StonesDB, a storage-centric architecture that treats sensor nodes as local archives. By processing queries at the source and utilizing multi-resolution storage, StonesDB significantly reduces energy consumption and enables post-facto data analysis.
The Shift to Storage-Centric Networking
For years, the conventional wisdom in sensor network research was that sensors are resource-poor devices that should stream data to a central base station as quickly as possible. This was because local storage technologies, such as EEPROM or NOR flash, were small, expensive, and power-hungry compared to radio communication.
However, the authors identify a massive technology shift: the rise of high-capacity NAND flash. Today, storing a byte of data locally is nearly two orders of magnitude cheaper in terms of energy than transmitting it over a radio. As shown in Figure 1, while radio communication costs have remained relatively flat, the energy cost of storage has dropped logarithmically with the adoption of NAND flash.
StonesDB: A Two-Tier Architecture
To address the unique constraints of flash memory and the extreme energy sensitivity of battery-powered sensors, the authors introduce StonesDB. This system employs a two-tier database architecture consisting of resource-constrained sensor nodes (Tier 1) and resource-rich proxies (Tier 2).
Key Technical Components
- Flash-Optimized Storage: StonesDB avoids the "read-modify-erase-write" cycle inherent to flash memory by using a log-structured approach, preserving both performance and battery life.
- Partitioned Access Methods: Data is organized into temporal segments or partitions. Indices are built per-partition and stored alongside the data, allowing for efficient "write-once" indexing and simplified data aging.
- Multi-Resolution Storage & Aging: To manage finite storage capacity, StonesDB "ages" data by creating coarser summaries (e.g., using wavelets) and discarding high-fidelity raw data over time. This allows the network to answer historical queries with defined confidence bounds even after raw data is deleted.
- Two-Tier Query Processing: Queries are split between the proxy and the sensors. The proxy utilizes cached summaries to prune the search space, only requesting high-precision data from sensors when strictly necessary.
Evaluation and Insights
The authors validated their energy models through detailed power measurements on Mica2, MicaZ, and TelosB motes using Toshiba 1Gb NAND flash chips. The results confirm that reading from NAND is significantly cheaper than writing, and both are vastly more efficient than radio transmission.
Beyond energy savings, a storage-centric approach enables "post-facto" data mining. This allows researchers to search for patterns in historical data that were not anticipated when the sensors were first deployed—a task that is nearly impossible in traditional streaming-only networks.
Limitations and Future Work
While StonesDB offers a compelling new direction, several challenges remain. As data ages and becomes coarser, query results become probabilistic, and merging results from mixed resolutions is an open research problem. Additionally, the authors are working on optimizing distributed query splitting between proxies and heterogeneous sensor platforms to ensure the system remains flexible across varying hardware capabilities.
Summary updated