CN111512332B - Topological construction method and system for meeting partition tolerance under alliance chain consensus - Google Patents

Topological construction method and system for meeting partition tolerance under alliance chain consensus Download PDF

Info

Publication number
CN111512332B
CN111512332B CN201980005054.8A CN201980005054A CN111512332B CN 111512332 B CN111512332 B CN 111512332B CN 201980005054 A CN201980005054 A CN 201980005054A CN 111512332 B CN111512332 B CN 111512332B
Authority
CN
China
Prior art keywords
probability
partition
partition tolerance
repair time
state
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
Application number
CN201980005054.8A
Other languages
Chinese (zh)
Other versions
CN111512332A (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.)
Foshan Saisichen Technology Co ltd
Shenzhen Cestbon Technology Co ltd
Peking University Shenzhen Graduate School
Original Assignee
Foshan Saisichen Technology Co ltd
Shenzhen Cestbon Technology Co ltd
Peking University Shenzhen Graduate School
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 Foshan Saisichen Technology Co ltd, Shenzhen Cestbon Technology Co ltd, Peking University Shenzhen Graduate School filed Critical Foshan Saisichen Technology Co ltd
Publication of CN111512332A publication Critical patent/CN111512332A/en
Application granted granted Critical
Publication of CN111512332B publication Critical patent/CN111512332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N7/00Computing arrangements based on specific mathematical models
    • G06N7/08Computing arrangements based on specific mathematical models using chaos models or non-linear system models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Algebra (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Technology Law (AREA)
  • Evolutionary Biology (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Operations Research (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Nonlinear Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is suitable for the field of network construction technology improvement, and provides a topological construction method meeting partition tolerance under alliance chain consensus, which comprises the following steps: s1, combining a alliance chain consensus mechanism with a network topological structure to enable alliance chain consensus to meet partition tolerance in probability; s2, abstracting the partition tolerance of the system into a type of a convergent Markov process and acquiring the steady-state probability of the system; s3, estimating the probability and the minimum repair time of partition faults which occur in a certain time and do not meet the consistency or availability of the number of fault channels to obtain the partition tolerance probability and the average minimum repair time of the system; and S4, analyzing the resource overhead and the partition tolerance under different network topological structures according to the obtained partition tolerance probability and the average minimum repair time, and constructing a network topological structure with proper scale and high partition tolerance for the alliance chain consensus with different requirements. The coexistence of the three factors of CAP can be realized, and the method has high practical significance.

Description

Topological construction method and system for meeting partition tolerance under alliance chain consensus
Technical Field
The invention belongs to the field of network construction technology improvement, and particularly relates to a topological construction method meeting partition tolerance under alliance chain consensus.
Background
A block chain refers to a mode for implementing and managing transaction processing by constructing a block chain type data structure which is not fakeable, falsifiable and traceable through transparent and trusted rules in a Peer-to-Peer network (also called Peer-to-Peer network) environment. According to the discussion of people on a block chain in the early stage, in a narrow sense, the block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and a distributed account book which is not falsifiable and cannot be forged is guaranteed in a cryptographic mode; broadly, blockchains are a completely new distributed infrastructure and computing approach that utilizes blockchain data structures to authenticate and store data, distributed node consensus algorithms to generate and update data, cryptography to secure data transmission and access, and intelligent contracts composed of automated script code to program and manipulate data.
The blockchain is essentially a decentralized distributed ledger, and the distributed idea has been proposed and developed to maturity as early as before the blockchain appeared. In 2000, eric Brewer made a guess at a seminar: consistency (C: consistency), availability (A: availability), and Partition tolerance (P: partition tolerance) cannot be fully satisfied simultaneously in a distributed system. In 2002, lynch et al demonstrated this hypothesis and elevated it to the CAP theorem. The CAP theorem abstracts the three factors of consistency, availability and partition tolerance for the first time as important features of distributed system design. Specifically, (1) coherency means that any operation in the system should appear "atomic" or serial, and all operations appear to be globally ordered; (2) Availability means that any regular node should give a response within a limited time after being requested; (3) Partition tolerance refers to the ability of a system to meet consistency and availability when a network is partitioned at a certain time.
Due to the fact that the network environment of the block chain is quite complex, the main flow block chain consensus algorithm of PoW and the like meets high availability and partition tolerance by weakening strict consistency into long-time final consistency, but the TPS performance of the system is limited. Therefore, some high-performance blockchain systems such as EOS choose to sacrifice part of partition tolerance in exchange for TPS performance improvement by controlling the number of nodes participating in accounting. Both of the above approaches simply select two factors as the main enhancement points in consistency, availability and partition tolerance, while weakening the third factor significantly, leaving much room from the CAP limit.
The bit currency adopts a point-to-point distributed network architecture based on the Internet, and each node has a network routing function. When a new node needs to be accessed into the bitcoin network, the following steps are performed:
1. a DNS seed or a seednode command is used to find a valid node in the bitcoin network.
2. And sending a version message containing basic authentication content to the found valid bitcoin node to perform an initial handshake communication process, and establishing connection.
3. The IP address of the node is sent to the connected nodes, and the nodes forward the IP address to the respective connecting nodes after receiving the IP address, so that more nodes in the network receive the new node.
4. A list of its known node IP addresses is requested from the connected nodes in order to find more connectable nodes.
5. Periodically sending information to the nodes which have established connection to maintain connection, if no communication is carried out with a certain node for 90 minutes, the nodes are considered to be disconnected, and a new node is searched for. Since bitcoin communication is based on the TCP protocol, the number of TCP connections per node is limited, and therefore, an excess number of IP addresses may be ignored.
After the startup is completed, the node remembers the node which is successfully connected recently, and can quickly reestablish connection with the previous node after the startup is restarted. And (4) if the previous nodes can not be connected, restarting to execute from the step (1).
In the communication process between the bit currency block chain nodes, the topological structure of the network is not required to be maintained, namely the network is not required to be abstracted in a logic sense, and a flooding strategy is adopted for data transmission. The flooding idea is simple and easy to implement, the negative influence of the behaviors of node addition, node departure, node failure and the like on the whole system is small, and the network reliability is high. However, since the mesh structures are interconnected, flooding may cause the node to repeatedly receive the same data for multiple times, resulting in redundant reception of node information, and a large amount of useless repeated data transmission consumes network resources.
A class of Authority certification (PoA) consensus algorithm based on a federation chain was proposed in 2017 by Gavin Wood, a pioneer and predecessor technical officer in the united foundries of etherhouses, and is currently used in the test network Kovan of etherhouses. The consensus process for PoA is: firstly, a group of initial authorized signers is specified in a created block, and the signers start to sign the generated block and broadcast uplink after mine excavation is started. If other authorized signers object to the block generation, the signer of the block is voted to kick out, and the billing right of the signer corresponding to the block is cancelled when the number of votes exceeds 50% of the total number of the signers.
In order to reduce the loss of a malicious SIGNER, the same SIGNER can only sign one of (SIGNER _ COUNT/2) +1 blocks. IN order to reduce the probability OF divergence, one signer is IN an IN-TURN state at each altitude, other signers are IN an OUT-OF-TURN state, the signer IN the IN-TURN state can broadcast own blocks immediately, and the signer IN the OUT-OF-TURN state generates the blocks and broadcasts the blocks after randomly delaying for a period OF time.
PoA consensus relies on an efficient and trustworthy authentication mechanism. Considering that the identity of the signer is public to the whole network, once more than half of the signers are attacked by the attacker, the system cannot guarantee the correctness of the block. On the other hand, compared to the conventional PBFT consensus algorithm, the PoA consensus algorithm achieves high availability and partition tolerance by weakening the consistency requirements to be either non-uniform (Aura clients) or final uniform (Clique clients).
Disclosure of Invention
The invention aims to provide a topological construction method meeting partition tolerance under alliance chain consensus, and aims to solve the technical problems.
The invention is realized in such a way that a topological construction method meeting partition tolerance under alliance chain consensus comprises the following steps:
s1, combining a alliance chain consensus mechanism with a network topology structure to enable the alliance chain consensus to meet partition tolerance in probability;
s2, abstracting the partition tolerance of the system into a type of a convergent Markov process and acquiring the steady-state probability of the system;
s3, estimating the probability and the minimum repair time of partition faults which occur in a certain time and do not meet the consistency or availability of the number of fault channels to obtain the partition tolerance probability and the average minimum repair time of the system;
and S4, analyzing the resource overhead and the partition tolerance under different network topological structures according to the obtained partition tolerance probability and the average minimum repair time, and constructing a network topological structure with proper scale and high partition tolerance for the alliance chain consensus with different requirements.
The further technical scheme of the invention is as follows: in the step S2, the Markov process converges to a steady-state distribution of an independent initial distribution, and the step of obtaining the steady-state probability of the system under a single network topology structure includes the following steps:
s21, multiplying the state transition matrix P circularly with the state transition matrix P;
s22, judging whether the matrix 2-norm of the difference between two continuous products is smaller than the set convergence precision, and if so, considering the power value of the P at the moment as a steady-state probability matrix P * If not, the process returns to step S21.
The invention further adopts the technical scheme that: MTBF and MTTR of each analysis element in the step S3 are independent processes without memory and have constant mean values; the method for acquiring the partition tolerance probability of the system under the single network topology structure comprises the following steps:
s311, sampling for each possible state of the steady-state system for N times respectively;
s312, estimating the probability that partition faults occur and the consistency or the availability is not met in each state;
s313, calculating the partition tolerance probability of the system according to a total probability formula, wherein the total probability formula is as follows:
Figure BDA0002446282920000031
l represents the total number of channels and i represents that there are and only i channels in the steady state system that are in a failure state.
The further technical scheme of the invention is as follows: the method for acquiring the average minimum repair time of the system under the single network topology structure comprises the following steps:
s321, calculating the minimum repair time for each sample which has partition faults and does not meet consistency or availability;
and S322, multiplying the weight of the sample in the total system partition tolerance problem to obtain the average minimum repair time of the system.
The further technical scheme of the invention is as follows: in a hierarchical network topology structure, according to a consensus process, the partition tolerance of a lower-level domain is not only influenced by the network topology structure of the lower-level domain, but also related to the partition tolerance of a higher-level domain; partition tolerance probability of the system is
Figure BDA0002446282920000041
The average minimum repair time of the system is
Figure BDA0002446282920000042
Wherein, the first and the second end of the pipe are connected with each other,
Figure BDA0002446282920000043
represents the partition tolerance probability of each domain,
Figure BDA0002446282920000044
representing the average minimum repair time for each domain.
Another object of the present invention is to provide a topology construction system satisfying partition tolerance under federation chain consensus, the topology construction system comprising
The combination module is used for combining the alliance chain consensus mechanism with the network topology structure so that the alliance chain consensus meets the partition tolerance in probability;
the convergence module is used for abstracting the partition tolerance of the system into a type of a converged Markov process and acquiring the steady-state probability of the system;
the sampling estimation module is used for estimating the probability that the number of the fault channels has partition faults at a certain time and does not meet the consistency or availability and the minimum repair time to obtain the partition tolerance probability and the average minimum repair time of the system;
and constructing a network module for analyzing the resource overhead and the partition tolerance under different network topology structures according to the obtained partition tolerance probability and the average minimum repair time, and constructing a network topology structure with proper scale and high partition tolerance for the alliance chain consensus with different requirements.
The further technical scheme of the invention is as follows: the Markov process in the convergence module converges to a steady state distribution of an independent initial distribution, and the obtaining of the steady state probability of the system under a single network topology structure comprises
A cyclic multiplication unit for multiplying the state transition matrix P with itself cyclically;
a judging unit for judging whether the matrix 2-norm of the difference between two successive products is smaller than the set convergence precision, if so, the power value of P at the moment is considered as a steady-state probability matrix P * And if not, returning to the cyclic multiplication unit.
The further technical scheme of the invention is as follows: MTBF and MTTR of each analysis element in the sampling estimation module are independent processes without memory and have constant mean values; obtaining partition tolerance probabilities for a system under a single network topology includes
A sampling unit for respectively sampling N times for each possible state of a steady-state system;
an estimation unit for estimating a probability that a partition failure occurs and that the consistency or availability is not satisfied in each state;
and the calculating unit is used for calculating the partition tolerance probability of the system according to a total probability formula, wherein the total probability formula is as follows:
Figure BDA0002446282920000051
l represents the total number of channels and i represents that there are and only i channels in the steady state system are in a failure state.
The invention further adopts the technical scheme that: obtaining an average minimum repair time for a system under a single network topology includes
Calculating a minimum repair time unit for calculating a minimum repair time for each sample which has a partition failure and does not satisfy consistency or availability;
and calculating an average minimum repair time unit for multiplying the weight of the sample in the total system partition tolerance problem to obtain the average minimum repair time of the system.
The further technical scheme of the invention is as follows: in a hierarchical network topology structure, according to a consensus process, the partition tolerance of a lower-level domain is not only influenced by the network topology structure of the lower-level domain, but also related to the partition tolerance of a higher-level domain; partition tolerance probability of the system is
Figure BDA0002446282920000052
The average minimum repair time of the system is
Figure BDA0002446282920000053
Wherein the content of the first and second substances,
Figure BDA0002446282920000054
represents the partition tolerance probability of each domain,
Figure BDA0002446282920000055
the average minimum repair time for each domain is indicated.
The invention has the beneficial effects that: the network topology structure is combined with the alliance chain consensus mechanism, so that the alliance chain consensus meets the partition tolerance in probability, the coexistence of three factors of CAP can be realized, and the practical significance is high; the mean fault interval time and the mean fault repairing time which are kept unchanged in a period of time are used as parameters, and the prediction accuracy of the Markov model on the system state probability distribution trend is improved; the probability that the number of the fault channels is subjected to partition faults at a certain time and does not meet the consistency or availability and the minimum repair time are estimated, and the self-partition tolerance and the network topological structure characteristics of the consensus mechanism are adapted to the maximum extent.
Drawings
Fig. 1 is a Markov state transition diagram representation of a general network topology.
Fig. 2 is a domain number diagram of a hierarchical network topology according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of partition tolerance probability of a multi-dimensional super-square network topology according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of an average minimum repair time of a multi-dimensional super-square network topology according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of partition tolerance probability of a multi-point fully-connected network topology according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of an average minimum repair time of a multipoint fully connected network topology according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of a lower boundary situation of a hierarchical network topology according to an embodiment of the present invention.
Fig. 8 is a schematic diagram of a fully symmetric hierarchical network topology according to an embodiment of the present invention.
Fig. 9 is a schematic diagram of a semi-symmetric hierarchical network topology according to an embodiment of the present invention.
Fig. 10 is a schematic diagram of an asymmetric hierarchical network topology according to an embodiment of the present invention.
Fig. 11 is a flowchart of a topology construction method satisfying partition tolerance under federation chain consensus provided by the embodiment of the present invention.
Detailed Description
As shown in fig. 11, the present invention provides a topology construction method satisfying partition tolerance under federation chain consensus, which is detailed as follows:
the existing block chain system only strengthens two factors of consistency, usability and partition tolerance at a consensus level, and is accompanied by great weakening of a third factor, and the third factor still has a distance from the CAP limit. In addition, in the aspect of data communication, the current mainstream block chain system does not consider how to maintain the network topology structure, which brings potential hidden network communication hazards and resource waste.
Aiming at the problems, the invention, namely the topological construction method and the system for meeting the partition tolerance under the alliance chain consensus combines the network topological structure with the alliance chain consensus mechanism, so that the alliance chain consensus meets the partition tolerance in probability, and further the coexistence of three factors of CAP can be realized. The invention also provides a partition tolerance calculation method, which abstracts the partition tolerance problem of the system into a type of convergent Markov process, and uses simulation software such as MATLAB and the like to sample and calculate the probability and average minimum repair time of the network which can not meet the consistency or availability when the partition fault occurs. According to the computing method, the resource overhead and the partition tolerance under different network topology structures are specifically analyzed, and the network topology structure with the appropriate scale and the high partition tolerance is constructed for the alliance chain consensus with different requirements.
According to the technical scheme, on the basis of not influencing the consistency and the availability of the consensus algorithm, the network topology structure and the alliance chain consensus mechanism are combined, so that the alliance chain consensus meets the partition tolerance in probability, the coexistence of three factors of CAP can be realized, and the method has high practical significance.
A partition tolerance calculation method is provided, the partition tolerance problem of a system is abstracted into a type of a convergent Markov process, and the average fault interval time and the average fault repairing time which are kept unchanged in a period of time are used as parameters, so that the prediction accuracy of a Markov model on the system state probability distribution trend is improved.
The partition tolerance of different consensus mechanisms is different, and the partition failure possibly occurs under different network topologies, so that the failure probability of the different consensus mechanisms has different characteristics. And (3) sampling and estimating the probability that the number of the fault channels has partition faults and does not meet consistency or availability at a certain time and the minimum repair time by using simulation software such as MATLAB (matrix laboratory), and the like, so that the self-partition tolerance and the network topological structure characteristics of the consensus mechanism are adapted to the maximum extent.
The partition tolerance under the hierarchical network topology structure is further deduced by a calculation method under the single network topology structure, so that the method is not only suitable for a general single-chain architecture, but also suitable for multi-chain and cross-chain architectures, and has a wide application prospect.
The resource overhead and the partition tolerance under different network topological structures are specifically analyzed, and a single or hierarchical network topological structure which is suitable in scale and high in partition tolerance is constructed for union link consensus with different requirements. The domains at different hierarchies may adopt the same or different network topologies and parameters, and the network topologies of the domains at the same hierarchy may not be completely the same.
Evaluating a communication network is generally based on the following basic assumptions:
1. all elements involved in the analysis have only two states: operation and failure.
2. The failure and repair of each analysis element are independent.
3. MTBF (Mean Time Between Failures) and MTTR (Mean Time To Repair Time) of each analysis element are independent processes without memory and Mean values are constant.
MTBF is much greater than MTTR.
Based on the above assumptions, since each element is in the multiple processes of work-fail-repair, a Markov process can be used for mathematical description. The parameters are defined as follows:
v: total number of network nodes.
l: total number of network channels.
k: the alliance chain consensus mechanism meets the number of consensus nodes with minimum requirements on consistency and availability, namely if and only if the number of consensus nodes in a certain partition is larger than or equal to k, the alliance chain consensus mechanism meets the consistency and the availability.
λ: probability of failure interruption per unit time of channel, i.e.
Figure BDA0002446282920000071
μ: probability of a channel in a system being repaired per unit time in a failed state, i.e. repair rate
Figure BDA0002446282920000072
1. Partition tolerance probability and average minimum repair time for a single network topology
For a network topology (such as a multi-dimensional super-square structure or a multi-point full-connection structure) comprising v nodes and l channels, a Markov state transition diagram is made, as shown in FIG. 1. The ith system state indicates that there are and only i channels in the network in the failure state (0 ≦ i ≦ l).
The state transition matrix of the Markov model is a matrix P of scale (l + 1) × (l + 1), where the element P ji Representing the probability of transitioning from the ith system state to the jth system state.Let m denote the number of failed channels in state i and state j, the value range of m is [ max { i + j-l,0}, min { i, j }]。
Figure BDA0002446282920000073
The state transition matrix P of the above Markov model satisfies three characteristics:
1. p satisfies randomness because all elements of P are equal to or greater than 0 and the sum of the elements of a column represents the sum of the probabilities of all possible next hops in a given initial state, i.e., the sum of the columns of P is 1.
2. P satisfies irreducibility because failure and repair are independent of each other, and each system state can come from any other state, i.e., the Markov state transition diagram described above is fully connected.
3. As can be seen from fig. 1, there is no simple loop between system states, so P satisfies aperiodic.
Thus, the Markov process eventually converges to a steady state profile that is independent of the initial profile. Algorithm 1 describes an iterative calculation process of the system steady-state probability. Multiplying the state transition matrix P circularly with the state transition matrix P, and if the matrix 2-norm of the difference between two continuous products is smaller than the given convergence precision, considering the power value of the P at the moment as a steady-state probability matrix P *
Figure BDA0002446282920000081
Since the MTBF and MTTR of each analysis element are independent processes without memory and have constant mean values, the probability that a partition failure occurs and consistency or availability is not satisfied at a certain time can be estimated by sampling the number of failed channels. Algorithm 2 describes the partition tolerance probability calculation process for a system under a single network topology. For various states possibly existing in the system in a steady state, sampling for N times respectively, estimating the probability that the system has partition faults and does not meet the consistency or the availability, and calculating the partition tolerance probability of the system according to a full probability formula.
Figure BDA0002446282920000091
The minimum repair time is defined as the minimum time required for the system to repair a portion of the channel in the event of a failure of some kind so that the system meets consistency and availability. Algorithm 3 describes the average minimum repair time calculation process for a system under a single network topology. On the basis of the algorithm 2, for each instance which has a partition fault and does not meet the consistency or availability, the minimum repair time is calculated, and then the weight of the instance in the total system partition tolerance problem is multiplied to obtain the average minimum repair time of the system.
Figure BDA0002446282920000101
2. Partition tolerant probability and minimum average repair time for a hierarchical network topology
In a hierarchical network topology, after a lower domain node generates a block in the local domain, the block is transferred to an upper domain node to continue the higher level of consensus. For an n-level network topology, the domains are assigned (i) 1 i 2 i 3 …) as shown in fig. 2.
The partition tolerance of the lower-level domain is not only influenced by the network topology of the lower-level domain, but also related to the partition tolerance of the higher-level domain. Order to
Figure BDA0002446282920000102
Representing the partition tolerance probability of each domain. The partition tolerance probability of the system is
Figure BDA0002446282920000111
In the same way, order
Figure BDA0002446282920000112
The average minimum repair time for each domain is indicated. The average minimum repair time of the system is
Figure BDA0002446282920000113
Taking a digital optical cable system as an example, the partition tolerance probability and the average minimum repair time when a voting Proof consensus mechanism (Proof of volume, poV) in a alliance chain adopts a super square network topology structure and a fully connected network topology structure are respectively calculated below.
According to the regulations of national standards, the digital optical cable communication system with the automatic switching function of the main and standby systems should meet the annual index shown in table 1. So as to obtain the parameter pair (lambda, mu) epsilon { (4.5662 × 10) -4 ,4.1667×10 -2 ),(2.7397×10 -4 ,6.9444×10 -2 ),(3.8358×10 -5 ,4.9603×10 -1 ),(2.5571×10 -5 ,7.4405×10 -1 )}。
TABLE 1 digital optical cable communication system reliability index
Link length/km 5000 3000 420 280
Number of bidirectional full-range faults 4 2.4 0.336 0.224
MTBF/h 2190 3650 26070 39107
φ/fit 456620 273970 38358 25570
MTTR/h 24 14.4 2.016 1.344
F/% 0.274 0.164 0.023 0.015
A/% 99.726 99.836 99.977 99.985
The resource overhead of the two network topologies of multidimensional super square and multipoint full connection are shown in table 2.
TABLE 2 resource overhead for multidimensional hyper-square and multi-drop fully-connected network topologies
Figure BDA0002446282920000114
In the context of the common consensus of PoV,
Figure BDA0002446282920000115
the calculated results of the partition tolerance probability and the average minimum repair time are shown in fig. 3-6.
Consider continuing the 4 hierarchical network topologies exemplified by fig. 7-10. FIG. 7 shows a lower boundary case of the method, i.e., the topological structure of the top, second and third level domains are 2-dimensional hyper-squares; FIG. 8 shows a fully symmetric 3-level topology construction method, where the topological structures of the top, second and third level domains are all 3-dimensional ultrasquares; FIG. 9 shows a semi-symmetric 2-level topology construction method, where the topological structures between sibling domains are the same, but the topological structure of the top-level domain is a 4-dimensional super-square, and the topological structure of the second-level domain is a 3-dimensional super-square; fig. 10 shows an asymmetric 2-level topology construction method, in which the topological structures of the upper level domain, the lower level domain and the same level domain are all different, specifically, the top level domain adopts a 4-dimensional super-square structure, and 4, 8 and 4 secondary domains respectively adopt 4-dimensional super-square, 3-dimensional super-square and 7-point full-connection structures.
Assume that the top, second and third level link lengths of the topologies in fig. 7-10 are 5000km, 3000km and 420km, respectively. Using the results of the partition tolerance calculation of the multidimensional super square and the multipoint full connection in fig. 3 to 6, the partition tolerance probability and the average minimum repair time of the 4 hierarchical network topologies in fig. 7 to 10 are further calculated as follows:
(1) Lower boundary case
p=1-[(1-p 1 )+p 1 *(1-p 11 )*4+p 1 *p 11 *(1-p 111 )*4*4]≈1-4×10 -4 I.e., a partition failure may occur about every 3 months.
t=[t 1 *(1-p 1 )+t 11 *p 1 *(1-p 11 )*4+t 111 *p 1 *p 11 *(1-p 111 )*4*4]/(1-p) ≈ 21h, i.e., the average minimum repair time after a partition failure fault occurs is about 21 hours.
(2) Fully symmetric 3-level topology
p=1-[(1-p 1 )+p 1 *(1-p 11 )*8+p 1 *p 11 *(1-p 111 )*8*8]≈1-5×10 -8 I.e., a partition failure may occur approximately every 2,283 years.
t=[t 1 *(1-p 1 )+t 11 *p 1 *(1-p 11 )*8+t 111 *p 1 *p 11 *(1-p 111 )*8*8]And/(1-p) ≈ 23h, i.e., the average minimum repair time after a partition failure occurs is about 23 hours.
(3) Semi-symmetrical 2-level topology
p=1-[(1-p 1 )+p 1 *(1-p 11 )*16]≈1-1×10 -8 I.e., a partition failure may occur approximately every 11,416 years.
t=[t 1 *(1-p 1 )+t 11 *p 1 *(1-p 11 )*16]/(1-p) ≈ 14h, i.e., the average minimum repair time after a partition failure fault occurs is about 14 hours.
(4) Asymmetric 2-level topology
p=1-[(1-p 1 )+p 1 *(1-p 11 )*4+p 1 *(1-p 12 )*8+p 1 *(1-p 13 )*4]≈1-6×10 -9 I.e., a partition failure may occur approximately every 19,026 years.
t=[t 1 *(1-p 1 )+t 11 *p 1 *(1-p 11 )*4+t 12 *p 1 *(1-p 12 )*8+t 13 *p 1 *(1-p 13 )*4]And/(1-p) ≈ 14h, i.e., the average minimum repair time after a partition failure occurs is about 14 hours.
Another objective of the present invention is to provide a topology construction system satisfying partition tolerance under federation chain consensus, which comprises
The combination module is used for combining the alliance chain consensus mechanism with the network topology structure so that the alliance chain consensus meets the partition tolerance in probability;
the convergence module is used for abstracting the partition tolerance of the system into a type of a converged Markov process and acquiring the steady-state probability of the system;
the sampling estimation module is used for estimating the probability that the fault channel quantity has partition faults at a certain time and does not meet the consistency or the availability and the minimum repair time to obtain the partition tolerance probability and the average minimum repair time of the system;
and constructing a network module for analyzing the resource overhead and the partition tolerance under different network topology structures according to the obtained partition tolerance probability and the average minimum repair time, and constructing a network topology structure with proper scale and high partition tolerance for the alliance chain consensus with different requirements.
The Markov process in the convergence module converges to a steady state distribution of an independent initial distribution, and the obtaining of the steady state probability of the system under a single network topology structure comprises
A cyclic multiplication unit for cyclically multiplying the state transition matrix P by itself;
a judging unit for judging whether the matrix 2-norm of the difference between two successive products is less than the set convergence precision, if so, the power value of P at the moment is considered as a steady-state probability matrix P * And if not, returning to the cyclic multiplication unit.
MTBF and MTTR of each analysis element in the sampling estimation module are independent processes without memory and have constant mean values; acquiring the partition tolerance probability of the system under a single network topology structure comprises an adoption unit, a sampling unit and a sampling unit, wherein the adoption unit is used for respectively sampling each possible state of a steady-state system for N times;
an estimating unit for estimating a probability that a partition failure occurs and that consistency or availability is not satisfied in each state;
and the calculating unit is used for calculating the partition tolerance probability of the system according to a total probability formula, wherein the total probability formula is as follows:
Figure BDA0002446282920000137
l represents the total number of channels and i represents that there are and only i channels in the steady state system are in a failure state.
Obtaining an average minimum repair time for a system under a single network topology includes
Calculating a minimum repair time unit for calculating a minimum repair time for each sample that has a partition failure and does not satisfy consistency or availability;
and calculating an average minimum repair time unit for multiplying the weight of the sample in the total system partition tolerance problem to obtain the average minimum repair time of the system.
In a hierarchical network topology structure, according to a consensus process, the partition tolerance of a lower-level domain is not only influenced by the network topology structure of the lower-level domain, but also related to the partition tolerance of a higher-level domain; partition tolerance probability of the system is
Figure BDA0002446282920000131
Figure BDA0002446282920000132
The average minimum repair time of the system is
Figure BDA0002446282920000133
Figure BDA0002446282920000134
Wherein the content of the first and second substances,
Figure BDA0002446282920000135
the partition tolerance probability of each domain is expressed,
Figure BDA0002446282920000136
the average minimum repair time for each domain is indicated.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (6)

1. A topological construction method meeting partition tolerance under alliance chain consensus is characterized by comprising the following steps:
s1, a alliance chain consensus mechanism is combined and used in a network topological structure system, so that the alliance chain consensus mechanism meets partition tolerance in probability;
s2, abstracting the partition tolerance of the system into a type of a convergent Markov process and acquiring the steady-state probability of the system;
s3, estimating the number of fault channels according to the acquired steady-state probability of the system, namely the probability that partition faults occur at regular time and the consistency or the availability is not met and the minimum repair time, and acquiring the partition tolerance probability and the average minimum repair time of the system according to the acquired probability and the minimum repair time;
s4, analyzing resource overhead and partition tolerance under different network topology structures according to the obtained partition tolerance probability and the average minimum repair time, and constructing a network topology structure with proper scale and high partition tolerance for alliance chain consensus with different requirements;
in the step S2, the Markov process converges to a steady-state distribution of an independent initial distribution, and the step of obtaining the steady-state probability of the system under a single network topology structure includes the following steps:
s21, multiplying the state transition matrix P circularly with the state transition matrix P;
s22, judging whether the matrix 2-norm of the difference between two continuous products is smaller than the set convergence precision, and if so, considering the power value of the P at the moment as a steady-state probability matrix P * If not, returning to the step S21;
the MTBF and MTTR of each analysis element in the step S3 are independent processes without memory and have constant mean values; the method for acquiring the partition tolerance probability of the system under the single network topology structure comprises the following steps:
s311, respectively sampling each possible state of the steady-state system for N times;
s312, estimating the probability that partition faults occur and the consistency or the availability is not met in each state;
s313, calculating the partition tolerance probability of the system according to a total probability formula, wherein the total probability formula is as follows:
Figure FDA0003722815000000021
l represents the total number of channels and i represents that there are and only i channels in the steady state system are in a failure state.
2. The topology construction method satisfying partition tolerance under alliance chain consensus as claimed in claim 1, wherein obtaining the average minimum repair time of the system under a single network topology comprises the steps of:
s321, calculating the minimum repair time for each sample which has partition faults and does not meet consistency or availability;
and S322, multiplying the weight of the sample in the total system partition tolerance problem to obtain the average minimum repair time of the system.
3. The topology construction method satisfying partition tolerance under alliance chain consensus as claimed in claim 1 or 2, wherein in the hierarchical network topology, according to the consensus process, the partition tolerance of the lower level domain is not only affected by the network topology itself but also related to the partition tolerance of the higher level domain; partition tolerance probability of the system is
Figure FDA0003722815000000022
The average minimum repair time of the system is
Figure FDA0003722815000000031
Wherein, the first and the second end of the pipe are connected with each other,
Figure FDA0003722815000000032
the partition tolerance probability of each domain is expressed,
Figure FDA0003722815000000033
representing average min-fixes for respective domainsAnd (5) repeating the time.
4. A topological construction system meeting partition tolerance under alliance chain consensus is characterized in that the topological construction system comprises
The combination module is used for combining the alliance chain consensus mechanism in a network topological structure system so that the alliance chain consensus mechanism meets partition tolerance in probability;
the convergence module is used for abstracting the partition tolerance of the system into a type of a converged Markov process and acquiring the steady-state probability of the system;
the sampling estimation module is used for estimating the number of fault channels according to the acquired steady-state probability of the system, namely the probability that partition faults occur at a certain time and the consistency or the availability is not met and the minimum repair time, and obtaining the partition tolerance probability and the average minimum repair time of the system according to the acquired probability and the minimum repair time;
the network module is constructed and used for analyzing resource overhead and partition tolerance under different network topological structures according to the obtained partition tolerance probability and the average minimum repair time, and constructing a network topological structure which is suitable in scale and high in partition tolerance for alliance chain consensus with different requirements;
the Markov process in the convergence module converges to a steady state distribution of an independent initial distribution, and the obtaining of the steady state probability of the system under a single network topology structure comprises
A cyclic multiplication unit for multiplying the state transition matrix P with itself cyclically;
a judging unit for judging whether the matrix 2-norm of the difference between two successive products is less than the set convergence precision, if so, the power value of P at the moment is considered as a steady-state probability matrix P * If not, returning to the cyclic multiplication unit;
MTBF and MTTR of each analysis element in the sampling estimation module are independent processes without memory and have constant mean values; obtaining partition tolerance probabilities for a system under a single network topology includes
A sampling unit for respectively sampling N times for each possible state of a steady-state system;
an estimating unit for estimating a probability that a partition failure occurs and that consistency or availability is not satisfied in each state;
and the calculating unit is used for calculating the partition tolerance probability of the system according to a total probability formula, wherein the total probability formula is as follows:
Figure FDA0003722815000000041
l represents the total number of channels and i represents that there are and only i channels in the steady state system that are in a failure state.
5. A federation chain consensus satisfied topology construction system for meeting partition tolerance as recited in claim 4, wherein obtaining an average minimum repair time for a system under a single network topology comprises
Calculating a minimum repair time unit for calculating a minimum repair time for each sample that has a partition failure and does not satisfy consistency or availability;
and calculating an average minimum repair time unit for multiplying the weight of the sample in the total system partition tolerance problem to obtain the average minimum repair time of the system.
6. The topology construction system meeting partition tolerance under alliance chain consensus as claimed in claim 4 or 5, wherein in the hierarchical network topology, according to the consensus process, the partition tolerance of the lower level domain is not only affected by the network topology itself but also related to the partition tolerance of the higher level domain; partition tolerance probability of the system is
Figure FDA0003722815000000042
The average minimum repair time of the system is
Figure FDA0003722815000000051
Wherein, the first and the second end of the pipe are connected with each other,
Figure FDA0003722815000000052
represents the partition tolerance probability of each domain,
Figure FDA0003722815000000053
representing the average minimum repair time for each domain.
CN201980005054.8A 2019-02-20 2019-02-20 Topological construction method and system for meeting partition tolerance under alliance chain consensus Active CN111512332B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/075547 WO2020168477A1 (en) 2019-02-20 2019-02-20 Method for constructing topology satisfying partition tolerance under alliance chain consensus and system

Publications (2)

Publication Number Publication Date
CN111512332A CN111512332A (en) 2020-08-07
CN111512332B true CN111512332B (en) 2022-12-09

Family

ID=71864549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980005054.8A Active CN111512332B (en) 2019-02-20 2019-02-20 Topological construction method and system for meeting partition tolerance under alliance chain consensus

Country Status (2)

Country Link
CN (1) CN111512332B (en)
WO (1) WO2020168477A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401099B (en) * 2021-08-17 2023-05-09 同济大学 Block chain PoW selfish consensus resistance method based on network topology
CN113708963B (en) * 2021-08-20 2022-08-16 北京大学深圳研究生院 Optimized topology recursion method and system meeting alliance chain partition tolerance
CN116506444B (en) * 2023-06-28 2023-10-17 北京科技大学 Block chain stable slicing method based on deep reinforcement learning and reputation mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624866A (en) * 2012-01-13 2012-08-01 北京大学深圳研究生院 Data storage method, data storage device and distributed network storage system
CN105592098A (en) * 2016-01-16 2016-05-18 杭州复杂美科技有限公司 Management method of vote and CA certificate of block chain
CN106211196A (en) * 2016-06-22 2016-12-07 西北工业大学 How unmanned sail body based on markov random file harmonious property method
CN107038638A (en) * 2017-02-24 2017-08-11 杭州象链网络技术有限公司 A kind of equity registration transaction system construction method based on alliance's chain
CN108124502A (en) * 2017-03-31 2018-06-05 北京大学深圳研究生院 A kind of top level domain management method and system based on alliance's chain
CN108492103A (en) * 2018-02-07 2018-09-04 北京大学深圳研究生院 A kind of alliance's block chain common recognition method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9672115B2 (en) * 2013-08-26 2017-06-06 Vmware, Inc. Partition tolerance in cluster membership management
CN109194444A (en) * 2018-09-01 2019-01-11 哈尔滨工程大学 A kind of balanced binary tree restorative procedure based on network topology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624866A (en) * 2012-01-13 2012-08-01 北京大学深圳研究生院 Data storage method, data storage device and distributed network storage system
CN105592098A (en) * 2016-01-16 2016-05-18 杭州复杂美科技有限公司 Management method of vote and CA certificate of block chain
CN106211196A (en) * 2016-06-22 2016-12-07 西北工业大学 How unmanned sail body based on markov random file harmonious property method
CN107038638A (en) * 2017-02-24 2017-08-11 杭州象链网络技术有限公司 A kind of equity registration transaction system construction method based on alliance's chain
CN108124502A (en) * 2017-03-31 2018-06-05 北京大学深圳研究生院 A kind of top level domain management method and system based on alliance's chain
CN108492103A (en) * 2018-02-07 2018-09-04 北京大学深圳研究生院 A kind of alliance's block chain common recognition method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"区块链隐私技术综述";张宪 等;《信息安全研究》;20171215 *

Also Published As

Publication number Publication date
CN111512332A (en) 2020-08-07
WO2020168477A1 (en) 2020-08-27

Similar Documents

Publication Publication Date Title
US20190220768A1 (en) Constructing topology for satisfying partition tolerance in consortium blockchain consensus
CN111512332B (en) Topological construction method and system for meeting partition tolerance under alliance chain consensus
Hadjicostis et al. Distributed averaging and balancing in network systems: with applications to coordination and control
Yu et al. Distributed adaptive control for synchronization in directed complex networks
CN112118321B (en) Practical Bayesian fault-tolerant consensus mechanism optimization system for industrial block chain
US20060262726A1 (en) Self-evolving distributed system
US11687562B2 (en) Apparatus and method for adaptively managing sharded blockchain network based on deep Q network
Wang et al. Beh-Raft-Chain: a behavior-based fast blockchain protocol for complex networks
CN112468525B (en) Domain name management system based on block chain
Liu et al. Ltsm: Lightweight and trusted sharing mechanism of iot data in smart city
CN113469371A (en) Federal learning method and device
Laube et al. A solution to the split & merge problem for blockchain-based applications in ad hoc networks
Chen et al. Improvement of the DPoS consensus mechanism in blockchain based on PLTS
Ma et al. Stochastic performance modeling for practical byzantine fault tolerance consensus in the blockchain
Berger et al. Sok: Scalability techniques for BFT consensus
Wels Guaranteed-TX: The exploration of a guaranteed cross-shard transaction execution protocol for Ethereum 2.0.
CN111970370A (en) Communication equipment system-oriented multilayer block chain protocol expansion system and method
Gao et al. Improved byzantine fault-tolerant algorithm based on alliance chain
Priyadharshini et al. Light chain consensus reinforcement machine learning: an effective blockchain model for internet of things using for its advancement and challenges
Zhang et al. Fault detection for nonlinear networked systems with random packet dropout and probabilistic interval delay
Wu et al. Reinforced practical Byzantine fault tolerance consensus protocol for cyber physical systems
Xu et al. Formalization and verification of kafka messaging mechanism using csp
Liu et al. Global exponential synchronization of stochastic switching networks with time‐varying delay
US11711220B1 (en) System and methods for computation, storage, and consensus in distributed systems
Zhai et al. Efficient-hotstuff: A bft blockchain consensus with higher efficiency and stronger robustness

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