物联网学报 ›› 2023, Vol. 7 ›› Issue (1): 159-173.doi: 10.11959/j.issn.2096-3750.2023.00305
• 理论与技术 • 上一篇
蒋伟进1,2,3, 周文颖1, 李恩1, 罗田甜1, 杨莹1
修回日期:
2022-11-20
出版日期:
2023-03-30
发布日期:
2023-03-01
作者简介:
蒋伟进(1964– ),男,博士,湖南工商大学二级教授,主要研究方向为区块链技术、云计算、边缘计算、群体智能感知、社会计算、网络安全基金资助:
Weijin JIANG1,2,3, Wenying ZHOU1, En LI1, Tiantian LUO1, Ying YANG1
Revised:
2022-11-20
Online:
2023-03-30
Published:
2023-03-01
Supported by:
摘要:
随着信息技术与制造业的深度融合,制造交易网络化成为必然趋势。云制造服务可以实现不受地理空间限制的跨供应商交易,但在交易过程中,存在交易双方的信任难以保障和隐私泄露等问题。为了解决以上问题,提出一种基于双链模式的云制造服务平台架构,将用户数据与交易数据分链存储,并采用实用拜占庭容错(PBFT, practical Byzantine fault tolerance)共识算法解决区块间的数据同步问题。但传统PBFT共识算法在存储和共识效率上存在瓶颈,不适合应用于大规模的制造平台上,因此进一步对PBFT共识算法展开研究,提出结合EigenTrust模型和服务质量(QoS, quality of service)对PBFT共识算法进行改进,优化共识集群的选举过程和一致性协议流程,然后给出制造资源寻租和匹配步骤。仿真实验表明,该研究有效提高了PBFT共识节点的可靠性,提升了平台的运行效率和区块共识速度,节省了数据存储空间。
中图分类号:
蒋伟进, 周文颖, 李恩, 罗田甜, 杨莹. 基于区块链技术的云制造服务架构及共识算法研究[J]. 物联网学报, 2023, 7(1): 159-173.
Weijin JIANG, Wenying ZHOU, En LI, Tiantian LUO, Ying YANG. Research on cloud manufacturing service architecture and consensus algorithm based on blockchain technology[J]. Chinese Journal on Internet of Things, 2023, 7(1): 159-173.
表1
公有链、私有链、联盟链和本文所设计的双链模式的比较"
区块链模式 | 特点 | 不足 | 适用场景 |
公有链 | 完全去中心化,不受监管,公开透明,信息难以篡改 | 交易速度慢,安全性低 | 可信度要求高,但其交易无须很高的实时性的场景,如比特币和以太坊 |
私有链 | 私密性较高,交易速度快,具有权限管理,数据可修改,成本较低 | 具有局限性,公开透明性较低,规模大小受限 | 需要设置权限的场景,如金融、审计机构 |
联盟链 | 私密性较高,交易速度快,具有权限管理,可控性强,部分去中心化 | 规模大小受限,可能遭受合谋攻击,灵活性低 | 行业内不同企业间的交易和管理 |
双链 | 数据同步时间和处理速度较快,节省存储空间,根据数据隐私级别分类存放,安全性较高 | 数据存储结构较单链模式更复杂 | 需要对交易分类,数据部分公开,保护隐私数据,对读写速度和安全性要求较高的场景,如云制造服务 |
[1] | 李伯虎, 张霖, 王时龙 ,等. 云制造:面向服务的网络化制造新模式[J]. 计算机集成制造系统, 2010,16(1): 1-7,16. |
LI B H , ZHANG L , WANG S L ,et al. Cloud manufacturing:a new service-oriented networked manufacturing model[J]. Computer Integrated Manufacturing Systems, 2010,16(1): 1-7,16. | |
[2] | ZHANG L , LUO Y L , TAO F ,et al. Cloud manufacturing:a new manufacturing paradigm[J]. Enterprise Information Systems, 2014,8(2): 167-187. |
[3] | 智研观点. 2021 年中国云制造行业发展现状及云制造企业对比分析(能科股份VS海得控制)[EB]. 2021. |
Intelligent Research View. Development status of China's cloud manufacturing industry in 2021 and comparative analysis of cloud manufacturing enterprises (Nancal Technology Co.,Ltd VS Hi-tech Control System Co.,Ltd)[EB]. 2021. | |
[4] | NAKAMOTO S . Bitcoin:a peer-to-peer electronic cash system[J]. Decentralized Business Review, 2008:21260. |
[5] | 蔡晓晴, 邓尧, 张亮 ,等. 区块链原理及其核心技术[J]. 计算机学报, 2021,44(1): 84-131. |
CAI X Q , DENG Y , ZHANG L ,et al. Blockchain principle and core technology[J]. Chinese Journal of Computers, 2021,44(1): 84-131. | |
[6] | YAGA D , MELL P , ROBY N ,et al. Blockchain technology overview[R]. National Institute of Standards and Technology, 2018. |
[7] | 蔡婷, 林晖, 陈武辉 ,等. 区块链赋能的高效物联网数据激励共享方案[J]. 软件学报, 2021,32(4): 953-972. |
CAI T , LIN H , CHEN W H ,et al. Efficient blockchain-empowered data sharing incentive scheme for Internet of Things[J]. Journal of Software, 2021,32(4): 953-972. | |
[8] | DAI H N , ZHENG Z B , ZHANG Y . Blockchain for internet of things:a survey[J]. IEEE Internet of Things Journal, 2019,6(5): 8076-8094. |
[9] | TAN L , SHI N , YU K P ,et al. A blockchain-empowered access control framework for smart devices in green internet of things[J]. ACM Transactions on Internet Technology, 2021,21(3): 1-20. |
[10] | 杨小东, 席婉婷, 王嘉琪 ,等. 基于签密和区块链的车联网电子证据共享方案[J]. 通信学报, 2021,42(12): 236-246. |
YANG X D , XI W T , WANG J Q ,et al. Electronic evidence sharing scheme of internet of vehicles based on signcryption and blockchain[J]. Journal on Communications, 2021,42(12): 236-246. | |
[11] | SONG Y N , ZHANG F R , LIU C C . The risk of block chain financial market based on particle swarm optimization[J]. Journal of Computational and Applied Mathematics, 2020,370:112667. |
[12] | 沈蒙, 桑安琪, 祝烈煌 ,等. 基于动机分析的区块链数字货币异常交易行为识别方法[J]. 计算机学报, 2021,44(1): 193-208. |
SHEN M , SANG A Q , ZHU L H ,et al. Abnormal transaction behavior recognition based on motivation analysis in blockchain digital currency[J]. Chinese Journal of Computers, 2021,44(1): 193-208. | |
[13] | XIE M H , LI H Y , ZHAO Y J . Blockchain financial investment based on deep learning network algorithm[J]. Journal of Computational and Applied Mathematics, 2020,372:112723. |
[14] | 张健毅, 王志强, 徐治理 ,等. 基于区块链的可监管数字货币模型[J]. 计算机研究与发展, 2018,55(10): 2219-2232. |
ZHANG J Y , WANG Z Q , XU Z L ,et al. A regulatable digital currency model based on blockchain[J]. Journal of Computer Research and Development, 2018,55(10): 2219-2232. | |
[15] | ZHANG Q , LIAO B Y , YANG S L . Application of blockchain in the field of intelligent manufacturing:theoretical basis,realistic plights,and development suggestions[J]. Frontiers of Engineering Management, 2020,7(4): 578-591. |
[16] | VATANKHAH B R . A blockchain technology based trust system for cloud manufacturing[J]. Journal of Intelligent Manufacturing, 2022,33(5): 1451-1465. |
[17] | 刘敖迪, 杜学绘, 王娜 ,等. 基于区块链的大数据访问控制机制[J]. 软件学报, 2019,30(9): 2636-2654. |
LIU A D , DU X H , WANG N ,et al. Blockchain-based access control mechanism for big data[J]. Journal of Software, 2019,30(9): 2636-2654. | |
[18] | KARAFILOSKI E , MISHEV A . Blockchain solutions for big data challenges:a literature review[C]// Proceedings of IEEE EUROCON 2017-17th International Conference on Smart Technologies. Piscataway:IEEE Press, 2017: 763-768. |
[19] | JING N , LIU Q , SUGUMARAN V . A blockchain-based code copyright management system[J]. Information Processing & Management, 2021,58(3): 102518. |
[20] | KAMATH R . Food traceability on blockchain:walmart's pork and mango pilots with IBM[J]. The Journal of the British Blockchain Association, 2018,1(1): 1-12. |
[21] | LIU X L , BARENJI A V , LI Z ,et al. Blockchain-based smart tracking and tracing platform for drug supply chain[J]. Computers & Industrial Engineering, 2021,161:107669. |
[22] | 陈友荣, 陈浩, 韩蒙 ,等. 基于信用等级划分的医疗数据安全共识算法[J]. 电子与信息学报, 2022,44(1): 279-287. |
CHEN Y R , CHEN H , HAN M ,et al. Security consensus algorithm of medical data based on credit rating[J]. Journal of Electronics & Information Technology, 2022,44(1): 279-287. | |
[23] | LIN P , SONG Q Y , YU F R ,et al. Task offloading for wireless VR-enabled medical treatment with blockchain security using collective reinforcement learning[J]. IEEE Internet of Things Journal, 2021,8(21): 15749-15761. |
[24] | 张超, 李强, 陈子豪 ,等. Medical Chain:联盟式医疗区块链系统[J]. 自动化学报, 2019,45(8): 1495-1510. |
ZHANG C , LI Q , CHEN Z H ,et al. Medical chain:alliance medical blockchain system[J]. Acta Automatica Sinica, 2019,45(8): 1495-1510. | |
[25] | 魏欣, 王心妍, 于卓 ,等. 基于联盟链的物联网跨域认证[J]. 软件学报, 2021,32(8): 2613-2628. |
WEI X , WANG X Y , YU Z ,et al. Cross domain authentication for IoT based on consortium blockchain[J]. Journal of Software, 2021,32(8): 2613-2628. | |
[26] | CASTRO M , LISKOV B . Practical Byzantine fault tolerance and proactive recovery[J]. ACM Transactions on Computer Systems, 2002,20(4): 398-461. |
[27] | TAO F , ZHANG L , VENKATESH V C ,et al. Cloud manufacturing:a computing and service-oriented manufacturing model[J]. Proceedings of the Institution of Mechanical Engineers,Part B:Journal of Engineering Manufacture, 2011,225(10): 1969-1976. |
[28] | TAO F , LAILI Y J , XU L D ,et al. FC-PACO-RM:a parallel method for service composition optimal-selection in cloud manufacturing system[J]. IEEE Transactions on Industrial Informatics, 2013,9(4): 2023-2033. |
[29] | ZHANG G , ZHANG Y F , XU X ,et al. An augmented Lagrangian coordination method for optimal allocation of cloud manufacturing services[J]. Journal of Manufacturing Systems, 2018,48: 122-133. |
[30] | LIU Y K , WANG L H , WANG X V ,et al. Scheduling in cloud manufacturing:state-of-the-art and research challenges[J]. International Journal of Production Research, 2019,57(15/16): 4854-4879. |
[31] | MOURAD M H , NASSEHI A , SCHAEFER D ,et al. Assessment of interoperability in cloud manufacturing[J]. Robotics and Computer-Integrated Manufacturing, 2020,61:101832. |
[32] | DELARAM J , HOUSHAMAND M , ASHTIANI F ,et al. A utility-based matching mechanism for stable and optimal resource allocation in cloud manufacturing platforms using deferred acceptance algorithm[J]. Journal of Manufacturing Systems, 2021,60: 569-584. |
[33] | BAI J , FANG S L , XU X ,et al. LMPF:a novel method for bill of standard manufacturing services construction in cloud manufacturing[J]. Journal of Manufacturing Systems, 2022,62: 402-416. |
[34] | HARDJONO T , SMITH N . Cloud-based commissioning of constrained devices using permissioned blockchains[C]// IoTPTS '16:Proceedings of the 2nd ACM International Workshop on IoT Privacy,Trust,and Security. 2016: 29-36. |
[35] | LI Z , BARENJI A V , HUANG G Q . Toward a blockchain cloud manufacturing system as a peer to peer distributed network platform[J]. Robotics and Computer-Integrated Manufacturing, 2018,54: 133-144. |
[36] | YU C X , ZHANG L P , ZHAO W F ,et al. A blockchain-based service composition architecture in cloud manufacturing[J]. International Journal of Computer Integrated Manufacturing, 2020,33(7): 701-715. |
[37] | TAN W A , ZHU H , TAN J J ,et al. A novel service level agreement model using blockchain and smart contract for cloud manufacturing in industry 4.0[J]. Enterprise Information Systems, 2022,16(12): 1939426. |
[38] | RADMANESH S A , HAJI A , FATAHI VALILAI O . Blockchain-based cloud manufacturing platforms:a novel idea for service composition in XaaS paradigm[J]. PeerJ Computer Science, 2021,7:e743. |
[39] | 何泾沙, 张琨, 薛瑞昕 ,等. 基于贡献值和难度值的高可靠性区块链共识机制[J]. 计算机学报, 2021,44(1): 162-176. |
HE J S , ZHANG K , XUE R X ,et al. A highly reliable consensus mechanism for blockchain based on contribution and difficulty values[J]. Chinese Journal of Computers, 2021,44(1): 162-176. | |
[40] | KING S , NADAL S . Ppcoin:peer-to-peer crypto-currency with proof-of-stake[EB]. 2012. |
[41] | Fabric official website[EB]. 2022. |
[42] | 闵新平, 李庆忠, 孔兰菊 ,等. 许可链多中心动态共识机制[J]. 计算机学报, 2018,41(5): 1005-1020. |
MIN X P , LI Q Z , KONG L J ,et al. Permissioned blockchain dynamic consensus mechanism based multi-centers[J]. Chinese Journal of Computers, 2018,41(5): 1005-1020. | |
[43] | LI W Y , FENG C L , ZHANG L ,et al. A scalable multi-layer PBFT consensus for blockchain[J]. IEEE Transactions on Parallel and Distributed Systems, 2021,32(5): 1146-1160. |
[44] | 赖英旭, 薄尊旭, 刘静 . 基于改进PBFT算法防御区块链中sybil攻击的研究[J]. 通信学报, 2020,41(9): 104-117. |
LAI Y X , BO Z X , LIU J . Research on sybil attack in defense blockchain based on improved PBFT algorithm[J]. Journal on Communications, 2020,41(9): 104-117. | |
[45] | 张磊, 郑志勇, 袁勇 . 基于区块链的电子医疗病历可控共享模型[J]. 自动化学报, 2021,47(9): 2143-2153. |
ZHANG L , ZHENG Z Y , YUAN Y . A controllable sharing model for electronic health records based on blockchain[J]. Acta Automatica Sinica, 2021,47(9): 2143-2153. | |
[46] | SUKHWANI H , MARTíNEZ J M , CHANG X L , et al . Performance modeling of PBFT consensus process for permissioned blockchain network (hyperledger fabric)[C]// Proceedings of 2017 IEEE 36th Symposium on Reliable Distributed Systems. Piscataway:IEEE Press, 2017: 253-255. |
[47] | KAMVAR S D , SCHLOSSER M T , GARCIA-MOLINA H , . The Eigentrust algorithm for reputation management in P2P net works[C]// WWW '03:Proceedings of the 12th international conference on World Wide Web. 2003: 640-651. |
[48] | LIU Y T , NGU A H , ZENG L Z . QoS computation and policing in dynamic web service selection[C]// WWW Alt.'04:Proceedings of the 13th international World Wide Web conference on Alternate track papers & posters. 2004: 66-73. |
[1] | 廖岑卉珊, 陈俊彦, 梁观平, 谢小兰, 卢小烨. 基于深度强化学习的SDN服务质量智能优化算法[J]. 物联网学报, 2023, 7(1): 73-82. |
[2] | 蒋伟进, 罗田甜, 杨莹, 李恩, 周文颖. 物联网环境下基于区块链技术的私有数据访问控制模型[J]. 物联网学报, 2022, 6(4): 169-182. |
[3] | 沈传年. 区块链跨链技术研究综述[J]. 物联网学报, 2022, 6(4): 183-196. |
[4] | 李养群, 张登银. 物品万维网资源管理框架研究与应用[J]. 物联网学报, 2022, 6(2): 50-64. |
[5] | 蔡金莹, 向峰, 左颖, 钟雷, 周平. 面向工业互联网的制造服务协作等级协议轻量级框架研究[J]. 物联网学报, 2021, 5(3): 49-55. |
[6] | 谭朋柳, 万里旭冉. 一种具有主从区块的区块链架构[J]. 物联网学报, 2021, 5(2): 116-124. |
[7] | 郭才, 李续然, 陈炎华, 戴弘宁. 区块链技术在物联网中的应用概述[J]. 物联网学报, 2021, 5(1): 72-89. |
[8] | 郭彩丽,陈九九,宣一荻,张荷. 动态时空数据驱动的认知车联网频谱感知与共享技术研究[J]. 物联网学报, 2020, 4(3): 96-105. |
[9] | 程冠杰,黄诤杰,邓水光. 基于区块链与边缘计算的物联网数据管理[J]. 物联网学报, 2020, 4(2): 1-9. |
[10] | 高镇,崔琪楣,张雪菲,王晓飞. 区块链在物联网系统中的应用探讨[J]. 物联网学报, 2020, 4(2): 10-17. |
[11] | 韩嗣诚,朱晓荣,张秀贤. 优化可扩展的拜占庭容错共识算法[J]. 物联网学报, 2020, 4(2): 18-25. |
[12] | 王威,李祖广,吴启晖. 基于区块链的动态频谱共享接入技术[J]. 物联网学报, 2020, 4(2): 26-34. |
[13] | 郭朝,郭帅印,张胜利,宋令阳,王晖. 区块链跨链技术分析[J]. 物联网学报, 2020, 4(2): 35-48. |
[14] | 李萌,司成祥,祝烈煌. 基于区块链的安全车联网数字取证系统[J]. 物联网学报, 2020, 4(2): 49-57. |
[15] | 黄豪杰,吴晓晓,李刚强. 基于区块链智能合约的物联网恶意节点检测和定位[J]. 物联网学报, 2020, 4(2): 58-69. |
阅读次数 | ||||||
全文 |
|
|||||
摘要 |
|
|||||
|