CN111541689A - 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 PDF

Info

Publication number
CN111541689A
CN111541689A CN202010317880.0A CN202010317880A CN111541689A CN 111541689 A CN111541689 A CN 111541689A CN 202010317880 A CN202010317880 A CN 202010317880A CN 111541689 A CN111541689 A CN 111541689A
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.)
Granted
Application number
CN202010317880.0A
Other languages
Chinese (zh)
Other versions
CN111541689B (en
Inventor
杨晴
谢浩耿
张坤茂
张胜利
王晖
王滔滔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen University filed Critical Shenzhen University
Priority to CN202010317880.0A priority Critical patent/CN111541689B/en
Publication of CN111541689A publication Critical patent/CN111541689A/en
Application granted granted Critical
Publication of CN111541689B publication Critical patent/CN111541689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic 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)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (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 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.

Description

Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol
Technical Field
The invention relates to the technical field of block chains, in particular to a network transmission method suitable for a PBFT (provider-bound ft) type 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 PBFT type consensus protocol is applied to a block chain network adopting PBFR 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, wherein the determining, by the network controller node, the network transmission policy corresponding to each block link point according to all the received state report information specifically includes:
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.
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-based consensus protocol further comprises the following steps:
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 PBFR-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-based 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 a PBFR-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.
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 connection with the block link point through the TCP protocol, and then adopts the Diffie-Hellman key exchange algorithm to perform key determination so as 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 is based on a network connection scheme formed by a preset forwarding rule, wherein the network transmission strategy comprises a node connection list optPeerList, a block data transmission list blockPeerList and a transaction data transmission list txPeerLis, 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 nodes 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 reporting 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 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 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 in 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 first block link node and sends state change information;
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, logout 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 in the block chain network; the logout message indicates that a block chain node in the block chain network logs out 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 PeerMsg, 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 PBFR-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 (communication 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 software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
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 a PBFR 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 network transmission strategies corresponding to the block chain link points.
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 applicable to the PBFT-like consensus protocol according to claim 1, further comprising:
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.
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 PBFR-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.
CN202010317880.0A 2020-04-21 2020-04-21 Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol Active CN111541689B (en)

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 true CN111541689A (en) 2020-08-14
CN111541689B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079082A (en) * 2020-09-25 2021-07-06 支付宝(杭州)信息技术有限公司 Message transmission method and device
CN114363357A (en) * 2021-12-28 2022-04-15 山东浪潮科学研究院有限公司 Distributed database network connection management method based on Gossip
CN117134998A (en) * 2023-10-26 2023-11-28 国网冀北电力有限公司 SDN-based power information authentication method of Gossip blockchain
CN117240900A (en) * 2023-11-10 2023-12-15 广东省电信规划设计院有限公司 Block chain node discovery and networking method and device based on software defined network

Citations (5)

* Cited by examiner, † Cited by third party
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
CN110163756A (en) * 2019-05-28 2019-08-23 深圳市网心科技有限公司 A kind of method of commerce based on alliance's chain, system, server and block catenary system
CN110891091A (en) * 2019-12-03 2020-03-17 丁奇娜 Block chain-based equipment control method and device and server
CN110992177A (en) * 2019-10-31 2020-04-10 中国科学院计算技术研究所 Block chain flux improving method and system based on off-chain channel route evaluation mechanism
CN111034134A (en) * 2017-08-17 2020-04-17 诺基亚通信公司 Selection of network routing topology

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN111034134A (en) * 2017-08-17 2020-04-17 诺基亚通信公司 Selection of network routing topology
CN110163756A (en) * 2019-05-28 2019-08-23 深圳市网心科技有限公司 A kind of method of commerce based on alliance's chain, system, server and block catenary system
CN110992177A (en) * 2019-10-31 2020-04-10 中国科学院计算技术研究所 Block chain flux improving method and system based on off-chain channel route evaluation mechanism
CN110891091A (en) * 2019-12-03 2020-03-17 丁奇娜 Block chain-based equipment control method and device and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079082A (en) * 2020-09-25 2021-07-06 支付宝(杭州)信息技术有限公司 Message transmission method and device
CN113079082B (en) * 2020-09-25 2022-02-18 支付宝(杭州)信息技术有限公司 Message transmission method and device
US11463278B2 (en) 2020-09-25 2022-10-04 Alipay (Hangzhou) Information Technology Co., Ltd. Message transmission methods and apparatuses
CN114363357A (en) * 2021-12-28 2022-04-15 山东浪潮科学研究院有限公司 Distributed database network connection management method based on Gossip
CN114363357B (en) * 2021-12-28 2024-01-19 上海沄熹科技有限公司 Distributed database network connection management method based on Gossip
CN117134998A (en) * 2023-10-26 2023-11-28 国网冀北电力有限公司 SDN-based power information authentication method of Gossip blockchain
CN117134998B (en) * 2023-10-26 2024-03-19 国网冀北电力有限公司 SDN-based power information authentication method of Gossip blockchain
CN117240900A (en) * 2023-11-10 2023-12-15 广东省电信规划设计院有限公司 Block chain node discovery and networking method and device based on software defined network
CN117240900B (en) * 2023-11-10 2024-04-12 广东省电信规划设计院有限公司 Block chain node discovery and networking method and device based on software defined network

Also Published As

Publication number Publication date
CN111541689B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN111541689B (en) Network transmission method suitable for PBFT (basic packet transport function) type consensus protocol
CN106656784B (en) Data stream propagation system and method for block chain network
CN101573940B (en) System and method for TCP high availability
US9585113B2 (en) Method and device for time-synchronization in ad hoc network
JP6540892B2 (en) Device in wireless peer-to-peer network, wireless communication system and control method
CN104811459A (en) Processing method, processing device and system for message services and message service system
CN108698227B (en) Cloud-controlled information transmission method, robot and swarm robot system
Wei et al. Creating efficient blockchains for the Internet of Things by coordinated satellite-terrestrial networks
JP2011515057A5 (en)
US10135724B2 (en) Modular architecture for computer network operations
KR20090030320A (en) Mobile ad-hoc network(manet) and method for implementing mutiple paths for fault tolerance
US20130223286A1 (en) Asynchronous Wireless Dynamic Ad-Hoc Network
JP6597802B2 (en) Group formation control in multi-group peer-to-peer networks
JP2022172168A (en) Point-to-point database synchronization over transport protocol
JP2011205285A (en) Relay node, and relay processing program
CN106817693B (en) Distributed network security control system and method
CN104767664A (en) Ring communication network slave node increasing and decreasing method, device and system
US20160014829A1 (en) Communication system, terminal, communication control apparatus, communication method and program
CN112491935A (en) Water wave type broadcasting method and system for block chain
CN103516601B (en) Route transmission method and apparatus and system
JP2021532684A (en) Network resource scheduling method and equipment
CN101355512B (en) Data transmission system, method and transmission control server
KR101581678B1 (en) System for sharing data using transmitting order
JP6526836B2 (en) Switching network synchronization method and switching device, access device, storage medium
Zhang et al. Analysis of the communication traffic model for permissioned blockchain based on proof-of-work

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