Posted in: Blockchain, IBM Research-Ireland, Internet of Things

A Blockchain Architecture for the Internet of Things

Success in an Internet of Things application typically requires the connected, concerted operation and management of a large number of distributed and loosely coupled smart devices that identify and trust each other. While the IoT promises that this integration should ideally map to a decentralized hardware and software platform, current solutions are mostly based on centralized infrastructures. The disadvantages of a centralized infrastructure are, among others: high maintenance costs; low interoperability due to restricted data aggregation with other centralized infrastructures; and single points of failure (SPOF) against security threats.

Decentralization of an IoT infrastructure brings advantages including reduction of the amount of data transferred to the cloud for processing and analysis, improvements in security and privacy of the managed data, and more concerted and autonomous operations. For example, in smart home environments, IoT devices autonomously exchange and process data; assure data security, operations accountability, device identification; and collectively and autonomously execute smart homes operations. Ensuring the veracity of these operations means achieving distributed consensus across IoT devices.

In our recent IEEE International Blockchain Conference paper “Hybrid-IoT: Hybrid Blockchain Architecture for Internet of Things – PoW Sub-blockchains we explain the first phase of development for an end-to-end, decentralized framework to autonomously manage the orchestration of geographically distributed IoT networks. It achieves this through the combination of analytics, well-established blockchain community-based open source modules and a novel code base written by the team. In essence, we adapted the Bitcoin Proof of Work- PoW consensus protocol and coded analytics that optimally cluster the IoT devices into separate blockchains, or sub-blockchains.

Hybrid-IoT: Hybrid Blockchain Architecture for Internet of Things

Figure 1: Hybrid-IoT: Hybrid Blockchain Architecture for Internet of Things

One of the biggest challenges in the integration of blockchain into IoT is scalability. Due to the massive number of devices and resource constraints, deploying blockchain in IoT is particularly challenging. The optimal blockchain architecture must scale to many IoT devices (they become the peers on the blockchain network), and it must process a high throughput of transactions. Hybrid-IoT, the platform designed in this work, exploits both PoW blockchains and Byzantine Fault Tolerant (BFT) protocols to achieve scalability. First, PoW blockchains achieve distributed consensus among many IoT devices, the peers on the blockchain. Then, Hybrid-IoT leverages a BFT inter-connector framework to achieve interoperability among the sub blockchains.

To measure and qualify the performance of our approach, we first defined a set of blockchain-IoT integration metrics and tested our design with a simulation framework. We studied the sensitivity of blockchain parameters including blockchain block sizes and block generation intervals, device locations, and number of peers. The data gathered from the tens of thousands of simulations with hundreds of thousands of simulated devices was done on an IBM POWER8 supercomputer and helped us frame this problem from the perspective of multi objective optimization. That is, how to optimize the clustering and selection of the sub blockchains subject to scalability, security, peer’s roles and other integration metrics. Examination of these results led to the definition of a set of “sweet spot” guidelines and a set of analytics that cluster geographically distributed IoT devices into sub-blockchains, according to preferences made by the user (e.g., one could give more importance to security or to scalability, and consequently apply different weights to the relevant cost function).

We tested this in a geographically distributed framework, in which virtualized IoT devices became peers on Hybrid-IoT with different roles within the different PoW sub blockchain. Thousands of experiments were performed to validate the scalability of the system first, and to check its security on a second step. For instance, we tested it for DDOS and other types of attacks. The performance evaluation proves the validity of the PoW sub blockchain design under the “sweet spot” guidelines. Furthermore, we demonstrate that the “sweet spot” guidelines also prevent security vulnerabilities.

We plan to continue this work with additional testing through both simulated and physical IoT networks. Also, we are proving the correctness of the Hybrid-IoT design with security proofs and moving to implement the full platform.

Publication:

Gokhan Sagirlar, Barbara Carminati, Elena Ferrari, John D. Sheehan, Emanuele Ragnoli “Hybrid-IoT: Hybrid Blockchain Architecture for Internet of Things – PoW Sub-blockchains, 2018 IEEE Blockchain International Conference

Emanuele Ragnoli

IBM Research Staff Member