the cougar approach to in-network query processing in sensor networks by yong yao and johannes...
Post on 20-Dec-2015
212 views
TRANSCRIPT
![Page 1: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/1.jpg)
The Cougar Approach to In-Network Query
Processing in Sensor Networks
By Yong Yao and Johannes GehrkeCornell University
The Cougar Approach to In-Network Query
Processing in Sensor Networks
By Yong Yao and Johannes GehrkeCornell University
Presented by Penelope BrooksPresented by Penelope Brooks
![Page 2: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/2.jpg)
OverviewOverview
• Motivation• Sensor Networks Overview• Applications• Sensor Data• Problems in Sensor Networks• Cougar
– Architecture– Approach
• Related Projects
• Motivation• Sensor Networks Overview• Applications• Sensor Data• Problems in Sensor Networks• Cougar
– Architecture– Approach
• Related Projects
![Page 3: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/3.jpg)
MotivationMotivation
• Distributed database approach to sensor networks
• Why?– Declarative queries are well-suited to
sensor networks– Energy conservation in sensor
networks is crucial
• Distributed database approach to sensor networks
• Why?– Declarative queries are well-suited to
sensor networks– Energy conservation in sensor
networks is crucial
![Page 4: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/4.jpg)
The Big IdeaThe Big Idea
Local computation is much cheaper than communication, so push
computation to the network and improve energy consumption
Local computation is much cheaper than communication, so push
computation to the network and improve energy consumption
![Page 5: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/5.jpg)
Sensor Networks OverviewSensor Networks Overview
• Thousands of sensors connected through wireless communication– Multi-hop routing protocol used– Limited computation and storage– Limited energy supply
• Sensor nodes connected to one or more physical sensors
• Distributed to measure and monitor physical environment
• Communication and computation biggest energy drains
• Thousands of sensors connected through wireless communication– Multi-hop routing protocol used– Limited computation and storage– Limited energy supply
• Sensor nodes connected to one or more physical sensors
• Distributed to measure and monitor physical environment
• Communication and computation biggest energy drains
![Page 6: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/6.jpg)
ChallengesChallenges
• Communication• Power consumption• Computation• Uncertainty in sensor readings
• Communication• Power consumption• Computation• Uncertainty in sensor readings
![Page 7: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/7.jpg)
Some ApplicationsSome Applications
• Besides temperature…• Intelligent building management• Hostile environments
– Battlefield– Disaster regions/Early warning systems
• Tracking items in transit• Automatic target recognition and
tracking
• Besides temperature…• Intelligent building management• Hostile environments
– Battlefield– Disaster regions/Early warning systems
• Tracking items in transit• Automatic target recognition and
tracking
![Page 8: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/8.jpg)
Sensor DataSensor Data
• Uncertainty of data values– Measurements accurate within range– Addressed by aggregation
• Historically - sensor networks collect data and transfer to central node for querying and analysis
• Uncertainty of data values– Measurements accurate within range– Addressed by aggregation
• Historically - sensor networks collect data and transfer to central node for querying and analysis
![Page 9: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/9.jpg)
Problems in Sensor NetworksProblems in Sensor Networks• Aggregation
– Must complete at leader node– Data has to be delivered from source nodes– Computation approaches
• Send all data to leader and compute there• Some computation at nodes along path
• Query Languages– Diverse applications, data, query classes – Look at properties of sensor data, abstract
computational patterns that fit
• Aggregation– Must complete at leader node– Data has to be delivered from source nodes– Computation approaches
• Send all data to leader and compute there• Some computation at nodes along path
• Query Languages– Diverse applications, data, query classes – Look at properties of sensor data, abstract
computational patterns that fit
![Page 10: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/10.jpg)
Problems in Sensor Networks (cont’d)Problems in Sensor Networks (cont’d)• Query Optimization
– Large space of possible query plans– Cost of plan is energy consumed– Make decisions with uncertainty
• Catalog Management – Metadata for optimizer– Sensor position, density, connectivity,
system workload, network stability
• Multi-Query Optimization– Share results from similar queries
• Query Optimization– Large space of possible query plans– Cost of plan is energy consumed– Make decisions with uncertainty
• Catalog Management – Metadata for optimizer– Sensor position, density, connectivity,
system workload, network stability
• Multi-Query Optimization– Share results from similar queries
![Page 11: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/11.jpg)
Cougar ArchitectureCougar Architecture
• Loosely-coupled, distributed• Supports in-network computation• Query optimizer on sensor gateway
– Describes data flow in network – Computation flow in each sensor
• Query proxies on sensor nodes– Register query– Create local operator tree– Activate relevant sensors– Return applicable results
• Loosely-coupled, distributed• Supports in-network computation• Query optimizer on sensor gateway
– Describes data flow in network – Computation flow in each sensor
• Query proxies on sensor nodes– Register query– Create local operator tree– Activate relevant sensors– Return applicable results
contribution
contribution
![Page 12: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/12.jpg)
Cougar ArchitectureCougar Architecture
Query Proxy Layerhere
Query Optimizerhere
![Page 13: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/13.jpg)
ApproachApproach
• Query presented to optimizer• Query optimizer
– Merge with existing query OR
– Generate new query plan
• Query presented to optimizer• Query optimizer
– Merge with existing query OR
– Generate new query plan
![Page 14: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/14.jpg)
Approach (cont’d)Approach (cont’d)
• Designate leader for computation– Methods
• Fixed • Randomly selected node
– Leader selection policy• Dynamically maintained in case of failure• Minimize communication distance
• Two plans: leader, other• Query plans disseminated to all nodes
• Designate leader for computation– Methods
• Fixed • Randomly selected node
– Leader selection policy• Dynamically maintained in case of failure• Minimize communication distance
• Two plans: leader, other• Query plans disseminated to all nodes
![Page 15: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/15.jpg)
Query PlanQuery Plan
In-networkaggregation
NetworkInterface
Sensorscan
Towards the leader
Select
AggregateOperator
NetworkInterface
Towards the gatewayQPO
QPL
Data from local sensor
Partially aggregateddata from other sensors
Partially aggregated results
AggregatedResults
![Page 16: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/16.jpg)
ExampleExample
• Query Q:– Monitor office temperature– Generate notification to administrator when
temperature over threshold
• Optimize query• Query Plan QP generated, leader
identified, computation plans generated• Query plans disseminated• Query proxy actions initiated
• Query Q:– Monitor office temperature– Generate notification to administrator when
temperature over threshold
• Optimize query• Query Plan QP generated, leader
identified, computation plans generated• Query plans disseminated• Query proxy actions initiated
![Page 17: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/17.jpg)
Example (cont’d)Example (cont’d)
• Sensors collect temperature• Leader aggregates sensors readings,
performs AVG• Aggregate value compared to initial
condition of query Q • If AVG > threshold
– Value sent to gateway– Administrator notified
• Otherwise, sensors continue
• Sensors collect temperature• Leader aggregates sensors readings,
performs AVG• Aggregate value compared to initial
condition of query Q • If AVG > threshold
– Value sent to gateway– Administrator notified
• Otherwise, sensors continue
![Page 18: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/18.jpg)
Another ExampleAnother Example
TinyDB: An Acquisitional Query Processing System for Sensor NetworksSAMUEL R. MADDEN, MICHAEL J. FRANKLIN, JOSEPH M. HELLERSTEIN, and WEI HONGACM Transactions on Database Systems, Vol. 30, No. 1, March 2005, Pages 122–173.
![Page 19: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/19.jpg)
Related ProjectsRelated Projects• CoSense - Xerox PARC• SCADDS - UCLA• WebDust - Rutgers• Agent-based Tasking of Massive Sensor
Networks - Univ of MD• Reactive Sensor Networks - Penn State• TinyOS - Berkeley• Telegraph - Berkeley• Location-Centric Distributed Computation
and Signal Processing - Wisconsin
• CoSense - Xerox PARC• SCADDS - UCLA• WebDust - Rutgers• Agent-based Tasking of Massive Sensor
Networks - Univ of MD• Reactive Sensor Networks - Penn State• TinyOS - Berkeley• Telegraph - Berkeley• Location-Centric Distributed Computation
and Signal Processing - Wisconsin
![Page 20: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/20.jpg)
Wrap-UpWrap-Up
• Cougar is one possible architecture for a sensor network
• Performs in-network computation• Decreases energy consumption• One leader per query plan• Attempt to merge similar queries• Propagate results to system if
condition met
• Cougar is one possible architecture for a sensor network
• Performs in-network computation• Decreases energy consumption• One leader per query plan• Attempt to merge similar queries• Propagate results to system if
condition met
![Page 21: The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks](https://reader030.vdocument.in/reader030/viewer/2022032800/56649d425503460f94a1dcca/html5/thumbnails/21.jpg)
Questions?Questions?