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

CRDT 的仿真、模拟与表示独立性

CRDT Emulation, Simulation, and Representation Independence

Nathan Liittschwager, Jonathan Castello, Stelios Tsampas, Lindsey Kuper

AI总结:

本文通过将CRDT及网络交互建模为转换系统,形式化了基于状态与基于操作CRDT间的模拟关系,证明其等价于弱模拟,并据此推导出CRDT的表示独立性结果。

摘要:

无冲突复制数据类型(CRDT)是为容错和高可用性设计的分布式数据结构。历史上,CRDT 被分类为基于状态的 CRDT(副本在本地应用更新并定期通过网络向其他副本广播其状态)和基于操作的 CRDT(每个状态更新操作都被单独广播)。文献中,由于存在使两者相互模拟的算法,基于状态和基于操作的 CRDT 被认为是等价的,且适用于一种 CRDT 的验证技术和结果据称因这种等价性也适用于另一种。然而,基于状态和基于操作的 CRDT 相互模拟的确切含义从未被完全精确化。模拟并非易事,因为基于状态和基于操作的 CRDT 对底层网络在消息传递的因果顺序和消息本身粒度上提出了不同要求。我们通过将 CRDT 及其与网络的交互建模为转换系统,以模拟(simulation)的形式指定并形式化了 CRDT 模拟。我们表明,模拟可理解为原始与模拟 CRDT 系统的转换系统之间的弱模拟,从而填补了 CRDT 文献中的空白。我们精确刻画了 CRDT 系统的哪些属性由我们的弱模拟保持,因此哪些属性可被认为由模拟算法保持。最后,我们利用模拟结果获得了 CRDT 的一般表示独立性结果:直观上,CRDT 的客户端无法分辨他们正在与基于状态还是基于操作的 CRDT 交互。

英文摘要:

Conflict-free replicated data types (CRDTs) are distributed data structures designed for fault tolerance and high availability. CRDTs have historically been taxonomized into state-based CRDTs, in which replicas apply updates locally and periodically broadcast their state to other replicas over the network, and operation-based (or op-based) CRDTs, in which every state-updating operation is individually broadcast. In the literature, state-based and op-based CRDTs are considered equivalent due to the existence of algorithms that let them emulate each other, and verification techniques and results that apply to one kind of CRDT are said to apply to the other thanks to this equivalence. However, what it means for state-based and op-based CRDTs to emulate each other has never been made fully precise. Emulation is nontrivial since state-based and op-based CRDTs place different requirements on the underlying network with regard to both the causal ordering of message delivery, and the granularity of the messages themselves. We specify and formalize CRDT emulation in terms of simulation by modeling CRDTs and their interactions with the network as transition systems. We show that emulation can be understood as weak simulations between the transition systems of the original and emulating CRDT systems, thus closing a gap in the CRDT literature. We precisely characterize which properties of CRDT systems are preserved by our weak simulations, and therefore which properties can be said to be preserved by emulation algorithms. Finally, we leverage our emulation results to obtain a general representation independence result for CRDTs: intuitively, clients of a CRDT cannot tell whether they are interacting with a state-based or op-based CRDT in particular.

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

↑