Distributed database approach,

Slides:



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

1 Routing Techniques in Wireless Sensor networks: A Survey.
1 Sensor Network Databases Ref: Wireless sensor networks---An information processing approach Feng Zhao and Leonidas Guibas (chapter 6)
Gossip Scheduling for Periodic Streams in Ad-hoc WSNs Ercan Ucan, Nathanael Thompson, Indranil Gupta Department of Computer Science University of Illinois.
A Novel Cluster-based Routing Protocol with Extending Lifetime for Wireless Sensor Networks Slides by Alex Papadimitriou.
Directed Diffusion: A Scalable and Robust Communication Paradigm for Sensor Networks.
The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks.
Dissemination protocols for large sensor networks Fan Ye, Haiyun Luo, Songwu Lu and Lixia Zhang Department of Computer Science UCLA Chien Kang Wu.
Aggregation in Sensor Networks NEST Weekly Meeting Sam Madden Rob Szewczyk 10/4/01.
Approximate data collection in sensor networks the appeal of probabilistic models David Chu Amol Deshpande Joe Hellerstein Wei Hong ICDE 2006 Atlanta,
UNIVERSITY OF SOUTHERN CALIFORNIA Embedded Networks Laboratory 1 Wireless Sensor Networks Ramesh Govindan Lab Home Page:
Exploiting Correlated Attributes in Acquisitional Query Processing Amol Deshpande University of Maryland Joint work with Carlos Sam
LPT for Data Aggregation in Wireless Sensor networks Marc Lee and Vincent W.S Wong Department of Electrical and Computer Engineering, University of British.
Online Data Gathering for Maximizing Network Lifetime in Sensor Networks IEEE transactions on Mobile Computing Weifa Liang, YuZhen Liu.
1 Acquisitional Query Processing in TinyDB Sam Madden UC Berkeley NEST Winter Retreat 2003.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
Model-driven Data Acquisition in Sensor Networks Amol Deshpande 1,4 Carlos Guestrin 4,2 Sam Madden 4,3 Joe Hellerstein 1,4 Wei Hong 4 1 UC Berkeley 2 Carnegie.
Data Management for Sensor Networks Zachary G. Ives University of Pennsylvania CIS 650 – Database & Information Systems April 4, 2005.
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 :
Query Driven Data Collection and Data Forwarding in Intermittently Connected Mobile Sensor Networks Wei WU 1, Hock Beng LIM 2, Kian-Lee TAN 1 1 National.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong.
Routing and Data Dissemination. Outline Motivation and Challenges Basic Idea of Three Routing and Data Dissemination schemes in Sensor Networks Some Thoughts.
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.
MINT Views: Materialized In-Network Top-k Views in Sensor Networks Demetrios Zeinalipour-Yazti (Uni. of Cyprus) Panayiotis Andreou (Uni. of Cyprus) Panos.
The Design of an Acquisitional Query Processor for Sensor Networks CS851 Presentation 2005 Presented by: Gang Zhou University of Virginia.
한국기술교육대학교 컴퓨터 공학 김홍연 Habitat Monitoring with Sensor Networks DKE.
 SNU INC Lab MOBICOM 2002 Directed Diffusion for Wireless Sensor Networking C. Intanagonwiwat, R. Govindan, D. Estrin, John Heidemann, and Fabio Silva.
Dave McKenney 1.  Introduction  Algorithms/Approaches  Tiny Aggregation (TAG)  Synopsis Diffusion (SD)  Tributaries and Deltas (TD)  OPAG  Exact.
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.
KAIS T Distributed cross-layer scheduling for In-network sensor query processing PERCOM (THU) Lee Cheol-Ki Network & Security Lab.
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.
An Adaptive Zone-based Storage Architecture for Wireless Sensor Networks Thang Nam Le, Dong Xuan and *Wei Yu Department of Computer Science and Engineering,
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.
Sep Multiple Query Optimization for Wireless Sensor Networks Shili Xiang Hock Beng Lim Kian-Lee Tan (ICDE 2007) Presented by Shan Bai.
Optimizing Query Processing In Sensor Networks Ross Rosemark.
Structure-Free Data Aggregation in Sensor Networks.
Directed Diffusion: A Scalable and Robust Communication Paradigm for Sensor Networks Presented by Barath Raghavan.
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.
TAG: a Tiny AGgregation service for ad-hoc sensor networks Authors: Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, Wei Hong Presenter: Mingwei.
Routing protocols for sensor networks.
Multiway Search Trees Data may not fit into main memory
Demetrios Zeinalipour-Yazti (Univ. of Cyprus)
Introduction to Wireless Sensor Networks
Chapter 25: Advanced Data Types and New Applications
Wireless Sensor Networks
Wireless Sensor Network Architectures
Aziz Nasridinov and Young-Ho Park*
The Design of an Acquisitional Query Processor For Sensor Networks
Database Applications (15-415) DBMS Internals- Part III Lecture 15, March 11, 2018 Mohammad Hammoud.
Distributing Queries Over Low Power Sensor Networks
PRESENTATION COMPUTER NETWORKS
Outline Ganesan, D., Greenstein, B., Estrin, D., Heidemann, J., and Govindan, R. Multiresolution storage and search in sensor networks. Trans. Storage.
Data-Centric Networking
REED : Robust, Efficient Filtering and Event Detection
Aggregation.
Overview: Chapter 2 Localization and Tracking
Index Structures Chapter 13 of GUW September 16, 2019
Presentation transcript:

Distributed database approach, Data management for sensor networks Distributed database approach, query processing, storage management

Distributed data management Each node is equipped with sensors and generates data The network is viewed as a distributed database ** Research challenges: How to query data? How to store data? Queries Temperature Time Value 2:00 15 4:00 12 Temperature Time Value 2:00 10 4:00 13 Humidity Temperature Pressure Time Value Time Value Time Value 2:30 70 3:30 75 2:00 20 3:00 18 1:00 30 4:00 35 ** e.g. TinyDB: http://www.cs.berkeley.edu/~franklin/Papers/TinyDBTods.pdf

How to query sensor data? A declarative approach to tasking sensors using an SQL-like language: Example of a long-running query: SELECT nodeid, light, temp FROM sensors SAMPLE INTERVAL 1s FOR 10s

How to query sensor data? Example of a snapshot query: SELECT nodeid, pressure FROM sensors where pressure > thresholdValue Example of an aggregate query: SELECT nodeid, AVG (pressure) WHERE location in (100,100,200,200) [SAMPLE INTERVAL 100s FOR 1000s]

How to query sensor data? Example of an aggregate query with grouping: SELECT room, AVG (volume) FROM sensors WHERE floor = 6 GROUP BY room HAVING AVG(volume) > threshold SAMPLE INTERVAL 30s

How to query sensor data? Example of a temporal aggregate query: SELECT WINAVG (volume, 30s,5s) FROM sensors SAMPLE INTERVAL 1s (will report avg volume over the last 30 sec once every 5 sec sampling once per second) Example of an event-based query: ON EVENT bird-detect (loc): SELECT AVG (light), AVG (temp), event.loc FROM sensors AS s WHERE dist(s.loc, event.loc) < 10m SAMPLE INTERVAL 2s FOR 30s

How to query sensor data? Example of a lifetime-based query: SELECT nodeId, accel FROM sensors LIFETIME 30 days The query above specifies that the network should run for at least 30 days, sampling acceleration sensors at a rate that is as quick as possible and still satisfies the lifetime goal.

Query processing Query dissemination: Then queries are disseminated in a simple binary format into the sensor network. Query execution Finally, queries are executed in a distributed manner, and results are propagated back to the gateway.

Query dissemination The query is first broadcast from the gateway (root of the network). When a node hears the query, it decides if the query applies locally (if there is a non-zero probability that the node can produce pertinent results for this query) If the query needs to be broadcast to the children of the current node in the routing tree. This depends on whether the query applies to any of the current node’s descendants.

Query dissemination Semantic routing trees (SRTs) SRTs are designed to help nodes decide if any of their descendants needs to participate in a given query. Each node stores a single uni-dimensional interval representing the range of a sensor attribute A beneath each of its children. When a query with a predicate p(A) arrives at a node, the node checks if any child has a range of A values some of which could satisfy p(A). If so, the node forwards the query to that child. If the query also applies locally, the node starts executing the query. If the query does not apply at the current node, nor at any of its children, it is ignored.

Query dissemination Semantic routing trees (SRTs) select light from sensors where x>3 and x<7 SRT(x) 2: [1,1] 3: [5,10] 1 loc:(4,12) SRT(x) 4: [5,5] 5: [10,10] SRT(x) --------- 2 3 loc:(1,7) loc:(8,7) SRT(x) --------- SRT(x) --------- 4 5 loc:(5,3) loc:(10,3)

Query dissemination Semantic Routing Trees How to build SRTs? In tree-based routing, nodes typically select as their parent the neighbor node on the shortest (or most reliable) path to the root. Suppose that there are more than one such neighbor nodes, i.e. more than one candidate parents. With SRTs, the choice of parent depends also on semantic properties, for example, how the values of the indexed attribute on the local node compares to those on the candidate parent nodes. For example, in the closest-parent approach, nodes select among their candidate parents, the one whose attribute value is closest to their own.

Query execution During every epoch of query execution, each node performs several operations: samples local sensors receives data from its children processes local and received data sends intermediate results to its parent stores data locally (optional) for robustness

Query execution Prioritizing data delivery Sensor samples and incoming messages, once processed, are inserted into a radio queue for delivery. In networks with high data rates, this queue may overflow. Potential approaches to deal with queue overflow: Naïve: no tuple is considered more valuable than any other. Tuples are dropped if they do not fit in the queue. Winavg: the two results at the head of the queue are averaged to make room for new results. Delta: Tuples are prioritized dependent on their difference from the most recent value successfully transmitted from this node. At each point in time, the tuple with the highest score is delivered. The tuple with the lowest score is evicted when the queue overflows. Other approximation and compression schemes, e.g. Fourier

Aggregate query execution SELECT SUM(s) FROM SensorData s WHERE s.nest = empty EVERY 60 min Centralized processing: send raw data to gateway evaluate query centrally at the gateway With centralized processing, results at each edge grow linearly in the number of descendant nodes. 4 3 2 4,3,2 4,3,2,5 2,3 4,3,2,5,2,3,0 Centralized processing 4 3 2 5

Aggregate query execution SELECT SUM(s) FROM SensorData s WHERE s.nest = empty EVERY 60 min In-network processing: evaluate partial aggregate locally at each node send partial aggregate to parent node With in-network processing, the number of results at each edge remains constant. Reduces communication overhead Reduces energy consumption Increases network lifetime 3 2 4 9 14 5 19 In-network processing 4 3 2 5

Summary of issues in query processing for sensor networks Query language: Declarative SQL-like queries; snapshot vs.long-running vs. event-based queries; aggregate vs. temporal aggregate vs. non-aggregate queries Query dissemination: SRTs can help reduce the cost of query dissemination Query execution Data prioritization; in-network aggregation http://www.cs.berkeley.edu/~franklin/Papers/TinyDBTods.pdf

Related reading Query processing for sensor networks “TinyDB: an acquisitional query processing system for sensor networks”. Samuel Madden, Michael Franklin, Joseph Hellerstein and Wei Hong. In ACM Transactions on Database Systems (TODS), vol. 30, no 1, pp. 122-173, 2005. http://www.cs.berkeley.edu/~franklin/Papers/TinyDBTods.pdf