CN115296824B - Hierarchical transmission method of block chain network based on multi-scale node management and storage medium - Google Patents
Hierarchical transmission method of block chain network based on multi-scale node management and storage medium Download PDFInfo
- Publication number
- CN115296824B CN115296824B CN202211219789.0A CN202211219789A CN115296824B CN 115296824 B CN115296824 B CN 115296824B CN 202211219789 A CN202211219789 A CN 202211219789A CN 115296824 B CN115296824 B CN 115296824B
- Authority
- CN
- China
- Prior art keywords
- node
- scale
- data
- interval
- nodes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 125
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 9
- 238000007726 management method Methods 0.000 description 19
- 238000004458 analytical method Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic 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/3236—Cryptographic 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
- H04L9/3239—Cryptographic 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 involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/20—Network architectures or network communication protocols for network security for managing network security; network security policies in general
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及区块链技术领域,具体涉及一种基于多尺度节点管理的区块链网络分级传输方法及存储介质。The invention relates to the technical field of block chains, in particular to a block chain network hierarchical transmission method and storage medium based on multi-scale node management.
背景技术Background technique
区块链技术因其去中心化、防篡改、可追溯等特性,已被应用于一些行业领域的信息化系统中,与物联网、大数据、人工智能等信息技术的融合,能够解决社会信用、成本、效率等方面的问题,保障数据真实可信,提升信息化系统应用价值,在各行业领域有着巨大的应用前景。然而区块链技术的发展与应用正处于挑战与机遇并存的关键阶段,在节点存储区块数据压力、数据在区块链网络中传输时长、共识效率等方面都面临着一些挑战;在区块链系统中,所有节点组建为一个P2P网络,节点间的网络传输效率、传输的可靠性、安全性、网络利用率等因素直接影响着区块链运行的稳定性、性能等。随着应用需求不断提升,交易数量不断增多,区块链P2P网络中节点之间需要更加快速、高效的网络传输方式。Due to its decentralization, anti-tampering, traceability and other characteristics, blockchain technology has been applied to information systems in some industries, and its integration with information technologies such as the Internet of Things, big data, and artificial intelligence can solve social credit problems. , cost, efficiency and other issues, to ensure the authenticity and credibility of the data, and to enhance the application value of the information system, it has a huge application prospect in various industries. However, the development and application of blockchain technology is at a critical stage where challenges and opportunities coexist. There are some challenges in terms of node storage block data pressure, data transmission time in the blockchain network, consensus efficiency, etc.; In the chain system, all nodes are formed into a P2P network. Factors such as network transmission efficiency, transmission reliability, security, and network utilization between nodes directly affect the stability and performance of the blockchain operation. With the continuous improvement of application requirements and the increasing number of transactions, a faster and more efficient network transmission method is required between nodes in the blockchain P2P network.
在比特币区块链中,节点通过三种方式向其邻节点传输新区块:BIP130模式仅广播完整的区块头数据;BIP152高带宽模式使用紧凑区块协议立即传输完整区块数据;INV机制只广播区块哈希,节点首先向其邻节点发送INV消息,然后只向响应GETDATA消息的邻节点发送完整数据,这提高了完整数据的传输效率,但增加了网络传输的次数;在以太坊中,当矿工构造出一个新区块时,矿工会向其邻节点发送两种不同类型的消息:NewBlockMsg(包含完整的区块数据)和NewBlockHashesMsg(只包含区块哈希),与比特币区块链类似,以太坊第二种消息类型的网络传输次数也会增加。In the Bitcoin blockchain, nodes transmit new blocks to their neighbors in three ways: BIP130 mode only broadcasts complete block header data; BIP152 high-bandwidth mode uses compact block protocol to transmit complete block data immediately; INV mechanism only Broadcast block hash, the node first sends the INV message to its neighbors, and then only sends the complete data to the neighbors responding to the GETDATA message, which improves the transmission efficiency of complete data, but increases the number of network transmissions; in Ethereum , when a miner constructs a new block, the miner will send two different types of messages to its neighbors: NewBlockMsg (contains complete block data) and NewBlockHashesMsg (contains only block hashes), similar to the Bitcoin blockchain Similarly, the number of network transfers for Ethereum's second message type will increase.
当前关于区块链技术存在以下问题:Currently there are the following issues regarding blockchain technology:
1)、区块链网络传输效率不高。数据从一个节点发送,传输到整个P2P网络中的每个节点,需要经过多次转发,增加了数据传输到整个网络的时长,数据传输存在一定的网络时延,网络传输效率不高。1) The transmission efficiency of blockchain network is not high. Data is sent from one node to each node in the entire P2P network. It needs to be forwarded multiple times, which increases the time for data transmission to the entire network. There is a certain network delay in data transmission, and the network transmission efficiency is not high.
2)、区块链网络利用率低下。P2P网络中的每个节点接收到数据之后,将数据转发给其它节点,每个节点可能会多次接收到不同节点发送的相同数据,冗余的数据传输造成网络资源的浪费,网络利用率低下。2) The utilization rate of the blockchain network is low. After each node in the P2P network receives the data, it forwards the data to other nodes. Each node may receive the same data sent by different nodes multiple times. Redundant data transmission causes waste of network resources and low network utilization. .
3)、区块链网络性能成为影响区块链吞吐量的重要因素之一。区块链系统的P2P网络中,一般节点都比较多,且分布在全球各个地方;另外,各节点所处网络状态不可控,无法要求节点的网络带宽,甚至无法要求它们处于稳定的网络中,节点可随时离线,也有新节点随时加入。因此,新节点加入的同步数据速率低下,获取自己的邻节点也会耗费较多时间。3) The performance of the blockchain network has become one of the important factors affecting the throughput of the blockchain. In the P2P network of the blockchain system, there are generally many nodes, and they are distributed in various parts of the world; in addition, the network status of each node is uncontrollable, and it is impossible to require the network bandwidth of the nodes, or even require them to be in a stable network. Nodes can go offline at any time, and new nodes can join at any time. Therefore, the synchronous data rate of the new node joining is low, and it will take a lot of time to obtain its own neighbor nodes.
发明内容Contents of the invention
本发明提出的一种基于多尺度节点管理的区块链网络分级传输方法及存储介质,可至少解决上述技术问题之一。A block chain network hierarchical transmission method and storage medium based on multi-scale node management proposed by the present invention can solve at least one of the above technical problems.
为实现上述目的,本发明采用了以下技术方案:To achieve the above object, the present invention adopts the following technical solutions:
一种基于多尺度节点管理的区块链网络分级传输方法,包括以下步骤,A blockchain network hierarchical transmission method based on multi-scale node management, comprising the following steps,
S1、依照整个区块链网络规模设定尺度划分力度n,即当尺度等级Scale-level=1网络中节点均分为n个区间;当划分至每个区间内包含的节点数小于等于划分力度n时,则不在继续划分新的尺度;S1. Set the scale division strength n according to the scale of the entire blockchain network, that is, when the scale level Scale-level=1, the nodes in the network are divided into n intervals; when the number of nodes contained in each interval is less than or equal to the division strength When n, the new scale will not be divided;
S2、初始化邻节点列表;当一个新节点加入网络时,依据其ID值,判断该节点位于尺度等级Scale-level=1时所处的区间,并从该区间的兄弟区间中各随机选取一个节点加入此新节点的邻节点列表;再重复此方法,在其他各个尺度下,选取相应的节点,加入其邻节点列表;节点的兄弟区间为节点所属区间的上一个尺度的区间的所有子区间;S2. Initialize the neighbor node list; when a new node joins the network, according to its ID value, it is judged that the node is located in the interval when the scale level is Scale-level=1, and a node is randomly selected from the sibling intervals of this interval Add the adjacent node list of this new node; repeat this method, select the corresponding node at each other scale, and add its adjacent node list; the sibling interval of the node is all subintervals of the interval of the previous scale of the interval to which the node belongs;
S3、数据发送;S3, data sending;
S4、数据接收转发。S4. Data receiving and forwarding.
进一步的,所述步骤S1中包括尺度划分步骤如下:Further, the steps of scale division included in the step S1 are as follows:
(1)将网络中的所有节点按照ID值从小到大依次排列,并确定划分力度n;(1) Arrange all the nodes in the network according to the ID value from small to large, and determine the division strength n;
(2)设置尺度等级Scale-level=1,将网络中的节点集合按照划分力度均分为n个区间,即区间11, 区间12……区间1n;(2) Set the scale level Scale-level=1, and divide the node set in the network into n intervals according to the degree of division, that is,
(3)当划分至每个区间内包含的节点数小于等于划分力度n时,则不在继续划分新 的尺度;此时的尺度等级Scale-level=k,将尺度等级k-1下的nk-1个区间分别均分为n个区 间;若节点ID位数为m,计算出系统尺度最大值为。 (3) When the number of nodes contained in each interval is less than or equal to the division strength n, the new scale will not be divided; at this time, the scale level Scale-level=k, the n k under the scale level k-1 -1 interval is equally divided into n intervals; if the number of node IDs is m, the calculated maximum value of the system scale is .
进一步的,所述步骤S2中初始化邻节点列表包括以下步骤,Further, the initialization of the neighbor list in step S2 includes the following steps,
本地节点在不同的尺度下都有唯一的所属区间,节点的父区间为节点所属区间的 上一个尺度的区间,节点的子区间为节点所属区间的下一个尺度的所属区间,节点的兄弟 区间为节点所属区间的上一个尺度的区间的所有子区间;每个节点在不同的尺度下,所有 兄弟区间中,选择一个节点作为其邻节点,则在每个尺度下,各个节点都有n个邻节点,若节 点ID位数为m,则一共有个邻节点; Local nodes have unique intervals at different scales. The parent interval of a node is the interval of the previous scale of the interval to which the node belongs, the child interval of the node is the interval of the next scale of the interval to which the node belongs, and the sibling interval of the node is All sub-intervals of the interval of the previous scale of the interval to which the node belongs; each node is at different scales, in all brother intervals, if a node is selected as its neighbor node, then at each scale, each node has n neighbors Node, if the number of node ID digits is m, then there are a total of neighbor nodes;
当节点a与P2P网络中的另一个节点c建立连接时,节点a根据节点c的ID值,确定节点c在不同尺度等级下的所属区间,当该区间内已存在一个邻节点b时,则将节点c作为后备节点,并在一定的心跳周期内,节点a比较与节点b和节点c的网络响应速度,若与节点c的网络响应速度大于与节点b的网络响应速度,则将节点c替换节点b成为该区间内的节点a的邻节点,反之,则保持节点b作为该区间内的节点a的邻节点不变。When node a establishes a connection with another node c in the P2P network, node a determines the interval to which node c belongs under different scale levels according to the ID value of node c. When there is already a neighboring node b in this interval, then Node c is used as a backup node, and within a certain heartbeat period, node a compares the network response speed with node b and node c, if the network response speed with node c is greater than the network response speed with node b, then node c Replace node b to become the neighbor node of node a in the interval, otherwise, keep node b as the neighbor node of node a in the interval unchanged.
进一步的,所述步骤S3中数据发送包括以下步骤,Further, the data sending in the step S3 includes the following steps,
数据发送节点发送区块链系统中的交易、区块数据时,首先将数据按照区块链相关协议打包成标准的数据格式,同时附加传输级别数据项,此时是数据被第一次发送,所以传输级别值为1;并根据传输级别值1确定尺度等级也为1,选择数据发送节点在该尺度等级下的所有邻节点,将附加了传输级别的数据发送给该节点的这些邻节点。When the data sending node sends the transaction and block data in the blockchain system, it first packs the data into a standard data format according to the relevant blockchain protocol, and at the same time attaches the transmission level data item. At this time, the data is sent for the first time. Therefore, the value of the transmission level is 1; and according to the value of the transmission level 1, the scale level is also determined to be 1, select all the neighboring nodes of the data sending node under the scale level, and send the data with the transmission level attached to these neighboring nodes of the node.
进一步的,所述S4中数据接收转发包括以下步骤,首先进行接收数据的验证,对交易、区块数据的有效性进行验证,同时需要对传输级别数据项进行验证,其值最小为1,最大不超过最大尺度等级;然后对传输级别的签名进行验证,判断签名的有效性;接收到的数据验证通过之后,将进行数据转发的判断,首先将接收数据中的传输级别值加1,作为数据转发邻节点选择的尺度等级,首先判断该尺度等级是否超过了本区块链系统的最大尺度等级;判断该尺度等级下是否存在邻节点,若不存在邻节点则不再转发数据,若存在则向这些邻节点转发数据。Further, the data receiving and forwarding in S4 includes the following steps. First, verify the received data, verify the validity of the transaction and block data, and at the same time verify the transmission level data items, the minimum value of which is 1, and the maximum value is 1. No more than the maximum scale level; then verify the signature of the transmission level to judge the validity of the signature; after the received data is verified, the judgment of data forwarding will be carried out, and the value of the transmission level in the received data will first be increased by 1 as the data To forward the scale level selected by the neighbor node, first judge whether the scale level exceeds the maximum scale level of the blockchain system; judge whether there is a neighbor node under the scale level, if there is no neighbor node, no longer forward the data, if it exists, then Forward data to these neighbor nodes.
进一步的,所述S4中数据接收转发还包括数据转发之后,下一批接收到数据的节点,重复以上数据接收转发过程,直到区块链系统P2P网络中大部分节点都接收到了该数据。Further, the data receiving and forwarding in S4 also includes that after the data is forwarded, the next batch of nodes receiving the data repeat the above data receiving and forwarding process until most of the nodes in the blockchain system P2P network have received the data.
进一步的,所述S4中数据接收转发之后还包括新节点加入/节点退出:Further, after the data in S4 is received and forwarded, it also includes new node joining/node exiting:
各节点所处网络状态不可控,无法要求节点的网络带宽,甚至无法要求它们处于稳定的网络中,节点可随时离线,也有新节点随时加入;The network status of each node is uncontrollable, and the network bandwidth of the nodes cannot be required, and they cannot even be required to be in a stable network. Nodes can be offline at any time, and new nodes can join at any time;
当有新的节点加入时,首先计算出该节点对应的ID值,然后通过一开始区块链节点划分好的区间,将其分配到相应的区间内,然后,通过更新邻节点完成整个区块链的节点的更新;When a new node joins, first calculate the ID value corresponding to the node, and then assign it to the corresponding interval through the interval divided by the blockchain node at the beginning, and then complete the entire block by updating the adjacent nodes update of the nodes of the chain;
当有节点由于某种因素导致的离线或者退出,在系统进行邻接点更新时,会重新给那些以退出节点为邻接点的节点分配新的邻接点。When a node is offline or exits due to some factors, when the system updates the adjacency points, it will re-allocate new adjacency points to those nodes with the exit node as the adjacency point.
另一方面,本发明还公开一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如上述方法的步骤。On the other hand, the present invention also discloses a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned method.
由上述技术方案可知,本发明的基于多尺度节点管理的区块链网络分级传输方法,提出一种多尺度的节点管理模型,其方法依照区块链网络规模选取划分力度,将网络节点集合划分为多个尺度,在每个尺度下将节点按照ID值大小划分为多个均匀区间,在不同尺度下的不同区间内各选择一个节点作为传输节点的邻节点,采用基于传输速度的邻节点更新方式。通过节点间的网络传输速度更新各区间内的邻节点,即采用传输速度更快的节点代替老节点作为节点的邻节点,让节点与邻节点之间始终保持最高的数据传输速度。基于多尺度节点管理模型,在不同的传输级别时,数据发送节点将数据转发给对应尺度等级下的邻节点;本发明降低了传输级别,降低了传输时延,提高了网络利用率,提高了最大吞吐量。It can be seen from the above technical solution that the multi-scale node management-based block chain network hierarchical transmission method of the present invention proposes a multi-scale node management model. The method selects the division strength according to the scale of the block chain network, and divides the network node set For multiple scales, the nodes are divided into multiple uniform intervals according to the ID value at each scale, and one node is selected as the neighbor node of the transmission node in different intervals under different scales, and the neighbor node update based on the transmission speed is adopted. Way. The neighbor nodes in each interval are updated through the network transmission speed between nodes, that is, the node with faster transmission speed is used to replace the old node as the neighbor node of the node, so that the highest data transmission speed between the node and the neighbor node is always maintained. Based on the multi-scale node management model, at different transmission levels, the data sending node forwards the data to the adjacent nodes at the corresponding scale level; the invention reduces the transmission level, reduces the transmission delay, improves the network utilization rate, and improves the Maximum throughput.
附图说明Description of drawings
图1是本发明多尺度节点管理模型的结构示意图;Fig. 1 is a schematic structural diagram of a multi-scale node management model of the present invention;
图2是不同尺度下的邻节点结构示意图;Figure 2 is a schematic diagram of the structure of adjacent nodes at different scales;
图3是基于多尺度节点管理模型的传输架构示意图。Fig. 3 is a schematic diagram of a transmission architecture based on a multi-scale node management model.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments.
如图1所示,本实施例所述的基于多尺度节点管理的区块链网络分级传输方法,包括以下步骤,As shown in Figure 1, the blockchain network hierarchical transmission method based on multi-scale node management described in this embodiment includes the following steps,
S1、依照整个区块链网络规模设定尺度划分力度n。即当尺度等级Scale-level=1时网络中节点均分为n个区间。当划分至每个区间内包含的节点数小于等于划分力度n时,则不在继续划分新的尺度。S1. According to the scale of the entire blockchain network, set the scale and divide the strength n. That is, when the scale level Scale-level=1, the nodes in the network are equally divided into n intervals. When the number of nodes contained in each interval is less than or equal to the division strength n, the new scale is not continued to be divided.
S2、初始化邻节点列表。当一个新节点加入网络时,依据其ID值,判断该节点位于尺度等级Scale-level=1时所处的区间,并从该区间的兄弟区间中各随机选取一个节点加入此新节点的邻节点列表;再重复此方法,在其他各个尺度下,选取相应的节点,加入其邻节点列表。S2. Initialize the neighbor node list. When a new node joins the network, according to its ID value, it is judged that the node is located in the interval when the scale level is Scale-level=1, and a node is randomly selected from the sibling intervals of this interval to join the neighbor nodes of this new node list; then repeat this method, select the corresponding node at each other scale, and add it to its neighbor list.
S3、数据发送。数据发送节点发送区块链系统中的交易、区块等数据时,首先将数据按照区块链相关协议打包成标准的数据格式,同时附加传输级别数据项,此时是数据被第一次发送,所以传输级别值为1;并根据传输级别值1确定尺度等级也为1,选择数据发送节点在该尺度等级下的所有邻节点,将附加了传输级别的数据发送给该节点的这些邻节点。S3, data sending. When the data sending node sends data such as transactions and blocks in the blockchain system, it first packs the data into a standard data format according to the relevant blockchain protocol, and at the same time attaches a transmission-level data item. At this time, the data is sent for the first time. , so the transmission level value is 1; and according to the transmission level value 1, the scale level is also determined to be 1, select all the neighboring nodes of the data sending node under the scale level, and send the data with the transmission level attached to these neighboring nodes of the node .
S4、数据接收转发。首先进行接收数据的验证。对交易、区块等数据的有效性进行验证,同时需要对传输级别数据项进行验证,其值最小为1,最大不超过最大尺度等级;然后对传输级别的签名进行验证,判断签名的有效性。接收到的数据验证通过之后,将进行数据转发的判断,首先将接收数据中的传输级别值加1,作为数据转发邻节点选择的尺度等级,首先判断该尺度等级是否超过了本区块链系统的最大尺度等级;判断该尺度等级下是否存在邻节点,若不存在邻节点则不再转发数据,若存在则向这些邻节点转发数据。S4. Data receiving and forwarding. First, verify the received data. To verify the validity of data such as transactions and blocks, at the same time, it is necessary to verify the transmission level data items, the minimum value of which is 1, and the maximum value does not exceed the maximum scale level; then the transmission level signature is verified to judge the validity of the signature . After the received data is verified, the judgment of data forwarding will be carried out. First, the transmission level value in the received data will be increased by 1 as the scale level selected by the adjacent node for data forwarding. First, it will be judged whether the scale level exceeds the blockchain system. The maximum scale level; judge whether there are adjacent nodes under this scale level, if there is no adjacent node, no longer forward data, if there is, forward data to these adjacent nodes.
以下分别具体说明:The following are specific descriptions:
设置节点管理模型,其功能主要分为6个主要部分,分别为:设定尺度划分力度、邻居节点的初始化、邻居节点的更新、发送数据、接收并转发数据以及随时可能产生的新节点的加入/已有节点的退出。Set up the node management model, its functions are mainly divided into 6 main parts, namely: setting scale division strength, initialization of neighbor nodes, update of neighbor nodes, sending data, receiving and forwarding data, and adding new nodes that may be generated at any time /Exit of an existing node.
尺度划分:区块链系统中,可根据hash运算得到节点对应的ID值,由于hash运算的特性,计算所得的每个节点的ID值唯一,且节点的ID值位数确定。在系统中提出节点尺度的概念,基于多尺度模型管理网络中的所有节点。划分步骤如下:Scale division: In the blockchain system, the ID value corresponding to the node can be obtained according to the hash operation. Due to the characteristics of the hash operation, the calculated ID value of each node is unique, and the number of digits of the ID value of the node is determined. The concept of node scale is proposed in the system, and all nodes in the network are managed based on the multi-scale model. The division steps are as follows:
(1)将网络中的所有节点按照ID值从小到大依次排列,并确定划分力度n;(1) Arrange all the nodes in the network according to the ID value from small to large, and determine the division strength n;
(2)设置尺度等级Scale-level=1,将网络中的节点集合按照划分力度均分为n个区间,即区间11, 区间12……区间1n;(2) Set the scale level Scale-level=1, and divide the node set in the network into n intervals according to the degree of division, that is,
(3)设置尺度等级Scale-level=2,将尺度等级1下的n个区间分别均分为n个区间,如区间11进一步划分为区间21…区间2n;(3) Set the scale level Scale-level=2, divide the n intervals under the scale level 1 into n intervals, for example,
(4)当划分至每个区间内包含的节点数小于等于划分力度n时,则不在继续划分新 的尺度。此时的尺度等级Scale-level=k,将尺度等级k-1下的nk-1个区间分别均分为n个区 间;若节点ID位数为m,可计算出系统尺度最大值为。 (4) When the number of nodes contained in each interval is less than or equal to the division strength n, do not continue to divide new scales. At this time, the scale level Scale-level=k, the n k-1 intervals under the scale level k-1 are divided into n intervals; if the number of node IDs is m, the maximum value of the system scale can be calculated as .
邻居节点的初始化:本地节点在不同的尺度下都有唯一的所属区间,节点的父区间为节点所属区间的上一个尺度的区间,节点的子区间为节点所属区间的下一个尺度的所属区间,节点的兄弟区间为节点所属区间的上一个尺度的区间的所有子区间。每个节点在不同的尺度下,所有兄弟区间中,选择一个节点作为其邻节点,则在每个尺度下,各个节点都有n个邻节点。Initialization of neighbor nodes: local nodes have unique intervals at different scales, the parent interval of the node is the interval of the previous scale of the interval to which the node belongs, and the child interval of the node is the interval of the next scale of the interval to which the node belongs. The sibling intervals of a node are all subintervals of the interval of the previous scale of the interval to which the node belongs. For each node at different scales, select a node as its neighbor node in all sibling intervals, then at each scale, each node has n neighbor nodes.
邻居节点的更新:当节点a与P2P网络中的另一个节点c建立连接时,节点a根据节点c的ID值,确定节点c在不同尺度等级下的所属区间,当该区间内已存在一个邻节点b时,则将节点c作为后备节点,并在一定的心跳周期内,节点a比较与节点b和节点c的网络响应速度,若与节点c的网络响应速度大于与节点b的网络响应速度,则将节点c替换节点b成为该区间内的节点a的邻节点。反之,则保持节点b作为该区间内的节点a的邻节点不变。Neighbor node update: When node a establishes a connection with another node c in the P2P network, node a determines the interval to which node c belongs under different scale levels according to the ID value of node c. For node b, node c is used as a backup node, and within a certain heartbeat period, node a compares the network response speed with node b and node c, if the network response speed with node c is greater than the network response speed with node b , then replace node b with node c to become the neighbor node of node a in this interval. On the contrary, keep node b as the neighbor node of node a in this interval unchanged.
发送数据:数据发送节点发送区块链系统中的交易、区块等数据时,首先将数据按照区块链相关协议打包成标准的数据格式,同时附加传输级别数据项,此时是数据被第一次发送,所以传输级别值为1;并根据传输级别值1确定尺度等级也为1,选择数据发送节点在该尺度等级下的所有邻节点,将附加了传输级别的数据发送给该节点的这些邻节点。Sending data: When a data sending node sends data such as transactions and blocks in the blockchain system, it first packs the data into a standard data format according to the blockchain-related protocol, and at the same time attaches a transmission-level data item. Send once, so the transmission level value is 1; and according to the transmission level value 1, the scale level is also determined to be 1, select all the neighboring nodes of the data sending node under this scale level, and send the data with the transmission level attached to the node. these neighbors.
数据接收与转发:节点接收到数据后,主要是对数据进行验证与数据转发。详细步骤如下所述:Data receiving and forwarding: After the node receives the data, it mainly verifies and forwards the data. The detailed steps are as follows:
(1)数据验证。对交易、区块等数据的有效性进行验证,同时需要对传输级别数据项进行验证,其值最小为1,最大不超过最大尺度等级;然后对传输级别的签名进行验证,判断签名的有效性。(1) Data verification. To verify the validity of data such as transactions and blocks, at the same time, it is necessary to verify the transmission level data items, the minimum value of which is 1, and the maximum value does not exceed the maximum scale level; then the transmission level signature is verified to judge the validity of the signature .
(2)数据转发。接收到的数据验证通过之后,将进行数据转发的判断,首先将接收数据中的传输级别值加1,作为数据转发邻节点选择的尺度等级,首先判断该尺度等级是否超过了本区块链系统的最大尺度等级;判断该尺度等级下是否存在邻节点,若不存在邻节点则不再转发数据,若存在则向这些邻节点转发数据。(2) Data forwarding. After the received data is verified, the judgment of data forwarding will be carried out. First, the transmission level value in the received data will be increased by 1 as the scale level selected by the adjacent node for data forwarding. First, it will be judged whether the scale level exceeds the blockchain system. The maximum scale level; judge whether there are adjacent nodes under this scale level, if there is no adjacent node, no longer forward data, if there is, forward data to these adjacent nodes.
数据转发之后,下一批接收到数据的节点,重复以上数据接收转发过程,直到区块链系统P2P网络中大部分节点都接收到了该数据。After the data is forwarded, the next batch of nodes that receive the data repeat the above data receiving and forwarding process until most of the nodes in the blockchain system P2P network have received the data.
新节点加入/节点退出:各节点所处网络状态不可控,无法要求节点的网络带宽,甚至无法要求它们处于稳定的网络中,节点可随时离线,也有新节点随时加入。当有新的节点加入时,首先计算出该节点对应的ID值,然后通过一开始区块链节点划分好的区间,将其分配到相应的区间内,然后,通过更新邻节点完成整个区块链的节点的更新。当有节点由于某种因素导致的离线或者退出,在系统进行邻接点更新时,会重新给那些以退出节点为邻接点的节点分配新的邻接点。New node joining/node exiting: The network status of each node is uncontrollable, and the network bandwidth of the nodes cannot be required, and they cannot even be required to be in a stable network. Nodes can be offline at any time, and new nodes can join at any time. When a new node joins, first calculate the ID value corresponding to the node, and then assign it to the corresponding interval through the interval divided by the blockchain node at the beginning, and then complete the entire block by updating the adjacent nodes The update of the nodes of the chain. When a node is offline or exits due to some factors, when the system updates the adjacency points, it will re-allocate new adjacency points to those nodes with the exit node as the adjacency point.
节点管理模型是区块链系统P2P网络的基础和核心,不同的区块链系统有不同的节点管理方法。为了提高区块链系统的P2P网络传输效率和安全性,设计了多尺度节点管理模型,该模型整体结构如图1所示。The node management model is the foundation and core of the blockchain system P2P network, and different blockchain systems have different node management methods. In order to improve the P2P network transmission efficiency and security of the blockchain system, a multi-scale node management model is designed. The overall structure of the model is shown in Figure 1.
本模型中,将节点ID值的范围均匀分为多个不同的区间,尺度等级越小,区间数量越少。如图1中,尺度1的尺度等级最小,区间数量为n个;尺度2时,将尺度1的每个区间再细分为n个区间,即有n^2个区间;尺度3时,将尺度2的每个区间再细分为n个区间,即有n^3个区间;在尺度等级最大为尺度k时,有n^k个区间。可见,随着尺度等级越来越大,区间的数量指数倍增加。In this model, the range of node ID values is evenly divided into multiple different intervals, and the smaller the scale level, the fewer the number of intervals. As shown in Figure 1, the scale level of scale 1 is the smallest, and the number of intervals is n; at scale 2, each interval of scale 1 is subdivided into n intervals, that is, there are n^2 intervals; at
节点所属区间为节点ID值所在的区间,在不同的尺度下,每个节点都有唯一的所属区间,如图中节点0在尺度等级为1时所属区间为区间11,在尺度等级为2时所属区间为区间21。节点的父区间为节点所属区间的上一个尺度的区间,如图中节点0在尺度等级为2时父区间为区间11。节点的子区间为节点所属区间的下一个尺度的所属区间,如图中节点0在尺度等级为1时所属子区间为区间21。节点的兄弟区间为节点所属区间的上一个尺度的区间的所有子区间,如图中节点0在尺度等级为2时兄弟区间为区间21,……,区间2n。The interval to which a node belongs is the interval of the node ID value. Under different scales, each node has a unique interval. In the figure, node 0 belongs to
为了更好的定义相关的参量,定义m为节点ID值的位数,对于任何一个已运行的区 块链系统,m是确定的。定义n为尺度等级最小(即1)时的区间数量;定义k为尺度等级的大 小,最小尺度等级为1,最大尺度等级为大于等于的最小整数。定义j为不同尺度 下的区间编号,最小值为1,最大值为。则每个区间包含节点的最大数量,每个区间内,节点ID最小值为 In order to better define the relevant parameters, m is defined as the number of digits of the node ID value. For any running blockchain system, m is certain. Define n as the number of intervals when the scale level is the smallest (ie 1); define k as the size of the scale level, the minimum scale level is 1, and the maximum scale level is greater than or equal to The smallest integer of . Define j as the interval number under different scales, the minimum value is 1, and the maximum value is . Then each interval contains the maximum number of nodes , in each interval, the minimum node ID is
,节点ID最大值为。 , the maximum node ID is .
加入区块链P2P网络中的每个节点,为了方便与其它节点的通信,都需要存储一份邻节点列表,但P2P网络中节点数量庞大,无法存储所有节点,单个节点都会选择一些邻节点进行存储。Each node that joins the blockchain P2P network needs to store a list of neighbor nodes in order to facilitate communication with other nodes. However, the number of nodes in the P2P network is too large to store all the nodes. A single node will select some neighbor nodes for storage.
本模型中,单个节点在每个尺度下的所有兄弟区间中,都会选择一个节点作为邻节点。节点在不同尺度下的邻节点结构如图2所示。以节点ID为0的节点为例,在尺度等级为尺度1时,从区间11到区间1n的每个区间中取出一个节点作为邻节点;同样,在尺度等级为尺度2时,从区间21到区间2n的每个区间中取出一个节点作为邻节点;一直到在尺度等级为尺度k时,从区间k1到区间kn的每个区间中取出一个节点作为邻节点。In this model, a single node will select a node as a neighbor node in all sibling intervals at each scale. The adjacent node structures of nodes at different scales are shown in Figure 2. Taking the node whose ID is 0 as an example, when the scale level is scale 1, a node is taken from each interval from
节点在每个尺度下,都有n个邻节点,则节点一共有kn个邻节点。A node has n neighbor nodes at each scale, so the node has kn neighbor nodes in total.
采用多尺度节点管理模型,能够实现对P2P网络中的节点进行高效管理。同时,基于该模型的网络传输能够减少传输级别,提升网络的传输效率,传输级别表示数据从发送节点传输到接收节点需要经过的传输层级数。基于多尺度节点管理模型的传输架构如图3所示。节点发起数据发送(如交易或区块数据)时,数据传输级别值为1,以此确定尺度等级也为1,选择发送节点的尺度等级为1时的所有邻节点,并附加传输级别数据项(此时为1),向这些邻节点发送数据。The multi-scale node management model can realize efficient management of nodes in the P2P network. At the same time, the network transmission based on this model can reduce the transmission level and improve the transmission efficiency of the network. The transmission level indicates the number of transmission layers that data needs to pass through from the sending node to the receiving node. The transmission architecture based on the multi-scale node management model is shown in Figure 3. When a node initiates data transmission (such as transaction or block data), the data transmission level value is 1, so as to determine that the scale level is also 1, select all neighboring nodes when the scale level of the sending node is 1, and attach transmission level data items (1 at this time), send data to these neighboring nodes.
接收到数据的节点根据附加的传输级别值,将传输级别值加1确定尺度等级(即为2),选择该节点在该尺度等级下的所有邻节点,并附加传输级别数据项(此时为2),向这些邻节点转发数据。The node receiving the data adds 1 to the transmission level value to determine the scale level (that is, 2) according to the additional transmission level value, selects all neighboring nodes of the node under the scale level, and attaches the transmission level data item (in this case, 2), forward data to these neighboring nodes.
以此类推,不断转发数据,直到接收到的数据中的尺度等级达到最大值,则完成本次的数据广播。By analogy, the data is continuously forwarded until the scale level in the received data reaches the maximum value, and this data broadcasting is completed.
综上所述,本发明实施例提出一种多尺度的节点管理模型。在不同的尺度等级下,将节点ID值的范围均匀分为多个不同的区间,在每个区间选择一个节点作为邻节点,采用基于传输速度的邻节点更新方式。通过节点间的网络传输速度更新各区间内的邻节点,即采用传输速度更快的节点代替老节点作为节点的邻节点,让节点与邻节点之间始终保持最高的数据传输速度。提出一种区块链网络分级传输模型。基于多尺度节点管理模型,在不同的传输级别时,数据发送节点将数据转发给对应尺度等级下的邻节点;To sum up, the embodiment of the present invention proposes a multi-scale node management model. Under different scale levels, the range of node ID values is evenly divided into several different intervals, and a node is selected as a neighbor node in each interval, and the neighbor node update method based on transmission speed is adopted. The neighbor nodes in each interval are updated through the network transmission speed between nodes, that is, the node with faster transmission speed is used to replace the old node as the neighbor node of the node, so that the highest data transmission speed between the node and the neighbor node is always maintained. A blockchain network hierarchical transmission model is proposed. Based on the multi-scale node management model, at different transmission levels, the data sending node forwards the data to the adjacent nodes at the corresponding scale level;
具体的说,本发明实施例的优点如下:Specifically, the advantages of the embodiments of the present invention are as follows:
1、传输级别的降低1. Reduction of transmission level
在网络带宽、传输数据量一定的条件下,传输时长与传输级别值大小相关,传输级 别值越小,传输时长越小,传输效率越高;输级别值越大,数据转发的次数越多,数据传输到 整个网络所需要的时长就越大,多尺度节点管理模型的最大传输级别值与区块链系统中 P2P网络的尺度最大值加一相等,即为:(1) Under the condition of a certain network bandwidth and the amount of transmitted data, the transmission time is related to the value of the transmission level. The smaller the value of the transmission level, the smaller the transmission time, and the higher the transmission efficiency; the larger the value of the transmission level, the more times the data is forwarded. The longer the time required for data transmission to the entire network, the maximum transmission level value of the multi-scale node management model is equal to the maximum scale value of the P2P network in the blockchain system plus one, which is: (1)
其中,m为区块链系统中节点ID值的位数,对于任何一个已运行的区块链系统,m是确定的;n为尺度等级最小(即1)时的区间数量,因每个区间内的邻节点数为1,因此,其值与节点每次转发数据时广播的邻节点数相等。式中m越大,最大传输级别值越大;n越大,最大传输级别值越小。Among them, m is the number of digits of the node ID value in the blockchain system. For any running blockchain system, m is determined; n is the number of intervals when the scale level is the smallest (ie 1), because each interval The number of neighbors in is 1, so its value is equal to the number of neighbors broadcast by the node each time it forwards data. In the formula, the larger m is, the larger the maximum transmission level value is; the larger n is, the smaller the maximum transmission level value is.
而以太坊的结构化P2P网络,最大传输级别值为:In Ethereum's structured P2P network, the maximum transmission level is:
(2) (2)
其中,m同样为节点ID值的位数,为256,以太坊K桶数量同样为256,为以太坊K桶中存储的最大节点数,为16,则根据式(2)的计算结果,以太 坊最大传输级别值为252。 Among them, m is also the number of digits of the node ID value, which is 256, and the number of K buckets in Ethereum is also 256. is the maximum number of nodes stored in the K-bucket of Ethereum, which is 16, then according to the calculation result of formula (2), the maximum transmission level of Ethereum is 252.
以太坊中,节点每次转发数据广播的邻节点数为:In Ethereum, the number of neighbor nodes each time a node forwards a data broadcast is:
(3) (3)
根据式(3)的计算结果,节点每次转发数据广播的邻节点数最多为64个。若本模型中,节点每次转发数据广播的邻节点数与以太坊一致,同样为64,则采用本模型时,根据公式(1)的计算结果,计算出最大传输级别值为43。According to the calculation result of formula (3), the maximum number of neighbor nodes forwarded by each node is 64. If in this model, the number of neighbor nodes each time a node forwards data broadcasts is the same as that of Ethereum, which is also 64, then when this model is adopted, the maximum transmission level value is calculated to be 43 according to the calculation result of formula (1).
2、传输时延的降低2. Reduction of transmission delay
使用本模型在传输数据时,需要附加每次传输的传输级别以及数据发送节点的签 名数据,其大小为4+32个字节,可见增加的数据量是非常小的,而且其数据量 是固定大小的,不会随着传输级别值的增大而增大。因此,增加的数据量是可以忽略不计, 不影响传输效率分析结果。 When using this model to transmit data, it is necessary to attach the transmission level of each transmission and the signature data of the data sending node, and its size It is 4+32 bytes. It can be seen that the increased amount of data is very small, and the amount of data is fixed and will not increase with the increase of the value of the transmission level. Therefore, the increased data volume is negligible and does not affect the transmission efficiency analysis results.
以以太坊区块数据传输为例,节点间网络传输速率平均值为 20Mbps,m为256,为16,根据传输级别值分析,以太坊传输级别值为252,本 模型传输级别值为43。则以太坊传输时延大小为: Taking Ethereum block data transmission as an example, the network transmission rate between nodes Average is 20Mbps, m is 256, It is 16. According to the analysis of the transmission level value, the transmission level value of Ethereum is 252, and the transmission level value of this model is 43. Then the transmission delay of Ethereum is:
(4) (4)
本模型传输时延大小为:The transmission delay of this model is:
(5) (5)
其中,为传输的数据量大小。以太坊区块高度为14581702的区块大小 为189,646Bytes[31],以太坊P2P网络的传输时延大小为18.2秒,采用本模型的传输时延大 小为3.1秒;传输1MB左右大小的区块数据时,以太坊P2P网络的传输时延大小为100.8秒,采 用本模型的传输时延大小为17.2秒。 in, is the amount of data transferred. The block size of the Ethereum block height is 14581702 is 189,646 Bytes[31], the transmission delay of the Ethereum P2P network is 18.2 seconds, and the transmission delay of this model is 3.1 seconds; the transmission of a block with a size of about 1MB For data, the transmission delay of the Ethereum P2P network is 100.8 seconds, and the transmission delay of this model is 17.2 seconds.
3、网络利用率的提高3. Improvement of network utilization
在区块链系统的P2P网络中,由于在数据转发时存在着重复传输,因此节点经常会收到多个邻节点转发的数据。在节点间带宽,以及传输的数据量一定的条件下,影响网络利用率的主要因素是数据传输的重复率,传输重复率越低,则网络利用率越高。In the P2P network of the blockchain system, due to the repeated transmission during data forwarding, nodes often receive data forwarded by multiple neighboring nodes. Under the condition of the inter-node bandwidth and the amount of transmitted data, the main factor affecting the network utilization rate is the repetition rate of data transmission. The lower the transmission repetition rate, the higher the network utilization rate.
根据公式(3),节点每次转发数据广播的邻节点数最多为64个。理想 环境下,节点发送一条数据,直接向网络内所有邻节点广播数据,网络中其它节点只收到一 次数据,传输次数为: According to formula (3), the number of neighbor nodes each time a node forwards data broadcast The maximum is 64. In an ideal environment, a node sends a piece of data and directly broadcasts the data to all neighboring nodes in the network. Other nodes in the network only receive the data once, and the number of transmissions is:
(6) (6)
将传输重复率定义为实际传输次数与理想状态下,传输次数的比值,传输次数分析如表1所示。The transmission repetition rate is defined as the ratio of the actual number of transmissions to the number of transmissions under ideal conditions. The analysis of the number of transmissions is shown in Table 1.
表1传输次数及重复率分析Table 1 Analysis of transmission times and repetition rate
MsP2P网络的传输 重复率为2.0左右,而DevP2P网络的传输重复率为64左右。 The transmission repetition rate of the MsP2P network is about 2.0, while that of the DevP2P network is about 64.
4、最大吞吐量得到了提高4. The maximum throughput has been improved
区块链的吞吐量是区块链性能的主要指标之一,影响其大小的因素较多,内在影响因素包括:共识机制、数据结构、加密算法、交易验证、P2P网络等;外部影响因素包括节点的CPU性能、内存大小、硬盘容量、网络带宽等资源。The throughput of the blockchain is one of the main indicators of the performance of the blockchain. There are many factors affecting its size. The internal influencing factors include: consensus mechanism, data structure, encryption algorithm, transaction verification, P2P network, etc.; external influencing factors include Node CPU performance, memory size, hard disk capacity, network bandwidth and other resources.
区块链网络对区块链吞吐量的影响包括网络结构、带宽等。在网络带宽确定的条 件下,区块链系统最大吞吐量为: The impact of the blockchain network on the throughput of the blockchain includes network structure, bandwidth, etc. Under the condition that the network bandwidth is determined, the maximum throughput of the blockchain system for:
(7) (7)
节点间网络带宽为20Mbps时,交易的平均大小为250字节时,根 据式(7)的计算结果,MsP2P网络的最大吞吐量为: Network Bandwidth Between Nodes Average transaction size at 20Mbps When is 250 bytes, according to the calculation result of formula (7), the maximum throughput of MsP2P network for:
(8) (8)
而DevP2P网络的最大吞吐量为: And the maximum throughput of the DevP2P network for:
(9) (9)
MsP2P网络的最大吞吐量为5243tps,而DevP2P网络的最大吞吐量为163tps。The maximum throughput of the MsP2P network is 5243tps, while the maximum throughput of the DevP2P network is 163tps.
又一方面,本发明还公开一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如上述任一方法的步骤。In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor is made to perform the steps of any one of the above methods.
再一方面,本发明还公开一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述任一方法的步骤。In another aspect, the present invention also discloses a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any one of the above methods A step of.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一方法的步骤。In yet another embodiment provided by the present application, a computer program product including instructions is also provided, which, when run on a computer, causes the computer to execute the steps of any one of the methods in the above embodiments.
可理解的是,本发明实施例提供的系统与本发明实施例提供的方法相对应,相关内容的解释、举例和有益效果可以参考上述方法中的相应部分。It can be understood that the system provided in the embodiment of the present invention corresponds to the method provided in the embodiment of the present invention, and the explanations, examples and beneficial effects of related content can refer to corresponding parts in the above method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211219789.0A CN115296824B (en) | 2022-10-08 | 2022-10-08 | Hierarchical transmission method of block chain network based on multi-scale node management and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211219789.0A CN115296824B (en) | 2022-10-08 | 2022-10-08 | Hierarchical transmission method of block chain network based on multi-scale node management and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115296824A CN115296824A (en) | 2022-11-04 |
CN115296824B true CN115296824B (en) | 2022-12-16 |
Family
ID=83834149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211219789.0A Active CN115296824B (en) | 2022-10-08 | 2022-10-08 | Hierarchical transmission method of block chain network based on multi-scale node management and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115296824B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107528886A (en) * | 2017-07-25 | 2017-12-29 | 中国科学院计算技术研究所 | Block chain the whole network method for splitting and system |
CN108920723A (en) * | 2018-08-01 | 2018-11-30 | 江苏恒宝智能系统技术有限公司 | A kind of nodal hierarchy partition management method |
CN109873808A (en) * | 2019-01-11 | 2019-06-11 | 平安科技(深圳)有限公司 | Communication method and device, storage medium and electronic device between blockchain nodes |
CN110754070A (en) * | 2017-06-20 | 2020-02-04 | 区块链控股有限公司 | Fast propagation of recent transactions over blockchain networks |
KR20200048246A (en) * | 2018-10-29 | 2020-05-08 | 에스케이텔레콤 주식회사 | Method for managing distributed ledger based on block chain |
CN111770017A (en) * | 2020-06-22 | 2020-10-13 | 国网冀北电力有限公司电力科学研究院 | Clustering management system and method for distribution Internet of things based on trusted blockchain |
CN111984733A (en) * | 2020-09-03 | 2020-11-24 | 深圳壹账通智能科技有限公司 | Blockchain-based data transmission method, device and storage medium |
CN114465933A (en) * | 2022-04-13 | 2022-05-10 | 中国科学院合肥物质科学研究院 | Block chain network transmission method and transmission medium based on KAD (Kad Gemini) model |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210091926A1 (en) * | 2019-09-25 | 2021-03-25 | The Mitre Corporation | Assessing permissioned blockchains |
-
2022
- 2022-10-08 CN CN202211219789.0A patent/CN115296824B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110754070A (en) * | 2017-06-20 | 2020-02-04 | 区块链控股有限公司 | Fast propagation of recent transactions over blockchain networks |
CN107528886A (en) * | 2017-07-25 | 2017-12-29 | 中国科学院计算技术研究所 | Block chain the whole network method for splitting and system |
CN108920723A (en) * | 2018-08-01 | 2018-11-30 | 江苏恒宝智能系统技术有限公司 | A kind of nodal hierarchy partition management method |
KR20200048246A (en) * | 2018-10-29 | 2020-05-08 | 에스케이텔레콤 주식회사 | Method for managing distributed ledger based on block chain |
CN109873808A (en) * | 2019-01-11 | 2019-06-11 | 平安科技(深圳)有限公司 | Communication method and device, storage medium and electronic device between blockchain nodes |
CN111770017A (en) * | 2020-06-22 | 2020-10-13 | 国网冀北电力有限公司电力科学研究院 | Clustering management system and method for distribution Internet of things based on trusted blockchain |
CN111984733A (en) * | 2020-09-03 | 2020-11-24 | 深圳壹账通智能科技有限公司 | Blockchain-based data transmission method, device and storage medium |
CN114465933A (en) * | 2022-04-13 | 2022-05-10 | 中国科学院合肥物质科学研究院 | Block chain network transmission method and transmission medium based on KAD (Kad Gemini) model |
Also Published As
Publication number | Publication date |
---|---|
CN115296824A (en) | 2022-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lei et al. | Reputation-based byzantine fault-tolerance for consortium blockchain | |
CN111355810B (en) | An Improved PBFT Consensus Method Based on Reputation and Voting Mechanism | |
US11018980B2 (en) | Data-interoperability-oriented trusted processing method and system | |
US11157487B2 (en) | Trusted storage method and system based on directed acyclic graph structure | |
US8301736B2 (en) | Method for selecting and configuring network supernodes | |
CN111698094A (en) | Consensus method based on block chain system and block chain system | |
CN110956463B (en) | Credible certificate storing method and system based on extensible distributed query system | |
Cherupally et al. | Lightweight and Scalable DAG based distributed ledger for verifying IoT data integrity | |
CN113422805A (en) | Fragment consensus method based on verifiable random function | |
CN115296824B (en) | Hierarchical transmission method of block chain network based on multi-scale node management and storage medium | |
CN110149221B (en) | Self-adaptive network construction method and device based on alliance chain | |
Haddar | SEALEA: scalable and energy aware k-leaders election algorithm in IoT wireless sensor networks | |
Zheng et al. | Dhbn: An efficient broadcast protocol for blockchain networks in highly dynamic heterogeneous environment | |
CN107612980B (en) | Adjustable and reliable consistency maintenance method in structured P2P network | |
CN116170155A (en) | Consortium Blockchain Consensus Method Based on PBFT Improvement | |
Zhang et al. | Efficient dynamic-committee BFT consensus based on HotStuff | |
CN116668135A (en) | Block chain consensus method, system and device participated in by mobile edge equipment | |
Ran et al. | Blockchain topology optimization based on node clustering | |
CN115733841A (en) | Block chain dynamic fragmentation expansion method based on image flow segmentation | |
CN115550194B (en) | Blockchain network transmission method and storage medium based on class furthest sampling | |
Kostadinova et al. | Performance analysis of the epidemic algorithms | |
Liu et al. | Enabling Consistent Sensing Data Sharing Among IoT Edge Servers via Lightweight Consensus | |
CN116055064B (en) | Method, system, medium and equipment for multi-block simultaneous consensus in block chain segmentation | |
Neu et al. | Securing Proof-of-Stake Nakamoto Consensus Under Bandwidth Constraint. | |
CN116033520B (en) | Wireless networking method and wireless ad hoc network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |