Skip to main content
QUICK REVIEW

[Paper Review] Lockless Blockchain Sharding with Multiversion Control

Ramesh Adhikari, Costas Busch|arXiv (Cornell University)|Mar 30, 2023
Blockchain Technology Applications and SecurityComputer Science3 citations
TL;DR

This paper proposes a lockless blockchain sharding protocol using multiversion concurrency control to eliminate lock contention and improve transaction throughput. By splitting transactions into subtransactions across shards and using versioned account states to detect conflicts, the protocol enables high concurrency and near-ideal performance, with experimental results showing significantly lower execution time and higher throughput than lock-based approaches.

ABSTRACT

Sharding is used to address the performance and scalability issues of the blockchain protocols, which divides the overall transaction processing costs among multiple clusters of nodes. Shards require less storage capacity and communication and computation cost per node than the existing whole blockchain networks, and they operate in parallel to maximize performance. However, existing sharding solutions use locks for transaction isolation which lowers the system throughput and may introduce deadlocks. In this paper, we propose a lockless transaction method for ensuring transaction isolation without using locks, which improves the concurrency and throughput of the transactions. In our method, transactions are split into subtransactions to enable parallel processing in multiple shards. We use versions for the transaction accounts to implement consistency among the shards. We provide formal proof for liveness and correctness. We also evaluate experimentally our proposed protocol and compare the execution time and throughput with lock-based approaches. The experiments show that the transaction execution time is considerably shorter than the lock-based time and near to the ideal (no-lock) execution time.

Motivation & Objective

  • Address the scalability limitations of traditional blockchain systems due to full replication and high consensus overhead.
  • Overcome performance bottlenecks in existing sharding solutions caused by lock-based concurrency control, which reduces throughput and risks deadlocks.
  • Design a lockless transaction isolation mechanism that maintains consistency and atomicity in a sharded blockchain environment.
  • Achieve high concurrency and improved system throughput by enabling parallel subtransaction execution across shards using versioned shared objects.
  • Formally prove safety (correctness) and liveness (progress) of the proposed protocol, ensuring reliability in Byzantine fault-tolerant environments.

Proposed method

  • Split each transaction into subtransactions that execute in parallel across multiple shards based on the accounts they access.
  • Use multiversion concurrency control (MVCC) to track versioned states of shared accounts, enabling conflict detection between concurrent subtransactions.
  • Implement a conflict resolution mechanism where conflicting transactions are restarted and re-executed, ensuring serializability without locks.
  • Leverage BFT consensus (e.g., PBFT) within each shard to ensure consistency and fault tolerance, assuming each shard can tolerate Byzantine faults.
  • Use snapshot-based versioning to allow read operations to proceed without blocking, while write operations are validated against the latest committed version.
  • Apply formal verification to prove safety (serializability) and liveness (eventual commit) under the proposed protocol.

Experimental results

Research questions

  • RQ1Can a lockless sharding protocol achieve higher transaction throughput and lower latency compared to lock-based sharding in blockchain systems?
  • RQ2How does multiversion concurrency control enable conflict detection and resolution without locks in a sharded blockchain environment?
  • RQ3What is the impact of increasing the number of shards on transaction throughput and execution time in the proposed lockless protocol?
  • RQ4To what extent does the proposed protocol approach the performance of an ideal (no-lock) system in terms of execution time and scalability?
  • RQ5Can the proposed protocol maintain safety and liveness guarantees in the presence of concurrent subtransactions accessing shared accounts across shards?

Key findings

  • The proposed lockless protocol achieved significantly lower average transaction execution time compared to lock-based approaches, especially as the number of transaction constraints increased.
  • Throughput increased with the number of shards, demonstrating strong horizontal scalability, and approached the performance of an ideal no-lock system.
  • With 1500 transactions, the protocol’s throughput exceeded that of the lock-based method and was close to the theoretical no-lock baseline.
  • The experimental results showed that the lock-based protocol incurred higher overhead due to prolonged lock holding times, particularly under complex transactions with multiple conditions.
  • The protocol maintained correctness and liveness, as formally proven, and effectively resolved conflicts through restarts rather than blocking.
  • The performance improvement was most pronounced under high contention, where lock-based systems suffered from serialization bottlenecks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.