Skip to main content
QUICK REVIEW

[Paper Review] Fast Transaction Scheduling in Blockchain Sharding

Ramesh Adhikari, Costas Busch|arXiv (Cornell University)|May 23, 2024
Blockchain Technology Applications and SecurityComputer Science3 citations
TL;DR

This paper proposes novel centralized and distributed transaction scheduling algorithms for blockchain sharding to minimize batch transaction execution time. It achieves provably fast schedules using hierarchical clustering and centralized optimization, with competitive ratios of $O(\mathcal{A}_{\mathcal{CS}}\log^2 s)$ in distributed settings, where $\mathcal{A}_{\mathcal{CS}}$ is the centralized scheduler's approximation ratio.

ABSTRACT

Sharding is a promising technique for addressing the scalability issues of blockchain, and this technique is especially important for IoT, edge, or mobile computing. It divides the $n$ participating nodes into $s$ disjoint groups called shards, where each shard processes transactions in parallel. We examine batch scheduling problems on the shard graph $G_s$, where we find efficient schedules for a set of transactions. First, we present a centralized scheduler where one of the shards is considered as a leader, who receives the transaction information from all of the other shards and determines the schedule to process the transactions. For general graphs, where a transaction and its accessing objects are arbitrarily far from each other with a maximum distance $d$, the centralized scheduler provides $O(kd)$ approximation to the optimal schedule, where $k$ is the maximum number of shards each transaction accesses. Next, we provide a centralized scheduler with a bucketing approach that offers improved bounds for the case where $G_s$ is a line graph, or the $k$ objects are randomly selected. Finally, we provide a distributed scheduler where shards do not require global transaction information. We achieve this by using a hierarchical clustering of the shards and using the centralized scheduler in each cluster. We show that the distributed scheduler has a competitive ratio of $O(A_{CS} \cdot \log d \cdot \log s)$, where $A_{CS}$ is the approximation ratio of the centralized scheduler. To our knowledge, we are the first to give provably fast transaction scheduling algorithms for blockchain sharding systems. We also present simulation results for our schedulers and compare their performance with a lock-based approach. The results show that our schedulers are generally better with up to 3x lower latency and 2x higher throughput.

Motivation & Objective

  • Address the scalability bottleneck in blockchain systems by enabling fast, conflict-free batch transaction scheduling in sharded architectures.
  • Formalize the transaction scheduling problem as a batch scheduling task on a shard communication graph $G_s$ with $s$ shards and maximum transaction access distance $d$.
  • Design a centralized scheduler with provable approximation guarantees for general, clique, hypercube, butterfly, and grid topologies.
  • Develop a distributed scheduler using hierarchical clustering to eliminate global knowledge requirements while maintaining strong performance bounds.
  • Provide theoretical analysis of approximation ratios across diverse network topologies and transaction access patterns.

Proposed method

  • Propose a centralized scheduler that uses global knowledge of all transactions to schedule subtransactions across shards, minimizing execution time under conflict constraints.
  • Apply a bucketing technique in the centralized scheduler to improve approximation bounds for random and structured access patterns.
  • Design a distributed scheduler based on hierarchical clustering of shards, where each cluster uses a local centralized scheduler with limited coordination.
  • Use a layered cluster structure with $H_2 = O(\log s)$ sublayers and cluster diameter $d_q = O(2^q \log s)$ to bound communication rounds.
  • Bound the number of communication rounds using greedy coloring of transaction dependency graphs with maximum degree $kl$, where $k$ is max objects per transaction and $l$ is max load per object.
  • Derive competitive ratio by combining cluster-level scheduling performance with hierarchical depth, resulting in $O(\mathcal{A}_{\mathcal{CS}} \log^2 s)$ for the distributed algorithm.

Experimental results

Research questions

  • RQ1What is the best possible approximation ratio achievable for fast batch transaction scheduling in a centralized blockchain sharding system?
  • RQ2How does the performance of the centralized scheduler vary across different shard graph topologies such as general graphs, cliques, hypercubes, and grids?
  • RQ3Can a distributed scheduler be designed that avoids global transaction knowledge while maintaining a provable approximation ratio to the optimal schedule?
  • RQ4What is the impact of hierarchical clustering on the communication complexity and competitive ratio in a distributed sharding environment?
  • RQ5How do random access patterns and line-structured shard graphs affect the approximation bounds of the proposed scheduling algorithms?

Key findings

  • For general graphs, the centralized scheduler achieves an $O(kd)$ approximation to the optimal schedule, where $k$ is the maximum number of shards a transaction accesses and $d$ is the maximum distance to its objects.
  • In clique graphs, the centralized scheduler provides an $O(k)$ approximation, and in hypercube, butterfly, and $g$-dimensional grids ($g = O(\log s)$), it achieves $O(k\log s)$ approximation.
  • With bucketing, the centralized scheduler improves to $O(k\log D \cdot (k + \log s))$ approximation for general graphs with random $k$-object access, and $O(k\sqrt{d}\log D)$ for line graphs, where $D$ is the shard graph diameter.
  • The distributed scheduler achieves a competitive ratio of $O(\mathcal{A}_{\mathcal{CS}} \log^2 s)$, where $\mathcal{A}_{\mathcal{CS}}$ is the centralized scheduler's approximation ratio.
  • For general graphs with random access, the distributed algorithm provides $O(kd \log^2 s)$ approximation, and for line graphs, it gives $O(k\sqrt{d}\log D \cdot \log^2 s)$ approximation.
  • The distributed scheduler incurs an $O(\log^2 s)$ penalty due to hierarchical clustering, which is tight up to constant factors given the lower bound of $\Omega(l)$ on transaction load.

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.