CN118570978A - Cross-border logistics relay chain distribution method and system based on block chain - Google Patents
Cross-border logistics relay chain distribution method and system based on block chain Download PDFInfo
- Publication number
- CN118570978A CN118570978A CN202410605710.0A CN202410605710A CN118570978A CN 118570978 A CN118570978 A CN 118570978A CN 202410605710 A CN202410605710 A CN 202410605710A CN 118570978 A CN118570978 A CN 118570978A
- Authority
- CN
- China
- Prior art keywords
- data
- relay chain
- accuracy
- relay
- blockchain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/18—Status alarms
- G08B21/24—Reminder alarms, e.g. anti-loss alarms
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/60—Business processes related to postal services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Primary Health Care (AREA)
- Computer Hardware Design (AREA)
- Marketing (AREA)
- General Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Medical Informatics (AREA)
- Emergency Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种基于区块链的跨境物流中继链分发方法及系统,涉及区块链技术领域。该方法,包括以下步骤:获取跨境物流的物流信息数据;将物流信息数据存储到传输区块链;传输区块链向中继链传输物流信息数据;根据中继链接收数据准确程度参数数据分析中继链接收数据情况;分析中继链发送数据准确情况和数据内容准确情况;进行预警提醒。本发明分析中继链发送数据准确情况和数据内容准确情况,进而实现了根据中继链发送数据准确情况和数据内容准确情况进行预警提醒,达到了只传输准确的物流信息数据,使得跨境物流根据准确的物流信息数据进行准确地分发的效果,解决了现有技术中存在难以准确高效地发现跨境物流的信息传输出现问题的问题。
The present invention discloses a cross-border logistics relay chain distribution method and system based on blockchain, and relates to the field of blockchain technology. The method comprises the following steps: obtaining logistics information data of cross-border logistics; storing logistics information data in a transmission blockchain; transmitting logistics information data from the transmission blockchain to the relay chain; analyzing the relay chain receiving data according to the relay chain receiving data accuracy parameter data; analyzing the accuracy of the data sent by the relay chain and the accuracy of the data content; and performing early warning reminders. The present invention analyzes the accuracy of the data sent by the relay chain and the accuracy of the data content, and then realizes early warning reminders according to the accuracy of the data sent by the relay chain and the accuracy of the data content, achieving the effect of transmitting only accurate logistics information data, so that cross-border logistics is accurately distributed according to the accurate logistics information data, and solves the problem in the prior art that it is difficult to accurately and efficiently discover problems in the information transmission of cross-border logistics.
Description
技术领域Technical Field
本发明涉及区块链技术领域,尤其涉及一种基于区块链的跨境物流中继链分发方法及系统。The present invention relates to the field of blockchain technology, and in particular to a cross-border logistics relay chain distribution method and system based on blockchain.
背景技术Background Art
区块链技术是一种去中心化的分布式数据库技术,通过加密算法和网络共识机制实现数据的安全传输和存储。区块链的核心优势在于去中心化,它能够实现数据的透明性、可追溯性和不可篡改性,从而解决中心化系统中存在的安全性和信任问题。中继链是一种特殊类型的区块链,它在原有区块链的基础上增加了中继节点,这些中继节点负责跨网络、跨区域的数据传输和同步。中继链可以有效解决区块链网络中存在的扩容问题,提高网络的交易处理能力和性能。跨境物流涉及多个国家和地区,在现有的跨境物流体系中,物流信息的追踪和处理存在一定的复杂性,特别是在多个参与方(如物流公司、海关、商人等)之间共享信息时。传统的跨境物流管理方式存在着信息不透明、追踪困难、效率低下等问题。这些问题导致了物流成本的增加,也影响了物流服务的质量和客户体验。因此,需要一种能够提高物流透明度、减少交易成本并提高效率的方法和系统。Blockchain technology is a decentralized distributed database technology that achieves secure data transmission and storage through encryption algorithms and network consensus mechanisms. The core advantage of blockchain lies in decentralization, which can achieve data transparency, traceability and immutability, thereby solving the security and trust problems existing in centralized systems. Relay chain is a special type of blockchain that adds relay nodes on the basis of the original blockchain. These relay nodes are responsible for cross-network and cross-regional data transmission and synchronization. Relay chain can effectively solve the expansion problem existing in blockchain network and improve the transaction processing capacity and performance of the network. Cross-border logistics involves multiple countries and regions. In the existing cross-border logistics system, the tracking and processing of logistics information is somewhat complex, especially when sharing information between multiple participants (such as logistics companies, customs, merchants, etc.). Traditional cross-border logistics management methods have problems such as information opacity, difficulty in tracking, and low efficiency. These problems have led to an increase in logistics costs and also affected the quality of logistics services and customer experience. Therefore, a method and system that can improve logistics transparency, reduce transaction costs and improve efficiency is needed.
现有的跨境物流分发系统通过海运、空运、陆运等多种物理运输方式进行货物跨境分发,涉及货运代理、报关行等多个中介环节,实现跨境物流分发功能。The existing cross-border logistics distribution system distributes goods across borders through various physical transportation methods such as sea, air, and land transportation, involving multiple intermediary links such as freight forwarders and customs brokers to realize cross-border logistics distribution functions.
例如公告号为:CN112199732B的发明专利公告的一种基于区块链的航空物流电子运单管理方法,包括:采用电子运单数据上联盟链的方式,更快的同步电子运单数据,通过联盟链可以把整个物流环中的各个企业及政府机关连接起来,各参与方通过共识算法对电子运单数据进行确认和拒绝,利用区块链数据不可篡改性,使得航空运单信息能被各节点信任,管理电子运单在各个参与方的节点之间流转。For example, the invention patent announcement with announcement number: CN112199732B announces a blockchain-based air logistics electronic waybill management method, which includes: using the alliance chain method on the electronic waybill data to synchronize the electronic waybill data faster, and through the alliance chain, various enterprises and government agencies in the entire logistics loop can be connected. Each participant confirms and rejects the electronic waybill data through a consensus algorithm, and uses the immutability of blockchain data to make the air waybill information trusted by each node, and manage the flow of electronic waybills between the nodes of each participant.
例如公开号为:CN114756899A的专利申请公开的一种基于区块链的物流系统,包括:托运节点将托运物信息发送到承运节点;承运节点接收托运物信息,获取托运物的信息证明,检验信息证明和托运物信息,若检验通过,向托运节点发送第一通信密钥,托运物的货物支配权归属托运节点;金融节点检验托运节点的信息,若检验通过则向托运节点结汇货款,生成第一交易信息,第一交易信息同步至区块链;承运节点确认第一交易信息,销毁第一通信密钥,向金融节点发送第二通信密钥,托运物的货物支配权归属金融节点;收货节点支付电子赎款,生成第二交易信息,第二交易信息同步至区块链;承运节点确认第二交易信息,销毁第二通信密钥,向收货节点发送第三通信密钥,托运物的货物支配权归属收货节点。For example, a patent application with publication number: CN114756899A discloses a blockchain-based logistics system, including: a consignment node sends consignment information to a carrier node; the carrier node receives the consignment information, obtains information proof of the consignment, verifies the information proof and the consignment information, and if the verification is passed, sends a first communication key to the consignment node, and the right to control the consignment belongs to the consignment node; the financial node verifies the information of the consignment node, and if the verification is passed, settles the payment to the consignment node, generates first transaction information, and synchronizes the first transaction information to the blockchain; the carrier node confirms the first transaction information, destroys the first communication key, and sends a second communication key to the financial node, and the right to control the consignment belongs to the financial node; the receiving node pays an electronic ransom and generates a second transaction information, and the second transaction information is synchronized to the blockchain; the carrier node confirms the second transaction information, destroys the second communication key, sends a third communication key to the receiving node, and the right to control the consignment belongs to the receiving node.
但本申请在实现本申请实施例中发明技术方案的过程中,发现上述技术至少存在如下技术问题:However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
现有技术中,跨境物流通过多种方式和途径进行运输,物流信息追踪困难且在传输过程中可能被拦截或泄露,物流信息在进行跨境网络连接可能存在延迟和不稳定性,影响跨境物流的分发,存在难以准确高效地发现跨境物流的信息传输出现问题的问题。In the existing technology, cross-border logistics is transported through various means and channels. Logistics information is difficult to track and may be intercepted or leaked during transmission. Logistics information may be delayed and unstable during cross-border network connections, affecting the distribution of cross-border logistics. It is difficult to accurately and efficiently detect problems in cross-border logistics information transmission.
发明内容Summary of the invention
本申请实施例通过提供一种基于区块链的跨境物流中继链分发方法及系统,解决了现有技术中,难以准确高效地发现跨境物流的信息传输出现问题的问题,实现了准确高效地发现跨境物流的信息传输出现问题。The embodiments of the present application provide a blockchain-based cross-border logistics relay chain distribution method and system, which solves the problem in the prior art that it is difficult to accurately and efficiently detect problems with information transmission in cross-border logistics, and achieves accurate and efficient detection of problems with information transmission in cross-border logistics.
本申请实施例提供了一种基于区块链的跨境物流中继链分发方法,包括以下步骤:获取跨境物流的物流信息数据;将物流信息数据存储到传输区块链;传输区块链向中继链传输物流信息数据;在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据;根据中继链接收数据准确程度参数数据分析中继链接收数据情况;在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链;在中继链将物流信息数据传输给接收区块链过程中进行数据获取并分析中继链发送数据准确情况和数据内容准确情况;根据中继链发送数据准确情况和数据内容准确情况进行预警提醒。The embodiment of the present application provides a cross-border logistics relay chain distribution method based on blockchain, comprising the following steps: obtaining logistics information data of cross-border logistics; storing the logistics information data in a transmission blockchain; transmitting the logistics information data from the transmission blockchain to the relay chain; acquiring data in the process of transmitting the logistics information data from the transmission blockchain to the relay chain to obtain parameter data of the accuracy of the data received by the relay chain; analyzing the data received by the relay chain according to the parameter data of the accuracy of the data received by the relay chain; when the data received by the relay chain meets the conditions, transmitting the logistics information data to the receiving blockchain through the relay chain; acquiring data in the process of transmitting the logistics information data from the relay chain to the receiving blockchain and analyzing the accuracy of the data sent by the relay chain and the accuracy of the data content; and issuing early warning reminders according to the accuracy of the data sent by the relay chain and the accuracy of the data content.
进一步的,所述根据中继链接收数据准确程度参数数据分析中继链接收数据情况的具体分析过程为:获取中继链接收数据准确程度参数数据;对中继链接收数据准确程度参数数据进行归一化处理;根据归一化处理后的中继链接收数据准确程度参数数据分析得到中继链接收数据准确程度指标,所述中继链接收数据准确程度指标用于反映中继链接收数据的准确程度;根据中继链接收数据准确程度指标分析中继链接收数据情况。Furthermore, the specific analysis process of analyzing the relay link received data situation according to the relay link received data accuracy parameter data is: obtaining the relay link received data accuracy parameter data; normalizing the relay link received data accuracy parameter data; obtaining the relay link received data accuracy index according to the normalized relay link received data accuracy parameter data analysis, the relay link received data accuracy index is used to reflect the accuracy of the relay link received data; analyzing the relay link received data situation according to the relay link received data accuracy index.
进一步的,所述根据中继链接收数据准确程度指标分析中继链接收数据情况的具体分析过程为:获取中继链接收数据准确程度指标,获取中继链接收数据准确程度阈值,将中继链接收数据准确程度指标与中继链接收数据准确程度阈值进行比较,当中继链接收数据准确程度指标大于中继链接收数据准确程度阈值时,表示中继链准确地接收数据;当中继链接收数据准确程度指标不大于中继链接收数据准确程度阈值时,表示中继链在接收数据过程中发生错误。Furthermore, the specific analysis process of analyzing the relay link received data situation according to the relay link received data accuracy index is: obtaining the relay link received data accuracy index, obtaining the relay link received data accuracy threshold, comparing the relay link received data accuracy index with the relay link received data accuracy threshold, when the relay link received data accuracy index is greater than the relay link received data accuracy threshold, it indicates that the relay chain accurately receives the data; when the relay link received data accuracy index is not greater than the relay link received data accuracy threshold, it indicates that an error occurs in the relay chain during data reception.
进一步的,所述在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链的具体分析过程为:当中继链接收数据情况表示为中继链准确地接收数据时,表示在中继链接收数据情况满足条件,通过中继链将物流信息数据传输给接收区块链;当中继链接收数据情况表示为中继链在接收数据过程中发生错误时,表示在中继链接收数据情况不满足条件,中继链向传输区块链传达重新传输物流信息数据的指令,重复传输区块链向中继链传输物流信息数据到根据中继链接收数据准确程度参数数据分析中继链接收数据情况步骤,当中继链接收数据情况表示为中继链准确地接收数据时,在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链。Furthermore, the specific analysis process of transmitting the logistics information data to the receiving blockchain through the relay chain when the data reception situation of the relay chain meets the conditions is as follows: when the data reception situation of the relay chain indicates that the relay chain accurately receives the data, it indicates that the data reception situation of the relay chain meets the conditions, and the logistics information data is transmitted to the receiving blockchain through the relay chain; when the data reception situation of the relay chain indicates that an error occurs in the data reception process of the relay chain, it indicates that the data reception situation of the relay chain does not meet the conditions, and the relay chain conveys the instruction to retransmit the logistics information data to the transmitting blockchain, and repeats the step of transmitting the logistics information data to the relay chain to analyze the relay link data reception situation according to the relay link data reception accuracy parameter data, and when the data reception situation of the relay chain indicates that the relay chain accurately receives the data, when the data reception situation of the relay chain meets the conditions, the logistics information data is transmitted to the receiving blockchain through the relay chain.
进一步的,所述中继链发送数据准确情况的具体分析过程为:在中继链将物流信息数据传输给接收区块链过程中进行数据获取得到中继链发送数据准确程度参数数据;对中继链发送数据准确程度参数数据进行数据处理;对数据处理后的中继链发送数据准确程度参数数据进行分析得到中继链发送数据准确程度指标,所述中继链发送数据准确程度指标用于反映中继链发送数据的准确程度;根据中继链发送数据准确程度指标分析中继链发送数据准确情况。Furthermore, the specific analysis process of the accuracy of the data sent by the relay chain is: in the process of the relay chain transmitting the logistics information data to the receiving blockchain, data is acquired to obtain the parameter data of the accuracy of the data sent by the relay chain; data processing is performed on the parameter data of the accuracy of the data sent by the relay chain; the processed parameter data of the accuracy of the data sent by the relay chain is analyzed to obtain the accuracy index of the data sent by the relay chain, and the accuracy index of the data sent by the relay chain is used to reflect the accuracy of the data sent by the relay chain; the accuracy of the data sent by the relay chain is analyzed according to the accuracy index of the data sent by the relay chain.
进一步的,所述数据内容准确情况的具体分析过程为:在中继链将物流信息数据传输给接收区块链过程中进行数据获取得到数据内容准确程度参数数据;对数据内容准确程度参数数据进行数据清洗和预处理;对数据内容准确程度参数数据进行数据清洗和预处理后的进行分析得到数据内容准确程度指标,所述数据内容准确程度指标用于反映数据内容的准确程度;根据数据内容准确程度指标分析数据内容准确情况。Furthermore, the specific analysis process of the data content accuracy is as follows: in the process of the relay chain transmitting the logistics information data to the receiving blockchain, data is acquired to obtain data content accuracy parameter data; data content accuracy parameter data is cleaned and preprocessed; data content accuracy parameter data is analyzed after data cleaning and preprocessing to obtain a data content accuracy index, and the data content accuracy index is used to reflect the accuracy of the data content; and the data content accuracy is analyzed according to the data content accuracy index.
进一步的,所述根据中继链发送数据准确程度指标分析中继链发送数据准确情况的具体分析过程为:获取中继链发送数据准确程度指标,获取中继链发送数据准确程度指标阈值,当中继链发送数据准确程度指标大于中继链发送数据准确程度指标阈值时,表示中继链将物流信息数据传输给接收区块链的传输过程准确地进行,当处于其他情况时,表示中继链将物流信息数据传输给接收区块链的传输过程出现错误;所述根据数据内容准确程度指标分析数据内容准确情况的具体分析过程为:获取数据内容准确程度指标,获取数据内容准确程度阈值,当数据内容准确程度指标小于数据内容准确程度阈值时,表示中继链传输给接收区块链的物流信息数据内容准确,当处于其他情况时,表示中继链传输给接收区块链的物流信息数据内容不准确。Furthermore, the specific analysis process of analyzing the accuracy of the data sent by the relay chain according to the accuracy index of the data sent by the relay chain is: obtaining the accuracy index of the data sent by the relay chain, obtaining the threshold value of the data sent by the relay chain, and when the accuracy index of the data sent by the relay chain is greater than the threshold value of the data sent by the relay chain, it indicates that the transmission process of the logistics information data transmitted by the relay chain to the receiving blockchain is carried out accurately; when it is in other situations, it indicates that an error occurs in the transmission process of the logistics information data transmitted by the relay chain to the receiving blockchain; the specific analysis process of analyzing the accuracy of the data content according to the data content accuracy index is: obtaining the data content accuracy index, obtaining the data content accuracy threshold value, when the data content accuracy index is less than the data content accuracy threshold value, it indicates that the content of the logistics information data transmitted by the relay chain to the receiving blockchain is accurate; when it is in other situations, it indicates that the content of the logistics information data transmitted by the relay chain to the receiving blockchain is inaccurate.
进一步的,所述根据中继链发送数据准确情况和数据内容准确情况进行预警提醒的具体分析过程为:当处于中继链将物流信息数据传输给接收区块链的传输过程准确地进行以及中继链传输给接收区块链的物流信息数据内容准确情况时,表示跨境物流的物流信息数据得到准确的分发,不进行预警提醒;当中继链将物流信息数据传输给接收区块链的传输过程出现错误以及中继链传输给接收区块链的物流信息数据内容不准确出现一种及以上情况时,表示跨境物流的物流信息数据没有得到准确的分发,进行预警提醒。Furthermore, the specific analysis process of issuing early warning reminders based on the accuracy of the data sent by the relay chain and the accuracy of the data content is as follows: when the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain is accurate and the content of the logistics information data transmitted by the relay chain to the receiving blockchain is accurate, it indicates that the logistics information data of the cross-border logistics is accurately distributed, and no early warning reminder is issued; when an error occurs in the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain and one or more of the logistics information data content transmitted by the relay chain to the receiving blockchain is inaccurate, it indicates that the logistics information data of the cross-border logistics is not accurately distributed, and an early warning reminder is issued.
进一步的,所述中继链接收数据准确程度指标的具体获取方法为:获取中继链数量,将中继链进行编号;获取传输区块链数量,将传输区块链进行编号;在中继链接收和发送时进行多次数据获取,获取数据获取次数,将数据获取次数进行编号;获取中继链接收数据准确程度参数数据;根据中继链接收数据准确程度指标参数数据构建中继链接收数据准确程度指标计算公式;具体的中继链接收数据准确程度指标计算公式为:Furthermore, the specific method for obtaining the relay link received data accuracy index is: obtaining the number of relay chains and numbering the relay chains; obtaining the number of transmission blockchains and numbering the transmission blockchains; performing multiple data acquisitions when the relay link is received and sent, obtaining the number of data acquisitions, and numbering the number of data acquisitions; obtaining the relay link received data accuracy parameter data; constructing a relay link received data accuracy index calculation formula based on the relay link received data accuracy index parameter data; the specific relay link received data accuracy index calculation formula is:
式中,表示为第z0个中继链与第f0个传输区块链进行数据接收时的中继链接收数据准确程度指标,z0=1,2,...,z,z0为中继链编号,z表示为中继链总数,f0=1,2,...,f,f0为传输区块链编号,f表示为传输区块链总数,表示为第z0个中继链与第f0个传输区块链进行数据接收的第s0次数据获取时的中继链接收数据消耗时长,s0=1,2,...,s,s0为数据获取次数编号,s表示为数据获取总次数,表示为第z0个中继链与第f0个传输区块链进行数据接收的第s0次数据获取时的中继链接收数据所占内存,表示为第z0个中继链与第f0个传输区块链进行数据接收的第s0次数据获取时的中继链接收数据次数,表示为第z0个中继链与第f0个传输区块链进行数据接收时的中继链接收数据标准消耗时长,表示为第z0个中继链与第f0个传输区块链进行数据接收时的传输区块链传输数据所占内存,表示为第z0个中继链与第f0个传输区块链进行数据接收时的传输区块链发送数据次数,d1表示为中继链接收数据消耗时长在中继链接收数据准确程度指标中所占权重比例,d2表示为中继链接收数据所占内存在中继链接收数据准确程度指标中所占权重比例,d3表示为中继链接收数据次数在中继链接收数据准确程度指标中所占权重比例。In the formula, It is expressed as the accuracy index of the relay chain receiving data when the z0th relay chain receives data from the f0th transmission blockchain, z0 = 1, 2, ..., z, z0 is the relay chain number, z is the total number of relay chains, f0 = 1, 2, ..., f, f0 is the transmission blockchain number, f is the total number of transmission blockchains, It is represented by the time it takes for the relay chain to receive data when the z0th relay chain receives data from the f0th transmission blockchain for the s0th data acquisition. s0 = 1, 2, ..., s, s0 is the number of data acquisition times, s represents the total number of data acquisition times, It is represented by the memory occupied by the relay chain receiving data when the z0th relay chain receives data from the f0th transmission blockchain for the s0th time . It is expressed as the number of times the relay chain receives data when the z0th relay chain receives data from the f0th transmission blockchain for the s0th data acquisition. It is expressed as the standard time consumed by the relay chain to receive data when the z0th relay chain receives data from the f0th transmission blockchain. It is represented by the memory occupied by the transmission blockchain when the z0th relay chain receives data from the f0th transmission blockchain. It is expressed as the number of times the transmission blockchain sends data when the z0th relay chain receives data from the f0th transmission blockchain, d1 is expressed as the weight ratio of the time consumed by the relay link to receive data in the relay link received data accuracy index, d2 is expressed as the weight ratio of the memory occupied by the relay link received data in the relay link received data accuracy index, and d3 is expressed as the weight ratio of the number of times the relay link receives data in the relay link received data accuracy index.
本申请实施例提供了一种基于区块链的跨境物流中继链分发系统,包括:物流数据获取模块、数据存储模块、中继链接收模块、中继链传输模块、接收准确分析模块、判断模块、数据准确分析模块和预警模块;所述物流数据获取模块:用于获取跨境物流的物流信息数据所述数据存储模块:用于将物流信息数据存储到传输区块链;所述中继链接收模块:用于传输区块链向中继链传输物流信息数据;所述中继链传输模块:用于在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据;所述接收准确分析模块:用于根据中继链接收数据准确程度参数数据分析中继链接收数据情况;所述判断模块:用于在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链;所述数据准确分析模块:用于在中继链将物流信息数据传输给接收区块链过程中进行数据获取并分析中继链发送数据准确情况和数据内容准确情况;所述预警模块:用于根据中继链发送数据准确情况和数据内容准确情况进行预警提醒。The embodiment of the present application provides a cross-border logistics relay chain distribution system based on blockchain, including: a logistics data acquisition module, a data storage module, a relay chain receiving module, a relay chain transmission module, a receiving accuracy analysis module, a judgment module, a data accuracy analysis module and an early warning module; the logistics data acquisition module is used to acquire logistics information data of cross-border logistics; the data storage module is used to store logistics information data in a transmission blockchain; the relay chain receiving module is used to transmit logistics information data from the transmission blockchain to the relay chain; the relay chain transmission module is used to acquire data in the process of transmitting logistics information data from the transmission blockchain to the relay chain, and obtain parameter data of the accuracy of the received data of the relay chain; the receiving accuracy analysis module is used to analyze the data received by the relay chain according to the parameter data of the accuracy of the received data of the relay chain; the judgment module is used to transmit the logistics information data to the receiving blockchain through the relay chain when the data received by the relay chain meets the conditions; the data accuracy analysis module is used to acquire data and analyze the accuracy of the data sent by the relay chain and the accuracy of the data content in the process of the relay chain transmitting the logistics information data to the receiving blockchain; the early warning module is used to issue an early warning reminder according to the accuracy of the data sent by the relay chain and the accuracy of the data content.
本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
1、通过在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据,根据中继链接收数据准确程度参数数据分析中继链接收数据情况,在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链,从而在中继链将物流信息数据传输给接收区块链过程中进行数据获取并分析中继链发送数据准确情况和数据内容准确情况,进而实现了根据中继链发送数据准确情况和数据内容准确情况进行预警提醒,有效解决了现有技术中,难以准确高效地发现跨境物流的信息传输出现问题的问题。1. By acquiring data during the process of transmitting logistics information data from the transmission blockchain to the relay chain, the accuracy parameter data of the data received by the relay chain is obtained, and the relay chain receiving data situation is analyzed according to the accuracy parameter data of the data received by the relay chain. When the relay chain receiving data situation meets the conditions, the logistics information data is transmitted to the receiving blockchain through the relay chain, so that in the process of the relay chain transmitting the logistics information data to the receiving blockchain, data is acquired and the accuracy of the data sent by the relay chain and the accuracy of the data content are analyzed, thereby realizing early warning reminders based on the accuracy of the data sent by the relay chain and the accuracy of the data content, which effectively solves the problem in the existing technology that it is difficult to accurately and efficiently discover problems in information transmission of cross-border logistics.
2、通过根据中继链接收数据准确程度参数数据分析中继链接收数据情况,从而在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链,进而实现了避免在中继链在接收数据过程中发生错误时进行后续数据传输操作,避免造成更多的数据传输错误。2. By analyzing the data received by the relay chain according to the accuracy parameter data of the relay chain data received, when the data received by the relay chain meets the conditions, the logistics information data is transmitted to the receiving blockchain through the relay chain, thereby avoiding subsequent data transmission operations when an error occurs in the relay chain during the data receiving process, thereby avoiding causing more data transmission errors.
3、通过分析中继链发送数据准确情况和数据内容准确情况,从而在中继链将物流信息数据传输给接收区块链的传输过程出现错误以及中继链传输给接收区块链的物流信息数据内容不准确出现一种及以上情况时进行预警提醒,进而实现了使得工作人员及时发现跨境物流的信息分发出现问题,并进行检修维护,避免造成更多的失误。3. By analyzing the accuracy of the data sent by the relay chain and the accuracy of the data content, early warning reminders will be issued when errors occur in the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain, and when one or more of the logistics information data content transmitted by the relay chain to the receiving blockchain is inaccurate. This will enable staff to promptly discover problems in the distribution of cross-border logistics information and conduct inspections and maintenance to avoid more mistakes.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种基于区块链的跨境物流中继链分发方法流程图;FIG1 is a flow chart of a cross-border logistics relay chain distribution method based on blockchain provided in an embodiment of the present application;
图2为本申请实施例提供的数据内容准确程度指标曲线图;FIG2 is a graph showing a data content accuracy index provided in an embodiment of the present application;
图3为本申请实施例提供的一种基于区块链的跨境物流中继链分发系统的结构示意图。FIG3 is a schematic diagram of the structure of a cross-border logistics relay chain distribution system based on blockchain provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
本申请实施例通过提供一种基于区块链的跨境物流中继链分发方法及系统,解决了现有技术中,难以准确高效地发现跨境物流的信息传输出现问题的问题,通过在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据,根据中继链接收数据准确程度参数数据分析中继链接收数据情况,在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链,从而在中继链将物流信息数据传输给接收区块链过程中进行数据获取并分析中继链发送数据准确情况和数据内容准确情况,进而实现了根据中继链发送数据准确情况和数据内容准确情况进行预警提醒,达到了只传输准确的物流信息数据,使得跨境物流根据准确的物流信息数据进行准确地分发的效果。The embodiment of the present application solves the problem in the prior art that it is difficult to accurately and efficiently discover problems in information transmission of cross-border logistics by providing a cross-border logistics relay chain distribution method and system based on blockchain. By acquiring data in the process of transmitting logistics information data from the transmission blockchain to the relay chain, the accuracy parameter data of the relay chain received data is obtained, and the relay chain received data situation is analyzed according to the accuracy parameter data of the relay chain received data. When the relay chain received data situation meets the conditions, the logistics information data is transmitted to the receiving blockchain through the relay chain, so that in the process of the relay chain transmitting the logistics information data to the receiving blockchain, data is acquired and the accuracy of the data sent by the relay chain and the accuracy of the data content are analyzed, thereby realizing early warning reminders based on the accuracy of the data sent by the relay chain and the accuracy of the data content, so as to achieve the effect of transmitting only accurate logistics information data, so that cross-border logistics can be accurately distributed based on the accurate logistics information data.
本申请实施例中的技术方案为解决上述,难以准确高效地发现跨境物流的信息传输出现问题的问题,总体思路如下:The technical solution in the embodiment of the present application is to solve the above-mentioned problem that it is difficult to accurately and efficiently find problems in information transmission of cross-border logistics. The overall idea is as follows:
通过获取跨境物流的物流信息数据;将物流信息数据存储到传输区块链;传输区块链向中继链传输物流信息数据;在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据;对中继链接收数据准确程度参数数据进行归一化处理;根据归一化处理后的中继链接收数据准确程度参数数据分析得到中继链接收数据准确程度指标,根据中继链接收数据准确程度指标分析中继链接收数据情况;当中继链接收数据情况表示为中继链准确地接收数据时,通过中继链将物流信息数据传输给接收区块链;在中继链将物流信息数据传输给接收区块链过程中进行数据获取得到中继链发送数据准确程度参数数据;对中继链发送数据准确程度参数数据进行数据处理;对数据处理后的中继链发送数据准确程度参数数据进行分析得到中继链发送数据准确程度指标;根据中继链发送数据准确程度指标分析中继链发送数据准确情况;在中继链将物流信息数据传输给接收区块链过程中进行数据获取得到数据内容准确程度参数数据;对数据内容准确程度参数数据进行数据清洗和预处理;对数据内容准确程度参数数据进行数据清洗和预处理后的进行分析得到数据内容准确程度指标;根据数据内容准确程度指标分析数据内容准确情况;根据中继链发送数据准确情况和数据内容准确情况进行预警提醒,达到了准确高效地发现跨境物流的信息传输出现问题的效果。By acquiring logistics information data of cross-border logistics; storing logistics information data in the transmission blockchain; transmitting logistics information data from the transmission blockchain to the relay chain; acquiring data in the process of transmitting logistics information data from the transmission blockchain to the relay chain to obtain the parameter data of the accuracy of the received data of the relay chain; normalizing the parameter data of the accuracy of the received data of the relay chain; analyzing the parameter data of the accuracy of the received data of the relay chain according to the normalized parameter data of the accuracy of the received data of the relay chain to obtain the accuracy index of the received data of the relay chain, and analyzing the situation of the received data of the relay chain according to the accuracy index of the received data of the relay chain; when the situation of the received data of the relay chain indicates that the relay chain accurately receives the data, the logistics information data is transmitted to the receiving blockchain through the relay chain; acquiring data in the process of the relay chain transmitting the logistics information data to the receiving blockchain to obtain the parameter data of the accuracy of the data sent by the relay chain; Data processing is performed on the parameter data of data accuracy sent by the relay chain; the parameter data of data accuracy sent by the relay chain after data processing is analyzed to obtain the relay chain data accuracy index; the accuracy of the data sent by the relay chain is analyzed according to the relay chain data accuracy index; data acquisition is performed in the process of the relay chain transmitting logistics information data to the receiving blockchain to obtain the parameter data of data content accuracy; data cleaning and preprocessing are performed on the parameter data of data content accuracy; the parameter data of data content accuracy is analyzed after data cleaning and preprocessing to obtain the data content accuracy index; the data content accuracy is analyzed according to the data content accuracy index; early warning reminders are issued according to the accuracy of the data sent by the relay chain and the accuracy of the data content, so as to achieve the effect of accurately and efficiently discovering problems in information transmission of cross-border logistics.
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
如图1所示,为本申请实施例提供的一种基于区块链的跨境物流中继链分发方法流程图,该方法包括以下步骤:获取跨境物流的物流信息数据;将物流信息数据存储到传输区块链;传输区块链向中继链传输物流信息数据;在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据;根据中继链接收数据准确程度参数数据分析中继链接收数据情况;在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链;在中继链将物流信息数据传输给接收区块链过程中进行数据获取并分析中继链发送数据准确情况和数据内容准确情况;根据中继链发送数据准确情况和数据内容准确情况进行预警提醒。As shown in Figure 1, a flow chart of a cross-border logistics relay chain distribution method based on blockchain is provided in an embodiment of the present application. The method includes the following steps: obtaining logistics information data of cross-border logistics; storing the logistics information data in a transmission blockchain; transmitting the logistics information data from the transmission blockchain to the relay chain; acquiring data in the process of transmitting the logistics information data from the transmission blockchain to the relay chain to obtain the parameter data of the accuracy of the data received by the relay chain; analyzing the data received by the relay chain according to the parameter data of the accuracy of the data received by the relay chain; when the data received by the relay chain meets the conditions, transmitting the logistics information data to the receiving blockchain through the relay chain; acquiring data and analyzing the accuracy of the data sent by the relay chain and the accuracy of the data content in the process of transmitting the logistics information data from the relay chain to the receiving blockchain; and issuing early warning reminders according to the accuracy of the data sent by the relay chain and the accuracy of the data content.
在本实施例中,许多现有的跨境分发方法依赖于中心化的服务提供商,中心化实体可能会成为攻击的目标,或者可能滥用其对数据的控制权。使用区块链技术来创建去中心化的跨境分发系统,区块链提供了一种无需信任第三方即可进行交易的方法,通过其分布式账本和智能合约功能,可以提高透明度、降低成本,并确保交易的不可篡改性。此外,结合中继链技术,可以解决跨境数据传输中的延迟和稳定性问题,从而为跨境物流和内容分发提供更高效的解决方案。In this embodiment, many existing cross-border distribution methods rely on centralized service providers, and centralized entities may become targets of attack or may abuse their control over data. Using blockchain technology to create a decentralized cross-border distribution system, blockchain provides a way to conduct transactions without trusting third parties. Through its distributed ledger and smart contract functions, it can improve transparency, reduce costs, and ensure the immutability of transactions. In addition, combined with relay chain technology, it can solve the delay and stability problems in cross-border data transmission, thereby providing a more efficient solution for cross-border logistics and content distribution.
进一步的,根据中继链接收数据准确程度参数数据分析中继链接收数据情况的具体分析过程为:获取中继链接收数据准确程度参数数据;对中继链接收数据准确程度参数数据进行归一化处理;根据归一化处理后的中继链接收数据准确程度参数数据分析得到中继链接收数据准确程度指标,中继链接收数据准确程度指标用于反映中继链接收数据的准确程度;根据中继链接收数据准确程度指标分析中继链接收数据情况。Furthermore, the specific analysis process of analyzing the relay link received data situation according to the relay link received data accuracy parameter data is: obtaining the relay link received data accuracy parameter data; normalizing the relay link received data accuracy parameter data; obtaining the relay link received data accuracy index according to the normalized relay link received data accuracy parameter data analysis, the relay link received data accuracy index is used to reflect the accuracy of the relay link received data; analyzing the relay link received data situation according to the relay link received data accuracy index.
在本实施例中,对中继链接收数据准确程度参数数据进行归一化处理将中继链接收数据准确程度参数数据进行缩放,归一化处理包括线性归一化和对数归一化,使用确定的归一化方法对每个数据进行转换,以避免后续操作引入不必要的偏差。在归一化之前从数据集中删除缺失值,避免导致错误的结果。通过对中继链接收数据准确程度参数数据进行归一化处理,使得中继链接收数据准确程度参数数据的数据处于相同量级和范围,有利于计算中继链接收数据准确程度指标的过程更加准确地进行,得到准确性更高的中继链接收数据准确程度指标。In this embodiment, the relay link received data accuracy parameter data is normalized to scale the relay link received data accuracy parameter data, and the normalization process includes linear normalization and logarithmic normalization, and each data is converted using a determined normalization method to avoid unnecessary deviations introduced by subsequent operations. Missing values are deleted from the data set before normalization to avoid erroneous results. By normalizing the relay link received data accuracy parameter data, the data of the relay link received data accuracy parameter data are in the same magnitude and range, which is conducive to the process of calculating the relay link received data accuracy index more accurately, and a relay link received data accuracy index with higher accuracy is obtained.
进一步的,中继链接收数据准确程度指标可通过多种方法得到,包括但不限于:使用统计学方法,如计算均方误差(Mean Squared Error,MSE)来评估数据准确性,使用泊松分布或指数分布来估计错误率和延迟,以及使用各种一致性协议来测试强一致性,结合上述指标综合评估中继链接收数据的准确程度,得到中继链接收数据准确程度指标。中继链接收数据准确程度指标还可通过计算得到,中继链接收数据准确程度指标的具体获取方法为:获取中继链数量,将中继链进行编号;获取传输区块链数量,将传输区块链进行编号;在中继链接收和发送时进行多次数据获取,获取数据获取次数,将数据获取次数进行编号;获取中继链接收数据准确程度参数数据;根据中继链接收数据准确程度指标参数数据构建中继链接收数据准确程度指标计算公式;具体的中继链接收数据准确程度指标计算公式为:Furthermore, the accuracy index of the relay link received data can be obtained by a variety of methods, including but not limited to: using statistical methods, such as calculating the mean squared error (MSE) to evaluate data accuracy, using Poisson distribution or exponential distribution to estimate error rate and delay, and using various consistency protocols to test strong consistency, combining the above indicators to comprehensively evaluate the accuracy of the relay link received data, and obtain the accuracy index of the relay link received data. The accuracy index of the relay link received data can also be obtained by calculation. The specific method for obtaining the accuracy index of the relay link received data is: obtain the number of relay chains and number the relay chains; obtain the number of transmission blockchains and number the transmission blockchains; perform multiple data acquisitions when the relay link receives and sends, obtain the number of data acquisitions, and number the number of data acquisitions; obtain the accuracy parameter data of the relay link received data; construct the calculation formula of the relay link received data accuracy index based on the parameter data of the relay link received data accuracy index; the specific calculation formula of the relay link received data accuracy index is:
式中,表示为第z0个中继链与第f0个传输区块链进行数据接收时的中继链接收数据准确程度指标,z0=1,2,...,z,z0为中继链编号,z表示为中继链总数,f0=1,2,...,f,f0为传输区块链编号,f表示为传输区块链总数,表示为第z0个中继链与第f0个传输区块链进行数据接收的第s0次数据获取时的中继链接收数据消耗时长,s0=1,2,...,s,s0为数据获取次数编号,s表示为数据获取总次数,表示为第z0个中继链与第f0个传输区块链进行数据接收的第s0次数据获取时的中继链接收数据所占内存,表示为第z0个中继链与第f0个传输区块链进行数据接收的第s0次数据获取时的中继链接收数据次数,表示为第z0个中继链与第f0个传输区块链进行数据接收时的中继链接收数据标准消耗时长,表示为第z0个中继链与第f0个传输区块链进行数据接收时的传输区块链传输数据所占内存,表示为第z0个中继链与第f0个传输区块链进行数据接收时的传输区块链发送数据次数,d1表示为中继链接收数据消耗时长在中继链接收数据准确程度指标中所占权重比例,d2表示为中继链接收数据所占内存在中继链接收数据准确程度指标中所占权重比例,d3表示为中继链接收数据次数在中继链接收数据准确程度指标中所占权重比例。In the formula, It is expressed as the accuracy index of the relay chain receiving data when the z0th relay chain receives data from the f0th transmission blockchain, z0 = 1, 2, ..., z, z0 is the relay chain number, z is the total number of relay chains, f0 = 1, 2, ..., f, f0 is the transmission blockchain number, f is the total number of transmission blockchains, It is represented by the time it takes for the relay chain to receive data when the z0th relay chain receives data from the f0th transmission blockchain for the s0th data acquisition. s0 = 1, 2, ..., s, s0 is the number of data acquisition times, s represents the total number of data acquisition times, It is represented by the memory occupied by the relay chain receiving data when the z0th relay chain receives data from the f0th transmission blockchain for the s0th time . It is expressed as the number of times the relay chain receives data when the z0th relay chain receives data from the f0th transmission blockchain for the s0th data acquisition. It is expressed as the standard time consumed by the relay chain to receive data when the z0th relay chain receives data from the f0th transmission blockchain. It is represented by the memory occupied by the transmission blockchain when the z0th relay chain receives data from the f0th transmission blockchain. It is expressed as the number of times the transmission blockchain sends data when the z0th relay chain receives data from the f0th transmission blockchain, d1 is expressed as the weight ratio of the time consumed by the relay link to receive data in the relay link received data accuracy index, d2 is expressed as the weight ratio of the memory occupied by the relay link received data in the relay link received data accuracy index, and d3 is expressed as the weight ratio of the number of times the relay link receives data in the relay link received data accuracy index.
在本实施例中,在主成分分析(PCA)中,通过保留特征的方差来决定权重的比例,得到d1、d2和d3的具体值,d1、d2和d3的取值范围均为(0,1),且满足d1、d2和d3之和等于1。In this embodiment, in principal component analysis (PCA), the weight ratio is determined by retaining the variance of the feature to obtain specific values of d1 , d2 and d3 , the value ranges of d1 , d2 and d3 are all (0, 1), and the sum of d1 , d2 and d3 is equal to 1.
正常情况下,数据传输的时长和数据所占内存相关联,数据越大,传输时间越长,因此,中继链接收数据所占内存越大时,中继链接收数据消耗时长越长,中继链接收数据所占内存越小时,中继链接收数据消耗时长越短。本实施例的算法,使用了非线性变换,可以帮助平滑异常值的影响,减少极端情况对总体评估的扭曲。非线性变换有助于提高评估的鲁棒性,使得计算得到的中继链接收数据准确程度指标更加稳定和可靠。Under normal circumstances, the duration of data transmission is related to the memory occupied by the data. The larger the data, the longer the transmission time. Therefore, when the memory occupied by the relay link receiving data is larger, the relay link receiving data consumes longer time, and when the memory occupied by the relay link receiving data is smaller, the relay link receiving data consumes shorter time. The algorithm of this embodiment uses nonlinear transformation, which can help smooth the impact of outliers and reduce the distortion of the overall evaluation by extreme cases. Nonlinear transformation helps to improve the robustness of the evaluation, making the calculated relay link receiving data accuracy index more stable and reliable.
通过使用NTP服务器来同步网络设备的时间,并记录数据包的传输时长,得到中继链接收数据的时长,即为得到中继链接收数据消耗时长。通过正常情况下中继链接收数据的时长,即为得到中继链接收数据标准消耗时长。通过对中继链接收到的数据进行属性获取得到数据所占内存,即为得到中继链接收数据所占内存,通过对传输区块链传输的数据进行属性获取得到数据所占内存,即为得到传输区块链传输数据所占内存。通过计数器获取中继链接收数据的次数和传输区块链传输数据的次数,即为得到中继链接收数据次数和传输区块链发送数据次数。By using the NTP server to synchronize the time of the network device and recording the transmission time of the data packet, the time taken by the relay link to receive data is obtained, that is, the time consumed by the relay link to receive data. The time taken by the relay link to receive data under normal circumstances is the standard time consumed by the relay link to receive data. The memory occupied by the data is obtained by performing attribute acquisition on the data received by the relay link, that is, the memory occupied by the data received by the relay link. The memory occupied by the data transmitted by the transmission blockchain is obtained by performing attribute acquisition on the data transmitted by the transmission blockchain, that is, the memory occupied by the data transmitted by the transmission blockchain. The number of times the relay link receives data and the number of times the transmission blockchain transmits data are obtained through a counter, that is, the number of times the relay link receives data and the number of times the transmission blockchain sends data are obtained.
进一步的,根据中继链接收数据准确程度指标分析中继链接收数据情况的具体分析过程为:获取中继链接收数据准确程度指标,获取中继链接收数据准确程度阈值,将中继链接收数据准确程度指标与中继链接收数据准确程度阈值进行比较,当中继链接收数据准确程度指标大于中继链接收数据准确程度阈值时,表示中继链准确地接收数据;当中继链接收数据准确程度指标不大于中继链接收数据准确程度阈值时,表示中继链在接收数据过程中发生错误。Furthermore, the specific analysis process of analyzing the relay link received data situation according to the relay link received data accuracy index is: obtaining the relay link received data accuracy index, obtaining the relay link received data accuracy threshold, comparing the relay link received data accuracy index with the relay link received data accuracy threshold, when the relay link received data accuracy index is greater than the relay link received data accuracy threshold, it indicates that the relay chain accurately receives the data; when the relay link received data accuracy index is not greater than the relay link received data accuracy threshold, it indicates that an error occurs in the relay chain during data reception.
在本实施例中,中继链接收数据准确程度指标越大,表示中继链接收数据的准确程度越高,跨境物流信息在传输区块链和中继链之间的传递更加准确;中继链接收数据准确程度指标越小,表示中继链接收数据的准确程度越低,跨境物流信息在传输区块链和中继链之间的传递更加不准确。In this embodiment, the larger the relay link received data accuracy index is, the higher the accuracy of the relay link received data is, and the more accurate the transmission of cross-border logistics information between the transmission blockchain and the relay chain is; the smaller the relay link received data accuracy index is, the lower the accuracy of the relay link received data is, and the more inaccurate the transmission of cross-border logistics information between the transmission blockchain and the relay chain is.
根据历史数据进行分析得到中继链接收数据准确程度阈值,中继链接收数据准确程度阈值为δ=arccot(0.05),将中继链接收数据准确程度指标与中继链接收数据准确程度阈值进行比较,当中继链接收数据准确程度指标大于中继链接收数据准确程度阈值时,即时,表示中继链准确地接收数据;当中继链接收数据准确程度指标不大于中继链接收数据准确程度阈值时,即时,表示中继链在接收数据过程中发生错误。According to the historical data, the relay link received data accuracy threshold is obtained, and the relay link received data accuracy threshold is δ=arccot(0.05). The relay link received data accuracy index is compared with the relay link received data accuracy threshold. When the relay link received data accuracy index is greater than the relay link received data accuracy threshold, that is, When , it means that the relay chain receives data accurately; when the relay chain receiving data accuracy index is not greater than the relay chain receiving data accuracy threshold, that is , it means that an error occurred in the relay chain while receiving data.
进一步的,在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链的具体分析过程为:当中继链接收数据情况表示为中继链准确地接收数据时,表示在中继链接收数据情况满足条件,通过中继链将物流信息数据传输给接收区块链;当中继链接收数据情况表示为中继链在接收数据过程中发生错误时,表示在中继链接收数据情况不满足条件,中继链向传输区块链传达重新传输物流信息数据的指令,重复传输区块链向中继链传输物流信息数据到根据中继链接收数据准确程度参数数据分析中继链接收数据情况步骤,当中继链接收数据情况表示为中继链准确地接收数据时,在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链。Furthermore, when the relay chain receives data and satisfies the conditions, the specific analysis process of transmitting the logistics information data to the receiving blockchain through the relay chain is as follows: when the relay chain receives data as indicated by the relay chain accurately receiving data, it indicates that the relay chain receives data and satisfies the conditions, and the logistics information data is transmitted to the receiving blockchain through the relay chain; when the relay chain receives data as indicated by an error occurring in the relay chain during data reception, it indicates that the relay chain receives data and does not satisfy the conditions, and the relay chain conveys instructions to the transmitting blockchain to retransmit the logistics information data, and repeats the process of the transmitting blockchain transmitting the logistics information data to the relay chain until the step of analyzing the relay chain receives data according to the relay chain receives data accuracy parameter data, and when the relay chain receives data as indicated by the relay chain accurately receiving data, and when the relay chain receives data and satisfies the conditions, the logistics information data is transmitted to the receiving blockchain through the relay chain.
在本实施例中,当中继链接收数据情况表示为中继链准确地接收数据时,数据接收过程准确地进行,可以进行下一步传输,通过中继链将物流信息数据传输给接收区块链;当中继链接收数据情况表示为中继链在接收数据过程中发生错误时,表示数据接收过程出现问题,不能直接进行下一步传输,中继链向传输区块链传达重新传输物流信息数据的指令,重复传输区块链向中继链传输物流信息数据到根据中继链接收数据准确程度参数数据分析中继链接收数据情况步骤,当中继链接收数据情况表示为中继链准确地接收数据时,数据接收过程准确地进行,可以进行下一步传输,通过中继链将物流信息数据传输给接收区块链。通过对传输区块链传输数据给中继链的过程进行监测,防止在传输出错的基础上出现后续更多失误,提高了跨境物流信息传递的准确性和可靠性。In this embodiment, when the relay chain receives data, the data receiving process is carried out accurately, and the next transmission can be carried out, and the logistics information data is transmitted to the receiving blockchain through the relay chain; when the relay chain receives data, the relay chain receives data, indicating that an error occurs in the relay chain during the data receiving process, indicating that there is a problem in the data receiving process, and the next transmission cannot be carried out directly. The relay chain conveys the instruction to retransmit the logistics information data to the transmission blockchain, and repeats the transmission blockchain to transmit the logistics information data to the relay chain to analyze the relay chain receiving data according to the parameter data of the accuracy of the relay chain receiving data. When the relay chain receives data, the data receiving process is carried out accurately, and the next transmission can be carried out, and the logistics information data is transmitted to the receiving blockchain through the relay chain. By monitoring the process of transmitting data from the transmission blockchain to the relay chain, more subsequent errors are prevented on the basis of transmission errors, and the accuracy and reliability of cross-border logistics information transmission are improved.
进一步的,中继链发送数据准确情况的具体分析过程为:在中继链将物流信息数据传输给接收区块链过程中进行数据获取得到中继链发送数据准确程度参数数据;对中继链发送数据准确程度参数数据进行数据处理;对数据处理后的中继链发送数据准确程度参数数据进行分析得到中继链发送数据准确程度指标,中继链发送数据准确程度指标用于反映中继链发送数据的准确程度;根据中继链发送数据准确程度指标分析中继链发送数据准确情况。Furthermore, the specific analysis process of the accuracy of the data sent by the relay chain is as follows: in the process of the relay chain transmitting the logistics information data to the receiving blockchain, data is acquired to obtain the parameter data of the accuracy of the data sent by the relay chain; data processing is performed on the parameter data of the accuracy of the data sent by the relay chain; the processed parameter data of the accuracy of the data sent by the relay chain is analyzed to obtain the accuracy index of the data sent by the relay chain, and the accuracy index of the data sent by the relay chain is used to reflect the accuracy of the data sent by the relay chain; the accuracy of the data sent by the relay chain is analyzed according to the accuracy index of the data sent by the relay chain.
在本实施例中,对中继链发送数据准确程度参数数据进行数据处理,数据处理包括:对数据进行数据清洗,去除重复、错误和无关的数据,提高数据质量;对数据进行数据集成,将来自不同来源的数据进行整合;对数据进行数据转换,对数据进行格式化、编码、聚合等操作,使其满足分析需求。通过对中继链发送数据准确程度参数数据进行数据处理,提高数据质量和准确性,有利于根据更加准确的中继链发送数据准确程度参数数据得到更加精确的中继链发送数据准确程度指标。有利于根据中继链发送数据准确程度指标,更加仔细地进行中继链发送数据准确情况的分析。In this embodiment, the data of the parameter data of the accuracy of the data sent by the relay chain is processed, and the data processing includes: cleaning the data, removing duplicate, erroneous and irrelevant data, and improving the data quality; integrating the data, integrating the data from different sources; converting the data, formatting, encoding, aggregating and other operations on the data to meet the analysis requirements. By processing the parameter data of the accuracy of the data sent by the relay chain, the data quality and accuracy are improved, which is conducive to obtaining a more accurate indicator of the accuracy of the data sent by the relay chain based on the more accurate parameter data of the accuracy of the data sent by the relay chain. It is conducive to more carefully analyzing the accuracy of the data sent by the relay chain based on the indicator of the accuracy of the data sent by the relay chain.
中继链发送数据准确程度指标可通过以下方式得到,包括:通过比较发送的数据与实际接收到的数据之间的差异来计算误差率;均方误差是衡量预测值与实际值之间差异的一种方法,它计算的是预测值与实际值之间差的平方的平均值,通过MSE评估中继链的性能;信噪比是信号强度与噪声强度的比值,通过SNR评估中继链传输数据的清晰度和准确度;结合上述指标对中继链发送数据的准确程度进行综合评估,得到中继链发送数据准确程度指标。中继链发送数据准确程度指标也可通过以下方法得到,中继链发送数据准确程度指标的具体获取方法为:获取中继链数量,将中继链进行编号;获取接收区块链数量,将接收区块链进行编号;在中继链接收和发送时进行多次数据获取,获取数据获取次数,将数据获取次数进行编号;获取中继链发送数据准确程度参数数据;根据中继链发送数据准确程度参数数据构建中继链发送数据准确程度指标计算公式;具体的中继链发送数据准确程度指标计算公式为:The accuracy index of data sent by the relay chain can be obtained in the following ways, including: calculating the error rate by comparing the difference between the sent data and the actually received data; mean square error is a method to measure the difference between the predicted value and the actual value, which calculates the average of the squares of the difference between the predicted value and the actual value, and the performance of the relay chain is evaluated by MSE; signal-to-noise ratio is the ratio of signal strength to noise strength, and the clarity and accuracy of data transmitted by the relay chain are evaluated by SNR; the accuracy of the data sent by the relay chain is comprehensively evaluated by combining the above indicators to obtain the accuracy index of the data sent by the relay chain. The accuracy index of data sent by the relay chain can also be obtained by the following method. The specific method for obtaining the accuracy index of data sent by the relay chain is: obtain the number of relay chains and number the relay chains; obtain the number of receiving blockchains and number the receiving blockchains; obtain data multiple times when the relay chain receives and sends, obtain the number of data acquisitions, and number the number of data acquisitions; obtain the accuracy parameter data of data sent by the relay chain; construct the calculation formula of the accuracy index of data sent by the relay chain according to the accuracy parameter data of data sent by the relay chain; the specific calculation formula of the accuracy index of data sent by the relay chain is:
式中,表示为第z0个中继链与第j0个接收区块链进行数据传输时的中继链发送数据准确程度指标,z0=1,2,...,z,z0为中继链编号,z表示为中继链总数,j0=1,2,...,j,j0为接收区块链编号,j表示为接收区块链总数,表示为第z0个中继链与第j0个接收区块链进行数据传输的第s0次数据获取时的中继链发送数据消耗时长,s0=1,2,...,s,s0为数据获取次数编号,s表示为数据获取总次数,表示为第z0个中继链与第j0个接收区块链进行数据传输的第s0次数据获取时的中继链发送数据所占内存,表示为第z0个中继链与第j0个接收区块链进行数据传输的第s0次数据获取时的中继链发送数据加密次数,表示为第z0个中继链与第j0个接收区块链进行数据传输时的中继链发送数据消耗时长参照值,表示为第z0个中继链与第j0个接收区块链进行数据传输时的接收区块链接收数据所占内存,表示为第z0个中继链与第j0个接收区块链进行数据传输时的中继链发送数据加密次数参照值,t1表示为中继链发送数据消耗时长在中继链发送数据准确程度指标中所占权重比例,t2表示为中继链发送数据所占内存在中继链发送数据准确程度指标中所占权重比例,t3表示为中继链发送数据加密次数在中继链发送数据准确程度指标中所占权重比例。In the formula, It is the accuracy index of the data sent by the relay chain when the z0th relay chain transmits data with the j0th receiving blockchain. z0 = 1, 2, ..., z, z0 is the relay chain number, z is the total number of relay chains, j0 = 1, 2, ..., j, j0 is the receiving blockchain number, j is the total number of receiving blockchains, It is represented by the time it takes for the relay chain to send data when the z0th relay chain and the j0th receiving blockchain perform data transmission for the s0th data acquisition. s0 = 1, 2, ..., s, s0 is the number of data acquisition times, s represents the total number of data acquisition times, It is represented by the memory occupied by the relay chain sending data when the s0th data is obtained for data transmission between the z0th relay chain and the j0th receiving blockchain. It is represented by the number of times the relay chain sends encrypted data when the z0th relay chain and the j0th receiving blockchain acquire data for the s0th time. It is expressed as the reference value of the time it takes for the relay chain to send data when the z0th relay chain transmits data to the j0th receiving blockchain. It is represented by the memory occupied by the receiving blockchain when the z0th relay chain transmits data to the j0th receiving blockchain. It is represented as the reference value of the number of encryption times the relay chain sends data when the z0th relay chain transmits data with the j0th receiving blockchain. t1 is represented as the weight ratio of the time consumed by the relay chain to send data in the accuracy index of the relay chain sending data. t2 is represented as the weight ratio of the memory occupied by the relay chain sending data in the accuracy index of the relay chain sending data. t3 is represented as the weight ratio of the number of encryption times the relay chain sends data in the accuracy index of the relay chain sending data.
通过随机森林模型和Lasso回归进行特征选择来判断中继链发送数据消耗时长、中继链发送数据所占内存和中继链发送数据加密次数的重要性,得到t1、t2和t3的具体值,t1、t2和t3的取值范围均为(0,1),且满足t1、t2和t3之和等于1。Feature selection is performed through random forest model and Lasso regression to determine the importance of the time consumed by the relay chain to send data, the memory occupied by the relay chain to send data, and the number of times the relay chain to send data is encrypted, and the specific values of t 1 , t 2 and t 3 are obtained. The value range of t 1 , t 2 and t 3 is (0, 1), and the sum of t 1 , t 2 and t 3 is equal to 1.
在数据正常传输过程中,中继链发送数据消耗时长与中继链发送数据所占内存存在正相关关系,中继链发送数据所占内存越大,中继链发送数据消耗时长越长。通过从中继链发送数据消耗时长、中继链发送数据所占内存和中继链发送数据加密次数三个角度分析得到中继链发送数据准确程度指标,使得中继链发送数据准确程度指标考虑更加全面。本实施例的算法,使用了非线性变换,可以帮助平滑中继链发送数据消耗时长、中继链发送数据所占内存和中继链发送数据加密次数中异常值的影响,减少极端情况对总体评估的扭曲。During normal data transmission, there is a positive correlation between the time it takes for the relay chain to send data and the memory occupied by the relay chain to send data. The larger the memory occupied by the relay chain to send data, the longer it takes for the relay chain to send data. The accuracy index of the data sent by the relay chain is obtained by analyzing from three perspectives: the time it takes for the relay chain to send data, the memory occupied by the relay chain to send data, and the number of times the relay chain sends data to be encrypted, so that the accuracy index of the data sent by the relay chain is considered more comprehensively. The algorithm of this embodiment uses nonlinear transformation, which can help smooth the impact of outliers in the time it takes for the relay chain to send data, the memory occupied by the relay chain to send data, and the number of times the relay chain sends data to be encrypted, and reduce the distortion of the overall evaluation due to extreme cases.
通过操作系统计时服务和应用程序内计时功能对中继链与接收区块链的传输过程进行监测获取得到中继链发送数据的时长和正常情况下中继链发送数据的时长,即为得到中继链发送数据消耗时长和中继链发送数据消耗时长参照值。通过数据记录器对中继链与接收区块链的传输过程中的加密次数进行统计得到中继链发送数据的加密次数和正常情况下中继链发送数据的加密次数,即为得到中继链发送数据加密次数和中继链发送数据加密次数参照值。通过数据分析算法对中继链与接收区块链的传输过程中中继链发送数据的所占内存和接受区块链接收数据的所占内存进行分析,得到中继链发送数据所占内存和接收区块链接收数据所占内存。The transmission process between the relay chain and the receiving blockchain is monitored through the operating system timing service and the timing function in the application to obtain the duration of the relay chain sending data and the duration of the relay chain sending data under normal circumstances, that is, to obtain the duration consumed by the relay chain to send data and the reference value of the duration consumed by the relay chain to send data. The number of encryption times in the transmission process between the relay chain and the receiving blockchain is counted by the data recorder to obtain the number of encryption times of the relay chain sending data and the number of encryption times of the relay chain sending data under normal circumstances, that is, to obtain the number of encryption times of the relay chain sending data and the reference value of the number of encryption times of the relay chain sending data. The memory occupied by the relay chain sending data and the memory occupied by the receiving blockchain receiving data during the transmission process between the relay chain and the receiving blockchain are analyzed by the data analysis algorithm to obtain the memory occupied by the relay chain sending data and the memory occupied by the receiving blockchain receiving data.
进一步的,数据内容准确情况的具体分析过程为:在中继链将物流信息数据传输给接收区块链过程中进行数据获取得到数据内容准确程度参数数据;对数据内容准确程度参数数据进行数据清洗和预处理;对数据内容准确程度参数数据进行数据清洗和预处理后的进行分析得到数据内容准确程度指标,数据内容准确程度指标用于反映数据内容的准确程度;根据数据内容准确程度指标分析数据内容准确情况。Furthermore, the specific analysis process of the data content accuracy is as follows: in the process of the relay chain transmitting the logistics information data to the receiving blockchain, data is acquired to obtain the data content accuracy parameter data; data cleaning and preprocessing are performed on the data content accuracy parameter data; data content accuracy indicators are analyzed after data cleaning and preprocessing to obtain data content accuracy indicators, which are used to reflect the accuracy of the data content; and data content accuracy is analyzed according to the data content accuracy indicators.
在本实施例中,对数据内容准确程度参数数据进行数据清洗和预处理,包括:填充或删除数据内容准确程度参数数据中缺失的数据;识别并选择保留、填充或删除数据内容准确程度参数数据中的异常值;识别并修正数据录入错误。通过对数据内容准确程度参数数据进行数据清洗和预处理,清洗后的数据质量更高,可以直接数据内容准确程度参数数据的准确性和可靠性,通过处理异常值和错误,减少数据偏差,使数据内容准确程度指标更公正、更一致,经过预处理的数据更容易处理和分析,可以节省时间和计算资源。In this embodiment, the data content accuracy parameter data is cleaned and preprocessed, including: filling or deleting missing data in the data content accuracy parameter data; identifying and selecting to retain, fill or delete outliers in the data content accuracy parameter data; identifying and correcting data entry errors. By cleaning and preprocessing the data content accuracy parameter data, the cleaned data quality is higher, the accuracy and reliability of the data content accuracy parameter data can be directly improved, and by processing outliers and errors, data deviations can be reduced, making the data content accuracy index more fair and consistent, and the preprocessed data is easier to process and analyze, which can save time and computing resources.
数据内容准确程度指标可通过如下方法得到,包括:应用假设检验(如t-检验或卡方检验)来确定数据准确性是否有显著差异,计算数据的变异性和标准差来评估整个中继链数据变化的波动性;计算数据传递过程中的信息熵变化,以评估信息准确性的降低程度;结合上述内容,综合评估数据内容的准确性,得到数据内容准确程度指标。数据内容准确程度指标还可通过计算得到,数据内容准确程度指标的具体获取方法为:获取数据内容准确程度参数数据;根据数据内容准确程度参数数据构建数据内容准确程度指标计算公式;具体的数据内容准确程度指标计算公式为:The data content accuracy index can be obtained by the following methods, including: applying hypothesis tests (such as t-tests or chi-square tests) to determine whether there are significant differences in data accuracy, calculating the variability and standard deviation of the data to evaluate the volatility of data changes in the entire relay chain; calculating the change in information entropy during data transmission to evaluate the degree of reduction in information accuracy; combining the above content, comprehensively evaluating the accuracy of the data content, and obtaining the data content accuracy index. The data content accuracy index can also be obtained by calculation. The specific method for obtaining the data content accuracy index is: obtaining data content accuracy parameter data; constructing a data content accuracy index calculation formula based on the data content accuracy parameter data; the specific data content accuracy index calculation formula is:
式中,表示为第z0个中继链与第j0个接收区块链进行数据传输时的数据内容准确程度指标,表示为第z0个中继链与第j0个接收区块链进行数据传输的第s0次数据获取时的中继链发送数据表示物流重量,表示为第z0个中继链与第j0个接收区块链进行数据传输的第s0次数据获取时的中继链发送数据表示物流体积,表示为第z0个中继链与第j0个接收区块链进行数据传输时的物流重量参考值,表示为第z0个中继链与第j0个接收区块链进行数据传输时的物流体积参考值,m1表示为中继链发送数据消耗时长在中继链发送数据准确程度指标中所占权重比例,m2表示为中继链发送数据所占内存在中继链发送数据准确程度指标中所占权重比例。In the formula, It is expressed as the data content accuracy index when the z0th relay chain and the j0th receiving blockchain transmit data, It is represented by the data transmission between the z0th relay chain and the j0th receiving blockchain. The data sent by the relay chain during the s0th data acquisition represents the logistics weight. It is represented by the data transmission between the z0th relay chain and the j0th receiving blockchain. The data sent by the relay chain during the s0th data acquisition represents the logistics volume. It is expressed as the reference value of logistics weight when the z0th relay chain and the j0th receiving blockchain transmit data. It is expressed as the reference value of the logistics volume when the z0th relay chain and the j0th receiving blockchain transmit data, m1 is expressed as the weight ratio of the time consumed by the relay chain to send data in the accuracy index of the relay chain sending data, and m2 is expressed as the weight ratio of the memory occupied by the relay chain sending data in the accuracy index of the relay chain sending data.
在神经网络中,通过反向传播算法计算损失函数对每个权重的梯度,以调整权重,得到m1和m2的具体值,m1和m2的取值范围均为(0,1),且满足m1和m2之和等于1。In the neural network, the gradient of the loss function for each weight is calculated through the back propagation algorithm to adjust the weights and obtain the specific values of m1 and m2 . The value range of m1 and m2 is (0, 1), and the sum of m1 and m2 is equal to 1.
中继链发送数据表示物流重量与中继链发送数据表示物流体积呈现正相关关系,中继链发送数据表示物流重量越大,中继链发送数据表示物流体积越大,中继链发送数据表示物流重量越小,中继链发送数据表示物流体积越小。本实施例的算法,使用了非线性变换,可以帮助平滑中继链发送数据表示物流重量与中继链发送数据表示物流体积中的异常值的影响,减少极端情况对总体评估的扭曲,使得计算得到的中继链发送数据准确程度指标更加稳定和可靠。The data sent by the relay chain indicates that the logistics weight and the data sent by the relay chain indicate that the logistics volume are positively correlated. The greater the logistics weight, the greater the logistics volume, and the smaller the logistics weight, the smaller the logistics volume. The algorithm of this embodiment uses nonlinear transformation, which can help smooth the impact of outliers in the logistics weight and logistics volume represented by the data sent by the relay chain, reduce the distortion of the overall evaluation by extreme cases, and make the calculated accuracy index of the data sent by the relay chain more stable and reliable.
通过计算机对中继链发送到数据进行内容读取得到中继链发送数据表示物流重量和中继链发送数据表示物流体积。通过对跨境物流本身通过尺子、卷尺等工具直接测量物体的长度、宽度和高度,然后计算体积得到物流体积参考值。通过对跨境物流本身通过称重传感器得到重量数据,即为得到物流重量参考值。The data sent by the relay chain is read by the computer to obtain the data sent by the relay chain to represent the logistics weight and the data sent by the relay chain to represent the logistics volume. The length, width and height of the object are directly measured by rulers, tape measures and other tools, and then the volume is calculated to obtain the logistics volume reference value. The weight data of the cross-border logistics itself is obtained by the weighing sensor, which is the logistics weight reference value.
如图2所示,为本申请实施例提供的数据内容准确程度指标曲线图,以中继链发送数据表示物流重量为自变量,以数据内容准确程度指标为因变量。通过对曲线Z、曲线X和曲线C的增减性分析可知,当中继链发送数据表示物流重量与物流重量参考值越接近时,数据内容准确程度指标越小,数据内容准确程度越高;当中继链发送数据表示物流重量与物流重量参考值越接远时,数据内容准确程度指标越大,数据内容准确程度越低。数据内容准确程度指标相关数据统计表如表1所示:As shown in Figure 2, a curve chart of the data content accuracy index provided in the embodiment of the present application is provided, with the data sent by the relay chain to represent the logistics weight as the independent variable and the data content accuracy index as the dependent variable. Through the increase and decrease analysis of curve Z, curve X and curve C, it can be known that when the data sent by the relay chain to represent the logistics weight is closer to the logistics weight reference value, the smaller the data content accuracy index is, and the higher the data content accuracy is; when the data sent by the relay chain to represent the logistics weight is farther away from the logistics weight reference value, the larger the data content accuracy index is, and the lower the data content accuracy is. The statistical table of data content accuracy index related data is shown in Table 1:
表1数据内容准确程度指标相关数据统计表Table 1 Statistics of data content accuracy indicators
通过表1可知,曲线Z中,当其他参数一致,中继链发送数据表示物流重量与物流重量参考值越接远时,即中继链发送数据表示物流重量分别为12吨、15吨和18吨时,数据内容准确程度指标分别为0.289、0.35和0.46,数据内容准确程度指标逐渐变大;同理可得,中继链发送数据表示物流重量与物流重量参考值越接近时,区域异常程度评估指标越小。对于曲线X和曲线C上述变化同样成立。It can be seen from Table 1 that in curve Z, when other parameters are the same, the closer the data sent by the relay chain to the logistics weight and the logistics weight reference value is, that is, when the data sent by the relay chain to the logistics weight is 12 tons, 15 tons and 18 tons respectively, the data content accuracy index is 0.289, 0.35 and 0.46 respectively, and the data content accuracy index gradually increases; similarly, when the data sent by the relay chain to the logistics weight and the logistics weight reference value is closer, the regional abnormality evaluation index is smaller. The above changes are also true for curves X and C.
对于曲线Z、曲线X和曲线C,当曲线Z、曲线X和曲线C的中继链发送数据表示物流重量均为15吨,当曲线Z、曲线X和曲线C的中继链发送数据表示物流体积分别为10立方米、12立方米和15立方米时,且其他参数一致时,曲线Z、曲线X和曲线C的数据内容准确程度指标分别为0.35、0.43和0.5,可知,在中继链发送数据表示物流重量与其他参数一致时,当中继链发送数据表示物流体积与物流体积参考值差距越大时,数据内容准确程度指标越大。For curve Z, curve X and curve C, when the data sent by the relay chain of curve Z, curve X and curve C indicate that the logistics weight is 15 tons, when the data sent by the relay chain of curve Z, curve X and curve C indicate that the logistics volume is 10 cubic meters, 12 cubic meters and 15 cubic meters respectively, and other parameters are consistent, the data content accuracy indicators of curve Z, curve X and curve C are 0.35, 0.43 and 0.5 respectively. It can be seen that when the data sent by the relay chain indicates that the logistics weight is consistent with other parameters, the greater the difference between the data sent by the relay chain indicating that the logistics volume is and the logistics volume reference value, the greater the data content accuracy indicator.
进一步的,根据中继链发送数据准确程度指标分析中继链发送数据准确情况的具体分析过程为:获取中继链发送数据准确程度指标,获取中继链发送数据准确程度指标阈值,当中继链发送数据准确程度指标大于中继链发送数据准确程度指标阈值时,表示中继链将物流信息数据传输给接收区块链的传输过程准确地进行,当处于其他情况时,表示中继链将物流信息数据传输给接收区块链的传输过程出现错误;根据数据内容准确程度指标分析数据内容准确情况的具体分析过程为:获取数据内容准确程度指标,获取数据内容准确程度阈值,当数据内容准确程度指标小于数据内容准确程度阈值时,表示中继链传输给接收区块链的物流信息数据内容准确,当处于其他情况时,表示中继链传输给接收区块链的物流信息数据内容不准确。Furthermore, the specific analysis process of analyzing the accuracy of the data sent by the relay chain according to the accuracy index of the data sent by the relay chain is as follows: obtaining the accuracy index of the data sent by the relay chain, obtaining the threshold value of the data sent by the relay chain, and when the accuracy index of the data sent by the relay chain is greater than the threshold value of the data sent by the relay chain, it indicates that the transmission process of the logistics information data transmitted by the relay chain to the receiving blockchain is accurate; when it is in other situations, it indicates that an error occurs in the transmission process of the logistics information data transmitted by the relay chain to the receiving blockchain; the specific analysis process of analyzing the accuracy of the data content according to the data content accuracy index is as follows: obtaining the data content accuracy index, obtaining the data content accuracy threshold value, and when the data content accuracy index is less than the data content accuracy threshold value, it indicates that the logistics information data content transmitted by the relay chain to the receiving blockchain is accurate; when it is in other situations, it indicates that the logistics information data content transmitted by the relay chain to the receiving blockchain is inaccurate.
在本实施例中,通过获取历史数据并结合对应的实际情况进行分析得到中继链发送数据准确程度指标阈值,中继链发送数据准确程度指标阈值为当中继链发送数据准确程度指标大于中继链发送数据准确程度指标阈值时,即时,表示中继链将物流信息数据传输给接收区块链的传输过程准确地进行,当处于其他情况时,即时,表示中继链将物流信息数据传输给接收区块链的传输过程出现错误;通过获取历史数据并进行实验得到数据内容准确程度阈值,数据内容准确程度阈值为当数据内容准确程度指标小于数据内容准确程度阈值时,即时,表示中继链传输给接收区块链的物流信息数据内容准确,当处于其他情况时,即时,表示中继链传输给接收区块链的物流信息数据内容不准确。In this embodiment, the accuracy index threshold of the relay chain data sent is obtained by acquiring historical data and analyzing it in combination with the corresponding actual situation. The accuracy index threshold of the relay chain data sent is When the accuracy index of the data sent by the relay chain is greater than the accuracy index threshold of the data sent by the relay chain, that is, When , it means that the relay chain transmits the logistics information data to the receiving blockchain accurately. When it is in other situations, that is, , it means that an error occurs in the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain; the data content accuracy threshold is obtained by obtaining historical data and conducting experiments. When the data content accuracy index is less than the data content accuracy threshold, , it means that the logistics information data content transmitted by the relay chain to the receiving blockchain is accurate. When it is in other situations, that is, , it means that the logistics information data content transmitted by the relay chain to the receiving blockchain is inaccurate.
进一步的,根据中继链发送数据准确情况和数据内容准确情况进行预警提醒的具体分析过程为:当处于中继链将物流信息数据传输给接收区块链的传输过程准确地进行以及中继链传输给接收区块链的物流信息数据内容准确情况时,表示跨境物流的物流信息数据得到准确的分发,不进行预警提醒;当中继链将物流信息数据传输给接收区块链的传输过程出现错误以及中继链传输给接收区块链的物流信息数据内容不准确出现一种及以上情况时,表示跨境物流的物流信息数据没有得到准确的分发,进行预警提醒。Furthermore, the specific analysis process for issuing early warning reminders based on the accuracy of the data sent by the relay chain and the accuracy of the data content is as follows: when the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain is accurate and the content of the logistics information data transmitted by the relay chain to the receiving blockchain is accurate, it means that the logistics information data of the cross-border logistics is accurately distributed, and no early warning reminder is issued; when an error occurs in the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain and one or more of the logistics information data content transmitted by the relay chain to the receiving blockchain is inaccurate, it means that the logistics information data of the cross-border logistics is not accurately distributed, and an early warning reminder is issued.
在本实施例中,当中继链将物流信息数据传输给接收区块链的传输过程出现错误以及中继链传输给接收区块链的物流信息数据内容不准确出现一种及以上情况时,表示跨境物流的物流信息数据没有得到准确的分发,进行预警提醒,使得工作人员及时注意到跨境物流的信息传递出现问题,及时进行维修等处理操作,避免出现更多的错误传递,减少因错误传递造成的经济损失和浪费时间。In this embodiment, when an error occurs in the transmission process of the relay chain transmitting the logistics information data to the receiving blockchain, and one or more of the logistics information data transmitted by the relay chain to the receiving blockchain is inaccurate, it means that the logistics information data of the cross-border logistics has not been accurately distributed, and an early warning reminder is issued, so that the staff can promptly notice the problems in the information transmission of cross-border logistics, and perform maintenance and other processing operations in time to avoid more erroneous transmissions and reduce economic losses and waste of time caused by erroneous transmissions.
如图3所示,为本申请实施例提供的一种基于区块链的跨境物流中继链分发系统的结构示意图,本申请实施例提供的一种基于区块链的跨境物流中继链分发系统包括:物流数据获取模块、数据存储模块、中继链接收模块、中继链传输模块、接收准确分析模块、判断模块、数据准确分析模块和预警模块;物流数据获取模块:用于获取跨境物流的物流信息数据数据存储模块:用于将物流信息数据存储到传输区块链;中继链接收模块:用于传输区块链向中继链传输物流信息数据;中继链传输模块:用于在传输区块链向中继链传输物流信息数据过程中进行数据获取,得到中继链接收数据准确程度参数数据;接收准确分析模块:用于根据中继链接收数据准确程度参数数据分析中继链接收数据情况;判断模块:用于在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链;数据准确分析模块:用于在中继链将物流信息数据传输给接收区块链过程中进行数据获取并分析中继链发送数据准确情况和数据内容准确情况;预警模块:用于根据中继链发送数据准确情况和数据内容准确情况进行预警提醒。As shown in FIG3 , it is a schematic diagram of the structure of a cross-border logistics relay chain distribution system based on blockchain provided in an embodiment of the present application. A cross-border logistics relay chain distribution system based on blockchain provided in an embodiment of the present application includes: a logistics data acquisition module, a data storage module, a relay chain receiving module, a relay chain transmission module, a receiving accurate analysis module, a judgment module, a data accurate analysis module and an early warning module; logistics data acquisition module: used to obtain logistics information data of cross-border logistics; data storage module: used to store logistics information data in the transmission blockchain; relay chain receiving module: used to transmit logistics information data from the transmission blockchain to the relay chain; relay chain transmission module: used to transmit in the transmission area The block chain acquires data during the process of transmitting logistics information data to the relay chain, and obtains the parameter data of the accuracy of the data received by the relay chain; the receiving accuracy analysis module is used to analyze the data received by the relay chain according to the parameter data of the accuracy of the data received by the relay chain; the judgment module is used to transmit the logistics information data to the receiving blockchain through the relay chain when the conditions of the data received by the relay chain are met; the data accuracy analysis module is used to acquire data during the process of transmitting the logistics information data to the receiving blockchain by the relay chain and analyze the accuracy of the data sent by the relay chain and the accuracy of the data content; the early warning module is used to issue early warning reminders based on the accuracy of the data sent by the relay chain and the accuracy of the data content.
综上所述,本申请实施例通过根据中继链接收数据准确程度参数数据分析中继链接收数据情况,从而在中继链接收数据情况满足条件时,通过中继链将物流信息数据传输给接收区块链,进而实现了避免在中继链在接收数据过程中发生错误时进行后续数据传输操作,避免造成更多的数据传输错误。To summarize, the embodiment of the present application analyzes the relay chain receiving data situation according to the relay chain receiving data accuracy parameter data, and when the relay chain receiving data situation meets the conditions, the logistics information data is transmitted to the receiving blockchain through the relay chain, thereby avoiding subsequent data transmission operations when an error occurs in the relay chain receiving data process, thereby avoiding causing more data transmission errors.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowchart and/or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410605710.0A CN118570978B (en) | 2024-05-16 | 2024-05-16 | A cross-border logistics relay chain distribution method and system based on blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410605710.0A CN118570978B (en) | 2024-05-16 | 2024-05-16 | A cross-border logistics relay chain distribution method and system based on blockchain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118570978A true CN118570978A (en) | 2024-08-30 |
CN118570978B CN118570978B (en) | 2024-10-25 |
Family
ID=92475515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410605710.0A Active CN118570978B (en) | 2024-05-16 | 2024-05-16 | A cross-border logistics relay chain distribution method and system based on blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118570978B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180130034A1 (en) * | 2016-11-07 | 2018-05-10 | LedgerDomain, LLC | Extended blockchains for event tracking and management |
CN114756899A (en) * | 2022-03-17 | 2022-07-15 | 北京华录高诚科技有限公司 | Logistics system based on block chain |
CN116566994A (en) * | 2023-05-10 | 2023-08-08 | 国家信息中心 | Cross-chain data transmission method between blockchains and blockchain system, electronic equipment and storage medium |
CN116796864A (en) * | 2023-03-29 | 2023-09-22 | 国网安徽省电力有限公司信息通信分公司 | Power data distributed federation learning system and method based on data similarity aggregation |
-
2024
- 2024-05-16 CN CN202410605710.0A patent/CN118570978B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180130034A1 (en) * | 2016-11-07 | 2018-05-10 | LedgerDomain, LLC | Extended blockchains for event tracking and management |
CN114756899A (en) * | 2022-03-17 | 2022-07-15 | 北京华录高诚科技有限公司 | Logistics system based on block chain |
CN116796864A (en) * | 2023-03-29 | 2023-09-22 | 国网安徽省电力有限公司信息通信分公司 | Power data distributed federation learning system and method based on data similarity aggregation |
CN116566994A (en) * | 2023-05-10 | 2023-08-08 | 国家信息中心 | Cross-chain data transmission method between blockchains and blockchain system, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
司冰茹等: "区块链网络综述", 软件学报, vol. 35, no. 2, 29 February 2024 (2024-02-29), pages 773 - 799 * |
Also Published As
Publication number | Publication date |
---|---|
CN118570978B (en) | 2024-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111899016B (en) | Quality data processing method and device based on block chain | |
CN112199421B (en) | Multi-source heterogeneous data fusion and measurement data multi-source mutual verification method and system | |
CN108665198B (en) | Method and device for performing assessment in service link | |
CN118379122B (en) | Medical instrument order delivery management system and method based on service source | |
CN119151306B (en) | Knowledge graph-based risk identification method for automobile supply chain | |
CN120125258B (en) | Block chain double-chain type cold chain traceability management system for meat quality fluctuation | |
CN109615297A (en) | A kind of storehouse Data Audit method, apparatus, system and readable storage medium storing program for executing | |
CN117041269A (en) | Real-time bidirectional synchronization system for synchronizing sub-database data | |
CN118570978B (en) | A cross-border logistics relay chain distribution method and system based on blockchain | |
CN116611747A (en) | Resource information intelligent management system based on cloud computing | |
CN116126975A (en) | Multi-attribute digital integrating circulation system based on commercial blockchain technology | |
CN112765553B (en) | Engineering project management system based on big data | |
CN113793158A (en) | Textile inspection detection information query method and system | |
CN117575372B (en) | Knowledge graph-based supply chain quality management system | |
CN118627766A (en) | A foreign trade information processing method and system | |
CN118586877A (en) | A smart community management publicity system and fee collection method | |
CN116089402B (en) | Block chain asset data intelligent processing system | |
US20230291694A1 (en) | Further improved data transport methods | |
LU509458B1 (en) | Cross-border e-commerce supply chain traceability and smart contract management system and method based on blockchain technology | |
CN119359417B (en) | A service management system based on cloud platform | |
CN119398772B (en) | Cloud computing-based edge node operation and maintenance method and system | |
CN111242418B (en) | Electronic money accounting method and system in grain circulation process | |
CN120543058A (en) | Logistics management information determination method, device and storage medium | |
CN119127853A (en) | A data cleaning and reuse method and system | |
CN120493315A (en) | Block chain-based data security audit method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |