CN110138597B - Block chain DPOS (distributed DPOS) consensus mechanism improvement method based on credit integration and node clustering - Google Patents
Block chain DPOS (distributed DPOS) consensus mechanism improvement method based on credit integration and node clustering Download PDFInfo
- Publication number
- CN110138597B CN110138597B CN201910306559.XA CN201910306559A CN110138597B CN 110138597 B CN110138597 B CN 110138597B CN 201910306559 A CN201910306559 A CN 201910306559A CN 110138597 B CN110138597 B CN 110138597B
- Authority
- CN
- China
- Prior art keywords
- node
- credit
- nodes
- block
- network
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/30—Decision processes by autonomous network management units using voting and bidding
-
- 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
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1051—Group master selection mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
- G06F18/232—Non-hierarchical techniques
- G06F18/2321—Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
- G06F18/23213—Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a block chain DPOS (distributed data processing system) consensus mechanism improvement method based on credit integration and node clustering. The invention defines basic concepts such as credit points and the like aiming at the problems that voting of a DPOS consensus mechanism is not positive, malicious agent nodes cannot be eliminated in time and the like. For each node which is added into the block chain network for the first time, credit integration is initialized to be 100, under credit reward and punishment, the probability that an abnormal node becomes a proxy node can be reduced by voting and counting up the credit integration again for the nodes in the whole network, the nodes in the whole network are clustered by referring to a plurality of characteristic values of the nodes through a K-Means clustering algorithm in data mining, a group with relatively high trust degree has higher probability to win competition rights in the next round of competition, and the generation of invalid blocks or malicious blocks in the block chain network is further reduced.
Description
Technical Field
The invention relates to a block chain DPOS (distributed data processing system) consensus mechanism improvement method based on credit integration and node clustering.
Background
The blockchain is essentially a decentralized database, and is used as the underlying technology of bitcoin, namely a series of data blocks which are generated by correlation through a cryptographic method, wherein each data block contains information of a batch of bitcoin network transactions for verifying the validity of the information and generating the next blockchain. The consensus mechanism is the core of the block chain, completes the verification and confirmation of the transaction in a short time through the voting of the special nodes, and solves the problem of how to achieve consensus in a network which is lack of trust and is freely opened.
Consensus refers to the result of multiple parties not associated with each other agreeing on a problem. The consensus in the blockchain is mainly studied by accounting right assignment problems and check problems after blockgeneration. At present, the consensus mechanism is researched, and the consensus algorithm existing in the block chain system mainly includes POW, POS, POL, DPOS, and the like. POW (Proof-Of-Work), a workload certification consensus mechanism, has been successfully applied in bitcoin, which can solve the data consistency problem in a completely open, free network, but the mechanism consumes a lot Of computing power and other resources, and the data agreement time is long, which is difficult to meet the general business requirements; the main idea Of POS (Proof-Of-stamp) is that the probability Of obtaining block accounting right by a node is proportional to tokens held by the node, and POS reduces consumption caused by mathematical operation to a certain extent, but is still not suitable for some business environments with higher requirement on consensus time; POL (Proof-Of-Luck) is a common knowledge mechanism built on a trusted execution environment, which can greatly improve the efficiency Of block generation, but this also puts higher requirements on the processor, and needs corresponding hardware support; DPOS (deleted-Proof-Of-Stake) is a consensus mechanism capable Of realizing block chain second-level verification, wherein the DPOS selects the proxy nodes in a voting mode, and finally the proxy nodes complete block generation and verification.
Disclosure of Invention
The invention aims to provide an improved block chain DPOS consensus mechanism method based on credit points and node clustering, aiming at the defects of the existing block chain consensus mechanism in practical application.
As the DPOS consensus mechanism has the problems that voting is not positive, malicious agent nodes cannot be eliminated in time and the like, the invention defines basic concepts such as credit points and the like. Under credit reward and punishment, the probability that the abnormal node becomes the proxy node can be reduced by voting and counting credit integrals through the nodes of the whole network, the nodes of the whole network are clustered by using a K-Means clustering algorithm in data mining and referring to a plurality of attributes of the nodes, a group with relatively high trust degree has higher probability of winning competition right in the next round of competition, and the generation of invalid or malicious blocks is further reduced.
The K-Means clustering algorithm is selected because the K-Means clustering algorithm is an unsupervised clustering algorithm, is concise and clear to realize, and has good clustering effect. The core idea of the K-Means clustering algorithm is as follows: firstly, randomly selecting K seed points, then calculating the distance from all the points to the seed points, bringing the points into a seed point group with the closest distance, moving the seed points to the center of the seed group after all the points are brought into the group, and finally repeating the process until the seed points do not move.
In order to achieve the purpose, the invention adopts the following technical scheme:
a block chain DPOS consensus mechanism improvement method based on credit score and node clustering comprises the following specific operation steps:
1) initializing credit points: the credit score is a credit parameter endowed by a system when the node joins the blockchain network, is an important expression form of the trust degree of the node, and is initialized to be 100 for each node which is added to the blockchain network for the first time;
2) new transaction occurs in the blockchain network, nodes in the whole network compete for accounting after the transaction is finished, and all information of the transaction is recorded in a newly generated block of the blockchain network by the nodes which compete successfully;
3) the system judges whether a block newly generated in the network is an effective block or not, and judges whether the block is a malicious block or not if the block is not the effective block;
4) the whole network node votes the newly generated blocks in the network and divides the votes into a positive vote and a negative vote, if the votes are positive, the node considers the newly generated blocks as valid blocks, and if the votes are negative, the node considers the newly generated blocks as invalid blocks or even malicious blocks;
5) the system counts the voting result, carries out credit reward and punishment on the nodes of the whole network according to the voting result, and recalculates the credit integral of the nodes;
6) setting a credit point threshold, and when the credit point of the node is lower than 95, the system inhibits the node from becoming a proxy node;
7) taking credit points, whether voting is positive, time for the nodes to join the network and the number of tokens held by the nodes as clustering characteristic values, carrying out normalization processing on the characteristic values, and then utilizing a K-Means clustering algorithm to cluster all the nodes in the whole network into four classes;
8) after clustering is finished, the node with the highest credit score, the most positive voting, the longest time for joining the network and the highest token number has the highest trust level, and the nodes in the group have higher probability to obtain the accounting right in the next round of competition; similarly, the class with the lowest credit score, the most negative vote, the shortest time to join the network and the lowest token number has the lowest confidence level, and the probability that the node in the class will get the right to be billed in the next round of competition is greatly reduced.
Compared with the prior art, the invention has the advantages that:
firstly, credit integral is defined, and the probability that an abnormal node becomes an agent node can be reduced by the nodes of the whole network in a voting mode under the credit reward and punishment; secondly, clustering nodes of the whole network by using a K-Means clustering algorithm in data mining and referring to a plurality of attributes of the nodes, wherein the group with relatively high trust degree has a higher probability of winning the accounting right in the next round of competition, so that the generation of invalid blocks or malicious blocks is effectively reduced; finally, the probability of successful competition of the same type of clustered nodes in the next round of competition accounting is the same, so that the possibility that individual nodes with higher trust degree monopolize accounting right is effectively avoided.
Drawings
Fig. 1 is a flowchart of an improved block chain DPOS consensus method based on credit score and node clustering according to the present invention.
FIG. 2 is a diagram illustrating the effect of clustering the block link points by using K-Means according to the present invention.
Detailed Description
In order to facilitate understanding for those skilled in the art, the present invention will be further described with reference to the accompanying drawings and examples.
As shown in fig. 1, an improved method for block chain DPOS consensus based on credit score and node clustering specifically includes the following steps:
1) credit points are initialized. For each node that first joins the blockchain network, the credit score will be initialized to 100;
2) new transaction occurs in the blockchain network, nodes in the whole network compete for accounting after the transaction is finished, and all information of the transaction is recorded in a newly generated block of the blockchain network by the nodes which compete successfully;
3) the system judges whether a block newly generated in the network is an effective block or not, and judges whether the block is a malicious block or not if the block is not the effective block;
4) the nodes of the whole network begin to vote for the newly generated blocks in the network, the nodes can vote for the blocks or vote against the blocks, if the votes are voted for, the nodes consider the newly generated blocks as valid blocks, and if the votes are voted for, the nodes consider the newly generated blocks as invalid blocks or even malicious blocks;
5) the system counts the voting result, carries out credit reward and punishment on the nodes of the whole network according to the voting result, and recalculates the credit integral of the nodes; assuming that the current credit integral of the node is Score, the reward and punishment mode is shown in table 1 below:
table 1 credit reward and punishment mode
6) Setting a credit point threshold, and when the credit point of the node is lower than 95, the system inhibits the node from becoming a proxy node;
7) taking credit points, whether voting is positive, time for the nodes to join the network and the number of tokens held by the nodes as clustering characteristic values, normalizing the characteristic values, then utilizing a K-Means clustering algorithm to Cluster all the nodes in the whole network into four classes, wherein the clustering effect is shown in figure 2, the confidence level of Cluster 1 is the highest, the credit points owned by the central nodes after being subjected to normalization are up to 130, the confidence level of Cluster 2 is the lowest, the trust points owned by the central nodes after being subjected to normalization are only 74, and the average credit points of each class of nodes in ten rounds of competition are shown in the following table 2;
TABLE 2 mean Credit score for each class of nodes
One wheel | Two wheels | Three-wheel | Four-wheel vehicle | Five wheels | Six-wheel | Seven wheels | Eight wheels | Nine wheels | Ten wheels | |
Cluster1 | 101.06 | 102.06 | 103.12 | 104.18 | 105.24 | 106.3 | 107.3 | 108.36 | 109.42 | 110.48 |
Cluster2 | 100 | 99 | 99 | 98 | 97 | 97 | 97 | 96 | 96 | 95 |
Cluster3 | 100.98 | 101.04 | 102.02 | 102.02 | 102.02 | 103.02 | 103.08 | 104.08 | 105.06 | 106.04 |
Cluster4 | 100.98 | 101.98 | 102.96 | 103.96 | 103.96 | 104.96 | 104.96 | 105.96 | 106.94 | 107.94 |
8) After clustering is finished, the nodes in the Cluster 1 have higher probability of obtaining the accounting right in the next round of competition. Similarly, the nodes in Cluster 2 have the lowest trust, and the probability that the nodes in the class obtain the accounting right in the next round of competition is greatly reduced.
Claims (1)
1. A block chain DPOS consensus mechanism improvement method based on credit score and node clustering is characterized by comprising the following specific operation steps:
1) initializing credit points: the credit score is a credit parameter endowed by a system when the node joins the blockchain network, is an important expression form of the trust degree of the node, and is initialized to be 100 for each node which is added to the blockchain network for the first time;
2) new transaction occurs in the blockchain network, nodes in the whole network compete for accounting after the transaction is finished, and all information of the transaction is recorded in a newly generated block of the blockchain network by the nodes which compete successfully;
3) the system judges whether a block newly generated in the network is an effective block or not, and judges whether the block is a malicious block or not if the block is not the effective block;
4) voting a newly generated block in the network by the whole network node, wherein the voting is divided into a vote casting and a vote casting, if the vote casting is carried out, the node considers the newly generated block as a valid block, and if the vote casting is carried out, the node considers the newly generated block as an invalid block or even a malicious block;
5) the system counts the voting result, carries out credit reward and punishment on the nodes of the whole network according to the voting result, and recalculates the credit integral of the nodes;
6) setting a credit point threshold, and when the credit point of the node is lower than 95, the system inhibits the node from becoming a proxy node;
7) taking credit points, whether voting is positive, time for the nodes to join the network and the number of tokens held by the nodes as clustering characteristic values, carrying out normalization processing on the characteristic values, and then utilizing a K-Means clustering algorithm to cluster all the nodes in the whole network into four classes;
8) after clustering is finished, the node with the highest credit score, the most positive voting, the longest time for joining the network and the highest token number has the highest trust level, and the node in the next round of competition has higher probability to obtain the accounting right; similarly, the class with the lowest credit score, the most negative vote, the shortest time to join the network and the lowest token number has the lowest confidence level, and the probability that the node in the class will get the right to be billed in the next round of competition is greatly reduced.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910306559.XA CN110138597B (en) | 2019-04-17 | 2019-04-17 | Block chain DPOS (distributed DPOS) consensus mechanism improvement method based on credit integration and node clustering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910306559.XA CN110138597B (en) | 2019-04-17 | 2019-04-17 | Block chain DPOS (distributed DPOS) consensus mechanism improvement method based on credit integration and node clustering |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110138597A CN110138597A (en) | 2019-08-16 |
CN110138597B true CN110138597B (en) | 2021-11-05 |
Family
ID=67570053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910306559.XA Active CN110138597B (en) | 2019-04-17 | 2019-04-17 | Block chain DPOS (distributed DPOS) consensus mechanism improvement method based on credit integration and node clustering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110138597B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131181B (en) * | 2019-12-05 | 2022-02-08 | 重庆邮电大学 | Reputation mechanism and DPBFT algorithm-based block chain dynamic DPoS consensus method |
CN111182510B (en) * | 2020-01-09 | 2022-05-20 | 重庆邮电大学 | Industrial Internet of things node consensus method based on block chain |
CN111541737B (en) * | 2020-03-25 | 2023-10-10 | 广东工业大学 | AED equipment position sharing method based on blockchain |
CN113472825B (en) * | 2020-03-30 | 2023-01-13 | ***通信集团设计院有限公司 | NB-IoT terminal transaction processing method and device based on block chain |
CN111770103B (en) * | 2020-06-30 | 2021-12-14 | 中国科学技术大学 | Network node security attribute evaluation method based on block chain consensus result feedback |
CN112333251B (en) * | 2020-10-26 | 2023-07-28 | 中国电力科学研究院有限公司 | Block chain consensus distributed power transaction proxy node selection method and system |
CN112364388A (en) * | 2020-10-28 | 2021-02-12 | 中车工业研究院有限公司 | Sensor data authentication method and device based on block chain |
CN112991068B (en) * | 2021-05-20 | 2021-08-20 | 卓尔智联(武汉)研究院有限公司 | Method and device for sharing DPoS (certificate of authority) common identification, electronic equipment and storage medium |
CN113438283B (en) * | 2021-06-07 | 2022-09-27 | 北京科技大学 | Improved method of block chain DPOS (distributed data processing System) consensus mechanism based on HK (K-k) clustering |
CN114465866B (en) * | 2022-01-21 | 2023-08-15 | 北京航空航天大学 | DPoS method based on trust degree and PBFT |
CN115081539B (en) * | 2022-07-21 | 2022-11-15 | 交通运输部科学研究院 | Delegation rights and interests certification consensus method and device, electronic equipment and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615474A (en) * | 2018-12-11 | 2019-04-12 | 南京大学 | Medium-sized and small enterprises competitive intelligence shared platform construction method based on block chain |
CN109639837A (en) * | 2019-01-31 | 2019-04-16 | 东南大学 | Block chain DPoS common recognition method based on faith mechanism |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360206B (en) * | 2017-03-29 | 2020-03-27 | 创新先进技术有限公司 | Block chain consensus method, equipment and system |
CN109522456A (en) * | 2018-11-14 | 2019-03-26 | 全链通有限公司 | The node availability detection generated based on block |
-
2019
- 2019-04-17 CN CN201910306559.XA patent/CN110138597B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615474A (en) * | 2018-12-11 | 2019-04-12 | 南京大学 | Medium-sized and small enterprises competitive intelligence shared platform construction method based on block chain |
CN109639837A (en) * | 2019-01-31 | 2019-04-16 | 东南大学 | Block chain DPoS common recognition method based on faith mechanism |
Non-Patent Citations (1)
Title |
---|
"一种改进的区块链共识机制的研究与实现";张永,李晓辉;《电子设计工程》;20180131;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110138597A (en) | 2019-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110138597B (en) | Block chain DPOS (distributed DPOS) consensus mechanism improvement method based on credit integration and node clustering | |
CN113794675B (en) | Distributed Internet of things intrusion detection method and system based on block chain and federal learning | |
CN109639837B (en) | Block chain DPoS (distributed denial of service) consensus method based on trust mechanism | |
CN111090892B (en) | Block chain consensus method and device based on VRF and threshold signature | |
CN111583039B (en) | Secure interaction method, incentive method and transaction system for manager-free blockchain transaction | |
CN111478795B (en) | Alliance block chain network consensus method based on mixed Byzantine fault tolerance | |
CN111372220B (en) | Block chain consensus method applied to Internet of vehicles | |
Wang et al. | Beh-Raft-Chain: a behavior-based fast blockchain protocol for complex networks | |
Yuan et al. | Efficient Byzantine consensus mechanism based on reputation in IoT blockchain | |
CN111951108A (en) | Chain structure design method with intelligent contract block chain with complete picture | |
CN112118138B (en) | System and method for realizing block chain consensus mechanism | |
CN114819069A (en) | Client selection federated learning method based on DBSCAN clustering | |
CN114449476A (en) | Block link point consensus method for safety communication in Internet of vehicles | |
CN112801791B (en) | Block chain consensus method and system based on authorization | |
CN110930158A (en) | Block chain DPoS common recognition method based on reward and punishment mechanism | |
CN113362067B (en) | Asynchronous consensus-based electric power transaction matching method and system | |
CN113038427B (en) | Block chain cross-region authentication method based on credit mechanism and DPOS | |
CN116915505B (en) | Block chain consensus method and device based on improved PBFT algorithm | |
US20220278854A1 (en) | Unity Protocol Consensus | |
CN110867224B (en) | Multi-granularity Spark super-trust fuzzy method for large-scale brain pathology segmentation | |
Lei et al. | Improved Method of Blockchain Cross-Chain Consensus Algorithm Based on Weighted PBFT | |
CN113537308B (en) | Two-stage k-means clustering processing system and method based on localized differential privacy | |
CN114997865A (en) | Platform transaction method and device based on block chain system | |
CN115630328A (en) | Identification method of key nodes in emergency logistics network | |
Chen et al. | A weighted FDR procedure under discrete and heterogeneous null distributions |
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 |