[논문 리뷰] Fast Transaction Scheduling in Blockchain Sharding
이 논문은 블록체인 스파닝 환경에서 배치 트랜잭션 실행 시간을 최소화하기 위해 새로운 중심화된 및 분산형 트랜잭션 스케줄링 알고리즘을 제안한다. 계층적 클러스터링과 중심화된 최적화를 활용하여 증명 가능한 빠른 스케줄을 달성하며, 분산 환경에서는 $O(\mathcal{A}_{\mathcal{CS}}\log^2 s)$의 경쟁 비율을 확보한다. 여기서 $\mathcal{A}_{\mathcal{CS}}$는 중심화된 스케줄러의 근사 비율이다.
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)$를 고려할 때 상수 요소를 제외한 최적의 수준이다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.