Tree-Chain: A Fast Lightweight Consensus Algorithm for IoT Applications

Ali Dorri, Raja Jurdak

Introduction

The Internet of Things (IoT) ecosystem is rapidly expanding, necessitating secure, decentralized, and auditable frameworks for data management. While blockchain technology offers these features, its integration into IoT faces significant hurdles. Traditional consensus mechanisms, such as Proof of Work (PoW), demand computational resources far exceeding the capabilities of typical IoT devices like smart sensors or gateways. Furthermore, conventional blockchains utilize a single linear ledger, creating a throughput bottleneck as the number of devices scales. Tree-Chain is proposed as a solution to these challenges, offering a lightweight consensus algorithm that eliminates heavy computational "mining" in favor of a parallelized, self-scaling architecture.

Proposed Methodology

Tree-Chain shifts the consensus paradigm from solving cryptographic puzzles to a system of deterministic randomization. This approach operates across two primary levels to ensure security and efficiency without high energy consumption.

1. Transaction and Validator Assignment

The system utilizes a Consensus Code, derived from the most significant characters of a transaction's hash. This code dictates which specific validator is responsible for processing that transaction. Simultaneously, validators are assigned to branches based on their public key (PK) hash. A Key Weight Metric (KWM) is calculated to determine a validator's rank and its specific position within the tree structure.

The hierarchical tree structure of Tree-Chain showing parallel branches and load-balancing forks.

2. Parallel Ledgers and Self-Scaling

Unlike traditional blockchains, Tree-Chain employs multiple parallel branches. Each validator maintains a unique ledger for its assigned consensus code range. To prevent long-term centralization, the system operates in "epochs," requiring validators to periodically update their public keys and re-run the allocation algorithm.

A critical feature of Tree-Chain is its ability to self-scale. If a validator becomes overwhelmed by transaction volume, it can trigger a "split." This involves recruiting a new validator from a pool and dividing the consensus code range (e.g., splitting an 'A-M' range into 'A-G' and 'H-M'), effectively creating a new fork to distribute the load.

3. Consensus Protocol Flow

The interaction between validators and the network is streamlined to minimize latency. The process begins with a validator expressing interest, followed by the deterministic calculation of consensus codes, and concludes with the broadcasting of a genesis block for a new branch or epoch.

Sequence diagram of the validator registration and consensus code generation process.

Experimental Results

The authors evaluated Tree-Chain using a Java implementation deployed on Raspberry Pi 2 hardware to simulate resource-constrained IoT gateways. The network simulation included up to 500 potential validators and a dataset of 100 million transactions (110 GB).

  • Efficiency: The overhead for forming consensus codes was remarkably low, ranging between 153ms and 190ms, demonstrating excellent scalability.
  • Throughput: With a small set of 10 validators, the system achieved block append times of approximately 370ms, enabling near real-time transaction settlement.
  • Data Retrieval: Tree-Chain's sharded architecture allows for targeted searches. Retrieving a specific record from a 100-million-transaction database took only ~2 seconds with 250 validators, compared to nearly 10 minutes (587 seconds) in a traditional single-chain system.
  • Load Management: Tests confirmed that adding validators to overloaded branches successfully halved processing overhead, validating the self-scaling mechanism.

Conclusion and Future Work

Tree-Chain demonstrates that blockchain security can be achieved in IoT environments without the prohibitive costs of traditional consensus. By utilizing deterministic randomization and a tree-based parallel structure, it provides high throughput and rapid data retrieval.

However, challenges remain. The current mechanism for preventing double-spending introduces communication overhead that may require further optimization. Additionally, while highly effective for data logging and asset tracking in IoT, the system's security profile for high-value financial transactions requires deeper analysis. Future research will also investigate the architecture's resilience against severe network partitioning in global-scale deployments.

Summary updated

BibTeX
@inproceedings{dorri2020tree,
  author = {Ali Dorri and Raja Jurdak},
  title = {{Tree-Chain: A Fast Lightweight Consensus Algorithm for IoT Applications}},
  booktitle = {LCN},
  year = {2020},
  doi = {10.1109/lcn48667.2020.9314831},
}
Figure