Journal of Computer Applications ›› 2023, Vol. 43 ›› Issue (2): 484-489.DOI: 10.11772/j.issn.1001-9081.2021122243

• Network and communications • Previous Articles    

Design and implementation of block transmission mechanism based on remote direct memory access

Dong SUN1,2, Biao WANG1,2, Yun XU1,2()   

  1. 1.College of Computer Science and Technology,University of Science and Technology of China,Hefei Anhui 230027,China
    2.Key Laboratory of High Performance Computing of Anhui Province (University of Science and Technology of China),Hefei Anhui 230027,China
  • Received:2022-01-07 Revised:2022-03-28 Accepted:2022-04-13 Online:2022-06-20 Published:2023-02-10
  • Contact: Yun XU
  • About author:SUN Dong, born in 1998, M. S. candidate. His research interests include blockchain.
    WANG Biao, born in 1998, M. S. candidate. His research interests include key-value store, Remote Direct Memory Access (RDMA).
  • Supported by:
    Program of Introducing Talents of Discipline to Universities(111 Project)

基于RDMA的区块传输机制设计与实现

孙栋1,2, 王彪1,2, 徐云1,2()   

  1. 1.中国科学技术大学 计算机科学与技术学院,合肥 230027
    2.安徽省高性能计算重点实验室(中国科学技术大学),合肥 230027
  • 通讯作者: 徐云
  • 作者简介:孙栋(1998—),男,安徽安庆人,硕士研究生 ,主要研究方向:区块链
    王彪(1998—),男,安徽安庆人,硕士研究生,主要研究方向:键值存储、远程直接内存访问(RDMA);
  • 基金资助:
    国家外专局111引智计划项目(BP0719016)

Abstract:

With the continuous development of blockchain technology, the block transmission delay has become a performance bottleneck of the scalability of the blockchain system. Remote Direct Memory Access (RDMA) technology, which supports high-bandwidth and low-delay data transmission, provides a new idea for block transmission with low latency. Therefore, a block catalogue structure for block information sharing was designed based on the characteristics of RDMA primitives, and the basic working process of block transmission was proposed and implemented on this basis. Experimental results show that compared with TCP(Transmission Control Protocol) transmission mechanism, the RDMA-based block transmission mechanism reduces the transmission delay between nodes by 44%, the transmission delay among the whole network by 24.4% on a block of 1 MB size, and the number of temporary forks appeared in blockchain by 22.6% on a blockchain of 10 000 nodes. It can be seen that the RDMA-based block transmission mechanism takes advantage of the performance of high speed networks, reduces block transmission latency and the number of temporary forks, thereby improving the scalability of the existing blockchain systems.

Key words: blockchain, Remote Direct Memory Access (RDMA), scalability, block transmission, low latency

摘要:

随着区块链技术的不断发展,区块的传输延迟成为区块链系统可扩展性的性能瓶颈。远程直接内存访问(RDMA)技术能够支持高带宽和低时延的数据传输,为低延迟区块传输提供了新的思路。因此,结合RDMA原语的特性,设计了用于区块信息共享的区块目录结构,并在此基础上设计并实现了区块传输的基本工作过程。实验结果表明,相较于基于TCP的方案,在1 MB大小的区块上基于RDMA的区块传输机制将节点间的区块传输延迟降低了44%,全网络的区块传输延迟降低了24.4%,在10 000节点规模的区块链上,区块链发生临时分叉的数量降低了22.6%。可见,基于RDMA的区块传输机制充分发挥了高速网络的性能优势,降低了区块传输延迟及临时分叉的数量,提高了现有区块链系统的可扩展性。

关键词: 区块链, 远程直接内存访问, 可扩展性, 区块传输, 低延迟

CLC Number: