CN114024959A - Method for realizing rapid verification by optimizing node communication - Google Patents
Method for realizing rapid verification by optimizing node communication Download PDFInfo
- Publication number
- CN114024959A CN114024959A CN202011466239.XA CN202011466239A CN114024959A CN 114024959 A CN114024959 A CN 114024959A CN 202011466239 A CN202011466239 A CN 202011466239A CN 114024959 A CN114024959 A CN 114024959A
- Authority
- CN
- China
- Prior art keywords
- block data
- receiving
- node
- channel
- accuracy
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000004891 communication Methods 0.000 title claims abstract description 16
- 238000012795 verification Methods 0.000 title claims abstract description 12
- 238000010200 validation analysis Methods 0.000 claims description 6
- 238000007689 inspection Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013502 data validation Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
Abstract
The invention relates to the technical field of block chains, and discloses a method for realizing rapid verification by optimizing node communication, which receives a plurality of different block data in a channel mode, thereby fully utilizing network bandwidth and simultaneously ensuring the accuracy of the received block data, and comprises the following steps: firstly, establishing a network connection: a node capable of receiving block data is established in a block chain, and a network connection is established in the node. According to the method for realizing the rapid verification by optimizing the node communication, the channel mode is set, so that a plurality of channels are arranged in the network connection to realize the parallel receiving mode, the receiving of various different block data is carried out, the problem that the traditional block chain node receives the block data in a serial mode and then receives the next block data is solved, the receiving efficiency of the node to the block data is effectively improved, and the network bandwidth is fully utilized.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a method for realizing rapid verification by optimizing node communication.
Background
Blockchains are a term of art in information technology. Essentially, the block chain technology is a shared database, and the data or information stored in the shared database has the characteristics of 'unforgeability', 'trace in the whole process', 'traceability', 'open transparency', 'collective maintenance' and the like. And the rich application scenes of the block chains basically solve the problem of information asymmetry based on the block chains, and realize the cooperative trust and consistent action among a plurality of main bodies.
In the application of a block chain, each node needs to receive block data, the block data received in the block chain is generally received in serial, and the next block data can be received after one application is received, so that the accuracy of the received block can be ensured to be verified, the network performance can not be fully exerted, and the pressure of the network bandwidth is increased, so that the network rate of the network bandwidth is delayed, the rate of a user entering the block chain is reduced, the requirement of the user cannot be met, a method capable of receiving a plurality of block data simultaneously is needed, and a method for realizing rapid verification by optimizing node communication is provided.
Disclosure of Invention
The invention provides a method for realizing rapid verification by optimizing node communication, which has the advantages of rapidly receiving block data, effectively utilizing network bandwidth and solving the problems in the background art.
The invention provides the following technical scheme: a method for realizing rapid verification by optimizing node communication receives a plurality of different block data in a channel mode, thereby fully utilizing network bandwidth and simultaneously ensuring the accuracy of the received block data, comprising the following steps:
one, set up a network connection
A node capable of receiving block data is established in a block chain, and a network connection is established in the node.
Secondly, opening the channel
In the established network connection, a plurality of channels are opened, thereby realizing a parallel receiving mode.
Three, channel receiving data
The channels opened in the network connection are used for receiving a plurality of different block data, so that the relatively independent receiving of different block data is completed, and the receiving efficiency is improved.
Fourthly, performing validation
After receiving a plurality of different block data, the channel performs early-stage validation, thereby ensuring the accuracy of the block data and fully utilizing the network bandwidth.
Fifthly, judging the accuracy of the block data
After the channel acquires the block data, the first hash value of the block data needing to be checked is acquired and sent to the server, a second hash value is acquired by utilizing a sha256 algorithm aiming at the block data to be checked, the server sends a third hash value of the block data to be checked, and therefore whether the second hash value is consistent with the third hash value or not is judged, if yes, the block data is proved to be passed through the check, and if not, the block data is proved to be failed in the check, and therefore the accuracy of the block data is effectively judged.
Preferably, the channel is a channel, and multiple different block data pass through a channel in a network connection, so that the multiple different block data are received, the receiving efficiency of the block data is improved, and the utilization efficiency of a network bandwidth is improved.
Preferably, when channel receiving is carried out, checking of block data accuracy is carried out in advance, so that time for checking after the block data is received is saved, efficiency when the block data is received is guaranteed, meanwhile, checking is carried out in advance, accuracy of the received block data is guaranteed, and the situation that the block data which fails in checking needs to be removed after receiving is avoided.
Preferably, the check block data comprises a user ID, an attribute, a hash value and a block height, so that the accuracy of the block data is ensured, malicious block data is prevented from being transmitted to a node, and the node is prevented from being damaged by the malicious block data.
Preferably, the data receiving mode of the channel mode is realized in the network connection, the parallel of block data receiving is realized, the traditional serial receiving mode is avoided, the efficiency of receiving the block data by the node is improved, meanwhile, the rate of entering the block chain node by the user is accelerated, and the condition of occupying a large amount of network bandwidth is avoided.
The invention has the following beneficial effects:
1. this method of realizing quick verification through optimizing node communication, through setting up the channel mode, thereby set up the mode that a plurality of channels realized parallel acceptance in the network connection, carry out the receipt of multiple different block data, it passes through serial mode to have solved traditional block chain node receipt block data, the problem of receiving next block data after receiving a block data again, the effectual receiving efficiency who improves node pair block data, make full use of network bandwidth, the condition of occupying network bandwidth in a large number has been avoided receiving block data to the tradition, make the user have better experience of uploading data, make the more effectual channel of utilizing of user can carry out the uploading of data, help the block chain to solve the slow problem of receipt block data in the traditional meaning.
2. This method for realizing quick verification through optimizing node communication, through before channel receives block data, carry out the inspection of accuracy to block data, the receiving efficiency to block data has been improved, thereby the problem of carrying out block data validation after receiving block data in the traditional meaning has been solved, simultaneously through obtaining first hash value, second hash value and third hash value, the effectual accuracy of improving to block data inspection, it all has higher accuracy to have guaranteed that channel received block data, avoid appearing the malicious block data that inspection block data appears after traditional receipt block data, can't be timely clear away malicious block data, thereby lead to the circumstances that malicious block data gets into the node, through channel's mode, the safety of node has been guaranteed, network connection's safety has also been guaranteed simultaneously.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for implementing fast verification by optimizing node communication, which receives a plurality of different block data in a channel manner, thereby making full use of network bandwidth and ensuring accuracy of receiving the block data, includes the following steps:
one, set up a network connection
A node capable of receiving block data is established in a block chain, and a network connection is established in the node.
Secondly, opening the channel
In the established network connection, a plurality of channels are opened, thereby realizing a parallel receiving mode.
Three, channel receiving data
The channels opened in the network connection are used for receiving a plurality of different block data, so that the relatively independent receiving of different block data is completed, and the receiving efficiency is improved.
Fourthly, performing validation
After receiving a plurality of different block data, the channel performs early-stage validation, thereby ensuring the accuracy of the block data and fully utilizing the network bandwidth.
Fifthly, judging the accuracy of the block data
After the channel acquires the block data, the first hash value of the block data needing to be checked is acquired and sent to the server, a second hash value is acquired by utilizing a sha256 algorithm aiming at the block data to be checked, the server sends a third hash value of the block data to be checked, and therefore whether the second hash value is consistent with the third hash value or not is judged, if yes, the block data is proved to be passed through the check, and if not, the block data is proved to be failed in the check, and therefore the accuracy of the block data is effectively judged.
The channel is a channel, and multiple different block data pass through the middle channel of a network connection, so that the multiple different block data are received, the receiving efficiency of the block data is improved, and the utilization efficiency of a network bandwidth is improved.
When channel receiving is carried out, checking of block data accuracy is carried out in advance, so that time for checking after the block data are received is saved, efficiency when the block data are received is guaranteed, meanwhile, checking is carried out in advance, accuracy of the received block data is guaranteed, and the situation that the block data which fail to be checked need to be removed after receiving is avoided.
The check block data comprises the user ID, the attribute, the hash value and the block height, so that the accuracy of the block data is ensured, malicious block data is prevented from being carried out in the node, and the condition that the node is damaged by the malicious block data is prevented.
The data receiving mode of the channel mode is realized in the network connection, the parallel receiving of the block data is realized, the traditional serial receiving mode is avoided, the efficiency of receiving the block data by the node is improved, meanwhile, the rate of a user entering the node of the block chain is accelerated, and the condition that a large amount of network bandwidth is occupied is avoided.
Wherein, through setting up the channel mode, thereby set up the mode that a plurality of channels realized parallel acceptance in the network connection, carry out the receipt of multiple different block data, it passes through serial mode to have solved traditional block chain node receipt block data, receive the problem of next block data again after receiving a block data, the effectual receiving efficiency who improves node pair block data, make full use of network bandwidth, the condition that traditional receipt block data occupy network bandwidth in a large number has been avoided appearing, make the user can have better experience of uploading data, make the more effectual channel of utilizing of user ability carry out the uploading of data.
Wherein, before receiving block data through the channel, carry out the inspection of accuracy to the block data, the receiving efficiency to the block data has been improved, thereby solved and carried out the problem that block data is verified after receiving block data in the tradition meaning, simultaneously through obtaining first hash value, second hash value and third hash value, the effectual accuracy that improves the block data inspection, it all has higher accuracy to have guaranteed that the block data that the channel received is data, avoid appearing the malicious block data that inspection block data appears after the tradition receives block data, unable timely clear away malicious block data, thereby lead to malicious block data to get into in the node, thereby lead to the unable condition that uses of node, through the mode of channel, the safety of node has been guaranteed.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (5)
1. A method for realizing rapid verification by optimizing node communication receives a plurality of different block data in a channel mode, thereby fully utilizing network bandwidth and simultaneously ensuring the accuracy of the received block data, comprising the following steps:
one, set up a network connection
A node capable of receiving block data is established in a block chain, and a network connection is established in the node.
Secondly, opening the channel
In the established network connection, a plurality of channels are opened, thereby realizing a parallel receiving mode.
Three, channel receiving data
The channels opened in the network connection are used for receiving a plurality of different block data, so that the relatively independent receiving of different block data is completed, and the receiving efficiency is improved.
Fourthly, performing validation
After receiving a plurality of different block data, the channel performs early-stage validation, thereby ensuring the accuracy of the block data and fully utilizing the network bandwidth.
Fifthly, judging the accuracy of the block data
After the channel acquires the block data, the first hash value of the block data needing to be checked is acquired and sent to the server, a second hash value is acquired by utilizing a sha256 algorithm aiming at the block data to be checked, the server sends a third hash value of the block data to be checked, and therefore whether the second hash value is consistent with the third hash value or not is judged, if yes, the block data is proved to be passed through the check, and if not, the block data is proved to be failed in the check, and therefore the accuracy of the block data is effectively judged.
2. The method of claim 1 for fast authentication by optimizing node communication, wherein: the channel is a channel, and a plurality of different block data pass through a network connection intermediate channel, so that the receiving of the plurality of different block data is completed, the receiving efficiency of the block data is improved, and the utilization efficiency of a network bandwidth is improved.
3. The method of claim 1 for fast authentication by optimizing node communication, wherein: when channel receiving is carried out, the checking of the block data accuracy is carried out in advance, so that the time for checking after the block data is received is saved, the efficiency when the block data is received is ensured, meanwhile, the accuracy of the received block data is guaranteed by checking in advance, and the condition that the block data which fails in checking needs to be removed after the block data is received is avoided.
4. The method of claim 1 for fast authentication by optimizing node communication, wherein: the check block data comprises the user ID, the attribute, the hash value and the block height, so that the accuracy of the block data is ensured, malicious block data is prevented from being carried out in the node, and the condition that the node is damaged by the malicious block data is prevented.
5. The method of claim 1 for fast authentication by optimizing node communication, wherein: the data receiving mode of the channel mode is realized in the network connection, the parallel receiving of the block data is realized, the traditional serial receiving mode is avoided, the efficiency of receiving the block data by the node is improved, meanwhile, the rate of entering the block chain node by a user is accelerated, and the condition of occupying a large amount of network bandwidth is avoided.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011466239.XA CN114024959A (en) | 2020-12-14 | 2020-12-14 | Method for realizing rapid verification by optimizing node communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011466239.XA CN114024959A (en) | 2020-12-14 | 2020-12-14 | Method for realizing rapid verification by optimizing node communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114024959A true CN114024959A (en) | 2022-02-08 |
Family
ID=80053855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011466239.XA Pending CN114024959A (en) | 2020-12-14 | 2020-12-14 | Method for realizing rapid verification by optimizing node communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114024959A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808361A (en) * | 2016-01-20 | 2016-07-27 | 大连优弈数据科技有限公司 | Parallel data processing method and system |
CN109194483A (en) * | 2018-08-10 | 2019-01-11 | 北京首汽智行科技有限公司 | Data verification method based on block chain |
WO2019117651A1 (en) * | 2017-12-13 | 2019-06-20 | 서강대학교 산학협력단 | Search method using data structure for supporting multiple search in blockchain-based iot environment, and device according to method |
CN110024422A (en) * | 2016-12-30 | 2019-07-16 | 英特尔公司 | The name of Internet of Things and block chained record |
CN110365766A (en) * | 2019-07-12 | 2019-10-22 | 全链通有限公司 | Cloud storage method, equipment and computer readable storage medium based on block chain |
CN111752972A (en) * | 2020-07-01 | 2020-10-09 | 浪潮云信息技术股份公司 | Data association query method and system under key-value storage mode based on RocksDB |
-
2020
- 2020-12-14 CN CN202011466239.XA patent/CN114024959A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808361A (en) * | 2016-01-20 | 2016-07-27 | 大连优弈数据科技有限公司 | Parallel data processing method and system |
CN110024422A (en) * | 2016-12-30 | 2019-07-16 | 英特尔公司 | The name of Internet of Things and block chained record |
WO2019117651A1 (en) * | 2017-12-13 | 2019-06-20 | 서강대학교 산학협력단 | Search method using data structure for supporting multiple search in blockchain-based iot environment, and device according to method |
CN109194483A (en) * | 2018-08-10 | 2019-01-11 | 北京首汽智行科技有限公司 | Data verification method based on block chain |
CN110365766A (en) * | 2019-07-12 | 2019-10-22 | 全链通有限公司 | Cloud storage method, equipment and computer readable storage medium based on block chain |
CN111752972A (en) * | 2020-07-01 | 2020-10-09 | 浪潮云信息技术股份公司 | Data association query method and system under key-value storage mode based on RocksDB |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110784346B (en) | Reputation value-based PBFT consensus system and method | |
CN107169765B (en) | Method for dynamically adjusting block chain consensus based on business trust | |
KR101962686B1 (en) | System and method for electronic voting | |
CN111654465A (en) | Power service cross-domain credible authentication system and method based on block chain | |
CN112235379B (en) | Block chain bottom layer shared storage method | |
CN110245956A (en) | A kind of block chain transaction confirmation method and system based on asynchronous multichain | |
CN111342971B (en) | Bayesian and preemptive consensus method and system | |
CN112118239B (en) | Block chain consensus method and device, electronic equipment and storage medium | |
US20180124048A1 (en) | Data transmission method, authentication method, and server | |
CN112866282B (en) | Method and device for verifying time information in block chain | |
CN109961281B (en) | Traffic settlement method, system, base station and computer readable storage medium | |
US11245709B2 (en) | Multi-verifier approach for attestation of nodes in a network | |
CN114663104A (en) | PBFT based on block chain product supply chain tracing | |
CN110505084B (en) | Block chain packing node consensus electing method | |
CN108243001A (en) | A kind of data encryption communication means | |
CN111640018A (en) | Block chain transaction existence verification method and device | |
CN111177265A (en) | Block chain domain division method | |
CN114090376A (en) | Service processing method and device based on alliance chain system | |
CN101980477B (en) | Method and device for detecting number of shadow users, and network equipment | |
CN114024959A (en) | Method for realizing rapid verification by optimizing node communication | |
CN115730935A (en) | Data processing method, device and equipment based on block chain and readable storage medium | |
WO2024040796A1 (en) | Block chain power transaction system, consensus method, device and storage medium | |
CN104539348A (en) | PON system link loopback detection method and device | |
CN115865943A (en) | Self-adaptive dynamic cross-chain consensus mechanism selection method | |
CN114721749A (en) | Voting method and device based on block chain, storage medium and electronic equipment |
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 |