the cougar approach to in-network query processing in sensor networks

59
Presented By: Dilini A. Muthumala Supervised By: Dr. Jeevani Goonetillake The Cougar Approach to In-Network Query Processing in Sensor Networks

Upload: dilini-muthumala

Post on 02-Jul-2015

411 views

Category:

Technology


3 download

DESCRIPTION

These slides presents the research paper: "The cougar approach to in-network query processing in sensor networks" by Yong Yao and Johannes Gehrke. This presentation was done in a research seminar at the University of Colombo, School of Computing by the uploader.

TRANSCRIPT

Page 1: The cougar approach to in-network query processing in sensor networks

Presented By: Dilini A. MuthumalaSupervised By: Dr. Jeevani Goonetillake

The Cougar Approach to In-Network Query Processing

in Sensor Networks

Page 2: The cougar approach to in-network query processing in sensor networks

Authors

Page 3: The cougar approach to in-network query processing in sensor networks

Yong Yao

• Software Engineer at Google

• Ph.D., Computer ScienceCornell University (2000 – 2007)

• Research Interests– Databases– Sensor Networks– Distributed Systems

Page 4: The cougar approach to in-network query processing in sensor networks

Johannes Gehrke

• University ProfessorDepartment of Computer Science

Cornell University

• Research Interests

–Scalability in Computer Games and Simulations–Data Privacy

–Data Mining

Page 5: The cougar approach to in-network query processing in sensor networks

Motivation

• “Database Abstraction Layer” for Sensor Networks

• Most popular sensor data management middleware

• Introduces Database Abstraction Layer Concept

• Cited by 1185 (source: Google Scholar)No. of citations

Year

Page 6: The cougar approach to in-network query processing in sensor networks

Presentation Outline

• Introduction

• Database Abstraction Layer

• Architecture

• Research Problems

• Conclusion

Page 7: The cougar approach to in-network query processing in sensor networks

Introduction

Page 8: The cougar approach to in-network query processing in sensor networks

Wireless Sensor Network (WSN)

Page 9: The cougar approach to in-network query processing in sensor networks

Limitations

• Communication

• Power Consumption

• Computation

• Uncertainty in Sensor Readings

Page 10: The cougar approach to in-network query processing in sensor networks

WSN Applications

• Smart Buildings, Smart Homes

Page 11: The cougar approach to in-network query processing in sensor networks

WSN Applications

• Wild Life Monitoring

Page 12: The cougar approach to in-network query processing in sensor networks

WSN Applications

• Monitoring Vineyards

Page 13: The cougar approach to in-network query processing in sensor networks

Future of WSN

Is Johannes in his

office?

Internet

Page 14: The cougar approach to in-network query processing in sensor networks

Future of WSN

Temperature

Humidity

Light

Page 15: The cougar approach to in-network query processing in sensor networks

Motivation

1) Declarative queries are suited for WSN interaction

SELECT TempFROM sensors

Complex Network

Page 16: The cougar approach to in-network query processing in sensor networks

Motivation

2) Increasing network lifetime is the major goal of any WSN application

WSNData Repository for

offline analysis

Page 17: The cougar approach to in-network query processing in sensor networks

Database Abstraction Layer

Page 18: The cougar approach to in-network query processing in sensor networks

Database Abstraction Layer

WSNWSNBase Station

SELECT Temp, Humid, NodeIDFROM sensorsSAMPLE PERIOD 5s

Node ID Temperature Humidity

1 127 44

2 119 47

3 120 45

4 123 40

5 120 46

Page 19: The cougar approach to in-network query processing in sensor networks

Database Abstraction Layer

• Local computations are much cheaper than communication– Pushing partial computations out into the

network

Page 20: The cougar approach to in-network query processing in sensor networks

Database Abstraction Layer

• Retrieves data only upon user demand

• No offline data storage

• Energy Efficient

Page 21: The cougar approach to in-network query processing in sensor networks

Architecture

Page 22: The cougar approach to in-network query processing in sensor networks

Architecture - Overview

Query OptimizerQuery Proxy Layer

Page 23: The cougar approach to in-network query processing in sensor networks

Query Proxy Layer

Application Layer

Query Proxy Layer

Routing Layer

Other Layers

Page 24: The cougar approach to in-network query processing in sensor networks

Query Optimizer• Generates “Query Processing Plans”

• Refers to– Catalog Information– Query Specification

• Specifies– Data Flow between sensors– Computation Plan

• Finally, plan is disseminated to all sensors

Page 25: The cougar approach to in-network query processing in sensor networks

Example

Page 26: The cougar approach to in-network query processing in sensor networks

User Query

“Notify when the average temperature

exceeds 35 °C”

WSNWSN

Page 27: The cougar approach to in-network query processing in sensor networks

Query Optimizer

“Notify when the average temperature

exceeds 35 °C”

Query Optimizer

Query Plan

Page 28: The cougar approach to in-network query processing in sensor networks

Query Plan (QP)

• Designates the Leader node– Where average value will be finalized

Query Plan

Leader Node

Page 29: The cougar approach to in-network query processing in sensor networks

Query Plan (QP)

• Two computation plansi. Leader Node

ii. Non-Leader Nodes

Query Plan

Page 30: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Non-Leader Node

Page 31: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

Page 32: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

1

Temperature = 38 °C

Page 33: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

2

Temperature = 38 °C

Page 34: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

Page 35: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

2

Temperature = 38 °C

AVG Temperature = 35 °CContributor Count = 1AVG Temperature = 36 °CContributor Count = 1

Page 36: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

Temperature = 38 °C

AVG Temperature = 35 °CContributor Count = 1AVG Temperature = 36 °CContributor Count = 1

Page 37: The cougar approach to in-network query processing in sensor networks

In-Network Aggregation

Total Temperature = 35*1 + 36*1 + 38

= 109

No of Contributors = 3

AVG Temperature = 109 / 3

= 36.33

Temperature = 38 °C

AVG Temperature = 35 °CContributor Count = 1

AVG Temperature = 36 °CContributor Count = 1

AVG Temperature = 36.33 °CContributor Count = 3

Page 38: The cougar approach to in-network query processing in sensor networks

QP for Non-Leader Node

Sensor Scan

Network Interface

In-network Aggregation

AVG Temperature = 36.33 °CContributor Count = 3

Towards the Leader

Page 39: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Leader Node

Page 40: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Aggregate Operator (AVG)

Network Interface

Select AVG > threshold

Towards the Leader

Average Value

Partially aggregated results

Page 41: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Aggregate Operator (AVG)

Network Interface

Select AVG > threshold

Towards the Leader

Average Value

Partially aggregated results

1

Page 42: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Leader Node

AVG Temperature = 36.33 °CContributor Count = 3

AVG Temperature = 39 °CContributor Count = 2

Page 43: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Aggregate Operator (AVG)

Network Interface

Select AVG > threshold

Towards the Leader

Average Value

Partially aggregated results

AVG Temperature = 36.33 °CContributor Count = 3

AVG Temperature = 39 °CContributor Count = 2

Page 44: The cougar approach to in-network query processing in sensor networks

Aggregate Operator

Total Temperature = 39*2 + 36.33*3 = 186.99

No of Contributors = 5

AVG Temperature = 186.99 / 5

= 37.40

AVG Temperature = 36.33 °CContributor Count = 3

AVG Temperature = 39 °CContributor Count = 2

AVG Temperature = 37.40 °C

Page 45: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Aggregate Operator (AVG)

Network Interface

Select AVG > threshold

Towards the Leader

Average Value

Partially aggregated results

AVG Temperature = 37.40 °C

Page 46: The cougar approach to in-network query processing in sensor networks

QP for Leader Node

Aggregate Operator (AVG)

Network Interface

Select AVG > threshold

Towards the Leader

Average Value

Partially aggregated results

AVG Temperature = 37.40 °C

Threshold = 35 °C“Notify when

the average temperature exceeds 35 °C”

Page 47: The cougar approach to in-network query processing in sensor networks

WSNWSN

User Query Result

ALERT!Temperature exceeds 35 °C

Page 48: The cougar approach to in-network query processing in sensor networks

Research Problems

Page 49: The cougar approach to in-network query processing in sensor networks

1. Aggregation

• Most popular computation and communication pattern

• Two important issues– Leader Selection– Data Delivery

Page 50: The cougar approach to in-network query processing in sensor networks

Leader Selection

Requirements for the policyi. Dynamically-maintained Leader

ii. Physically advantageous location

Page 51: The cougar approach to in-network query processing in sensor networks

Leader Selection

Requirements for the policyi. Dynamically-maintained Leader

ii. Physically advantageous location

Page 52: The cougar approach to in-network query processing in sensor networks

Data Delivery

“How should the data be delivered from source nodes to the leader?”

– Send all data to leader?– Should intermediate nodes participate?

Page 53: The cougar approach to in-network query processing in sensor networks

2. Query Language

“What types of queries should be supported?”

Page 54: The cougar approach to in-network query processing in sensor networks

3. Query Optimization

• Cost of query plan has changed

• Energy should be the focus

• Reactive to changes in catalog information– Changes in topology– Power level at sensor nodes

Page 55: The cougar approach to in-network query processing in sensor networks

4. Catalog Management

• Maintained at the server

• Provides Meta Data about the network

• Question: What is the best way to main the catalog?

Page 56: The cougar approach to in-network query processing in sensor networks

5. Multi-Query Optimization

• Occurs when the WSN is shared

• Users may pose similar queries

• Share common data among the users

Page 57: The cougar approach to in-network query processing in sensor networks

Conclusion

• Interacting with a WSN is made easy

• Database Abstraction layer provides– Friendly Interface

– Efficient scheme to reduce energy consumption

• Research problems need to be carefully addressed

Page 58: The cougar approach to in-network query processing in sensor networks

My Views on the Paper

• Presents a concept

• Easy-to-understand

• Flow of the paper sometimes confuse the reader

Page 59: The cougar approach to in-network query processing in sensor networks

Q & A