CN111541689B - Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol - Google Patents
Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol Download PDFInfo
- Publication number
- CN111541689B CN111541689B CN202010317880.0A CN202010317880A CN111541689B CN 111541689 B CN111541689 B CN 111541689B CN 202010317880 A CN202010317880 A CN 202010317880A CN 111541689 B CN111541689 B CN 111541689B
- Authority
- CN
- China
- Prior art keywords
- network
- block chain
- block
- node
- network transmission
- 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
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- 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
-
- 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/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- 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/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a network transmission method suitable for a PBFT (provider-bound ft) type consensus protocol, which comprises the following steps: the network controller node receives state reporting information sent by each block chain node; the network controller node determines the network transmission strategy corresponding to each block chain node according to all the received state report information; and the network controller node respectively issues the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points. According to the invention, the network controller node allocates the network transmission strategy for each block link point, so that each block link point is transmitted according to the respective corresponding network transmission strategy, thus the randomness of transaction forwarding can be avoided, the block link points can be prevented from repeatedly receiving transaction information, and the waste of the message processing capacity of the bandwidth network and the node can be prevented.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a network transmission method suitable for a PBFT (provider-based data transfer) consensus protocol.
Background
The underlying data communications network of the blockchain is the infrastructure supporting the blockchain, and is typically implemented using peer-to-peer (P2P) technology. In a blockchain communication network, the transmission efficiency of transaction data and blockchain data has a decisive influence on the overall performance of the blockchain system. For example, the propagation speed of transaction data is related to the delay in transactions being executed and packed into blocks; the propagation speed of the block data is related to the transaction confirmation time and the probability of block chain divergence. In a practical blockchain system, the total bandwidth of data transmission of each node and the maximum number of connections that can be maintained are both limited, and how to maximize the throughput of the blockchain system by using limited network resources is a significant challenge in the optimization of the blockchain network at present.
The current mainstream blockchain systems (e.g., bitcoin and ether house) employ the classic Gossip protocol to propagate transaction information (transaction) and block information (block) in a blockchain network. In the Gossip protocol, each node randomly sends a message to its own neighbor node, which causes the nodes to receive the same repeated messages from different neighbor nodes, thereby wasting network bandwidth and increasing the pressure of the nodes to process messages, and the randomness of the Gossip protocol causes the uncertain delay of message transmission in the whole network, especially for the block chain system adopting common recognition algorithms such as PBFT (practical bypath fault tolerance), PoA (authority certificate), PoS (rights and interests certificate), and DPoS (proxy rights and interests certificate), the message transmission mechanism of random forwarding seriously reduces the performance of the block chain system.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a network transmission method suitable for PBFT-like consensus protocol, aiming at the defects of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a network transmission method suitable for a PBFT type consensus protocol is applied to a block chain network adopting the PBFT type consensus protocol, and the block chain network comprises a plurality of block chain nodes and a network controller node; the method comprises the following steps:
the network controller node receives state reporting information sent by each block chain node;
the network controller node determines the network transmission strategy corresponding to each block chain node according to all the received state report information;
and the network controller node respectively issues the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points.
The network transmission method applicable to the PBFT-like consensus protocol includes the following specific steps that the network controller node determines, according to all received state report information, a network transmission policy corresponding to each block link point:
the network controller node determines the network topology structure of the block chain network according to all the received state report information;
and the network controller node determines the network transmission strategy corresponding to each block link point based on the network topology structure.
The network transmission method suitable for the PBFT-type consensus protocol comprises a node connection list, a block data transmission list and a transaction data transmission list, wherein the node connection list is used for storing block chain nodes of network connection to be changed, the block data transmission list is used for block chain nodes of block data to be transmitted, and the transaction data transmission list is used for storing block chain nodes of transaction data to be transmitted
Before the network controller node receives the state reporting information sent by each block chain node, the method for network transmission suitable for the PBFT-based consensus protocol includes:
the network controller node establishes an encryption message channel with each block link point respectively, so that each block link point sends state reporting information to the network controller node through the encryption message channel.
The network transmission method suitable for the PBFT type consensus protocol is characterized by further comprising the following steps of:
the network controller node receives the state change information sent by the first block link node;
the network control node determines each second block chain link corresponding to the first block chain link according to the state change information; and sending control information to each determined second block node, so that each second block node updates its own stored network transmission strategy based on the control information.
The network transmission method suitable for the PBFT-type consensus protocol is characterized in that the state change information comprises one of registration information, logout information, block link point joining block chain network and block link point exiting block chain network.
The network transmission method suitable for the PBFT-based consensus protocol, wherein when the state change information is registration information, the method further comprises:
and the network control node determines a network connection strategy corresponding to the first block chain link point and issues the network connection strategy to the first block chain link point.
A block chain network adopts a PBFT type consensus protocol and comprises a plurality of block chain nodes and a network controller node; wherein the network controller node is configured to: receiving state reporting information sent by each block chain node; determining a network transmission strategy corresponding to each block link point according to all received state reporting information; and respectively issuing the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in a network transmission method adapted for a PBFT-like consensus protocol as described in any above.
Has the advantages that: compared with the prior art, the invention provides a network transmission method suitable for a PBFT (PBFT) type consensus protocol, which is applied to a block chain network with a plurality of block chain nodes and a network controller node; the method comprises the following steps: the network controller node receives state reporting information sent by each block chain node; the network controller node determines the network transmission strategy corresponding to each block chain node according to all the received state report information; and the network controller node respectively issues the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points. According to the invention, the network controller node distributes the network transmission strategy for each block link point, so that each block link point is transmitted according to the respective corresponding network transmission strategy, thus the randomness of transaction forwarding can be avoided, the block link points can be prevented from repeatedly receiving transaction information, and the waste of the bandwidth network and the message processing capacity of the node can be prevented.
Drawings
Fig. 1 is a flowchart of a network transmission method suitable for a PBFT-like consensus protocol according to the present invention.
Fig. 2 is a schematic diagram of a work flow in the network transmission method suitable for the PBFT-based consensus protocol according to the present invention.
Fig. 3 is a schematic structural diagram of a terminal device provided in the present invention.
Detailed Description
The invention provides a network transmission method suitable for a PBFT (basic transmission and reception) type consensus protocol, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor has found through research that the current mainstream block chain systems (e.g., bitcoin and ether house) use the classic Gossip protocol to propagate transaction information (transaction) and block information (block) in the block chain network. In the Gossip protocol, each node randomly sends a message to its own neighbor node, which causes the nodes to receive the same repeated messages from different neighbor nodes, thereby wasting network bandwidth and increasing the pressure of the nodes to process messages, and the randomness of the Gossip protocol causes the uncertain delay of message transmission in the whole network, especially for the block chain system adopting common recognition algorithms such as PBFT (practical bypath fault tolerance), PoA (authority certificate), PoS (rights and interests certificate), and DPoS (proxy rights and interests certificate), the message transmission mechanism of random forwarding seriously reduces the performance of the block chain system.
In order to solve the above problem, in the embodiment of the present invention, a network controller node is arranged in a blockchain network, and state reporting information sent by each blockchain node is received by the network controller node; determining a network transmission strategy corresponding to each block link point according to all received state report information; and finally, respectively issuing the network transmission strategies corresponding to the block chain nodes so as to obtain the message transmission of the block chain nodes according to the network transmission strategies corresponding to the block chain nodes. In this embodiment, a network controller node allocates a network transmission policy to each block link point, so that each block link point transmits according to its corresponding network transmission policy, which may avoid randomness of transaction forwarding, and thus may avoid repeated receipt of transaction information by the block link points, thereby preventing waste of message processing capabilities of the bandwidth network and the node.
The invention will be further explained by the description of the embodiments with reference to the drawings.
The present implementation provides a network transmission method applicable to a PBFT-based consensus protocol, as shown in fig. 1 and 2, and is applied to a block chain network adopting the PBFT-based consensus protocol, where the block chain network includes a plurality of block chain nodes and a network controller node; the method comprises the following steps:
s10, the network controller node receives the state reporting information sent by each block chain node;
s20, the network controller node determines the network transmission strategy corresponding to each block link point according to all the received state report information;
and S30, the network controller node issues the network transmission strategy corresponding to each block link point respectively so as to obtain the message transmission of each block link point according to the network transmission strategy corresponding to each block link point.
Specifically, the network controller node is a control node disposed in a block chain network; the network controller node may communicate with each of the blockchain nodes in the blockchain network, where the network controller node is an independently operating node or may be a blockchain node in the blockchain network that operates together with the blockchain network. In addition, the network controller node is not used for forwarding the transaction information and/or the block information, and it can be understood that the network controller node is only used for sending the control information to the block link nodes in the block chain network, and does not receive the transaction information and/or the block information forwarded by the block link nodes, and does not forward the transaction information and/or the block information to the block link nodes at the same time. Of course, in practical applications, the network controller node may be implemented in a centralized manner, for example, using an independent server; it may also be implemented in a decentralized manner, for example, to be implemented in a smart contract for blockchains.
Further, the network controller node may be connected to each block link point and may transfer information in both directions, wherein the network controller node transmits network control information to each block link point; each block chain node sends state reporting information to the network controller node. The network control message is used for the network controller node to schedule and control the network transmission behavior of the block chain node; the state reporting message is used for the blockchain node to send its state information to the network controller node, where the state information includes, but is not limited to, a node type, a connection node list, states of all connections, its own block synchronization state, and the like. In a specific implementation manner of this embodiment, a network control module may be disposed in the network controller node, and a network transmission module may be disposed in each block link node; the network controller node carries out bidirectional communication with the network transmission module in each block chain node through the network control module, so that the network controller node can send a network control message to the block chain link node and can also receive state reporting information sent by each block chain node. The network control module and the network transmission module are connected in a secure connection manner, for example, a TCP protocol or the like.
Further, in an implementation manner of this embodiment, before the network controller node receives the status report information sent by each blockchain node, the method includes:
the network controller node establishes an encryption message channel with each block link point respectively, so that each block link point sends state reporting information to the network controller node through the encryption message channel.
Specifically, the encrypted message channel refers to a message channel formed by key exchange between a network controller node and a block chain node; when the network controller node communicates with the block chain node, the exchanged key is used for encrypting the message to be transmitted, so that the security of message transmission is improved. For example, the network controller node establishes a connection with the block link point through the TCP protocol, and then performs key determination by using the Diffie-Hellman key exchange algorithm to establish a secure and stable encrypted message channel.
Further, in step S20, the status report information is status information of the block chain node itself, where the block chain node sends the status report information to the network controller node, where the status information includes, but is not limited to, a node type, a connection node list, statuses of all connections, and a block synchronization status of itself. In an implementation manner of this embodiment, after the block link point is connected to the network controller node, the state report information ConnectReqMsg may be sent to the network controller node, where the state report information may carry state information such as the node type of the block link point, the connected node list pList, all connection states connectStatus, and the block synchronization state currentHash.
The network transmission strategy comprises a node connection list opT PeerList, a block data transmission list blockPeerList and a transaction data transmission list txPeerLis, wherein the node connection list peerList is used for block link points of network connection to be changed, the block data transmission list blockPeerList is used for storing block link points of block data to be transmitted, and the transaction data transmission list txPeerList is used for storing block link points of the transaction data to be transmitted. In addition, the network controller node determines the optseelist, blockPeerList and txPeerList corresponding to each block link point, encapsulates the optseelist, blockPeerList and txPeerList into a connectitressg message, and feeds back and sends the connectitressg message to each block link node. Therefore, the network transmission strategies corresponding to the link points of each block are different from each other.
In an implementation manner of this embodiment, the determining, by the network controller node, the network transmission policy corresponding to each block link point according to all the received state reporting information specifically includes:
the network controller node determines the network topology structure of the block chain network according to all the received state report information;
and the network controller node determines the network transmission strategy corresponding to each block link point based on the network topology structure.
Specifically, the network topology is an overall topology structure diagram of a block chain network, block chain nodes of network connection to be changed, block chain link points of block data to be transmitted and block chain link points of transaction data to be transmitted, which correspond to the block chain link points, can be determined based on the network topology structure, and a node connection list, a block data transmission list and a transaction data transmission list are respectively generated for the block chain link points according to the block chain nodes of network connection to be changed, the block chain link points of the block data to be transmitted and the block chain link points of the transaction data to be transmitted, which correspond to the block chain link points, so as to obtain a network transmission strategy corresponding to the block chain link points.
Further, the generation rule of the network transmission policy may be preset, and after the network topology is generated, the network transmission policy may be generated according to the preset rule. Wherein, the generation rule may be: for the new transaction information, forwarding the new transaction information to all branches including the verifier node; for the new block information, forwarding the new block information to all common node branches; for communication messages of the PBFT consensus protocol, the communication messages are forwarded to other verifier nodes. Therefore, when the data are forwarded, the block chain nodes transmit the data according to the corresponding network transmission strategy, all transaction messages can be quickly transmitted to the verifier nodes, the transaction can be executed as soon as possible and packaged into the latest block, and the message delay is reduced. In addition, newly packaged block data can be transmitted to all common nodes, so that the transaction confirmation time is shortened, and meanwhile, the situation that the blocks are repeatedly sent to the nodes with the blocks can be avoided, so that the waste of bandwidth networks and the message processing capacity of the nodes is avoided.
In summary, the present embodiment provides a network transmission method applicable to a PBFT-based consensus protocol, which is applied to a blockchain network having a plurality of blockchain nodes and a network controller node; the method comprises the following steps: the network controller node receives state reporting information sent by each block chain node; the network controller node determines the network transmission strategy corresponding to each block link point according to all the received state report information; and the network controller node respectively issues the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points. The embodiment uses the design concept of a Software Defined Network (SDN), namely, the control plane and the data plane of a separation block chain network realize the accurate control of the transmission of transaction data and block data; meanwhile, in the embodiment, the network controller node allocates the network transmission strategy for each block link point, so that each block link point is transmitted according to the respective corresponding network transmission strategy, thereby avoiding the randomness of transaction forwarding, avoiding the block link points from repeatedly receiving transaction information, and preventing the waste of the message processing capacity of the bandwidth network and the node.
Further, in one embodiment, after determining the network transmission policy corresponding to each block link point, the network controller node may disconnect from each block link point. When the state of the block chain network changes, the changed block chain link point is connected with the network controller node, and the state change information is sent to the network controller node, so that the network controller node adjusts the network transmission strategy of the block chain node in the block chain network according to the state change information. The state sending change comprises that a new block chain node is registered to the block chain network, a block chain link point in the block chain network stops working, the block chain link point in the block chain network restarts working and the block chain node in the block chain network is cancelled. Correspondingly, the network transmission method suitable for the PBFT-like consensus protocol may further include:
h10, the network controller node receives the state change information sent by the first block link node;
h20, the network control node determines each second block chain link corresponding to the first block chain link according to the state change information; and sending control information to each determined second block node, so that each second block node updates its own stored network transmission strategy based on the control information.
Specifically, the state change information may include registration information, deregistration information, a block link point joining a block chain network, and a block link point exiting the block chain network, where the registration information indicates that there is a block link point newly registered to the block chain network; the logout message indicates that block chain nodes in the block chain network logout from the block chain network; adding the block chain link point into the block chain network represents that the registered node in the block chain network is added into the block chain network again; the node of the block chain exits the block chain network means that the registered node in the block chain network exits the block chain network.
Further, when the state change information is registration information register peer msg, the network control node determines each second block link corresponding to the first block link point according to the state change information, and sends control information to each second block link point, so that each second block link point adjusts its own network transmission measurement, and thus each second block link point can transmit data to the first block link point. The network controller node is in an update Updating state, the controlled information may include addtxpagermsg information and adddlockpeermsg information, the addtxpagermsg information indicates that the second block link point must transmit transaction data to the first block link point, and the adddlockpeermsg information indicates that the second block link point must transmit block data to the first block link point. In addition, when the state change information is registration information register Peer Msg, the network control node determines a network connection strategy corresponding to the first block link point and issues the network connection strategy to the first block link node, so that the first block link point can transmit data according to the network connection strategy corresponding to the first block link point.
Further, when the state change information is that a block link point joins in a block chain network or exits from the block chain network, the network controller node is in a Changing state, and the control information may include transaction data change information RemoveTxPeerMsg and block data change information RemoveBlockPeerMsg; the RemoveBlockPermsg is used for controlling each second block link point to start/stop transmitting transaction data to the first block link point, and the RemoveBlockPeermsg is used for controlling each second block link point to start/stop transmitting block data to the first block link point. In addition, when the state change information is logout information, the network controller node is in a logout exit state, the control information comprises logout information UnregisterPeerMsg, and UnregisterPeerMsg information is used for deleting the first block link point from each second block link point, and meanwhile, the network controller node deletes the first block link point to ensure the smoothness of network message transmission.
Based on the above network transmission method suitable for the PBFT-based consensus protocol, this embodiment provides a block chain network, where the block chain network adopts the PBFT-based consensus protocol, and includes a plurality of block chain nodes and a network controller node; wherein the network controller node is configured to: receiving state reporting information sent by each block chain node; determining a network transmission strategy corresponding to each block link point according to all received state reporting information; and respectively issuing the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points.
Based on the foregoing network transmission method suitable for the PBFT-based consensus protocol, the present invention further provides a terminal device, as shown in fig. 3, including at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the mobile terminal are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. A network transmission method suitable for a PBFT type consensus protocol is characterized by being applied to a block chain network adopting the PBFT type consensus protocol, wherein the block chain network comprises a plurality of block chain nodes and a network controller node; the method comprises the following steps:
the network controller node receives state reporting information sent by each block chain node;
the network controller node determines the network transmission strategy corresponding to each block chain node according to all the received state report information;
and the network controller node respectively issues the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the corresponding network transmission strategies.
2. The network transmission method applicable to the PBFT-based consensus protocol according to claim 1, wherein the determining, by the network controller node according to all the received status report information, the network transmission policy corresponding to each of the block link points specifically comprises:
the network controller node determines the network topology structure of the block chain network according to all the received state reporting information;
and the network controller node determines the network transmission strategy corresponding to each block link point based on the network topology structure.
3. The network transmission method applicable to the PBFT-based consensus protocol according to claim 1 or 2, wherein the network transmission policy includes a node connection list, a block data transmission list, and a transaction data transmission list, wherein the node connection list is used to store block link points of network connections to be changed, the block data transmission list is used to store block link points of block data to be transmitted, and the transaction data transmission list is used to store block link nodes of transaction data to be transmitted.
4. The network transmission method applicable to the PBFT-based consensus protocol according to claim 1, wherein before the network controller node receives the status report information sent by each blockchain node, the method comprises:
the network controller node establishes an encryption message channel with each block link point respectively, so that each block link point sends state reporting information to the network controller node through the encryption message channel.
5. The method for network transmission adapted for PBFT-like consensus protocol according to claim 1, further comprising:
the network controller node receives state change information sent by a first block chain node;
the network control node determines each second block chain node corresponding to the first block chain node according to the state change information; and sending control information to each determined second block node, so that each second block node updates its own stored network transmission strategy based on the control information.
6. The method of claim 5, wherein the status change information comprises one of registration information, de-registration information, block link point joining in block chain network, and block link point exiting block chain network.
7. The network transmission method applicable to the PBFT-based consensus protocol according to claim 5, wherein when the status change information is a registration information, the method further comprises:
and the network control node determines a network connection strategy corresponding to the first block chain link point and issues the network connection strategy to the first block chain link point.
8. A block chain network adopts a PBFT type consensus protocol and comprises a plurality of block chain nodes and a network controller node; wherein the network controller node is configured to: receiving state reporting information sent by each block chain node; determining a network transmission strategy corresponding to each block link point according to all received state reporting information; and respectively issuing the network transmission strategies corresponding to the block chain link points so as to obtain the message transmission of the block chain link points according to the network transmission strategies corresponding to the block chain link points.
9. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the network transmission method adapted for PBFT-like consensus protocol according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010317880.0A CN111541689B (en) | 2020-04-21 | 2020-04-21 | Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010317880.0A CN111541689B (en) | 2020-04-21 | 2020-04-21 | Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111541689A CN111541689A (en) | 2020-08-14 |
CN111541689B true CN111541689B (en) | 2022-07-12 |
Family
ID=71975022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010317880.0A Active CN111541689B (en) | 2020-04-21 | 2020-04-21 | Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111541689B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113079082B (en) * | 2020-09-25 | 2022-02-18 | 支付宝(杭州)信息技术有限公司 | Message transmission method and device |
CN114363357B (en) * | 2021-12-28 | 2024-01-19 | 上海沄熹科技有限公司 | Distributed database network connection management method based on Gossip |
CN117134998B (en) * | 2023-10-26 | 2024-03-19 | 国网冀北电力有限公司 | SDN-based power information authentication method of Gossip blockchain |
CN117240900B (en) * | 2023-11-10 | 2024-04-12 | 广东省电信规划设计院有限公司 | Block chain node discovery and networking method and device based on software defined network |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111034134A (en) * | 2017-08-17 | 2020-04-17 | 诺基亚通信公司 | Selection of network routing topology |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070242607A1 (en) * | 2006-04-13 | 2007-10-18 | Tellabs Operations, Inc. | Method and system for controlling distribution of network topology information |
CN110163756B (en) * | 2019-05-28 | 2023-07-18 | 深圳市迅雷网络技术有限公司 | Transaction method, system, server and blockchain system based on alliance chain |
CN110992177B (en) * | 2019-10-31 | 2023-09-12 | 中国科学院计算技术研究所 | Block chain flux improving method and system based on out-of-chain channel route evaluation mechanism |
CN111526213A (en) * | 2019-12-03 | 2020-08-11 | 丁奇娜 | Equipment control system based on block chain |
-
2020
- 2020-04-21 CN CN202010317880.0A patent/CN111541689B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111034134A (en) * | 2017-08-17 | 2020-04-17 | 诺基亚通信公司 | Selection of network routing topology |
Also Published As
Publication number | Publication date |
---|---|
CN111541689A (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111541689B (en) | Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol | |
CN101573940B (en) | System and method for TCP high availability | |
CN106656784B (en) | Data stream propagation system and method for block chain network | |
US9585113B2 (en) | Method and device for time-synchronization in ad hoc network | |
TWI575917B (en) | Establishing reliable routes without expensive mesh peering | |
US9338725B2 (en) | Mobile device for use in a dynamic and stochastic asynchronously updated wireless ad-hoc network | |
JP6540892B2 (en) | Device in wireless peer-to-peer network, wireless communication system and control method | |
CN108698227B (en) | Cloud-controlled information transmission method, robot and swarm robot system | |
US10652730B2 (en) | Traffic-aware group reformation in a multi-group P2P network | |
US10693774B1 (en) | Modular architecture for computer network operations | |
Wei et al. | Creating efficient blockchains for the Internet of Things by coordinated satellite-terrestrial networks | |
JP6597802B2 (en) | Group formation control in multi-group peer-to-peer networks | |
JP2017028589A (en) | Communication device, radio communication device, and communication method | |
JPWO2013132540A1 (en) | Information processing system | |
JP2022172168A (en) | Point-to-point database synchronization over transport protocol | |
US9769856B2 (en) | Communication communication system, terminal, communication control apparatus, method and program | |
Paul et al. | On design and implementation of a scalable and reliable Sync system for delay tolerant challenged networks | |
CN112491935A (en) | Water wave type broadcasting method and system for block chain | |
JP6526836B2 (en) | Switching network synchronization method and switching device, access device, storage medium | |
CN103516601A (en) | Method, device and system for route transmission | |
TWI727519B (en) | Terminal device, communication system and communication method | |
KR20190108255A (en) | Method and apparatus for controlling mobile ad-hoc network based on software-defined network | |
KR101581678B1 (en) | System for sharing data using transmitting order | |
WO2012140760A1 (en) | Relay device and relay method | |
JPWO2008142780A1 (en) | COMMUNICATION METHOD, COMMUNICATION DEVICE, PROGRAM, AND COMMUNICATION 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 |