10.07.2015 Views

In Network Processing and Data Aggregation in

In Network Processing and Data Aggregation in

In Network Processing and Data Aggregation in

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A different method is used <strong>in</strong> TAG [10] to represent a user query is an SQL-likelanguage (Figure 11). The query is always performed over a s<strong>in</strong>gle table called “sensors”.SELECT AVG(volume),room FROM sensorsWHERE floor = 6GROUP BY roomHAVING AVG(volume) > thresholdEPOCH DURATION 30sFigure 11Regard<strong>in</strong>g the duration of the execution a query it is usually def<strong>in</strong>ed with<strong>in</strong> its body(<strong>In</strong> Figure 10 the duration attribute <strong>and</strong> <strong>in</strong> Figure 11 the EPOCH clause).A query may be executed many times periodically (periodic, long-runn<strong>in</strong>g) or it isexecuted only one time <strong>and</strong> returns just a snapshot of the current state of the network(snapshot queries).3.3 <strong>Aggregation</strong> operatorsAuthors of TAG [10] propose a nice taxonomy of the aggregation operators by us<strong>in</strong>gseveral criteria:1. Duplicate sensitivity.This property specifies whether an aggregate function will returnthe same result when the dataset conta<strong>in</strong>s duplicate values. Examplesof duplicate sensitive aggregates are MEDIAN, AVERAGE, <strong>and</strong> COUNT.Examples of duplicate <strong>in</strong>sensitive aggregates <strong>in</strong>clude MIN, MAX, <strong>and</strong>COUNT DISTINCT.2. Exemplary/Summary.Exemplary aggregates always return a representative value present<strong>in</strong> the dataset while summary aggregates perform some calculationover the entire dataset <strong>and</strong> return the calculated value. Summaryvalues (such as AVERAGE <strong>and</strong> COUNT) are more easily estimated even<strong>in</strong> a network with losses, where all data packets are not received.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!