Skip to main content
QUICK REVIEW

[Paper Review] Concurrency Protocol Aiming at High Performance of Execution and Replay for Smart Contracts

Shuaifeng Pang, Xiaodong Qi|arXiv (Cornell University)|May 17, 2019
Distributed systems and fault toleranceComputer Science21 references9 citations
TL;DR

This paper proposes a novel two-phase concurrency control protocol for smart contracts that optimizes both mining (execution) and validation (replay) phases using a batching-aware optimistic concurrency control (OCC) variant and a graph partitioning-based schedule log decomposition. The approach achieves up to 11x speedup in both miner and validator performance while reducing communication overhead by approximately 90%, significantly outperforming state-of-the-art solutions.

ABSTRACT

Although the emergence of the programmable smart contract makes blockchain systems easily embrace a wider range of industrial areas, how to execute smart contracts efficiently becomes a big challenge nowadays. Due to the existence of Byzantine nodes, the mechanism of executing smart contracts is quite different from that in database systems, so that existing successful concurrency control protocols in database systems cannot be employed directly. Moreover, even though smart contract execution follows a two-phase style, i.e, the miner node executes a batch of smart contracts in the first phase and the validators replay them in the second phase, existing parallel solutions only focus on the optimization in the first phase, but not including the second phase. In this paper, we propose a novel efficient concurrency control scheme which is the first one to do optimization in both phases. Specifically, (i) in the first phase, we give a variant of OCC (Optimistic Concurrency Control) protocol based on {\em batching} feature to improve the concurrent execution efficiency for the miner and produce a schedule log with high parallelism for validators. Also, a graph partition algorithm is devised to divide the original schedule log into small pieces and further reduce the communication cost; and (ii) in the second phase, we give a deterministic OCC protocol to replay all smart contracts efficiently on multi-core validators where all cores can replay smart contracts independently. Theoretical analysis and extensive experimental results illustrate that the proposed scheme outperforms state-of-art solutions significantly.

Motivation & Objective

  • To address the performance bottleneck in smart contract execution caused by the lack of efficient concurrency control in blockchain systems.
  • To overcome the limitations of existing database concurrency protocols, which are unsuitable for Byzantine, full-replica, and Turing-complete blockchain environments.
  • To design a unified concurrency control scheme that optimizes both execution (mining) and replay (validation) phases, which are often treated separately.
  • To reduce communication overhead between miners and validators by partitioning the schedule log while preserving high parallelism.
  • To enable deterministic, high-performance concurrent replay on multi-core validators through a novel DeOCC protocol.

Proposed method

  • Proposes a batching-aware variant of Optimistic Concurrency Control (OCC) for the mining phase, enhancing parallelism in transaction execution.
  • Introduces a greedy feedback vertex set (FVS) algorithm to resolve conflicts in the conflict graph, improving schedule log quality.
  • Designs a graph partitioning algorithm to split the schedule log into smaller, communication-efficient chunks for validators.
  • Develops a deterministic OCC protocol called DeOCC to enable independent, concurrent replay across multiple cores in the validation phase.
  • Employs a workload threshold τ to control task granularity and balance performance and communication cost in the partitioning process.
  • Uses consistent read sets with partitioned logs to ensure deterministic replay while minimizing data transfer.

Experimental results

Research questions

  • RQ1How can concurrency control be efficiently optimized in both the mining and validation phases of smart contract execution?
  • RQ2To what extent can batching and conflict graph analysis improve the performance of smart contract execution in blockchain systems?
  • RQ3Can graph partitioning techniques reduce communication overhead between miners and validators without sacrificing parallelism?
  • RQ4How does the proposed DeOCC protocol enable deterministic, high-performance replay on multi-core validators?
  • RQ5What trade-off exists between communication cost reduction and performance degradation when tuning the workload threshold τ?

Key findings

  • The proposed scheme achieves an average of 11x speedup in both miner and validator phases, significantly outperforming state-of-the-art solutions.
  • Communication overhead is reduced by approximately 90% through the graph partitioning algorithm, even under high data skew (e.g., skew = 0.7).
  • The speedup remains stable at around 11x across varying data skew levels, demonstrating robustness to workload skew.
  • When the number of transactions per block exceeds 900, performance degrades due to increased conflict density, but the scheme still outperforms serial execution.
  • The workload threshold τ has a minor impact on performance: speedup drops slightly as τ increases, but remains effective when τ > 0.015.
  • The partitioning algorithm preserves high parallelism, achieving nearly optimal speedup (11x) even when transaction counts are low (e.g., 100 transactions per block), due to efficient task distribution.

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.