TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS

Similar documents
Tag a Tiny Aggregation Service for Ad-Hoc Sensor Networks. Samuel Madden, Michael Franklin, Joseph Hellerstein,Wei Hong UC Berkeley Usinex OSDI 02

Scaling Down. Robert Grimm New York University

Information Management I: Sensor Database, Querying, Publish & Subscribe, Information Summarization + SIGMOD 2003 paper

TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks

TAG: Tiny AGgregate Queries in Ad-Hoc Sensor Networks

Important issues. Query the Sensor Network. Challenges. Challenges. In-network network data aggregation. Distributed In-network network Storage

CE693: Adv. Computer Networking

Querying the Sensor Network. TinyDB/TAG

Acquisitional Query Processing in TinyDB

Reliable Time Synchronization Protocol for Wireless Sensor Networks

Querying Sensor Networks. Sam Madden

Data Management in Sensor Networks

TinyDB and TASK. Sensor Network in a Box SMARTER SENSORS IN SILICON 1

Secure Routing in Wireless Sensor Networks: Attacks and Countermeasures

Power-Aware In-Network Query Processing for Sensor Data

TiNA: A Scheme for Temporal Coherency-Aware in-network Aggregation

WSN Routing Protocols

ROUTING ALGORITHMS Part 1: Data centric and hierarchical protocols

Ad hoc and Sensor Networks Chapter 3: Network architecture

Integrated Routing and Query Processing in Wireless Sensor Networks

ALL ABOUT DATA AGGREGATION IN WIRELESS SENSOR NETWORKS

Location-aware In-Network Monitoring in Wireless Sensor Networks

Fault Tolerant, Energy Saving Method for Reliable Information Propagation in Sensor Network

Sensor Network Protocol Design and Implementation. Philip Levis UC Berkeley

Routing protocols in WSN

Information Brokerage

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

Wireless Sensor networks: a data centric overview. Politecnico di Milano Joint work with: C. Bolchini F.A. Schreiber other colleagues and students

Abstract. 1. Introduction

Lecture 8 Wireless Sensor Networks: Overview

Robust Multi-Hop Time Synchronization in Sensor Networks

Data gathering using mobile agents for reducing traffic in dense mobile wireless sensor networks

ROUTING ALGORITHMS Part 2: Data centric and hierarchical protocols

Routing Scheme in Energy efficient based Protocols for Wireless Sensor Networks

References. Introduction. Publish/Subscribe paradigm. In a wireless sensor network, a node is often interested in some information, but

New Join Operator Definitions for Sensor Network Databases *

European Network on New Sensing Technologies for Air Pollution Control and Environmental Sustainability - EuNetAir COST Action TD1105

Energy Management Issue in Ad Hoc Networks

Wireless Sensor Networks: From Science to Reality. Kay Römer ETH Zurich

Agent based System Architecture for Wireless Sensor Networks

Approximate Aggregation Techniques for Sensor Databases

Outline. Mate: A Tiny Virtual Machine for Sensor Networks Philip Levis and David Culler. Motivation. Applications. Mate.

Energy Management Issue in Ad Hoc Networks

Network Scheduling for Data Archiving Applications in Sensor Networks

CS551 Ad-hoc Routing

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks -IV

Efficient Time Triggered Query Processing in Wireless Sensor Networks

Time Synchronization in Wireless Networks

More wireless: Sensor networks and TCP on mobile hosts

Routing for IoT and Sensor Systems

The Flooding Time Synchronization Protocol

Zephyr: Efficient Incremental Reprogramming of Sensor Nodes using Function Call Indirections and Difference Computation

The Emergence of Networking Abstractions and Techniques in TinyOS

Optimized Query Processing for Wireless Sensor Networks

4/22 A Wireless Sensor Network for Structural Health Monitoring. Gregory Peaker

Decentralizing Query Processing in Sensor Networks

Architecture and Implementation of a Content-based Data Dissemination System

Analysis of Cluster-Based Energy-Dynamic Routing Protocols in WSN

Sabareesan M, Srinivasan S*,John Deva Prasanna D S

FEDA: Fault-tolerant Energy-Efficient Data Aggregation in Wireless Sensor Networks

Etiquette protocol for Ultra Low Power Operation in Sensor Networks

Geographic Routing in Simulation: GPSR

CSE 530A. B+ Trees. Washington University Fall 2013

Campus Networking Workshop. Layer 2 engineering Spanning Tree and VLANs

Robust Aggregation in Sensor Network: An Efficient Frequent itemset and Number of occurrence counting

Power-efficient Communication Protocol for Social Networking Tags for Visually Impaired

Data Management Issues in Disconnected Sensor Networks

15-441: Computer Networking. Lecture 24: Ad-Hoc Wireless Networks

Overview of Sensor Network Routing Protocols. WeeSan Lee 11/1/04

Cushion: Autonomically Adaptive Data Fusion in Wireless Sensor Networks. Technical Report August 2005

Energy-Efficient Communication Protocol for Wireless Micro-sensor Networks

An Adaptive and Optimal Distributed Clustering for Wireless Sensor

Presented by: Murad Kaplan

Kapitel 5: Mobile Ad Hoc Networks. Characteristics. Applications of Ad Hoc Networks. Wireless Communication. Wireless communication networks types

Spanning Trees and IEEE 802.3ah EPONs

Outline. CS5984 Mobile Computing. Dr. Ayman Abdel-Hamid, CS5984. Wireless Sensor Networks 1/2. Wireless Sensor Networks 2/2

And of knowledge, you (mankind) have been given only a little. Quran, chapter 17, verse 85

Chapter 12: Indexing and Hashing

ADHOC ROUTING BASED DATA COLLECTION APPLICATION IN WIRELESS SENSOR NETWORKS MALLIKARJUNA RAO PINJALA B.E, OSMANIA UNIVERSITY, INDIA, 2004 A REPORT

Hybrid Push-Pull Query Processing for Sensor Networks. Niki Trigoni, Yong Yao, Alan Demers, Johannes Gehrke

DATA CUBE : A RELATIONAL AGGREGATION OPERATOR GENERALIZING GROUP-BY, CROSS-TAB AND SUB-TOTALS SNEHA REDDY BEZAWADA CMPT 843

Aggregation Tree Construction in Sensor Networks

Query Processing Systems for Wireless Sensor Networks

MultiHop Routing for Delay Minimization in WSN

System Models. 2.1 Introduction 2.2 Architectural Models 2.3 Fundamental Models. Nicola Dragoni Embedded Systems Engineering DTU Informatics

Hardware Support for a Wireless Sensor Network Virtual Machine

Scalable Distributed Diagnosis Algorithm for Wireless Sensor Networks

The Journal of Systems and Software

Multi Hop Send Protocol Tool for TinyNodes Semesterthesis

Realistic and Efficient Multi-Channel Communications in WSN

QoS Challenges and QoS-Aware MAC Protocols in Wireless Sensor Networks

Wireless Sensor Architecture GENERAL PRINCIPLES AND ARCHITECTURES FOR PUTTING SENSOR NODES TOGETHER TO

Outline. Assumptions. Key Features. A Content-Based Networking Protocol For Sensor Networks (Technical Report 2004)

Development of Emulation Projects for Teaching Wireless Sensor Networks 1

INF5100 Mandatory Exercise. Autumn 2009

Engineering Swarm- Services CS

Faloutsos 1. Carnegie Mellon Univ. Dept. of Computer Science Database Applications. Outline

Effects of Sensor Nodes Mobility on Routing Energy Consumption Level and Performance of Wireless Sensor Networks

Cribbage Count In Cribbage scoring, there are several ways of accumulating points in a pile of playing cards. Among these are

Chapter 12: Indexing and Hashing. Basic Concepts

Transcription:

TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS SAMUEL MADDEN, MICHAEL J. FRANKLIN, JOSEPH HELLERSTEIN, AND WEI HONG Proceedings of the Fifth Symposium on Operating Systems Design and implementation (OSDI 02), December 9-11, 2002, Boston, MA, USA. Presented by Akash Kapoor

Motivation Used to monitor and collect data about various phenomenon. Wild- life, volcanoes, data centers, CPU temperatures, buildings. Applications require summary/aggregations rather raw sensor data. Users may not be well versed with the low- level optimizations. Important to minimize the power consumption. How does Tiny AGgregation service help?: High level language similar to SQL for querying. Distributes the query in the network. Queries executed to reduce communication and power. Enables in- network aggregation of the results. Order of magnitude reduction in communication compared to centralized approach.

Background Smart Sensors: Wireless, Battery powered. Really small around 2cm x 4cm x 1cm. Motes by UC Berkeley. Single- channel half- duplex radio. Unreliable message delivery. Battery capabilities on motes: Small batteries: AA battery packs or coin cells. Radio communication dominates the battery consumptions on the motes. Power consumption: Transmission of single bit 800 instructions. Calls for power conserving algorithms.

Background Ad- Hoc Networks: Dynamic in nature as topology can change. Identify and route data between devices without prior knowledge. Tree based routing in Ad- Hoc networks: Motes arrange themselves as a tree Node interfacing with the user act as the root. Root sends this message periodically to adapt to new network changes. TAG requirements: Root should be able to propagate a message in the whole network. A route from a node to the root. At- most once semantics for message delivery.

Query Model SQL- style query syntax. Over a single table, sensors. It s schema is known to the base station. Stream of values. Each mote has a small catalog of attributes. Each sensor is a row in the sensors table. Example: Monitor occupancy of conference rooms of a floor. Use the microphones. SELECT AVG(volume), room FROM sensors WHERE floor = 6 GROUP BY room HAVING AVG(volume) > threshold EPOCH DURATION 30s

Query Model WHERE clause: Filters out individual sensor readings, locally at mote, before aggregation. GROUP BY clause: Attribute based partitioning of sensor readings. HAVING clause: Suppress groups that do not satisfy the predicates. EPOCH DURATION: Specifies how often the updates must be delivered. Records: Consists of one <group id, aggregate value> pair per group. Readings used to compute an aggregate record all belong to the same time interval, or epoch. SELECT {agg(expr), attrs} FROM sensors WHERE {selpreds} GROUP BY {attr} HAVING {havingpreds} EPOCH DURATION i

Aggregates Aggregates supported by TAG: SQL supports: MIN, MAX, SUM, AVERAGE, and COUNT TAG can support a broader set. Aggregates Implemented using 3 functions: Merging function f: Merges partial state record. Initializer i: Instantiates state record for single sensor value. Evaluator e: Computes actual value from the partial state record.

Aggregates AVERAGE aggregate: Each partial state record is of the form <SUM, COUNT> Merging function f: f (<SUM1, COUNT1>, <SUM2, COUNT2>) = <SUM1 + SUM2, COUNT1 + COUNT2> Initializer i: i (sensor_value) = <sensor_value, 1> Evaluator e: e (<SUM, COUNT>) = SUM/COUNT

Aggregates Aggregates Taxonomy: Define different dimensions for a general classification of the aggregates functions 1. DUPLICATE SENSITIVITY 2. EXEMPLARY or SUMMARY 3. MONOTONIC 4. PARTIAL STATE requirements MAX, MIN COUNT, SUM AVERAGE MEDIAN COUNT DISTINCT HISTOGRAM Duplicate Sensitive Exemplary, Summary NO YES YES YES NO YES E S S E S S Monotonic YES YES NO NO YES NO Partial State Distributive Distributive Algebraic Holistic Unique Content- Sensitive

In-Network Aggregation Aggregation Consists of two phases: Distribution phase: Queries are pushed down into the network. Collection Phase: Aggregate values and route them up from children to parent. Query Centralized Approach: Each node sends back the reply to the central node. The central node processes the data to compute the aggregate. Response In- Network Aggregation Approach: Aggregates are computed within the network. Only necessary information sent to the parent nodes.

In-Network Aggregation Simple Tiny aggregation: Mote p receives request to aggregate with expect reply interval Synchronizes the clock and choose the sender of message as the parent. Forwards the request with its own information and modified expected reply interval Process own reading with child s partial state record Reply to parent with the updated partial state record

Simulation-Based Evaluation Simulator set- up: Java based simulation with time divided into units of epochs. Doesn t account for byte- level radio contention or time to send and decode messages. Models a parallel execution and the costs of topology maintenance Three communication models Darker nodes are closer to the roots

Simulation-Based Evaluation Cost to flood a request down the tree in not considered. Extremely low. Only an integer required for the partial state record. Don t benefit. Require more state to compute the aggregation Double as compared to COUNT/MIN. Two integers required for the partial state record.

Optimizations Using the shared channel: Snoop on the network to look for missed aggregation request messages. Can snoop at specified time interval to save power. Hypothesis testing: The aggregation requests are sent with a guess value. Motes only respond if their values affect the end value. Motes can also snoop on the network to check if its local value can affect the end value.

Optimizations Informed guesses can lead to significant performance gain. Snooping can further improve the perform especially in packed networks.

Tolerating loss Link Quality monitoring: Each node monitors the quality of the link to a subset of its neighbors by tracking the proportion of packets received from each neighbor. If a node n observes weak link to its parent p and better link to p, chooses p as its new parent. Child caching: Improve quality of aggregates by remember child s partial state record for some number of states. Using available redundancy: Uses the network topology to Improve quality of aggregates by maintaining multiple parents and sending part of or whole partial state records to each of them

Tolerating loss Effect of single loss on various aggregate functions MIN insensitive to loss as several nodes are at the true minimum. MEDIAN and AVERAGE are somewhat sensitive to variation in number of nodes.

Tolerating loss Realistic communication Significant in number of participating nodes. Without caching TAG or even centralized aggregation not highly tolerant to loss.

Prototype implementation Set- up: Does not include optimizations. Uses 16 TinyOS Mica motes arranged in a depth four tree. Better Quality of aggregation 50% reduction communication

Conclusions Offers significant reduction in network communication. A node needs to transmit only once per epoch. Improves the ability to tolerate losses. Epochs provide a convenient mechanism to put CPU to sleep. Offers up to an order of magnitude reduction in bandwidth consumption. Simple declarative query interface

Pros & Cons Pros: Offers an order of magnitude reduction in network communication. Provides mechanisms to tolerate losses and improve quality of aggregates. SQL- like syntax for query makes it easy to use. Cons: The simulation is too simplified as it doesn t account for power, CPU and other important aspects. The prototype implementation consisted of merely 16 motes. It is unclear on what the interval value should be when forwarding the query. Malicious nodes can corrupt/falsify the aggregates.

Discussion Evaluation: Not a through evaluation. Doesn t consider power consumption, CPU utilization and radio contention in simulated evaluation. Malicious Nodes can corrupt aggregation values. Affects of stale caches are not considered. Tree based topology: Require extra communication to form the tree. Failure prone.