Docsity

Mobile Computing - Data Replication In Mobile Computing, Study notes of Mobile Computing

Toggle sidebar
bg1
1
Data Replication In Mobile Computing
•Replication is the process of sharing information so as to ensure
consistency between redundant resources, such as software or hardware
components, to improve reliability, fault-tolerance, or accessibility. It could
be data replication if the same data is stored on multiple storage devices,
or computation replication if the same computing task is executed many
times. A computational task is typically replicated in space, i.e. executed
on separate devices, or it could be replicated in time, if it is executed
repeatedly on a single device.
•It is common to talk about active and passive replication in systems that
replicate data or services. Active replication is performed by processing
the same request at every replica. In passive replication, each single
request is processed on a single replica and then its state is transferred to
the other replicas. If at any time one master replica is designated to
process all the requests, then we are talking about the primary-backup
scheme (master-slave scheme) predominant in high-availability clusters.
On the other side, if any replica processes a request and then distributes a
new state, then this is a multi-primary scheme (called multi-master in
database field)
pf3
pf4
pf5

Partial preview of the text

Download Mobile Computing - Data Replication In Mobile Computing and more Study notes Mobile Computing in PDF only on Docsity!

  • (^) Replication is the process of sharing information so as to ensure

consistency between redundant resources, such as software or hardware

components, to improve reliability, fault-tolerance, or accessibility. It could

be data replication if the same data is stored on multiple storage devices,

or computation replication if the same computing task is executed many

times. A computational task is typically replicated in space , i.e. executed

on separate devices, or it could be replicated in time , if it is executed

repeatedly on a single device.

  • (^) It is common to talk about active and passive replication in systems that

replicate data or services. Active replication is performed by processing

the same request at every replica. In passive replication , each single

request is processed on a single replica and then its state is transferred to

the other replicas. If at any time one master replica is designated to

process all the requests, then we are talking about the primary-backup

scheme ( master-slave scheme) predominant in high-availability clusters.

On the other side, if any replica processes a request and then distributes a

new state, then this is a multi-primary scheme (called multi-master in

database field)

  • (^) Replication can also occur in one or two directions
    • (^) In one way replication, any changes made at the target data bases are not reflected in the source databases.
    • (^) In two way replication , same records can be changed simultaneously at different locations.
  • (^) Generally Replication is expressed in two ways:
    • (^) Online Data Replication: In Online data replication over a n/w such as the Internet, the data backup is made on a real time basis where in the data from the host server is copied onto the remote location as soon as the data is changed.
    • (^) Offline Data Replication : In offline data replication, a backup of the data file is taken on a remote location on an offline basis; such as once a day.
  • (^) Advantages: Availability ,Parallelism and Better performance
  • (^) Disadvantages: Increase the overhead on update, duplicacy
  • (^) Areas of usage: Distributed Systems and Databases
  • (^) A Replication scheme determines
    • (^) The no. of replicas which is referred to as replication level.
    • (^) The location of replicas in a distributed system which is referred to as replication placement.
  • (^) Replication scheme configuration is represented by three plans:-
    1. Placement Plan 2. Localization Plan 3. Consistency Plan
  • (^) Synchronous Replication:- It is a technique for replicating data b/w databases

where the system being replicated does wait for the data to have been

recorded on the duplicate system before proceeding. Synchronous replication

has the advantage that it is guaranteed that the duplicate system has a copy

of the data, but the disadvantage that the primary system must wait for the

secondary system before proceeding, leading to an increased response time.

  • (^) Because of the increased response time and communication delays,

synchronous replication is often impractical unless the secondary system is

physically located close to the primary system.

  • (^) Why Asynchronous Replication:?
  • (^) Replication can be achieved in two ways –
  • (^) Synchronous, where consistency of data b/w replicas is strictly maintained.
  • (^) Asynchronous, where data consistency is loosely maintained.
  • (^) Synchronous replication increases the duration of application transactions &

cannot be completed until all the replicas have been brought to the same

state.

  • (^) Asynchronous replication does not prolong the transaction much, as it

updates the replicas in a separate transaction from the application

transaction. Asynchronous rep. is most suitable where latency before

achieving consistency among replicas is permissible.

  • (^) How Asynchronous Replication Works:-
  • (^) This new approach to server & storage replication captures file changes at the operating system level, providing improved fault tolerance.
  1. User changes a file, executes a transaction or enters new info into a database.
  2. Data flows from the user to the server’s application layer, operating system & file system in close to real time.
  3. Data then flows to the storage h/w.
  4. The file system filter driver captures a copy of the data & sends a copy to the server B as bandwidth.
  5. Server B now has a back-up copy of data which is then stored in h/w. Appli catio n Oper ating Syste m FS User Server- A Storage H/W File System Filter Drive TCP/IP Server- B Storag e

Data Replication - Issues

  • (^) How to manage data replication?
  • (^) How to locate objects of interest?
  • (^) When do we need to replicate the data on a mobile site?
  • (^) How users’ moves affect the replication scheme?
  • (^) Is mobile environment requiring dynamic replication schemes?
  • (^) Do we need new replication algorithms?
  • (^) Bandwidth Considerations and Data Transfer Rates
  • (^) Frequent Network Failures
  • (^) MUs often have limited battery-life.
  • (^) Wireless communication is expensive!
  • (^) Locality Migration: If a MU has initiated a transaction, and moves, the location of the MU within the network must be found prior to completing the transaction
  • (^) Frequent Planned Disconnections
  • (^) Recovery Services: Where are we going to store the recovery logs?
  • (^) Consistency Semantics: If process are frequently interrupted, they may leave data objects in an inconsistent state.
  • (^) Security
  • (^) Human interface: How do we pose queries from a handheld device