TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS Presented by Akash Kapoor SAMUEL MADDEN, MICHAEL J. FRANKLIN, JOSEPH HELLERSTEIN, AND WEI HONG.

Slides:



Advertisements
Similar presentations
한국기술교육대학교 컴퓨터 공학 김홍연 TinyDB : An Acquisitional Query Processing System for Sensor Networks. - Samuel R. Madden, Michael J. Franklin, Joseph M. Hellerstein,
Advertisements

1 Sensor Network Databases Ref: Wireless sensor networks---An information processing approach Feng Zhao and Leonidas Guibas (chapter 6)
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 25th Lecture Christian Schindelhauer.
Programming Vast Networks of Tiny Devices David Culler University of California, Berkeley Intel Research Berkeley
Directed Diffusion: A Scalable and Robust Communication Paradigm for Sensor Networks.
PEDS September 18, 2006 Power Efficient System for Sensor Networks1 S. Coleri, A. Puri and P. Varaiya UC Berkeley Eighth IEEE International Symposium on.
DNA Research Group 1 CountTorrent: Ubiquitous Access to Query Aggregates in Dynamic and Mobile Sensor Networks Abhinav Kamra, Vishal Misra and Dan Rubenstein.
1 Supporting Aggregate Queries Over Ad-Hoc Wireless Sensor Networks Samuel Madden UC Berkeley With Robert Szewczyk, Michael Franklin, and David Culler.
Scaling Down Robert Grimm New York University. Scaling Down in One Slide  Target devices (roughly)  Small form factor  Battery operated  Wireless.
The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks.
Aggregation in Sensor Networks NEST Weekly Meeting Sam Madden Rob Szewczyk 10/4/01.
A Survey of Wireless Sensor Network Data Collection Schemes by Brett Wilson.
Approximate data collection in sensor networks the appeal of probabilistic models David Chu Amol Deshpande Joe Hellerstein Wei Hong ICDE 2006 Atlanta,
Probabilistic Data Aggregation Ling Huang, Ben Zhao, Anthony Joseph Sahara Retreat January, 2004.
Taming the Underlying Challenges of Reliable Multihop Routing in Sensor Networks.
Aggregate Query Processing in Ad-Hoc Sensor Networks Yong Yao Database lunch, Apr. 15th.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
CS 580S Sensor Networks and Systems Professor Kyoung Don Kang Lecture 7 February 13, 2006.
T AG : A TINY AGGREGATION SERVICE FOR AD - HOC SENSOR NETWORKS Samuel Madden, Michael J. Franklin, Joseph Hellerstein, and Wei Hong Presented by – Mahanth.
TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Paper By : Samuel Madden, Michael J. Franklin, Joseph Hellerstein, and Wei Hong Instructor :
CS2510 Fault Tolerance and Privacy in Wireless Sensor Networks partially based on presentation by Sameh Gobriel.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong.
Dynamic Clustering for Acoustic Target Tracking in Wireless Sensor Network Wei-Peng Chen, Jennifer C. Hou, Lui Sha.
TinyOS By Morgan Leider CS 411 with Mike Rowe with Mike Rowe.
Sensor Network Databases1 Overview: Chapter 6  Sensor Network Databases  Sensor networks are conceptually a distributed DB  Store collected data  Indexes.
March 6th, 2008Andrew Ofstad ECE 256, Spring 2008 TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden, Michael J. Franklin, Joseph.
1 Pradeep Kumar Gunda (Thanks to Jigar Doshi and Shivnath Babu for some slides) TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden,
TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Authors: Samuel Madden, Michael Franklin, Joseph Hellerstein Presented by: Vikas Motwani CSE.
1 TAG: A Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden UC Berkeley with Michael Franklin, Joseph Hellerstein, and Wei Hong December.
INT 598 Data Management for Sensor Networks Silvia Nittel Spatial Information Science & Engineering University of Maine Fall 2006.
The Design of an Acquisitional Query Processor for Sensor Networks CS851 Presentation 2005 Presented by: Gang Zhou University of Virginia.
Benjamin AraiUniversity of California, Riverside Reliable Hierarchical Data Storage in Sensor Networks Song Lin – Benjamin.
Query Processing for Sensor Networks Yong Yao and Johannes Gehrke (Presentation: Anne Denton March 8, 2003)
Multi-Criteria Routing in Pervasive Environment with Sensors Santhanakrishnan, G., Li, Q., Beaver, J., Chrysanthis, P.K., Amer, A. and Labrinidis, A Department.
Supporting Aggregate Queries Over Ad-Hoc Wireless Sensor Networks.
Rushing Attacks and Defense in Wireless Ad Hoc Network Routing Protocols ► Acts as denial of service by disrupting the flow of data between a source and.
Communication Paradigm for Sensor Networks Sensor Networks Sensor Networks Directed Diffusion Directed Diffusion SPIN SPIN Ishan Banerjee
REED: Robust, Efficient Filtering and Event Detection in Sensor Networks Daniel Abadi, Samuel Madden, Wolfgang Lindner MIT United States VLDB 2005.
1 REED: Robust, Efficient Filtering and Event Detection in Sensor Networks Daniel Abadi, Samuel Madden, Wolfgang Lindner MIT United States VLDB 2005.
Energy-Efficient Monitoring of Extreme Values in Sensor Networks Loo, Kin Kong 10 May, 2007.
Communication Support for Location- Centric Collaborative Signal Processing in Sensor Networks Parmesh Ramanathan University of Wisconsin, Madison Acknowledgements:K.-C.
DATA AGGREGATION Siddhartha Sarkar Roll no: CSE-4 th Year-7 th semester Sensor Networks (CS 704D) Assignment.
CountTorrent: Ubiquitous Access to Query Aggregates in Dynamic and Mobile Sensor Networks Abhinav Kamra, Vishal Misra and Dan Rubenstein - Columbia University.
3/14/2005 CS851: Data Services for Advanced System Applications 1 DFuse: A Framework for Distributed Data Fusion Rajnish Kumar, Matthew Wolenetz, Bikash.
Energy-Conserving Data Placement and Asynchronous Multicast in Wireless Sensor Networks Sagnik Bhattacharya, Hyung Kim, Shashi Prabh, Tarek Abdelzaher.
By: Gang Zhou Computer Science Department University of Virginia 1 Medians and Beyond: New Aggregation Techniques for Sensor Networks CS851 Seminar Presentation.
Aggregation and Secure Aggregation. Learning Objectives Understand why we need aggregation in WSNs Understand aggregation protocols in WSNs Understand.
W. Hong & S. Madden – Implementation and Research Issues in Query Processing for Wireless Sensor Networks, ICDE 2004.
1 Routing security against Threat models CSCI 5931 Wireless & Sensor Networks CSCI 5931 Wireless & Sensor Networks Darshan Chipade.
TreeCast: A Stateless Addressing and Routing Architecture for Sensor Networks Santashil PalChaudhuri, Shu Du, Ami K. Saha, and David B. Johnson Department.
Aggregation and Secure Aggregation. [Aggre_1] Section 12 Why do we need Aggregation? Sensor networks – Event-based Systems Example Query: –What is the.
Sep Multiple Query Optimization for Wireless Sensor Networks Shili Xiang Hock Beng Lim Kian-Lee Tan (ICDE 2007) Presented by Shan Bai.
1 TAG: A Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden UC Berkeley with Michael Franklin, Joseph Hellerstein, and Wei Hong December.
Top-k Queries in Wireless Sensor Networks Amber Faucett, Dr. Longzhuang Li, In today’s world, wireless.
Directed Diffusion: A Scalable and Robust Communication Paradigm for Sensor Networks Presented by Barath Raghavan.
KAIS T Location-Aided Flooding: An Energy-Efficient Data Dissemination Protocol for Wireless Sensor Networks Harshavardhan Sabbineni and Krishnendu Chakrabarty.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
TAG: a Tiny AGgregation service for ad-hoc sensor networks Authors: Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, Wei Hong Presenter: Mingwei.
Yong Yao Johannes Gehrke Jie Li Nov. 20, 2008 CS662 Paper Presentation.
Demetrios Zeinalipour-Yazti (Univ. of Cyprus)
Introduction to Wireless Sensor Networks
Distributed database approach,
The Design of an Acquisitional Query Processor For Sensor Networks
Distributing Queries Over Low Power Sensor Networks
Ajay Vyasapeetam Brijesh Shetty Karol Gryczynski
Data-Centric Networking
REED : Robust, Efficient Filtering and Event Detection
Protocols.
Aggregation.
Protocols.
Presentation transcript:

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

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 SELECT AVG(volume), room FROM sensors WHERE floor = 6 GROUP BY room HAVING AVG(volume) > threshold EPOCH DURATION 30s 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.

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 pair per group.  Readings used to compute an aggregate record all belong to the same time interval, or epoch. Query Model 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 Merging function f: f (, ) = Initializer i: i (sensor_value) = Evaluator e: e ( ) = SUM/COUNT

Aggregates MAX, MINCOUNT, SUMAVERAGEMEDIANCOUNT DISTINCT HISTOGRAM Duplicate Sensitive NOYES NOYES Exemplary, Summary ESSESS MonotonicYES NO YESNO Partial StateDistributive AlgebraicHolisticUniqueContent- Sensitive 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

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. Centralized Approach: Each node sends back the reply to the central node. The central node processes the data to compute the aggregate. In-Network Aggregation Approach: Aggregates are computed within the network. Only necessary information sent to the parent nodes. Query Response

In-Network 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 Simple Tiny aggregation: 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. Double as compared to COUNT/MIN. Two integers required for the partial state record. Don’t benefit. Require more state to compute the aggregation

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 Without caching TAG or even centralized aggregation not highly tolerant to loss. Significant in number of participating nodes.

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.