TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Authors: Samuel Madden, Michael Franklin, Joseph Hellerstein Presented by: Vikas Motwani CSE.

Slides:



Advertisements
Similar presentations
A Centralized Scheduling Algorithm based on Multi-path Routing in WiMax Mesh Network Yang Cao, Zhimin Liu and Yi Yang International Conference on Wireless.
Advertisements

HIERARCHY REFERENCING TIME SYNCHRONIZATION PROTOCOL Prepared by : Sunny Kr. Lohani, Roll – 16 Sem – 7, Dept. of Comp. Sc. & Engg.
Decentralized Reactive Clustering in Sensor Networks Yingyue Xu April 26, 2015.
1 Sensor Network Databases Ref: Wireless sensor networks---An information processing approach Feng Zhao and Leonidas Guibas (chapter 6)
Leveraging IP for Sensor Network Deployment Simon Duquennoy, Niklas Wirstrom, Nicolas Tsiftes, Adam Dunkels Swedish Institute of Computer Science Presenter.
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.
Tributaries and Deltas: Efficient and Robust Aggregation in Sensor Network Streams Amit Manjhi, Suman Nath, Phillip B. Gibbons Carnegie Mellon University.
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.
Taming the Underlying Challenges of Reliable Multihop Routing in Sensor Networks.
Extending Network Lifetime for Precision-Constrained Data Aggregation in Wireless Sensor Networks Xueyan Tang School of Computer Engineering Nanyang Technological.
Aggregate Query Processing in Ad-Hoc Sensor Networks Yong Yao Database lunch, Apr. 15th.
Adaptive Self-Configuring Sensor Network Topologies ns-2 simulation & performance analysis Zhenghua Fu Ben Greenstein Petros Zerfos.
Empirical Analysis of Transmission Power Control Algorithms for Wireless Sensor Networks CENTS Retreat – May 26, 2005 Jaein Jeong (1), David Culler (1),
CS 580S Sensor Networks and Systems Professor Kyoung Don Kang Lecture 7 February 13, 2006.
TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS Presented by Akash Kapoor SAMUEL MADDEN, MICHAEL J. FRANKLIN, JOSEPH HELLERSTEIN, AND WEI HONG.
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.
An Integration Framework for Sensor Networks and Data Stream Management Systems.
Power Save Mechanisms for Multi-Hop Wireless Networks Matthew J. Miller and Nitin H. Vaidya University of Illinois at Urbana-Champaign BROADNETS October.
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.
Patch Based Mobile Sink Movement By Salman Saeed Khan Omar Oreifej.
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,
1 TAG: A Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden UC Berkeley with Michael Franklin, Joseph Hellerstein, and Wei Hong December.
Sensor Database System Sultan Alhazmi
The Design of an Acquisitional Query Processor for Sensor Networks CS851 Presentation 2005 Presented by: Gang Zhou University of Virginia.
COMPUTING AGGREGATES FOR MONITORING WIRELESS SENSOR NETWORKS Jerry Zhao, Ramesh Govindan, Deborah Estrin Presented by Hiren Shah.
CS542 Seminar – Sensor OS A Virtual Machine For Sensor Networks Oct. 28, 2009 Seok Kim Eugene Seo R. Muller, G. Alonso, and D. Kossmann.
Query Processing for Sensor Networks Yong Yao and Johannes Gehrke (Presentation: Anne Denton March 8, 2003)
Lan F.Akyildiz,Weilian Su, Erdal Cayirci,and Yogesh sankarasubramaniam IEEE Communications Magazine 2002 Speaker:earl A Survey on Sensor Networks.
Supporting Aggregate Queries Over Ad-Hoc Wireless Sensor Networks.
SIA: Secure Information Aggregation in Sensor Networks B. Przydatek, D. Song, and A. Perrig. In Proc. of ACM SenSys 2003 Natalia Stakhanova cs610.
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.
Energy-Efficient Shortest Path Self-Stabilizing Multicast Protocol for Mobile Ad Hoc Networks Ganesh Sridharan
DATA AGGREGATION Siddhartha Sarkar Roll no: CSE-4 th Year-7 th semester Sensor Networks (CS 704D) Assignment.
S Master’s thesis seminar 8th August 2006 QUALITY OF SERVICE AWARE ROUTING PROTOCOLS IN MOBILE AD HOC NETWORKS Thesis Author: Shan Gong Supervisor:Sven-Gustav.
Data Collection and Dissemination. Learning Objectives Understand Trickle – an data dissemination protocol for WSNs Understand data collection protocols.
Energy conservation in Wireless Sensor Networks Sagnik Bhattacharya, Tarek Abdelzaher University of Virginia, Department of Computer Science School of.
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.
Link Layer Support for Unified Radio Power Management in Wireless Sensor Networks IPSN 2007 Kevin Klues, Guoliang Xing and Chenyang Lu Database Lab.
W. Hong & S. Madden – Implementation and Research Issues in Query Processing for Wireless Sensor Networks, ICDE 2004.
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.
Building Wireless Efficient Sensor Networks with Low-Level Naming J. Heihmann, F.Silva, C. Intanagonwiwat, R.Govindan, D. Estrin, D. Ganesan Presentation.
Max do Val Machado Raquel A. F. Mini Antonio A. F. Loureiro DCC/UFMG DCC/PUC Minas DCC/UFMG IEEE ICC 2009 proceedings Advisor : Han-Chieh Chao Student.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
MAC Protocols for Sensor Networks
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.
MAC Protocols for Sensor Networks
Demetrios Zeinalipour-Yazti (Univ. of Cyprus)
Introduction to Wireless Sensor Networks
Distributed database approach,
Data Collection and Dissemination
Wireless Sensor Network Architectures
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
Aggregation.
Presentation transcript:

TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Authors: Samuel Madden, Michael Franklin, Joseph Hellerstein Presented by: Vikas Motwani CSE 291: Wireless Sensor Networks May 1 st 2003

Outline  Motivation For TAG  Approach, Operation and Syntax  Aggregate structure and Implementation  Benefits of TAG  Simulation and Optimizations  Experimental results  Conclusion

Current state of data collection  Main idea of sensor networks is to extract data from the network/environment  Data could be raw sensor readings or summaries/aggregations of many readings  Previous work views aggregation as application-specific mechanism that would be implemented on a per-need basis in error prone languages like C

Hence: Motivation for TAG  Aggregation: should be a core service rather than a set of extensible C APIs.  In-network processing necessary to save power as sensor networks are bandwidth and power constrained and communication is energy expensive  Power: Transmitting 1 bit = 800 instructions!!!  Useful to non networking/programming experts who can focus on their custom applications without worrying about underlying hardware/software and data collection mechanisms

One Word Answers!!!  Hardware: Motes  Software: TinyOS  Routing: Ad-Hoc  Major Constraint: Power  Constraint dominated by: Communication

The Tiny AGgregation Approach  Essential Attributes Simple, declarative interface for data collection and aggregation – SQL style Intelligently distributes and executes aggregation queries in the sensor network in a time & power-efficient manner Sensitive to resource constraints and lossy communication properties of wireless sensor networks Processes aggregates by computing over the data as it flows through the sensors, discarding irrelevant information and compacting relevant readings

Operation  Users pose aggregation queries from a base station  Messages propagate from the base station to all nodes through routing tree rooted at base station  Divide time into epoch and in each epoch, Sensors route local and children data back to user using routing tree  As data flows up the tree, it is aggregated according to aggregation function and value based partitioning specified in original query

Language: SQL style query syntax  SQL-like syntax SELECT: specifies an arbitrary arithmetic expression over one or more aggregation values expr: The name of a single attribute agg: Aggregation function Attrs: selects the attributes by which the sensor readings are partitioned WHERE, HAVING: Filters out irrelevant readings GROUP BY: specifies an attribute based partitioning of readings EPOCH DURATION: Time interval of aggr record computation  Each record is a pair

Aggregate Structure  Implement aggregate via 3 functions: Merging Function f Initializer I Evaluator e  Example: AVERAGE Partial State record: Sum and Count:  Merging function f(, ) =  Initializer i(x)=  Evaluator e( )=S/C  Original SQL specs has 5 options: COUNT, MAX, MIN, SUM, AVG

Classification of Aggregates and States  Duplicate sensitivity (insensitive aggr: unaffected by duplicate readings from same node, sensitive: changes)  Exemplary(returns one or more representative values of a set) vs. Summary(returns some computation/summary)  Monotonic aggregates  Amount of state required for every partial state record – depends on number of values per record Distributive Algebraic Holistic Unique Content – sensitive

Attribute Catalog  Queries in TAG contain named attributes  Included on each mote is a small catalog of attributes that can be searched for attributes of a specific name  Central query processor caches or stores attributes of all motes it may access  When a TAG sensor receives a query, it converts names fields into local catalog identifiers, or sends back a NULL if it is lacking the attribute  Not all nodes have identical catalogs, so can be implemented for heterogeneous sensing

In Network Aggregates/Implementation  Distribution and Collection Phases with goal to reduce messages  Mote p receives a request r to aggregate, wakes up, synchronizes clock  p chooses sender of message as its parent and r includes interval in which p must reply back with partial state record  P then sends the message down the network to its children, setting the delivery interval for its children to reply back by broadcasting r  This propagation ends when all nodes in the network are queried  During the epoch after the propagation, each mote listens for messages from its children, during the specified interval.  Then computes a partial state record consisting of any child values heard with its own local sensor readings.  Each mote transmits this partial state record up the network  Every epoch, new aggregate produced  Most of the times, motes are idle and in low power state

The First Non-Text Slide

Grouping Each sensor placed in exactly one group partitioned according to an expression over all attributes Basic grouping technique: push the query down network, as the nodes to choose which group they belong to, as they flow upwards, update aggregate values in appropriate groups, and now partial state records are attached with a group ID When a parents receives an aggregate from a child, it checks the group ID. If it is in the same group, it combines the two values using the combining function. If different group, stores the value of the child’s group along with its own and forwards up.

Grouping Example

Additional Benefits of TAG  Principle Advantage: ability to dramatically decrease communication required to compute aggregate vs. central aggregation approach  Ability to tolerate disconnections and loss, as lost nodes can reconnect to network by listening to another node’s state records, even if not intended for them  In TAG, each node transmits only one value. In non-TAG, nodes at top of tree have to transmit lot more values and get drained faster  Also, by dividing time into epochs, long idle times are present for the processor and radio to be put in deep sleep modes with little power.  Just 10 more slides to go..

Simulation Based Evaluation  Simulated TAG in Java Simple: nodes have perfect lossless communication with regularly placed neighbors Random: nodes’ placement random Realistic model to capture actual behavior of radio and link layer on TinyOS motes (uses results from real world experiments to approximate actual loss of TinyOS radio) – has high loss rates  Simulator models mote behavior at a course level: time divided in epochs, messages encapsulated in java objects  Simulation cannot model fine grained details of network like real world characteristics and modeling radio contention at a byte level

Performance of TAG  MIN & COUNT – small as only one integer per partial state record  Average – 2 integers, so double cost of distributive  Median – same as centralized as parents have to forward all children’s values to root  Count Distinct – only slightly less expensive  Histogram – size of fixed- width buckets = 10, sensor values ranged over interval [ ]

Optimizations: Channel Sharing and Hypothesis Testing  Channel sharing: If node misses initial request to aggregate, it can snoop (at regular intervals) network traffic and “catch up” and include itself Can also reduce if node sees a higher value reported that its own for MAX, it will not bother to send a message Reduces number of messages sent  Hypothesis Testing: Root can provide information that will reduce number of readings as it will reduce the number of nodes that need to report back at initialization. E.g.; MAX, MIN For summary aggregates, hypothesis testing via a guess is not as effective as monotonic aggregates. Root has to send a fixed size tolerable error bound over the value of the aggregate

Benefits of Hypothesis Testing

Improving tolerance to loss: Effects of a single loss  Wanted to see the effect of the loss of a single node and how long network takes to stabilize and children of lost node to find new parents  Amount of time taken for lost nodes to reintegrate is directly proportional to depth of lost node due to tree topology  Max loss of variable and some aggregates are more sensitive to a single loss than others. COUNT has large error in worst case: if node that connects the root to a large portion of the network is lost, temporary error is high.

Effect of a Single Loss

Child Caching Parents remember the partial state records their children reported for some number of rounds and use those previous values when new values are unavailable due to lost child messages

Experimental Results  16 nodes, depth 4 tree, COUNT aggregate  # of messages Centralized: 4685 TAG: % better!!  Centralized: Increased network contention, Per hop loss rates = 15% (TAG = 5%)  Centralized: Only 45% of messages from nodes at bottom of tree reached root.

Limitations Grouping Problem: # of groups can exceed the total storage on any device – solution is to evict one or more groups from local storage More Eviction Schemes as best and worst case had difference of only 10% Caching temporarily smears the aggregate values that are computed making caching undesirable for some workloads Correctness Check: which nodes are included in aggregation and which are not?

Conclusion  TAG is based on a declarative query interface Uses aggregation extensively Makes network tasking easier for the user who does not have to modify low level code or worry about topology, routing and loss tolerance  TAG outperforms centralized approaches in most cases due to aggregation  Produces an order of magnitude reduction in bandwidth and power consumption  Questions??