1 Sensor Network Databases Ref: Wireless sensor networks---An information processing approach Feng Zhao and Leonidas Guibas (chapter 6)

Slides:



Advertisements
Similar presentations
Relational Algebra, Join and QBE Yong Choi School of Business CSUB, Bakersfield.
Advertisements

한국기술교육대학교 컴퓨터 공학 김홍연 TinyDB : An Acquisitional Query Processing System for Sensor Networks. - Samuel R. Madden, Michael J. Franklin, Joseph M. Hellerstein,
Concepts of Database Management Sixth Edition
Chapter 11 Group Functions
Programming Vast Networks of Tiny Devices David Culler University of California, Berkeley Intel Research Berkeley
Approximating Sensor Network Queries Using In-Network Summaries Alexandra Meliou Carlos Guestrin Joseph Hellerstein.
Probabilistic Aggregation in Distributed Networks Ling Huang, Ben Zhao, Anthony Joseph and John Kubiatowicz {hling, ravenben, adj,
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.
Probabilistic Data Aggregation Ling Huang, Ben Zhao, Anthony Joseph Sahara Retreat January, 2004.
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 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 :
Concepts of Database Management, Fifth Edition
CS2510 Fault Tolerance and Privacy in Wireless Sensor Networks partially based on presentation by Sameh Gobriel.
Chapter 3 Single-Table Queries
IPCCC’111 Assessing the Comparative Effectiveness of Map Construction Protocols in Wireless Sensor Networks Abdelmajid Khelil, Hanbin Chang, Neeraj Suri.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong.
TinyOS By Morgan Leider CS 411 with Mike Rowe with Mike Rowe.
A Metadata Based Approach For Supporting Subsetting Queries Over Parallel HDF5 Datasets Vignesh Santhanagopalan Graduate Student Department Of CSE.
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,
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.
MINT Views: Materialized In-Network Top-k Views in Sensor Networks Demetrios Zeinalipour-Yazti (Uni. of Cyprus) Panayiotis Andreou (Uni. of Cyprus) Panos.
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.
1 Single Table Queries. 2 Objectives  SELECT, WHERE  AND / OR / NOT conditions  Computed columns  LIKE, IN, BETWEEN operators  ORDER BY, GROUP BY,
Concepts of Database Management Seventh Edition
Benjamin AraiUniversity of California, Riverside Reliable Hierarchical Data Storage in Sensor Networks Song Lin – Benjamin.
Using Special Operators (LIKE and IN)
Query Processing for Sensor Networks Yong Yao and Johannes Gehrke (Presentation: Anne Denton March 8, 2003)
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
Supporting Aggregate Queries Over Ad-Hoc Wireless Sensor Networks.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
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.
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.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
DATA AGGREGATION Siddhartha Sarkar Roll no: CSE-4 th Year-7 th semester Sensor Networks (CS 704D) Assignment.
1-1 CMPE 259 Sensor Networks Katia Obraczka Winter 2005 Storage and Querying.
Energy conservation in Wireless Sensor Networks Sagnik Bhattacharya, Tarek Abdelzaher University of Virginia, Department of Computer Science School of.
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.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
1 Querying the Physical World Cornell University Event Detection Services Using Data Service Middleware in Distributed Sensor Networks University.
TreeCast: A Stateless Addressing and Routing Architecture for Sensor Networks Santashil PalChaudhuri, Shu Du, Ami K. Saha, and David B. Johnson Department.
REED : Robust, Efficient Filtering and Event Detection in Sensor Network Daniel J. Abadi, Samuel Madden, Wolfgang Lindner Proceedings of the 31st VLDB.
Aggregation and Secure Aggregation. [Aggre_1] Section 12 Why do we need Aggregation? Sensor networks – Event-based Systems Example Query: –What is the.
1 TAG: A Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden UC Berkeley with Michael Franklin, Joseph Hellerstein, and Wei Hong December.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
1 Along & across algorithm for routing events and queries in wireless sensor networks Tat Wing Chim Department of Electrical and Electronic Engineering.
Retrieving Information Pertemuan 3 Matakuliah: T0413/Current Popular IT II Tahun: 2007.
TAG: a Tiny AGgregation service for ad-hoc sensor networks Authors: Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, Wei Hong Presenter: Mingwei.
Querying Sensor Networks
Distributed database approach,
The Design of an Acquisitional Query Processor For Sensor Networks
MANAGING DATA RESOURCES
Database.
Distributing Queries Over Low Power Sensor Networks
Chapter 8 Advanced SQL.
Aggregation.
Presentation transcript:

1 Sensor Network Databases Ref: Wireless sensor networks---An information processing approach Feng Zhao and Leonidas Guibas (chapter 6)

2 Sensor Network as Database: Think of a sensor network as a distributed database that store data within the network and allow queries to be injected anywhere in the network. Research issues –how is data stored and organized after sensing –what’s the user interface to the sensor database –How does an external query find and process the data in an efficient manner?

3 Challenges –The system is highly volatile –Relational tables are not static New data is continuously sensed –High communication cost In-net processing during query execution –Arbitrarily long delay and unavailable –Limited storage Older data has to be discarded Keep statistics –Range queries common –Long-running, continuous queries

4 Querying the physical world –Common user operations in sensor network: Queries Actuate & control –Query: user specify the data they want Simple, SQL-like queries Using predicates, not specific addresses –Challenge is to provide: Expressive and easy-to-use interface High-level operators Power efficient execution framework –Do sensor networks change query processing?

5 Type of queries –Historical What is the average rainfall over past 2 days? –Current What is the current temperature in Rm# MI 303? –Long running, continuous Temperature in Rm# MI 303 over the next 4 hours every 30 seconds.

6 Example Query –High-level query interface such as SQL  For next 3 hours, retrieve every 10 minutes the max rainfall level in each county in California, if it is greater than 3.0 inch.  SELECT max (rainfal_Level),county FROM sensors Where STATE = California GROUP BY country HAVING max (rainfal_Level) > 3.0in DURATION [ now, now+180min] SAMPLING PERIOD 10 min

7 Issues –How to identify relevant sensors? –Computation vs. communication tradoff Where to process query? Inside the sensor network (route query) At centralized location (route data) –Large amount of data transfer  not efficiency How to process?

8 Data aggregation –Aggregate data as it flows through the network –Data must meet certain criteria –Not all data can be aggregated

9 Issues –When is data generated? sporadic, periodic –Where is data generated? all-producing, selected-producing, single- producing –Where’s data collected? full-site, selected-site, single-site –How is data packaged? Lossy or lossless? Concatenation, fusion, addition, reduction

10 Ex : All-producing Model Characteristics: All nodes produce periodically Data can be aggregated Tree construction is down by simple broadcast

11 Tiny Aggregation(TAG) In-network processing of aggregates in TinyDB –Common data analysis operation –Communication reducing –Across nodes during same epoch Assume query from external server(sink) Exploit query semantics to improve efficiency

12 At A Glance … Trying to minimize the number of messages sent All aggregation is done by building a tree

13 Basic Aggregation –In each epoch (sampling period): Consists of # time intervals=tree depth Each node samples local sensors once Generates partial state record (PSR) Local readings and readings from children Outputs PSR during assigned comm. Interval –At end of epoch, PSR for while network output at root –New result on each successive epoch

14 Example Select count(*) From sensors Epoch Interval Nodes 1,2,3 may sleep Sensor # Interval # Level 1 Level 2 Level 3 Level 4

15 Notations Each epoch is divided into a number of fixed-length time intervals. Intervals are numbered in reverse order such that interval 1 is the last interval in the epoch Each node is assigned to the interval equal to its level In the interval preceding their own, nodes listen to their radios, collecting results from any child nodes During a node’s interval, – if it is aggregating, it computes the partial state record (PSR) consisting of the combination of any child values it heard with its own local readings. –After this computation, it transmits either its PSR or raw sensor readings up the network.

16 Example Select count(*) From sensors Epoch Interval Nodes 1,2,5 may sleep Sensor # Interval # 2

17 Example Select count(*) From sensors Epoch Interval Nodes 4,5 may sleep Sensor # Interval # 3

18 Example Select count(*) From sensors Epoch Interval Nodes 2,3,4,5 may sleep Sensor # Interval #

19 Example Select count(*) From sensors Epoch Interval Nodes 1,2,3 may sleep Sensor # Interval #

20 The Tiny Aggregation (TAG) Approach (S. Madden, UCB) Push declarative queries into network –Impose a hierarchical routing tree onto the network Divide time into epochs Every epoch, sensors evaluate query over local sensor data and data from children –Aggregate local and child data –Each node transmits just once per epoch –Pipelined approach increases throughput Depending on aggregate function, various optimizations can be applied

21 SQL Primer (Madden) SQL is an established declarative language; not wedded to it –Some extensions clearly necessary, e.g. for sample rates We adopt a basic subset: ‘sensors’ relation (table) has –One column for each reading-type, or attribute –One row for each externalized value May represent an aggregation of several individual readings SELECT {agg n (attr n ), attrs} FROM sensors WHERE {selPreds} GROUP BY {attrs} HAVING {havingPreds} EPOCH DURATION s SELECT AVG(light) FROM sensors WHERE sound < 100 GROUP BY roomNo HAVING AVG(light) < 50

22 Query Propagation (Madden) TAG propagation agnostic –Any algorithm that can: Deliver the query to all sensors Provide all sensors with one or more duplicate free routes to some root Paper describes simple flooding approach –Query introduced at a root; rebroadcast by all sensors until it reaches leaves –Sensors pick parent and level when they hear query –Reselect parent after k silent epochs Query P:0, L: P:1, L:2 P:3, L:3 P:2, L:3 P:4, L:4

23 TAG Discussion (Madden) Result is a stream of values –Ideal for monitoring scenarios One communication / node / epoch –Symmetric power consumption, even at root New value on every epoch –After d-1 epochs, complete aggregation Given a single loss, network will recover after at most d-1 epochs With time synchronization, nodes can sleep between epochs, except during small communication window

24 Taxonomy of Aggregates (Madden) TAG insight: classifying aggregates according to various functional properties –Yields a general set of optimizations that can automatically be applied PropertyExamplesAffects Partial StateMEDIAN : unbounded, MAX : 1 record Effectiveness of TAG Duplicate SensitivityMIN : dup. insensitive, AVG : dup. sensitive Routing Redundancy Exemplary vs. Summary MAX : exemplary COUNT: summary Applicability of Sampling, Effect of Loss MonotonicCOUNT : monotonic AVG : non-monotonic Hypothesis Testing, Snooping

25 Data Indices and Range Queries –Key idea: pre-storing the answers to certain special queries –One-dimensional indices Canonical subset: the subset of data forming pre-stored answers –Example: Counting cars passing in each sensor Query for counts over various contiguous segments of the

26 One-Dimensional Indices –Build a binary tree: Map u i to s i-1 An internal node aggregates counts from all its descendant sensors in the tree If query for segment between s0 an s4, can get answer from u2( stored in s1) Any segment can be answered by combining subtrees –Partial data aggregation: key for indexing range queries s0 s1s2 s3 s4s5s6s7 u2 u1 u3 u4 u5u6 u7 u4=s0  S1  s2  s3  s4  s5  s6  s7 u1=s0  S1 u3=s2  s3 …

27 Multi-dimensional Indices Select * From event s Where Temp >=50 and Temp<=60 and Light >=5 and Light < Temperature Light_reading

28 Three-dimensional indices: k - d tree