[Paper Review] CloudChain: A Cloud Blockchain Using Shared Memory Consensus and RDMA
CloudChain proposes a high-performance, cloud-native blockchain that leverages shared-memory communication via RDMA to achieve low-latency consensus in permissioned cloud environments. By replacing traditional message-passing with RDMA-enabled direct memory access, CloudChain achieves sub-second block confirmation times and up to 6,347 TPS with 8 MB blocks, while maintaining persistence and liveness against Byzantine faults.
Blockchain technologies can enable secure computing environments among mistrusting parties. Permissioned blockchains are particularly enlightened by companies, enterprises, and government agencies due to their efficiency, customizability, and governance-friendly features. Obviously, seamlessly fusing blockchain and cloud computing can significantly benefit permissioned blockchains; nevertheless, most blockchains implemented on clouds are originally designed for loosely-coupled networks where nodes communicate asynchronously, failing to take advantages of the closely-coupled nature of cloud servers. In this paper, we propose an innovative cloud-oriented blockchain -- CloudChain, which is a modularized three-layer system composed of the network layer, consensus layer, and blockchain layer. CloudChain is based on a shared-memory model where nodes communicate synchronously by direct memory accesses. We realize the shared-memory model with the Remote Direct Memory Access technology, based on which we propose a shared-memory consensus algorithm to ensure presistence and liveness, the two crucial blockchain security properties countering Byzantine nodes. We also implement a CloudChain prototype based on a RoCEv2-based testbed to experimentally validate our design, and the results verify the feasibility and efficiency of CloudChain.
Motivation & Objective
- To address the inefficiency of traditional blockchains in tightly-coupled cloud environments by leveraging cloud-native features like RDMA and shared memory.
- To design a consensus protocol that ensures persistence and liveness in the presence of Byzantine nodes within a cloud-based, synchronous network.
- To eliminate OS kernel bottlenecks in blockchain communication by using RDMA to bypass the kernel and enable direct memory access.
- To prototype and evaluate a cloud-optimized blockchain system that outperforms traditional message-passing blockchains in latency and throughput.
- To demonstrate that deep integration of blockchain with cloud infrastructure can enable high performance without sacrificing decentralization or security.
Proposed method
- CloudChain adopts a three-layer modular architecture: network layer, consensus layer, and blockchain layer, supporting heterogeneous clients with varying device capacities.
- It implements a shared-memory communication model using RDMA to enable synchronous, low-latency communication between nodes, bypassing the OS kernel.
- The Shared-Memory Consensus Algorithm (SMCA) is designed to ensure persistence and liveness under Byzantine conditions, using a leader-based voting mechanism over shared memory.
- SMCA leverages RDMA for fast, reliable communication and coordination, enabling rapid block ordering and verification across nodes.
- The system is implemented on a RoCEv2-based testbed with multiple servers, using RDMA-enabled NICs to achieve high bandwidth (up to 400 Gb/s) and low latency.
- Performance evaluation uses real-world workloads with varying network sizes (5–15 nodes) and block sizes (2–8 MB) to measure latency, throughput, and fault tolerance.
Experimental results
Research questions
- RQ1How can blockchain consensus be optimized in tightly-coupled, cloud-based environments that support low-latency, synchronous communication?
- RQ2Can RDMA-based shared memory replace traditional message-passing in blockchain consensus to reduce latency and increase throughput?
- RQ3To what extent does the Shared-Memory Consensus Algorithm (SMCA) maintain persistence and liveness under Byzantine conditions in a cloud setting?
- RQ4How does network size and block size affect the latency and throughput of a cloud-optimized blockchain like CloudChain?
- RQ5Can a cloud-native blockchain achieve high performance without sacrificing decentralization or security against Byzantine adversaries?
Key findings
- CloudChain achieves a block confirmation latency of approximately 992.277 ms for a 2 MB block with 15 nodes, demonstrating scalability in larger networks.
- Throughput decreases from 5,379 TPS to 3,628 TPS as network size increases from 5 to 15 nodes due to increased voting scanning and channel contention.
- With an 8 MB block size, CloudChain achieves a latency of 4,512.822 ms and a throughput of 6,347 TPS, showing that larger blocks improve throughput without increasing transmission delay.
- For a 2 MB block, CloudChain achieves a throughput of 4,404 TPS and a verification latency of 1,649.237 ms, significantly outperforming traditional blockchains in performance.
- The consensus latency remains nearly constant (around 60–360 ms) across varying Byzantine ratios (6.25% to 37.50%) when the leader is honest, indicating robustness to Byzantine nodes.
- The prototype demonstrates that RDMA-based shared memory enables sub-second block confirmation times and efficient inter-node communication, validating the feasibility of the design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.