PAQ: Persistent Adaptive Query Middleware for Dynamic Environments
Vasanth Rajamani, Christine Julien The University of Texas at Austin Jamie Payton The University of North Carolina, Charlotte Catalin Roman Washington University in Saint Louis
PAQ: Persistent Adaptive Query Middleware for Dynamic Environments - - PowerPoint PPT Presentation
PAQ: Persistent Adaptive Query Middleware for Dynamic Environments Vasanth Rajamani, Christine Julien The University of Texas at Austin Jamie Payton The University of North Carolina, Charlotte Catalin Roman Washington University in Saint Louis
Vasanth Rajamani, Christine Julien The University of Texas at Austin Jamie Payton The University of North Carolina, Charlotte Catalin Roman Washington University in Saint Louis
2
Monitor and react to changes in the physical world in real time
Ad hoc and fluid infrastructure
Programming applications that monitor and react to information across an open and dynamic network is difficult
3
Persistent Queries
4
Capturing a global consistent view is infeasible in practice
5
Inquiry strategy
Generate and execute protocol
One-Time Query Response
Feedback loop to change inquiry strategy
Introspection Strategy Application Integration Strategy Persistent Query Response
Perform many
Result History
6
Inquiry strategy
Generate and execute protocol
One-Time Query Response
Feedback loop to change inquiry strategy
Introspection Strategy Application Integration Strategy Persistent Query Response
Perform many
Result History
7
Protocol employed
Frequency of response
Query Issuer Neither function satisfied Forward function satisfied Respond function satisfied Forward and Respond functions satisfied
Flooding inquiry
strategy
Every receiver
responds
Every receiver
forwards Legend
8
Gossip inquiry
Every receiver responds Every receiver forwards with
a given probability
) ), ( ( ) ( ) ( true rand f I p f
tic probabilis tic probabilis
= < Θ = Θ
random(rand))
Random sampling inquiry
Every receiver responds with
a given probability
Every receiver forwards
9
Inquiry strategy
Generate and execute protocol
One-Time Query Response
Feedback loop to change inquiry strategy
Introspection Strategy Application Integration Strategy Persistent Query Response
Perform many
Result History
10
Even when underlying network is dynamic
Express diverse composition mechanisms through set
11
persistent query result (πi) Added Hosts Data Value Change
12
i i i
1 −
persistent query result (πi) Added Hosts Data Value Change
13
14
persistent query result (πi) Added Hosts Data Value Change
persistent query result (πi) Added Hosts Data Value Change
departs t i i i i
_ 1 1
− − =
15
Inquiry strategy
Generate and execute protocol
One-Time Query Response
Feedback loop to change inquiry strategy
Introspection Strategy Application Integration Strategy Persistent Query Response
Perform many
Result History
16
Introspection: the ability to identify interesting state
As part of introspection, we:
Determine the suitability of an Inquiry Strategy
Systematically compare the costs and benefits of Inquiry Strategies
Generate a metric d that can be compared against an application-specified threshold
Integration Strategies can be converted to Introspection Strategies, e.g.,
the fraction of values in the one-shot query that are “new” since the previous query
17
E.g, when the results are not reflective of the entire site, change from the gossip inquiry strategy
E.g., when a particular value is discovered, change the sampling strategy
E.g., if the data is changing too rapidly (i.e., faster than the sampling strategy can sample), change the sampling strategy
18
19
flooding
_
rate data
By hiding the complexities of persistent querying a dynamic environment
By providing varying strategies for inquiry, integration, and introspection
And enabling extensibility
Industrial leak monitoring
Traffic congestion
20
21
Phase : Spot Check Inquiry: Random Sampling (p =0.5, low rate) Integration: Cumulative Introspection: Semantic (v = 200, δ = 1) 200
22
Phase : Leak Check Inquiry: Flood (high rate) Integration: Additive Introspection: Additive Data Rate Change (δ = 3)
23
Phase: Targeted Collection Inquiry: Location-Base (high rate) Integration: Cumulative Introspection: Spatial Coverage Change (δ = 2.5)
24
OMNeT+ + for robust results
Compared adaptive and non- adaptive approaches
Two different policies of adaptation
Adaptive approach: No worse than flooding even when more queries are issued
25
10 20 30 40 50 60 70 80 90 100 50 100 150 200 250 Percentage of Leak Detections Num ber of Hosts Sampling p= 0.5 Moderate Adaptive Aggressive Adaptive Flooding 26
Inquiry, Introspection, Integration and Adaptation
27
29
C0 configurations Cm C1
…
C2 Time
30
C0 Cm C1
…
C2
One-time Result, ρ Time
31
component query results (ρi) persistent query result (πi) Added Hosts Data Value Change
i
− =
32
component query results (ρi) persistent query result (πi) Added Hosts Data Value Change
− − − = Π
i i
i
1 1
33
persistent query result (πi) Added Hosts Data Value Change
34
persistent query result (πi) Added Hosts Data Value Change
35