CN111181797B - Block chain consensus mechanism verification method based on interceptor - Google Patents
Block chain consensus mechanism verification method based on interceptor Download PDFInfo
- Publication number
- CN111181797B CN111181797B CN201811334070.5A CN201811334070A CN111181797B CN 111181797 B CN111181797 B CN 111181797B CN 201811334070 A CN201811334070 A CN 201811334070A CN 111181797 B CN111181797 B CN 111181797B
- Authority
- CN
- China
- Prior art keywords
- interceptor
- data
- block chain
- factory
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- 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/22—Parsing or analysis of headers
Abstract
The invention discloses a block chain consensus mechanism verification method and a system based on an interceptor, wherein the method comprises the following steps: (1) a block chain interceptor intercepts or captures data packets between the consensus nodes; (2) the block chain interceptor analyzes and splices the captured data packets; (3) the block chain interceptor judges whether the ratio of the number of the received nodes to the total number of the verification nodes is within a certain value range; (4) the block chain interceptor sends encrypted test result data to an interceptor data factory; (5) the interceptor data factory decrypts and verifies the data; (6) the factory explores the relation of the block chain link points according to the IP of the block chain nodes; (7) a stage of recognizing consensus by a factory according to the building block time nodes; (8) the factory verifies a plurality of stages specified by a block chain consensus protocol; (9) the interceptor data factory judges whether each stage meets the BFT protocol; and outputting a test result, and finishing the test. The invention can dynamically verify the block chain consensus mechanism.
Description
Technical Field
The invention relates to the field of block chain test, in particular to a block chain consensus mechanism verification method based on an interceptor.
Background
In recent years, the block chain test technology cannot keep up with the development of the block chain technology, and the block chain test is greatly different from the traditional software test, such as the block chain has a test between nodes, has a byzantine fault, and the like, so that the block chain test cannot use the traditional software test tool or method. The block chain consensus algorithm is difficult to verify, and the method can solve the problem of dynamic verification of a block chain consensus mechanism.
Disclosure of Invention
In view of the above, an objective of the present invention is to provide a method for verifying a blockchain consensus mechanism based on an interceptor, so as to solve the problem of verifying the current blockchain consensus mechanism, where the method for verifying the blockchain consensus mechanism based on the interceptor includes:
s1, the blockchain interceptor intercepts the data packet between the common identification nodes. The block chain test interceptor intercepts all messages sent and received between the consensus nodes in real time;
s2, the blockchain interceptor parses the captured packet. The block chain interceptor analyzes and analyzes the captured data packet by using a private key of the verification node;
and S3, splicing the parsed data by the blockchain interceptor. The block chain interceptor performs splicing operation on the analyzed data;
s4, the block chain interceptor judges whether the ratio of the number of the received nodes to the total number of the verification nodes is in a certain value range. The block chain interceptor analyzes the captured data packet and analyzes whether the ratio of the number of the received nodes to the total number of the verification nodes is within a certain range;
s5, the blockchain interceptor sends the encrypted test result data to the interceptor data factory. The block chain test interceptor also sends the data to an interceptor data factory after intercepting the data between the consensus nodes;
and S6, the interceptor data factory decrypts and verifies the data. The interceptor data factory decrypts and verifies the data after receiving the data of each block chain test interceptor;
s7, the interceptor data factory explores the relation of the block chain nodes according to the block chain node IP. The interceptor data factory analyzes the IP address of the node according to the received data and explores the relation of the block chain nodes;
s8, the interceptor data factory identifies the consensus phase based on the block time node. The interceptor data factory identifies each stage according to the time dimension according to the received data;
s9, the interceptor data factory determines whether the stage specified by the blockchain consensus protocol is included. The interceptor data factory identification consensus stage judges whether the stage specified by the block chain consensus protocol is included;
s10, the interceptor data plant determines whether each stage satisfies the BFT protocol. The interceptor data factory judges whether each stage meets the BFT protocol;
and S11, outputting the test result by the interceptor data factory, and ending the test. And the interceptor data factory outputs a test result, and the test result is stored in a database to finish the test.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. The objects and features of the present invention will become more apparent in view of the following description taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 is an interceptor workflow diagram.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following respectively describes the embodiments of the present invention, and the specific processes are as follows:
s1, the block chain test interceptor A intercepts all messages sent and received instantly between the consensus nodes;
s2, the block chain interceptor A uses the private key of the verification node to analyze and analyze the captured data packet;
s3, the block chain interceptor A splices the analyzed data;
s4, the block chain interceptor A analyzes the captured data packet and analyzes whether the ratio of the number of the received nodes to the total number of the verification nodes is within a certain range;
s5, the blockchain test interceptor A intercepts data between the common identification nodes and then sends the data to an interceptor data factory B;
s6, the interceptor data factory B decrypts and verifies the data after receiving the data of each block chain test interceptor A;
s7, the interceptor data factory B analyzes the IP address of the node according to the received data and explores the relation of the block chain link points;
s8, the interceptor data factory B identifies each stage according to the time dimension according to the received data;
s9, the interceptor data factory B identifies the consensus stage, and judges whether the stage specified by the block chain consensus protocol is included;
s10, judging whether each stage meets BFT protocol by the interceptor data factory B;
and S11, outputting the test result by the interceptor data factory B, storing the test result in a database, and completing the test.
Claims (6)
1. A block chain consensus mechanism verification method based on an interceptor is characterized in that the block chain consensus mechanism dynamic verification method comprises the following steps:
s1, the block chain interceptor intercepts the data packet between the consensus nodes;
the block chain test interceptor intercepts all messages sent and received between the consensus nodes in real time;
s2, the block chain interceptor analyzes the captured data packet;
the block chain interceptor analyzes and analyzes the captured data packet by using a private key of the verification node;
s3, splicing the analyzed data by the block chain interceptor;
the block chain interceptor carries out splicing operation on the analyzed data;
s4, the block chain interceptor judges whether the ratio of the number of the received nodes to the total number of the verification nodes is within a certain value range;
the block chain interceptor analyzes the captured data packet and analyzes whether the ratio of the number of the received nodes to the total number of the verification nodes is within a certain range;
s5, the block chain interceptor sends the encrypted test result data to the interceptor data factory;
the block chain test interceptor also sends the data to an interceptor data factory after intercepting the data between the consensus nodes;
s6, the interceptor data factory decrypts and verifies the data;
the interceptor data factory decrypts and verifies the data after receiving the data of each block chain test interceptor;
s7, the interceptor data factory explores the relation of the block chain link points according to the IP of the block chain nodes;
the interceptor data factory analyzes the IP address of the node according to the received data and explores the relation of the block chain nodes;
s8, the interceptor data factory identifies the consensus stage according to the block building time node;
the interceptor data factory identifies each stage according to the received data and the time dimension;
s9, the interceptor data factory judges whether the stage specified by the block chain consensus protocol is included;
the interceptor data factory identification consensus stage judges whether the stage specified by the block chain consensus protocol is included;
s10, the interceptor data factory judges whether each stage meets BFT protocol;
the interceptor data factory judges whether each stage meets the BFT protocol;
s11, outputting a test result by the interceptor data factory, and ending the test;
and the interceptor data factory outputs a test result, and the test result is stored in a database to finish the test.
2. The method as claimed in claim 1, wherein the blockchain interceptor is deployed on a network where the blockchain verifying node is located, and there may be one or more blockchain testing interceptors on the blockchain network.
3. The method as claimed in claim 1, wherein the blockchain interceptor supports multiple network protocols and is capable of capturing data on a blockchain network.
4. The method for verifying the interceptor-based blockchain consensus mechanism according to claim 1, wherein S3 comprises: verifying data format, verifying data signature and verifying data IP address.
5. The method as claimed in claim 1, wherein the interceptor data factory is capable of testing the blockchain system and collecting and analyzing test result data from the blockchain tester.
6. The method of claim 1, wherein at S4, different BFT consensus mechanisms have different range values.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811334070.5A CN111181797B (en) | 2018-11-09 | 2018-11-09 | Block chain consensus mechanism verification method based on interceptor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811334070.5A CN111181797B (en) | 2018-11-09 | 2018-11-09 | Block chain consensus mechanism verification method based on interceptor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111181797A CN111181797A (en) | 2020-05-19 |
CN111181797B true CN111181797B (en) | 2022-05-27 |
Family
ID=70622017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811334070.5A Active CN111181797B (en) | 2018-11-09 | 2018-11-09 | Block chain consensus mechanism verification method based on interceptor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111181797B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176970A (en) * | 2018-11-09 | 2020-05-19 | 北京天德科技有限公司 | Block chain test architecture and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
CN107450981A (en) * | 2017-05-31 | 2017-12-08 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method and apparatus |
CN108600987A (en) * | 2018-04-28 | 2018-09-28 | 深圳市创艺工业技术有限公司 | Medical environment data management system based on block chain technology |
CN108614748A (en) * | 2018-04-19 | 2018-10-02 | 上海分布信息科技有限公司 | A kind of method of Byzantine failure tolerance and its economic governing system of logical card |
CN108616596A (en) * | 2018-05-09 | 2018-10-02 | 南京邮电大学 | It is adaptively known together method based on the block chain that dynamic authorization and network environment perceive |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10158527B2 (en) * | 2016-10-28 | 2018-12-18 | International Business Machines Corporation | Changing an existing blockchain trust configuration |
-
2018
- 2018-11-09 CN CN201811334070.5A patent/CN111181797B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450981A (en) * | 2017-05-31 | 2017-12-08 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method and apparatus |
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
CN108614748A (en) * | 2018-04-19 | 2018-10-02 | 上海分布信息科技有限公司 | A kind of method of Byzantine failure tolerance and its economic governing system of logical card |
CN108600987A (en) * | 2018-04-28 | 2018-09-28 | 深圳市创艺工业技术有限公司 | Medical environment data management system based on block chain technology |
CN108616596A (en) * | 2018-05-09 | 2018-10-02 | 南京邮电大学 | It is adaptively known together method based on the block chain that dynamic authorization and network environment perceive |
Also Published As
Publication number | Publication date |
---|---|
CN111181797A (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10135702B2 (en) | Methods, systems, and computer readable media for testing network function virtualization (NFV) | |
CN109802953B (en) | Industrial control asset identification method and device | |
US20160155128A1 (en) | Device identification based on deep fingerprint inspection | |
US20100095370A1 (en) | Selective packet capturing method and apparatus using kernel probe | |
CN112134762B (en) | Testing method, device, terminal and storage medium for block chain network structure | |
US20160380867A1 (en) | Method and System for Detecting and Identifying Assets on a Computer Network | |
US9276819B2 (en) | Network traffic monitoring | |
CN111431758A (en) | Cloud network equipment testing method and device, storage medium and computer equipment | |
CN113238536B (en) | Industrial control system network vulnerability identification method and device and related equipment thereof | |
CN111182525A (en) | Method and device for storing data | |
CN109039959B (en) | SDN rule consistency judgment method and related device | |
CN111290958A (en) | Method and device for debugging intelligent contract | |
JP2019033312A5 (en) | ||
CN111181797B (en) | Block chain consensus mechanism verification method based on interceptor | |
CN104852921A (en) | Test system and method for protecting open port from attacking for network equipment | |
CN115001829A (en) | Protocol vulnerability mining method, device, equipment and storage medium | |
CN107360062B (en) | DPI equipment identification result verification method and system and DPI equipment | |
CN108595320B (en) | Test method and device | |
KR102365658B1 (en) | Method for classifying traffic and apparatus thereof | |
JP5768722B2 (en) | Program for verification test, information processing method, and information processing apparatus | |
CN111181796B (en) | Block chain consensus protocol testing method and system based on enabler | |
CN111176970A (en) | Block chain test architecture and system | |
US9628364B2 (en) | Test automation system and method for detecting change in signature of internet application traffic protocol | |
US8711706B2 (en) | Protocol delay measuring device and protocol delay measuring method | |
EP3545658B1 (en) | Evaluation and generation of a whitelist |
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 |