设计具有崩溃停止故障的异步多方协议
Designing Asynchronous Multiparty Protocols with Crash-Stop Failures
AI总结:
针对分布式系统故障,提出Teatrino工具链,基于崩溃停止语义的异步多方会话类型,扩展Scribble和Effpi生成协议一致的Scala代码,保证无死锁、一致性和活性。
摘要:
会话类型为消息传递系统提供了一种类型化纪律。然而,大多数会话类型方法假设了一个理想世界:一个一切可靠且无故障的世界。但这与现实世界中的分布式系统形成鲜明对比。为了解决这一局限性,我们引入了Teatrino,一个代码生成工具链,利用具有崩溃停止语义的异步多方会话类型(MPST)来支持故障处理协议。我们为异步MPST和进程增加了崩溃处理分支。我们的方法不需要对全局类型进行用户级语法扩展,并具有全局语义的形式化,该形式化捕获了由崩溃/崩溃处理进程引起的复杂行为。全局与局部类型语义之间的健全且完备的对应关系保证了在存在崩溃的情况下,类型化进程的无死锁性、协议一致性和活性。我们的理论在工具链Teatrino中实现,该工具链通过构造提供了正确性。Teatrino扩展了Scribble多方协议语言,以使用Effpi并发编程库生成符合协议的Scala代码。我们扩展了Scribble和Effpi以支持崩溃停止行为。我们证明了我们方法的可行性,并使用从会话类型和分布式系统文献中扩展的示例评估了Teatrino。
英文摘要:
Session types provide a typing discipline for message-passing systems. However, most session type approaches assume an ideal world: one in which everything is reliable and without failures. Yet this is in stark contrast with distributed systems in the real world. To address this limitation, we introduce Teatrino, a code generation toolchain that utilises asynchronous multiparty session types (MPST) with crash-stop semantics to support failure handling protocols. We augment asynchronous MPST and processes with crash handling branches. Our approach requires no user-level syntax extensions for global types and features a formalisation of global semantics, which captures complex behaviours induced by crashed/crash handling processes. The sound and complete correspondence between global and local type semantics guarantees deadlock-freedom, protocol conformance, and liveness of typed processes in the presence of crashes. Our theory is implemented in the toolchain Teatrino, which provides correctness by construction. Teatrino extends the Scribble multiparty protocol language to generate protocol-conforming Scala code, using the Effpi concurrent programming library. We extend both Scribble and Effpi to support crash-stop behaviour. We demonstrate the feasibility of our methodology and evaluate Teatrino with examples extended from both session type and distributed systems literature.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。