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

故障检测器参数化验证的案例研究

A case study on parametric verification of failure detectors

Thanh-Hai Tran, Igor Konnov, Josef Widder

AI总结:

本文通过形式化验证Chandra和Toueg故障检测器在部分同步模型下的安全性和活性,引入对称点对点算法类并证明其截止性,利用TLA+、IVy和计数器自动机进行参数化验证。

摘要:

部分同步是许多分布式算法和现代区块链中的一种计算模型。这些算法通常在参与者数量上是参数化的,其正确性要求存在消息延迟界限以及进程在达到全局稳定时间后相对速度的界限。这些特性使得部分同步算法在进程数量上是参数化的,并且在时间界限上是参数化的,这给部分同步算法的自动验证带来了挑战。在本文中,我们提出了一个关于基于部分同步的Chandra和Toueg故障检测器的安全性和活性的形式化验证案例研究。为此,我们首先引入并形式化了包含该故障检测器的对称点对点算法类。其次,我们证明这些对称点对点算法具有截止性,并且截止性结果在三种计算模型中成立:同步、异步和部分同步。因此,可以通过模型检查小实例来验证它们,但验证问题在时间上仍然是参数化的。接下来,我们在三个框架中指定故障检测器和部分同步假设:TLA+、IVy和计数器自动机。重要的是,我们调整建模以利用每种方法的优势:(1)我们使用计数器来编码计数器自动机中的消息缓冲区,(2)我们使用一阶关系在IVy中编码消息缓冲区,(3)我们在TLA+中使用这两种方法。通过运行TLA+和计数器自动机的工具,我们证明了固定时间界限下的安全性。通过运行IVy,我们证明了任意时间界限下的安全性。此外,我们展示了如何通过将验证问题归约为安全性验证来验证故障检测器的活性。因此,通过使用IVy开发归纳不变量,两个性质都得到了验证。

英文摘要:

Partial synchrony is a model of computation in many distributed algorithms and modern blockchains. These algorithms are typically parameterized in the number of participants, and their correctness requires the existence of bounds on message delays and on the relative speed of processes after reaching Global Stabilization Time. These characteristics make partially synchronous algorithms parameterized in the number of processes, and parametric in time bounds, which render automated verification of partially synchronous algorithms challenging. In this paper, we present a case study on formal verification of both safety and liveness of the Chandra and Toueg failure detector that is based on partial synchrony. To this end, we first introduce and formalize the class of symmetric point-to-point algorithms that contains the failure detector. Second, we show that these symmetric point-to-point algorithms have a cutoff, and the cutoff results hold in three models of computation: synchrony, asynchrony, and partial synchrony. As a result, one can verify them by model checking small instances, but the verification problem stays parametric in time. Next, we specify the failure detector and the partial synchrony assumptions in three frameworks: TLA+, IVy, and counter automata. Importantly, we tune our modeling to use the strength of each method: (1) We are using counters to encode message buffers with counter automata, (2) we are using first-order relations to encode message buffers in IVy, and (3) we are using both approaches in TLA+. By running the tools for TLA+ and counter automata, we demonstrate safety for fixed time bounds. By running IVy, we prove safety for arbitrary time bounds. Moreover, we show how to verify liveness of the failure detector by reducing the verification problem to safety verification. Thus, both properties are verified by developing inductive invariants with IVy.

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

↑