SlideShare uma empresa Scribd logo
1 de 59
The Cougar Approach to
In-Network Query Processing
in Sensor Networks
Presented By:
Supervised By:

Dilini A. Muthumala
Dr. Jeevani Goonetillake
Authors
Yong Yao
• Software Engineer at Google
• Ph.D., Computer Science
Cornell University (2000 – 2007)

• Research Interests
– Databases
– Sensor Networks
– Distributed Systems
Johannes Gehrke
• University Professor
Department of Computer Science
Cornell University

• Research Interests
–Scalability in Computer Games and Simulations
–Data Privacy
–Data Mining
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
Presentation Outline
• Introduction
• Database Abstraction Layer
• Architecture
• Research Problems
• Conclusion
Introduction
Wireless Sensor Network (WSN)
Limitations
• Communication
• Power Consumption
• Computation
• Uncertainty in Sensor Readings
WSN Applications
• Smart Buildings, Smart Homes
WSN Applications
• Wild Life Monitoring
WSN Applications
• Monitoring Vineyards
Future of WSN
Is Johannes
in his
office?

Internet
Future of WSN
Humidity

Temperature

Light
Motivation
1) Declarative queries are suited for WSN
interaction
SELECT Temp
FROM sensors

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

WSN
Data Repository for
offline analysis
Database Abstraction Layer
Database Abstraction Layer
SELECT Temp, Humid,
NodeID
FROM sensors
SAMPLE PERIOD 5s

Base
Station

Node ID

Temperature

Humidity

1

127

44

2

119

47

3

120

45

4

123

40

5

120

46

WSN
Database Abstraction Layer
• Local computations are much cheaper
than communication
– Pushing partial computations out into the
network
Database Abstraction Layer
• Retrieves data only upon user demand
• No offline data storage

• Energy Efficient
Architecture
Architecture - Overview

Query Proxy Layer
Query Optimizer
Query Proxy Layer

Application Layer
Query Proxy Layer
Routing Layer
Other Layers
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
Example
User Query
“Notify when
the average temperature
exceeds 35 °C”

WSN
Query Optimizer
“Notify when
the average temperature
exceeds 35 °C”

Query
Optimizer

Query Plan
Query Plan

Query Plan (QP)

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

Query Plan (QP)

• Two computation plans
i. Leader Node
ii. Non-Leader Nodes
QP for Non-Leader Node

Non-Leader Node
QP for Non-Leader Node
In-network
Aggregation

Network
Interface

Sensor
Scan
QP for Non-Leader Node
In-network
Aggregation

1
Network
Interface

Sensor
Scan
Temperature = 38
°C
QP for Non-Leader Node
In-network
Aggregation

2
Network
Interface

Sensor
Scan
Temperature = 38
°C
QP for Non-Leader Node
In-network
Aggregation

Network
Interface

Sensor
Scan
QP for Non-Leader Node
In-network
Aggregation

2
Network
Interface
AVG Temperature
= 35 °C
Contributor Count = 1
AVG Temperature
= 36 °C
Contributor Count = 1

Sensor
Scan

Temperature = 38
°C
QP for Non-Leader Node
In-network
Aggregation

Network
Interface
AVG Temperature
= 35 °C
Contributor Count = 1
AVG Temperature
= 36 °C
Contributor Count = 1

Sensor
Scan

Temperature = 38
°C
In-Network Aggregation
AVG Temperature
= 35 °C
Contributor Count = 1

AVG Temperature
= 36 °C
Contributor Count = 1

Total Temperature
No of Contributors
AVG Temperature

Temperature = 38
°C

= 35*1 + 36*1 + 38
= 109
=3
= 109 / 3
= 36.33

AVG Temperature
36.33 °C
Contributor Count = 3

=
QP for Non-Leader Node
Towards the Leader

AVG Temperature
In-network
36.33 °C Aggregation
Contributor Count = 3

Network
Interface

=

Sensor
Scan
QP for Leader Node
Leader Node
QP for Leader Node
Towards the Leader
Select
AVG > threshold
Average Value
Aggregate
Operator (AVG)
Partially aggregated
results
Network
Interface
QP for Leader Node
Towards the Leader
Select
AVG > threshold
Average Value
Aggregate
Operator (AVG)

Network
Interface

Partially aggregated
results
1
QP for Leader Node
Leader Node
AVG Temperature
39 °C
Contributor Count = 2

=

AVG Temperature
36.33 °C
Contributor Count = 3

=
QP for Leader Node
Towards the Leader
Select
AVG > threshold
Average Value
Aggregate
Operator (AVG)
Partially aggregated
results
AVG Temperature
39 °C
Contributor Count = 2

=

Network
Interface

AVG Temperature
36.33 °C
Contributor Count = 3

=
Aggregate Operator
AVG Temperature
39 °C
Contributor Count = 2

=

AVG Temperature
36.33 °C
Contributor Count = 3

Total Temperature

= 39*2 + 36.33*3
= 186.99
No of Contributors = 5
AVG Temperature = 186.99 / 5
= 37.40
AVG Temperature
37.40 °C

=

=
QP for Leader Node
Towards the Leader
Select
AVG > threshold
Average Value
AVG Temperature
37.40 °C

=

Aggregate
Operator (AVG)
Partially aggregated
results
Network
Interface
QP for Leader Node
Towards the Leader
AVG Temperature
37.40 °C

=

Select
AVG > threshold

“Notify when
Threshold = 35 °C
the average temperature
exceeds 35 °C”

Average Value
Aggregate
Operator (AVG)
Partially aggregated
results
Network
Interface
User Query Result

ALERT!
Temperature exceeds 35 °C

WSN
Research Problems
1. Aggregation
• Most popular computation and
communication pattern
• Two important issues
– Leader Selection
– Data Delivery
Leader Selection
Requirements for the policy
i. Dynamically-maintained Leader
ii. Physically advantageous location
Leader Selection
Requirements for the policy
i. Dynamically-maintained Leader
ii. Physically advantageous location
Data Delivery
“How should the data be delivered from
source nodes to the leader?”
– Send all data to leader?
– Should intermediate nodes participate?
2. Query Language
“What types of queries should be
supported?”
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
4. Catalog Management
• Maintained at the server
• Provides Meta Data about the network
• Question: What is the best way to main
the catalog?
5. Multi-Query Optimization
• Occurs when the WSN is shared
• Users may pose similar queries
• Share common data among the users
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
My Views on the Paper
• Presents a concept
• Easy-to-understand
• Flow of the paper sometimes confuse the
reader
Q&A

Mais conteúdo relacionado

Mais procurados

Wireless routing protocols
Wireless routing protocolsWireless routing protocols
Wireless routing protocols
barodia_1437
 
TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY
 TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY
TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY
ijujournal
 
Sensor Protocols for Information via Negotiation (SPIN)
Sensor Protocols for Information via Negotiation (SPIN)Sensor Protocols for Information via Negotiation (SPIN)
Sensor Protocols for Information via Negotiation (SPIN)
rajivagarwal23dei
 

Mais procurados (20)

Ad-Hoc Wireless Network
Ad-Hoc Wireless NetworkAd-Hoc Wireless Network
Ad-Hoc Wireless Network
 
Wireless routing protocols
Wireless routing protocolsWireless routing protocols
Wireless routing protocols
 
Mobile ipv6
Mobile ipv6Mobile ipv6
Mobile ipv6
 
Routing Protocols in WSN
Routing Protocols in WSNRouting Protocols in WSN
Routing Protocols in WSN
 
Wireless Sensor Networks UNIT-3
Wireless Sensor Networks UNIT-3Wireless Sensor Networks UNIT-3
Wireless Sensor Networks UNIT-3
 
Wsn routing protocol
Wsn routing protocolWsn routing protocol
Wsn routing protocol
 
Medium access control unit 3-33
Medium access control  unit 3-33Medium access control  unit 3-33
Medium access control unit 3-33
 
Mac protocols
Mac protocolsMac protocols
Mac protocols
 
TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY
 TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY
TIME SYNCHRONIZATION IN WIRELESS SENSOR NETWORKS: A SURVEY
 
CSGR(cluster switch gateway routing)
CSGR(cluster switch gateway routing)CSGR(cluster switch gateway routing)
CSGR(cluster switch gateway routing)
 
wsn routing protocol
 wsn routing protocol wsn routing protocol
wsn routing protocol
 
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
 
Wireless sensor network
Wireless sensor networkWireless sensor network
Wireless sensor network
 
Energy consumption of wsn
Energy consumption of wsnEnergy consumption of wsn
Energy consumption of wsn
 
Wireless sensor network applications
Wireless sensor network applicationsWireless sensor network applications
Wireless sensor network applications
 
wireless sensor network
wireless sensor networkwireless sensor network
wireless sensor network
 
WSN-IEEE 802.15.4 -MAC Protocol
WSN-IEEE 802.15.4 -MAC ProtocolWSN-IEEE 802.15.4 -MAC Protocol
WSN-IEEE 802.15.4 -MAC Protocol
 
WSN Routing Protocols
WSN Routing ProtocolsWSN Routing Protocols
WSN Routing Protocols
 
Leach & Pegasis
Leach & PegasisLeach & Pegasis
Leach & Pegasis
 
Sensor Protocols for Information via Negotiation (SPIN)
Sensor Protocols for Information via Negotiation (SPIN)Sensor Protocols for Information via Negotiation (SPIN)
Sensor Protocols for Information via Negotiation (SPIN)
 

Destaque (7)

Digital work in an analog world
Digital work in an analog worldDigital work in an analog world
Digital work in an analog world
 
Med wsn
Med wsnMed wsn
Med wsn
 
Surfing from the WSNs to the IoT, 27nov2014
Surfing from the WSNs to the IoT,  27nov2014Surfing from the WSNs to the IoT,  27nov2014
Surfing from the WSNs to the IoT, 27nov2014
 
Basic Sensors Technology
Basic Sensors TechnologyBasic Sensors Technology
Basic Sensors Technology
 
Wireless Sensor Networks ppt
Wireless Sensor Networks pptWireless Sensor Networks ppt
Wireless Sensor Networks ppt
 
Wireless sensor network security issues
Wireless sensor network security issuesWireless sensor network security issues
Wireless sensor network security issues
 
Wireless Sensor Networks
Wireless Sensor NetworksWireless Sensor Networks
Wireless Sensor Networks
 

Semelhante a The cougar approach to in-network query processing in sensor networks

대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화
대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화
대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화
NAVER Engineering
 

Semelhante a The cougar approach to in-network query processing in sensor networks (20)

FPGA-enhanced Bioinformatics @ NECST
FPGA-enhanced Bioinformatics @ NECSTFPGA-enhanced Bioinformatics @ NECST
FPGA-enhanced Bioinformatics @ NECST
 
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the projectLEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
LEGaTO: Low-Energy Heterogeneous Computing Use of AI in the project
 
adaptive_ecg_cdr_edittedforpublic.pptx
adaptive_ecg_cdr_edittedforpublic.pptxadaptive_ecg_cdr_edittedforpublic.pptx
adaptive_ecg_cdr_edittedforpublic.pptx
 
A Framework for Probabilistic Building Energy Modeling
A Framework for Probabilistic Building Energy ModelingA Framework for Probabilistic Building Energy Modeling
A Framework for Probabilistic Building Energy Modeling
 
Intelligent Placement of Datacenter for Internet Services
Intelligent Placement of Datacenter for Internet Services Intelligent Placement of Datacenter for Internet Services
Intelligent Placement of Datacenter for Internet Services
 
Small Embedded Data Center Pilot
Small Embedded Data Center PilotSmall Embedded Data Center Pilot
Small Embedded Data Center Pilot
 
Small Embedded Data Center Pilot Program Webinar
Small Embedded Data Center Pilot Program WebinarSmall Embedded Data Center Pilot Program Webinar
Small Embedded Data Center Pilot Program Webinar
 
Thesis
ThesisThesis
Thesis
 
Asynchronous design with Spring and RTI: 1M events per second
Asynchronous design with Spring and RTI: 1M events per secondAsynchronous design with Spring and RTI: 1M events per second
Asynchronous design with Spring and RTI: 1M events per second
 
Research Issues on WSN
Research Issues on WSNResearch Issues on WSN
Research Issues on WSN
 
Distributed Checkpointing on an Enterprise Desktop Grid
Distributed Checkpointing on an Enterprise Desktop GridDistributed Checkpointing on an Enterprise Desktop Grid
Distributed Checkpointing on an Enterprise Desktop Grid
 
rerngvit_phd_seminar
rerngvit_phd_seminarrerngvit_phd_seminar
rerngvit_phd_seminar
 
Kickstart your Kafka with Faker Data | Francesco Tisiot, Aiven.io
Kickstart your Kafka with Faker Data | Francesco Tisiot, Aiven.ioKickstart your Kafka with Faker Data | Francesco Tisiot, Aiven.io
Kickstart your Kafka with Faker Data | Francesco Tisiot, Aiven.io
 
대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화
대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화
대용량 데이터 분석을 위한 병렬 Clustering 알고리즘 최적화
 
Energy Efficiency in Data Centers
Energy Efficiency in Data CentersEnergy Efficiency in Data Centers
Energy Efficiency in Data Centers
 
Architectural Optimizations for High Performance and Energy Efficient Smith-W...
Architectural Optimizations for High Performance and Energy Efficient Smith-W...Architectural Optimizations for High Performance and Energy Efficient Smith-W...
Architectural Optimizations for High Performance and Energy Efficient Smith-W...
 
Sensor Organism project presentation
Sensor Organism project presentationSensor Organism project presentation
Sensor Organism project presentation
 
Big Data Visualization
Big Data VisualizationBig Data Visualization
Big Data Visualization
 
Kitchen Occupation Project Presentation
Kitchen Occupation Project PresentationKitchen Occupation Project Presentation
Kitchen Occupation Project Presentation
 
Automated Discovery of Performance Regressions in Enterprise Applications
Automated Discovery of Performance Regressions in Enterprise ApplicationsAutomated Discovery of Performance Regressions in Enterprise Applications
Automated Discovery of Performance Regressions in Enterprise Applications
 

Último

Último (20)

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 

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

Notas do Editor

  1. I think all of you are aware of the concept “Database Abstraction Layer for Sensor Networks”. As you can see in the citation-count vs. year graph, it has being most cited in 2008 Having this motivation in mind, let’s move on.
  2. Linking: Besides these limitations, WSNs are successfully used in a wide variety of application domains.
  3. At the time of writing this paper, the authors have percieved the future of
  4. Seeing this future, the authors identified two facts that motivated them to come up with the Database Approach for WSNs.
  5. The first reason is As the popularity of the WSNs grow, they may be used by technically expert users as well as non-expert users. To cater such a diversified user group, it would be useful if a middleware can provide an abstract view of the WSN that hides the underlying messy details of the WSN. By giving users a declarative query interface, they can issue queries without even knowing how the data is generated in the sensor network, how they are processed, and how the answers are computed.
  6. Link to the next slide  Motivated by these facts and as a solution to these issues, the Database Abstraction Layer for WSNs was introduced.
  7. The Database Abstraction Layer allows the users to issue SQL-like queries to retrieve data from the WSN. This Layer hides all the complex and messy details of the underlying WSN by giving users a feeling like they are using a traditional database management system. Further,
  8. The architecture of the Database Abstraction Layer spans over two main regions: Gateway node WSN Note that here the gateway node is excluded from the WSN and it is considered as an external entity.
  9. Query Optimizer generates “Query Processing Plans” upon receiving a query from a user.
  10. The query plan for a non-leader node has 3 components:
  11. The query plan for a non-leader node has 3 components:
  12. The query plan for a non-leader node has 3 components:
  13. The query plan for a non-leader node has 3 components:
  14. The query plan for a non-leader node has 3 components:
  15. The query plan for a non-leader node has 3 components:
  16. The query plan for a non-leader node has 3 components:
  17. The query plan for a non-leader node has 3 components:
  18. The resulting aggregate value from the Aggregate Operator step will be passed to the next step: Selection
  19. The resulting aggregate value from the Aggregate Operator step will be passed to the next step: Selection
  20. Most popular computation and communication pattern for WSN This is the same operation that we considered in the example. To support aggregation we have to address two research problems: Leader Selection Data Delivery
  21. With the introduction of such a layer, However consequent to that several research problems have arrived that need to be addressed to achieve the fullest potential of a DB Layer.