[Paper Review] BlockEmulator: An Emulator Enabling to Test Blockchain Sharding Protocols
BlockEmulator is a lightweight, open-source testbed designed to enable researchers to efficiently develop and evaluate blockchain sharding protocols. It provides modular, extensible programming interfaces for implementing consensus algorithms, cross-shard transaction handling, and workload balancing mechanisms, with experiments confirming its accuracy and utility in measuring key metrics like throughput, latency, and transaction pool size.
Numerous blockchain simulators have been proposed to allow researchers to simulate mainstream blockchains. However, we have not yet found a testbed that enables researchers to develop and evaluate their new consensus algorithms or new protocols for blockchain sharding systems. To fill this gap, we developed BlockEmulator, which is designed as an experimental platform, particularly for emulating blockchain sharding mechanisms. BlockEmulator adopts a lightweight blockchain architecture so developers can only focus on implementing their new protocols or mechanisms. Using layered modules and useful programming interfaces offered by BlockEmulator, researchers can implement a new protocol with minimum effort. Through experiments, we test various functionalities of BlockEmulator in two steps. Firstly, we prove the correctness of the emulation results yielded by BlockEmulator by comparing the theoretical analysis with the observed experiment results. Secondly, other experimental results demonstrate that BlockEmulator can facilitate measuring a series of metrics, including throughput, transaction confirmation latency, cross-shard transaction ratio, the queuing status of transaction pools, workload distribution across blockchain shards, etc. We have made BlockEmulator open-source in Github.
Motivation & Objective
- Address the lack of dedicated testbeds for evaluating novel blockchain sharding protocols and consensus algorithms.
- Provide a lightweight, extensible platform that isolates core blockchain functions to allow focused implementation of new sharding mechanisms.
- Support rapid prototyping and benchmarking of sharding protocols by abstracting low-level complexities and offering reusable components.
- Enable accurate performance measurement of key metrics such as throughput, transaction confirmation latency, cross-shard transaction ratio, and transaction pool queuing size.
- Facilitate the evaluation of workload balancing and transaction migration strategies in sharded blockchain environments.
Proposed method
- Design a layered architecture centered on core blockchain components: node manager, consensus module, and on-chain transaction storage.
- Implement modular programming interfaces that allow researchers to plug in new consensus protocols (e.g., PBFT, PoW) and sharding mechanisms without modifying underlying infrastructure.
- Support cross-shard transaction handling through two representative mechanisms: BrokerChain and Relay, with configurable account migration policies.
- Integrate dynamic workload balancing via CLPA (Cross-shard Load Prediction Algorithm), which reconfigures account distributions based on shard load predictions.
- Enable performance evaluation through configurable experimental parameters and log-based result collection for metrics like TPS, latency, and TXpool size.
- Validate emulation correctness by comparing observed results with theoretical performance models.
Experimental results
Research questions
- RQ1Can BlockEmulator accurately emulate the behavior of blockchain sharding protocols with results aligning with theoretical expectations?
- RQ2How does BlockEmulator support the evaluation of throughput, transaction confirmation latency, and cross-shard transaction ratio in sharded blockchain systems?
- RQ3What is the performance impact of workload balancing mechanisms like CLPA when integrated with different sharding architectures (e.g., BrokerChain vs. Relay)?
- RQ4How do different sharding mechanisms (BrokerChain+CLPA, BrokerChain+Static, Relay+CLPA, Relay+Static) compare in terms of transaction pool size and workload distribution?
- RQ5Under what conditions does CLPA improve performance, and when does it degrade due to reconfiguration overhead?
Key findings
- BlockEmulator’s emulation results closely match theoretical performance predictions, validating its correctness and reliability for experimental use.
- BrokerChain+CLPA and BrokerChain+Static demonstrated superior performance in maintaining low transaction pool sizes and high throughput, especially under low to moderate transaction injection rates.
- The CLPA algorithm showed minimal performance improvement when integrated with Relay due to insufficient shard imbalance at low injection rates and reconfiguration overhead.
- BrokerChain+CLPA achieved the most balanced workload distribution across shards, as indicated by its cumulative distribution function (CDF) rising rapidly, suggesting high density of workload percentages.
- Transaction pool sizes in BrokerChain+CLPA and BrokerChain+Static increased slowly but declined rapidly, indicating efficient transaction processing and lower queuing delays.
- When transaction injection rates were low and TXpools were full, CLPA significantly improved performance by offloading overloaded shards, confirming its effectiveness under specific workload conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.