replication of data in mobile communication

19

Upload: vasundhara-ghose

Post on 17-Jun-2015

97 views

Category:

Engineering


6 download

TRANSCRIPT

Page 1: Replication of data in mobile communication
Page 2: Replication of data in mobile communication

Topics Covered:

O What is replication?

O Concept of system model in replication

O Concept of group communication

O Fault-tolerant services

O Highly available services

O Transactions with replicated data.

Page 3: Replication of data in mobile communication

O Maintenance of copies of data at multiple

computers.

O Provides-

O Enhanced performance

O High availability

O High fault tolerance.

O Issues in replication-

O Transparency

O Consistency of data

Page 4: Replication of data in mobile communication

O RM provides service to client. O Clients see service to access logical objects.(Replicated to

manager) O Clients request are handled by front ends. A front end makes

replication transparent.

FE

Requests and replies

C

Replica C

Service Clients

Front ends

managers

RM

RM FE

RM

Page 5: Replication of data in mobile communication

O process groups are useful for managing replicated data

O group membership service provides:

O interface for adding/removing members

O implements a failure detector

O notifies members of changes in membership

O expands group addresses

Page 6: Replication of data in mobile communication

Join

Group

address

expansion

Multicast

communication

Group

send

Fail Group membership

management

Leave

Process group

Membership service

provides leave and

join operations

Members are

informed when

processes join/leave Failure detector notes

failures and evicts failed

processes from the group

The group

address is

expanded

Page 7: Replication of data in mobile communication

O provision of a service that is correct even if f

processes fail

O by replicating data and functionality at

RMs

O assume communication reliable and no

partitions

O For example; Bank accounts transactions

Page 8: Replication of data in mobile communication

Fault tolerance service

Passive backup

Active backup

Page 9: Replication of data in mobile communication

O a single primary RM and one or more secondary (backup, slave) RMs

O FEs communicate with the primary O if the primary fails, one of the backups is promoted to

act as the primary

FE C

FE C

RM

Primary

Backup

Backup

RM

RM

Page 10: Replication of data in mobile communication

Request •FE issues a request

with unique ID to primary RM

Coordination •If identifier is old>>

resend response

Execution

•Primary exe request and store the response

Agreement •For new update

backups are updated & backup send ack.

Response

•Primary response to FE,FE to Client

Page 11: Replication of data in mobile communication

11

F

E C

F

E C

R

M

R

M

R

M

a FE multicasts each

request to the group of

RMs

the RMs process each request identically and reply

byzantine failures because

the FE can collect and

compare the replies

If( RM fails)

{

no impact on

performance; RM

responds in same way;

}

Page 12: Replication of data in mobile communication

Request •FE multicasts

request with unique ID to RM’s

Coordination

•Group comm. Sys sends req to correct RM in same order of request

Execution

•Every replica exe request and store the response

Agreement •NO AGREEMENT IS NEEDED

Response

•Each RM send its response to the front end.

Page 13: Replication of data in mobile communication

O replication techniques to make services

highly available~

O RESPONSE TIME: AS less as much

poosible

O Even on the cost of consistency

O Consistency can be maintain later.

O Terms introduced -> EAGER V/S LAZY

UPDATES

Page 14: Replication of data in mobile communication

O The service consists of a collection of RMs that exchange gossip

messages

O Queries and updates are sent by a client via an FE to an RM

14

Query Val

FE

RM RM

RM

Query, prev Val, new

Update

FE

Update, prev Update id

Service

Clients

prev is a vector timestamp for the latest version seen by the FE (and client)

new is the vector

timestamp of the

resulting value, val

update id is the vector

timestamp of the

update

Gossip

Page 15: Replication of data in mobile communication

O High availability with weaker guarantees of

consistency

O RM cope with varible connectivity

O Apply “domain-specific detection ” &

“Conflict resolution”

Page 16: Replication of data in mobile communication

O AFS: andrew file system

O Don’t deal with disconnected operation

O CODA: CONSISTENT DATA AVAILABILITY

O deal with disconnected operation

O Save all updates in local cache of client

O After re-connection , changes are

replicated

O Basic diff. is lies in “REPLICATION METHOD”

Page 17: Replication of data in mobile communication

O objects in transactional systems are replicated to enhance availability and performance

O one-copy serializability.

O each RM provides concurrency control and recovery of its own objects

O replication makes recovery more complicated

O when an RM recovers, it restores its objects with information from other RMs

Page 18: Replication of data in mobile communication

O the primary copy approach, all FEs communicate with a single RM which propagates updates to back-ups.

O In other schemes, FEs may communicate with any RM O an RM that receives a request is responsible for getting

cooperation from the other RMs ?? O propagate requests immediately or at the end of a

transaction? O In primary scheme??? O In other scheme???

O USE 2PC protocol for proper communication b/w RMs

Page 19: Replication of data in mobile communication