arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1606.01387cs.DCcs.LO
收藏

分布式共识的多Paxos形式化验证

Formal Verification of Multi-Paxos for Distributed Consensus

Saksham Chand, Yanhong A. Liu, Scott D. Stoller

摘要:

Paxos是一个重要的算法,用于一组分布式进程对单个值或值序列达成一致,分别称为基本Paxos或多Paxos。当分布式服务被复制以实现容错时,共识是至关重要的,因为没有错误的副本必须就系统的状态或已执行的操作顺序达成一致。不幸的是,共识算法,特别是包括多Paxos是众所周知的是难以理解的,其准确的规格和正确性证明仍然具有挑战性,尽管广泛的研究,因为Lamport推出Paxos。本文描述了用于分布式共识的Lamport的Multi-Paxos算法的形式化规范和验证。该规范是用TLA+,Lamport的动作时间逻辑编写的。校样是使用TLAPS(TLA+ Proof System)编写和自动检查的。证明是为了保证算法的安全性。基于Lamport,Merz和Doligez的规范和基本Paxos的证明,我们的目标是通过最小化与基本Paxos的差异来促进对Multi-Paxos及其证明的理解,并展示证明Paxos和其他复杂分布式算法的其他变体的一般方法。我们还讨论了我们的一般策略和结果证明复杂的不变量使用不变性引理和增量,证明属性的集合和元组,以帮助证明检查成功显着减少时间,并为整体证明改进,从而大大减少证明大小。

英文摘要:

Paxos is an important algorithm for a set of distributed processes to agree on a single value or a sequence of values, for which it is called Basic Paxos or Multi-Paxos, respectively. Consensus is critical when distributed services are replicated for fault-tolerance, because non-faulty replicas must agree on the state of the system or the sequence of operations that have been performed. Unfortunately, consensus algorithms including Multi-Paxos in particular are well-known to be difficult to understand, and their accurate specifications and correctness proofs remain challenging, despite extensive studies ever since Lamport introduced Paxos. This article describes formal specification and verification of Lamport's Multi-Paxos algorithm for distributed consensus. The specification is written in TLA+, Lamport's Temporal Logic of Actions. The proof is written and automatically checked using TLAPS, the TLA+ Proof System. The proof is for the safety property of the algorithm. Building on Lamport, Merz, and Doligez's specification and proof for Basic Paxos, we aim to facilitate the understanding of Multi-Paxos and its proof by minimizing the difference from those for Basic Paxos, and to demonstrate a general way of proving other variants of Paxos and other sophisticated distributed algorithms. We also discuss our general strategies and results for proving complex invariants using invariance lemmas and increments, for proving properties about sets and tuples to help the proof check succeed in significantly reduced time, and for overall proof improvement leading to considerably reduced proof size.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑