Unit 3
Unit 3
Data Management
RAVI SHARMA (KCS-711) Mobile Computing
For Mobile Computing
R• A Cellular
V I S H A Planning
RMA (KCS-711) Mobile Computing
– Traffic information
– Spectrum Allocation
– HLR/VLR/EIR
R A V–I Command
S H A R M and
A ( Control
K C S - 7of1User
1 ) devices Mobile Computing
– Telephonic / Internet / Supplementary Services
• WLAN
RAVI SHARMA (KCS-711) Mobile Computing
– Topology / Mobility
– Routing
– Addressing
R A V–I Information
S H A R M Amanagement
( K C S - 7 1 at
1 )servers Mobile Computing
• Information
• Applications
2
Data Management Issues in Mobile Computing
RAVI SHARMA (KCS-711) Mobile Computing
• Data Availability
RAVI SHARMA (KCS-711) Mobile Computing
– Weak connectivity of mobile clients creates a new challenge for data
management:
• How to ensure high data availability in mobile computing environments where
frequent disconnections may occur because the clients and server may be
weakly connected?
RAVI SHARMA (KCS-711) Mobile Computing
• To allow access to critical data even during periods of disconnections, the
distributed file systems (e.g. CODA) uses data caching to improve availability at
the expense of transparency.
R• A Resource
V I S H A R Limitations
MA (KCS-711) Mobile Computing
– A typical node in mobile computing environment has limited power and
processing resources.
– This characteristic leads to another challenge for data management in
R A V I mobile
S H A R computing
M A ( K C Senvironments,
-711) specifically, M o b to
how i l eminimize
C o m presource
uting
consumption (e.g., energy and bandwidth) for data management while
ensuring a desirable level of data consistency. 3
Data Management Issues in Mobile Computing
RAVI SHARMA (KCS-711) Mobile Computing
• Asymmetric Communication
RAVI SHARMA (KCS-711) Mobile Computing
– In architecture-based wireless networks, the downstream (base station to
mobile nodes) communication link capacity is usually much higher than the
upstream (mobile to base station) capacity.
– To make matters worse, mobile nodes may have to compete with several
R A V I other
S H A mobile
R M A nodes
( K C Sto- 7get
1 1access
) to an upstreamMchannel
obile Computing
4
Data Caching
RAVI SHARMA (KCS-711) Mobile Computing
• A cache is a small, fast memory for holding frequently used data.
RAVI SHARMA (KCS-711) Mobile Computing
• Cache management techniques try to predict which data items are
most likely to be used in the future and:
– Either copy them to a memory unit closer to the processor when they are
accessed for the first time (i.e., on a cache miss) or
– prefetch them well in advance so that they M
RAVI SHARMA (KCS-711)
areo bavailable in the cache
ile Computing
memory when they are needed.
R• A Ensuring
VI SHARM Data
A ( KConsistency
CS-711) among memory
M o b i lhierarchy
e C o m p uist i nan
g
important issue with caching in mobile computing databases.
5
Cache Consistency
RAVI SHARMA (KCS-711) Mobile Computing
R• A There
V I S Hare
A R three
M A ( basic
K C S - strategies
711) for maintaining
M o bcache
i l e Cconsistency:
omputing
– In a TTL based caching strategy, every cached data item is assigned a TTL
value, which can be estimated based on the data item’s update history.
R A V I verification.
SHARMA (KCS-711) Mobile Computing
• Invalidation-based cache strategies are further classified into two approaches:
– Stateless: The server does not maintain information about the cache contents of the
clients; i.e., the server does not know what data are cached or how long they have
RAVI SHARMA (KCS-711) Mobile Computing
been cached by a particular client.
– Stateful : The server keeps track of the cache contents of its clients
6
Data Replication
RAVI SHARMA (KCS-711) Mobile Computing
• Data Replication is the process of storing data in more than one
RAVI SHARMA (KCS-711) Mobile Computing
site or node. It is useful in improving the availability of data in a
mobile computing system.
– It is about simply copying data from a database from one server to another
server so that all the users can share the same data without any
R A V I inconsistency.
SHARMA (KCS-711) Mobile Computing
R• A Schemes
V I S H A Rof
M Data
A ( K Replication:
CS-711) Mobile Computing
– Full Replication – In this extreme situation, the replication of the whole
database is performed at every site in a mobile computing system.
R A V–I Partial
S H A RReplication
M A ( K C S– -In7 this
1 1 ) type of replication M o b i l esome
scheme C o fragments
m p u t i n of
g
• The CODA file system uses whole-file caching at clients to provide faster access at
R A clients.
VI SHARMA (KCS-711) Mobile Computing
• During normal operation, callbacks from server are used to invalidate multiple
cached copies when an update is performed.
R A V–I Whole-caching
S H A R M Aoffers
( Ka C S - 7failure
simpler 1 1 )model and a cache miss can
Moccur
o b only
i l eon Cfileoopen.
mputing
• The data in the cache is used by clients to service requests during disconnections.