首页|许可链下的事务并行执行模型

许可链下的事务并行执行模型

扫码查看
现有的许可链系统大多采取串行的事务执行方式,无法利用多核处理器的性能优势.在共识算法性能较高的许可链中,这种串行的事务执行方法将会成为性能瓶颈.为降低排序-执行-验证架构的许可链中事务执行的时间开销,文中提出了两种事务并发模型.首先,提出了基于地址表的并行执行模型,通过静态分析的方法将事务的读写集映射到地址表中,并利用地址表构建调度图实现无数据冲突的事务并行执行;其次,针对静态分析方法不适用于读写需求复杂的应用场景,提出了基于多版本时间戳排序的并行执行模型,领导者节点使用多版本时间戳排序算法并行地预执行事务并将调度图以事务依赖三元组的形式存储入区块,所有验证节点通过事务依赖三元组进行调度,在保证一致性的前提下实现事务的并行执行;最后,在Tender-mint中实现了所设计的两种事务并发模型,并进行了事务执行阶段性能测试和多节点性能测试.实验结果表明,相比串行执行,所提模型在单节点8线程时的事务执行时间分别减少了 68.6%和28.5%,4节点8线程时区块链吞吐量分别提升了约43.4%和 19.5%.
Parallel Transaction Execution Models Under Permissioned Blockchains
Most existing permissioned blockchain systems adopt serial transaction execution methods,which cannot take advan-tage of the high performance of multi-core processors.This serial method will be a performance bottleneck in permissioned block-chains with high performance consensus algorithms.To reduce execution time of transactions in permissioned block-chains with order-execute-validate architecture,two transaction concurrency models are proposed.First,an address table-based parallel execu-tion model is proposed that maps the read and write sets of transactions to the address table through static analysis and con-structs a scheduling graph using the address table to achieve parallel execution of transactions without data conflicts.Second,a parallel execution model based on a multi-version timestamp ordering algorithm is proposed,in which the leader node uses a multi-version timestamp ordering algorithm to pre-execute transactions in parallel and stores the scheduling graph into the block in the form of transaction dependency triplets.All validation nodes schedule via transaction dependency triplets to achieve parallel execution of transactions under the premise of consistency.Finally,the two parallel transaction execution models designed in this paper are implemented in Tendermint,and a performance experiment during the transaction execution phase and a performance experiment with multiple nodes are conducted.Experimental results show that the above models reduce the transaction execution time by 68.6%and 28.5%with a single node and 8 threads,and increase the blockchain throughput by about 43.4%and 19.5%with 4 peer nodes and 8 threads per node,respectively.

BlockchainPractical Byzantine fault toleranceTransaction concurrencyMulti-version timestamp orderingTender-mint

董昊、赵恒泰、王子尧、袁野、张奥千

展开 >

北京理工大学计算机学院 北京 100081

东北大学计算机科学与工程学院 沈阳 110169

区块链 实用拜占庭容错 事务并发 多版本时间戳排序 Tendermint

国家重点研发计划国防基础科研计划

2022YFB2702100JCKY2021211B017

2024

计算机科学
重庆西南信息有限公司(原科技部西南信息中心)

计算机科学

CSTPCD北大核心
影响因子:0.944
ISSN:1002-137X
年,卷(期):2024.51(1)
  • 1