CN109788042A - A kind of packet-based block chain network node communication method - Google Patents
A kind of packet-based block chain network node communication method Download PDFInfo
- Publication number
- CN109788042A CN109788042A CN201811622745.6A CN201811622745A CN109788042A CN 109788042 A CN109788042 A CN 109788042A CN 201811622745 A CN201811622745 A CN 201811622745A CN 109788042 A CN109788042 A CN 109788042A
- Authority
- CN
- China
- Prior art keywords
- node
- block
- transaction
- nodes
- group
- 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.)
- Pending
Links
Abstract
A kind of packet-based block chain network node communication method of the present invention, logically relationship is divided into N number of group to all nodes, each node is when locally saving neighbor node, need to save the node as much as possible of this group and other groups any one node, the node for initiating transaction or generation block sends transaction or block to the node locally saved, the node for receiving transaction or block sends transaction or block to all nodes locally saved, it circuits sequentially in this way, until all nodes send transaction or block, essence of the invention is will be after the node grouping in P2P network, each node is treated with a certain discrimination, each node is only communicated with specific node, this reduces the burdens of node, improve network transmission efficiency.
Description
Technical field
The present invention proposes method between a kind of communication of block chain network node, and by all nodes, logically relationship is divided into N
A group, P2P network communication is carried out in group interior nodes, the node for only initiating transaction or production block can be with the node outside group
Communication, improves the processing speed and network communication speed of block chain.
Background technique
Block chain is the series winding transaction record (also known as block) for concatenating and protecting content by cryptography.Each block packet
The keyed hash, corresponding time stab and transaction data for having contained previous block (are usually dissipated with what Merkel's tree algorithm calculated
Train value indicates), such design is so that block content has the characteristic for being difficult to alter.The distributed account book concatenated with block chain
Two sides can be allowed effectively to note down transaction, and can permanently check this transaction.
Block chain utilizes P2P transmitted data on network, can be wide to the whole network when a node initiates transaction or generates block
This transaction or block are broadcast, the time complexity of O (n2) is generated, with the increase of node number, the burden of communication is increasingly heavier, hands over
Easily or the transmission of block is severely impacted.
After transaction or block generate, all nodes of the existing technology directly into P2P network send transaction or block,
Node in network does not distinguish.
Because the node in network does not distinguish, after a new transaction or block generation, need to send out to all nodes
Easy or block is delivered, causes communication efficiency low, network low-response.
Summary of the invention
It is an object of the invention to solve the problem of the low network low-response of communication efficiency.
The technology used in the present invention means are as described below.
A kind of packet-based block chain network node communication method of the present invention, logically relationship is divided into N to all nodes
A group, each node when locally saving neighbor node, need to save this group node as much as possible and other groups any
One node initiates transaction or the node for generating block to the node transmission transaction locally saved or block, receives transaction or area
The node of block sends transaction or block to all nodes locally saved, circuits sequentially in this way, hands over until all nodes are sent
Easy or block.
The beneficial effects of the present invention are: in P2P network environment, all in equity between the multiple stage computers that are connected to each other
Status, each computer have an identical function, and essence of the invention is by after the node grouping in P2P network, to each section
Point is treated with a certain discrimination, and each node is only communicated with specific node, and this reduces the burdens of node, improves network transmission effect
Rate.
Specific embodiment
When a kind of packet-based block chain network node communication method, first all node deployments of the invention, it can generate
One globally unique node i d.By all nodes, logically relationship is divided into N number of group, and each node is locally saving neighbours' section
It when point, needs to save the node as much as possible of this group and other groups any one node, initiate transaction or generates block
Node sends transaction or block to the node locally saved.Likewise, receiving the node of transaction or block to the institute locally saved
There is node to send transaction or block, circuit sequentially in this way, until all nodes send transaction or block.
Such as by the node i d of each node to 5 complementations, the identical node of all complementation values is considered being divided into one group.It is false
If local node is 0 to value after 5 complementations, then the id of neighbor node is first calculated when neighbor node requests to connect to local node,
If the id of neighbor node is 0 to value after 5 complementations, connection is received, and neighbor node is just retained in local, if after complementation
Value is 1, just sees after locally whether being saved complementation and is worth the node for being, if not provided, just receiving request, and saves node, such as
Fruit has been saved, just refusal request, and gives up this neighbor node, also so processing that value is 2,3,4 after complementation.
Only have in the node locally saved 1 be non-group node, when across group transmission, using this uniquely across group node,
This sends transaction or block to all nodes locally saved across the node that group node receives transaction or block, successively follows in this way
Ring, until all nodes send transaction or block.
After the node grouping in network, each node only and with whole nodes in group is communicated, and one with outer group
Node communication, communication efficiency improve, and response speed improves, and processing speed improves.
For example, such packet mode, may be implemented one group of same department, one group of same company, and same city is one
Group, same region is one group or same country is one group.
In P2P network environment, all in the status of equity between the multiple stage computers that are connected to each other, each computer has
Identical function, essence of the invention are treated with a certain discrimination after the node grouping in P2P network to each node, each node
It is only communicated with specific node, this reduces the burdens of node, improve network transmission efficiency.
Claims (1)
1. a kind of packet-based block chain network node communication method, it is characterised in that: all nodes logically relation
It is N number of group, each node needs to save the node as much as possible of this group and other groups appoint when locally saving neighbor node
Anticipate a node, initiate transaction or generate the node of block to send transaction or block to the node locally saved, receive transaction or
The node of block sends transaction or block to all nodes locally saved, circuits sequentially in this way, until all nodes are sent
Transaction or block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811622745.6A CN109788042A (en) | 2018-12-28 | 2018-12-28 | A kind of packet-based block chain network node communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811622745.6A CN109788042A (en) | 2018-12-28 | 2018-12-28 | A kind of packet-based block chain network node communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109788042A true CN109788042A (en) | 2019-05-21 |
Family
ID=66498635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811622745.6A Pending CN109788042A (en) | 2018-12-28 | 2018-12-28 | A kind of packet-based block chain network node communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109788042A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107330786A (en) * | 2017-05-19 | 2017-11-07 | 杭州云象网络技术有限公司 | A kind of block chain network node communication method based on weight |
CN107807984A (en) * | 2017-10-31 | 2018-03-16 | 上海分布信息科技有限公司 | A kind of block chain network of subregion and its method for realizing subregion common recognition |
US20180300382A1 (en) * | 2017-04-12 | 2018-10-18 | Vijay K. Madisetti | Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing |
CN108847925A (en) * | 2018-06-20 | 2018-11-20 | 深圳大学 | A kind of fragment block chain generation method based on tree |
-
2018
- 2018-12-28 CN CN201811622745.6A patent/CN109788042A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180300382A1 (en) * | 2017-04-12 | 2018-10-18 | Vijay K. Madisetti | Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing |
CN107330786A (en) * | 2017-05-19 | 2017-11-07 | 杭州云象网络技术有限公司 | A kind of block chain network node communication method based on weight |
CN107807984A (en) * | 2017-10-31 | 2018-03-16 | 上海分布信息科技有限公司 | A kind of block chain network of subregion and its method for realizing subregion common recognition |
CN108847925A (en) * | 2018-06-20 | 2018-11-20 | 深圳大学 | A kind of fragment block chain generation method based on tree |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535843B (en) | Apparatus and method for mimicry arbitration parameter message synchronization | |
WO2019101246A3 (en) | Data isolation in blockchain networks | |
US20210124734A1 (en) | Trusted storage method and system based on directed acyclic graph structure | |
CN101217528B (en) | A link aggregation method and device | |
CN103338161A (en) | Method and equipment for realizing cross-equipment aggregation | |
CN103166874A (en) | Message forwarding method and device | |
CN104038447A (en) | Message transmission method and device | |
EP2594049B1 (en) | Sip-based call session server and message-routing method | |
WO2018094299A3 (en) | System architecture and method of processing data therein | |
WO2019072307A3 (en) | Accelerating transaction deliveries in blockchain networks using acceleration nodes | |
RU2010146258A (en) | METHOD, DEVICE AND SYSTEM FOR DISTRIBUTING MESSAGES | |
CN108881177B (en) | Method for realizing heterogeneous parallel block chain | |
CN103117947A (en) | Load sharing method and device | |
JP6325642B2 (en) | Control method of slave device | |
CN103746920A (en) | Method for realizing data transmission based on gatekeeper | |
CN105592163A (en) | Communication method and system | |
CN101316266B (en) | Defense method for selective forwarding attack in sensor network | |
WO2018108127A1 (en) | Method for sending information, method for receiving information, pdcp entity, and computer storage medium | |
CN103825839A (en) | Message transmission method and equipment based on aggregated link | |
CN102427452B (en) | Synchronize (SYN) message transmitting method and device and network equipment | |
CN104378426B (en) | A kind of load-balancing method for real time information dissemination system | |
CN109788042A (en) | A kind of packet-based block chain network node communication method | |
CN106027409B (en) | A kind of switch load equilibrium output method and device | |
CN105007233B (en) | A kind of method that distribution address is loaded based on Dynamic Host Configuration Protocol server cluster | |
WO2004049669A3 (en) | Method and appliance for distributing data packets sent by a computer to a cluster 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190521 |