processing monitoring queries on mobile objects lecture for coms 587 department of computer science...
TRANSCRIPT
![Page 1: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/1.jpg)
Processing Monitoring Queries on Mobile Objects
Lecture for COMS 587
Department of Computer Science
Iowa State University
![Page 2: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/2.jpg)
What is a mobile database?
A mobile database is a set of mobile devices- Centralized: there exists a central server with
which each mobile device can communicate
- Decentralized: these devices form a network by
themselves- Mobile ad hoc network (MANET)
- Mesh networks
![Page 3: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/3.jpg)
Characteristics
Large number of mobile objects
Continuous movement of mobile objects- Limited battery power
- Limited communication bandwidth
![Page 4: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/4.jpg)
Processing Range-Monitoring Query
• What is range-monitoring query?
– Retrieve mobile objects in a spatial region, and
– continuously monitor the population in the area
![Page 5: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/5.jpg)
Range-Monitoring Queries
aQ2
Q1 bc
f
d
e
![Page 6: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/6.jpg)
Range-Monitoring Queries
a
Q2
Q1bc
f
d
e
![Page 7: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/7.jpg)
Tourist guiding
Automatic traffic control
Digital battlefield vehicle tracking
Wild animal tracking
Some Potential Applications
![Page 8: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/8.jpg)
How to minimize location updates?
– Excessive mobile communication could
drain battery power quickly
How to minimize server processing
cost?
– Query results keep changing
Research Issues
![Page 9: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/9.jpg)
Related Works
Location Estimation [Woflson98, Woflson99, etc.]
Trajectory Indexing [Kollios99, Saltenis00, etc.]
Safe Region Approach [Prabhakar00, Prabhakar01]
![Page 10: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/10.jpg)
Q1
Q5
Q2
Q4
Safe Regions
Q3
Circular Safe Region
RectangularSafe Region
a
![Page 11: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/11.jpg)
Problems with Safe Regions
Computing a safe region takes from
O(n) to O(n log3 n)
Adding a new query requires to re-
compute safe regions for all objects
![Page 12: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/12.jpg)
How to provide
– accurate query results,
and
– real-time updates?
Challenge
![Page 13: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/13.jpg)
Proposed: Monitoring-Query Management
Q1
Q2
Q7
Q6
Q3
Q5
Q4
a
Resident Domain
![Page 14: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/14.jpg)
Given an object’s position P and its
processing capability N, its resident
domain should
Computing a Resident Domain
– contain position P, and
– be as large as possible, but
– contain no more than N queries
![Page 15: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/15.jpg)
Domain and Query Decomposition
Q1
Q4
Q2
Q3
R1
R42
R21
R31
R22
R41
![Page 16: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/16.jpg)
Domain and Query Decomposition
Q1
Q4
Q2
Q3
R1
R42
R21
R31
R22
R41
a
![Page 17: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/17.jpg)
Domain and Query Decomposition
Q1
Q4
Q2
Q3
R1
R42
R21
R31
R22
R41
a
![Page 18: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/18.jpg)
Domain Tree (D-tree)
D
D domain node
data node
![Page 19: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/19.jpg)
D
d1
d1 d2d2
Domain Tree (D-tree)
![Page 20: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/20.jpg)
d1
d1 d2d21
d22
d21 d22
D
Domain Tree (D-tree)
![Page 21: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/21.jpg)
Mobile Communication Cost
0
5
10
15
20
25
30
10 20 30 40 50 60 70 80 90 100Num
ber
of
mes
sage
s se
nt
by m
obile
obj
ects
(m
illio
ns)
Number of monitoring queries (thousands)
MQM
Safe Region
![Page 22: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/22.jpg)
Server Processing Cost
0.1
1
10
100
1000
10 20 30 40 50 60 70 80 90 100Num
ber
of in
dex
node
s ac
cess
ed (
mill
ions
)
Number of monitoring queries (thousands)
MQMSafe Region
![Page 23: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/23.jpg)
Significant and Impact of MQM
MQM is the first scalable technique, in
terms of mobile communication and
server processing costs, for real-time
range-monitoring query management
![Page 24: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/24.jpg)
Mobile Range Monitoring Queries (M-RMQ)
A M-RMQ retrieves the mobile
objects within a range
centered on a mobile object
It is associated with a mobile
object called focal node
The movement of the focal
node and other mobile
objects may lead to the
change of query results
![Page 25: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/25.jpg)
Proposed: MobiEye
The network domain is divided into a number of grid cells
Each focal node reports its velocity to the server and update when such information changes
Each query window is associated with a bounding box
All nodes within a bounding box are notified of the velocity of the query
When a node detects that its moves into/out of a bounding box, report to the server
![Page 26: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/26.jpg)
Decentralized Mobile Database Management
Mobile ad hoc networks A set of mobile objects form a
network by themselves The communications among
these objects are done through packet relaying Without relying on any fixed
infrastructures Low cost and easy setup (great
for battlefields)
Many protocols have been developed for efficient routing discovery and communications
a
bcf
d
e
g
h
![Page 27: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/27.jpg)
Handling Stationary Range Monitoring Queries
Key research issue: where the queries are stored Solution 1: each node keeps a
copy of each query Great for query evaluation Expensive for query installation
and removal
Solution 2: each node keeps only the queries it issues Great for query installation and
removal Expensive for query evaluation
a
bcf
d
e
g
h
![Page 28: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/28.jpg)
Handling Stationary Range Monitoring Queries
Network partitioning
Each node caches all queries relevant to its home cell
While moving inside a cell, a node monitors its movement against the queries it knowsif crossing over any
boundary, update the query issuer
What happens when moving into/out of a cell?
![Page 29: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/29.jpg)
Handling Stationary Range Monitoring Queries
Network partitioning
Each node caches all queries relevant to its home cell
While moving inside a cell, a node monitors its movement against the queries it knowsif crossing over any
boundary, update the query issuer
What happens when moving into/out of a cell?
![Page 30: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/30.jpg)
Handling Stationary Range Monitoring Queries
When moving out of its cell, a node checks if it is the last node No - remove the queries
Yes – keep the queries, the node becomes the retaining node to the cell
When moving into a new cell, a node retrieves the new relevant querieseither from any node in the cell,
or
from the cell’s retaining node
![Page 31: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/31.jpg)
Handling Stationary Range Monitoring Queries
Searching for a retaining node can be done by expanding the search range step by step
A cell’s retaining node may move far away from the cell Keep the queries in a node
that is close to the cell
Compute the distance whenever moving into a new cell, and if necessary, unload the queries to some nearby node
![Page 32: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/32.jpg)
Handling Mobile Range Monitoring Queries
![Page 33: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/33.jpg)
Handling Mobile Range Monitoring Queries
Concept of safe boundary
![Page 34: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/34.jpg)
Handling Mobile Range Monitoring Queries
Concept of safe boundary
![Page 35: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/35.jpg)
Handling Stationary KNN queries
![Page 36: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/36.jpg)
Handling Stationary KNN queries
![Page 37: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/37.jpg)
Handling Stationary KNN queries
![Page 38: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/38.jpg)
Handling Mobile KNN queries
![Page 39: Processing Monitoring Queries on Mobile Objects Lecture for COMS 587 Department of Computer Science Iowa State University](https://reader036.vdocuments.us/reader036/viewer/2022070407/56649e4a5503460f94b3d87f/html5/thumbnails/39.jpg)
Questions
Any other types of queries?Can any type of queries be converted
into one or more stationary range monitoring queries?