Verdi: a framework for implementing and formally verifying distributed systems
Authors:
Top Cited Papers
Open Access
- 3 June 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 357-368
Abstract
Distributed systems are difficult to implement correctly because they must handle both concurrency and failures: machines may crash at arbitrary points and networks may reorder, drop, or duplicate packets. Further, their behavior is often too complex to permit exhaustive testing. Bugs in these systems have led to the loss of critical data and unacceptable service outages. We present Verdi, a framework for implementing and formally verifying distributed systems in Coq. Verdi formalizes various network semantics with different faults, and the developer chooses the most appropriate fault model when verifying their implementation. Furthermore, Verdi eases the verification burden by enabling the developer to first verify their system under an idealized fault model, then transfer the resulting correctness guarantees to a more realistic fault model without any additional proof burden. To demonstrate Verdi's utility, we present the first mechanically checked proof of linearizability of the Raft state machine replication algorithm, as well as verified implementations of a primary-backup replication system and a key-value store. These verified systems provide similar performance to unverified equivalents.Keywords
Funding Information
- National Science Foundation (CNS-0963754 DGE-1256082)
- U.S. Air Force (FA8750-12-C-0174)
- Defense Advanced Research Projects Agency (FA8750-12-2-0107)
This publication has 21 references indexed in Scilit:
- Automating formal proofs for reactive systemsACM SIGPLAN Notices, 2014
- Compiler validation via equivalence modulo inputsACM SIGPLAN Notices, 2014
- Machine-verified network controllers2013
- Using lightweight modeling to understand chordACM SIGCOMM Computer Communication Review, 2012
- Formal verification of a realistic compilerCommunications of the ACM, 2009
- Verifying distributed systemsACM SIGPLAN Notices, 2009
- Paxos made live2007
- Mace2007
- Linearizability: a correctness condition for concurrent objectsACM Transactions on Programming Languages and Systems, 1990
- Petri NetsACM Computing Surveys, 1977