Overview: Chapter 6: Sensor Network Databases
Overview: Chapter 6: Sensor Network Databases
Overview: Chapter 6: Sensor Network Databases
DB abstraction
Separates logical data view(naming,access,operations)
Sensor Network Da
Challenges
Transferring data to central server not feasible
Need in-network storage
Node memories/storage are limited
Older data needs to be discarded
Classic DB performance metrics not suitable
Query languages need additional operators
Support for continuous long-running queries
Need to correlate current readings with past
statistics
Sensor Network Da
special operators
Sensor Network Da
(ADT)
Similar to Object-Relational DB
Can perform functions on sensor data
appropriate
Need query language that can handle uncertainty
Gaussian ADT (GADT) models uncertainty as
continuous pdf
Query: retrieve all values from sensors with value
X with probability at least Y
Sensor Network Da
Database Organization
Centralized data storage
Sensors forward all data to centralized server
Queries do not incur additional network overhead
Nodes near server act as routing hotspots and become
depleted of energy
Sensor Network Da
aggregated?
Sensor Network Da
TinyDB
SQL-style query interface
SQL operators: count, min, max, sum,
average
Extension operators: median, histogram
In-network aggregate query-processing
Sensitive to resource constraints and lossy
communication channels
Sensor Network Da
sampling period
Nodes schedule processing, communication etc. based
on routing tree
Sensor Network Da
Optimizations
Aggregation can be pipelined to increase
throughput
Nodes can snoop packets of others to make
early decisions
Report only changed data
Adaptive aggregation to support changing
network conditions
Sensor Network Da
10
Data-Centric Storage
Flexible storage needed when queries
all nodes
Data-Centric Storage (DCS) make use of
rendezvous points to aggregate queries
and data
Sensor Network Da
11
function
key
Sensor Network Da
12
queries
is
13
1-D Indices
1-Dimensional indices
Most prevalent type of DB index
Indexes data parameterized by single value
Implemented with data structures: B-trees, hash tables,
etc.
computed answers
Adapting to distributed storage model requires partial
aggregation of results
Sensor Network Da
14
Multi-Dimensional Indices
Cant simply create multiple 1D indices
Queries will retrieve many more records than necessary
schemes
Sensor Network Da
15
Multi-Resolution
Summarization
Aggregate summaries of data can be used to
Sensor Network Da
16
indexed
Couples spatial domain decomposition to value indexing
Sensor Network Da
17
Fractional Cascading
Intuition: queries exhibit temporal and
18
Locality-Preserving Hashing
Map high-dimensional attribute space to a
plane
Close values in high-D space are close in the
plane
nodes
Sensor Network Da
19
Data Aging
Continuous data acquisition and
construct
20
queries, etc.
Apriori motion knowledge
No apriori knowledge
More likely in physical world
Dynamic index. Updates only on critical events
Sensor Network Da
21