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

Paxos Made EPR:分布式协议的可判定推理

Paxos Made EPR: Decidable Reasoning about Distributed Protocols

Oded Padon, Giuliano Losa, Mooly Sagiv, Sharon Shoham

摘要:

Paxos等分布式协议在许多计算机系统中起着重要的作用。因此,分布式协议中的错误可能会产生巨大的影响。因此,在核查此类协议方面投入了大量努力。然而,检查这些协议的不变量是不可判定的,在实践中很难,因为它需要对无限数量的节点和消息进行推理。此外,协议动作和不变量涉及量词交替和高阶概念,如集合基数和算术。本文朝着此类协议的自动验证迈出了一步。我们的目标是一种技术,可以验证正确的协议,并识别错误的协议。为此,我们开发了一种基于有效命题逻辑(EPR)的演绎验证方法-一阶逻辑(也称为Bernays-Schönfinkel-Ramsey类)的可判定片段。除了可判定性,EPR还具有有限模型属性,允许将违规显示为用户直观的有限结构。我们的方法涉及使用一般(未解释)的一阶逻辑建模协议,然后系统地转换模型,以获得一个模型和一个可判定的归纳不变量检查。转换的步骤也被机械地检查,以确保方法的可靠性。我们已经使用我们的方法来验证Paxos及其几个变体的安全性,包括Multi-Paxos,Vertical Paxos,Fast Paxos,Flexible Paxos和Stoppable Paxos。据我们所知,这项工作是第一个使用可判定逻辑来验证这些协议,并且是第一个对垂直Paxos,快速Paxos和可停止Paxos的形式化验证。

英文摘要:

Distributed protocols such as Paxos play an important role in many computer systems. Therefore, a bug in a distributed protocol may have tremendous effects. Accordingly, a lot of effort has been invested in verifying such protocols. However, checking invariants of such protocols is undecidable and hard in practice, as it requires reasoning about an unbounded number of nodes and messages. Moreover, protocol actions and invariants involve both quantifier alternations and higher-order concepts such as set cardinalities and arithmetic. This paper makes a step towards automatic verification of such protocols. We aim at a technique that can verify correct protocols and identify bugs in incorrect protocols. To this end, we develop a methodology for deductive verification based on effectively propositional logic (EPR)---a decidable fragment of first-order logic (also known as the Bernays-Schönfinkel-Ramsey class). In addition to decidability, EPR also enjoys the finite model property, allowing to display violations as finite structures which are intuitive for users. Our methodology involves modeling protocols using general (uninterpreted) first-order logic, and then systematically transforming the model to obtain a model and an inductive invariant that are decidable to check. The steps of the transformations are also mechanically checked, ensuring the soundness of the method. We have used our methodology to verify the safety of Paxos, and several of its variants, including Multi-Paxos, Vertical Paxos, Fast Paxos, Flexible Paxos and Stoppable Paxos. To the best of our knowledge, this work is the first to verify these protocols using a decidable logic, and the first formal verification of Vertical Paxos, Fast Paxos and Stoppable Paxos.

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

↑