Data immutability and event management via blockchain in the Internet of things

Data immutability and event management via blockchain in the Internet of things

The Internet of things (IoT) is the key enabler of the smart systems used in many areas, from agriculture to aviation, industrial automation to autonomous vehicles. Most IoT deployments employ cost-efficient lightweight devices with limited resources (e.g., bandwidth, energy, storage). Although an IoT network must be built in its simplest form, engineers include more sophisticated devices like gateways and servers to provide web-based services and benefit from cloud systems. So, although the nodes can be widely distributed geographically or topologically, the system becomes centralized, which causes bottlenecks and single-points-of-failure. Furthermore, providing data integrity, nonrepudiation, and event management becomes tricky. In most IoT scenarios, data usually flow from sensors to storage and processing units, whereas event-driven commands and triggers flow from these units to actuators, if any. Therefore, an attacker who gained access to parts of the centralized systems may leak, alter, or remove critical data and may exploit event handling features. This is where blockchain technology can be extremely useful. Using a decentralized ledger as the data storage unit provides integrity, immutability, and nonrepudiation for any IoT deployment. And a customized smart contract lets the IoT deployment benefit from decentralized and immutable (i.e. nonmanipulatable) event management features, too. Further, decentralization provides resilience against availability attacks to a large extent. With this motivation, we introduced a novel IoT architecture that incorporates an Ethereum-based private (Quorum) blockchain running a unique ad-hoc smart contract and a message queue telemetry transport (MQTT) based communication scheme between sensor and actuator nodes. The scheme, the ledger, and the smart contract have also been implemented with several nodes, a broker, and a server all on a PC using Docker containers, where the server was running a forest fire risk detection algorithm as the use case scenario. The proof-of-concept successfully validates the abovesaid functionality, scalability, and efficiency for the given IoT scenario (and some others). Moreover, performance tests showed that an instance of the system with 1000 nodes could stably process and record incoming (sensor) data up to 12.5 transactions per second (TPS) and distribute commands up to 4 TPS, whereas higher TPS is achievable depending on the network conditions and tolerance to losses. The scheme was shown to have polynomial message and time complexity.

___

  • [1] Rogojanu T, Ghita M, Stanciu V, Ciobanu R, Marin R et al. Netiot: A versatile iot platform integrating sensors and applications. In: 2018 Global Internet of Things Summit (GIoTS); Bilbao, Spain; 2018. pp. 1–6.
  • [2] Escolar AM, Alcaraz-Calero JM, Salva-Garcia P, Bernabe JB, Wang Q. Adaptive network slicing in multi-tenant 5g iot networks. IEEE Access 2021; 9: 14048–14069. doi: 10.1109/ACCESS.2021.3051940
  • [3] Ali MS, Vecchio M, Pincheira M, Dolui K, Antonelli F et al. Applications of blockchains in the internet of things: A comprehensive survey. IEEE Communications Surveys and Tutorials 2019; 21 (2): 1676–1717. doi: 10.1109/COMST.2018.2886932
  • [4] Kathayayani N, Murthy JK, Naik VN. Hyperledger fabric blockchain for data security in iot devices. International Journal of Recent Technology and Engineering 2020; 9 (1): 2571–2577. doi: 10.35940/ijrte.A3040.059120
  • [5] Hang L, Kim DH. Design and implementation of an integrated IoT blockchain platform for sensing data integrity. Sensors 2019; 19 (10): 2228. doi: 10.3390/s19102228
  • [6] Moudoud H, Cherkaoui S, Khoukhi L. An iot blockchain architecture using oracles and smart contracts: the usecase of a food supply chain. In: 2019 IEEE 30th Annual International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC); Istanbul, Turkey; 2019. pp. 1–6.
  • [7] Ali J, Ali T, Musa S, Zahrani A. Towards secure iot communication with smart contracts in a blockchain infrastructure. International Journal of Advanced Computer Science and Applications 2018; 9 (10): 578-585.
  • [8] Huang Y, Bian Y, Li R, Zhao JL, Shi P. Smart contract security: a software lifecycle perspective. IEEE Access 2019; 7: 150184–150202. doi: 10.1109/ACCESS.2019.2946988
  • [9] Baliga A, Subhod I, Kamat P, Chatterjee S. Performance evaluation of the quorum blockchain platform. arXiv:2018; 1809.03421.
  • [10] Ongaro D, Ousterhout J. In search of an understandable consensus algorithm. In: 2014 USENIX Annual Technical Conference, USENIX ATC’14; Philadelphia, PA, USA; 2014. pp. 305–319.
  • [11] Moniz H. The Istanbul bft consensus algorithm. arXiv preprint 2020; 2002.03613.
  • [12] Xu H, Zhang L, Liu Y, Cao B. Raft based wireless blockchain networks in the presence of malicious jamming. IEEE Wireless Communications Letters 2020; 9 (6): 817–821. doi: 10.1109/LWC.2020.2971469
  • [13] Mihelj J, Zhang Y, Kos A, Sedlar U. Crowdsourced traffic event detection and source reputation assessment using smart contracts. Sensors 2019; 19 (15): 3267. doi: 10.3390/s19153267
  • [14] Reyna A, Martín C, Chen J, Soler E, Díaz M. On blockchain and its integration with iot. challenges and opportunities. Future Generation Computer Systems 2018; 88: 173–190. doi: 10.1016/j.future.2018.05.046
  • [15] She W, Liu Q, Tian Z, Chen JS, Wang B et al. Blockchain trust model for malicious node detection in wireless sensor networks. IEEE Access 2019; 7: 38947–38956. doi: 10.1109/ACCESS.2019.2902811
  • [16] Dabbagh M, Choo KKR, Beheshti A, Tahir M, Safa NS. A survey of empirical performance evaluation of permissioned blockchain platforms: challenges and opportunities. Computers & Security 2021; 100: 102078. doi: 10.1016/j.cose.2020.102078
  • [17] Yao H, Mai T, Wang J, Ji Z, Jiang C et al. Resource trading in blockchain-based industrial internet of things. IEEE Transactions on Industrial Informatics 2019; 15 (6): 3602–3609. doi: 10.1109/TII.2019.2902563
  • [18] Shaheen J. Apache kafka: real time implementation with kafka architecture review. International Journal of Advanced Science and Technology 2017; 109: 35–42.
  • [19] Collina M, Corazza GE, Vanelli-Coralli A. Introducing the qest broker: Scaling the iot by bridging mqtt and rest. In: 2012 IEEE 23rd International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC); Sydney, NSW, Australia; 2012. pp. 36–41.
  • [20] Chien HY, Chen YJ, Qiu GH, Liao JF, Hung RW et al. A MQTT-API- compatible IoT security-enhanced platform. International Journal of Sensor Networks 2020; 32 (1): 54-68.
  • [21] Elazhary H. Internet of things (iot), mobile cloud, cloudlet, mobile iot, iot cloud, fog, mobile edge, and edge emerging computing paradigms: disambiguation and research directions. Journal of Network and Computer Applications 2019; 128: 105–140. doi: 10.1016/j.jnca.2018.10.021
  • [22] Son B, Her Y, Jung-Gyu Kim JG. A design and implementation of forest- fires surveillance system based on wireless sensor networks for South Korea mountains. International Journal of Computer Science and Network Security 2006; 6 (9B): 124–130.
  • [23] Datta S, Das AK, Kumar A, Khushboo, Sinha D. Authentication and privacy preservation in iot based forest fire detection by using blockchain – a review. In: 4th International Conference on Internet of Things and Connected Technologies; Jaipur, India; 2020. pp. 133–143.
  • [24] Paz S, Bernardino J. Web platform assessment tools: An experimental evaluation. In: Web Information Systems and Technologies; Porto, Portugal; 2017. pp. 45–63.
  • [25] Seneviratne C, Wijesekara PADSN, Leung H. Performance analysis of distributed estimation for data fusion using a statistical approach in smart grid noisy wireless sensor networks. Sensors 2020; 20 (2): 567. doi: 10.3390/s20020567
  • [26] Ezenwoke A, Daramola O, Adigun M. QoS-based ranking and selection of SaaS applications using heterogeneous similarity metrics. Journal of Cloud Computing 2018; 7: 15. doi: 10.1186/s13677-018-0117-4
  • [27] Schäffer M, Di Angelo M, Salzer G. Performance and scalability of private ethereum blockchains. In: Business Process Management: Blockchain and Central and Eastern Europe Forum; Vienna, Austria; 2019. pp. 103-118.
  • [28] Benefield R. Agile deployment: Lean service management and deployment strategies for the saas enterprise. In: 2009 42nd Hawaii International Conference on System Sciences; Waikoloa, HI, USA; 2009. pp. 1–5.
  • [29] Musungate BN, Candan B, Çabuk UC, Dalkılıç G. Sidechains: Highlights and challenges. In: Innovations in Intelligent Systems and Applications Conference (ASYU); Izmir, Turkey; 2019. pp. 1–5.