Cross-chain communication relay topology management system based on network limited environment
Through real-time network detection and path switching, message fragmentation processing and hash value verification, the problems of data irrecoverability and topology rigidity in cross-chain communication are solved, and efficient and secure cross-chain communication is achieved in a network isolation environment.
Patent Information
- Application Number
- CN202511248882.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-03
- Publication Date
- 2025-10-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional cross-chain communication solutions have problems with data irrecoverability and topology rigidity in network isolation environments. They are unable to dynamically perceive changes in network quality and relay node failures, leading to communication link interruptions and the risk of data tampering.
The network detection module is used to monitor the network status in real time, the dual-channel communication module is used to switch paths, the message cache module and the priority queue generation module are combined to perform message fragmentation processing, and the SHA-256 hash value check and Merkle tree verification structure are used to ensure data integrity and security.
It realizes cross-chain communication relay topology management in a network isolation environment, ensures the timeliness and integrity of data transmission, avoids delays in high-priority messages, provides efficient sharded data transmission integrity proof, and reduces the risk of data tampering.
Smart Images

Figure CN120751013A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cross-chain communication, and specifically to a cross-chain communication relay topology management system based on a network-restricted environment. Background Art
[0002] The application of blockchain technology within enterprises has expanded from single ledger records to complex scenarios such as supply chain collaboration and cross-departmental data sharing. Enterprise private chain deployment has two notable characteristics: first, the use of network isolation strategies to ensure data security; second, multi-chain parallel architecture has become mainstream. In this environment, traditional cross-chain solutions face the dual challenges of network physical isolation blocking communication and the exponential increase in the complexity of multi-chain management.
[0003] Currently, traditional cross-chain communication solutions rely on the local database of edge proxy nodes to cache sharded data, such as transaction sharding caching technology. However, traditional technologies have security risks, such as storage reliability defects caused by node hardware failures that make data unrecoverable. At the same time, the topology structure of traditional solutions is rigid, and the inter-chain communication proxy layer adopts static path configuration. The specific defects are: the inability to dynamically perceive changes in network quality and the failure of relay nodes leading to the interruption of the entire communication link.
[0004] To improve the above-mentioned defects, Chinese patent application CN114528343A discloses a cross-chain method for resuming breakpoint transmission based on cache relay. This method uses edge proxy nodes deployed on each chain to monitor cross-chain requests, detect network connectivity through heartbeat packets, trigger cache thresholds, split cross-chain transactions into multiple shards, store them in the local database of the proxy node, and submit them to the target chain in the order of shards after the network is restored.
[0005] However, there are still some shortcomings, such as the lack of a distributed verification mechanism for cached data during offline periods, which poses a risk of data tampering. At the same time, the state verification mechanism is missing, and there is a lack of integrity proof means for sharded data during offline transmission. For this reason, a solution is proposed. Summary of the Invention
[0006] When the network is interrupted, the present invention can mark the untransmitted messages through the disaster recovery process and automatically switch to the backup route. After the network connection is restored, the cached messages are prioritized and sent in grades according to the message priority to avoid delays in high-priority messages. Through preprocessing at the sending end, physical storage nodes are allocated based on the hash value of the target chain address, and SHA-256 hash value check codes are added to the divided message fragments. When the message fragments are retrieved and uploaded, a Merkle tree verification structure is generated to provide an efficient means of proving the integrity of fragmented data transmission, so as to solve the problem of being unable to achieve secure cross-chain in a completely disconnected or extremely restricted network, and ensure that the data is not tampered with and the lack of a solution for proving the integrity of fragmented data transmission, and propose a cross-chain communication relay topology management system based on a network-restricted environment.
[0007] The purpose of the present invention can be achieved through the following technical solutions: a cross-chain communication relay topology management system based on a network-restricted environment, including a network detection module, a dual-channel communication module, a message cache module, a priority queue generation module and a dynamic load balancing module;
[0008] The network detection module collects network status in real time through the network probe matrix, and makes a path availability judgment based on the collected network status, and sends the path availability judgment result to the dual-channel communication module;
[0009] The dual-channel communication module is used to control the local link interface and the cloud message interface, and switch the path according to the path availability judgment result, generating a route switching signal. The dual-channel communication module can also automatically switch the transmission mode according to the network quality. The transmission mode includes online mode and offline mode. After the dual-channel communication module generates the offline mode, it sends the offline mode signal to the message cache module.
[0010] After receiving the offline mode signal, the message cache module splits the cross-chain transaction information into multiple shards and stores them in the local database of the proxy node;
[0011] The priority queue generation module can obtain the online mode signal through the dual-channel communication module, and after obtaining the online mode, obtain the fragmented storage information through the message buffer module, and submit the fragmented storage information in sequence according to the fragment order. The priority queue generation module can also classify the information types and assign priority orders according to the information types;
[0012] The dynamic load balancing module can calculate the communication load of the communication channel and generate a load remaining priority based on the preset load interval. The dynamic load balancing module sends the load remaining priority to the priority queue generation module, and the priority queue generation module determines the information sending queue based on the load remaining priority and the priority order.
[0013] As a preferred embodiment of the present invention, the network status collected by the network detection module includes end-to-end delay, packet loss rate and bandwidth fluctuation. When collecting end-to-end delay, the network probe matrix of the network detection module collects the end-to-end delay at a frequency of a times per second, and compares the collected end-to-end delay with a threshold. If the end-to-end delay is greater than the threshold, a path switching signal is triggered.
[0014] The network detection module collects packet loss rates at a frequency of b times per second and compares the detected packet loss rate with a set threshold. If the packet loss rate is greater than the threshold, the packet loss rate is determined to be too high. The network detection module determines that the path is failed when the number of consecutive determinations of the packet loss rate being too high exceeds a set number.
[0015] The network detection module collects bandwidth fluctuations in real-time monitoring mode, and compares each monitored bandwidth fluctuation with the set initial bandwidth to obtain the bandwidth drop amplitude. If the bandwidth drop amplitude is greater than the set amplitude threshold, a load balancing signal is generated.
[0016] As a preferred embodiment of the present invention, after obtaining the end-to-end delay, packet loss rate, and bandwidth fluctuation, the network detection module performs a weighted calculation on the end-to-end delay, packet loss rate, and bandwidth fluctuation of the primary path and the alternative path using a weighted calculation formula, and uses the weighted calculation result of the alternative path as the alternative path priority;
[0017] The weighted calculation result of the primary path is compared with a set threshold. If the weighted calculation result of the primary path is less than the set threshold, the alternative path with the highest weighted calculation result is selected as the switching path in the alternative path priority.
[0018] As a preferred embodiment of the present invention, the dual-channel communication module switches the communication channel from the main path to the alternative path after obtaining a path switching signal or path failure through the network detection module;
[0019] After completing the path switching, the dual-channel communication module changes the currently used path to the primary path and obtains the priority of the alternative path again from the remaining paths. When the number of consecutive failures of the current primary path exceeds the set number, the dual-channel communication module immediately triggers path rollback and selects the optimal path from the alternative paths again.
[0020] As a preferred embodiment of the present invention, the dual-channel communication module monitors the cloud message interface network to obtain the cloud network quality. If the cloud network quality is greater than a set threshold standard, the online mode is operated; if the cloud network quality is not greater than the set threshold standard, the offline mode is operated;
[0021] The dual-channel communication module sends the message directly to the cloud message queue in the online mode, and creates an offline mode signal and sends it to the message cache module in the offline mode.
[0022] As a preferred embodiment of the present invention, when the message cache module locally stores the message fragments, it allocates physical storage nodes based on the target chain address hash value, and at the same time attaches a SHA-256 hash value check code to the message fragments.
[0023] As a preferred embodiment of the present invention, after obtaining the online mode signal, the priority queue generation module generates a Merkle tree verification structure when obtaining the message fragment and records the verification result, wherein the verification result includes verification pass or verification fail;
[0024] After verification, the priority queue generation module combines the fragmented storage information and uploads it to the cloud via the network;
[0025] The priority queue generation module can also identify the acquired messages and classify the information into urgent instructions, regular instructions and batch instructions, wherein the urgent instructions have a higher priority than the regular instructions and the batch instructions have a higher priority.
[0026] As a preferred embodiment of the present invention, after the dynamic load balancing module obtains the communication load, it compares the communication load with the set load threshold. If the communication load is less than the set load threshold, a load remaining low priority is generated; if the communication load is greater than the set load threshold, a load remaining high priority is generated.
[0027] As a preferred embodiment of the present invention, when the priority queue generation module obtains the remaining low priority of the load, the priority queue generation module transmits all urgent instructions, regular instructions and batch instructions. After obtaining the remaining high priority of the load, the priority queue generation module classifies the current information for confirmation. If there is an urgent instruction, the transmission of the communication channel is stopped immediately, and the urgent instruction is re-exclusive to the communication channel for priority transmission. If there is a regular instruction, the regular instruction is transmitted through the remaining load, and the retention time of the regular instruction is compared. If the retention time of the regular instruction is greater than the set time threshold, the regular instruction is upgraded to an urgent instruction. The priority queue generation module always transmits the batch instruction through the remaining load of the communication channel.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] 1. In the present invention, a cloud message queue is used as the core communication hub, and a multi-layer relay architecture is constructed to solve the cross-chain communication and management problems in a network isolation environment. The cloud message queue service is used as a core component to realize the temporary storage of cross-chain messages during network isolation, dynamic selection of the optimal transmission path, and unified reception and distribution of management instructions. When the network is interrupted, the disaster recovery process can mark the untransmitted messages and automatically switch to the backup route. After the network connection is restored, the cached messages are prioritized to dynamically balance the route load and send them in a hierarchical manner according to the message priority to avoid delays in high-priority messages and ensure the timeliness of cross-chain transaction information transmission.
[0030] 2. In the present invention, through pre-processing at the sending end, physical storage nodes are allocated based on the hash value of the target chain address, and SHA-256 hash value check codes are added to the divided message fragments. When the message fragments are retrieved and uploaded, a Merkle tree verification structure is generated to ensure that the message fragments are not tampered with. Only 0.025% metadata is required, which greatly improves the verification speed. At the same time, compared with traditional CRC verification, it can locate the specific fragments where data tampering has occurred, ensure that the data has not been tampered with, and provide an efficient means of proving the integrity of fragmented data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] To facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0032] Figure 1 is a system block diagram of the present invention;
[0033] Figure 2 It is a system flow chart of the present invention. DETAILED DESCRIPTION
[0034] The following is a clear and complete description of the technical solutions of the present invention in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0035] Example 1: Please refer to Figure 1 - Figure 2 As shown in FIG, a cross-chain communication relay topology management system based on a network-restricted environment includes a network detection module, a dual-channel communication module, a message cache module, a priority queue generation module and a dynamic load balancing module.
[0036] The network detection module collects network status in real time through a network probe matrix. The network status collected by the network detection module includes end-to-end delay, packet loss rate, and bandwidth fluctuation. It then determines path availability based on the collected network status and sends the path availability judgment result to the dual-channel communication module.
[0037] The network probe matrix of the network detection module collects end-to-end delay at a frequency of 1 time per second and compares the collected end-to-end delay with a threshold (500ms). If the end-to-end delay is greater than 500ms, a path switching signal is triggered. If the end-to-end delay is less than 500ms, no response is taken.
[0038] The network detection module collects packet loss rates every five seconds and compares the detected packet loss rate with a set threshold (10%). If the packet loss rate is greater than 10%, it is considered excessive. If the network detection module detects excessive packet loss rates more than three times in a row, the path is considered failed.
[0039] The network detection module collects bandwidth fluctuations in real time and compares each monitored bandwidth fluctuation with the set initial bandwidth to obtain the bandwidth drop. If the bandwidth drop is greater than 50%, a load balancing signal is generated.
[0040] After obtaining the end-to-end delay, packet loss rate, and bandwidth fluctuation, the network detection module uses a weighted calculation formula to perform a weighted calculation on the end-to-end delay, packet loss rate, and bandwidth fluctuation of the primary and backup paths, and uses the weighted calculation result of the backup path as the backup path priority;
[0041] The specific calculation formula is: , where Score is the result of weighted calculation, i.e., path score; X is the end-to-end delay in milliseconds; Y is the packet loss rate in decimal form; and C is the remaining bandwidth ratio, i.e., C = 1 - bandwidth reduction. 0.6, 0.3, and 0.1 are the set weight values.
[0042] The weighted calculation result of the primary path is compared with the set threshold. If the weighted calculation result of the primary path is less than the set threshold, the alternative path with the highest weighted calculation result is selected as the switching path. The set threshold value is generally 0.4. That is, when the primary path score is less than 0.4, it automatically switches to the alternative path with the highest score.
[0043] The dual-channel communication module is used to control the local link interface and the cloud message interface, and switch the path based on the path availability judgment result. The path availability judgment result includes a path switching signal or path failure, which generates a route switching signal to switch the communication channel from the primary path to the alternative path;
[0044] After completing the path switching, the dual-channel communication module changes the currently used path to the primary path and obtains the priority of the alternative path again from the remaining paths. When the number of consecutive failures of the current primary path exceeds the set number, the dual-channel communication module immediately triggers path rollback and selects the optimal path among the alternative paths again.
[0045] The dual-channel communication module can also automatically switch transmission modes based on network quality. The transmission modes include online mode and offline mode. The dual-channel communication module monitors the cloud message interface network to obtain cloud network quality. If the cloud network quality exceeds the set threshold standard, that is, the delay is no more than 500ms, the dual-channel communication module runs in online mode. In online mode, the dual-channel communication module sends messages directly to the cloud message queue.
[0046] If the cloud network quality is not greater than the set threshold standard, that is, the delay is greater than 500ms, the offline mode is run. In the offline mode, an offline mode signal is created and sent to the message cache module.
[0047] Example 2: Please refer to Figure 1 - Figure 2 As shown in the figure, after the message cache module obtains the offline mode signal, it splits the cross-chain transaction information into multiple shards and stores them in the local database of the proxy node. When the message cache module stores the message shards locally, it allocates physical storage nodes based on the target chain address hash value and attaches a SHA-256 hash value check code to the message shards.
[0048] The specific process is as follows: first, the sender preprocesses the original message into 256KB fixed-size fragments, generates a SHA-256 hash value for each fragment, and then constructs a quad Merkle tree, where each intermediate node contains the hashes of four child nodes;
[0049] The priority queue generation module can obtain the online mode signal through the dual-channel communication module, and after obtaining the online mode, obtain the shard storage information through the message cache module, and submit the shard storage information in sequence according to the shard order;
[0050] After receiving the online mode signal, the priority queue generation module generates a Merkle tree verification structure when obtaining the message fragment (the leaf node is the SHA-256 hash value of the message fragment, and each layer of nodes aggregates the child node hash) and records the verification result, where the verification result includes verification pass or verification fail. The specific verification process is as follows:
[0051] S1: Transmits the root hash value (64 bytes) and specific path nodes;
[0052] S2: Pass Verification can be completed with just one hash calculation;
[0053] Compared with the traditional CRC verification method, this Merkle tree verification structure only requires 0.025% metadata,
[0054] Tree traversal, which can locate the specific shard where data tampering has occurred.
[0055] After verification, the priority queue generation module combines the shard storage information and uploads it to the cloud through the network;
[0056] After verification fails, the priority queue generation module will trigger a retransmission request for the mismatched fragments and record the verification failure rate indicator for system optimization.
[0057] Example 3: Please refer to Figure 1 - Figure 2 As shown, the priority queue generation module can also identify the acquired messages and classify the information into urgent instructions, regular instructions and batch instructions, where the priority of urgent instructions is higher than that of regular instructions and higher than that of batch instructions;
[0058] The dynamic load balancing module can calculate the communication load of the communication channel and generate a load remaining priority based on the preset load interval. The dynamic load balancing module sends the load remaining priority to the priority queue generation module. The priority queue generation module determines the information sending queue based on the load remaining priority and the priority order. The specific process is as follows:
[0059] Step 1: After the dynamic load balancing module obtains the communication load, it compares the communication load with the set load threshold. If the communication load is less than the set load threshold, a load remaining low priority is generated; if the communication load is greater than the set load threshold, a load remaining high priority is generated;
[0060] Step 2: When the priority queue generation module obtains the remaining low priority of the load, it transmits the urgent instructions, regular instructions and batch instructions. After obtaining the remaining high priority of the load, the priority queue generation module classifies the current information for confirmation. If there is an urgent instruction, the transmission of the communication channel is stopped immediately, and the urgent instruction is re-exclusive to the communication channel for priority transmission. If there is a regular instruction, the regular instruction is transmitted through the remaining load, and the retention time of the regular instruction is compared. If the retention time of the regular instruction is greater than the set time threshold, the regular instruction is upgraded to an urgent instruction. The time threshold, that is, the maximum delay tolerance, is 2 seconds. The priority queue generation module always transmits the batch instruction through the remaining load of the communication channel.
[0061] The preferred embodiments of the present invention disclosed above are intended only to help illustrate the present invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the present invention to specific embodiments. Obviously, many modifications and variations are possible based on the contents of this specification. These embodiments are selected and described in detail in this specification to better explain the principles and practical applications of the present invention, thereby enabling those skilled in the art to better understand and utilize the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A cross-chain communication relay topology management system based on a network-restricted environment, characterized by: It includes network detection module, dual-channel communication module, message cache module, priority queue generation module and dynamic load balancing module; The network detection module collects network status in real time through the network probe matrix, and makes a path availability judgment based on the collected network status, and sends the path availability judgment result to the dual-channel communication module; The dual-channel communication module is used to control the local link interface and the cloud message interface, and switch the path according to the path availability judgment result, generating a route switching signal. The dual-channel communication module can also automatically switch the transmission mode according to the network quality. The transmission mode includes online mode and offline mode. After the dual-channel communication module generates the offline mode, it sends the offline mode signal to the message cache module. After receiving the offline mode signal, the message cache module splits the cross-chain transaction information into multiple shards and stores them in the local database of the proxy node; The priority queue generation module can obtain the online mode signal through the dual-channel communication module, and after obtaining the online mode, obtain the fragmented storage information through the message buffer module, and submit the fragmented storage information in sequence according to the fragment order. The priority queue generation module can also classify the information types and assign priority orders according to the information types; The dynamic load balancing module can calculate the communication load of the communication channel and generate a load remaining priority based on the preset load interval. The dynamic load balancing module sends the load remaining priority to the priority queue generation module, and the priority queue generation module determines the information sending queue based on the load remaining priority and the priority order.
2. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: The network status collected by the network detection module includes end-to-end delay, packet loss rate and bandwidth fluctuation. The network probe matrix of the network detection module collects the end-to-end delay at a frequency of a times per second and compares the collected end-to-end delay with a threshold. If the end-to-end delay is greater than the threshold, a path switching signal is triggered. The network detection module collects packet loss rates at a frequency of b times per second and compares the detected packet loss rate with a set threshold. If the packet loss rate is greater than the threshold, the packet loss rate is determined to be too high. The network detection module determines that the path is failed when the number of consecutive determinations of the packet loss rate being too high exceeds a set number. The network detection module collects bandwidth fluctuations in real-time monitoring mode, and compares each monitored bandwidth fluctuation with the set initial bandwidth to obtain the bandwidth drop amplitude. If the bandwidth drop amplitude is greater than the set amplitude threshold, a load balancing signal is generated.
3. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 2 is characterized in that: After obtaining the end-to-end delay, packet loss rate, and bandwidth fluctuation, the network detection module performs weighted calculation on the end-to-end delay, packet loss rate, and bandwidth fluctuation of the primary path and the alternative path using a weighted calculation formula, and uses the weighted calculation result of the alternative path as the alternative path priority; The weighted calculation result of the primary path is compared with a set threshold. If the weighted calculation result of the primary path is less than the set threshold, the alternative path with the highest weighted calculation result is selected as the switching path in the alternative path priority.
4. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: The dual-channel communication module switches the communication channel from the main path to the alternative path after obtaining a path switching signal or a path failure through the network detection module; After completing the path switching, the dual-channel communication module changes the currently used path to the primary path and obtains the priority of the alternative path again from the remaining paths. When the number of consecutive failures of the current primary path exceeds the set number, the dual-channel communication module immediately triggers path rollback and selects the optimal path from the alternative paths again.
5. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: The dual-channel communication module monitors the cloud message interface network to obtain the cloud network quality. If the cloud network quality is greater than a set threshold standard, the online mode is operated; if the cloud network quality is not greater than the set threshold standard, the offline mode is operated; The dual-channel communication module sends the message directly to the cloud message queue in the online mode, and creates an offline mode signal and sends it to the message cache module in the offline mode.
6. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: When the message cache module stores the message fragment locally, it allocates a physical storage node based on the target chain address hash value, and at the same time adds a SHA-256 hash value check code to the message fragment.
7. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: After obtaining the online mode signal, the priority queue generation module generates a Merkle tree verification structure when obtaining the message fragment, and records the verification result, wherein the verification result includes verification pass or verification fail; After verification, the priority queue generation module combines the fragmented storage information and uploads it to the cloud via the network; The priority queue generation module can also identify the acquired messages and classify the information into urgent instructions, regular instructions and batch instructions, wherein the urgent instructions have a higher priority than the regular instructions and the batch instructions have a higher priority.
8. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: After the dynamic load balancing module obtains the communication load, it compares the communication load with the set load threshold. If the communication load is less than the set load threshold, a load remaining low priority is generated; if the communication load is greater than the set load threshold, a load remaining high priority is generated.
9. The cross-chain communication relay topology management system based on a network-restricted environment according to claim 1 is characterized in that: When the priority queue generation module obtains the remaining low priority of the load, it transmits the urgent instructions, regular instructions and batch instructions. After obtaining the remaining high priority of the load, the priority queue generation module classifies the current information for confirmation. If there is an urgent instruction, the transmission of the communication channel is stopped immediately, and the urgent instruction is re-exclusive to the communication channel for priority transmission. If there is a regular instruction, the regular instruction is transmitted through the remaining load, and the retention time of the regular instruction is compared. If the retention time of the regular instruction is greater than the set time threshold, the regular instruction is upgraded to an urgent instruction. The priority queue generation module always transmits the batch instruction through the remaining load of the communication channel.
Citation Information
Patent Citations
Commodity data management method and device and server
CN114528343A
Method and system for processing network data
CN102468989A
Online-offline collaborative electronic medical record data sharing method based on alliance chain
CN112559627A
Mixing online investigation method based on edge calculation
CN116051174A
Cleaning and spraying data management system based on block chain
CN120336432A