Research and Application of Distributed Database Synchronization Technology Based on Snapshot Isolation
- Author
- WangZuo
- Advisor
- LiLiXin
- School
- PLA Information Engineering University
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 43
- Citations
- 0
Abstract
In recent years, the distributed database applications are increasing with the rapiddevelopment of the computer network. Redundant copies of data, usually introduced in thedesign and implementation of a distributed database system. Multiple copies of data in differentlocations at the same time providing services can improve system availability and reliability,how to ensure the consistency of the redundant copies of data is a core issue in the distributeddatabase system.To solve the problem of data consistency in distributed database system, snapshot isolationis introduced into the database synchronization technology, through its concurrency features toimprove the performance of database synchronization system; some scholars adopt groupcommunication in the total order transferring technology to achieve a good database peer nodesynchronization strong data consistency. But the snapshot isolation did not achieve databaseconcurrency control the serializability correctness criterion, may lead to inconsistencies; andusing only the group communication technology will have some impact on the performance ofthe system.Therefore, this paper analyzes the snapshot isolation technology and communicationtechnology for multi-node distributed database synchronization business needs, combined withthe advantages of both, designed and implemented a maintenance redundancy in a distributeddatabase replica consistency systems. The main work is summarized as follows:(1) We design a principle of serializable snapshot isolation (SSI). In order to ensure theconcurrent transactions of snapshot isolation to be serializable, we present “serializable snapshotisolation principle”based on the study of snapshot isolation technology. The principle guaranteesone-copy serializablility of concurrent transactions.(2) We design the distributed database synchronization protocol for update anywhere model.Combine the characteristics of group communication based on the snapshot isolation serializablealgorithm, we design the SSI-SYNC database synchronization protocol, ensure that transactionscan be submitted to any replica as well as guaranteeing the performance of the system.(3) For maintenance of distributed database data consistency, we proposed a synchronizationconflict management strategy in a distributed environment and design a synchronous exceptionhandling strategy for distributed database. We can ensure good data consistency of replica withthese strategies.(4) We design and implement a distributed database synchronization system based onsnapshot isolation. In order to solve the problem of secure transmission of data synchronizationprocess, we design a data transmission security authentication mechanism. Data synchronization protocol and digital envelope mechanism is combining to achive the high requirements for datasecurity. The system can be safe, reliable, stable and efficient synchronization between Oracle,SQL Server and other mainstream database products, and system synchronization validation andanalysis of verification results. The experimental results show that the system can fully guaranteethe user’s autonomy under the premise of the complete synchronization of the distributeddatabase.
Table of contents
Summary 7-8
Abstract 8-10
first chapter 10-18
1.1 Background and Significance 10 - 11
1.2 research status 11-15
1.2.1 database synchronization development status 11-13
1.2.2 snapshot isolation database development status based synchronization 13-15
1.3 the main work organizational structure 15-16
1.4 article 16-18
the second chapter studies the knowledge 18-30
2.1 distributed Database system Overview 18-19
2.1.1 define a distributed database system 18
2.1.2 distributed characteristics of database system 18-19
2.2 Affairs 19-20
2.2.1 Affairs concept 19
2.2.2 affairs features 19-20
2.2.3 affairs structure 20
2.3 distributed database concurrency control 20-24
2.3.1 transaction data concurrency inconsistency analysis 20-22
2.3.2 distributed correctness criterion for concurrency control 22-24
2.4 database synchronization 24-28
2.4.1 database synchronization concept 24
2.4.2 database synchronization strategy 24-25
2.4.3 database synchronization architecture 25-28
2.5 group communication technology 28-29
2.5.1 group communication concepts 28
2.5.2 group communication features 28-29
2.6 Summary 29-30
the third chapter based snapshot isolation SSI-SYNC protocol design 30-44
3.1 snapshot isolation characteristics 30-31
3.2 snapshot isolation characteristics analysis 31-32
3.2.1 snapshot isolation can eliminate concurrency exception 31
3.2.2 snapshot isolation anomalies exist 31-32
3.3 rule -based serializable snapshot isolation 32-39
3.3.1 the basic idea 32-33
3.3.2 data model defines 33-35
3.3.3 SSI rules describe 35-37
3.3.4 SSI correctness proof 37-39
3.4 SSI-SYNC database synchronization protocol 39-43
3.4.1 The basic idea 39
3.4.2 SSI-SYNC protocol description 39-42
3.4.3 SSI-SYNC analysis protocol 42
3.4.4 examples 42-43
3.5 Summary 43-44
Chapter snapshot isolation -based distribution database synchronization system design 44-60
4.1 overall idea and design goals 44-45
4.1.1 the general idea 44
4.1. two design goals 44-45
4.2 overall system design 45-46
4.3 system workflow design 46-47
4.4 system features modular design 47-55
4.4.1 transaction Management module 48-50
4.4.2 conflict Management module 50-51
4.4.3 communication Module 51-54
4.4.4 transaction execution module 54-55
4.5 secure transmission design 55-57
4.5.1 security requirements 56
4.5.2 secure transmission of digital envelope based 56-57
4.6 system exception handling 57-59
4.6.1 abnormal communication link 57-58
4.6.2 node failure 58-59
4.7 Summary 59-60
Chapter snapshot isolation -based distributed database synchronization system achieve 60-78
5.1 overall system framework 60-61
5.2 transaction information collection and processing 61-65
5.2 .1 transaction capture 61-62
5.2.2 affairs resolve 62-63
5.2.3 transactional storage structure 63-64
5.2. 4 related functions and instructions 64-65
5.3 conflict management to achieve 65-67
5.4 secure transmission achieve 67-71
5.4.1 based Spread communication 68-69
5.4.2 XML Package / parse 69-70
5.4.3 based digital envelope encryption / decryption program to achieve 70 - 71
5.5 transaction execution component 71-73
5.6 configuration and database information table 73-75
5.6.1 configuration information 73 <br / > 5.6.2 database table design 73-75
5.7 system interface 75-77
5.8 Summary 77-78
Chapter 6 System verify 78-86
6.1 verification environment and deploy 78-79
6.2 validate use cases 79
6.2.1 validation data 79
6.2.2 verify transaction statements 79
6.3 functional verification 79-82
6.4 performance verification 82-85
6.4.1 system response time verification 83-84
6.4.2 transaction abort rate verification 84-85
6.5 Summary 85-86
Chapter VII summary and Outlook 86-88
7.1 This work summarizes 86-87
7.2 next work plan 87-88
References 88-91
Author Biography studying for a master's degree major work completed during 91-92
Thanks 92
Related dissertations
- The Design and Implementation of a Distributed Database Project Management System for Communications Engineering Design
- The Research of Date Replication Based on Distributed Database
- Study of Group Decision Making Theory and Methods Based on Fuzzy Number Preference Relations with Consistency
- Enterprise the Highest Political Level and the Execution Level Cultural Cognitive Consistency Research
- Research on Consistency of EKF-SLAM for Indoor Mobile Robot
- Study on Spline Curves and Surfaces in CAD/CAE
- Research on Real-time Rendering of Multi-resolution Terrain Features
- An Adaptive Multi-level Caching Strategy for Disributed Database Systems
- Application and Research of the Distributed Network Database in Energy Management System
- The Study on Application of the Distributed Database in Bank Card Acquiring Professional Service System
- Query Optimization Technique for Distributed Database System Based on Semi-Join Algorithm
- Journal Design and Implementation of Cappella Distributed File System
- Research on Extension of Description Logic ALCN and ALCQ
- Design and Realization of Regional Medical Management in Medical Insurance System
- Design and Implementation of Grain Purchase and Sale Management Information System Based on Web Framework
- Design of a Highly Reliable Financial Transaction Matching System with High Performance
- Analysis and Application of Interactive Behavior Based on Behavioral Profiles of Petri Net
- Research of Availability and Consistency of Distribute Storage System
- Researches of Web Client Persistent Cache Technology in Mobile Environment
- The Design and Realization of a Distribute System to Store Lots of Small Files