具有对称性的分布式协议的自动完成
Automatic Completion of Distributed Protocols with Symmetry
摘要:
分布式协议通常被建模为一组通信进程,其中每个进程都被描述为扩展状态机以及公平性假设,并且使用安全性和活性要求指定其正确性。设计正确的分布式协议是一项具有挑战性的任务。为了简化这项任务,我们允许设计师离开一些警卫和更新的状态变量的描述扩展状态机作为未知的功能。协议完成问题是在保证正确性的同时找到这些未知函数的解释。在许多分布式协议中,进程行为是自然对称的,因此,合成表达式还需要遵守对称约束。我们的反例引导合成算法包括反复调用两个阶段。在第一阶段,使用SMT求解器Z3生成未知表达式的候选。此阶段需要仔细编排约束,以在读/写访问中强制执行所需的对称性。在第二阶段,使用定制的模型检查器来检查最终完成的协议的正确性,该模型检查器处理公平性假设,安全性和活性要求,并利用对称性。当模型检验失败时,我们的工具会检查一组安全/活性属性的反例,以生成对未知函数的约束,这些约束必须由后续完成来满足。评估,我们表明,我们的原型是能够自动发现有趣的缺失的细节,在分布式协议的互斥,自稳定,和缓存一致性。
英文摘要:
A distributed protocol is typically modeled as a set of communicating processes, where each process is described as an extended state machine along with fairness assumptions, and its correctness is specified using safety and liveness requirements. Designing correct distributed protocols is a challenging task. Aimed at simplifying this task, we allow the designer to leave some of the guards and updates to state variables in the description of extended state machines as unknown functions. The protocol completion problem then is to find interpretations for these unknown functions while guaranteeing correctness. In many distributed protocols, process behaviors are naturally symmetric, and thus, synthesized expressions are further required to obey symmetry constraints. Our counterexample-guided synthesis algorithm consists of repeatedly invoking two phases. In the first phase, candidates for unknown expressions are generated using the SMT solver Z3. This phase requires carefully orchestrating constraints to enforce the desired symmetry in read/write accesses. In the second phase, the resulting completed protocol is checked for correctness using a custom-built model checker that handles fairness assumptions, safety and liveness requirements, and exploits symmetry. When model checking fails, our tool examines a set of counterexamples to safety/liveness properties to generate constraints on unknown functions that must be satisfied by subsequent completions. For evaluation, we show that our prototype is able to automatically discover interesting missing details in distributed protocols for mutual exclusion, self stabilization, and cache coherence.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。