论文中文题名: | 基于区块链的供应链溯源优化与应用研究 |
姓名: | |
学号: | 19308208015 |
保密级别: | 公开 |
论文语种: | chi |
学科代码: | 085212 |
学科名称: | 工学 - 工程 - 软件工程 |
学生类型: | 硕士 |
学位级别: | 工程硕士 |
学位年度: | 2023 |
培养单位: | 西安科技大学 |
院系: | |
专业: | |
研究方向: | 区块链 |
第一导师姓名: | |
第一导师单位: | |
论文提交日期: | 2023-01-09 |
论文答辩日期: | 2022-12-05 |
论文外文题名: | Research on Optimization and Application of Supply Chain Traceability Based on Blockchain |
论文中文关键词: | |
论文外文关键词: | Blockchain ; Traceability of Supply Chain ; Query Optimization ; Data Fragmentation ; Used Car Traceability |
论文中文摘要: |
当今社会商品质量问题频繁发生,供应链溯源作为有效监管手段之一变得十分重要。传统供应链溯源方法存在数据易篡改、数据孤岛等问题,目前较为流行的是通过区块链技术去中心化存储、节点共识等特点解决上述问题。但区块链由于单个节点性能有限、链式结构等因素,存在查询效率低、查询方式单一的问题。针对区块链查询中存在的问题,本文提出基于数据分片的区块链溯源查询优化方法,并通过Hyperledger Fabric平台完成验证与应用,具体工作如下: 针对区块链查询效率低的问题,本文提出基于数据分片的区块链溯源查询优化方法,上传的数据达成共识并广播发送后,各节点根据数据摘要将数据存储到本地对应分片中,链上只存储溯源信息摘要。进行查询时,通过链码将待查询事务根据事务摘要分发给多个节点并行查询,减少单节点查询的事务数量。节点内部根据事务范围,调用多个进程在本地对应分片并行查询,提高查询效率。针对区块链查询方式单一的问题抽象出4种查询请求:查询某时间点某产品位置信息、查询某时间段内某个体所经手的所有产品、查询某产品所有原材料信息、查询某原材料所有成品信息,并结合基于数据分片的区块链溯源查询优化方法给出具体算法流程。随后基于Hyperledger Fabric平台在不同的数据集进行对比试验,验证本文方法的高效性与可行性。 在基于数据分片的区块链溯源查询优化方法基础上设计基于区块链的供应链溯源方案。分析区块链应用于供应链溯源的可行性,对基于区块链的供应链溯源系统做出设计,将区块链技术与供应链溯源场景相结合,通过方案的数据存储、查询、验证等核心流程实现供应链高效、可信数据溯源,为供应链溯源提供安全的数据存储环境与高效的数据查询方法。 最后以二手车溯源为案例,通过分析基于区块链的二手车溯源流程,结合本文基于数据分片的区块链溯源查询优化方法与基于区块链的供应链溯源方案,在搭建的区块链环境中开发基于区块链的二手车溯源系统。实现二手车数据存储、查询、验证功能,将结果以网页的形式呈现。 |
论文外文摘要: |
Nowadays, commodity quality problems frequently occur in society, and supply chain traceability becomes very important as one of effective supervision means. Traditional supply chain traceability methods have some problems, such as easy data tampering and isolated data island. At present, it is more popular to solve these problems through the characteristics of decentralized storage and node consensus of blockchain technology. However, due to the limited performance of a single node, chain structure and other factors, blockchain has the problems of low query efficiency and single query mode. Aiming at the problems existing in blockchain query, this paper puts forward an optimization method of blockchain traceability query based on data fragmentation, and completes verification and application through Hyperledger Fabric platform. The specific work is as follows: Aiming at the problems of low query efficiency and single query mode of blockchain: firstly, combining with the idea of data fragmentation, an optimization method of blockchain traceability query based on data fragmentation is proposed. After the uploaded data reaches a consensus and is broadcast and sent, each node stores the data in the local corresponding fragment according to the information digest, and only the traceability information digest is stored in the chain. When query is needed, the transactions to be queried are distributed to different nodes by chain codes according to transaction summaries for parallel query, thus reducing the number of transactions queried by a single node. According to the transaction scope, the node calls multiple processes to query in parallel locally, which improves the query efficiency. Secondly, according to the diversified demand of supply chain traceability query, four kinds of query requests are abstracted: query the location information of a product at a certain point in time, query all products handled by an individual in a certain period of time, query all raw material information of a product, query all finished product information of a raw material, and give the specific algorithm flow by combining the blockchain traceability query optimization method based on data fragmentation. Then, based on Hyperledger Fabric platform, a comparative experiment was conducted in different data sets to verify the efficiency and feasibility of this method. Design a supply chain traceability scheme based on blockchain on the basis of blockchain traceability query optimization method based on data fragmentation. This paper analyzes the feasibility of applying blockchain to supply chain traceability, designs a supply chain traceability system based on blockchain, combines blockchain technology with supply chain traceability scenarios, and realizes efficient and verifiable data traceability in supply chain through the core processes of data storage, query and verification of the scheme, thus solving the problems of easy data tampering and poor traceability in traditional supply chain traceability schemes. Finally, taking the used car traceability as an example, by analyzing the used car traceability process based on blockchain, combining the blockchain traceability query optimization method based on data fragmentation and the supply chain traceability scheme based on blockchain in this paper, the used car traceability system based on blockchain is developed in the built blockchain environment. Realize the storage, query and verification functions of used car data, and present the results in the form of web pages, so as to realize the trusted traceability of used cars. |
参考文献: |
[1]邵奇峰, 金澈清, 张召等. 区块链技术: 架构及进展[J]. 计算机学报, 2018, 41(05): 969-988 [4]代闯闯, 栾海晶, 杨雪莹等. 区块链技术研究综述[J]. 计算机科学, 2021, 48(S2): 500-508. [7]刘芳, 薛莲. 农产品产业链安全溯源体系设计与实现[J]. 江苏农业科学, 2017, 45(08): 206-209 [8]张敬, 李风华 ,魏旭光. 供应链治理模式选择的理论溯源与研究展望[J]. 管理现代化, 2019, 39(06): 115-120. [10]李娟娟, 袁勇, 王飞跃. 基于区块链的数字货币发展现状与展望[J]. 自动化学报, 2021, 47(04): 715-729. [16]陈飞, 叶春明, 陈涛. 基于区块链的食品溯源系统设计[J]. 计算机工程与应用, 2021, 57(02): 60-69. [17]杜瑞忠, 谭艾伦, 田俊峰. 基于区块链的公钥可搜索加密方案[J]. 通信学报, 2020, 41(04): 114-122. [19]陈思吉, 翟社平, 汪一景. 一种基于环签名的区块链隐私保护算法[J]. 西安电子科技大学学报, 2020, 47(05): 86-93. [21]华亚洲, 丁琳琳, 陈泽, 王俊陆, 朱珠. 面向时空数据的区块链构建及查询方法[J]. 计算机应用, 2022: 1-10. [23]贾大宇, 信俊昌, 王之琼等. 存储容量可扩展区块链系统的高效查询模型[J]. 软件学报, 2019, 30(09): 2655-2670. [26]隋源, 汪卫, 邓雪. 一种面向区块链的链下数据库高吞吐量可验证查询方法[J]. 小型微型计算机系统, 2021, 42(06): 1304-1312. [27]余涛, 牛保宁, 樊星. FabricSQL: 区块链数据的关系查询[J]. 计算机工程与设计, 2020, 41(10): 2988-2995. [30]郑浩瀚, 申德荣, 聂铁铮等. 面向混合索引的区块链系统的可查询性优化[J]. 计算机科学, 2020,47 10: 301-308. [37]王皓, 宋祥福, 柯俊明等. 数字货币中的区块链及其隐私保护机制[J]. 信息网络安全, 2017 (7): 32-39. [39]宋焘谊, 赵运磊. 区块链共识算法的比较研究[J]. 计算机应用与软件, 2018, 35(08): 1-8. [42]Rivest, Ronald, and S. Dusse.The MD5 message-digest algorithm.[R]. 1992: 330-344. [44]何蒲, 于戈, 张岩峰等. 区块链技术与应用前瞻综述[J]. 计算机科学, 2017, 44(4): 1-7. [46]刘艺华, 陈康. 区块链共识机制新进展[J]. 计算机应用研究, 2020, 37(S2): 6-11. [50]Ongaro D. Consensus: Bridging theory and practice[M]. Stanford University, 2014. |
中图分类号: | TP391 |
开放日期: | 2023-01-09 |