CN108667790B - Communication protocol method for block chain common node consensus authentication - Google Patents
Communication protocol method for block chain common node consensus authentication Download PDFInfo
- Publication number
- CN108667790B CN108667790B CN201711342609.7A CN201711342609A CN108667790B CN 108667790 B CN108667790 B CN 108667790B CN 201711342609 A CN201711342609 A CN 201711342609A CN 108667790 B CN108667790 B CN 108667790B
- Authority
- CN
- China
- Prior art keywords
- message
- node
- block
- confirmation
- communication protocol
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- 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/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9015—Buffering arrangements for supporting a linked list
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention belongs to the technical field of communication protocols, and particularly relates to a communication protocol method for block chain common node consensus authentication. The PBCP is packaged in an application layer of a TCP protocol model, then the communication protocol message format of the PBCP is formed, and a connection port 5187 is defaulted, so that a novel block chain public node consensus authentication communication protocol method is formed.
Description
Technical Field
The invention belongs to the technical field of communication protocols, and particularly relates to a communication protocol method for block chain common node consensus authentication.
Background
With the arrival of a new industrial revolution, the roles of new-generation information technologies such as cloud computing, big data, internet of things and the like in the industries of intelligent manufacturing, finance, energy, medical health and the like become more important. From the development trend at home and abroad and the block chain technology development evolution path, the development of the block chain technology and application needs a new generation of information technology industries such as cloud computing, big data, internet of things and the like as infrastructure support, and meanwhile, the block chain technology and application development plays an important role in promoting the development of the new generation of information technology industries.
The block chain technology is used as a novel decentralized protocol, transaction data can be safely stored, information cannot be forged and falsified, an intelligent contract can be executed, and auditing of any centralized mechanism is not needed. The transaction based on the blockchain technology can be digital currency, and can also be digital assets such as debt, equity, copyright and the like. The block chain technology solves the problem of the general of Byzantine, greatly reduces the trust cost and accounting cost of the real economy, and redefines the property right system of the Internet era. Essentially, the blockchain is a public ledger for recording all transactions which have occurred in the whole network, is a decentralized and distributed structure-contained data storage, transmission and certification method, and theoretically realizes self-certification of data in data transmission. This "decentralized" and "distrust" mechanism reduces the cost of establishing global trade "credits" in a more profound sense. Blockchain technology may reshape aspects of various monetary markets, payment systems, financial services, and economic modalities, which can fundamentally become a new paradigm for organizing activities to reduce friction and improve efficiency.
At present, common nodes of each block chain platform have respective consensus algorithms (such as POW, POS, and the like), but the consensus algorithms supported by different platforms have not been precedent for hooking communication protocols. How to provide a consensus communication protocol, which can simultaneously perform communication across platforms and solve the consensus problem becomes especially difficult for different blockchain technology platforms, the main difficulties are as follows: 1. the data calling interfaces of all the block chain platforms are inconsistent; 2. the intelligent contract languages of all block chain platforms are inconsistent; 3. the architecture and implementation method of each blockchain platform are inconsistent. At present, the prior art has no technology which can solve the problem.
Disclosure of Invention
The invention provides a communication protocol method for block chain common node consensus authentication, which solves the technical problem that the existing communication method cannot realize block chain platform consensus.
The abbreviation PBCP for Peers' Blocks Consensus Protocol refers to a blockchain Consensus Protocol based on end-to-end communication.
The communication protocol message of the block chain common node consensus authentication communication protocol method comprises a new block generation message (rqbk), a new block confirmation message (cfbk), a transaction block generation message (rqtd), a transaction block confirmation message (cf td) and an access request and verification message (rqlg | rplg).
In the prior art, a TCP protocol model includes an application layer, an output layer, an internet layer and a network interface from a four-layer perceptual model, and the technical scheme is to package a PBCP communication protocol PBCP on the application layer. The specific packet format of PBCP is as shown in tables 2, 3, and 4.
The communication protocol method for the block chain common node consensus authentication is characterized in that: comprises the following steps of (a) carrying out,
(1) the public node online releases an access request rqlg message, at the moment, after receiving the message, the authentication node starts identity confirmation, establishes an exclusive end-to-end special line TCP connection channel with the request node, then generates identity authentication information corresponding to the request node and returns an rplg message to the request node;
(2) the public node performs self-confirmation according to the received identity authentication information, if the public node keeps the exclusive connection of the authentication node, the public node is used as a monitoring thread to wait for a local main thread command or call information sent by other nodes;
(3) after receiving the instruction of generating the new block, the public node packs the new block information into an rqbk message to carry out whole-network broadcast confirmation;
(4) after receiving the rqbk message, the public node requested by the non-new block unpacks the confirmation information in the rqbk message, then locally calls a block consensus verification algorithm of the public node, changes a confirmation identification variable Handled self-increment 1 in the whole network by a verification rule, and then answers a cfbk message; the illegal message is discarded in the instruction queue MsgQueue without response after the misrule is verified;
(5) all public nodes check own new blocks at regular time to request for caching the MainBlockCache, if a Handled variable of a certain new block to be selected meets a certain verification condition, the block information is transferred to a local main storage MainBase, and meanwhile, corresponding records in the cache MainBlockCache are deleted.
And (5) the verification condition is that the processed variable of the new block to be selected is larger than 1/2 of the Online user currently Online.
The method has the advantages that a standardized communication protocol format is provided for various block chain systems; providing a bottom layer support for the integration of each block chain system platform with different architectures, and ensuring that all the block chain systems based on the protocol have peer-to-peer transmission authority and performance; the property of the block chain is completely matched for the de-centralization communication of the Peer-to-Peer; the application scene is wider, the scene fusion of public chains, private chains and alliance chains is achieved, and the complexity of side chain growth is simplified.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, without any inventive work, other drawings can be obtained from the drawings, and the technical solution directly obtained from the drawings shall also belong to the protection scope of the present invention.
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, specific embodiments thereof are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention can be embodied in many different forms than those herein described and many modifications may be made by one skilled in the art without departing from the spirit and scope of the invention.
In embodiment 1, the communication protocol method for blockchain common node consensus authentication packs a PBCP at an application layer of a TCP protocol model. The abbreviation PBCP for Peers' Blocks Consensus Protocol refers to a blockchain Consensus Protocol based on end-to-end communication. As shown in table 1, the TCP protocol model in the prior art includes an application layer, an output layer, an internet layer and a network interface from a four-layer perceptual model, and the technical solution is to package the PBCP communication protocol on the application layer. It is included from the OSI seven-layer Network model as an Application layer (Application), Presentation layer (Presentation), Session layer (Session), Transport layer (Transport), Network layer (Network), Data Link layer (Data Link), and Physical layer (Physical), and the PBCP is grouped on the Application layer (Application). Has its own communication protocol message format and defaults to the connection port 5187. Therefore, a standardized communication protocol format is provided for various block chain systems through the system; providing a bottom layer support for the integration of each block chain system platform with different architectures, and ensuring that all the block chain systems based on the protocol have peer-to-peer transmission authority and performance; the property of the block chain is completely matched for the de-centralization communication of the Peer-to-Peer; the application scene is wider, the scene fusion of public chains, private chains and alliance chains is achieved, and the complexity of side chain growth is simplified.
The communication protocol message of the block chain common node consensus authentication communication system comprises a new block generation message (rqbk), a new block confirmation message (cfbk), a transaction block generation message (rqtd), a transaction block confirmation message (cftd) and an access request and verification message (rqlg | rplg).
Specific packet formats of PBCP are, for example, PBCP packet format (rqbk | cfbk) in table 2, PBCP packet format (rqtd | cftd) in table 3, and PBCP packet format (rqlg | rplg) in table 4. Therefore, the technical solutions for implementing the present invention will be understood by those skilled in the art from tables 1, 2, 3 and 4.
Table 1 shows the location of a network model where the communication protocol method for blockchain common node consensus authentication according to the present invention is located.
Table 2 shows PBCP packet format (rqbk | cfbk)
Table 3 shows PBCP packet format (rqtd | cftd)
Table 4PBCP packet format (rqlg | rplg)
The communication protocol method for block chain common node consensus authentication in embodiment 2 includes the following steps,
(1) the public node online releases an access request rqlg message, at the moment, after receiving the message, the authentication node starts identity confirmation, establishes an exclusive end-to-end special line TCP connection channel with the request node, then generates identity authentication information corresponding to the request node and returns an rplg message to the request node;
(2) the public node performs self-confirmation according to the received identity authentication information, if the public node keeps the exclusive connection of the authentication node, the public node is used as a monitoring thread to wait for a local main thread command or call information sent by other nodes;
(3) after receiving the instruction of generating the new block, the public node packs the new block information into an rqbk message to carry out whole-network broadcast confirmation;
(4) after receiving the rqbk message, the public node of the non-new block request unpacks the confirmation information therein, and then locally calls a block consensus verification algorithm of the public node, which is common knowledge for those skilled in the art and is not described herein. The verification rule changes the confirmed identification variable Handled self-increment 1 in the whole network, and then the cfbk message is answered; the illegal message is discarded in the instruction queue MsgQueue without response after the misrule is verified;
(5) all public nodes check own new blocks at regular time to request for caching the MainBlockCache, find that the Handled variable of a certain new block to be selected meets a certain verification condition, the verification condition can be set manually according to needs, then the block information is transferred to a local main storage MainBase, and meanwhile, corresponding records in the cache MainBlockCache are deleted. Therefore, a standardized communication protocol format is provided for various block chain systems through the system; providing a bottom layer support for the integration of each block chain system platform with different architectures, and ensuring that all the block chain systems based on the protocol have peer-to-peer transmission authority and performance; the property of the block chain is completely matched for the de-centralization communication of the Peer-to-Peer; the application scene is wider, the scene fusion of public chains, private chains and alliance chains is achieved, and the complexity of side chain growth is simplified.
Embodiment 3, as shown in fig. 1, the communication protocol method for block chain common node consensus authentication includes the following steps,
(1) the public node online releases an access request rqlg message, at the moment, after receiving the message, the authentication node starts identity confirmation, establishes an exclusive end-to-end special line TCP connection channel with the request node, then generates identity authentication information corresponding to the request node and returns an rplg message to the request node;
(2) the public node performs self-confirmation according to the received identity authentication information, if the public node keeps the exclusive connection of the authentication node, the public node is used as a monitoring thread to wait for a local main thread command or call information sent by other nodes;
(3) after receiving the instruction of generating the new block, the public node packs the new block information into an rqbk message to carry out whole-network broadcast confirmation;
(4) after receiving the rqbk message, the public node requested by the non-new block unpacks the confirmation information in the rqbk message, and then locally calls a block consensus verification algorithm of the public node, wherein the block consensus verification algorithm is common knowledge to the technical personnel in the field and is not described herein again, the verification rule changes a confirmation identification variable Handled self-increment 1 in the whole network, and then the cfbk message is answered; the illegal message is discarded in the instruction queue MsgQueue without response after the misrule is verified;
(5) all public nodes check own new blocks at regular time to request for caching the MainBlockCache, if the Handled variable of a certain new block to be selected meets the condition that the Handled variable of the new block to be selected is larger than 1/2 of the Online user Online, the block information is transferred to a local main storage MainBase, and meanwhile, corresponding records in the cache MainBlockCache are deleted. Therefore, a standardized communication protocol format is provided for various block chain systems through the system; providing a bottom layer support for the integration of each block chain system platform with different architectures, and ensuring that all the block chain systems based on the protocol have peer-to-peer transmission authority and performance; the property of the block chain is completely matched for the de-centralization communication of the Peer-to-Peer; the application scene is wider, the scene fusion of public chains, private chains and alliance chains is achieved, and the complexity of side chain growth is simplified.
Claims (1)
1. A communication protocol method for block chain common node consensus authentication is characterized in that: the PBCP is packaged at an application layer of a TCP protocol model, and communication protocol messages of the block chain common node consensus authentication communication protocol method comprise a new block generation rqbk message, a new block confirmation cfbk message, a transaction block generation rqtd message, a transaction block confirmation cftd message, an access request rqlg message and a verification rplg message; the communication protocol method for block chain common node consensus authentication comprises the following steps,
(1) the public node online releases an access request rqlg message, at the moment, after receiving the message, the authentication node starts identity confirmation, establishes an exclusive end-to-end special line TCP connection channel with the request node, then generates identity authentication information corresponding to the request node and returns a verification rplg message to the request node;
(2) the public node performs self-confirmation according to the received identity authentication information, if the public node keeps the exclusive connection of the authentication node, the public node is used as a monitoring thread to wait for a local main thread command or call information sent by other nodes;
(3) after receiving the instruction of generating the new block, the public node packs the new block information into a new block generation rqbk message to carry out whole-network broadcast confirmation;
(4) after receiving the rqbk message generated by the new block, the public node requested by the non-new block unpacks the confirmation information in the rqbk message, then locally calls a block consensus verification algorithm of the public node, changes a confirmation identification variable Handled self-increment 1 in the whole network by a verification combination rule, and then answers the new block confirmation cfbk message; the illegal message is discarded in the instruction queue MsgQueue without response after the misrule is verified;
(5) all public nodes regularly check own new blocks to request for caching the MainBlockCache, if a Handled variable of a certain new block to be selected meets a certain verification condition, the block information is transferred to a local main storage MainBase, and meanwhile, corresponding records in the cache MainBlockCache are deleted;
and (5) the verification condition is that the processed variable of the new block to be selected is larger than 1/2 of the Online user currently Online.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711342609.7A CN108667790B (en) | 2017-12-14 | 2017-12-14 | Communication protocol method for block chain common node consensus authentication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711342609.7A CN108667790B (en) | 2017-12-14 | 2017-12-14 | Communication protocol method for block chain common node consensus authentication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108667790A CN108667790A (en) | 2018-10-16 |
CN108667790B true CN108667790B (en) | 2020-10-09 |
Family
ID=63785122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711342609.7A Expired - Fee Related CN108667790B (en) | 2017-12-14 | 2017-12-14 | Communication protocol method for block chain common node consensus authentication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108667790B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113055187B (en) * | 2021-04-23 | 2023-02-03 | 山东新一代信息产业技术研究院有限公司 | Narrow-band line transmission method for block chain consensus |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106529951A (en) * | 2016-12-30 | 2017-03-22 | 杭州云象网络技术有限公司 | Node consensus verification method under league chain network through asynchronous mode |
CN106603698A (en) * | 2016-12-28 | 2017-04-26 | 北京果仁宝科技有限公司 | Block chain consensus method based on DPOS and nodes |
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN107005574A (en) * | 2016-12-23 | 2017-08-01 | 深圳前海达闼云端智能科技有限公司 | Block generation method and device and block chain network |
CN107046542A (en) * | 2017-04-24 | 2017-08-15 | 杭州云象网络技术有限公司 | A kind of method that common recognition checking is realized using hardware in network level |
CN107124403A (en) * | 2017-04-14 | 2017-09-01 | 朱清明 | The generation method and computing device of common recognition block in block chain |
CN107196900A (en) * | 2017-03-24 | 2017-09-22 | 阿里巴巴集团控股有限公司 | A kind of method and device for verification of knowing together |
CN107220130A (en) * | 2017-05-12 | 2017-09-29 | 北京众享比特科技有限公司 | A kind of information common recognition method realized at the node of block chain, apparatus and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10862959B2 (en) * | 2016-11-28 | 2020-12-08 | Keir Finlow-Bates | Consensus system and method for adding data to a blockchain |
-
2017
- 2017-12-14 CN CN201711342609.7A patent/CN108667790B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN107005574A (en) * | 2016-12-23 | 2017-08-01 | 深圳前海达闼云端智能科技有限公司 | Block generation method and device and block chain network |
CN106603698A (en) * | 2016-12-28 | 2017-04-26 | 北京果仁宝科技有限公司 | Block chain consensus method based on DPOS and nodes |
CN106529951A (en) * | 2016-12-30 | 2017-03-22 | 杭州云象网络技术有限公司 | Node consensus verification method under league chain network through asynchronous mode |
CN107196900A (en) * | 2017-03-24 | 2017-09-22 | 阿里巴巴集团控股有限公司 | A kind of method and device for verification of knowing together |
CN107124403A (en) * | 2017-04-14 | 2017-09-01 | 朱清明 | The generation method and computing device of common recognition block in block chain |
CN107046542A (en) * | 2017-04-24 | 2017-08-15 | 杭州云象网络技术有限公司 | A kind of method that common recognition checking is realized using hardware in network level |
CN107220130A (en) * | 2017-05-12 | 2017-09-29 | 北京众享比特科技有限公司 | A kind of information common recognition method realized at the node of block chain, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN108667790A (en) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI724460B (en) | Block chain-based event processing method and device, and electronic equipment | |
CN107784546B (en) | Data transaction method and system based on block chain | |
US11886426B2 (en) | Probabilistic relay for efficient propagation in a blockchain network | |
WO2021228102A1 (en) | Method, device, and storage medium | |
CN107659549A (en) | A kind of flow path processing method and device and server based on event | |
WO2020147478A1 (en) | Block chain-based user feature value acquisition and application method and apparatus | |
US11546131B1 (en) | Method, controller, and computer-readable medium for network addressing on a distributed crypto ledger network | |
US20200082405A1 (en) | Method and system for client support in a blockchain network | |
CN107634948A (en) | Method for interchanging data and system | |
US10719825B2 (en) | Method and system for secure protocol exchange | |
EP4287102A1 (en) | Cross-chain transaction processing method and apparatus, electronic device, and storage medium | |
CN108667790B (en) | Communication protocol method for block chain common node consensus authentication | |
WO2024067529A1 (en) | Rdma-based link establishment method and apparatus, and device and storage medium | |
CN111431933A (en) | Settlement method and device based on block chain | |
CN109829708B (en) | Transaction processing system | |
CN115086311B (en) | Management system of enterprise cross-system service based on cloud service bus | |
CN110910217A (en) | Electronic ticket settlement method based on block chain | |
CN111683124B (en) | Data processing method and system for IPV6 chip card | |
CN113411338A (en) | Resource transaction method based on-chain-down cooperation of state channel | |
CN115250276A (en) | Distributed system and data processing method and device | |
CN112994894B (en) | Gateway-based single-thread request processing method and information verification AGENT | |
CN114841356A (en) | Internet of things-based joint learning engine overall architecture system | |
WO2019205023A1 (en) | Blockchain-based data management method and related system | |
CN111144777B (en) | Resource transfer method, device, electronic equipment and storage medium | |
KR101775351B1 (en) | System and method for trading over-the-counter |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201009 Termination date: 20211214 |
|
CF01 | Termination of patent right due to non-payment of annual fee |