CN108134706A - Block chain high-availability system mostly living, computer equipment and method - Google Patents

Block chain high-availability system mostly living, computer equipment and method Download PDF

Info

Publication number
CN108134706A
CN108134706A CN201810001668.6A CN201810001668A CN108134706A CN 108134706 A CN108134706 A CN 108134706A CN 201810001668 A CN201810001668 A CN 201810001668A CN 108134706 A CN108134706 A CN 108134706A
Authority
CN
China
Prior art keywords
node
host node
cluster
host
certification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810001668.6A
Other languages
Chinese (zh)
Other versions
CN108134706B (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.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201810001668.6A priority Critical patent/CN108134706B/en
Publication of CN108134706A publication Critical patent/CN108134706A/en
Application granted granted Critical
Publication of CN108134706B publication Critical patent/CN108134706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1034Reaction to server failures by a load balancer

Abstract

The present invention provides a kind of block chain high-availability system mostly living, method, computer equipment and computer readable storage mediums, are related to block chain technical field.The system comprises a certification node and multiple block chain nodes, each block chain node is a cluster, host node in cluster participates in block chain, block chain network is made of multiple clusters, communication between block chain is completed by host node, after block chain is reached common understanding, the host node of each cluster internal is by block chain data synchronization updating to from node and ordinary node, when the host node failure of the failed cluster in cluster or common recognition error, principal and subordinate's election is carried out by principal and subordinate's election regulation, host node will be switched to from node, block chain service is provided, the host node information of other clusters update failed cluster except certification node notice failed cluster.The present invention substantially increases the reliability of entire block chain, meets the high availability requirement of bank 7*24 hours.

Description

Block chain high-availability system mostly living, computer equipment and method
Technical field
The present invention is concretely a kind of block chain high-availability system mostly living, method, calculating about block chain technical field Machine equipment and computer readable storage medium.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this part.
With the development of block chain, block chain is gradually gone to from publicly-owned chain in privately owned chain or alliance's chain, but privately owned at these It is very strict to block chain network availability requirement in face of the crucial industry such as such as bank in the block chain product of chain or alliance's chain, Holding business is needed to can be used always, it is desirable to provide block chain service in 7*24 hours, particularly across mechanism or span centre center portion administration During block chain network, need to realize the deployment that block chain network is mostly living.In addition to this, current block chain fault tolerance is all limited, As current generally by the block chain of PBFT realizations, due to the PBFT algorithms (F<=(N-1))/3, N for deployment number of nodes, F For fault-tolerant number of nodes), in N nodes, at most can only fault-tolerant F node, and the fault-tolerant of F node can not be broken through. In addition when node breaks down, block chain does not have the fast quick-recovery that mechanism realizes node, when the frequent block chain data volume of business When big, node recovery needs long time.
Current block chain there are problems that fault tolerance finite sum node can not fast quick-recovery, can not meet key business spy It is not banking network system requirement mostly living, therefore, it is necessary to the schemes that a kind of block chain is mostly living.
Invention content
In view of this, the present invention provides a kind of block chain high-availability system mostly living, method, computer equipment and calculating Machine readable storage medium storing program for executing, by the way that clustered node is taken to replace original block chain node, under normal circumstances by the host node in cluster The work of block chain is participated in, is actively replaced in real time by other clusters when host node occurs abnormal, substantially increases entire block chain Reliability, meet bank 7*24 hours high availability requirement.
To achieve these goals, the present invention provides a kind of block chain high-availability system mostly living, the system comprises one Certification node and multiple block chain nodes, each block chain node are a cluster, and each cluster internal passes through master A host node is elected from multiple ordinary nodes from election regulation and one participates in area from the host node in node, the cluster Block chain,
Wherein, block chain network is made of multiple clusters, and the communication between block chain is completed by the host node, works as block After chain is reached common understanding, host node described in each cluster internal is by block chain data synchronization updating to described from node and described In ordinary node, when the host node failure of the failed cluster in the cluster or common recognition error, pass through principal and subordinate's election regulation Principal and subordinate's election is carried out, host node is switched to described from node block chain service is provided, the certification node notifies the failure Other clusters except cluster update the host node information of the failed cluster.
It is an object of the invention to provide a kind of extensive according to block chain high-availability system progress host node failure mostly living Multiple method, the method includes:
When one certification node determines that the host node of a failed cluster is in failure state, institute in the certification node is deleted State the corresponding information of host node of cluster;
When slave node and ordinary node in the failed cluster determine that the host node is in failure state, delete The corresponding information of the host node;
It determines to incite somebody to action there are during the slave node of the failed cluster in the host node from node, ordinary node when described The new host node from node election for the cluster;
The new host node sends the host node updated data package of the failed cluster to the certification node;
The corresponding information of the new host node is added to master by the certification node according to the host node updated data package In node data unit, it is identified as the host node of the failed cluster;
The host node of ordinary node of the certification node into the failed cluster, new host node and other clusters is sent The host node updated data package of the failed cluster;
The ordinary node of the failed cluster and the new host node are updated according to the host node updated data package to be led Nodal information.
Main and subordinate node failure is carried out according to block chain high-availability system mostly living it is an object of the invention to provide a kind of The method of recovery, the method includes:
When one certification node determines that the host node A of a failed cluster is in failure state, delete in the certification node The corresponding information of host node of the cluster
The ordinary node of the failed cluster determine the host node and from node be in failure state when, described in deletion The corresponding information of host node and described from the corresponding information of node;
In the absence of the ordinary node determines master node, slave node, neighbours' section in neighbor data unit Point information crosses principal and subordinate's election regulation and conducts an election, and determines new host node and newly from node;
The new host node sends the host node updated data package of the failed cluster to the certification node;
The corresponding information of the new host node is added to master by the certification node according to the host node updated data package In node data unit, it is identified as the host node of the failed cluster;
The host node of ordinary node of the certification node into the failed cluster, new host node and other clusters is sent The host node updated data package of the failed cluster;
The ordinary node of the failed cluster and the new host node are updated according to the host node updated data package to be led Nodal information.
Host node common recognition mistake is carried out according to block chain high-availability system mostly living it is an object of the invention to provide a kind of The method accidentally restored, the method includes:
The cluster number of errors of the host node of one certification node statistics, one failed cluster;
When the cluster number of errors reaches a threshold values, host node of the certification node into the failed cluster, Host node, which is sent, from node and ordinary node forces switch data packet;
The failed cluster forces switch data packet to adjust the host node as that can not elect state according to the host node;
The slave node and ordinary node of a failure group of planes are determined that host node is not present in neighbor data unit, are deposited from node By the new host node from node election for the failed cluster;
The new host node sends the host node updated data package of the failed cluster to the certification node;
The corresponding information of the new host node is added to master by the certification node according to the host node updated data package In node data unit, it is identified as the host node of the failed cluster;
The host node of ordinary node of the certification node into the failed cluster, new host node and other clusters is sent The host node updated data package of the failed cluster;
The ordinary node of the failed cluster and the new host node are updated according to the host node updated data package to be led Nodal information.
It is an object of the invention to provide a kind of computer equipments, including memory, processor and are stored in storage On device and the computer program that can run on a processor, the processor realize above-mentioned side when performing the computer program Method.
It is an object of the invention to provide a kind of computer readable storage medium, the computer-readable storage medium Matter is stored with the execution above method.
The beneficial effects of the present invention are, provide a kind of block chain high-availability system mostly living, method, computer equipment with And computer readable storage medium, by the way that clustered node is taken to replace original block chain node, under normal circumstances by cluster Host node participates in the work of block chain, is actively replaced in real time by other clusters when host node occurs abnormal, substantially increases entire The reliability of block chain meets the high availability requirement of bank 7*24 hours.
Above and other objects, features and advantages to allow the present invention can be clearer and more comprehensible, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of structure diagram of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 2 is the structure diagram of certification node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 3 is the structure diagram of a cluster in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 4 is the structure diagram of the host node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 5 is from the structure diagram of node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 6 is the structure diagram of ordinary node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 7 is host node external control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 8 is host node internal control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Fig. 9 is from node external control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Figure 10 is from node internal control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Figure 11 is ordinary node external control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Figure 12 is ordinary node internal control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living;
Figure 13 is host node fault recovery flow chart in specific embodiment provided by the invention;
Figure 14 is main and subordinate node fault recovery flow chart in specific embodiment provided by the invention;
Figure 15 is host node common recognition Fault recovery flow chart in specific embodiment provided by the invention;
More network deployment living between two companies based on cluster when Figure 16 is normal in specific embodiment provided by the invention Figure;
More network deployment living between two companies based on cluster when Figure 17 is failure in specific embodiment provided by the invention Figure;
More network deployment living between four companies based on cluster when Figure 18 is normal in specific embodiment provided by the invention Figure;
More network deployment living between four companies based on cluster when Figure 19 is failure in specific embodiment provided by the invention Figure;
Figure 20 is the method stream provided by the invention that host node fault recovery is carried out according to block chain high-availability system mostly living Cheng Tu;
Figure 21 is the method provided by the invention for carrying out main and subordinate node fault recovery according to block chain high-availability system mostly living Flow chart;
Figure 22 is the side provided by the invention that host node common recognition Fault recovery is carried out according to block chain high-availability system mostly living Method flow chart.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, method or Computer program product.Therefore, of the invention disclose can be with specific implementation is as follows, i.e.,:Complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Below with reference to several representative embodiments of the present invention, the principle and spirit of the invention are illustrated in detail.
For block chain in the prior art there are problems that fault tolerance finite sum node can not fast quick-recovery, can not meet The network system requirement mostly living of key business particularly banking, can an embodiment of the present invention provides a kind of block chain height mostly living With system, realize that block chain is mostly living by way of cluster.Block chain network is made of several clusters, and each cluster internal By principal and subordinate's election regulation, elect a host node, one from node and several ordinary nodes, host node represents cluster to recognizing The functions such as host node are registered, updated and inquired to card node, and the host node of all clusters is made up of the service of certification node Block chain network totally interconnected one P2P, the communication between all block chains are responsible for completion by the host node of cluster;Work as area After block chain is reached common understanding, each cluster internal, host node all can will be in block chain data synchronization updating to other non-master; To cluster internal be carried out by active or passive principal and subordinate's update mode when certain cluster host node failure either common recognition error Principal and subordinate election, due to the presence from node, can realize being switched fast for host node, and pass through certification node and notify other collection Group quickly updates the cluster host node information, externally represents cluster and provides block chain service, so as to fulfill block chain malfunctioning node Quick-replaceable, realize the mostly living of block chain network.
Fig. 1 is the structure diagram of the system, referring to Fig. 1, the system comprises a certification node 1 and multiple blocks Chain node, each block chain node are a cluster 2, and each cluster internal is by principal and subordinate's election regulation from multiple common Elected in node a host node and one from node, the cluster host node participate in block chain,
Wherein, block chain network is made of multiple clusters, and the communication between block chain is completed by the host node, works as block After chain is reached common understanding, host node described in each cluster internal is by block chain data synchronization updating to described from node and described In ordinary node, when the host node failure of the failed cluster in the cluster or common recognition error, pass through principal and subordinate's election regulation Principal and subordinate's election is carried out, host node is switched to described from node block chain service is provided, the certification node notifies the failure Other clusters except cluster update the host node information of the failed cluster.
Fig. 1 is block chain schematic diagram mostly living, is alliance's chain or privately owned chain, includes certification node, multiple block chain nodes, area Block chain node is a cluster, and participate in block chain is the host node in the cluster, in alliance's chain or privately owned chain, institute It is exactly common block chain node to state host node, participates in the processing work of alliance's chain or privately owned chain.But these host nodes belong to again Host node in respective cluster.If during current primary node operation irregularity, become newly by other nodes in affiliated cluster Host node replaces original host node to participate in the work of block chain processing.
Fig. 2 is the structure diagram of certification node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, Referring to Fig. 2, certification node 1 provides the functions such as authentication and host node data maintenance for each clustered node of block chain, including: Identification authenticating unit 11, host node data cell 12, host node external control unit 13, host node keep-alive unit 14, host node update Unit 15, host node switch unit 16 and host node query unit 17.
Wherein, the identification authenticating unit 11, for carrying out authentication to node, when the node passes through authentication Afterwards, the node is added in into cluster.
In a particular embodiment, the identity that the identification authenticating unit 11 is responsible for when block chain node adds in cluster is tested Card, the node after only being verified by certification node identities could add in cluster, and return to verification result and give block chain node.
The host node data cell 12, for safeguarding and storing the host node information in the cluster, the host node Information includes cluster ID, host node IP address and host node age timer.
Wherein, cluster ID represents the cluster unique mark belonging to host node;Host node IP is main section current in cluster ID Point IP address;Host node age timer is host node age timer in cluster ID, represents how long certification node does not receive The keep-alive data packet that cluster ID host nodes are sent, when timer reaches maximum aging time, which will It is deleted from host node data cell 12.
The host node authentication unit 13, for when the host node by authentication and the cluster is not registered, Host node information is added to the host node data cell, and returns to host node of the registering result to the cluster, is succeeded in registration When, the registering result includes cluster id information, and the cluster id information is added for the certification node by certification node public key It is close to obtain;
The host node keep-alive unit 14, for receiving the host node keep-alive data packet that the host node is sent, according to institute It states host node age timer and judges whether the host node is movable;
The host node updating unit 15 is only logical for receiving the host node updated data package that the host node is sent Cross certification node identities verification, and from host node updated data package with certification node own private key decryption after cluster ID and When stating that the cluster ID to be added in is consistent, certification node can just update cluster host node information to host node data cell 12.
The host node switch unit 16, for receiving the fault data packet that the host node is sent, the fault data When packet meets preset condition, switching host node notice is forced to the collection pocket transmission where the host node.The present invention's In a kind of embodiment, such as cluster number of errors of the host node of one failed cluster of certification node statistics, when cluster mistake Accidentally quantity reaches a threshold values.
The host node query unit 17 inquires data packet, according to institute for receiving the host node that the host node is sent It states host node inquiry data packet and inquires the host node data cell, and return to query result to the host node.
Fig. 3 is the structure diagram of a cluster in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, Referring to Fig. 3, cluster N2 elects the interior main and subordinate node for carrying out cluster internal, externally it is authenticated by the host node elected Communication between node and cluster.Each cluster internal includes N number of clustered node, wherein N>=2;The node role of cluster internal It is made of a host node N21, one from node n22 and several ordinary node nn23.Wherein host node N21 and from node n22 There must be, and have and only there are one, ordinary node nn23 is optional.Node role is elected by cluster principal and subordinate election regulation It obtains.
The host node N21 is mainly responsible for the full interconnected communications of P2P between cluster, represents cluster N and provides block chain node clothes Business, such as process of knowing together between participation each host node of block chain.Non-master (non-master, including from node and ordinary node, under The communication being not involved in together) between cluster.
It is described from node n22, as the standby node of host node, when finding the failures of the host node N21 in cluster, from section Point n22 can be switched fast as host node N21.
The ordinary node nn23, as Master nodes N21 or when failing from node n22, ordinary node nn23 will be Cluster internal carries out the election of main and subordinate node, and has an opportunity to become host node N21 or from node n22.
Fig. 4 is the structure diagram of the host node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, As shown in figure 4, host node 21 is mainly responsible for the full interconnected communications of P2P between cluster, represents cluster and block chain node serve, packet are provided Include host node external control unit 211, host node internal control unit 212 and host node block chain administrative unit 213.
Wherein, the host node external control unit 211, for carrying out data interaction with the certification node, including host node The functions such as registration, update, keep-alive, inquiry.
The host node internal control unit 212, for being responsible in the cluster between master node, slave node and ordinary node Data interaction, including the storage of cluster internal neighbor node data, principal and subordinate's election, node keep-alive, data synchronize etc. functions.
The host node block chain administrative unit 213 participates in the communication of block chain, when block chain reaches for representing the cluster Into after common recognition, by block chain data synchronization updating to described from node and the common section.
Fig. 5 is the structure diagram from node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, such as Shown in Fig. 5, the standby node from node 22 as host node when finding that host node breaks down, can be immediately converted as leading Node, including from node external control unit 221, from node internal control unit 222 and from node block chain administrative unit 223.
It is described to be responsible for carrying out data interaction with certification node from node external control unit 221, including from the registering of node, lead The functions such as node switching.
The data interaction between node internal control unit 222, each node of responsible cluster internal, including cluster internal neighbour Occupy the functions such as node data storage, principal and subordinate's election, node keep-alive, data synchronization.
It is described from node block chain administrative unit 223, be responsible for host node synchronized update block chain data out of cluster to It is local, it is not involved in communicating between other block scm cluster host nodes.
Fig. 6 is the structure diagram of ordinary node in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, As shown in fig. 6, when finding host node or when breaking down from node, ordinary node, may be by principal and subordinate's election regulation For host node or from node, including ordinary node external control unit 231, ordinary node internal control unit 232 and ordinary node block Chain administrative unit 233.
The ordinary node external control unit 231 is responsible for carrying out data interaction, the note including other nodes with certification node The functions such as volume, host node switching.
The ordinary node internal control unit 232, the data interaction being responsible between each node of cluster internal, including cluster internal The functions such as the storage of neighbor node data, principal and subordinate's election, node keep-alive, data synchronization.
The ordinary node block chain administrative unit 233 is responsible for the host node synchronized update block chain data out of cluster To local, it is not involved in communicating between other block scm cluster host nodes.
Fig. 7 is host node external control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, such as Shown in Fig. 7, host node external control unit 211 is responsible for carrying out data interaction with certification node, including host node registering unit 2111, more New unit 2112, keep-alive unit 2113, query unit 2114, log-on data unit 2115, cluster identity data unit 2116, collection Group's Identity Management unit 2117, common recognition error notification unit 2118 and switch unit 2119.
Wherein, the host node registering unit 2111, for when initial for cluster by the election of main and subordinate node election regulation After host node, represent the cluster and initiate the request of host node registration packet to the certification node, after succeeding in registration, obtain institute It states certification node and is stored in log-on data by the encrypted cluster id information of certification node public key, and by the cluster id information In unit 2115;
The updating unit 2112, for when by main and subordinate node election regulation election for cluster update host node after, generation Cluster described in table initiates the request of host node updated data package to the certification node, and institute is included in the request of host node updated data package Certification node is stated by the cluster id information after public key encryption, the cluster id information is obtained from the log-on data unit 2115 ;
The keep-alive unit 2113 succeeds in registration or the updating unit for working as the host node registering unit 2111 After 2112 are updated successfully, represent the cluster and host node keep-alive data are initiated to the certification node by keepalive timer timing Packet, the age timer of the host node of cluster described in periodic refreshing, certification nodal information to be kept to can be used;
The query unit 2114 needs to add in block by the host node information of other clusters for working as the host node During chain network, host node inquiry data packet is sent to the certification node, the master of respective cluster is inquired from the certification node The information of node;
The log-on data unit 2115 is initiated for storing the host node registering unit 2111 to the certification node Certification node return information after registration request, and keepalive timer is stored simultaneously, it is reset when the keepalive timer expires Keepalive timer, and to the certification node send host node keep-alive data packet request;
The cluster identity data unit 2116, for storing the cluster Identity Management unit 2117 by the certification Node initiates the information of certification node return after addition cluster;
The cluster Identity Management unit 2117, for initiating to add in the certification request of cluster to the certification node, and The information that certification node returns is stored in the cluster identity data unit 2116;
The common recognition error notification unit 2118 finds that the host node of a cluster calculates error for working as block chain common recognition When, the cluster to malfunction is referred to as failed cluster, and the notice of the host node error of the failed cluster is sent to certification node;
The switch unit 2119 for receiving the pressure host node handover information that the certification node is sent out, and passes through The host node internal control unit 2122 carries out principal and subordinate's election of cluster internal.
Fig. 8 is host node internal control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, such as Shown in Fig. 8, host node internal control unit 212 is responsible for the data interaction between each node of cluster internal, includes neighbor data unit 2121st, principal and subordinate elects unit 2122, node keep-alive unit 2123, log-on data to synchronize 2124 and block chain data synchronisation unit 2125。
Wherein, the neighbor data unit 2121, it is described for storing the information of all nodes neighbors of the cluster internal Information includes cluster ID, node priority, node IP address, node role and node age timer.Cluster ID represents section Cluster unique mark belonging to point;Node priority participates in priority during cluster internal principal and subordinate election for neighbor node;Node IP address is the IP address of the neighbor node;Node role is affiliated role of the neighbor node in current cluster;Node aging Timer represents how long do not receive the keep-alive data packet of neighbor node transmission.In addition to ageing time, all neighbours of cluster internal It is consistent to occupy 2121 information of data cell.
The principal and subordinate elects unit 2122, and operation is elected for being responsible for the cluster principal and subordinate of the cluster, during due to removing aging Between it is outer, all 2121 information of neighbor data unit of cluster internal are consistent, therefore all neighbor nodes of cluster internal are completed After principal and subordinate's election, principal and subordinate's result of election also will be consistent, and the node role in the neighbor data unit is updated after the completion of election Information;
The node keep-alive unit 2123, for safeguarding the keepalive timer of the cluster, when the keepalive timer arrives During the phase, the keepalive timer, and the slave node into the cluster and ordinary node timing sending node broadcast guarantor are reset Live data packet, while also receive the node broadcasts keep-alive data packet sent from the timing of other nodes, interior joint keep-alive number According to information such as the cluster ID that node is included in packet, priority, IP address, so as to add, update or delete neighbor data list The nodal information of member 2121.
The log-on data synchronization unit 2124, for working as the host node to certification Node registry success or receiving In to the cluster after the update request from the log-on data of node or ordinary node, in synchronized update log-on data to cluster Slave node or ordinary node;
The block chain data synchronisation unit 2125, for when reaching common understanding or receive in the cluster from node or common After the block chain data update request of node, the slave node or ordinary node be responsible in synchronized update block chain data to cluster In.
Fig. 9 in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living from node external control unit figure, such as Shown in Fig. 9, it is responsible for carrying out data interaction with certification node from node external control unit 221, including host node switch unit 2211, note Volume data cell 2212, cluster identity data 2213 and cluster Identity Management 2214.
The host node switch unit 2211 is responsible for receiving the 16 signalling of bouquet quilt of host node switch unit from certification node The dynamic data packet for carrying out principal and subordinate's election elects the principal and subordinate for starting cluster internal after receiving data packet.
The log-on data unit 2212 is responsible for the log-on data unit 2115 of storage host node synchronized update out of cluster Data.
The cluster identity data 2213 is responsible for storage cluster Identity Management 2214 and initiates to add in cluster by certification node Certification node return information afterwards.
The cluster Identity Management 2214 is responsible for initiating the certification request for adding in cluster to certification node, and by certification section Point return information is stored in cluster identity data 2213.
Figure 10 in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living from node internal control unit figure, such as Shown in Figure 10, it is responsible for the data interaction between each node of cluster internal from node internal control unit 222, includes neighbor data unit 2221st, principal and subordinate elects unit 2222, node keep-alive unit 2223, log-on data to synchronize 2224 and block chain data synchronous 2225.
The neighbor data unit 2221 is identical with neighbor data unit 2121.
The principal and subordinate elects unit 2222, elects unit 2122 identical with principal and subordinate.
The node keep-alive unit 2223 is identical with node keep-alive unit 2123.
The log-on data synchronizes 2224, be responsible for receiving out of cluster host node synchronized update log-on data or be responsible for Host node in cluster initiates log-on data update request.
The block chain data synchronize 2225, be responsible for receiving out of cluster host node synchronized update block chain data or It is responsible for the host node into cluster and initiates the request of block chain data update.
Figure 11 is ordinary node external control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, As shown in figure 11, ordinary node external control unit 231 is responsible for carrying out data interaction with certification node, including host node switch unit 2311, log-on data unit 2312, cluster identity data 2313 and cluster Identity Management 2314.
The host node switch unit 2311 is identical with host node switch unit 2211.
The log-on data unit 2312 is identical with log-on data unit 2212.
The cluster identity data 2313 is identical with cluster identity data 2213.
The cluster Identity Management 2314 is identical with cluster Identity Management 2214.
Figure 12 is ordinary node internal control unit figure in a kind of block chain provided in an embodiment of the present invention high-availability system mostly living, As shown in figure 12, ordinary node internal control unit 232, the data interaction being responsible between each node of cluster internal, includes neighbor data Unit 2231, principal and subordinate elect unit 2322, node keep-alive unit 2323, log-on data synchronization 2324 synchronous with block chain data 2325。
The neighbor data unit 2321 is identical with neighbor data unit 2121.
The principal and subordinate elects unit 2322, elects unit 2122 identical with principal and subordinate.
The node keep-alive unit 2323 is identical with node keep-alive unit 2123.
The log-on data synchronization 2324, it is identical with log-on data synchronization unit 2124.
The block chain data synchronization 2325, it is identical with block chain data synchronisation unit 2125.
As above it is a kind of block chain provided by the invention high-availability system mostly living, it is original by the way that clustered node is taken to replace Block chain node participates in the work of block chain by the host node in cluster under normal circumstances, when host node occurs abnormal by other Cluster actively replaces in real time, substantially increases the reliability of entire block chain, meets the high availability requirement of bank 7*24 hours.
In addition, although being referred to several unit modules of system in above-detailed, it is this to divide only simultaneously Non-imposed.In fact, according to the embodiment of the present invention, the feature and function of two or more above-described units can To embody in a unit.Equally, the feature and function of an above-described unit can also be further divided by Multiple units embody.Terms used above " module " and " unit ", can be realize predetermined function software and/or Hardware.Although following embodiment described module is preferably realized with software, the group of hardware or software and hardware The realization of conjunction is also what may and be contemplated.
After high-availability system living more than the block chain for describing exemplary embodiment of the invention, next, with reference to attached The method of exemplary embodiment of the invention is introduced in figure.The implementation of this method may refer to above-mentioned whole implementation, weight Multiple part repeats no more.
Figure 20 is provided in an embodiment of the present invention a kind of extensive according to block chain high-availability system progress host node failure mostly living The flow chart of multiple method, please refers to Figure 20, and this method includes:
S11:When one certification node determines that the host node of a failed cluster is in failure state, the certification node is deleted Described in failed cluster the corresponding information of host node.
In one embodiment of the invention, it when the host node of failed cluster breaks down, can not externally provide any Service, when can not be sent out keep-alive data packet, certification node finds that host node is counted in the aging of host node data cell 12 Device has expired, it is believed that the host node has failed.
S12:When slave node and ordinary node in the failed cluster determine that the host node is in failure state, Delete the corresponding information of the host node;
In failed cluster slave node, ordinary node find host node host node data cell aging counters to Phase, it is believed that host node has failed.
S13:Determine that there are the slave nodes of the failed cluster in the host node from node, ordinary node when described When, by the new host node from node election for the cluster.
S14:The new host node sends the host node updated data package of the failed cluster to the certification node;
In the other embodiment of the present invention, when slave node, the ordinary node in failed cluster find neighbor data list When the slave node of failed cluster being not present in member, according to information of neighbor nodes each in neighbor data unit (in addition to new host node), Unit is elected to conduct an election by principal and subordinate, determined newly from node.
S15:The certification node adds the corresponding information of the new host node according to the host node updated data package Into host node data cell, it is identified as the host node of the failed cluster.
In the other embodiment of the present invention, the certification node checks the host node updated data package, judges institute Whether the identity for stating new host node is legal;When being judged as YES, S15 is performed;Otherwise, the certification node refusal updates the master Node data unit.
S16:The host node of ordinary node of the certification node into the failed cluster, new host node and other clusters Send the host node updated data package of the failed cluster;
S17:The ordinary node of the failed cluster and the new host node according to the host node updated data package more New host node information.
With reference to specific embodiment, host node fault recovery method provided by the invention is discussed in detail, to solve The method that block catenary system voluntarily restores when host node breaks down.As shown in figure 13, this method packet in this specific embodiment It includes:
S1301:The host node A of cluster A sends keep-alive data by host node keep-alive unit 2113 to certification node respectively It wraps and ordinary node sends keep-alive data packet into cluster by node keep-alive unit 2123.
S1302:Certification node receives the keep-alive data packet of cluster A host nodes A transmissions by host node keep-alive unit 14, and And host node A is not yet due in the aging counters of host node data cell 12, then it is assumed that the host node A condition be it is normal, together When reset aging counters of the host node A in host node data cell 12;Slave node a, node a1 and node a2 in cluster A The keep-alive data packet of host node A is received by node keep-alive unit, and host node A is counted in the aging of neighbor data unit Device is not yet due, then it is assumed that the host node A condition is normal, while resets host node A and counted in the aging of neighbor data unit Device.
S1303:The host node A of cluster A breaks down, and can not externally provide any service, can not be sent out keep-alive number According to packet.
S1304:Certification node finds that host node A has expired in the aging counters of host node data cell 12, it is believed that section Point A has failed;Node a in cluster A, node a1 and node a2 have found that host node A is counted in the aging of host node data cell Device has expired, it is believed that node A has failed.
S1305:Certification node finds that host node A has failed, and cluster A host nodes A will be deleted in host node data cell 12 Information;Node a in cluster A, node a1 and node a2 have found that host node A has failed, and will be deleted in host node data cell The information of host node A.
S1306:Node a in cluster A, node a1 and node a2 have found exist in neighbor data unit from node a, then stand Will should be the new host nodes of cluster A from node a elections.
S1307:Node a in cluster A has found oneself to become the new host nodes of cluster A, sends collect to certification node immediately The newer data packet notice of group's A host nodes.
S1308:Node a in cluster A, node a1 and node a2 find in neighbor data unit there is no cluster A from Node according to information of neighbor nodes each in neighbor data unit (in addition to new host node a), elects unit to be selected by principal and subordinate It lifts, selection result:Node a2 is new slave node.
S1309:The host node that certification node receives the new host node a transmissions of cluster A by host node updating unit 16 updates Data packet checks whether the information of data packet meets new host node a by identification authenticating unit 11 and host node data cell 12 Whether identity is legal.If illegal update refusal.
S1310:Certification node checks the cluster A host node information in host node data cell 11, it is found that there is no cluster A Host node information.
S1311:The new host node a information of cluster A is added in host node data cell 11 by certification node, is identified as cluster The host node of A.
S1312:Certification node passes through host node updating unit 16 all nodes and other clusters N master into cluster A respectively The newer notice of node N (host node for including every other cluster) signalling of bouquet A host nodes.
S1313:All nodes of cluster A (node a, node a1 and node a2) receive the host node update of certification node transmission After data packet, host node information in current neighbours data cell is compared according to the packet content immediately, if differing more Host node information in new neighbor data cell;If the same ignore the data packet.
Figure 21 is provided in an embodiment of the present invention a kind of according to block chain high-availability system progress main and subordinate node failure mostly living The flow chart of the method for recovery, please refers to Figure 21, and this method includes:
S21:When one certification node determines that the host node of a failed cluster is in failure state, the certification node is deleted Described in failed cluster the corresponding information of host node.
In one embodiment of the invention, it when the master node, slave node of failed cluster breaks down, can not externally carry For any service, when can not be sent out keep-alive data packet, certification node finds host node in the old of host node data cell 12 Change counter to have expired, it is believed that the host node has failed.
S22:The ordinary node of the failed cluster determine the host node and from node be in failure state when, delete The corresponding information of the host node and described from the corresponding information of node;
Ordinary node in failed cluster find host node and from node other node data units aging counters It has expired, it is believed that host node and failed from node.
S23:In the absence of the ordinary node determines master node, slave node, according to the neighbour in neighbor data unit It occupies nodal information and crosses principal and subordinate's election regulation and conduct an election, determine new host node and newly from node.
S24:The new host node sends the host node updated data package of the failed cluster to the certification node;
S25:The certification node adds the corresponding information of the new host node according to the host node updated data package Into host node data cell, it is identified as the host node of the failed cluster.
In the other embodiment of the present invention, the certification node checks the host node updated data package, judges institute Whether the identity for stating new host node is legal;When being judged as YES, S25 is performed;Otherwise, the certification node refusal updates the master Node data unit.
S26:The host node of ordinary node of the certification node into the failed cluster, new host node and other clusters Send the host node updated data package of the failed cluster;
S27:The ordinary node of the failed cluster and the new host node according to the host node updated data package more New host node information.
With reference to specific embodiment, main and subordinate node fault recovery method provided by the invention, such as Figure 14 is discussed in detail Shown, main and subordinate node fault recovery flow is realized when cluster main and subordinate node breaks down simultaneously, is elected by principal and subordinate in cluster Rule elects new host node and from node, and externally provides block chain service by new host node, and detailed process is such as Under:
S1401:The host node A of cluster A sends keep-alive data by host node keep-alive unit 2113 to certification node respectively It wraps and other nodes sends keep-alive data packet into cluster by node keep-alive unit 2123.
S1402:Certification node receives the keep-alive data packet of cluster A host nodes A transmissions by host node keep-alive unit 14, and And host node A is not yet due in the aging counters of host node data cell 12, then it is assumed that the host node A condition be it is normal, together When reset aging counters of the host node A in host node data cell 12;Slave node a, node a1 and node a2 in cluster A The keep-alive data packet of host node A is received by node keep-alive unit, and host node A is counted in the aging of neighbor data unit Device is not yet due, then it is assumed that the host node A condition is normal, while resets host node A and counted in the aging of neighbor data unit Device.
S1403:By node keep-alive unit 2223, into cluster, other nodes send keep-alive to the slave node a of cluster A respectively Data packet.
S1404:Host node A, node a1 and node a2 in cluster A receive the guarantor from node a by node keep-alive unit Live data packet, and host node A is not yet due in the aging counters of neighbor data unit, then it is assumed that should be from node a states Normally, at the same reset this from node a neighbor data unit aging counters.
S1405:It the host node A of cluster A and breaks down from node a, any service can not be externally provided, it can not be to outgoing Send keep-alive data packet.
S1406:Certification node finds that host node A has expired in the aging counters of host node data cell 12, it is believed that section Point A has failed;Node a1 in cluster A and node a2 find host node A and from node a other node data units aging Counter has expired, it is believed that node A and node a have failed.
S1407:Certification node finds that host node A has failed, and cluster A host nodes A will be deleted in host node data cell 12 Information;Node a1 and node a2 in cluster A have found that host node A and node a has failed, and will be deleted in host node data cell The information of host node A and node a.
S1408:Node a1 and node a2 in cluster A have found that main and subordinate node is not present, immediately according to neighbor data unit In information of neighbor nodes (current neighbours only have node a1 and node a2) carry out principal and subordinate's election, election results:Node a2 is new Host node, node a1 is new slave node.
S1409:Node a2 in cluster A has found oneself to become the new host nodes of cluster A, sends collect to certification node immediately The newer data packet notice of group's A host nodes.
S1410:The host node that certification node receives the new host node a2 transmissions of cluster A by host node updating unit 16 updates Data packet checks whether the information of data packet meets new host node a2 by identification authenticating unit 11 and host node data cell 12 Whether identity is legal.If illegal update refusal.
S1411:Certification node checks the cluster A host node information in host node data cell 11, it is found that there is no cluster A Host node information.
S1412:The new host node a2 information of cluster A is added in host node data cell 11 by certification node, is identified as collection The host node of group A.
S1413:Certification node passes through host node updating unit 16 all nodes and other clusters N master into cluster A respectively The newer notice of node N (host node for including every other cluster) signalling of bouquet A host nodes.
S1414:All nodes of cluster A (node a1 and node a2) receive the host node updated data package of certification node transmission Afterwards, host node information in current neighbours data cell is compared according to the packet content immediately, the more new neighbor if differing Host node information in data cell;If the same ignore the data packet.
Figure 22 is provided in an embodiment of the present invention a kind of wrong according to block chain high-availability system progress host node common recognition mostly living The flow chart for the method accidentally restored, please refers to Figure 22, this method includes:
S31:The cluster number of errors of the host node of one certification node statistics, one failed cluster;
S32:When the cluster number of errors reaches a threshold values, main section of the certification node into the failed cluster Point sends host node pressure switch data packet from node and ordinary node;
S33:The failed cluster forces switch data packet to adjust the host node as that can not elect according to the host node State;
S34:The slave node and ordinary node of a failure group of planes determine host node is not present in neighbor data unit, from section Point exists, by the new host node from node election for the failed cluster;
S35:The new host node sends the host node updated data package of the failed cluster to the certification node;
S36:The certification node adds the corresponding information of the new host node according to the host node updated data package Into host node data cell, it is identified as the host node of the failed cluster;
S37:The host node of ordinary node of the certification node into the failed cluster, new host node and other clusters Send the host node updated data package of the failed cluster;
S38:The ordinary node of the failed cluster and the new host node according to the host node updated data package more New host node information.
With reference to specific embodiment, host node common recognition error recovery method provided by the invention is discussed in detail, to It solves when host node is in the block chain common recognition method that block catenary system voluntarily restores when the error occurs.As shown in figure 15, this method Including:
S1501:Cluster N host nodes N has found only to collect when carrying out block chain common recognition by block chain administrative unit 213 The host node A of group A and the result of calculation of oneself differ.
S1502:Cluster N host nodes N sends host node common recognition mistake by error notification unit 2118 of knowing together to certification node Accidentally data packet.
S1503:Certification node passes through the institute about cluster A host nodes A in the statistics a period of time of host node switch unit 16 There is cluster number of errors.
S1504:Certification node by host node switch unit 16 check find a period of time in, the institute of cluster A host nodes A There is the threshold values that cluster number of errors has reached setting, by all nodes (section by host node switch unit 16 into cluster A Point A, node a, node a1 and node a2) signalling of bouquet A host nodes force switching data packet.
S1505:All nodes (node A, node a, node a1 and node a2) in cluster A pass through host node switch unit The data packet that cluster A host nodes force switching is received, former host node A is adjusted in neighbor data unit as shape can not be elected State, angle of rotation of joint color adjustment are other nodes role.
S1506:All nodes (node A, node a, node a1 and node a2) in cluster A are found in neighbor data unit Host node has been not present, but exists from node a, this is elected the host node new for cluster A from node a immediately.
S1507:Node a in cluster A has found oneself to become the new host nodes of cluster A, sends collect to certification node immediately The newer data packet notice of group's A host nodes.
S1508:All nodes (node A, node a, node a1 and node a2) in cluster A are found in neighbor data unit There is no the slave nodes of cluster A, (including node a1 and node a2, are excluded according to information of neighbor nodes each in neighbor data unit New host node a is outer and can not elect the node A of state), unit is elected to conduct an election by principal and subordinate, election results:Node a2 is New slave node.
S1509:The host node that certification node receives the new host node a transmissions of cluster A by host node updating unit 16 updates Data packet checks whether the information of data packet meets new host node a by identification authenticating unit 11 and host node data cell 12 Whether identity is legal.If illegal update refusal.
S1510:Certification node checks the cluster A host node information in host node data cell 11, it is found that there is no cluster A Host node information.
S1511:The new host node a information of cluster A is added in host node data cell 11 by certification node, is identified as cluster The host node of A.
S1512:Certification node passes through host node updating unit 16 all nodes and other clusters N master into cluster A respectively The newer notice of node N (host node for including every other cluster) signalling of bouquet A host nodes.
S1513:All nodes of cluster A (node A, node a, node a1 and node a2) receive the main section of certification node transmission After point updated data package, host node information in current neighbours data cell is compared according to the packet content immediately, if not phase It is same then update host node information in neighbor data unit;If the same ignore the data packet.
The present invention also provides a kind of computer equipment, including memory, processor and storage on a memory and can be The computer program run on processor, the processor realize the above method when performing the computer program.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has execution The above method.
The present invention also proposes a kind of host node common recognition error recovery method based on the more live systems of block chain, specifically 's:
First and second liang of companies pass through based on alliance's chain between PBFT block chain buildings.If use normal block chain structure Scheme is built, respectively places two block chain nodes in the computer room of first and second liang of companies, there are the appearance events of any one computer room for the program During barrier, entire block chain network will be unable to offer service.
The present invention also proposes a kind of two company's physical region deployment block chain methods based on the more live systems of block chain, to Solve the method that block catenary system voluntarily restores when entire physical region breaks down occur when a certain companies deployment.This method packet It includes:
As shown in figure 16, the deployment mostly living of two companies based on cluster, in the following way deployment are realized when normal:Except in first The computer room of Yi Liang companies is respectively placed outside two block scm cluster host nodes, the slave section for also two clusters being placed in other side's computer room Point only has when normal and participates in common recognition between host node, and after block chain is reached common understanding, host node synchronizes block chain data more The new slave node for arriving cluster internal.When any one computer room breaks down, another computer room can be taken over immediately, such as scheme Show shown in 17, the deployment mostly living of two companies based on cluster, specific implementation during failure:It is assumed that company's second computer room breaks down, All nodes can not provide block chain service, then at this time in company's first computer room, can be elected quickly through the principal and subordinate in cluster, The original of cluster B is promoted to host node b from node b, former by cluster D is promoted to host node d from node d, forms a block Chain data and before coherent network provide other side's service.
The first and second the third Ding Si companies pass through based on alliance's chain between PBFT block chain buildings.If use normal block Chain building scheme respectively places a block chain node in the computer room of the first and second the third Ding Si companies, the program there are any two or When more than two computer rooms break down, entire block chain network will be unable to offer service.
The present invention also proposes a kind of four company's physical region deployment block chain methods of more live systems of block chain, to Solve the method that block catenary system voluntarily restores when entire physical region breaks down occur when certain two companies deployment.This method packet It includes:
As shown in figure 18, the deployment mostly living of four companies based on cluster, in the following way deployment are realized when normal:Except in first The computer room of the third Ding Si of second companies is respectively placed outside a block scm cluster host node, will also place cluster in other common recognition computer rooms From node and other nodes, i.e., the other sections of the host node A of cluster A, the slave node b and cluster C of cluster B are placed in first computer room Point c1;The other nodes a1 of the host node B of cluster B, the slave node d and cluster A of cluster D are placed in second computer room;It is put in the third computer room Put the other nodes d1 of the host node C of cluster C, the slave node a of cluster A and cluster D;The host node of cluster D is placed in fourth computer room D, the other nodes b1 of the slave node c and cluster B of cluster C.
Only have when normal and participate in common recognition between host node, after block chain is reached common understanding, host node is by block chain data It is synchronized to the non-master of cluster internal;When any two computer room breaks down, other two computer room can be taken over immediately, As shown in figure 19, it is assumed here that two computer rooms of the third fourth of company break down simultaneously, and all nodes in two computer rooms can not provide Block chain service then at this time in company's first, two computer rooms of second, can elect, in company's first quickly through the principal and subordinate in cluster The former other nodes c1 of cluster C is promoted to host node c1 in computer room, carries the original of cluster D from node d in company's second computer room Host node d is upgraded to, a block chain data and before coherent network is formed, external block chain service is provided.
For using the block chain of PBFT algorithms, this scheme solves the problems, such as that physical fault occur simultaneously in three computer rooms:It is surplus Next computer room still can be the host node of corresponding cluster by other two nodes promoted in this computer room, so as to form one The block chain network of a three node still meets PBFT algorithms and externally provides block chain service.
Block chain based on cluster is disposed and is easily extended, for embodiment five, to ensure any three machines Room delay simultaneously machine when, there are four nodes to operate simultaneously for another computer room, externally provides block chain service, this extension is very Flexibly, during specific implementation:Increase an other of cluster A, cluster B, cluster C, cluster D respectively in the first and second the third fourth computer rooms respectively Node, adition process are transparent to the block chain network being currently running.
In conclusion the present invention provides a kind of block chain high-availability system mostly living, method, computer equipment and calculating Machine readable storage medium storing program for executing, by the way that clustered node is taken to replace original block chain node, under normal circumstances by the host node in cluster The work of block chain is participated in, is actively replaced in real time by other clusters when host node occurs abnormal, substantially increases entire block chain Reliability, meet bank 7*24 hours high availability requirement.
A kind of block chain provided by the invention system and method mostly living, has the following effects that and advantage:
1st, the present invention provides a kind of block chain network systems based on cluster, can while common recognition algorithm is not changed Block chain network to be given to provide the fault tolerance of more nodes.
2nd, node self-repair function provided by the invention improves the availability of block chain network.
3rd, the method that cluster internal node provided by the invention is dynamically added, can facilitate to the node in cluster in logic sum Physics deployment provides carry out dynamic expansion, realizes that the deployment of block chain network carries out flexible deployment, realizes that block chain node is mostly living.
4th, cluster internal multinode function provided by the invention can facilitate the node data backup to cluster internal, protect While holding data consistency, the efficiency that node data restores is improved.
It is improvement on hardware (for example, to diode, crystal that the improvement of one technology, which can be distinguished clearly, Pipe, switch etc. circuit structures improvement) or software on improvement (improvement for method flow).However, with technology Development, the improvement of current many method flows can be considered as directly improving for hardware circuit.Designer is almost All corresponding hardware circuit is obtained by the way that improved method flow is programmed into hardware circuit.Therefore, it cannot be said that one The improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) just It is such a integrated circuit, logic function determines device programming by user.It is voluntarily programmed Lai one by designer Dedicated integrated circuit is designed and made to a digital display circuit " integrated " on a piece of PLD without asking chip maker Chip.Moreover, nowadays, substitution manually makes IC chip, and " logic compiler (logic is also used in this programming instead mostly Compiler) " software realizes that when it writes with program development software compiler used is similar, and before compiling Also handy specific programming language is write for source code, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many planting, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、 CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed Integrated Circuit are most generally used at present Hardware Description Language) and Verilog2.Those skilled in the art, which also will be apparent to the skilled artisan that, only needs general side Method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, it is possible to be readily available reality The now hardware circuit of the logical method flow.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer of computer readable program code (such as software or firmware) that device and storage can be performed by (micro-) processor can Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller include but not limited to following microcontroller Device:ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited Memory controller is also implemented as a part for the control logic of memory.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete Entirely can by by method and step carry out programming in logic come controller with logic gate, switch, application-specific integrated circuit, may be programmed The form of logic controller and embedded microcontroller etc. realizes identical function.Therefore this controller is considered one kind Hardware component, and the structure that can also be considered as to the device for being used to implement various functions included in it in hardware component.Or Even, the device for being used to implement various functions can be considered as either the software module of implementation method can be Hardware Subdivision again Structure in part.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by having the function of certain product.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware during application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It is realized by the mode of software plus required general hardware platform.Based on such understanding, the technical solution essence of the application On the part that the prior art contributes can be embodied in the form of software product in other words, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, be used including some instructions so that a computer system (can be personal computer, server either network system etc.) performs the certain of each embodiment of the application or embodiment Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, clothes Business device computer, hand system or portable system, multicomputer system, the system based on microprocessor, are put at plate system Top box, programmable consumer electronics system, network PC, minicomputer, mainframe computer, including any of the above system or system Distributed computing environment etc..
The application can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environment, by Task is performed and connected teleprocessing system by communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage system.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and Variation is without departing from spirit herein, it is desirable to which appended claim includes these deformations and changes without departing from the application's Spirit.

Claims (15)

1. a kind of block chain high-availability system mostly living, it is characterized in that, the system comprises a certification node and multiple block chains Node, each block chain node are a cluster, and each cluster internal is by principal and subordinate's election regulation from multiple common sections Elected in point a host node and one from node, the cluster host node participate in block chain,
Wherein, block chain network is made of multiple clusters, and the communication between block chain is completed by the host node, when block chain reaches Into after common recognition, host node described in each cluster internal is by block chain data synchronization updating to described from node and described common In node, when the host node failure of the failed cluster in the cluster or common recognition error, carried out by principal and subordinate's election regulation Principal and subordinate elects, and is switched to host node by described from node and provides block chain service, the certification node notifies the failed cluster Except other clusters update the host node information of the failed cluster.
2. system according to claim 1, it is characterized in that, the certification node includes identification authenticating unit, host node number It is looked into according to unit, host node authentication unit, host node keep-alive unit, host node updating unit, host node switch unit and host node Ask unit,
Wherein, the identification authenticating unit,, will after the node is by authentication for carrying out authentication to node The node adds in cluster;
The host node data cell, for safeguarding and storing the host node information in the cluster, the host node packet Include cluster ID, host node IP address and host node age timer;
The host node authentication unit, for when the host node by authentication and the cluster is not registered, addition to be led Nodal information returns to host node of the registering result to the cluster to the host node data cell, described when succeeding in registration Registering result includes cluster id information, and the cluster id information is encrypted to obtain for the certification node by certification node public key;
The host node keep-alive unit, for receiving the host node keep-alive data packet that the host node is sent, according to the main section Point age timer judges whether the host node is movable;
The host node updating unit, for receiving the host node updated data package that the host node is sent;
The host node switch unit, for receiving the fault data packet that the host node is sent, the fault data packet meets During preset condition, switching host node notice is forced to the collection pocket transmission where the host node;
The host node query unit inquires data packet, according to the main section for receiving the host node that the host node is sent Point inquiry data packet inquires the host node data cell, and returns to query result to the host node.
3. system according to claim 2, it is characterized in that, the host node is including in host node external control unit, host node Unit and host node block chain administrative unit are controlled,
Wherein, the host node external control unit, for carrying out data interaction with the certification node;
The host node internal control unit, for the data being responsible in the cluster between master node, slave node and ordinary node Interaction;
The host node block chain administrative unit participates in the communication of block chain, when block chain is reached common understanding for representing the cluster Afterwards, by block chain data synchronization updating to described from node and the common section.
4. system according to claim 3, it is characterized in that, the host node external control unit include host node registering unit, Updating unit, query unit, log-on data unit, cluster identity data unit, cluster Identity Management unit, is total to keep-alive unit Know error notification unit and switch unit,
Wherein, the host node registering unit, for after by the election of main and subordinate node election regulation for cluster initial host node, It represents the cluster and initiates the request of host node registration packet to the certification node, after succeeding in registration, obtain the certification section The cluster id information is stored in log-on data unit by point by the encrypted cluster id information of certification node public key;
The updating unit, for after host node is updated for cluster by the election of main and subordinate node election regulation, representing the collection Group initiates the request of host node updated data package to the certification node, and the certification section is included in the request of host node updated data package Point is obtained by the cluster id information after public key encryption, the cluster id information from the log-on data unit;
The keep-alive unit succeeds in registration or for working as the host node registering unit after the updating unit is updated successfully, generation Cluster described in table initiates host node keep-alive data packet, collection described in periodic refreshing by keepalive timer timing to the certification node The age timer of the host node of group, certification nodal information to be kept to can be used;
The query unit needs to add in block chain network by the host node information of other clusters for working as the host node When, host node inquiry data packet is sent to the certification node, the host node of respective cluster is inquired from the certification node Information;
The log-on data unit, for storing the host node registering unit after the certification node initiates registration request Certification node return information, and keepalive timer is stored simultaneously, keepalive timer is reset when the keepalive timer expires, and The request of host node keep-alive data packet is sent to the certification node;
The cluster identity data unit initiates to add in for storing the cluster Identity Management unit by the certification node The information that certification node returns after cluster;
The cluster Identity Management unit, for initiating to add in the certification request of cluster, and by certification section to the certification node The information that point returns is stored in the cluster identity data unit;
The common recognition error notification unit, the host node for working as block chain common recognition one cluster of discovery, which calculates, staggers the time, and claims to occur The cluster of error is failed cluster, and the notice of the host node error of the failed cluster is sent to certification node;
The switch unit for receiving the pressure host node handover information that the certification node is sent out, and passes through the main section Point internal control unit carries out principal and subordinate's election of cluster internal.
5. system according to claim 4, it is characterized in that, the host node internal control unit includes neighbor data unit, master From election unit, node keep-alive unit, log-on data be synchronous and block chain data synchronisation unit,
Wherein, the neighbor data unit, for storing the information of all nodes neighbors of the cluster internal, described information includes Cluster ID, node priority, node IP address, node role and node age timer;
The principal and subordinate elects unit, elects operation for being responsible for the cluster principal and subordinate of the cluster, updates the neighbour after the completion of election Occupy the node Role Information in data cell;
The node keep-alive unit, for safeguarding the keepalive timer of the cluster, when the keepalive timer expires, resetting The keepalive timer, and slave node and ordinary node timing sending node broadcast keep-alive data packet into the cluster;
The log-on data synchronization unit, for working as the host node to certification Node registry success or receiving the collection In group after the update request from the log-on data of node or ordinary node, the slave node in synchronized update log-on data to cluster Or ordinary node;
The block chain data synchronisation unit, for that ought reach common understanding or receive the area in the cluster from node or ordinary node After the request of block chain data update, it is responsible in the slave node or ordinary node in synchronized update block chain data to cluster.
6. a kind of method that host node fault recovery is carried out according to block chain high-availability system mostly living, it is characterized in that, the method Including:
When one certification node determines that the host node of a failed cluster is in failure state, event described in the certification node is deleted Hinder the corresponding information of host node of cluster;
When slave node and ordinary node in the failed cluster determine that the host node is in failure state, described in deletion The corresponding information of host node;
Determined in the host node there are during the slave node of the failed cluster from node, ordinary node when described, will described in New host node from node election for the cluster;
The new host node sends the host node updated data package of the failed cluster to the certification node;
The corresponding information of the new host node is added to host node by the certification node according to the host node updated data package In data cell, it is identified as the host node of the failed cluster;
Described in the host node of ordinary node of the certification node into the failed cluster, new host node and other clusters is sent The host node updated data package of failed cluster;
The ordinary node of the failed cluster and the new host node update host node according to the host node updated data package Information.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
The certification node checks the host node updated data package, judges whether the identity of the new host node is legal;
When being judged as YES, it is according to the host node updated data package that the new host node is corresponding to perform the certification node Information is added in host node data cell, the step of being identified as the host node of the failed cluster;
Otherwise, the certification node refusal updates the host node data cell.
8. according to the method described in claim 7, it is characterized in that, the method further includes:
The new host node, ordinary node are carried out according to information of neighbor nodes each in neighbor data unit by principal and subordinate's election regulation Election, is determined newly from node.
9. a kind of method that main and subordinate node fault recovery is carried out according to block chain high-availability system mostly living, it is characterized in that, the side Method includes:
When one certification node determines that the host node of a failed cluster is in failure state, event described in the certification node is deleted Hinder the corresponding information of host node of cluster;
The ordinary node of the failed cluster determine the host node and from node be in failure state when, delete the main section The corresponding information of point and described from the corresponding information of node;
In the absence of the ordinary node determines master node, slave node, the neighbor node letter in neighbor data unit It ceased principal and subordinate's election regulation to conduct an election, and determined new host node and newly from node;
The new host node sends the host node updated data package of the failed cluster to the certification node;
The corresponding information of the new host node is added to host node by the certification node according to the host node updated data package In data cell, it is identified as the host node of the failed cluster;
Described in the host node of ordinary node of the certification node into the failed cluster, new host node and other clusters is sent The host node updated data package of failed cluster;
The ordinary node of the failed cluster and the new host node update host node according to the host node updated data package Information.
10. according to the method described in claim 9, it is characterized in that, the method further includes:
The certification node checks the host node updated data package, judges whether the identity of the new host node is legal;
When being judged as YES, it is according to the host node updated data package that the new host node is corresponding to perform the certification node Information is added in host node data cell, the step of being identified as the host node of the failed cluster;
Otherwise, the certification node refusal updates the host node data cell.
11. a kind of method that host node common recognition Fault recovery is carried out according to block chain high-availability system mostly living, it is characterized in that, it is described Method includes:
The cluster number of errors of the host node of one certification node statistics, one failed cluster;
When the cluster number of errors reaches a threshold values, host node of the certification node into the failed cluster, from section Point and ordinary node send host node and force switch data packet;
The failed cluster forces switch data packet to adjust the host node as that can not elect state according to the host node;
The slave node and ordinary node of a failure group of planes are determined that host node is not present in neighbor data unit, are existed from node, By the new host node from node election for the failed cluster;
The new host node sends the host node updated data package of the failed cluster to the certification node;
The corresponding information of the new host node is added to host node by the certification node according to the host node updated data package In data cell, it is identified as the host node of the failed cluster;
Described in the host node of ordinary node of the certification node into the failed cluster, new host node and other clusters is sent The host node updated data package of failed cluster;
The ordinary node of the failed cluster and the new host node update host node according to the host node updated data package Information.
12. according to the method for claim 11, it is characterized in that, the method further includes:
Certification node receives host node common recognition wrong data packet, and the host node common recognition wrong data packet is being carried out by a cluster Block chain detects during knowing together to be sent when the result of calculation of the only host node of failed cluster differs.
13. according to the method for claim 11, it is characterized in that, the method further includes:
The certification node checks the host node updated data package, judges whether the identity of the new host node is legal;
When being judged as YES, it is according to the host node updated data package that the new host node is corresponding to perform the certification node Information is added in host node data cell, the step of being identified as the host node of the failed cluster;
Otherwise, the certification node refusal updates the host node data cell.
14. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any side of claim 6 to 13 when performing the computer program Method.
15. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has perform claim It is required that the computer program of 6 to 13 any the methods.
CN201810001668.6A 2018-01-02 2018-01-02 Block chain multi-activity high-availability system, computer equipment and method Active CN108134706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810001668.6A CN108134706B (en) 2018-01-02 2018-01-02 Block chain multi-activity high-availability system, computer equipment and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810001668.6A CN108134706B (en) 2018-01-02 2018-01-02 Block chain multi-activity high-availability system, computer equipment and method

Publications (2)

Publication Number Publication Date
CN108134706A true CN108134706A (en) 2018-06-08
CN108134706B CN108134706B (en) 2020-08-18

Family

ID=62399522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810001668.6A Active CN108134706B (en) 2018-01-02 2018-01-02 Block chain multi-activity high-availability system, computer equipment and method

Country Status (1)

Country Link
CN (1) CN108134706B (en)

Cited By (58)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876378A (en) * 2018-07-11 2018-11-23 杨国超 Publicly-owned chain data enciphering back-up method
CN109005208A (en) * 2018-06-11 2018-12-14 北京京东尚科信息技术有限公司 Method and apparatus for pushed information
CN109088954A (en) * 2018-07-13 2018-12-25 中国电子科技集团公司第十五研究所 A kind of method of distribution object identification information registering and parsing
CN109102296A (en) * 2018-08-31 2018-12-28 北京八分量信息科技有限公司 A kind of node common recognition method and system
CN109144781A (en) * 2018-08-13 2019-01-04 浙商银行股份有限公司 A method of it promoting the application system list garden realized based on block chain technology and disposes calamity for ability
CN109325746A (en) * 2018-08-29 2019-02-12 华中科技大学 A kind of block chain motivational techniques based on storage, block chain network and storage network
CN109347901A (en) * 2018-08-23 2019-02-15 泰链(厦门)科技有限公司 The common recognition mechanism implementation method of block catenary system, medium, apparatus and system
CN109391510A (en) * 2018-08-13 2019-02-26 杭州复杂美科技有限公司 A kind of malfunctioning node detection method and system, equipment and can storage medium
CN109450685A (en) * 2018-11-09 2019-03-08 四川虹微技术有限公司 A kind of common recognition method and node based on local links' node off-line
CN109508991A (en) * 2018-10-16 2019-03-22 深圳市圆世科技有限责任公司 A kind of edge collaboration method based on block chain
CN109510876A (en) * 2018-12-20 2019-03-22 弗洛格(武汉)信息科技有限公司 A kind of alliance's chain sharding method and corresponding alliance's chain based on PBFT
CN109688012A (en) * 2018-12-29 2019-04-26 杭州趣链科技有限公司 A kind of method of alliance's chain node hot standby switch
CN109862136A (en) * 2019-03-19 2019-06-07 全链通有限公司 Group communication method, block chain node and medium based on domain name block chain
CN109862135A (en) * 2019-03-19 2019-06-07 全链通有限公司 Group communication method, block chain node and medium based on domain name block chain
CN109872159A (en) * 2019-01-07 2019-06-11 必可嘉(武汉)科技有限公司 A kind of block chain common recognition method and framework
CN109902210A (en) * 2019-01-31 2019-06-18 篱笆墙网络科技有限公司 The system of file data management
CN109919771A (en) * 2019-03-18 2019-06-21 徐雪松 A kind of hierarchical block chain network and method of commerce applied to industry internet
CN109918261A (en) * 2019-01-25 2019-06-21 中国联合网络通信集团有限公司 Failure monitoring method, device, equipment and computer readable storage medium
CN110113388A (en) * 2019-04-17 2019-08-09 四川大学 A kind of method and apparatus of the block catenary system common recognition based on improved clustering algorithm
CN110278133A (en) * 2019-07-31 2019-09-24 中国工商银行股份有限公司 Inspection method, device, calculating equipment and the medium executed by server
CN110300171A (en) * 2019-06-28 2019-10-01 深圳市元征科技股份有限公司 Information collecting method, system, computer readable storage medium and electronic equipment
CN110351133A (en) * 2019-06-28 2019-10-18 阿里巴巴集团控股有限公司 Method and device for the host node hand-off process in block catenary system
CN110443614A (en) * 2018-09-07 2019-11-12 腾讯科技(深圳)有限公司 Node device delet method, device, computer equipment and storage medium
CN110505089A (en) * 2019-08-21 2019-11-26 清华大学 Internet of things equipment management method and system
CN110708179A (en) * 2018-07-10 2020-01-17 福建省天奕网络科技有限公司 Block chain-based data communication bridging method and storage medium
CN110784331A (en) * 2018-07-30 2020-02-11 华为技术有限公司 Consensus process recovery method and related nodes
CN110851445A (en) * 2019-11-07 2020-02-28 浪潮云信息技术有限公司 Method for safely storing data based on block chain technology
CN110868337A (en) * 2019-11-15 2020-03-06 腾讯科技(深圳)有限公司 Fault-tolerant consensus mechanism testing method and device, storage medium and computer equipment
CN110969458A (en) * 2018-09-29 2020-04-07 武汉斗鱼网络科技有限公司 Integration method of client cluster, client and system
CN111277645A (en) * 2020-01-16 2020-06-12 深圳市网心科技有限公司 Hot switching method for main and standby nodes, block chain system, block chain node and medium
CN111291063A (en) * 2020-01-21 2020-06-16 深圳华锐金融技术股份有限公司 Master and backup copy election method, system, computer equipment and storage medium
CN111314393A (en) * 2018-12-11 2020-06-19 北京京东金融科技控股有限公司 Data processing method, device and equipment based on block chain
WO2020135435A1 (en) * 2018-12-29 2020-07-02 杭州复杂美科技有限公司 Main chain and parallel chain architecture system, block synchronization method, device, and storage medium
CN111405005A (en) * 2020-03-06 2020-07-10 清华大学 Operation control method and system of block chain and controllable network terminal equipment
CN111400404A (en) * 2020-03-18 2020-07-10 中国建设银行股份有限公司 Node initialization method, device, equipment and storage medium
CN111538780A (en) * 2020-04-01 2020-08-14 深圳创客区块链技术有限公司 Method, device and storage medium for converting block chain single strand into primary and secondary double strands
CN111586147A (en) * 2020-04-30 2020-08-25 平安科技(深圳)有限公司 Node synchronization method, device, equipment and storage medium of block chain
CN111654393A (en) * 2020-05-20 2020-09-11 中国工商银行股份有限公司 Block chain networking method and system
CN111698315A (en) * 2020-06-09 2020-09-22 腾讯科技(深圳)有限公司 Data processing method and device for block and computer equipment
CN111698218A (en) * 2020-05-20 2020-09-22 厦门区块链云科技有限公司 Super node election system of block chain community
WO2020232859A1 (en) * 2019-05-20 2020-11-26 平安科技(深圳)有限公司 Distributed storage system, data writing method, device, and storage medium
WO2020258912A1 (en) * 2019-06-26 2020-12-30 京东数字科技控股有限公司 Blockchain consensus method, device and system
CN112422341A (en) * 2020-11-18 2021-02-26 腾讯科技(深圳)有限公司 Fault detection method of block chain network and related equipment
CN112487491A (en) * 2020-10-31 2021-03-12 远光软件股份有限公司 Control method and related device for block chain system
CN113342893A (en) * 2021-06-09 2021-09-03 网易(杭州)网络有限公司 Node synchronization method and device based on block chain, storage medium and server
US11128522B2 (en) 2019-06-28 2021-09-21 Advanced New Technologies Co., Ltd. Changing a master node in a blockchain system
WO2021184878A1 (en) * 2020-03-16 2021-09-23 支付宝(杭州)信息技术有限公司 Node management method for block chain system, node, and computational device
CN114039976A (en) * 2021-10-29 2022-02-11 深圳市科思科技股份有限公司 Server cluster master-slave machine management method and system
CN114221777A (en) * 2021-08-17 2022-03-22 北京恒安嘉新安全技术有限公司 Digital currency flow self-synchronization monitoring method, device and equipment under limited condition
WO2022083690A1 (en) * 2020-10-22 2022-04-28 深圳前海微众银行股份有限公司 Data management method and apparatus, and device, computer storage medium and program
US11347598B2 (en) 2019-03-18 2022-05-31 Advanced New Technologies Co., Ltd. Consensus system downtime recovery
CN115002120A (en) * 2022-08-02 2022-09-02 蒲惠智造科技股份有限公司 Method for determining main node in cluster network based on data synchronization
US11436198B2 (en) * 2019-04-18 2022-09-06 Metabora Co., Ltd. Method and device for restoring blockchain network with its credibility on backup data maintained by using delayed synchronization
CN115314369A (en) * 2022-10-12 2022-11-08 中国信息通信研究院 Method, apparatus, device and medium for block chain node consensus
CN115883575A (en) * 2022-11-23 2023-03-31 紫光云技术有限公司 High-availability cluster optimization method based on B tree
CN116260707A (en) * 2023-05-15 2023-06-13 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium
US11770251B2 (en) 2020-09-09 2023-09-26 Cisco Technology, Inc. Continuous integrity validation-based control plane communication in a container-orchestration system
US11792006B2 (en) 2018-09-07 2023-10-17 Tencent Technology (Shenzhen) Company Limited Method and apparatus for electing representative node device, computer device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060053216A1 (en) * 2004-09-07 2006-03-09 Metamachinix, Inc. Clustered computer system with centralized administration
CN101217402A (en) * 2008-01-15 2008-07-09 杭州华三通信技术有限公司 A method to enhance the reliability of the cluster and a high reliability communication node
CN103457775A (en) * 2013-09-05 2013-12-18 中国科学院软件研究所 High-availability virtual machine pooling management system based on roles
CN103607297A (en) * 2013-11-07 2014-02-26 上海爱数软件有限公司 Fault processing method of computer cluster system
CN103905247A (en) * 2014-03-10 2014-07-02 北京交通大学 Two-unit standby method and system based on multi-client judgment
CN105701372A (en) * 2015-12-18 2016-06-22 布比(北京)网络技术有限公司 Block chain identity construction and verification method
CN106685743A (en) * 2017-03-09 2017-05-17 上海亿账通区块链科技有限公司 Blockchain cluster processing system and method
CN107273760A (en) * 2017-06-09 2017-10-20 济南浪潮高新科技投资发展有限公司 One kind is based on many CA application authentication methods of block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060053216A1 (en) * 2004-09-07 2006-03-09 Metamachinix, Inc. Clustered computer system with centralized administration
CN101217402A (en) * 2008-01-15 2008-07-09 杭州华三通信技术有限公司 A method to enhance the reliability of the cluster and a high reliability communication node
CN103457775A (en) * 2013-09-05 2013-12-18 中国科学院软件研究所 High-availability virtual machine pooling management system based on roles
CN103607297A (en) * 2013-11-07 2014-02-26 上海爱数软件有限公司 Fault processing method of computer cluster system
CN103905247A (en) * 2014-03-10 2014-07-02 北京交通大学 Two-unit standby method and system based on multi-client judgment
CN105701372A (en) * 2015-12-18 2016-06-22 布比(北京)网络技术有限公司 Block chain identity construction and verification method
CN106685743A (en) * 2017-03-09 2017-05-17 上海亿账通区块链科技有限公司 Blockchain cluster processing system and method
CN107273760A (en) * 2017-06-09 2017-10-20 济南浪潮高新科技投资发展有限公司 One kind is based on many CA application authentication methods of block chain

Cited By (80)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005208B (en) * 2018-06-11 2021-03-30 北京京东尚科信息技术有限公司 Method and device for pushing information
CN109005208A (en) * 2018-06-11 2018-12-14 北京京东尚科信息技术有限公司 Method and apparatus for pushed information
CN110708179A (en) * 2018-07-10 2020-01-17 福建省天奕网络科技有限公司 Block chain-based data communication bridging method and storage medium
CN108876378A (en) * 2018-07-11 2018-11-23 杨国超 Publicly-owned chain data enciphering back-up method
CN109088954A (en) * 2018-07-13 2018-12-25 中国电子科技集团公司第十五研究所 A kind of method of distribution object identification information registering and parsing
US11200123B2 (en) 2018-07-30 2021-12-14 Huawei Technologies Co., Ltd. Consensus process recovery method and related node
CN110784331A (en) * 2018-07-30 2020-02-11 华为技术有限公司 Consensus process recovery method and related nodes
CN110784331B (en) * 2018-07-30 2022-05-13 华为技术有限公司 Consensus process recovery method and related nodes
CN109391510A (en) * 2018-08-13 2019-02-26 杭州复杂美科技有限公司 A kind of malfunctioning node detection method and system, equipment and can storage medium
WO2020034866A1 (en) * 2018-08-13 2020-02-20 杭州复杂美科技有限公司 Faulty node detection method and system, device and storable medium
CN109144781A (en) * 2018-08-13 2019-01-04 浙商银行股份有限公司 A method of it promoting the application system list garden realized based on block chain technology and disposes calamity for ability
CN109391510B (en) * 2018-08-13 2021-12-10 杭州复杂美科技有限公司 Fault node detection method, system, equipment and storage medium
CN109347901A (en) * 2018-08-23 2019-02-15 泰链(厦门)科技有限公司 The common recognition mechanism implementation method of block catenary system, medium, apparatus and system
CN109325746A (en) * 2018-08-29 2019-02-12 华中科技大学 A kind of block chain motivational techniques based on storage, block chain network and storage network
CN109102296B (en) * 2018-08-31 2020-11-10 北京八分量信息科技有限公司 Node consensus method and system
CN109102296A (en) * 2018-08-31 2018-12-28 北京八分量信息科技有限公司 A kind of node common recognition method and system
US11792006B2 (en) 2018-09-07 2023-10-17 Tencent Technology (Shenzhen) Company Limited Method and apparatus for electing representative node device, computer device, and storage medium
CN110443614A (en) * 2018-09-07 2019-11-12 腾讯科技(深圳)有限公司 Node device delet method, device, computer equipment and storage medium
CN110969458A (en) * 2018-09-29 2020-04-07 武汉斗鱼网络科技有限公司 Integration method of client cluster, client and system
CN109508991A (en) * 2018-10-16 2019-03-22 深圳市圆世科技有限责任公司 A kind of edge collaboration method based on block chain
CN109450685A (en) * 2018-11-09 2019-03-08 四川虹微技术有限公司 A kind of common recognition method and node based on local links' node off-line
CN111314393A (en) * 2018-12-11 2020-06-19 北京京东金融科技控股有限公司 Data processing method, device and equipment based on block chain
CN109510876A (en) * 2018-12-20 2019-03-22 弗洛格(武汉)信息科技有限公司 A kind of alliance's chain sharding method and corresponding alliance's chain based on PBFT
EP3896941A4 (en) * 2018-12-29 2022-05-25 Hangzhou Fuzamei Technology Co. Ltd Main chain and parallel chain architecture system, block synchronization method, device, and storage medium
WO2020134152A1 (en) * 2018-12-29 2020-07-02 杭州趣链科技有限公司 Consortium blockchain node hot-standby switching method
CN109688012B (en) * 2018-12-29 2020-07-17 杭州趣链科技有限公司 Method for hot standby switching of alliance link nodes
CN109688012A (en) * 2018-12-29 2019-04-26 杭州趣链科技有限公司 A kind of method of alliance's chain node hot standby switch
WO2020135435A1 (en) * 2018-12-29 2020-07-02 杭州复杂美科技有限公司 Main chain and parallel chain architecture system, block synchronization method, device, and storage medium
CN109872159B (en) * 2019-01-07 2021-04-06 必可嘉(武汉)科技有限公司 Block chain consensus method and architecture
CN109872159A (en) * 2019-01-07 2019-06-11 必可嘉(武汉)科技有限公司 A kind of block chain common recognition method and framework
CN109918261B (en) * 2019-01-25 2022-11-22 中国联合网络通信集团有限公司 Fault monitoring method, device, equipment and computer readable storage medium
CN109918261A (en) * 2019-01-25 2019-06-21 中国联合网络通信集团有限公司 Failure monitoring method, device, equipment and computer readable storage medium
CN109902210A (en) * 2019-01-31 2019-06-18 篱笆墙网络科技有限公司 The system of file data management
US11347598B2 (en) 2019-03-18 2022-05-31 Advanced New Technologies Co., Ltd. Consensus system downtime recovery
CN109919771A (en) * 2019-03-18 2019-06-21 徐雪松 A kind of hierarchical block chain network and method of commerce applied to industry internet
CN109862136A (en) * 2019-03-19 2019-06-07 全链通有限公司 Group communication method, block chain node and medium based on domain name block chain
CN109862135A (en) * 2019-03-19 2019-06-07 全链通有限公司 Group communication method, block chain node and medium based on domain name block chain
CN110113388A (en) * 2019-04-17 2019-08-09 四川大学 A kind of method and apparatus of the block catenary system common recognition based on improved clustering algorithm
US11436198B2 (en) * 2019-04-18 2022-09-06 Metabora Co., Ltd. Method and device for restoring blockchain network with its credibility on backup data maintained by using delayed synchronization
WO2020232859A1 (en) * 2019-05-20 2020-11-26 平安科技(深圳)有限公司 Distributed storage system, data writing method, device, and storage medium
WO2020258912A1 (en) * 2019-06-26 2020-12-30 京东数字科技控股有限公司 Blockchain consensus method, device and system
CN110351133B (en) * 2019-06-28 2021-09-17 创新先进技术有限公司 Method and device for main node switching processing in block chain system
CN110300171B (en) * 2019-06-28 2022-04-15 深圳市元征科技股份有限公司 Information acquisition method, system, computer readable storage medium and electronic device
CN110300171A (en) * 2019-06-28 2019-10-01 深圳市元征科技股份有限公司 Information collecting method, system, computer readable storage medium and electronic equipment
CN110351133A (en) * 2019-06-28 2019-10-18 阿里巴巴集团控股有限公司 Method and device for the host node hand-off process in block catenary system
US11128522B2 (en) 2019-06-28 2021-09-21 Advanced New Technologies Co., Ltd. Changing a master node in a blockchain system
CN110278133A (en) * 2019-07-31 2019-09-24 中国工商银行股份有限公司 Inspection method, device, calculating equipment and the medium executed by server
CN110505089A (en) * 2019-08-21 2019-11-26 清华大学 Internet of things equipment management method and system
CN110851445B (en) * 2019-11-07 2022-05-03 浪潮云信息技术股份公司 Method for safely storing data based on block chain technology
CN110851445A (en) * 2019-11-07 2020-02-28 浪潮云信息技术有限公司 Method for safely storing data based on block chain technology
CN110868337A (en) * 2019-11-15 2020-03-06 腾讯科技(深圳)有限公司 Fault-tolerant consensus mechanism testing method and device, storage medium and computer equipment
CN110868337B (en) * 2019-11-15 2021-05-07 腾讯科技(深圳)有限公司 Fault-tolerant consensus mechanism testing method and device, storage medium and computer equipment
CN111277645A (en) * 2020-01-16 2020-06-12 深圳市网心科技有限公司 Hot switching method for main and standby nodes, block chain system, block chain node and medium
CN111277645B (en) * 2020-01-16 2023-02-10 深圳市迅雷网络技术有限公司 Hot switching method for main and standby nodes, block chain system, block chain node and medium
CN111291063A (en) * 2020-01-21 2020-06-16 深圳华锐金融技术股份有限公司 Master and backup copy election method, system, computer equipment and storage medium
CN111405005A (en) * 2020-03-06 2020-07-10 清华大学 Operation control method and system of block chain and controllable network terminal equipment
WO2021184878A1 (en) * 2020-03-16 2021-09-23 支付宝(杭州)信息技术有限公司 Node management method for block chain system, node, and computational device
CN111400404A (en) * 2020-03-18 2020-07-10 中国建设银行股份有限公司 Node initialization method, device, equipment and storage medium
CN111538780B (en) * 2020-04-01 2023-01-13 深圳创客区块链技术有限公司 Method and device for converting block chain single chain into primary and secondary double chains and storage medium
CN111538780A (en) * 2020-04-01 2020-08-14 深圳创客区块链技术有限公司 Method, device and storage medium for converting block chain single strand into primary and secondary double strands
CN111586147A (en) * 2020-04-30 2020-08-25 平安科技(深圳)有限公司 Node synchronization method, device, equipment and storage medium of block chain
CN111654393A (en) * 2020-05-20 2020-09-11 中国工商银行股份有限公司 Block chain networking method and system
CN111698218A (en) * 2020-05-20 2020-09-22 厦门区块链云科技有限公司 Super node election system of block chain community
CN111654393B (en) * 2020-05-20 2023-01-06 中国工商银行股份有限公司 Block chain networking method and system
CN111698315A (en) * 2020-06-09 2020-09-22 腾讯科技(深圳)有限公司 Data processing method and device for block and computer equipment
CN111698315B (en) * 2020-06-09 2021-10-15 腾讯科技(深圳)有限公司 Data processing method and device for block and computer equipment
US11770251B2 (en) 2020-09-09 2023-09-26 Cisco Technology, Inc. Continuous integrity validation-based control plane communication in a container-orchestration system
WO2022083690A1 (en) * 2020-10-22 2022-04-28 深圳前海微众银行股份有限公司 Data management method and apparatus, and device, computer storage medium and program
CN112487491A (en) * 2020-10-31 2021-03-12 远光软件股份有限公司 Control method and related device for block chain system
CN112422341A (en) * 2020-11-18 2021-02-26 腾讯科技(深圳)有限公司 Fault detection method of block chain network and related equipment
CN113342893A (en) * 2021-06-09 2021-09-03 网易(杭州)网络有限公司 Node synchronization method and device based on block chain, storage medium and server
CN114221777B (en) * 2021-08-17 2024-01-30 北京恒安嘉新安全技术有限公司 Digital currency flow self-synchronization monitoring method, device and equipment under limited condition
CN114221777A (en) * 2021-08-17 2022-03-22 北京恒安嘉新安全技术有限公司 Digital currency flow self-synchronization monitoring method, device and equipment under limited condition
CN114039976A (en) * 2021-10-29 2022-02-11 深圳市科思科技股份有限公司 Server cluster master-slave machine management method and system
CN114039976B (en) * 2021-10-29 2024-01-09 深圳市科思科技股份有限公司 Master-slave management method and system for server cluster
CN115002120A (en) * 2022-08-02 2022-09-02 蒲惠智造科技股份有限公司 Method for determining main node in cluster network based on data synchronization
CN115314369A (en) * 2022-10-12 2022-11-08 中国信息通信研究院 Method, apparatus, device and medium for block chain node consensus
CN115883575A (en) * 2022-11-23 2023-03-31 紫光云技术有限公司 High-availability cluster optimization method based on B tree
CN116260707B (en) * 2023-05-15 2023-10-10 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium
CN116260707A (en) * 2023-05-15 2023-06-13 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium

Also Published As

Publication number Publication date
CN108134706B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN108134706A (en) Block chain high-availability system mostly living, computer equipment and method
EP3832578A1 (en) Electronic invoice identifier allocation method, and electronic ticket generating method, device and system
AU2020202621B2 (en) Techniques for performing data reconciliation in distributed data store systems
TWI755417B (en) Computing task allocation method, execution method of stream computing task, control server, stream computing center server cluster, stream computing system and remote multi-active system
US7640451B2 (en) Failover processing in a storage system
EP2171593B1 (en) Shared data center disaster recovery systems and methods
US20220091771A1 (en) Moving Data Between Tiers In A Multi-Tiered, Cloud-Based Storage System
TW201832093A (en) Resource processing method based on internet data center, related devices and communication system
US20120079090A1 (en) Stateful subnet manager failover in a middleware machine environment
JP2017534133A (en) Distributed storage and replication system and method
WO2018171565A1 (en) Disaster recovery deployment method, device and system
WO2016150066A1 (en) Master node election method and apparatus, and storage system
CN106656589B (en) A kind of server dual-machine hot backup system
US20080244552A1 (en) Upgrading services associated with high availability systems
CN101751415B (en) Metadata service system, metadata synchronized method and writing server updating method
WO2017071563A1 (en) Data storage method and cluster management node
CN104994168A (en) distributed storage method and distributed storage system
EP3526931B1 (en) Computer system and method for dynamically adapting a software-defined network
CN103973725A (en) Distributed collaboration method and collaboration device
CN113612614B (en) Method, device, equipment and storage medium for consensus disaster recovery based on blockchain network
CN109976941A (en) A kind of data reconstruction method and device
CN109639773A (en) A kind of the distributed data cluster control system and its method of dynamic construction
WO2012012962A1 (en) Disaster tolerance service system and disaster tolerance method
CN113905096A (en) Block chain network, chain reconstruction method, consensus method and data synchronization method
CN105933379A (en) Business processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210104

Address after: 100140, 55, Fuxing Avenue, Xicheng District, Beijing

Patentee after: INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Patentee after: ICBC Technology Co.,Ltd.

Address before: 100140, 55, Fuxing Avenue, Xicheng District, Beijing

Patentee before: INDUSTRIAL AND COMMERCIAL BANK OF CHINA

TR01 Transfer of patent right