Skip to main content
QUICK REVIEW

[论文解读] Fast Transaction Scheduling in Blockchain Sharding

Ramesh Adhikari, Costas Busch|arXiv (Cornell University)|May 23, 2024
Blockchain Technology Applications and SecurityComputer Science被引用 3
一句话总结

本文提出了用于区块链分片的新型集中式与分布式事务调度算法,以最小化批量事务执行时间。通过分层聚类与集中式优化,该方法实现了可证明的快速调度,在分布式环境下具有 $O(\mathcal{A}_{\mathcal{CS}}\log^2 s)$ 的竞争比,其中 $\mathcal{A}_{\mathcal{CS}}$ 为集中式调度器的近似比。

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.

研究动机与目标

  • 通过在分片架构中实现快速、无冲突的批量事务调度,解决区块链系统中的可扩展性瓶颈。
  • 将事务调度问题形式化为在具有 $s$ 个分片和最大事务访问距离 $d$ 的分片通信图 $G_s$ 上的批量调度任务。
  • 为一般图、完全图、超立方体、蝶形网络和网格拓扑设计具有可证明近似保证的集中式调度器。
  • 基于分层聚类设计一种分布式调度器,以消除对全局知识的需求,同时保持强性能边界。
  • 对多样化网络拓扑结构与事务访问模式下的近似比提供理论分析。

提出的方法

  • 提出一种集中式调度器,利用所有事务的全局知识,在分片间调度子事务,以在冲突约束下最小化执行时间。
  • 在集中式调度器中应用分桶技术,以改善随机与结构化访问模式下的近似界。
  • 设计一种基于分片分层聚类的分布式调度器,其中每个聚类使用具有有限协调的本地集中式调度器。
  • 使用具有 $H_2 = O(\log s)$ 子层和聚类直径 $d_q = O(2^q \log s)$ 的分层聚类结构,以限制通信轮数。
  • 通过最大度数为 $kl$ 的事务依赖图的贪心着色,界定通信轮数,其中 $k$ 为单个事务的最大对象数,$l$ 为单个对象的最大负载。
  • 通过结合聚类级别调度性能与分层深度,推导出竞争比,得到分布式算法的 $O(\mathcal{A}_{\mathcal{CS}} \log^2 s)$ 竞争比。

实验结果

研究问题

  • RQ1在集中式区块链分片系统中,快速批量事务调度可达到的最佳近似比是多少?
  • RQ2集中式调度器在一般图、完全图、超立方体和网格等不同分片图拓扑结构下的性能表现如何?
  • RQ3能否设计一种分布式调度器,避免依赖全局事务知识,同时保持与最优调度的可证明近似比?
  • RQ4分层聚类对分布式分片环境中通信复杂度与竞争比有何影响?
  • RQ5随机访问模式与线性结构分片图如何影响所提调度算法的近似界?

主要发现

  • 对于一般图,集中式调度器对最优调度的近似比为 $O(kd)$,其中 $k$ 为事务访问的最大分片数,$d$ 为到其对象的最大距离。
  • 在完全图中,集中式调度器提供 $O(k)$ 近似比;在超立方体、蝶形网络和 $g$-维网格($g = O(\log s)$)中,其近似比为 $O(k\log s)$。
  • 通过分桶技术,集中式调度器在随机 $k$-对象访问的一般图中,近似比提升至 $O(k\log D \cdot (k + \log s))$;在线性图中,近似比为 $O(k\sqrt{d}\log D)$,其中 $D$ 为分片图的直径。
  • 分布式调度器的竞争比为 $O(\mathcal{A}_{\mathcal{CS}} \log^2 s)$,其中 $\mathcal{A}_{\mathcal{CS}}$ 为集中式调度器的近似比。
  • 对于具有随机访问的一般图,分布式算法提供 $O(kd \log^2 s)$ 近似比;对于线性图,其近似比为 $O(k\sqrt{d}\log D \cdot \log^2 s)$。
  • 由于分层聚类,分布式调度器引入了 $O(\log^2 s)$ 的惩罚项,该惩罚项在考虑事务负载下限 $\Omega(l)$ 的前提下为紧致(即至多常数因子差距)。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。