Detecting and Tolerating Byzantine Faults in Database Systems

Download: pdf.

“Detecting and Tolerating Byzantine Faults in Database Systems” by Ben Vandiver. Ph.D. dissertation, MIT, June 2008. Also as Technical Report MIT-CSAIL-TR-2008-040.

Abstract

This thesis describes the design, implementation, and evaluation of a replication scheme to handle Byzantine faults in transaction processing database systems. The scheme compares answers from queries and updates on multiple replicas which are off-the-shelf database systems, to provide a single database that is Byzantine fault tolerant. The scheme works when the replicas are homogeneous, but it also allows heterogeneous replication in which replicas come from different vendors. Heterogeneous replicas reduce the impact of bugs and security compromises because they are implemented independently and are thus less likely to suffer correlated failures. A final component of the scheme is a repair mechanism that can correct the state of a faulty replica, ensuring the longevity of the scheme. The main challenge in designing a replication scheme for transaction processingsystems is ensuring that the replicas state does not diverge while allowing a high degree of concurrency. We have developed two novel concurrency control protocols, commit barrier scheduling (CBS) and snapshot epoch scheduling (SES) that provide strong consistency and good performance. The two protocols provide different types of consistency: CBS provides single-copy serializability and SES provides single-copy snapshot isolation. We have implemented both protocols in the context of a replicated SQL database. Our implementation has been tested with production versions of several commercial and open source databases as replicas. Our experiments show a configuration that can tolerate one faulty replica has only a modest performance overhead (about 10-20% for the TPC-C benchmark). Our implementation successfully masks several Byzantine faults observed in practice and we have used it to find a new bug in MySQL.

Download: pdf.

BibTeX entry:

@phdthesis{vandiver08,
   author = {Ben Vandiver},
   title = {Detecting and Tolerating Byzantine Faults in Database Systems},
   school = {MIT},
   type = {{Ph.D.}},
   month = jun,
   year = {2008},
   note = {Also as Technical Report MIT-CSAIL-TR-2008-040}
}

Also see all authors, all publications by date, and all publications by topic.

Programming Methodology Group