recovery in database system new
TRANSCRIPT
Recovery in Mobile Database System
Presented by:PRAVEEN PALLAV
(1DS09IS061)
ISE - DSCE - 2013 1
Outline Introduction Previous work System model Recovery and its issue Proposed recovery scheme Advantages Disadvantages
ISE – DSCE – 2013 2
RECOVERY IN MOBILE DATABASE SYSTEM
Introduction Aim to provide a scheme which will help
a MU recover efficiently, taking reduced amount of time to recover from its last secure state
This new mobile computing environment poses challenging problems in designing fault-tolerant systems
ISE - DSCE – 2013 3
RECOVERY IN MOBILE DATABASE SYSTEM
Motivation Telecommunication services need to improve the quality,
availability, and reliability of cellular services.
information accessing capability regardless of the location
Motivated by such growing demand, we envision an information processing system
Need of fault-tolerant systems which suit the mobile environment
ISE - DSCE – 2013 4
RECOVERY IN MOBILE DATABASE SYSTEM
Previous work Lazy schemes
Pessimistic scheme
Schemes based on the MU’s movement
Distance based
Frequency based
ISE - DSCE – 2013 5
RECOVERY IN MOBILE DATABASE SYSTEM
System model
ISE - DSCE – 2013 6
RECOVERY IN MOBILE DATABASE SYSTEM
Problem Specifications
Location is not fixed
Batteries have limited power
Different types of failures
Hard failure
Soft failure
Weak wireless linkISE - DSCE – 2013
7
RECOVERY IN MOBILE DATABASE SYSTEM
Recovery
A mechanism to restore an intermediate consistent state of the system.
made possible by maintaining log
log management should be very efficient
ISE - DSCE – 2013 8
RECOVERY IN MOBILE DATABASE SYSTEM
……. Appropriate recovery strategy needs to
be chosen
Failure rate
Memory constraints
Recovery time
Communication / Mobility Ratio
ISE - DSCE – 2013 9
RECOVERY IN MOBILE DATABASE SYSTEM
PROPOSED RECOVERY SCHEME
ISE - DSCE – 2013 10
RECOVERY IN MOBILE DATABASE SYSTEM
Recovering the MU state on its failure at the time of handoff
Key terms Region: BSs under the same MSC. Designated BS: First BS for a MU
registration inside a region.MSC
BS1
BS2
BS3
DBS
ISE - DSCE – 2013 11
RECOVERY IN MOBILE DATABASE SYSTEM
……… Characteristics of DBS:
Store all the log entry done by respective MU.
Different DBS for different region.
ISE - DSCE – 2013 12
RECOVERY IN MOBILE DATABASE SYSTEM
Inter-region Step 1: MU registers with a BS in a Region, changes
state of that BS as DBS for that MU. Step 2: MU does some transactions, stores the log at
respective DBS. Step 3: MU goes out of that region and comes under
another region and repeats the same registration procedure, making first registered BS as DBS for that region.
Step 4: Current DBS calls for the logs from the previous region DBS.
Step 5: Previous DBS transfers all the respective MU log to the new DBS.
ISE - DSCE – 2013 13
RECOVERY IN MOBILE DATABASE SYSTEM
MSC
BS1
BS2
BS3
MSC
BS1
BS2
BS3
DBS DBSLOG
Inter-region
ISE - DSCE – 2013 14
RECOVERY IN MOBILE DATABASE SYSTEM
Intra-region Log transfer from MU cache to BS:
When? Either MU memory is exhausted. Or a handoff is detected.
How? Log is updated to the current BS. It is appended to the DBS log.
ISE - DSCE – 2013 15
RECOVERY IN MOBILE DATABASE SYSTEM
Log management Registration:
Connect(MHID, PBSID, DBSID) MHID: ID of the MU. PBSID: Previous BS’s ID. DBSID: ID of respective region’s DBS.
ISE - DSCE – 2013 16
RECOVERY IN MOBILE DATABASE SYSTEM
Case 1 log management Step 1: MU registers with a BS in a Region, changes
state of that BS as DBS for that MU. Step 2: MU does some transactions, stores the log at
respective DBS. Step 3: MU goes out of DBS vicinity and comes under
BS2 cell. Step 4: MU registers itself to new BS with
connect(MHID, PBSID, DBSID). Step 5: BS2 sends a message to PBSID ‘MHID is with
me’. Step 6: Since the PBS is also the DBS for that MU,
hence no action taken and the message is discarded.ISE - DSCE – 2013
17
RECOVERY IN MOBILE DATABASE SYSTEM
MSC
BS1
BS2
BS3DBS
Connect(MHID, PBSID, DBSID)
MHID is with me
Case 1 log management
ISE - DSCE – 2013 18
RECOVERY IN MOBILE DATABASE SYSTEM
Case 2 log managementGoing on in addition with previous scenario: Step 1: Now MU has moved from BS2 to
BS3, repeats the same registration process as in previous case and the PBS (BS2) is notified by the current BS (BS3) about that MU existence.
Step 2: Now BS2 checks for the PBS for that MU in its memory, since the PBS is the DBS hence no delete message or action required.
ISE - DSCE – 2013 19
RECOVERY IN MOBILE DATABASE SYSTEM
MSC
BS1
BS2
BS3DBS
Connect(MHID, PBSID, DBSID)
MHID is with me
Since previous BS is DBS, hence no delete message is send
Case 2 log management
ISE - DSCE – 2013 20
RECOVERY IN MOBILE DATABASE SYSTEM
Case 3 log managementIn addition with previous scenario: Step 1: MU goes from BS3 to BS4 now and performs the
same registration process with BS4, BS4 notifies BS3 about MU.
Step 2: The with respect to that MU, PBSID stored at BS3 is not the DBS hence a ‘delete’ message from BS3 is sent to BS2.
Step 3: BS2 on receiving of ‘delete’ message transfers all log for that MU to the respective DBS.
Step 4: DBS acknowledges BS2 about log successful transfer.
Step 5: BS2 deletes respective MU’s log entry from its memory.
ISE - DSCE – 2013 21
RECOVERY IN MOBILE DATABASE SYSTEM
MSC
BS2
BS3
DBSBS4
Connect(MHID, PBSID, DBSID)
MHID is with me
Delete
LOGS
Acknowledgement
Delete the log entry
Case 3 log management
ISE - DSCE – 2013 22
RECOVERY IN MOBILE DATABASE SYSTEM
Case 4 log managementWhen we further move on in this scenario: Step 1: MU comes back to the recent visited BS
forming a loop i.e. from BS4 to BS3, registration process is done in the same previous manner.
Step 2: BS4 checks whether the PBS and current BS of that MU in its memory are same? If yes, send the respective MU’s log to current BS i.e. logs are transferred from BS4 to BS3.
Step 3: BS3 appends the BS4 log with its current available log and BS3 deletes the PBSID for that MU from its memory.
ISE - DSCE – 2013 23
RECOVERY IN MOBILE DATABASE SYSTEM
Case 4 log management
MSC
BS2
BS3
DBSBS4
Connect(MHID, PBSID, DBSID)
MHID is with me
PBSID==CBSID
?LOGS
Append with previous Log & delete the
PBSID.
ISE - DSCE – 2013 24
RECOVERY IN MOBILE DATABASE SYSTEM
Recovery case 1 Recovery in same BS where it crashed:
Uses log saved in current BS. If not sufficient go for previous BS. If that is also insufficient, go for MU’s DBS. By using DBS log MU is restored with
required previous state.
ISE - DSCE – 2013 25
RECOVERY IN MOBILE DATABASE SYSTEM
Recovery case 2 Recovery in BS other than in which
failed: Current BS unaware of handoff. PBSID is unavailable. Old BS in which MU failed notifies
respective DBS about MU failure. When MU tries to recover, current BS
queries DBS for log. Using DBS log MU is recovered.
ISE - DSCE – 2013 26
RECOVERY IN MOBILE DATABASE SYSTEM
Advantages Preceding BS log maintenance gives
latest recovery option. Unification at DBS avoids redundancy of
logs. Loop is tackled. Auto unification of logs at one site
helps: Quick recovery. Achieve real time system deadlines.
ISE - DSCE – 2013 27
RECOVERY IN MOBILE DATABASE SYSTEM
Disadvantage DBS with many MUs gets overburdened. Single point of failure.
ISE - DSCE – 2013 28
RECOVERY IN MOBILE DATABASE SYSTEM
THANK YOUISE - DSCE – 2013
29
RECOVERY IN MOBILE DATABASE SYSTEM