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

Babel:一个开发性能可靠的分布式协议的框架

Babel: A Framework for Developing Performant and Dependable Distributed Protocols

Pedro Fouto, Pedro Ákos Costa, Nuno Preguiça, João Leitão

摘要:

原型设计和实现分布式算法,特别是那些解决与容错和可靠性相关的挑战的算法,是一项耗时的任务。这在一定程度上是由于需要解决低级别的问题,例如通信信道的管理,控制超时或周期性任务,以及处理并发问题。这对于想要构建原型进行实验评估的研究人员,想要比较不同设计方案/解决方案的从业人员,甚至对于分布式算法课程的实际教学活动都有重大影响。在本文中,我们提出了Babel,一个新的框架,开发,实现和执行分布式协议和系统。Babel提出了一种事件驱动的编程和执行模型,简化了将算法的典型规范或描述转换为高性能原型的任务,同时允许程序员通过透明地处理耗时的低级方面来关注这些算法的相关挑战。此外,Babel提供并允许定义可以捕获不同网络能力(例如,P2P、客户端/服务器、phi-accumulation故障检测器),使得代码基本上独立于底层通信方面。Babel是通用的,可以用来实现各种不同类型的分布式协议。我们进行我们的实验工作与两个相关的案例研究,对等应用程序和状态机复制应用程序,显示的一般性和易用性的巴别塔和目前的竞争力的性能相比,显着更复杂的实现。

英文摘要:

Prototyping and implementing distributed algorithms, particularly those that address challenges related with fault-tolerance and dependability, is a time consuming task. This is, in part, due to the need of addressing low level aspects such as management of communication channels, controlling timeouts or periodic tasks, and dealing with concurrency issues. This has a significant impact for researchers that want to build prototypes for conducting experimental evaluation; practitioners that want to compare different design alternatives/solutions; and even for practical teaching activities on distributed algorithms courses. In this paper we present Babel, a novel framework to develop, implement, and execute distributed protocols and systems. Babel promotes an event driven programming and execution model that simplifies the task of translating typical specifications or descriptions of algorithms into performant prototypes, while allowing the programmer to focus on the relevant challenges of these algorithms by transparently handling time consuming low level aspects. Furthermore, Babel provides, and allows the definition of, networking components that can capture different network capabilities (e.g., P2P, Client/Server, phi-accrual Failure Detector), making the code mostly independent from the underlying communication aspects. Babel was built to be generic and can be used to implement a wide variety of different classes of distributed protocols. We conduct our experimental work with two relevant case studies, a Peer-to-Peer application and a State Machine Replication application, that show the generality and ease of use of Babel and present competitive performance when compared with significantly more complex implementations.

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

↑