arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.05535cs.DCcs.DB
收藏

批量-调度-执行:关于优化区块链并发确定性调度(扩展版)

Batch-Schedule-Execute: On Optimizing Concurrent Deterministic Scheduling for Blockchains (Extended Version)

Yaron Hay, Roy Friedman

AI总结:

本文研究区块链中同一区块内交易冲突图上的最大并行度,提出严格可串行化的主动状态机复制框架和图调度概念,证明最小延迟调度问题NP难,并揭示其对现有并发方案的安全影响。

摘要:

执行智能合约是一项计算和存储密集型任务,目前主导着现代区块链的性能。鉴于计算机正变得越来越具备多核特性,并发是改善程序执行运行时间的一种有吸引力的方法。区块链的一个独特挑战在于,所有副本(矿工或验证者)必须以相同的逻辑顺序执行所有智能合约,以维持状态机复制(SMR)的语义。在这项工作中,我们研究了当聚焦于打包在同一区块中的交易之间的冲突图时所能达到的最大并行度。这暴露了一个性能脆弱性,即区块创建者可能利用该脆弱性来攻击现有的区块链并发解决方案,这些解决方案依赖全排序阶段来维持所有副本之间的一致性。为了促进我们研究的形式化方面,我们开发了一个新颖的通用框架,用于严格可串行化的主动状态机复制(ASMR)。我们引入了图调度的概念以及最小延迟调度问题的定义,并证明该问题是NP难的。我们表明,该问题在交易同质情况下的受限版本等价于经典的图顶点着色问题,但表明异质情况更为复杂。我们讨论了这些结果的实际意义。

英文摘要:

Executing smart contracts is a compute and storage-intensive task, which currently dominates modern blockchain's performance. Given that computers are becoming increasingly multicore, concurrency is an attractive approach to improve programs' execution runtime. A unique challenge of blockchains is that all replicas (miners or validators) must execute all smart contracts in the same logical order to maintain the semantics of State Machine Replication (SMR). In this work, we study the maximal level of parallelism attainable when focusing on the conflict graph between transactions packaged in the same block. This exposes a performance vulnerability that block creators may exploit against existing blockchain concurrency solutions, which rely on a total ordering phase for maintaining consistency amongst all replicas. To facilitate the formal aspects of our study, we develop a novel generic framework for Active State Machine Replication (ASMR) that is strictly serializable. We introduce the concept of graph scheduling and the definition of the minimal latency scheduling problem, which we prove to be NP-hard. We show that the restricted version of this problem for homogeneous transactions is equivalent to the classic Graph Vertex Coloring Problem, yet show that the heterogeneous case is more complex. We discuss the practical implications of these results.

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

↑