34
An Integration Framework for Sensor Networks and Data Stream Management Systems

An Integration Framework for Sensor Networks and Data Stream Management Systems

Embed Size (px)

Citation preview

Page 1: An Integration Framework for Sensor Networks and Data Stream Management Systems

An Integration Framework for Sensor Networks andData Stream Management Systems

Page 2: An Integration Framework for Sensor Networks and Data Stream Management Systems

Outline

IntroductionArchitectureQuery OptimizationDemonstration HighlightsConclusion

Page 3: An Integration Framework for Sensor Networks and Data Stream Management Systems

Introduction (1/3)

Query optimization can reduce sensornet power consumption and increase the primary sensor performance.

To further improve both the power efficiency and utility of sensor network query-processing systems(SNQPs) by their integration with one of several streaming database systems, such as STREAM , TelegraphCQ, or Aurora, commonly referred to as data stream management systems (DSMSs).

Page 4: An Integration Framework for Sensor Networks and Data Stream Management Systems

Introduction (2/3)

By integrating the two query processing systems, the optimization goals of the sensor network (primarily power) and server network (primarily latency and quality) can be unified into one quality of service metric.

Demonstrates an integrated query processing environment where users can seamlessly query both a data stream management system and a sensor network with one query expression.

Page 5: An Integration Framework for Sensor Networks and Data Stream Management Systems

Introduction(3/3)

This integration offers three major benefits:

The ability to combine stored or streaming data from the DSMS with data from the sensornet.

A single, integrated interface for interacting with both the streaming database and the sensor network.

The ability to optimize between the database system and the sensor network.

- to push certain filters and aggregates into the sensor network if user queries are interested in only particular subsets or coarse summaries of readings.

Page 6: An Integration Framework for Sensor Networks and Data Stream Management Systems

Architecture(1/6)

allows the sensor network to communicate its processing capabilities and constraints, along with descriptions of the data it can produce to the DSMS.

provides a way to resolve contrasting optimization goals of sensor networks and DSMSs.

It is sufficiently general so that future efforts to integrate other forms of data sources with DSMSs can be worked into the same architecture.

Page 7: An Integration Framework for Sensor Networks and Data Stream Management Systems

Architecture(2/6)

The fundamental idea behind the integration architecture is to place a proxy intermediary at each interface between sensor networks and instances of the DSMS.

Proxy : make the sensor network appear to the DSMS instance as if it were another instance running on a different site.

The DSMS can then move operators and stored relations across the server/sensor boundary with the same ease as if it were moving across server/server boundaries.

Page 8: An Integration Framework for Sensor Networks and Data Stream Management Systems

Architecture(3/6)

Page 9: An Integration Framework for Sensor Networks and Data Stream Management Systems

Architecture(4/6)

The proxy has three primary functions. These functions are performed by the proxy for all connected sensor networks. it gathers statistics about constraints of connected su

bnetworks so that it can reject proposals from the DSMS to move operators or stored relations into the network (or change the parameters of operators already in the sensor network)

if it accepts an operator on behalf of the sensor network, it selects the appropriate implementation of the operator.

it works with the DSMS to optimize the query

Page 10: An Integration Framework for Sensor Networks and Data Stream Management Systems

Architecture(5/6)

The proxy interacts with its sensornets using a wrapper for each network.

The wrapper : Provide a standardized API to integrate the connect

ed sensornets into the optimizationprocess. includes a set of meta data which describes the rela

ted sensornet. All additional data sources to the DSMS are connec

ted through it.

Page 11: An Integration Framework for Sensor Networks and Data Stream Management Systems

Architecture(6/6)

Page 12: An Integration Framework for Sensor Networks and Data Stream Management Systems

Query Optimization(1/3)

Query optimization across a DSMS-sensor network integration faces three primary challenges. The processing capabilities of the sensor network is

much smaller than the capabilities of the DSMS and thus only a subset of potential query plans

In contrast to a DSMS, in a sensor network the same operator will be run on multiple nodes

Page 13: An Integration Framework for Sensor Networks and Data Stream Management Systems

Query Optimization(2/3)

A DSMS and a sensor network have different and potentially conflicting goals.

Solve: by aggregating sensor network constraints into one lifetime metric and supplement DSMS QoS with an additional dimension to optimize.

The lifetime of a query is equal to the minimum of the lifetimes of all data sources of this query. (Lifetime can be thought of as a fixed amount of service the DSMS has bought from the sensor network.)

When the service runs out, no data will be produced for the query.

Page 14: An Integration Framework for Sensor Networks and Data Stream Management Systems

Query Optimization(3/3)

The more work the query requires of a sensor network, the faster the fixed amount of service is used.

This allows the DSMS to choose in which direction of the power/latency/quality trade-off to optimize using application QoS functions.

Page 15: An Integration Framework for Sensor Networks and Data Stream Management Systems

Demonstration Highlights

This demonstration shows a simulated factory environment with temperature sensitive construction phases.

A continuous query is desired that joins aggregate temperature readings from sensors located at various positions in the factory with a time-indexed relation that encodes the desired temperature range.

Page 16: An Integration Framework for Sensor Networks and Data Stream Management Systems

Demonstration Highlights

Page 17: An Integration Framework for Sensor Networks and Data Stream Management Systems

Demonstration Highlights

Page 18: An Integration Framework for Sensor Networks and Data Stream Management Systems

Conclusion

Integration of these systems to create a unified query plan that will execute across DSMS/sensor boundaries is not a trivial task because of the different architectures and assumptions of these systems.

Demonstrate a successfully integrated sensor network and DSMS where user queries can be run and optimized across these heterogeneous query processing components.

Page 19: An Integration Framework for Sensor Networks and Data Stream Management Systems

A Distributed System for Answering Range Queries on Sensor Network Data

Page 20: An Integration Framework for Sensor Networks and Data Stream Management Systems

Outline

IntroductionData Representation Range QueryDistributed FrameworkQuery PlanFuture Work

Page 21: An Integration Framework for Sensor Networks and Data Stream Management Systems

Introduction (1/2)

A distributed architecture for storing sensor network data and supporting fast approximate (aggregate) query answering Data are stored in a compressed form Provides approximate query answers

Accuracy of answering becomes less relevant when data becomes older

Page 22: An Integration Framework for Sensor Networks and Data Stream Management Systems

Introduction (2/2)

Each node can stored a (compressed) snapshot of data represented into other nodes, which is update periodically

The possibility of storing the same information into different nodes of the system improves the efficiency in the query answering

Queries can be evaluated by partitioning them into sub-queries and by submitting each sub-query to a different node

Page 23: An Integration Framework for Sensor Networks and Data Stream Management Systems

Data Representation (1/3)

Page 24: An Integration Framework for Sensor Networks and Data Stream Management Systems

Data Representation (2/3)

An order set of n sources producing n independent streams of data

Data stream sequence

Page 25: An Integration Framework for Sensor Networks and Data Stream Management Systems

Data Representation (3/3)

Rawdata

Rawdata

Rawdata

Rawdata

Comp.data

Comp.data

Comp.data

Page 26: An Integration Framework for Sensor Networks and Data Stream Management Systems

Range Query (1/2)

A range query is a pair

Assumption that the sensors in the network can be organized according to a linear ordering

The mapping should be closeness-preserving

If a meaningful linear ordering of sensors cannot be found, the model can be extended to a three-dimensional setting

Page 27: An Integration Framework for Sensor Networks and Data Stream Management Systems

Range Query (2/2)

Querying compressed data streamGive a sum range query QThe answer can be obtained by

where

and

intersects Q

Page 28: An Integration Framework for Sensor Networks and Data Stream Management Systems

Distributed Framework (1/2)

Page 29: An Integration Framework for Sensor Networks and Data Stream Management Systems

Distributed Framework (2/2)

Updating compressed dataThe snapshot agent accesses the snapshot

catalog to check which pairs have a snapshot contract

snapshot contractFrequency of updatesCompression ratio…

Page 30: An Integration Framework for Sensor Networks and Data Stream Management Systems

Query Plan (1/2)

Page 31: An Integration Framework for Sensor Networks and Data Stream Management Systems

Query Plan (2/2)

Bounds the number of SSD

to be accessed

Avoids overloading server

Avoids accessing SSD whoseUsage percentage too large

Avoid congestion occurs, where either tooMany servers are involver or some server are

overloaded

Page 32: An Integration Framework for Sensor Networks and Data Stream Management Systems

Conclusion

Provides flexible answers by issuing queries and guarantees the desired of the client

fast accuracy

Page 33: An Integration Framework for Sensor Networks and Data Stream Management Systems

Future Work

The system is under construction

Defining ad-hoc techniques to solve optimization problem

Page 34: An Integration Framework for Sensor Networks and Data Stream Management Systems

Compare

Interface Database Data Type Optimization Continuous Query

Integration Framework

proxy DSMS stream Based on sensor(life time)

Support

Distributed Framework

Data dispatcher

DBMS Array and compressed data

Based on system

Not support