CN113111392A - Block chain data synchronization system and control method thereof - Google Patents

Block chain data synchronization system and control method thereof Download PDF

Info

Publication number
CN113111392A
CN113111392A CN202110389587.XA CN202110389587A CN113111392A CN 113111392 A CN113111392 A CN 113111392A CN 202110389587 A CN202110389587 A CN 202110389587A CN 113111392 A CN113111392 A CN 113111392A
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.)
Granted
Application number
CN202110389587.XA
Other languages
Chinese (zh)
Other versions
CN113111392B (en
Inventor
王保春
张蛟鹏
余洋
莫恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yongqi Blockchain Technology Co Ltd
Original Assignee
Zhejiang Yongqi Blockchain Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Yongqi Blockchain Technology Co Ltd filed Critical Zhejiang Yongqi Blockchain Technology Co Ltd
Priority to CN202110389587.XA priority Critical patent/CN113111392B/en
Publication of CN113111392A publication Critical patent/CN113111392A/en
Application granted granted Critical
Publication of CN113111392B publication Critical patent/CN113111392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

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

Block chain data synchronization system and control method thereof
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 block receiving the data information sends 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 block directly in communication connection with the data block receiving the data information, and the data block which is sequenced later is subjected to pre-adjustment on the idle calculation force 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 a rear-level data block in direct communication connection with the operation tasks in the group, and if the rear-level data block cannot accept the operation tasks to be processed, the operation tasks are sent to a rear-level data area of the rear-level data block;
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, temporary communication interfaces are allocated for the data blocks included in the group, the temporary communication interfaces 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 in the later sequence performs pre-adjustment on the idle calculation power 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-level data block 1 in direct communication connection with the operation tasks in the group, and if the rear-level data block 1 cannot accept the operation tasks to be processed, the operation tasks are continuously sent to a rear-level data area 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 blocks 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 verified 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 (6)

1. A block chain data synchronization system, comprising: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
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).
2. A method for controlling a block chain data synchronization system as claimed in claim 1, comprising the steps of:
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) directly connected with the data block (1) receiving the data information in a communication mode, and the data block (1) which is ranked later performs pre-adjustment on idle calculation force 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.
3. The method of claim 2, wherein: in step D, the pre-adjustment of the spare calculation power of the data blocks (1) sorted next to each other 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 a rear data area (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.
4. The method of claim 3, 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.
5. The method of claim 4, 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.
6. The method of claim 5, wherein: if all the data blocks (1) are successfully verified, the synchronized data are proved to be correct.
CN202110389587.XA 2021-04-12 2021-04-12 Block chain data synchronization system and control method thereof Active CN113111392B (en)

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 true CN113111392A (en) 2021-07-13
CN113111392B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
董冰: "基于时间同步的高吞吐量区块链的设计与实现", 《中国优秀硕士学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN113111392B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US20200228458A1 (en) Data transmission method, apparatus, and system
CN112417046B (en) Parallelization Bayesian-busy fault-tolerant method applied to block chain consensus mechanism
CN105022377B (en) A kind of control method of the automated manufacturing system based on Petri network
CN100531469C (en) Method for configuring physical layer type of high-speed downlink share channel
CN112511590A (en) Efficient storage reconfiguration method for block chain fragmentation
CN106332182A (en) Wireless access method and apparatus
CN105071994A (en) Mass data monitoring system
CN113111392B (en) Block chain data synchronization system and control method thereof
CN102510612A (en) LED (light-emitting diode) multi-stage drive circuit and transmission method of LED drive data
CN101561795B (en) Method and device for synchronizing data in distribution-type system
CN105812504A (en) Intelligent communication address coding method
CN116707759B (en) Lightweight alliance chain consensus method for high concurrency scene of data flow
CN1622069A (en) Apparatus for realizing access of driven devices on a unified bus by a plurality of active devices
CN106304188A (en) A kind of AM RLC is for retransmitting the receiving handling method of the optimization of data
CN101119295A (en) Method for configuring physical layer classification parameter of high speed downlink sharing channel
CN107222379A (en) A kind of method and apparatus of serial communication
CN107229591A (en) Multi-serial communication method and device
CN116501799A (en) Cross-chain transaction grouping parallel processing method under multi-chain scene
CN104144134B (en) A kind of array dispatching method and device
CN1427590A (en) Method for forming and transmitting tandem pocket in ATM exchange system
CN104834618B (en) A kind of more apparatus scanning methods and power electronic system based on RS485 bus communications
TW200704218A (en) Method and system for conveying backhaul link information for intelligent selection of a mesh access point
CN104917704A (en) Method and system for multiplexing 10GBase-R PCSs and 40GBase-R PCSs in the same architecture
CN107197478A (en) A kind of flow equalization method based on forwarding ionization meter
CN113438092A (en) Transaction broadcasting method and system

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

Effective date of registration: 20231026

Granted publication date: 20220830

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20240307

Granted publication date: 20220830

PD01 Discharge of preservation of patent