Industrial data synchronization method based on block chain

By developing an industrial data synchronization method on blockchain technology, using constraint coefficients and timestamp similarity to determine the conflict processing method, and selecting the transmission method based on synchronization requirements and node radiation coefficients, the problem of low data synchronization efficiency in the existing technology is solved, and more efficient and reliable data synchronization is achieved.

CN119967009AInactive Publication Date: 2025-05-09GUIZHOU WUJIANG HYDROPOWER DEV CO LTD WUJIANGDU POWER PLANT +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510132542.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-05-09
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, data transmission is only based on the priority of the data sequence, and adaptive adjustments are not possible to be made to the transmission method according to the actual transmission status, resulting in poor data synchronization efficiency.

Method used

Through the blockchain-based industrial data synchronization method, conflict nodes are determined using constraint coefficients, and conflict processing methods are selected based on timestamp similarity; synchronization status of synchronization nodes is determined based on synchronization demand coefficients and node radiation coefficients, and appropriate transmission methods are selected; in synchronous transmission and interval transmission, data transmission is optimized according to node combination method and relay node selection method.

Benefits of technology

By adaptively selecting conflict processing methods and transmission methods, the reliability and stability of data synchronization are improved, the efficiency of data synchronization is significantly improved, and resource utilization efficiency is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967009A_ABST
    Figure CN119967009A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data synchronization, in particular to a block chain-based industrial data synchronization method, which comprises the following steps of: determining conflict nodes according to a constraint coefficient, and performing conflict detection on each node to be detected to determine a conflict processing mode; determining a synchronization state of the synchronization node according to the synchronization demand coefficient and the node radiation coefficient, and determining a transmission mode of change data according to the synchronization state; in the synchronous transmission, a node combination mode is determined based on a synchronous node proportion and a synchronous node distribution coefficient, and transmission is carried out by adopting each interactively combined main node; in the interval transmission, a synchronization combination is determined according to a synchronization demand coefficient, an optimization mode is determined based on a transmission interval reference value, and the optimization mode is that a relay node is adopted for transmission or a synchronization node is adopted for direct transmission; according to the invention, adaptive adjustment can be carried out on the transmission mode according to the actual transmission state, thereby improving the data synchronization efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data synchronization, and in particular to an industrial data synchronization method based on blockchain. Background Art

[0002] In the industrial production process, blockchain technology is often used to achieve data exchange and synchronization between production equipment, sensors, and control systems to ensure smooth and efficient production processes. However, traditional data synchronization methods often have problems such as data delay, loss or inconsistency, resulting in poor data synchronization efficiency, which seriously affects the stability and efficiency of industrial production. Therefore, how to choose a suitable data transmission method to improve the stability of industrial production is a technical problem that technicians in this field need to solve urgently.

[0003] Chinese patent publication number CN116049209A discloses a distributed data synchronization method for the industrial Internet, including: S1: the central server generates a data sequence according to the order in which each industrial time series data is uploaded; S2: the central server calculates the data importance of the data sequence and arranges the initial synchronization priority of each data sequence; S3: the central server adjusts the sequence synchronization priority of the data sequence in the central server according to the real-time access volume of the data sequence; S4: the central server synchronizes the data sequence to the server to be synchronized according to the sequence synchronization priority of the data sequence; S5: after synchronizing the data sequence to the server to be synchronized, the data sequence is continued to be compared with the sequence synchronization priority of the data sequence in the server to be synchronized, and the sequence number of each data sequence in the server to be synchronized is adjusted. It can be seen that the above technical solution has the following problems: data transmission is performed only based on the priority of the data sequence, and the transmission mode cannot be adaptively adjusted according to the actual transmission status, resulting in poor data synchronization efficiency. Summary of the invention

[0004] To this end, the present invention provides an industrial data synchronization method based on blockchain to overcome the problem that the prior art only transmits data based on the priority of the data sequence and cannot adaptively adjust the transmission mode according to the actual transmission status, resulting in poor data synchronization efficiency.

[0005] To achieve the above objectives, the present invention provides an industrial data synchronization method based on blockchain, comprising:

[0006] Determine the conflicting nodes according to the constraint coefficients, perform conflict detection on each node to be detected to determine the conflict handling method, which is to determine the redundant nodes according to the data update frequency and node sensitivity or to determine the redundant nodes according to the update time;

[0007] Determine the synchronization state of the synchronization node according to the synchronization demand coefficient and the node radiation coefficient, and determine the transmission method of the change data according to the synchronization state;

[0008] In synchronous transmission, the node combination mode is determined based on the proportion of synchronous nodes and the distribution coefficient of synchronous nodes. The node combination mode is to determine the interactive combination according to the distance reference value and the transmission coefficient or to determine the interactive combination according to the association set, and use the master node of each interactive combination for transmission;

[0009] In the interval transmission, the synchronization combination is determined according to the synchronization requirement coefficient, and the optimization method is determined based on the transmission interval reference value. The optimization method is to use relay nodes for transmission or use synchronization nodes for direct transmission;

[0010] When relay nodes are used for transmission, the number of relay nodes is determined according to the transmission interval reference value, and the relay node selection method is determined based on the pre-selected node influence coefficient, and the relay node is selected according to the transmission influence coefficient for transmission for the synchronous combination.

[0011] Furthermore, when performing conflict detection on a single node to be detected, if there is a conflicting node, the conflict handling method is determined based on the timestamp similarity;

[0012] If the timestamp similarity is greater than or equal to the preset timestamp similarity, the conflict resolution method is to determine the redundant node according to the node sensitivity;

[0013] If the timestamp similarity is less than the preset timestamp similarity, the conflict resolution method is to determine the redundant node based on the update time;

[0014] The node to be detected is an edge node whose network traffic change value is greater than or equal to a preset network traffic reference value, and the conflict node is a node to be detected whose constraint coefficient is greater than a preset constraint coefficient.

[0015] Further, the synchronization state of the synchronization node is determined according to the synchronization demand coefficient and the node radiation coefficient, and the synchronization state includes:

[0016] A first synchronization state in which the synchronization demand coefficient is greater than or equal to a preset synchronization demand coefficient or the node radiation coefficient is less than a preset node radiation coefficient;

[0017] A second synchronization state in which the synchronization demand coefficient is less than a preset synchronization demand coefficient and the node radiation coefficient is greater than or equal to the preset node radiation coefficient;

[0018] The synchronization nodes are other nodes to be detected excluding redundant nodes.

[0019] Further, the synchronization demand coefficient is determined according to the update coefficient;

[0020] If the update coefficient is less than the preset update coefficient, the synchronization demand coefficient is determined according to the data dependency coefficient;

[0021] If the update coefficient is greater than or equal to the preset update coefficient, the synchronization requirement coefficient is determined according to the data change value.

[0022] Furthermore, in the first synchronization state, the transmission mode is synchronous transmission, wherein:

[0023] Perform synchronization analysis on each synchronization node. When performing synchronization analysis on a single synchronization node, record the synchronization node as the target synchronization node, record the interaction combination where the target synchronization is located as the target interaction combination, record other interaction combinations outside the target interaction combination as reference interaction combinations, and transmit the change data of the target synchronization node to the master nodes of each reference interaction combination through the master node in the target interaction combination, and then transmit it in parallel through each influencing master node;

[0024] When parallel transmission is performed through a single influencing master node, the influencing master node is recorded as the target influencing master node, and the change data of the target synchronization node is transmitted to the secondary node of the interactive combination corresponding to the target influencing master node through the target influencing master node;

[0025] The influencing master nodes include the master nodes in the target interaction combination and the master nodes of each reference interaction combination.

[0026] Furthermore, the node combination method is determined according to the synchronization node ratio and the synchronization node distribution coefficient;

[0027] If the synchronization node ratio is greater than or equal to the preset synchronization node ratio or the synchronization node distribution coefficient is less than the preset synchronization node distribution coefficient, the node combination method is to determine the interactive combination according to the distance reference value and the transmission coefficient;

[0028] If the synchronization node ratio is less than the preset synchronization node ratio and the synchronization node distribution coefficient is greater than or equal to the preset synchronization node distribution coefficient, the node combination method is to determine the interactive combination according to the associated set, wherein the interactive combination includes the specific set and each associated set;

[0029] The specific set is a set of valid nodes that are not recorded in the associated set. The associated set is determined according to the interaction distance. The valid nodes are the edge nodes except the redundant nodes.

[0030] Furthermore, the number of master nodes is determined according to the interaction influence coefficient, and the master nodes are selected in descending order according to the combined influence value;

[0031] The number of master nodes is negatively correlated with the interaction influence coefficient.

[0032] Furthermore, in the second synchronization state, the transmission mode is interval transmission, wherein:

[0033] Transmit the synchronization combination corresponding to each synchronization node. When transmitting the synchronization combination corresponding to a single synchronization node, determine the priority coefficient of each synchronization combination transmission according to the sub-synchronization mean value, and determine the transmission interval reference value of each synchronization combination according to the transmission influence coefficient. When transmitting a single synchronization combination to a single valid node, select the relay node with the smallest transmission influence coefficient for transmission;

[0034] The priority coefficient of a single synchronization combination transmission is positively correlated with the sub-synchronization mean corresponding to the synchronization combination;

[0035] The synchronization combination is determined according to the synchronization requirement coefficient, and the transmission interval reference value is positively correlated with the transmission influence coefficient.

[0036] Further, determining an optimization method according to the transmission interval reference value;

[0037] If the transmission interval reference value is greater than or equal to the preset transmission interval reference value, the optimization method is to use a relay node for transmission;

[0038] If the transmission interval reference value is less than the preset transmission interval reference value, the optimization method is to use the synchronous node for direct transmission.

[0039] Furthermore, when relay nodes are used for transmission, the number of relay nodes is determined according to a transmission interval reference value, and a relay node selection method is determined according to a pre-selected node influence coefficient;

[0040] If the influence coefficient of the pre-selected node is greater than or equal to the preset influence coefficient of the pre-selected node, the relay node selection method is to select the pre-selected node as the relay node according to the order of the radiation value of the sub-node from large to small;

[0041] If the pre-selected node influence coefficient is less than the preset pre-selected node influence coefficient, the relay node selection method is to select the pre-selected node as the relay node according to the order of the node processing factor from large to small;

[0042] The pre-selected node is a valid node whose influence threshold with a single synchronization node is less than a preset influence threshold.

[0043] Compared with the prior art, the beneficial effect of the present invention lies in that, in the technical scheme of the present invention, the constraint coefficient is used to effectively reflect the conflict degree of the node to be detected, and then the conflict node is determined according to the constraint coefficient, and the timestamp similarity is used to effectively reflect the modification time similarity of the conflict node, and then different conflict handling methods are adaptively selected according to the timestamp similarity, so that the selection of the conflict handling method is more in line with the actual application scenario, and can reduce the problems of synchronization time delay and data loss caused by the conflict, thereby improving the reliability and stability of data synchronization.

[0044] Furthermore, the present invention determines the synchronization state of the synchronization node based on the synchronization demand coefficient and the node radiation coefficient. The synchronization demand coefficient and the node radiation coefficient effectively reflect the complexity of the changed data in the synchronization node and the difficulty of data transmission. Different transmission modes are adaptively selected according to the synchronization state, so that the selection of transmission mode is more in line with the actual application scenario, which can significantly improve the efficiency of data synchronization and optimize resource utilization efficiency.

[0045] Furthermore, the present invention effectively reflects the distribution status of synchronization nodes through the synchronization node proportion and the synchronization node distribution coefficient, and then adaptively selects different node combination methods based on the synchronization node proportion and the synchronization node distribution coefficient, so that the determination of the interaction combination is more in line with the actual application scenario, avoiding interaction delays and bottlenecks caused by improper selection of interaction combinations, improving data transmission efficiency, and thus improving the reliability of data synchronization.

[0046] Furthermore, in the present invention, the synchronization requirement coefficient is used to effectively reflect the demand for timely transmission of data segments in the synchronization node, and then the synchronization combination is determined according to the synchronization requirement coefficient, thereby reducing congestion and delays in the transmission of critical data. The transmission interval reference value of the synchronization combination is used to effectively reflect the data transmission delay, and then the optimization method is determined according to the transmission interval reference value, thereby avoiding the problem of long data synchronization time. It is helpful to select a more reasonable data transmission strategy when the data transmission difficulty is high, ensuring the timely transmission of critical data, while avoiding congestion and delays of non-critical data, thereby reducing data transmission delays and errors.

[0047] Furthermore, the present invention effectively reflects the degree of influence of the pre-selected node on data synchronization through the pre-selected node influence coefficient, and then adaptively selects different relay node selection methods based on the pre-selected node influence coefficient, so that the selection of relay nodes is more in line with the actual application scenario, and can give priority to those nodes that can significantly improve the data synchronization efficiency, which can not only speed up the speed of data synchronization but also reduce data loss, errors or delays, thereby improving the reliability of data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of the industrial data synchronization method based on blockchain of the present invention;

[0049] Figure 2 A flowchart of the present invention for determining a conflict handling method based on timestamp similarity;

[0050] Figure 3 A flow chart of the present invention for determining a transmission mode of change data according to a synchronization state;

[0051] Figure 4The present invention is a flow chart of determining a node combination method based on a synchronization node ratio and a synchronization node distribution coefficient. DETAILED DESCRIPTION

[0052] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0053] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0054] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0055] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0056] See also Figures 1 to 4 As shown, the present invention provides an industrial data synchronization method based on blockchain, comprising:

[0057] Determine the conflicting nodes according to the constraint coefficients, perform conflict detection on each node to be detected to determine the conflict handling method, which is to determine the redundant nodes according to the data update frequency and node sensitivity or to determine the redundant nodes according to the update time;

[0058] Determine the synchronization state of the synchronization node according to the synchronization demand coefficient and the node radiation coefficient, and determine the transmission method of the change data according to the synchronization state;

[0059] In synchronous transmission, the node combination mode is determined based on the proportion of synchronous nodes and the distribution coefficient of synchronous nodes. The node combination mode is to determine the interactive combination according to the distance reference value and the transmission coefficient or to determine the interactive combination according to the association set, and use the master node of each interactive combination for transmission;

[0060] In the interval transmission, the synchronization combination is determined according to the synchronization requirement coefficient, and the optimization method is determined based on the transmission interval reference value. The optimization method is to use relay nodes for transmission or use synchronization nodes for direct transmission;

[0061] When relay nodes are used for transmission, the number of relay nodes is determined according to the transmission interval reference value, and the relay node selection method is determined based on the pre-selected node influence coefficient, and the relay node is selected according to the transmission influence coefficient for transmission for the synchronous combination.

[0062] The application scenario of the present invention is the transmission of incremental data in industrial data synchronization. Each node to be detected corresponds to an incremental data. A single incremental data contains several incremental paragraphs. The incremental paragraph is the data part that changes or increases in a single data item. A single incremental paragraph contains data values ​​corresponding to several time points. Each edge node stores several data items. The data items are monitoring parameters of industrial equipment monitored in real time during historical use. The monitoring parameters include but are not limited to temperature, rotation speed, flow rate, amplitude and pressure. The time point is set by the user. A method for setting the time point is provided. Every 1s is recorded as a time point, that is, the monitoring parameters are recorded once every 1s. The industrial equipment includes but is not limited to mechanical equipment, thermal equipment and chemical equipment. This is easy for technicians in this field to understand and will not be described in detail.

[0063] In the present invention, several historical records are correspondingly set up, and any historical record records the number of radiation nodes, synchronization demand coefficient, node radiation coefficient, distance reference value, transmission coefficient, synchronization node distribution coefficient and transmission interval reference value in the historical process of at least one industrial data synchronization, and each historical record corresponds to a qualified mark, which records whether the transmission effect of the incremental data meets user requirements, and the qualified mark can be recorded manually.

[0064] The present invention is provided with a continuously cyclic monitoring cycle, and the data status is determined once at the end of each monitoring cycle. The duration of the monitoring cycle can be set according to the needs of the user. The greater the user's demand for the accuracy of data status monitoring, the shorter the monitoring cycle duration. A value of the monitoring cycle is provided, and the monitoring cycle is 30s.

[0065] Specifically, when performing conflict detection on a single node to be detected, if there is a conflicting node, the conflict handling method is determined based on the timestamp similarity;

[0066] If the timestamp similarity is greater than or equal to the preset timestamp similarity, the conflict resolution method is to determine the redundant node according to the node sensitivity;

[0067] If the timestamp similarity is less than the preset timestamp similarity, the conflict resolution method is to determine the redundant node based on the update time;

[0068] The node to be detected is an edge node whose network traffic change value is greater than or equal to a preset network traffic reference value, and the conflict node is a node to be detected whose constraint coefficient is greater than a preset constraint coefficient.

[0069] It is understandable that when performing conflict detection on a single node to be detected, if there is no conflicting node, there is no need to perform conflict detection on the node to be detected;

[0070] The constraint coefficient is confirmed by detecting the data items corresponding to each incremental segment in the two nodes to be detected and recording them as changed data items, recording the changed data items existing in both nodes to be detected as target data items, and the constraint coefficient is the average value of the change coefficients corresponding to the target data items;

[0071] The confirmation method of the coefficient of change corresponding to a single target data item is:

[0072] When the data item similarity is greater than or equal to the preset data item similarity, the change coefficient = 0.5 + lgK, where K is the data item similarity; the two incremental paragraphs corresponding to the single target data item are recorded as target paragraphs, and the maximum number of data points corresponding to the two target paragraphs is recorded as Q, and the data item similarity = the number of data points in the same data paragraphs in the two target paragraphs / Q;

[0073] When the data item similarity is less than the preset data item similarity, if the hash values ​​corresponding to the two target paragraphs are the same, the change coefficient is 1, if the hash values ​​are different, the change coefficient is 0. The hash value is obtained by inputting the two target paragraphs into the hash function respectively. The hash functions used include but are not limited to MD5, SHA-1, and SHA-256. Users can choose according to actual needs without specific restrictions.

[0074] The value of the preset data item similarity can be determined by the user according to the actual application scenario. The smaller the value of the preset data item similarity is, the greater the need for the user to determine the change coefficient according to the data item similarity is. A value of the preset data item similarity is provided, and the preset data item similarity is 80%;

[0075] When performing conflict detection on a single node to be detected, the node to be detected and the conflicting node corresponding to the node to be detected are both recorded as reference nodes;

[0076] If the timestamp similarity is greater than or equal to the preset timestamp similarity, the conflict handling method is to determine the redundant nodes according to the node sensitivity, and record each reference node other than the reference node with the largest node sensitivity as a redundant node;

[0077] If the timestamp similarity is less than the preset timestamp similarity, the conflict handling method is to determine the redundant node according to the update time, and record each reference node other than the reference node with the update time closest to the current time as a redundant node;

[0078] The confirmation method of timestamp similarity is to record the update time of each reference node that is closest to the current time as a1, and the one that is least close as a2. Timestamp similarity = 1 / (a1-a2). The update time is the time point when the newly added or changed data part appears in the data item of a single node to be detected.

[0079] The node sensitivity is confirmed by:

[0080] If the number of radiation nodes is less than the preset number of radiation nodes, the node sensitivity is positively correlated with the node connectivity coefficient;

[0081] If the number of radiation nodes is greater than or equal to the preset number of radiation nodes, the node sensitivity is positively correlated with the node update frequency;

[0082] The method for confirming the number of radiation nodes and the node connectivity coefficient is to detect the radiation area corresponding to each reference node. For a single reference node, the reference node is recorded as the first reference node, and each reference node other than the first reference node is recorded as the second reference node. The number of edge nodes in the area where the radiation area corresponding to the first reference node overlaps with the radiation area corresponding to the second reference node is recorded as the number of radiation nodes corresponding to the first reference node; the node connectivity coefficient corresponding to the first reference node = node influence distance + the number of radiation nodes corresponding to the first reference node, and the node influence coefficient is the average value of the shortest distance from the first reference node to each second reference node; the radiation area corresponding to a single reference node is a circle with the reference node as the center and the interaction distance as the center. The value of the interaction distance can be determined by the user according to actual needs. A value of the interaction distance is provided, and the interaction distance is 10m;

[0083] The node update frequency is the number of times the incremental data is updated in a single reference node within a historical monitoring period, and the historical monitoring period is the monitoring period before the current monitoring period;

[0084] The network traffic change value is confirmed in the following way: for a single edge node, the edge node is recorded as the target edge node, and the network traffic change value = the maximum value of the amount of data monitored by the target edge node in the current monitoring period - the minimum value of the amount of data monitored by the target edge node in the current monitoring period;

[0085] The values ​​of the preset constraint coefficient, preset timestamp similarity, preset number of radiation nodes and preset network traffic reference value can be determined by the user according to the actual application scenario. The greater the user's demand for reducing data conflicts, the smaller the value of the preset constraint coefficient. A value of the preset constraint coefficient is provided, and the preset constraint coefficient is 0.8; the greater the value of the preset timestamp similarity, the greater the user's demand for determining redundant nodes according to the update time. A value of the preset timestamp similarity is provided, and the preset timestamp similarity is 70%; the greater the value of the preset number of radiation nodes, the greater the user's demand for determining node sensitivity according to node update frequency. A value of the preset number of radiation nodes is provided, and the historical records of determining node sensitivity according to node update frequency are detected, and the average value of the number of radiation nodes corresponding to the historical records that can meet the user's needs is recorded as the preset number of radiation nodes; the greater the user's demand for data synchronization, the smaller the value of the preset network traffic reference value. A value of the preset network traffic reference value is provided, and the average value of the network traffic reference value corresponding to the historical records that can meet the user's needs is recorded as the preset network traffic reference value.

[0086] Specifically, the synchronization state of the synchronization node is determined according to the synchronization demand coefficient and the node radiation coefficient. The synchronization state includes:

[0087] A first synchronization state in which the synchronization demand coefficient is greater than or equal to a preset synchronization demand coefficient or the node radiation coefficient is less than a preset node radiation coefficient;

[0088] A second synchronization state in which the synchronization demand coefficient is less than a preset synchronization demand coefficient and the node radiation coefficient is greater than or equal to the preset node radiation coefficient;

[0089] The synchronization nodes are other nodes to be detected excluding redundant nodes.

[0090] Among them, the confirmation method of the node radiation coefficient is:

[0091] If the number of ring paths is greater than the standard number, the node radiation coefficient = the number of ring paths + the number of synchronous nodes in each ring path;

[0092] If the number of ring paths is equal to the standard number, the node radiation coefficient = the total number of synchronous nodes + the synchronous node distribution coefficient;

[0093] The standard number is 1. The method for confirming the ring path is that for a single valid node, the valid node is recorded as the target valid node, and the path from the target valid node through several valid nodes to the target valid node is recorded as a ring path; the method for confirming the synchronization node distribution coefficient is that the average value of the reference distances corresponding to each synchronization node is recorded as the synchronization node distribution coefficient, for a single synchronization node, the synchronization node is recorded as the target synchronization node, the other synchronization nodes other than the target synchronization node are recorded as reference synchronization nodes, and the minimum value of the shortest distances from the target synchronization node to each reference synchronization node is recorded as the reference distance corresponding to the target synchronization node;

[0094] The values ​​of the preset synchronization demand coefficient and the preset node radiation coefficient can be determined by the user according to the actual application scenario. The smaller the value of the preset synchronization demand coefficient and the larger the value of the preset node radiation coefficient, the greater the user's demand for synchronous transmission. A value of a preset synchronization demand coefficient and a preset node radiation coefficient is provided, and the historical records of synchronous transmission are detected. The average value of the synchronization demand coefficient corresponding to the historical records that can meet the user's needs is recorded as the preset synchronization demand coefficient, and the average value of the node radiation coefficient corresponding to the historical records that can meet the user's needs is recorded as the preset node radiation coefficient.

[0095] Specifically, the synchronization demand coefficient is determined according to the update coefficient;

[0096] If the update coefficient is less than the preset update coefficient, the synchronization demand coefficient is determined according to the data dependency coefficient;

[0097] If the update coefficient is greater than or equal to the preset update coefficient, the synchronization requirement coefficient is determined according to the data change value.

[0098] Among them, the update coefficient is the number of times a single synchronization node updates the incremental data within the current monitoring cycle; the value of the preset update coefficient can be determined by the user according to the actual application scenario. The larger the value of the preset update coefficient, the greater the user's demand for determining the synchronization demand coefficient based on the data dependency coefficient. A value of the preset update coefficient is provided, and the historical records of determining the synchronization demand coefficient based on the data change value are detected, and the average value of the update coefficient corresponding to the historical records that can meet the user's needs is recorded as the preset update coefficient;

[0099] When the update coefficient is less than the preset update coefficient, the synchronization demand coefficient is positively correlated with the data dependence coefficient;

[0100] When the update coefficient is greater than or equal to the preset update coefficient, the synchronization demand coefficient is positively correlated with the data change value;

[0101] The data dependency coefficient is the average of the data dependency means corresponding to each incremental paragraph in a single synchronization node. The data dependency mean is confirmed in that, for a single incremental paragraph in a single synchronization node, the incremental paragraph is recorded as a target incremental paragraph, and other incremental paragraphs other than the target incremental paragraph in the synchronization node are recorded as reference incremental paragraphs. The data dependency mean is the average of the dependency reference values ​​corresponding to the target incremental paragraph and each reference incremental paragraph.

[0102] If the number of time points in two incremental sections is different, data preprocessing is required to make the number of time points in the two incremental sections the same, and the data preprocessing includes: comparing the number of time points in the two incremental sections, recording the number of time points corresponding to the incremental section with a smaller number of time points as the reference number of time points, and in the incremental section with a larger number of time points, starting from the first time point, retaining the time points equal to the reference number of time points, deleting the data values ​​corresponding to all time points exceeding the reference number of time points, and recording the incremental section that has undergone data preprocessing as the preprocessed incremental section;

[0103] For the two incremental paragraphs corresponding to a single target data item, the calculation formula for the dependent reference value r corresponding to the two incremental paragraphs is:

[0104]

[0105] Where n is the number of time points in a single preprocessing increment; x i and i are the values ​​of the i-th time point in the two preprocessing increment sections, For x i The average value of the corresponding preprocessing increment paragraph, for y i The average value of the corresponding preprocessing increment segment, i = 1, 2, 3, ..., n;

[0106] The data change value is the average value of the sub-data change values ​​corresponding to each incremental paragraph in a single synchronization node; the sub-data change value = change length coefficient + fluctuation change value, the change length coefficient is the number of data points corresponding to a single incremental paragraph; the fluctuation change value is confirmed by recording the absolute value of the difference between the standard deviation of the data values ​​corresponding to each data point in the data item before the incremental paragraph changes and the standard deviation of the data values ​​corresponding to each data point in the incremental paragraph as the fluctuation change value.

[0107] Specifically, in the first synchronization state, the transmission mode is synchronous transmission, wherein:

[0108] Perform synchronization analysis on each synchronization node. When performing synchronization analysis on a single synchronization node, record the synchronization node as the target synchronization node, record the interaction combination where the target synchronization is located as the target interaction combination, record other interaction combinations outside the target interaction combination as reference interaction combinations, and transmit the change data of the target synchronization node to the master nodes of each reference interaction combination through the master node in the target interaction combination, and then transmit it in parallel through each influencing master node;

[0109] When parallel transmission is performed through a single influencing master node, the influencing master node is recorded as the target influencing master node, and the change data of the target synchronization node is transmitted to the secondary node of the interactive combination corresponding to the target influencing master node through the target influencing master node;

[0110] The influencing master nodes include the master nodes in the target interaction combination and the master nodes of each reference interaction combination.

[0111] Specifically, the node combination method is determined according to the synchronization node ratio and the synchronization node distribution coefficient;

[0112] If the synchronization node ratio is greater than or equal to the preset synchronization node ratio or the synchronization node distribution coefficient is less than the preset synchronization node distribution coefficient, the node combination method is to determine the interactive combination according to the distance reference value and the transmission coefficient;

[0113] If the synchronization node ratio is less than the preset synchronization node ratio and the synchronization node distribution coefficient is greater than or equal to the preset synchronization node distribution coefficient, the node combination method is to determine the interactive combination according to the associated set, wherein the interactive combination includes the specific set and each associated set;

[0114] The specific set is a set of valid nodes that are not recorded in the associated set. The associated set is determined according to the interaction distance. The valid nodes are the edge nodes except the redundant nodes.

[0115] Wherein, determining the interactive combination according to the distance reference value and the transmission coefficient includes: performing a combination analysis on each valid node, when performing a combination analysis on a single valid node, recording the valid node as a target valid node, recording other valid nodes other than the target valid node as reference valid nodes, recording a set of reference valid nodes and target valid nodes whose distance reference value to the target valid node is less than a preset distance reference value and whose transmission coefficient is less than a preset transmission coefficient as an interactive combination, and continuing to perform a combination analysis on valid nodes that are not recorded as interactive combinations until all valid nodes are recorded as interactive combinations;

[0116] The association set is determined according to the interaction distance, wherein an association detection is performed on each synchronization node. When an association detection is performed on a single synchronization node, a set of valid nodes within a circle with the synchronization node as the center and the interaction distance as the radius is recorded as an association set, and association detection is continued for synchronization nodes not recorded in the association set until all synchronization nodes are counted in the association set, and the set of valid nodes not recorded in the association combination and each association set are recorded as an interaction combination;

[0117] The distance reference value is the shortest distance between any two valid nodes, and the transmission coefficient is the maximum amount of data that can be transmitted from one valid node to another valid node during its monitoring period, in GB;

[0118] The values ​​of the preset distance reference value and the preset transmission coefficient can be determined by the user according to the actual application scenario. It can be understood that the smaller the values ​​of the preset distance reference value and the preset transmission coefficient are, the higher the user's demand for improving the stability of data transmission in the interactive combination is. A value of a preset distance reference value and a preset transmission coefficient is provided, and the historical records of determining the interactive combination according to the distance reference value and the transmission coefficient are detected, and the average value of the distance reference values ​​corresponding to the historical records that can meet the user's needs is recorded as the preset distance reference value, and the average value of the transmission coefficients corresponding to the historical records that can meet the user's needs is recorded as the preset transmission coefficient;

[0119] Synchronization node ratio = number of synchronization nodes / number of valid nodes. The values ​​of the preset synchronization node ratio and the preset synchronization node distribution coefficient can be determined by the user according to the actual application scenario. It can be understood that the larger the value of the preset synchronization node ratio and the smaller the value of the preset synchronization node distribution coefficient, the greater the user's demand for determining the interaction combination according to the associated set. By taking the values ​​of the preset synchronization node ratio and the preset synchronization node distribution coefficient, the preset synchronization node ratio is 30%, and the historical records of determining the interaction combination according to the associated set are detected, and the average value of the synchronization node distribution coefficient corresponding to the historical records that can meet the user's needs is recorded as the preset synchronization node distribution coefficient.

[0120] Specifically, the number of master nodes is determined based on the interaction influence coefficient, and the master nodes are selected in descending order based on the combined influence value;

[0121] The number of master nodes is negatively correlated with the interaction influence coefficient.

[0122] Among them, the confirmation method of the interaction influence coefficient and the combination influence value is as follows: for a single interaction combination, the interaction combination is recorded as the target interaction combination, and other interaction combinations other than the target interaction combination are recorded as reference interaction combinations. The area of ​​the area where the influence area corresponding to the target interaction combination overlaps with the influence area corresponding to each reference interaction combination is recorded as A1, and the area of ​​the influence area corresponding to the target interaction combination is recorded as A2. The interaction influence coefficient corresponding to the target interaction combination = A1 / A2; for a single valid node in the target interaction combination, the valid node is recorded as the target valid node, and the combination influence value corresponding to the target valid node is the average value of the shortest distance from the target valid node to the center point corresponding to each reference interaction combination; the influence area corresponding to a single interaction combination is the minimum rectangular area that can include each valid node in the interaction combination; the center point corresponding to a single reference interaction combination is the center of the circumscribed circle of the influence area corresponding to the reference interaction combination;

[0123] When selecting the master node according to the order of combined influence values ​​from large to small, the number of master nodes determined according to the interaction influence coefficient is recorded as z, and z valid nodes are selected as master nodes according to the order of combined influence values ​​from large to small. It should be noted that the minimum value of z is 1.

[0124] Specifically, in the second synchronization state, the transmission mode is interval transmission, wherein:

[0125] Transmit the synchronization combination corresponding to each synchronization node. When transmitting the synchronization combination corresponding to a single synchronization node, determine the priority coefficient of each synchronization combination transmission according to the sub-synchronization mean value, and determine the transmission interval reference value of each synchronization combination according to the transmission influence coefficient. When transmitting a single synchronization combination to a single valid node, select the relay node with the smallest transmission influence coefficient for transmission;

[0126] The priority coefficient of a single synchronization combination transmission is positively correlated with the sub-synchronization mean corresponding to the synchronization combination;

[0127] The synchronization combination is determined according to the synchronization requirement coefficient, and the transmission interval reference value is positively correlated with the transmission influence coefficient.

[0128] Among them, the confirmation method of the sub-synchronization mean is:

[0129] When the update coefficient is less than the preset update coefficient, the sub-synchronization mean and the data dependence extreme value are positively correlated;

[0130] When the update coefficient is greater than or equal to the preset update coefficient, the sub-synchronization mean value and the data change extreme value are positively correlated;

[0131] The data dependency extreme value is the maximum value among the data dependency means corresponding to each incremental segment of a single synchronous combination, and the data change extreme value is the maximum value among the sub-data change values ​​corresponding to each incremental segment of a single synchronous combination;

[0132] The transmission influence coefficient is confirmed in the following manner: for a single valid node, the valid node is recorded as a target valid node, each valid node other than the target valid node is recorded as a reference valid node, and the average value of the transmission coefficients corresponding to the target valid node to each reference valid node is recorded as the transmission influence coefficient corresponding to the target valid node;

[0133] The transmission interval reference value is the time interval between transmissions of any two adjacent synchronization combinations after the synchronization combinations are sorted in descending order according to the sub-synchronization mean values;

[0134] When determining the priority coefficient of each synchronization combination transmission according to the sub-synchronization mean value, the larger the sub-synchronization mean value of a single synchronization combination is, the higher the priority of the synchronization combination transmission order;

[0135] The synchronization combination is determined according to the synchronization requirement coefficient, wherein synchronization analysis is performed on each incremental paragraph in descending order of sub-data change value, and when synchronization analysis is performed on a single incremental paragraph, the incremental paragraph is recorded as a target incremental paragraph, and other incremental paragraphs other than the target incremental paragraph are recorded as reference incremental paragraphs, and a collection of reference incremental paragraphs and target incremental paragraphs whose dependency reference values ​​with the target incremental paragraph are greater than a preset dependency reference value is recorded as a synchronization combination, and synchronization analysis is continued for incremental paragraphs that are not recorded in the synchronization combination until each incremental paragraph is recorded in the synchronization combination.

[0136] Specifically, an optimization method is determined according to a transmission interval reference value;

[0137] If the transmission interval reference value is greater than or equal to the preset transmission interval reference value, the optimization method is to use a relay node for transmission;

[0138] If the transmission interval reference value is less than the preset transmission interval reference value, the optimization method is to use the synchronous node for direct transmission.

[0139] The value of the preset transmission interval reference value can be determined by the user according to the actual application scenario. The greater the user's demand for improving data synchronization efficiency, the smaller the value of the preset transmission interval reference value. A value of the preset transmission interval reference value is provided, and the historical records of direct transmission using the synchronization node are detected, and the average value of the transmission interval reference values ​​corresponding to the historical records that can meet the user's needs is recorded as the preset transmission interval reference value;

[0140] When a synchronization node is used for direct transmission, each synchronization combination of a single synchronization node is directly transmitted to each valid node outside the synchronization node through the synchronization node.

[0141] Specifically, when relay nodes are used for transmission, the number of relay nodes is determined according to the transmission interval reference value, and the relay node selection method is determined according to the pre-selected node influence coefficient;

[0142] If the influence coefficient of the pre-selected node is greater than or equal to the preset influence coefficient of the pre-selected node, the relay node selection method is to select the pre-selected node as the relay node according to the order of the radiation value of the sub-node from large to small;

[0143] If the pre-selected node influence coefficient is less than the preset pre-selected node influence coefficient, the relay node selection method is to select the pre-selected node as the relay node according to the order of the node processing factor from large to small;

[0144] The pre-selected node is a valid node whose influence threshold with a single synchronization node is less than a preset influence threshold.

[0145] The influence coefficient of the pre-selected node is the average value of the influence distances corresponding to the pre-selected nodes. The influence distance is confirmed by recording the pre-selected node as the target node, recording the pre-selected nodes other than the target node as the reference node, and recording the minimum value of the shortest distances from the target node to the reference nodes as the influence distance corresponding to the target node.

[0146] The radiation value of the sub-node corresponding to the target node is determined according to the number of affected paths.

[0147] If the number of impact paths is greater than the standard number, the subnode radiation value = the number of impact paths + the total number of valid nodes in each impact path, and the number of impact paths is the number of ring paths that include the target node;

[0148] If the number of influence paths is equal to the standard number, the subnode radiation value is the total number of valid nodes within the circle with the target node as the center and the interaction distance as the radius;

[0149] The node processing factor is the maximum amount of data that a single valid node can process within 1 minute, in GB; the impact threshold = distance reference value + transmission coefficient. The values ​​of the preset pre-selected node impact coefficient and the preset impact threshold can be determined by the user according to the actual application scenario. The larger the value of the preset pre-selected node impact coefficient, the greater the user's demand for selecting the pre-selected node as a relay node in order of the node processing factor from large to small. A value of the preset pre-selected node impact coefficient is provided, and the historical records of selecting the pre-selected nodes as relay nodes in order of the node radiation coefficient from large to small are detected. The average value of the pre-selected node impact coefficient corresponding to the historical records that can meet the user's needs is recorded as the preset pre-selected node impact coefficient; the larger the value of the preset impact threshold, the greater the user's demand for improving the selection range of relay nodes. The average value of the impact threshold corresponding to the historical records that can meet the user's needs is recorded as the preset impact threshold.

[0150] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0151] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A blockchain-based industrial data synchronization method, characterized in that: include: Determine the conflicting nodes according to the constraint coefficients, perform conflict detection on each node to be detected to determine the conflict handling method, which is to determine the redundant nodes according to the data update frequency and node sensitivity or to determine the redundant nodes according to the update time; Determine the synchronization state of the synchronization node according to the synchronization demand coefficient and the node radiation coefficient, and determine the transmission method of the change data according to the synchronization state; In synchronous transmission, the node combination mode is determined based on the proportion of synchronous nodes and the distribution coefficient of synchronous nodes. The node combination mode is to determine the interactive combination according to the distance reference value and the transmission coefficient or to determine the interactive combination according to the association set, and use the master node of each interactive combination for transmission; In the interval transmission, the synchronization combination is determined according to the synchronization requirement coefficient, and the optimization method is determined based on the transmission interval reference value. The optimization method is to use relay nodes for transmission or use synchronization nodes for direct transmission; When relay nodes are used for transmission, the number of relay nodes is determined according to the transmission interval reference value, and the relay node selection method is determined based on the pre-selected node influence coefficient, and the relay node is selected according to the transmission influence coefficient for transmission for the synchronous combination.

2. The industrial data synchronization method based on blockchain according to claim 1 is characterized in that: When performing conflict detection on a single node to be detected, if there is a conflicting node, the conflict handling method is determined based on the timestamp similarity; If the timestamp similarity is greater than or equal to the preset timestamp similarity, the conflict resolution method is to determine the redundant node according to the node sensitivity; If the timestamp similarity is less than the preset timestamp similarity, the conflict resolution method is to determine the redundant node based on the update time; The node to be detected is an edge node whose network traffic change value is greater than or equal to a preset network traffic reference value, and the conflict node is a node to be detected whose constraint coefficient is greater than a preset constraint coefficient.

3. The industrial data synchronization method based on blockchain according to claim 2 is characterized in that: The synchronization state of the synchronization node is determined according to the synchronization demand coefficient and the node radiation coefficient. The synchronization state includes: A first synchronization state in which the synchronization demand coefficient is greater than or equal to a preset synchronization demand coefficient or the node radiation coefficient is less than a preset node radiation coefficient; A second synchronization state in which the synchronization demand coefficient is less than a preset synchronization demand coefficient and the node radiation coefficient is greater than or equal to the preset node radiation coefficient; The synchronization nodes are other nodes to be detected excluding redundant nodes.

4. The blockchain-based industrial data synchronization method according to claim 3 is characterized in that: The synchronization demand coefficient is determined according to the update coefficient; If the update coefficient is less than the preset update coefficient, the synchronization demand coefficient is determined according to the data dependency coefficient; If the update coefficient is greater than or equal to the preset update coefficient, the synchronization requirement coefficient is determined according to the data change value.

5. The industrial data synchronization method based on blockchain according to claim 3 is characterized in that: In the first synchronization state, the transmission mode is synchronous transmission, in which: Perform synchronization analysis on each synchronization node. When performing synchronization analysis on a single synchronization node, record the synchronization node as the target synchronization node, record the interaction combination where the target synchronization is located as the target interaction combination, record other interaction combinations outside the target interaction combination as reference interaction combinations, and transmit the change data of the target synchronization node to the master nodes of each reference interaction combination through the master node in the target interaction combination, and then transmit it in parallel through each influencing master node; When parallel transmission is performed through a single influencing master node, the influencing master node is recorded as the target influencing master node, and the change data of the target synchronization node is transmitted to the secondary node of the interactive combination corresponding to the target influencing master node through the target influencing master node; The influencing master nodes include the master nodes in the target interaction combination and the master nodes of each reference interaction combination.

6. The blockchain-based industrial data synchronization method according to claim 5, characterized in that: Determine the node combination method based on the synchronization node ratio and synchronization node distribution coefficient; If the synchronization node ratio is greater than or equal to the preset synchronization node ratio or the synchronization node distribution coefficient is less than the preset synchronization node distribution coefficient, the node combination method is to determine the interactive combination according to the distance reference value and the transmission coefficient; If the synchronization node ratio is less than the preset synchronization node ratio and the synchronization node distribution coefficient is greater than or equal to the preset synchronization node distribution coefficient, the node combination method is to determine the interactive combination according to the associated set, wherein the interactive combination includes the specific set and each associated set; The specific set is a set of valid nodes that are not recorded in the associated set. The associated set is determined according to the interaction distance. The valid nodes are the edge nodes except the redundant nodes.

7. The blockchain-based industrial data synchronization method according to claim 6, characterized in that: Determine the number of master nodes based on the interaction influence coefficient, and select the master nodes in descending order based on the combined influence value; The number of master nodes is negatively correlated with the interaction influence coefficient.

8. The blockchain-based industrial data synchronization method according to claim 3, characterized in that: In the second synchronization state, the transmission mode is interval transmission, in which: Transmit the synchronization combination corresponding to each synchronization node. When transmitting the synchronization combination corresponding to a single synchronization node, determine the priority coefficient of each synchronization combination transmission according to the sub-synchronization mean value, and determine the transmission interval reference value of each synchronization combination according to the transmission influence coefficient. When transmitting a single synchronization combination to a single valid node, select the relay node with the smallest transmission influence coefficient for transmission; The priority coefficient of a single synchronization combination transmission is positively correlated with the sub-synchronization mean corresponding to the synchronization combination; The synchronization combination is determined according to the synchronization requirement coefficient, and the transmission interval reference value is positively correlated with the transmission influence coefficient.

9. The blockchain-based industrial data synchronization method according to claim 8, characterized in that: Determine an optimization method according to a transmission interval reference value; If the transmission interval reference value is greater than or equal to the preset transmission interval reference value, the optimization method is to use a relay node for transmission; If the transmission interval reference value is less than the preset transmission interval reference value, the optimization method is to use the synchronous node for direct transmission.

10. The blockchain-based industrial data synchronization method according to claim 9, characterized in that: When relay nodes are used for transmission, the number of relay nodes is determined according to the transmission interval reference value, and the relay node selection method is determined according to the pre-selected node influence coefficient; If the influence coefficient of the pre-selected node is greater than or equal to the preset influence coefficient of the pre-selected node, the relay node selection method is to select the pre-selected node as the relay node according to the order of the radiation value of the sub-node from large to small; If the pre-selected node influence coefficient is less than the preset pre-selected node influence coefficient, the relay node selection method is to select the pre-selected node as the relay node according to the order of the node processing factor from large to small; The pre-selected node is a valid node whose influence threshold with a single synchronization node is less than a preset influence threshold.

Citation Information

Patent Citations

  • Industrial internet distributed data synchronization method

    CN116049209A

  • Block data synchronization method and device of block chain node

    CN114281542A

  • Cross-chain data transmission method between block chains, block chain system, electronic equipment and storage medium

    CN116566994A

  • Electric power detection system based on multi-dimensional data

    CN119166347A

  • System and method for secure data transmission and storage

    WO2016003525A2