CN113111392B - Block chain data synchronization system and control method thereof - Google Patents
Block chain data synchronization system and control method thereof Download PDFInfo
- Publication number
- CN113111392B CN113111392B CN202110389587.XA CN202110389587A CN113111392B CN 113111392 B CN113111392 B CN 113111392B CN 202110389587 A CN202110389587 A CN 202110389587A CN 113111392 B CN113111392 B CN 113111392B
- Authority
- CN
- China
- Prior art keywords
- data
- group
- block
- data blocks
- blocks
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 13
- 238000004891 communication Methods 0.000 claims abstract description 39
- 238000004364 calculation method Methods 0.000 claims description 23
- 238000012795 verification Methods 0.000 claims description 13
- 238000013507 mapping Methods 0.000 claims description 6
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 238000012163 sequencing technique Methods 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 3
- 230000007547 defect Effects 0.000 abstract description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Bioethics (AREA)
- Data Mining & Analysis (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a block chain data synchronization system, which comprises a plurality of data blocks, a plurality of data processing units and a plurality of data processing units, wherein the data blocks are used for storing data information; the data input port is in communication connection with the data block and is used for inputting data information to the data block; and the grouping module is used for grouping the data blocks. The invention can improve the defects of the prior art and improve the data synchronization efficiency.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain data synchronization system and a control method thereof.
Background
The blockchain is a shared database technology and is widely applied to the field of decentralized data processing. In order to ensure the safety and reliability of data transaction information, newly added data needs to be synchronously verified in other blocks, and if a large amount of data is added in a short time, the problem of network congestion is easily caused.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a block chain data synchronization system and a control method thereof, which can solve the defects of the prior art and improve the data synchronization efficiency.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows.
A block chain data synchronization system includes,
the data blocks are used for storing data information;
the data input port is in communication connection with the data block and is used for inputting data information to the data block;
and the grouping module is used for grouping the data blocks.
A control method of the block chain data synchronization system comprises the following steps:
A. the data input port establishes communication connection with a data block waiting for data input and inputs data information;
B. randomly selecting a hash algorithm for the data block receiving the data information to calculate the received data information to obtain hash check data;
C. the grouping module groups data blocks which use the same Hash algorithm with the data blocks receiving the data information into a group, the data blocks in the group are in serial communication connection, and the data block with the largest idle calculation force is selected to be in direct communication connection with the data blocks receiving the data information;
D. the data blocks receiving the data information send the obtained hash check data to other data blocks in the same group through a serial communication structure, then the received data information is subjected to re-check calculation from the data blocks directly in communication connection with the data blocks receiving the data information, and the data blocks which are ranked later are subjected to pre-adjustment on the idle calculation power to prepare for re-check calculation;
E. and establishing communication connection with any other data block outside the group for the data block which passes the re-verification, sending the hash verification data and the data information to the data block outside the group for verification calculation again, and dividing the data block outside the group into the group after the verification calculation until all the data blocks are divided into the group, thereby completing data synchronization.
Preferably, in step D, the pre-adjusting of the spare calculation power of the data blocks sorted next to each other includes the following steps,
firstly, the operation tasks to be processed are sent to the next-level data blocks in direct communication connection with the operation tasks in the group, and if the next-level data blocks cannot accept the operation tasks to be processed, the operation tasks are continuously sent to the next-level data blocks;
and when all the post-stage data blocks in the group can not receive the operation tasks to be processed, sending the operation tasks to be processed to the data blocks outside the group in a broadcasting mode, and enabling the data blocks receiving the operation tasks to be processed to be included in the group.
Preferably, a temporary communication interface is allocated for the data blocks included in the group, the temporary communication interface having the highest communication priority.
Preferably, in step E, when establishing communication connection with other data blocks outside the group, the rule for selecting the data blocks outside the group is,
the method comprises the steps of firstly selecting alternative data blocks according to idle calculation power, then establishing a buffer mapping relation of the alternative data blocks, and finally selecting the data blocks with the largest buffer mapping quantity to establish communication connection.
Preferably, if all the data blocks are successfully verified, the synchronized data is verified to be correct.
Adopt the beneficial effect that above-mentioned technical scheme brought to lie in: according to the invention, through optimizing the block chain structure and adopting a two-stage verification mode, the computational power utilization rate of each data block is improved, and the network congestion probability is reduced, so that the data synchronization efficiency is effectively improved.
Drawings
FIG. 1 is a schematic diagram of one embodiment of the present invention.
Detailed Description
Referring to fig. 1, one embodiment of the present invention includes,
a plurality of data blocks 1 for storing data information;
the data input port 2 is in communication connection with the data block 1 and is used for inputting data information to the data block 1;
and the grouping module 3 is used for grouping the data blocks 1.
A control method of the block chain data synchronization system comprises the following steps:
A. the data input port 2 establishes communication connection with the data block 1 waiting for data input and inputs data information;
B. randomly selecting a hash algorithm by the data block 1 receiving the data information to operate the received data information to obtain hash check data;
C. the grouping module 3 groups the data blocks 1 which use the same Hash algorithm with the data blocks 1 receiving the data information into a group, the data blocks 1 in the group are in serial communication connection, and the data block 1 with the largest idle calculation force is selected to be in direct communication connection with the data block 1 receiving the data information;
D. the data block 1 receiving the data information sends the obtained hash check data to other data blocks 1 in the same group through a serial communication structure, then the received data information is subjected to re-check calculation from the data block 1 directly in communication connection with the data block 1 receiving the data information, and the data block 1 which is ranked later performs pre-adjustment on the idle calculation power of the data block 1 to prepare for re-check calculation;
E. and establishing communication connection with any other data block 1 outside the group for the data block 1 which passes the re-verification, sending the hash verification data and the data information to the data block 1 outside the group for verification calculation again, and dividing the data block 1 outside the group into the group after the verification calculation until all the data blocks 1 are divided into the group, thereby completing data synchronization.
In step D, the pre-adjusting of the spare calculation power of the data blocks 1 sorted next to each other includes the following steps,
firstly, the operation tasks to be processed are sent to a rear data block 1 which is in direct communication connection with the operation tasks in the group, and if the rear data block 1 can not accept the operation tasks to be processed, the operation tasks to be processed are continuously sent to the rear data block 1;
when all the post-stage data blocks 1 in the group can not receive the operation tasks to be processed, the operation tasks to be processed are sent to the data blocks 1 outside the group in a broadcasting mode, and the data blocks 1 receiving the operation tasks to be processed are brought into the group.
The data block 1 included in the group is assigned a temporary communication interface, which has the highest communication priority.
In step E, when establishing communication connection with other data blocks 1 outside the group, the selection rule of the data block 1 outside the group is,
firstly, selecting the alternative data block 1 according to the idle calculation power, then establishing the buffer mapping relation of the alternative data block 1, and finally selecting the data block 1 with the largest buffer mapping quantity to establish communication connection.
If all the data blocks 1 are successfully verified, the synchronized data is proved to be correct.
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, are merely for convenience of description of the present invention, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (4)
1. A control method of a block chain data synchronization system is characterized in that the control method is implemented based on a block chain data synchronization system, and the block chain data synchronization system comprises:
a plurality of data blocks (1) for storing data information;
the data input port (2) is in communication connection with the data block (1) and is used for inputting data information to the data block (1);
a grouping module (3) for grouping the data blocks (1);
the control method of the block chain data synchronization system comprises the following steps:
A. the data input port (2) is in communication connection with the data block (1) waiting for data input, and data information is input;
B. the data block (1) receiving the data information randomly selects a Hash algorithm to operate the received data information to obtain Hash check data;
C. the grouping module (3) divides the data blocks (1) which use the same Hash algorithm with the data blocks (1) receiving the data information into a group, the data blocks (1) in the group are in communication connection in a serial form, and the data block (1) with the largest idle calculation force is selected to be in direct communication connection with the data block (1) receiving the data information;
D. the data block (1) receiving the data information sends the obtained hash check data to other data blocks (1) in the same group through a serial communication structure, then the received data information is subjected to re-check calculation from the data block (1) in direct communication connection with the data block (1) receiving the data information, and the data block (1) after sequencing performs pre-adjustment on the idle calculation power to prepare for re-check calculation;
E. establishing communication connection with any other data block (1) outside the group for the data block (1) which passes the re-verification, sending the hash verification data and the data information to the data block (1) outside the group for verification calculation again, and dividing the data block (1) outside the group into the group after the verification calculation until all the data blocks (1) are divided into the group, thereby completing data synchronization;
in the step D, the step of pre-adjusting the idle computing power of the data blocks (1) ranked at the back comprises the following steps:
firstly, the operation tasks to be processed are sent to a rear data block (1) in direct communication connection with the operation tasks in the group, and if the rear data block (1) cannot accept the operation tasks to be processed, the operation tasks are continuously sent to the rear data block (1) of the rear data block;
when all the post-stage data blocks (1) in the group can not receive the operation tasks to be processed, the operation tasks to be processed are sent to the data blocks (1) outside the group in a broadcasting mode, and the data blocks (1) receiving the operation tasks to be processed are brought into the group.
2. The method of claim 1, wherein: a temporary communication interface is allocated for the data blocks (1) included in the group, the temporary communication interface having the highest communication priority.
3. The method of claim 2, wherein: in step E, when establishing communication connection with other data blocks (1) outside the group, the selection rule of the data blocks (1) outside the group is:
firstly, selecting the alternative data blocks (1) according to the idle calculation power, then establishing the buffer mapping relation of the alternative data blocks (1), and finally selecting the data blocks (1) with the largest buffer mapping quantity to establish communication connection.
4. The method of claim 3, wherein: if all the data blocks (1) are successfully verified, the synchronized data are proved to be correct.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110389587.XA CN113111392B (en) | 2021-04-12 | 2021-04-12 | Block chain data synchronization system and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110389587.XA CN113111392B (en) | 2021-04-12 | 2021-04-12 | Block chain data synchronization system and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113111392A CN113111392A (en) | 2021-07-13 |
CN113111392B true CN113111392B (en) | 2022-08-30 |
Family
ID=76715660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110389587.XA Active CN113111392B (en) | 2021-04-12 | 2021-04-12 | Block chain data synchronization system and control method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113111392B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018112805A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳前海达闼云端智能科技有限公司 | Blockchain storage method and device, and node device |
WO2018119930A1 (en) * | 2016-12-29 | 2018-07-05 | 深圳前海达闼云端智能科技有限公司 | Transaction verification processing method, apparatus and node device |
CN110602095A (en) * | 2019-09-12 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data distribution and storage method and device based on block chain network |
CN110928953A (en) * | 2019-12-03 | 2020-03-27 | 上海墨珩网络科技有限公司 | Data synchronization method and system based on block chain technology |
CN111159297A (en) * | 2019-12-31 | 2020-05-15 | 深圳市红砖坊技术有限公司 | Block chain accounting method, device, node and storage medium |
CN111858751A (en) * | 2020-06-29 | 2020-10-30 | 深圳壹账通智能科技有限公司 | Data storage method and device based on block chain |
-
2021
- 2021-04-12 CN CN202110389587.XA patent/CN113111392B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018112805A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳前海达闼云端智能科技有限公司 | Blockchain storage method and device, and node device |
WO2018119930A1 (en) * | 2016-12-29 | 2018-07-05 | 深圳前海达闼云端智能科技有限公司 | Transaction verification processing method, apparatus and node device |
CN110602095A (en) * | 2019-09-12 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data distribution and storage method and device based on block chain network |
CN110928953A (en) * | 2019-12-03 | 2020-03-27 | 上海墨珩网络科技有限公司 | Data synchronization method and system based on block chain technology |
CN111159297A (en) * | 2019-12-31 | 2020-05-15 | 深圳市红砖坊技术有限公司 | Block chain accounting method, device, node and storage medium |
CN111858751A (en) * | 2020-06-29 | 2020-10-30 | 深圳壹账通智能科技有限公司 | Data storage method and device based on block chain |
Non-Patent Citations (1)
Title |
---|
基于时间同步的高吞吐量区块链的设计与实现;董冰;《中国优秀硕士学位论文全文数据库》;20200815;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113111392A (en) | 2021-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3681081A1 (en) | Data transmission method, device and system | |
CN112417046B (en) | Parallelization Bayesian-busy fault-tolerant method applied to block chain consensus mechanism | |
CN106230744A (en) | A kind of method of out of order restructuring of data stream and forwarding unit | |
CN1756108A (en) | Master/backup system data synchronizing method | |
CN105071994A (en) | Mass data monitoring system | |
CN113900598A (en) | Block chain based data storage method, device, equipment and storage medium | |
CN113111392B (en) | Block chain data synchronization system and control method thereof | |
CN111400352B (en) | Workflow engine capable of processing data in batches | |
CN103116641B (en) | Obtain method and the collator of the statistics of sequence | |
CN114742000B (en) | SoC chip verification system, method and device based on FPGA cluster | |
CN1622069A (en) | Apparatus for realizing access of driven devices on a unified bus by a plurality of active devices | |
WO2021057068A1 (en) | Rdma data flow control method and system, electronic device and readable storage medium | |
CN110661653B (en) | Method and system for real-time synchronization of network management and network element equipment configuration data | |
CN116707759A (en) | Lightweight alliance chain consensus method for high concurrency scene of data flow | |
CN113179325B (en) | Multi-terminal collaborative interaction method and device, gateway box and medium | |
CN103605768A (en) | Massive file synchronization speed increasing method in storage systems | |
CN113242305B (en) | Cross-chain transaction processing method, device, computer equipment and medium | |
CN111274193A (en) | Data processing apparatus and method | |
CN112202614B (en) | Method and device for communication between systems | |
CN109246631B (en) | Method for sending short message | |
CN1111980C (en) | Semiconductor integrated circuit for communication and battery saving method for the same | |
CN107197478A (en) | A kind of flow equalization method based on forwarding ionization meter | |
CN111698155B (en) | STP protocol message distributed processing method, system and related equipment | |
CN109144746B (en) | Message asynchronous distribution system and method of GFT training system | |
US20120210028A1 (en) | Service scheduling system and method, and control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20231026 Granted publication date: 20220830 |
|
PD01 | Discharge of preservation of patent | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20240307 Granted publication date: 20220830 |