CN111491020B - Data processing method, data processing device, computer equipment and storage medium - Google Patents

Data processing method, data processing device, computer equipment and storage medium Download PDF

Info

Publication number
CN111491020B
CN111491020B CN202010271771.XA CN202010271771A CN111491020B CN 111491020 B CN111491020 B CN 111491020B CN 202010271771 A CN202010271771 A CN 202010271771A CN 111491020 B CN111491020 B CN 111491020B
Authority
CN
China
Prior art keywords
node
consensus
nodes
original
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010271771.XA
Other languages
Chinese (zh)
Other versions
CN111491020A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010271771.XA priority Critical patent/CN111491020B/en
Publication of CN111491020A publication Critical patent/CN111491020A/en
Application granted granted Critical
Publication of CN111491020B publication Critical patent/CN111491020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the application discloses a data processing method, a data processing device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring node networking information of a target node; the node networking information of the target node is determined according to the node parameters of the participating nodes participating in networking, and the node networking information of the target node comprises the address of the direct-connected node; and establishing connection with the direct connection node according to the address of the direct connection node so as to construct a target block chain network comprising the target node and the direct connection node. By adopting the method and the device, the block chain network can be reasonably established, and the performance of the block chain network is improved.

Description

Data processing method, data processing device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a computer device, and a storage medium.
Background
The blockchain technology is a brand new distributed infrastructure and computing mode that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data. Briefly, a blockchain is a decentralized distributed ledger.
The computer device storing and maintaining the distributed account book is called a blockchain node, and a plurality of blockchain nodes maintaining the same distributed account book can be combined into a blockchain network. In order to achieve decentralization, a random strategy is adopted to determine the connection relationship among all nodes in the building process of the blockchain network.
The unconstrained connection of the nodes can cause unreasonable connection relation, thereby reducing the consensus efficiency and influencing the performance of the block chain network.
Disclosure of Invention
Embodiments of the present application provide a data processing method, an apparatus, a computer device, and a storage medium, which can reasonably establish a block chain network and improve performance of the block chain network.
An aspect of the present application provides a data processing method, applied to a target node, including:
acquiring node networking information of a target node; the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of direct-connected nodes;
and establishing connection with the direct connection node according to the address of the direct connection node so as to construct a target block chain network comprising the target node and the direct connection node.
An aspect of the present application provides a data processing apparatus, which is applied to a target node, and includes:
the acquisition module is used for acquiring the node networking information of the target node; the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of direct-connected nodes;
and the connection establishing module is used for establishing connection with the direct connection node according to the address of the direct connection node so as to establish a target block chain network comprising the target node and the direct connection node.
The node networking information of the target node is stored in a block chain; the target node is a node in an original blockchain network corresponding to the blockchain;
the acquisition module includes:
the first response unit is used for responding to an execution request of a networking transaction in a networking intelligent contract and acquiring the block chain;
a first obtaining unit, configured to obtain node networking information of the target node from the block chain.
Wherein the node parameters of the participating nodes are stored in a block chain; the target node is a node in an original blockchain network corresponding to the blockchain;
the device further comprises:
the first response module is used for responding to an execution request of a networking information uploading transaction in a networking intelligent contract, acquiring the block chain and acquiring the node parameters of the participating nodes from the block chain;
the determining module is used for determining the node networking information of the target node according to the node parameters of the participating nodes;
the first response module is further configured to add node networking information of the target node to the block chain.
Wherein the apparatus further comprises:
and the second response module is used for responding to an execution request of a node parameter uploading transaction in the networking intelligent contract, acquiring the node parameter of the participating node, and adding the node parameter of the participating node to the block chain.
Wherein the participating nodes comprise a plurality of original non-consensus nodes that are each non-consensus nodes in the original blockchain network; the original blockchain network further comprises a plurality of original consensus nodes;
the determining module includes:
the second acquisition unit is used for determining the quality score of each original non-consensus node according to the node parameter of each original non-consensus node and determining the number of consensus nodes of the plurality of original consensus nodes;
and the determining unit is used for determining the node networking information of the target node according to the number of the common-known nodes and the quality score of each original non-common-known node.
Wherein the target node is any one of the plurality of original consensus nodes;
the determination unit includes:
the selecting subunit is used for selecting a plurality of primary non-common-known node clusters from the plurality of original non-common-known nodes according to the quality score of each original non-common-known node and the number of the common-known nodes; the number of the first-level non-consensus node clusters is equal to the number of the consensus nodes, and the difference of the number of the nodes among the first-level non-consensus node clusters is smaller than the difference threshold;
the device comprises a setting subunit, configured to establish an association relationship between each primary non-consensus node cluster and each original consensus node, acquire a first address of the primary non-consensus node cluster having an association relationship with the target node, acquire a second address of the original consensus node directly connected to the target node in the original block chain network, and combine the first address and the second address into node networking information of the target node.
Wherein, still include:
a determining subunit, configured to use the target node as a consensus node of the target block chain network, if the direct connection node is a consensus node in the original block chain network, use the direct connection node as a consensus node in the target block chain network, and if the direct connection node is a non-consensus node in the original block chain network, use the direct connection node as a non-consensus node in the target block chain network.
Wherein the target node is any one of the plurality of original non-consensus nodes;
the determination unit includes:
a dividing subunit, configured to determine a primary node number threshold according to the number of common identification nodes, and divide the multiple original non-common identification nodes into multiple primary non-common identification node clusters and multiple secondary non-common identification node clusters according to the quality score of each original non-common identification node and the primary node number threshold; the number of the first-level non-consensus node clusters is equal to the number of the consensus nodes; the number of the primary non-common nodes contained in all the primary non-common node clusters is equal to or less than the threshold value of the number of the primary nodes; the number of the secondary non-consensus node clusters is equal to the number of the primary non-consensus nodes; the target node belongs to the multiple primary non-consensus node clusters;
and the combination subunit is used for establishing an association relationship between each primary non-consensus node cluster and each original consensus node, establishing an association relationship between each secondary non-consensus node cluster and each primary non-consensus node, taking the address of the secondary non-consensus node cluster having an association relationship with the target node as the lower networking information of the target node, taking the address of the original consensus node having an association relationship with the target node as the upper networking information of the target node, and combining the upper networking information and the lower networking information into the node networking information of the target node.
Wherein the participating nodes include a plurality of original nodes that are each a node in the original blockchain network, the target node belonging to the plurality of original nodes;
the determining module includes:
the dividing unit is used for determining the quality score of each original node according to the node parameter of each original node, and dividing the plurality of original nodes into a plurality of first common nodes and a plurality of first non-common node clusters according to the quality score of each original node; the number of the first non-common node clusters is the same as that of the first common nodes; the target node is any one of the plurality of first common nodes;
a third obtaining unit, configured to establish an association relationship between each first non-common node cluster and each first common node, obtain a third address of the first non-common node cluster having an association relationship with the target node, obtain fourth addresses of other first common nodes except the target node in the plurality of first common nodes, and combine the third address and the fourth addresses into node networking information of the target node.
Wherein the networking intelligence is tied to the blockchain;
the device further comprises:
the generation module is used for acquiring the networking intelligent contract from the block chain and acquiring a target timestamp;
the generating module is further configured to generate an execution request of the node parameter uploading transaction when the target timestamp meets a trigger condition of the node parameter uploading transaction, or generate an execution request of the node parameter uploading transaction when a node joining request is received.
Wherein the participating nodes include a plurality of original nodes to which the target node belongs;
the acquisition module includes:
the fourth obtaining unit is used for obtaining the node parameter of each original node from the node management database, determining the quality score of each original node according to the node parameter of each original node, and dividing the plurality of original nodes into a plurality of second common consensus nodes and a plurality of second non-common consensus node clusters according to the quality score of each original node; the number of the second non-consensus node clusters is the same as that of the second consensus nodes; the target node is any one of the plurality of second consensus nodes;
a relationship establishing unit, configured to establish an association relationship between each second non-common node cluster and each second common node, obtain a fifth address of the second non-common node cluster having an association relationship with the target node, obtain sixth addresses of other second common nodes in the plurality of second common nodes except the target node, and combine the fifth address and the sixth addresses into node networking information of the target node.
An aspect of the embodiments of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the method in the foregoing embodiments.
An aspect of the embodiments of the present application provides a computer storage medium, in which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, perform the method in the foregoing embodiments.
According to the method and the device, the direct connection node of the target node is determined through the node parameters of the nodes participating in networking, and then the target node and the direct connection node are connected to construct the block chain network, so that instability caused by adopting a random connection strategy is avoided by taking the node parameters as networking constraint conditions, connection redundancy caused by adopting a full connection strategy is also avoided, the flexibility and the reasonableness of the block chain network can be improved, the common identification efficiency is ensured, and the performance of the block chain network is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a block chain network according to an embodiment of the present application;
2 a-2 d are schematic diagrams of a data processing scenario provided by an embodiment of the present application;
fig. 3 is a schematic diagram of a data processing method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of determining node networking information according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The Block chain (Block chain) is a novel application mode of computer technologies such as distributed data storage, point-To-point transmission (P2P, Peer To Peer), a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, which is a string of data blocks associated using cryptography, each data block containing one or more transaction messages for verifying the validity (anti-counterfeiting) of the message and generating the next block.
Referring to fig. 1, which is a schematic diagram of a blockchain network provided in the embodiment of the present application, a node 1, a node 2, a node 3, and a node 4 may be combined into a blockchain network, each node may store one same blockchain, the 4 nodes may also be referred to as blockchain nodes, and each node may include a hardware layer, an intermediate layer, an operating system layer, and an application layer. It will be appreciated that a node may comprise a computer device.
The block chain network comprises a plurality of nodes and connection relations among the nodes, and the main purpose of the application is to flexibly establish the block chain network so as to improve the performance of the block chain network. The method can be applied to the following two scenes, namely the scene one: the existing original block chain network can optimize the connection relation between each block chain link point in the original block chain network by adopting the scheme so as to improve the performance of the block chain network; scene two: the method and the system for establishing the block chain network have the advantages that the existing nodes determine the connection relation among the nodes by adopting the scheme, so that the block chain network with high performance is newly established.
The node and the like shown in fig. 1 may be a computer device such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart bracelet and the like), or a server.
The following embodiments corresponding to fig. 2a to 2d are specifically described by taking scene one as an example:
please refer to fig. 2 a-2 d, which are schematic diagrams illustrating a data processing scenario according to an embodiment of the present application. The blockchain network shown in fig. 2a includes 4 nodes, where node 1 is directly connected to node 2, node 3 is directly connected to node 4, node 2 is directly connected to node 1, node 3 is directly connected to node 1, node 4 is directly connected to node 1, and node 1 and node 2 are common nodes, and node 3 and node 4 are non-common nodes.
The consensus node internally comprises a consensus module which performs consensus on transaction data in the block chain network according to a consensus mechanism to generate a new block and an uplink; the non-consensus node does not participate in consensus, and only the newly generated block needs to be synchronized from the consensus node. All 4 nodes store a block chain, which can be seen from fig. 2a to include 3 blocks.
The 4 nodes regularly detect whether the current timestamp meets the trigger condition of the node parameter uploading transaction, if so, the 4 nodes acquire respective node parameters, and the node parameters may include: memory capacity, network bandwidth, number of CPU cores, etc. After the node parameters are obtained, 4 nodes broadcast their node parameters to the blockchain network, and select a node from the node 1 and the node 2 for block generation and uplink transmission according to a preset common identification mechanism, assuming that the node 1 is selected to generate the block and uplink transmission. Node 1 may combine the node parameters of 4 nodes into a node parameter set 20 a.
The node 1 may store the node parameter set 20a into the block, calculate a merkel root of the node parameter set 20a, obtain a hash value and a current timestamp of a last block (i.e., a 3 rd block) of the current block chain, store the merkel root, the hash value and the current timestamp of the last block into a block header, and combine the block header and the block body in which the node parameter set 20a is stored into the block 20b by the node 1.
Node 1 may add the newly generated tile 20b to the chain of tiles stored in node 1 and broadcast the tile 20b to the other nodes in the network of tiles chains (i.e., nodes 2, 3, and 4) to cause the other 3 nodes to add the newly generated tile 20b to the respective stored chain of tiles.
As shown in fig. 2b, the time zone block chain includes 4 blocks, and the last block is the newly generated block 20 b. Each node may generate a completion notification for the node parameter upload transaction indicating that the node parameter upload transaction is complete.
And after acquiring the completion notice of the node parameter uploading transaction, each node triggers and executes the networking information uploading transaction. Taking node 1 as an example to perform a networking information upload transaction, node 1 obtains block 20b from the block chain, and obtains node parameter set 20a from block 20 b. The node 1 selects the node 1 and the node 2 with the optimal performance from the 4 nodes as the consensus nodes, and the remaining 2 nodes are the non-consensus nodes (at this time, the consensus nodes and the non-consensus nodes do not change before and after network adjustment). And distributing nodes to be directly connected to each consensus node based on a load balancing principle, wherein the load balancing principle means that the number of non-consensus nodes directly connected to each consensus node is the same or similar, the number of non-company nodes directly connected to each consensus node is not too large, and the performance of the non-consensus nodes directly connected to the consensus nodes is superior. It is assumed that the following networking information can be determined based on load balancing principles: the node that directly links of node 1 is node 2 and node 3, and node 2 directly links the node and is node 1 and node 4, and the node that directly links of node 3 is node 1, and the node that directly links of node 4 is node 2.
As with the node parameter set 20a, a node is selected from node 1 and node 2 for packet uplink according to a predetermined common identification mechanism, assuming that node 1 is selected. As shown in fig. 2b, the node 1 may store the networking information into a block, calculate a merkel root of the networking information, obtain a hash value and a current timestamp of a last block (assumed to be the block 20b) of a current block chain, store the merkel root, the hash value and the current timestamp of the last block into a block header, and combine the block header and the block in which the networking information is stored into a block 20 c.
Node 1 may add the newly generated tile 20c to the chain of tiles stored in node 1 and broadcast the tile 20c to the other nodes in the network of tiles chains (i.e., nodes 2, 3, and 4) to cause the other 3 nodes to add the newly generated tile 20c to the respective stored chain of tiles.
As shown in fig. 2c, the time zone block chain includes 5 blocks, and the last block is the newly generated block 20 c. Each node may generate a completion notification of the networking information upload transaction, indicating that the networking information upload transaction is complete.
After each node acquires the notification of completion of the networking information uploading transaction, the block 20c is acquired from the block chain, and the networking information of 4 nodes is acquired from the block 20 c.
As shown in fig. 2d, after acquiring the networking information, the node 1 may establish a connection with the node 2 and the node 3; for the node 2, after the networking information is acquired, connection can be established between the node 2 and the node 1 and the node 4; for the node 3, after the networking information is acquired, connection can be established with the node 1; after acquiring the networking information, the node 4 may establish a connection with the node 2.
Therefore, the networking process of the node 1, the node 2, the node 3 and the node 4 is completed, and the connection relation among the 4 nodes is adjusted. Comparing the blockchain network corresponding to fig. 2a with the blockchain network corresponding to fig. 2d determined by using the scheme, it can be seen that the number of non-consensus nodes directly connected to each consensus node in fig. 2d is 1, the connection coupling degree between the consensus nodes and the non-consensus nodes is lower, the node connection relationship is more reasonable, the consensus efficiency can be ensured, and the subsequent node management and node expansion are facilitated.
For a specific process of determining the own node networking information by the target node (any one of the node 1, the node 2, the node 3, and the node 4 in the foregoing embodiment) according to the node parameters (the node parameter set 20a in the foregoing embodiment) of the participating nodes (the node 1, the node 2, the node 3, and the node 4 in the foregoing embodiment), reference may be made to the following embodiments corresponding to fig. 3 to fig. 7.
Please refer to fig. 3, which is a schematic diagram of a data processing method provided in an embodiment of the present application, where the data processing method can be applied to a target node, and the data processing method includes the following steps:
step S101, obtaining node networking information of a target node, wherein the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of directly connected nodes.
Specifically, the present application relates to building a blockchain network, which can be applied to the following two scenarios, scenario one: the method comprises the steps that an original block chain network exists, the connection relation among all nodes in the original block chain network is adjusted, and a new target block chain network is obtained; scene two: and establishing a brand new target block chain network based on a plurality of nodes.
When the method is applied to a scene one, data required in the networking process can be stored on a block chain so as to ensure the integrity, the safety and the traceability of the data; when the method is applied to the second scenario, since a block chain network does not exist before the application is implemented, data required in the networking process can be stored in a node management database (or cloud).
The target node may obtain its own node networking information from the blockchain or obtain its own node networking information from the node management database, where the node networking information of the target node is determined according to the node parameters (such as the node parameter set 20a in the embodiments corresponding to fig. 2a to fig. 2 d) of the participating nodes participating in networking and the load balancing principle. The participating node may include a plurality of nodes (any one node is a computer device), and the node parameter of the participating node is the node parameter of all the nodes included in the participating node. The load balancing principle means that the connection loads of a plurality of nodes at the same level in the constructed target block chain network are the same or similar. The connection load of a node is determined by the number of nodes directly connected to the node.
The node parameters may include: and at least one item of node information such as node memory capacity, node network bandwidth, node CPU core number and the like.
When the node networking information of the target node is acquired from the block chain, the participating node and the target node at this time may be nodes in the original block chain network, and the nodes in the original block chain network may be divided into a consensus node (referred to as an original consensus node) and a non-consensus node (referred to as an original non-consensus node). The consensus node comprises a consensus module inside, wherein the consensus module is mainly used for performing consensus on transaction data in a blockchain network to generate a new block and a chain; the non-consensus node does not participate in consensus, only needs to synchronize the newly generated block from the consensus node, and maintains a block chain.
Similar to the target node, for a plurality of nodes in the participating nodes, the node networking information of the node may also be acquired from the blockchain or the node management database.
And step 102, establishing connection with the direct connection node according to the address of the direct connection node so as to construct a target block chain network comprising the target node and the direct connection node.
Specifically, the target node establishes connection with the corresponding direct connection node according to the address of the direct connection node.
For a plurality of nodes in the participating nodes, the connection with the corresponding direct connection node can be established according to the address of the direct connection node. This creates a blockchain network (called target blockchain network, such as the blockchain network corresponding to fig. 2d above) comprising the participating nodes, the target node and the direct connected nodes of the target node.
The node parameters of the nodes participating in networking are used as networking constraint conditions, so that instability caused by adopting a random connection strategy is avoided, connection redundancy caused by adopting a full connection strategy is also avoided, the flexibility and rationality of building a block chain network can be improved, the consensus efficiency is ensured, and the performance of the block chain network is improved.
Please refer to fig. 4, which is a flowchart illustrating a data processing method according to an embodiment of the present application, where an application scenario of the present application is to adjust a connection relationship between nodes on the basis of an original block chain network (i.e., corresponding to scenario one described in the embodiment of fig. 3), the original block chain network includes a plurality of original nodes, the plurality of original nodes may be further subdivided into a plurality of original common nodes and a plurality of original non-common nodes, a target node is one of the plurality of original nodes, in other words, the target node may be either a common node in the original block chain network or a non-common node in the original block chain network, and the plurality of original non-common nodes may be combined as participating nodes.
The data processing method comprises the following steps:
step S201, in response to an execution request of a networking information upload transaction in a networking intelligent contract, acquiring the block chain, and acquiring node parameters of the participating node from the block chain.
Specifically, the networking process related to the method can be written in a networking intelligent contract, the networking intelligent contract is stored on a block chain, and all original nodes are participants of the networking intelligent contract.
A Smart contract (Smart contract) is a computer protocol intended to propagate, verify or execute contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. Smart contracts differ from traditional paper contracts in that smart contracts are computer-generated. Thus, the code itself explains the relevant obligations of the participant.
The networking intelligent contract comprises a node parameter uploading transaction, a networking information uploading transaction and a networking transaction, wherein the node parameter uploading transaction is to upload node parameters of participating nodes to a block chain, the networking information uploading transaction is to determine node networking information of each original node according to the node parameters of the participating nodes, and the networking transaction is to establish connection between each original node and a corresponding direct-connected node according to respective node networking information. The whole transaction and state processing is automatically completed by an intelligent contract system arranged in the bottom layer of the block chain, and the whole process is transparent and cannot be tampered.
The three transactions are executed in sequence, each transaction has a corresponding trigger condition, when the trigger condition is met, the corresponding transaction is executed, and after the execution is finished, the state of the transaction is modified.
And the target node acquires the current timestamp at fixed time intervals, and if the current timestamp meets the trigger condition of the networking information uploading transaction in the networking intelligent contract, the target node generates an execution request of the networking information uploading transaction. And the target node responds to an execution request of a networking information uploading transaction in the networking intelligent contract and acquires node parameters of the participating nodes from the block chain. Of course, the node parameters of the participating nodes are already stored on the blockchain before the target node responds to the execution request of the networking information upload transaction.
The process that the target node uploads the node parameters of the participating nodes to the block chain is as follows:
the target node acquires a current timestamp (called a target timestamp) at intervals of fixed duration, and if the target timestamp meets the trigger condition of a node parameter uploading transaction in a networking intelligent contract, the target node generates an execution request of the node parameter uploading transaction; or when the target node acquires the node adding request, the target node generates an execution request of the node parameter uploading transaction, wherein the node adding request refers to that a new node requests to be added into the original block chain network. And the target node acquires the node parameters of each original non-consensus node.
If the target node is the original consensus node with the largest workload certification in the original blockchain network (assuming that the consensus mechanism of the original blockchain network is the workload certification mechanism, which means that the target node does not belong to the participating node at this time), the target node may add the node parameters of all the original non-consensus nodes to the block body, obtain the hash value of the last block in the current blockchain and obtain the merkel root of the node parameters of the participating nodes, add the hash value, merkel root and current timestamp to the block header, add the block body to which the node parameters are added and the first block of the block body combination (as in the above-mentioned block 20b in the corresponding embodiment of fig. 2 a-2 d), add this new first block to the locally stored blockchain and broadcast the first block to the remaining original nodes, so that the respective stored block chains of all the original nodes are synchronized.
If the target node is an original non-consensus node in the original block chain network (which indicates that the target node belongs to a participating node at this time), the target node may obtain a node parameter of the target node and obtain node parameters of other non-consensus nodes, combine the obtained node parameters into the node parameters of the participating node, and send the node parameters of the participating node to the original consensus node in the original block chain network, and after the consensus of the original consensus node is completed, the original consensus node may generate a first block (the process of generating the first block by the consensus node is the same as that of generating the first block by the target node, which is not repeated here). The target node synchronizes the first block from the common node.
Step S202, determining node networking information of the target node according to the node parameters of the participating nodes; the participating nodes include a plurality of original non-consensus nodes.
Specifically, the target node determines node networking information of each original non-consensus node and node networking information of each original consensus node based on a load balancing principle and node parameters of each original non-consensus node, wherein the node networking information comprises addresses of one or more directly connected nodes. The load balancing principle means that the number of the non-consensus nodes directly connected with the consensus nodes does not exceed a preset threshold value, the number of the non-consensus nodes directly connected with each consensus node is the same or similar, and the number of the non-consensus nodes under each consensus node is the same or similar.
The node networking information of each original node is determined, namely, a plurality of original nodes are constructed into a tree structure, so that each consensus node is only directly connected with a limited number of non-consensus nodes, the number of the non-consensus nodes directly connected with the consensus nodes is reduced, and the consensus efficiency is improved. In the process of adjusting the original block chain network, the common identification node and the non-common identification node are not changed, and the connection relation between the common identification node and the non-common identification node is changed. For example, if node a is a consensus node in the original blockchain network, then node a is also a consensus node in the target blockchain network; if node a is a non-consensus node in the original blockchain network, then node a is also a non-consensus node in the target blockchain network.
The following is a detailed description of how to determine the node networking information of each original node:
from the foregoing, it can be seen that the participating node includes a plurality of original non-consensus nodes, any original non-consensus node is a non-consensus node in the original blockchain, and the original blockchain network further includes a plurality of original consensus nodes. The target node acquires the node parameter of each original non-consensus node, and determines the quality score of each original non-consensus node according to the node parameter of each original non-consensus node; of course, the better the node performance, the higher the corresponding quality score.
For example, the node parameters of the original non-consensus node 1 are: the memory capacity is 2g, the network bandwidth is 10M, and the node parameters of the original non-consensus node 2 are as follows: the memory capacity is 4g, the network bandwidth is 50M, and then the quality score of the original non-consensus node 2 is larger than that of the original non-consensus node 1.
The target node obtains the node number (called as the common node number, assuming that the common node number is N) of a plurality of original common nodes, and determines a primary node number threshold M according to the common node number N, where the primary node number threshold may indicate a maximum number threshold of non-common nodes directly connected to the common node.
For example, the number of common nodes is represented as N, and the primary node number threshold M may be 4N, indicating that the number of non-common nodes directly connected to each common node is at most 4.
And the target node sorts all the original non-consensus nodes according to the quality score and the descending rule of each original non-consensus node, wherein the quality score is higher before the original non-consensus node, and the quality score is lower after the original non-consensus node.
After sequencing, dividing the first M original non-common nodes into a first set, and dividing the rest original non-common nodes into a second set, wherein the original non-common nodes in the first set are all called primary non-common nodes, and the original non-common nodes in the second set are all called secondary non-common nodes.
Of course, if the number of all the original non-common nodes is less than the primary node number threshold M, then the second set is an empty set.
The target node uniformly divides all the first-level non-common nodes into a plurality of first-level non-common node clusters according to the quality score of each first-level non-common node and the number N of common nodes, wherein the number of the first-level non-common node clusters is equal to the number N of the common nodes (namely, one first-level non-common node cluster corresponds to one original common node), and the difference of the number of the nodes among the plurality of first-level non-common node clusters is less than the difference threshold, so that the number of the first-level non-common nodes contained in the plurality of first-level non-common node clusters can be ensured to be as same as possible. And the target node establishes an association relation between each primary non-consensus node cluster and each original consensus node.
When the target node is one of the multiple original common identification nodes, acquiring addresses (called as first addresses) of all the primary non-common identification nodes in the primary non-common identification node cluster which has an association relation with the target node, acquiring addresses (called as second nodes) of the original common identification nodes which are directly connected with the target node in the original block chain network, and combining the first addresses and the second addresses into networking information of the target node.
Therefore, for a plurality of original consensus nodes, the connection relationship between the original consensus nodes before and after network adjustment can not be changed. In the original block chain network, all the original consensus nodes can be fully connected, so that after the original block chain network is adjusted, the original consensus nodes are also fully connected, and the full connection between the consensus nodes can ensure consensus efficiency.
The target node can determine the node networking information of other original consensus nodes in the same manner, so that the target node determines the networking information of each original consensus node.
For example, in the existing original common node 1, original common node 2, primary non-common node cluster 1 and primary non-common node cluster 2, the target node may establish an association relationship between the original common node 1 and the primary non-common node cluster 1, and an association relationship between the original common node 2 and the primary non-common node cluster 2. Then, the addresses of all the first-level non-common nodes included in the first-level non-common node cluster 1 + the address of the original common node 2 are the networking information of the original common node 1; the addresses of all the primary non-common nodes included in the primary non-common node cluster 2 + the address of the original common node 1 are the networking information of the original common node 2.
Then, the target consensus node uniformly divides all second non-consensus nodes into a plurality of second non-consensus node clusters according to the quality score of each second non-consensus node and the number M of first non-consensus nodes, wherein the number of the second non-consensus node clusters is equal to the number M of the first non-consensus nodes (that is, one second non-consensus node cluster corresponds to one first non-consensus node), and the difference of the number of the nodes among the plurality of second non-consensus node clusters is smaller than the difference threshold, so that the number of the second non-consensus nodes contained in the plurality of second non-consensus node clusters is ensured to be as same as possible. Of course, if the number of the second-level non-common nodes is less than the number M of the first-level non-common nodes, then there is a second-level non-common node cluster that is empty.
And the target consensus node establishes an association relation between each secondary non-consensus node cluster and each primary non-consensus node.
When the target node is one of the primary non-consensus nodes, the address of each secondary non-consensus node in the secondary non-consensus node cluster having an association relation with the target node is used as the lower networking information of the target node, and the address of the original consensus node having an association relation with the target node is used as the upper networking information of the target node. And combining the upper networking information and the lower networking information into node networking information of the target node.
The target node can determine the node networking information of all the other level non-common nodes in the same way, so that the target node determines the networking information of each level non-common node.
And when the target node is one of the plurality of second-level non-consensus nodes, taking the address of the first-level non-consensus node which has an association relation with the target node as the node networking information of the target node.
The target node can determine the node networking information of all the other secondary non-consensus nodes in the same way, so that the target node determines the networking information of each secondary non-consensus node.
As can be seen from the above, the node networking information of each original node is bidirectional, and although complete, there is a certain redundancy, for example, if there is an association relationship between the node 1 and the node 2, the address of the node 2 is the node networking information of the node 1 for the node 1; the address of node 1 to node 2 is the node networking information of node 2.
In order to save system resources, the node networking information of each original node can be adjusted to be unidirectional. The specific process is as follows: when the target node is one of the original consensus nodes, the target node sets the node networking information of the target node to be null (or takes the address of the original consensus node directly connected with the target node in the original block chain network as the node networking information of the target node); when the target node is one of the primary non-consensus nodes, taking the address of the original consensus node having an incidence relation with the target node as the node networking information of the target node; and when the target node is one of the plurality of second-level non-consensus nodes, taking the address of the first-level non-consensus node which has an association relation with the target node as the node networking information of the target node.
It should be noted that the foregoing only describes how to determine the node networking information of each original node when 3 levels (i.e., the original consensus node, the primary non-consensus node, and the secondary consensus node) are described.
When the hierarchy is greater than 3, the number of the first-level non-consensus nodes can be determined according to the number of the consensus nodes, the number of the second-level non-consensus nodes is determined according to the number of the first-level non-consensus nodes, the number of the third-level non-consensus nodes is determined according to the number of the second-level non-consensus nodes, and the like.
According to the number k of the x-1 level non-common nodes, all the x level non-common nodes can be divided into k x level non-common node clusters, one x level non-common node cluster corresponds to one x-1 level non-common node, an association relationship is established for each x level non-common node cluster and each x-1 level non-common node, and then the address of the x level non-common node cluster having the association relationship with the x-1 level non-common node and the address of the x-2 level non-common node having the association relationship with the x-1 level non-common node are used as the node networking information of the x-1 level non-common node. And continuously circulating until the node networking information of all the original nodes is determined.
For example, please refer to fig. 5, which is a schematic diagram of a determined node networking information according to an embodiment of the present application, where there are 3 common nodes and 17 non-common nodes in an original block chain network, and the 3 common nodes are fully connected. The target node may divide all the non-common nodes into 6 primary nodes (the primary nodes correspond to the primary non-common nodes in the foregoing) and 11 secondary nodes (the secondary nodes correspond to the secondary non-common nodes in the foregoing) according to the number of common nodes. Two of the 6 primary nodes form a group, namely the primary node 1 and the primary node 2 are primary non-common node clusters corresponding to the common node 1, the primary node 3 and the primary node 4 are primary non-common node clusters corresponding to the common node 2, and the primary node 5 and the primary node 6 are primary non-common node clusters corresponding to the common node 3.
The target node can take the address of the first-level node 1, the address of the first-level node 2, the address of the consensus node 2 and the address of the consensus node 3 as the node networking information of the consensus node 1; taking the address of the first-level node 3, the address of the first-level node 4, the address of the consensus node 1 and the address of the consensus node 3 as node networking information of the consensus node 2; and taking the address of the primary node 5, the address of the primary node 6, the address of the consensus node 1 and the address of the consensus node 2 as the node networking information of the consensus node 3.
Because the number of the first-level nodes is 6, the target consensus node can group 11 second-level nodes in pairs, that is, the second-level nodes 1 and 2 are second-level non-consensus node clusters corresponding to the first-level nodes 1, the second-level nodes 3 and 4 are second-level non-consensus node clusters corresponding to the first-level nodes 2, the second-level nodes 5 and 6 are second-level non-consensus node clusters corresponding to the first-level nodes 3, the second-level nodes 7 and 8 are second-level non-consensus node clusters corresponding to the first-level nodes 4, the second-level nodes 9 and 10 are second-level non-consensus node clusters corresponding to the first-level nodes 5, and the second-level nodes 11 are second-level non-consensus node clusters corresponding to the first-level nodes 6.
The target node can take the address of the second-level node 1, the address of the second-level node 2 and the address of the consensus node 1 as the node networking information of the first-level node 1; taking the address of the secondary node 3, the address of the secondary node 4 and the address of the consensus node 1 as node networking information of the primary node 2; taking the address of the secondary node 5, the address of the secondary node 6 and the address of the consensus node 2 as node networking information of the primary node 3; taking the address of the secondary node 7, the address of the secondary node 8 and the address of the consensus node 2 as node networking information of the primary node 4; taking the address of the secondary node 9, the address of the secondary node 10 and the address of the consensus node 3 as node networking information of the primary node 5; the address of the secondary node 11 and the address of the consensus node 3 are used as the node networking information of the primary node 6.
The target node can use the address of the first-level node 1 as the node networking information of the second-level node 1; taking the address of the primary node 1 as the node networking information of the secondary node 2; taking the address of the primary node 2 as the node networking information of the secondary node 3; taking the address of the primary node 2 as the node networking information of the secondary node 4; taking the address of the primary node 3 as the node networking information of the secondary node 5; taking the address of the primary node 3 as the node networking information of the secondary node 6; taking the address of the primary node 4 as the node networking information of the secondary node 7; taking the address of the primary node 4 as the node networking information of the secondary node 8; taking the address of the primary node 5 as the node networking information of the secondary node 9; taking the address of the primary node 5 as the node networking information of the secondary node 10; and taking the address of the primary node 6 as the node networking information of the secondary node 11.
In order to save system resources and reduce redundancy of node networking information, also taking fig. 5 as an example, the target node may set all the node networking information of the consensus node 1, the consensus node 2, and the consensus node 3 to null; the target node can use the address of the consensus node 1 as the node networking information of the first-level node 1; the address of the consensus node 1 is used as the node networking information of the first-level node 2; the address of the consensus node 2 is used as node networking information of the first-level node 3; the address of the consensus node 2 is used as the node networking information of the first-level node 4; the address of the consensus node 3 is used as node networking information of the primary node 5; and taking the address of the consensus node 3 as node networking information of the primary node 6.
The target node can use the address of the first-level node 1 as the node networking information of the second-level node 1; taking the address of the primary node 1 as the node networking information of the secondary node 2; taking the address of the primary node 2 as the node networking information of the secondary node 3; taking the address of the primary node 2 as the node networking information of the secondary node 4; taking the address of the primary node 3 as the node networking information of the secondary node 5; taking the address of the primary node 3 as the node networking information of the secondary node 6; taking the address of the primary node 4 as the node networking information of the secondary node 7; taking the address of the primary node 4 as the node networking information of the secondary node 8; taking the address of the primary node 5 as the node networking information of the secondary node 9; taking the address of the primary node 5 as the node networking information of the secondary node 10; and taking the address of the primary node 6 as the node networking information of the secondary node 11.
Step S203, adding the node networking information of the target node to the block chain.
Specifically, if the target node is the original consensus node with the largest workload certification in the original blockchain network (assuming that the consensus mechanism of the original blockchain network is the workload certification mechanism), the target node may add the node networking information of all the original nodes to the blocky blocks, obtain the hash value of the last block in the current blockchain, and obtaining the mercker roots of the node networking information of all the original nodes, adding the hash value, the mercker roots and the current timestamp to the block header, adding a second block (such as the block 20c in the corresponding embodiment of fig. 2 a-2 d) to which the node networking information block and the block combination are added, adding the new second block to the block chain, and sending the second block to the rest original nodes so as to synchronize the block chains stored by all the original nodes respectively.
Or, if the target node is an original non-common node in the original block chain network, the target node may send node networking information of all the original nodes to the original common node in the original block chain network, and after the original common nodes are common, the original common nodes may generate the second block (the way of generating the second block by the common nodes is the same as the way of generating the second block by the target node, which is not repeated here), and the target node may synchronize the second block from the original common nodes.
Subsequently, the target node may generate a completion notification of the networking information upload transaction.
Step S204, responding to the execution request of the networking affair in the networking intelligent contract, and acquiring the node networking information of the target node from the block chain.
Specifically, the target node acquires a current timestamp every fixed time interval, and if the current timestamp meets the triggering condition of the networking transaction in the networking intelligent contract, the target node can generate an execution request of the networking transaction; or when the target node acquires the notification of completion of the networking information uploading transaction, the target node may generate an execution request of the networking transaction. And the target node acquires the second block from the block chain and reads the node networking information of the target node from the block body of the second block.
Step S205, establishing connection with the direct connection node according to the address of the direct connection node, so as to construct a target block chain network comprising the target node and the direct connection node.
Specifically, each original node (including the target node) may establish a connection with the corresponding direct connection according to the own node networking information, so as to construct a target block chain network including a plurality of original non-consensus nodes and a plurality of original consensus nodes.
Optionally, in order to improve the consensus efficiency of the original consensus node and avoid the original consensus node from performing some operations unrelated to consensus, the original non-consensus node may establish a connection, and the corresponding original consensus node does not need to perform a connection operation.
Please refer to fig. 6, which is a flowchart illustrating a data processing method according to an embodiment of the present application, where an application scenario of the present application is to adjust a connection relationship between nodes on the basis of an original block chain network (i.e., corresponding to scenario one described in the embodiment of fig. 3), the original block chain network includes a plurality of original nodes, the plurality of original nodes may be subdivided into a plurality of original common nodes and a plurality of original non-common nodes, a target node is an original node in the plurality of original nodes, and the plurality of original nodes may be combined into a participating node.
Step S301, responding to an execution request of a networking information uploading transaction in a networking intelligent contract, acquiring the block chain, and acquiring the node parameters of the participating nodes from the block chain.
Specifically, the target node responds to an execution request of the node parameter uploading transaction, obtains the node parameter of each original node, and adds the node parameter of each original node to the block chain. And the target node responds to an execution request of a networking information uploading transaction in the networking intelligent contract and acquires node parameters of the participating nodes from the block chain.
Here, the process of the target node uplink the node parameter of the participating node and acquiring the node parameter of the participating node from the link is substantially the same as the process described in step S201 in the corresponding embodiment of fig. 3, except that the node parameter of the participating node in step S201 is the node parameter of the original non-consensus node, and the node parameter of the participating node in this step is the node parameter of the original non-consensus node + the node parameter of the original consensus node.
Step S302, determining node networking information of the target node according to the node parameters of the participating nodes; the participating nodes include a plurality of origin nodes.
Specifically, the node networking information of each original node is determined, that is, N original nodes with better performance are selected from a plurality of original nodes according to the node parameters to serve as common-known nodes of the target block chain network, the remaining original nodes are divided into N non-common-known node clusters, and an association relationship exists between one common-known node and one non-common-known node cluster. Therefore, the performance of the consensus node in the target block chain network can be better ensured, and the consensus efficiency is improved. In other words, during the adjustment of the original blockchain network, the common nodes and the non-common nodes may change, and the connection relationship between the common nodes and the non-common nodes may also change. For example, if node a is a consensus node in the original blockchain network, node a may or may not be a consensus node in the target blockchain network.
The following is a detailed description of how to determine the node networking information of each original node:
the participating nodes include a plurality of original nodes, each original node being a node in an original blockchain network. And the target node determines the quality score of each original node according to the node parameter of each original node, and the corresponding quality score is higher as the node performance is better. And the target node sorts all the original nodes according to the quality scores of all the original nodes and a descending rule, wherein the quality scores are higher in the front and lower in the back.
After sequencing, taking the first X original nodes as common-known nodes (called first common-known nodes), dividing the remaining original nodes into X non-common-known node clusters (called first non-common-known node clusters), wherein each first non-common-known node cluster comprises zero, one or more first non-common-known nodes, the quantity of difference of the number of the nodes contained in each first non-common-known node cluster is less than the quantity of difference threshold, and the quantity of the first non-common-known node clusters is the same as that of the first common-known nodes. The target node injects a consensus module for each first consensus node and deletes the consensus module in each first non-consensus node (of course, the deletion of the consensus module is only needed if a consensus module exists in the first non-consensus nodes). The consensus module is mainly used for performing consensus on transaction data in the blockchain network to generate a new block and an uplink. In other words, the first common node is a common node in the target blockchain network that is subsequently constructed, and the first non-common node in the first non-common node cluster is a non-common node in the target blockchain network that is subsequently constructed.
And the target node establishes an association relation between each first non-common node cluster and each first common node. When the target node is any one of the first common nodes, acquiring an address of a first non-common node in a first non-common node cluster which has an incidence relation with the target node as a third address; and acquiring the addresses of the rest of the first common nodes except the target node in the plurality of first common nodes as a fourth address, wherein the target node combines the third address and the fourth address into node networking information of the target node. Namely, the consensus nodes in the target block chain network constructed subsequently are all connected, so as to ensure the consensus efficiency.
The target node may determine the node networking information of the other first common node in the same manner, so that the target node determines the node networking information of each first common node.
And when the target node is any one of the first non-consensus nodes in the plurality of first non-consensus node clusters, taking the address of the first consensus node which has an association relation with the target node as the node networking information of the target node.
The target node can determine the node networking information of the rest first non-consensus nodes in the same way.
Thus, the target node determines the node networking information of each original node.
As can be seen from the above, the node networking information of each original node is bidirectional, and although complete, there is a certain redundancy. In order to save resources, the node networking information of each original node can be adjusted to be unidirectional. The specific process is as follows: when the target node is any one of the first common nodes, the target node takes the addresses of the rest of the first common nodes except the target node in the first common nodes as the node networking information of the target node; and when the target node is any one of the first non-consensus nodes in the plurality of first non-consensus node clusters, taking the address of the first consensus node which has an association relation with the target node as the node networking information of the target node.
It should be noted that the foregoing only describes how to determine the node networking information of each original node when 2 levels are described (i.e., the first common node and the first non-common node cluster).
When the hierarchy is greater than 3, according to the number k of x-1 level nodes, all x level nodes can be divided into k x level node clusters, one x level node cluster corresponds to one x-1 level node, an association relation is established for each x level node cluster and each x-1 level node, and then the address of the x level node cluster having the association relation with the x-1 level node and the address of the x-2 level node having the association relation with the x-1 level node are used as node networking information of the x-1 level node.
And continuously circulating until the node networking information of all the original nodes is determined.
Comparing the mode of determining the node networking information in the embodiment corresponding to fig. 4 (referred to as a first mode) with the mode of determining the node networking information in the embodiment (referred to as a second mode), it can be found that, in the first mode, the common node and the non-common node in the original blockchain network are the same as the common node and the non-common node in the target blockchain network, and are the node networking information determined according to the node parameters of the non-common node in the original blockchain network; in the second method, the consensus node and the non-consensus node in the original blockchain network may be the same as or different from the consensus node and the non-consensus node in the target blockchain network, and the node networking information is determined jointly according to the node parameter of the non-consensus node in the original blockchain network + the node parameter of the consensus node in the original blockchain network.
Step S303, adding the node networking information of the target node to the block chain.
Step S304, in response to an execution request of a networking transaction in the networking intelligent contract, acquiring node networking information of the target node from the block chain.
The specific processes of step S303 to step S304 may refer to step S203 to step S204 in the corresponding embodiment of fig. 4.
Step S305, establishing connection with the direct connection node according to the address of the direct connection node so as to construct a target block chain network comprising the target node and the direct connection node.
Specifically, each original node (including the target node) may establish a connection with the corresponding direct connection according to the own node networking information, so as to construct a target block chain network including a plurality of original non-consensus nodes and a plurality of original consensus nodes.
Optionally, in order to improve the consensus efficiency of the original consensus node and reduce the number of operations performed by the original consensus node that are unrelated to consensus, the operation object performed by the original consensus node to establish the connection is only the original consensus node, and the operation performed on establishing the connection between the original consensus node and the original non-consensus node may be performed by the original non-consensus node.
In this embodiment, a blockchain is used to store node networking information, and depending on the safety and integrity characteristics of the blockchain, a target node can acquire accurate and complete node networking information from the blockchain, and then a connection relationship is established between the node networking information and a corresponding direct connection node, so that a networking failure caused by the fact that a node cannot acquire the node networking information due to network reasons is avoided, and the stability of a blockchain network is ensured; furthermore, based on a load balancing principle, the connection loads of a plurality of consensus nodes in the target block chain network are ensured to be the same or similar, and the consensus efficiency of the consensus nodes can be improved due to reasonable hierarchical architecture; meanwhile, the non-consensus node directly connected with the consensus node is a better non-consensus node in all the non-consensus nodes, so that the consensus efficiency of the consensus node can be further ensured, and the performance of the block chain can be ensured.
Please refer to fig. 7, which is a flowchart illustrating a data processing method according to an embodiment of the present application, where an application scenario of the present application is to newly create a block chain network (that is, corresponds to scenario two described above), where the original block chain network includes a plurality of original nodes, all of the original nodes may be combined into a participating node, and a target node is one of the original nodes.
The data processing method comprises the following steps:
step S401, obtaining the node parameter of each original node from the node management database, and determining the quality score of each original node according to the node parameter of each original node.
Specifically, the participating nodes include a plurality of original nodes, the target node obtains node parameters of each original node from a node management database (or cloud), and the node management database is used for storing data related in the networking process.
And the target node determines the quality score of each original node according to the node parameter of each original node, and the corresponding quality score is higher as the node performance is better. And the target node sorts all the original nodes according to the quality scores of all the original nodes and a descending rule, wherein the quality scores are higher in the front and lower in the back.
Step S402, dividing the plurality of original nodes into a plurality of second common node clusters and a plurality of second non-common node clusters according to the quality scores of the original nodes; the number of the second non-consensus node clusters is the same as that of the second consensus nodes; the target node is any one of the plurality of second consensus nodes.
Specifically, after the ordering, the first X original nodes are used as common nodes (called second common nodes), the remaining original nodes are divided into X non-common node clusters (called second non-common node clusters), each second non-common node cluster includes zero, one or more second non-common nodes, the number of difference of the number of nodes included in each second non-common node cluster is smaller than the difference threshold, and the number of the second non-common node clusters is the same as the number of the second common nodes. And injecting a consensus module for each second consensus node, wherein the consensus module is mainly used for performing consensus on transaction data in the blockchain network to generate a new block and a uplink. In other words, the second common node is a common node in the target blockchain network that is subsequently built, and the second non-common node in the second non-common node cluster is a non-common node in the target blockchain network that is subsequently built.
And the target node establishes an incidence relation between each second non-consensus node cluster and each second consensus node.
Step S403, establishing an association relationship between each second non-common node cluster and each second common node, obtaining a fifth address of the second non-common node cluster having an association relationship with the target node, and obtaining sixth addresses of the remaining second common nodes except the target node in the plurality of second common nodes.
Specifically, when the target node is any one of the second common nodes, the address of the second non-common node in the second non-common node cluster having an association relationship with the target node is obtained as a fifth address; and acquiring the addresses of the rest of the second consensus nodes except the target node in the plurality of second consensus nodes as sixth addresses.
Step S404, combining the fifth address and the sixth address into node networking information of the target node.
Specifically, the target node combines the fifth address and the sixth address into node networking information of the target node. Namely, the consensus nodes in the target block chain network constructed subsequently are all connected, so that the consensus efficiency can be ensured. The target node may determine the node networking information of the other second common nodes in the same manner, and thus the target node determines the node networking information of each second common node.
And when the target node is any one of the second non-consensus nodes in the plurality of second non-consensus node clusters, taking the address of the second consensus node which has an association relation with the target node as the node networking information of the target node.
The target node may determine the node networking information of the remaining second non-consensus nodes in the same manner.
The node networking information at this time belongs to the bidirectional networking information.
Thus, the target node determines the node networking information of each original node.
It should be noted that the foregoing only describes how to determine the node networking information of each original node when 2 levels are provided (i.e., the second common node and the second non-common node cluster).
When the hierarchy is greater than 3, according to the number k of x-1 level nodes, all x level nodes can be divided into k x level node clusters, one x level node cluster corresponds to one x-1 level node, an association relation is established for each x level node cluster and each x-1 level node, and then the address of the x level node cluster having the association relation with the x-1 level node and the address of the x-2 level node having the association relation with the x-1 level node are used as node networking information of the x-1 level node.
And continuously circulating until the node networking information of all the original nodes is determined.
Subsequently, the target node may store the node networking information of each original node in the node management database.
Step S405, establishing connection with the direct connection node according to the address of the direct connection node, so as to construct a target block chain network comprising the target node and the direct connection node.
The specific process of step S405 may refer to step S205 in the embodiment corresponding to fig. 4.
The node networking information of each node is determined based on a load balancing principle, so that the connection loads of a plurality of consensus nodes are the same or similar, and the consensus efficiency of the consensus nodes is improved; meanwhile, the non-consensus node directly connected with the consensus node is a better non-consensus node in all the non-consensus nodes, so that the consensus efficiency of the consensus node can be further ensured, and the performance of the block chain can be ensured.
Further, please refer to fig. 8, which is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 8, the data processing apparatus 1 may be applied to the target node in the embodiments corresponding to fig. 3 to fig. 7, specifically, the data processing apparatus 1 may be a computer program (including program code) running in a computer device, for example, the data processing apparatus 1 is an application software; the data processing device 1 may be configured to perform corresponding steps in the method provided by the embodiment of the present application.
The data processing apparatus 1 may include: an acquisition module 11 and a connection establishment module 12.
An obtaining module 11, configured to obtain node networking information of a target node; the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of direct-connected nodes;
and the connection establishing module 12 is configured to establish a connection with the direct connection node according to the address of the direct connection node, so as to construct a target block chain network including the target node and the direct connection node.
The specific functional implementation manners of the obtaining module 11 and the connection establishing module 12 may refer to steps S101 to S102 in the embodiment corresponding to fig. 3, which are not described herein again.
Referring to fig. 8, the obtaining module 11 may include: a first response unit 111, a first acquisition unit 112, a fourth acquisition unit 113, and a relationship establishment unit 114.
The node networking information of the target node is stored in a block chain; the target node is a node in an original blockchain network corresponding to the blockchain;
a first response unit 111, configured to respond to an execution request of a networking transaction in a networking intelligent contract, and obtain the block chain;
a first obtaining unit 112, configured to obtain node networking information of the target node from the block chain.
The participating nodes comprise a plurality of original nodes to which the target node belongs;
a fourth obtaining unit 113, configured to obtain a node parameter of each original node from a node management database, determine a quality score of each original node according to the node parameter of each original node, and divide the plurality of original nodes into a plurality of second common nodes and a plurality of second non-common node clusters according to the quality score of each original node; the number of the second non-consensus node clusters is the same as that of the second consensus nodes; the target node is any one of the plurality of second consensus nodes;
a relationship establishing unit 114, configured to establish an association relationship between each second non-common node cluster and each second common node, obtain a fifth address of the second non-common node cluster having an association relationship with the target node, obtain sixth addresses of other second common nodes in the plurality of second common nodes except the target node, and combine the fifth address and the sixth addresses into node networking information of the target node.
The specific functional implementation manners of the first responding unit 111 and the first obtaining unit 112 may refer to step S204 in the embodiment corresponding to fig. 4; the detailed functional implementation manners of the fourth obtaining unit 113 and the relationship establishing unit 114 can refer to steps S401 to S404 in the corresponding embodiment of fig. 7.
When the first response unit 111 and the first obtaining unit 112 obtain the node networking information of the target node, the fourth obtaining unit 113 and the relationship establishing unit 114 do not perform the corresponding steps; when the node networking information of the target node is acquired by the fourth acquiring unit 113 and the relationship establishing unit 114, the first responding unit 111 and the first acquiring unit 112 do not perform the corresponding steps any more.
Referring back to fig. 8, the node parameters of the participating nodes are stored in the block chain; the target node is a node in an original blockchain network corresponding to the blockchain;
the data processing apparatus 1 may include: the obtaining module 11 and the connection establishing module 12 may further include: a first response module 13, a determination module 14, a second response module 15, and a generation module 16.
A first response module 13, configured to respond to an execution request of a networking information upload transaction in a networking intelligent contract, obtain the block chain, and obtain node parameters of the participating node from the block chain;
a determining module 14, configured to determine node networking information of the target node according to the node parameter of the participating node;
the first response module 13 is further configured to add node networking information of the target node to the block chain.
And a second response module 15, configured to respond to an execution request of a node parameter upload transaction in the networking intelligent contract, obtain a node parameter of the participating node, and add the node parameter of the participating node to the block chain.
The networking intelligence is contracted to the block chain;
a generating module 16, configured to obtain the networking intelligent contract from the block chain, and obtain a target timestamp;
the generating module 16 is further configured to generate an execution request of the node parameter uploading transaction when the target timestamp meets a trigger condition of the node parameter uploading transaction, or generate an execution request of the node parameter uploading transaction when a node joining request is received.
For specific functional implementation manners of the first responding module 13, the determining module 14, the second responding module 15 and the generating module 16, reference may be made to steps S201 to S205 in the embodiment corresponding to fig. 4.
Referring to fig. 8, the participating nodes include a plurality of original non-consensus nodes, which are all non-consensus nodes in the original blockchain network; the original blockchain network further comprises a plurality of original consensus nodes;
the determination module 14 may include: a second acquisition unit 141 and a determination unit 142.
A second obtaining unit 141, configured to determine, according to a node parameter of each original non-consensus node, a quality score of each original non-consensus node, and determine the number of consensus nodes of the multiple original consensus nodes;
a determining unit 142, configured to determine node networking information of the target node according to the number of the common nodes and the quality score of each original non-common node.
The specific functional implementation manners of the second obtaining unit 141 and the determining unit 142 may refer to step S203 in the embodiment corresponding to fig. 4.
Referring to fig. 8, the determining unit 142 may include: a selection sub-unit 1421, a setting sub-unit 1422, a determination sub-unit 1423, a division sub-unit 1424, and a combination sub-unit 1425.
The target node is any one of the plurality of original consensus nodes;
a selecting subunit 1421, configured to select, according to the quality score of each original non-consensus node and the number of consensus nodes, a plurality of primary non-consensus node clusters from the plurality of original non-consensus nodes; the number of the first-level non-consensus node clusters is equal to the number of the consensus nodes, and the difference of the number of the nodes among the first-level non-consensus node clusters is smaller than the difference threshold;
a setting subunit 1422, configured to establish an association relationship between each primary non-consensus node cluster and each original consensus node, acquire a first address of the primary non-consensus node cluster having an association relationship with the target node, acquire a second address of the original consensus node directly connected to the target node in the original block chain network, and combine the first address and the second address into node networking information of the target node.
A determining subunit 1423, configured to use the target node as a consensus node of the target block chain network, if the direct connection node is a consensus node in the original block chain network, use the direct connection node as a consensus node in the target block chain network, and if the direct connection node is a non-consensus node in the original block chain network, use the direct connection node as a non-consensus node in the target block chain network.
The target node is any one of the plurality of original non-consensus nodes;
a dividing unit 1424, configured to determine a primary node number threshold according to the number of the common knowledge nodes, and divide the multiple original non-common knowledge nodes into multiple primary non-common knowledge node clusters and multiple secondary non-common knowledge node clusters according to the quality score of each original non-common knowledge node and the primary node number threshold; the number of the first-level non-consensus node clusters is equal to the number of the consensus nodes; the number of the primary non-common nodes contained in all the primary non-common node clusters is equal to or less than the threshold value of the number of the primary nodes; the number of the secondary non-consensus node clusters is equal to the number of the primary non-consensus nodes; the target node belongs to the multiple primary non-consensus node clusters;
a combining subunit 1425, configured to establish an association relationship between each primary non-common node cluster and each original common node, establish an association relationship between each secondary non-common node cluster and each primary non-common node, use an address of the secondary non-common node cluster having an association relationship with the target node as the lower networking information of the target node, use an address of the original common node having an association relationship with the target node as the upper networking information of the target node, and combine the upper networking information and the lower networking information into the node networking information of the target node.
For specific functional implementation manners of the selecting sub-unit 1421, the setting sub-unit 1422, the determining sub-unit 1423, the dividing sub-unit 1424, and the combining sub-unit 1425, reference may be made to step S202 in the embodiment corresponding to fig. 4.
Referring to fig. 8, the participating nodes include a plurality of original nodes, the original nodes are all nodes in the original block chain network, and the target node belongs to the original nodes;
the determining module 14 may include: a dividing unit 143 and a third acquiring unit 144.
The dividing unit 143 is configured to determine a quality score of each original node according to the node parameter of each original node, and divide the plurality of original nodes into a plurality of first common nodes and a plurality of first non-common node clusters according to the quality score of each original node; the number of the first non-common node clusters is the same as that of the first common nodes; the target node is any one of the plurality of first common nodes;
a third obtaining unit 144, configured to establish an association relationship between each first non-common node cluster and each first common node, obtain a third address of the first non-common node cluster having an association relationship with the target node, obtain fourth addresses of other first common nodes except the target node in the plurality of first common nodes, and combine the third address and the fourth addresses into node networking information of the target node.
The specific functional implementation manners of the dividing unit 143 and the third obtaining unit 144 can refer to step S202 in the embodiment corresponding to fig. 7.
Further, please refer to fig. 9, which is a schematic structural diagram of a computer device according to an embodiment of the present application. The target node in the embodiments corresponding to fig. 3-7 described above may be a computer device 1000. As shown in fig. 9, the computer apparatus 1000 may include: a user interface 1002, a processor 1004, an encoder 1006, and a memory 1008. Signal receiver 1016 is used to receive or transmit data via cellular interface 1010, WIFI interface 1012. The encoder 1006 encodes the received data into a computer-processed data format. The memory 1008 has stored therein a computer program by which the processor 1004 is arranged to perform the steps of any of the method embodiments described above. The memory 1008 may include volatile memory (e.g., dynamic random access memory DRAM) and may also include non-volatile memory (e.g., one time programmable read only memory OTPROM). In some instances, the memory 1008 can further include memory located remotely from the processor 1004, which can be connected to the computer device 1000 via a network. The user interface 1002 may include: a keyboard 1018, and a display 1020.
In the computer device 1000 shown in fig. 9, the processor 1004 may be configured to call the memory 1008 to store a computer program to implement:
acquiring node networking information of a target node; the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of direct-connected nodes;
and establishing connection with the direct connection node according to the address of the direct connection node so as to construct a target block chain network comprising the target node and the direct connection node.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the data processing method in the embodiment corresponding to fig. 3 to fig. 7, and may also perform the description of the data processing apparatus 1 in the embodiment corresponding to fig. 7, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer storage medium, and the computer storage medium stores the aforementioned computer program executed by the data processing apparatus 1, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in the embodiment corresponding to fig. 3 to 7 can be performed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium referred to in the present application, reference is made to the description of the embodiments of the method of the present application. By way of example, program instructions may be deployed to be executed on one computer device or on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network, and the multiple computer devices distributed across the multiple sites and interconnected by the communication network may be combined into a blockchain network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (13)

1. A data processing method applied to a target node, the method comprising:
acquiring node networking information of a target node, comprising the following steps:
acquiring node parameters of each original node from a node management database;
determining the quality score of each original node according to the node parameter of each original node, and dividing a plurality of original nodes into a plurality of second consensus nodes and a plurality of second non-consensus node clusters according to the quality score of each original node; the number of the second non-consensus node clusters is the same as that of the second consensus nodes; the target node is any one of the plurality of second consensus nodes;
establishing an incidence relation for each second non-consensus node cluster and each second consensus node, acquiring a fifth address of the second non-consensus node cluster having the incidence relation with the target node, and acquiring sixth addresses of other second consensus nodes except the target node in the plurality of second consensus nodes;
combining the fifth address and the sixth address into node networking information of the target node; the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of direct-connected nodes; the participating nodes include the plurality of original nodes to which the target node belongs;
and establishing connection with the direct connection node according to the address of the direct connection node so as to construct a target block chain network comprising the target node and the direct connection node.
2. The method of claim 1, wherein the node networking information of the target node is stored in a block chain; the target node is a node in an original blockchain network corresponding to the blockchain;
the acquiring of the node networking information of the target node includes:
responding to an execution request of a networking transaction in a networking intelligent contract, and acquiring the block chain;
and acquiring the node networking information of the target node from the block chain.
3. The method of claim 1, wherein the node parameters of the participating nodes are stored in a blockchain; the target node is a node in an original blockchain network corresponding to the blockchain;
the method further comprises the following steps:
responding to an execution request of a networking information uploading transaction in a networking intelligent contract, acquiring the block chain, and acquiring node parameters of the participating nodes from the block chain;
determining node networking information of the target node according to the node parameters of the participating nodes;
adding the node networking information of the target node to the block chain.
4. The method of claim 3, further comprising:
responding to an execution request of a node parameter uploading transaction in the networking intelligent contract, and acquiring the node parameter of the participating node;
adding node parameters of the participating nodes to the blockchain.
5. The method of claim 3, wherein the participating nodes comprise a plurality of original non-consensus nodes that are each non-consensus nodes in the original blockchain network; the original blockchain network further comprises a plurality of original consensus nodes;
the determining node networking information of the target node according to the node parameters of the participating nodes comprises:
determining the quality score of each original non-consensus node according to the node parameter of each original non-consensus node, and determining the number of consensus nodes of the plurality of original consensus nodes;
and determining node networking information of the target node according to the number of the consensus nodes and the quality score of each original non-consensus node.
6. The method of claim 5, wherein the target node is any one of the plurality of original consensus nodes;
the determining node networking information of the target node according to the number of the common nodes and the quality score of each original non-common node comprises the following steps:
selecting a plurality of primary non-consensus node clusters from the plurality of original non-consensus nodes according to the quality score of each original non-consensus node and the number of the consensus nodes; the number of the first-level non-consensus node clusters is equal to the number of the consensus nodes, and the difference of the number of the nodes among the first-level non-consensus node clusters is smaller than the difference threshold;
establishing an incidence relation for each primary non-consensus node cluster and each original consensus node, acquiring a first address of the primary non-consensus node cluster having the incidence relation with the target node, and acquiring a second address of the original consensus node directly connected with the target node in the original block chain network;
and combining the first address and the second address into node networking information of the target node.
7. The method of claim 6, further comprising:
taking the target node as a consensus node of the target block chain network;
if the direct connection node is a consensus node in the original block chain network, taking the direct connection node as the consensus node in the target block chain network;
and if the direct connection node is a non-consensus node in the original block chain network, taking the direct connection node as the non-consensus node in the target block chain network.
8. The method of claim 5, wherein the target node is any one of the plurality of original non-consensus nodes;
the determining node networking information of the target node according to the number of the common nodes and the quality score of each original non-common node comprises the following steps:
determining a primary node quantity threshold value according to the quantity of the consensus nodes;
dividing the plurality of original non-consensus nodes into a plurality of primary non-consensus node clusters and a plurality of secondary non-consensus node clusters according to the quality score of each original non-consensus node and the primary node quantity threshold; the number of the first-level non-consensus node clusters is equal to the number of the consensus nodes; the number of the primary non-common nodes contained in all the primary non-common node clusters is equal to or less than the threshold value of the number of the primary nodes; the number of the secondary non-consensus node clusters is equal to the number of the primary non-consensus nodes; the target node belongs to the multiple primary non-consensus node clusters;
establishing an incidence relation for each primary non-consensus node cluster and each original consensus node, and establishing an incidence relation for each secondary non-consensus node cluster and each primary non-consensus node;
taking the address of a secondary non-consensus node cluster having an incidence relation with the target node as the lower networking information of the target node, and taking the address of an original consensus node having an incidence relation with the target node as the upper networking information of the target node;
and combining the upper networking information and the lower networking information into node networking information of the target node.
9. The method of claim 3, wherein the participating nodes comprise a plurality of original nodes, wherein the plurality of original nodes are each a node in the original blockchain network, and wherein the target node belongs to the plurality of original nodes;
the determining node networking information of the target node according to the node parameters of the participating nodes comprises:
determining the quality score of each original node according to the node parameter of each original node, and dividing the original nodes into a plurality of first common nodes and a plurality of first non-common node clusters according to the quality score of each original node; the number of the first non-common node clusters is the same as that of the first common nodes; the target node is any one of the plurality of first common nodes;
establishing an association relationship between each first non-common node cluster and each first common node, acquiring a third address of the first non-common node cluster having the association relationship with the target node, and acquiring fourth addresses of the rest first common nodes except the target node in the plurality of first common nodes;
and combining the third address and the fourth address into node networking information of the target node.
10. The method of claim 4, wherein the networking intelligence is tied to the blockchain;
the method further comprises the following steps:
acquiring the networking intelligent contract from the block chain;
obtaining a target timestamp, and generating an execution request of the node parameter uploading transaction when the target timestamp meets the trigger condition of the node parameter uploading transaction, or
And when a node joining request is received, generating an execution request of the node parameter uploading transaction.
11. A data processing apparatus, wherein the data processing apparatus is applied to a target node, the apparatus comprising:
the acquisition module is used for acquiring the node networking information of the target node, and comprises:
acquiring node parameters of each original node from a node management database;
determining the quality score of each original node according to the node parameter of each original node, and dividing a plurality of original nodes into a plurality of second consensus nodes and a plurality of second non-consensus node clusters according to the quality score of each original node; the number of the second non-consensus node clusters is the same as that of the second consensus nodes; the target node is any one of the plurality of second consensus nodes;
establishing an incidence relation for each second non-consensus node cluster and each second consensus node, acquiring a fifth address of the second non-consensus node cluster having the incidence relation with the target node, and acquiring sixth addresses of other second consensus nodes except the target node in the plurality of second consensus nodes;
combining the fifth address and the sixth address into node networking information of the target node; the node networking information of the target node is determined according to node parameters of participating nodes participating in networking, and the node networking information of the target node comprises addresses of direct-connected nodes; the participating nodes include the plurality of original nodes to which the target node belongs;
and the connection establishing module is used for establishing connection with the direct connection node according to the address of the direct connection node so as to establish a target block chain network comprising the target node and the direct connection node.
12. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1-10.
13. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-10.
CN202010271771.XA 2020-04-08 2020-04-08 Data processing method, data processing device, computer equipment and storage medium Active CN111491020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010271771.XA CN111491020B (en) 2020-04-08 2020-04-08 Data processing method, data processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010271771.XA CN111491020B (en) 2020-04-08 2020-04-08 Data processing method, data processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111491020A CN111491020A (en) 2020-08-04
CN111491020B true CN111491020B (en) 2021-09-28

Family

ID=71810901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010271771.XA Active CN111491020B (en) 2020-04-08 2020-04-08 Data processing method, data processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111491020B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507528B (en) * 2021-07-23 2022-09-23 联想(北京)有限公司 Data processing method and electronic equipment
CN115834274B (en) * 2023-02-14 2023-04-18 广东奥飞数据科技股份有限公司 SD-WAN (secure digital-wide area network) rapid networking method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753026A (en) * 2019-02-27 2020-02-04 北京嘀嘀无限科技发展有限公司 Block chain-based fragmentation method and device
CN110933197A (en) * 2019-11-27 2020-03-27 太仓市同维电子有限公司 Distributed proxy network

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107994991B (en) * 2017-10-31 2021-06-11 深圳市轱辘车联数据技术有限公司 Data processing method, data processing server and storage medium
CN108776616B (en) * 2018-06-06 2021-06-29 北京八分量信息科技有限公司 Method for determining credible state of block chain node, block chain link point and system
CN108810157A (en) * 2018-06-20 2018-11-13 泰链(厦门)科技有限公司 The connection method of block chain network, medium, apparatus and system
US11032292B2 (en) * 2018-09-04 2021-06-08 Allen Gluck Systems and methods for hybrid blockchain control
WO2020055413A1 (en) * 2018-09-13 2020-03-19 Hitachi, Ltd. Blockchain for audit
CN109639848A (en) * 2018-12-20 2019-04-16 全链通有限公司 Method, equipment, system and the storage medium of domain name are issued in block chain
CN109951481B (en) * 2019-03-19 2021-01-15 全链通有限公司 Information processing method and system based on block chain network adjacent nodes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753026A (en) * 2019-02-27 2020-02-04 北京嘀嘀无限科技发展有限公司 Block chain-based fragmentation method and device
CN110933197A (en) * 2019-11-27 2020-03-27 太仓市同维电子有限公司 Distributed proxy network

Also Published As

Publication number Publication date
CN111491020A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN110866825B (en) Public link-based block chain information storage method and system
CN107079059B (en) Block chain storage method and device and node equipment
CN111935315A (en) Block synchronization method and device
CN111159289B (en) Method and device for synchronizing blocks
CN111491020B (en) Data processing method, data processing device, computer equipment and storage medium
CN112200681B (en) Service processing method, information processing method and node equipment of block chain network
CN111163148B (en) Synchronization method and related equipment for consensus state of block chain system
CN110113406B (en) Distributed computing service cluster system
CN112417001B (en) Data processing method based on block chain network and related equipment
CN101588287B (en) Method, device and system for scheduling and downloading peer-to-peer network data
WO2021190179A1 (en) Synchronous processing method and related apparatus
CN109857810A (en) Data synchronization unit and method based on block chain
CN110941676A (en) Configuration method, device, equipment and medium
CN110989934B (en) Block chain link point data storage method, block chain system and block chain node
CN111798234A (en) Lightweight block chain system and construction method
CN112003943A (en) Voice data synchronization method and device
CN102546230B (en) Overlay-network topological optimization method in P2P (Peer-To-Peer) streaming media system
CN113452747A (en) Extensible and safe consensus method, system, storage medium and intelligent terminal
CN115328579B (en) Scheduling method and system for neural network training and computer readable storage medium
CN103281395B (en) A kind of data slice based on client terminal quantity divides equally selective system and method
CN110888892A (en) Block synchronization method, device and storage medium
CN117499017B (en) Block chain network transmission method, system, storage medium and terminal equipment
CN111342927B (en) Time synchronization processing method and device
CN117376352B (en) Block chain-based Internet of things system
CN102201965A (en) Data transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40027380

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant