《计算机应用》唯一官方网站 ›› 2022, Vol. 42 ›› Issue (8): 2471-2480.DOI: 10.11772/j.issn.1001-9081.2021060958

• 数据科学与技术 • 上一篇    

基于哈希图的建筑物联网数据管理方法

王旭1, 申玉民1, 熊晓芸1(), 李鹏2, 王金龙1   

  1. 1.青岛理工大学 信息与控制工程学院,山东 青岛 266525
    2.青岛亿联信息科技股份有限公司,山东 青岛 266033
  • 收稿日期:2021-06-07 修回日期:2021-09-03 接受日期:2021-09-28 发布日期:2021-10-18 出版日期:2022-08-10
  • 通讯作者: 熊晓芸
  • 作者简介:王旭(1997—),男,山东滨州人,硕士研究生,CCF会员,主要研究方向:区块链;
    申玉民(1996—),男,山东滨州人,硕士研究生,CCF会员,主要研究方向:区块链;
    熊晓芸(1972—),女,江西南昌人,副教授,硕士,主要研究方向:大数据、嵌入式系统、区块链;
    李鹏(1985—),男,山东青岛人,工程师,主要研究方向:物联网;
    王金龙(1979—),男,河南巩义人,教授,博士,CCF会员,主要研究方向:人工智能、物联网、大数据。
  • 基金资助:
    国家自然科学基金资助项目(62001262);山东省重点研发计划项目(2019GGX101017)

Data management method for building internet of things based on Hashgraph

Xu WANG1, Yumin SHEN1, Xiaoyun XIONG1(), Peng LI2, Jinlong WANG1   

  1. 1.School of Information and Control Engineering,Qingdao University of Technology,Qingdao Shandong 266525,China
    2.Qingdao ELink Information Technology Incorporated Company Limited,Qingdao Shandong 266033,China
  • Received:2021-06-07 Revised:2021-09-03 Accepted:2021-09-28 Online:2021-10-18 Published:2022-08-10
  • Contact: Xiaoyun XIONG
  • About author:WANG Xu, born in 1997, M. S. candidate. His research interests include blockchain.
    SHEN Yumin, born in 1996, M. S. candidate. His research interests include blockchain.
    XIONG Xiaoyun, born in 1972, M. S., associate professor. Her research interests include big data, embedded system, blockchain.
    LI Peng, born in 1985, engineer. His research interests include Internet of Things.
    WANG Jinlong, born in 1979, Ph. D., professor. His research interests include artificial intelligence, Internet of Things, big data.
  • Supported by:
    National Natural Science Foundation of China(62001262);Key Research and Development Program of Shandong Province(2019GGX101017)

摘要:

针对区块链应用于建筑物联网场景时存在的吞吐量严重不足和响应时延高的问题,提出一种基于哈希图的建筑物联网数据管理方法。该方法使用有向无环图(DAG)存储数据,从而利用图式结构的高并发特性提高区块链的吞吐量性能;引入哈希图算法对存储在DAG内的数据达成共识,从而减少共识所需时间;设计智能合约实现访问权限控制,以防止未授权用户对数据的操作。使用区块链性能测试工具Caliper进行的性能测试的结果表明:在由32个节点构成的中等规模仿真环境下,与现有边缘计算方法和跨链方法相比,所提方法的吞吐量为每秒处理1 063.1笔交易,分别为对比方法吞吐量的6倍和3倍;该方法的数据存储时延和控制时延分别为4.57 s和4.92 s,响应速度优于对比方法;该方法在尖峰冲击测试中的交易成功率为87.4%;同时基于该方法的原型系统在稳定性测试中可以平稳运行120 h。可见,所提方法可以有效提高区块链的交易吞吐量和响应速度,满足建筑物联网场景的实际使用需求。

关键词: 区块链, 建筑物联网, 哈希图, 数据管理, 有向无环图

Abstract:

A Hashgraph-based data management method for building Internet of Things (IoT) was proposed to address the problems of severe lack of throughput and high response delay when applying blockchain to the building IoT scenarios. In this method, Directed Acyclic Graph (DAG) was used for data storage to increase the throughput performance of blockchain because of the high concurrency of schematic structure; Hashgraph algorithm was applied to reach consensus on the data stored in DAG to reduce the time consumption of consensus; the smart contracts were designed to realize access control to prevent unauthorized users from operating data. Caliper, a blockchain performance testing tool, was adopted for performance test. The results show that in a medium-scale simulation environment with 32 nodes, the throughput of the proposed method is 1 063.1 transactions per second, which is 6 times and 3 times than that of the edge computing and the cross-chain methods; the data storage delay and control delay of the proposed method are 4.57 seconds and 4.92 seconds respectively, indicating that the proposed method has the response speed better than the comparison methods; and the transaction success rate of this method reaches 87.4% in spike testing. At the same time, the prototype system based on this method can run stably for 120 hours in stability testing. The above illustrates that the proposed method can effectively improve the throughput and response speed of blockchain, and meets actual needs in the building IoT scenarios.

Key words: blockchain, building Internet of Things (IoT), Hashgraph, data management, Directed Acyclic Graph (DAG)

中图分类号: