CN110944058A - Block chain intranet node relay connection method - Google Patents

Block chain intranet node relay connection method Download PDF

Info

Publication number
CN110944058A
CN110944058A CN201911224014.0A CN201911224014A CN110944058A CN 110944058 A CN110944058 A CN 110944058A CN 201911224014 A CN201911224014 A CN 201911224014A CN 110944058 A CN110944058 A CN 110944058A
Authority
CN
China
Prior art keywords
node
relay
intranet
guide
information
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
CN201911224014.0A
Other languages
Chinese (zh)
Other versions
CN110944058B (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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201911224014.0A priority Critical patent/CN110944058B/en
Publication of CN110944058A publication Critical patent/CN110944058A/en
Application granted granted Critical
Publication of CN110944058B publication Critical patent/CN110944058B/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
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/127Shortest path evaluation based on intermediate node capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a block chain intranet node relay connection method, equipment and a storage medium, wherein the method comprises the following steps: receiving first connection request information sent by a first intranet node of a first intranet; judging whether connection with a second intranet node is established: if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes; if yes, respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the first intranet node and the second intranet node; and responding to the situation that the current node is determined to be the guide node of the relay connection, selecting a first relay node from a local relay node list to generate relay information and respectively sending the relay information to a first intranet node and a second intranet node, so that the first intranet node and the second intranet node establish the relay connection through the first relay node. According to the method and the system, the relay connection is established between the intranet nodes of different intranets, so that the service is actively provided for the unstructured block chain.

Description

Block chain intranet node relay connection method
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, a device, and a storage medium for relaying connection of an intranet node in a blockchain.
Background
A public block chain consists of thousands of nodes, including many intranet nodes (i.e., nodes that do not have a unique extranet address and cannot support external active access). In order to fully mine and utilize resources such as storage bandwidth of all nodes, a relay technology is usually needed, so that an intranet node can provide active service;
however, the centralized relay server needs to establish links of all intranet nodes, and the load is large; relay relays only support structured blockchains and cannot be compatible with unstructured blockchains.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a method, apparatus, and storage medium for network node relay connection within a blockchain that supports unstructured blockchains.
In a first aspect, the present invention provides a method for relaying and connecting intranet nodes in a blockchain suitable for a bootstrap node, where a blockchain network is configured with a plurality of bootstrap nodes and a plurality of relay nodes, the bootstrap nodes and the relay nodes are public network nodes, the bootstrap nodes are configured with a relay node list, the intranet nodes are configured with a bootstrap node list, and all the bootstrap nodes can communicate with each other, where the method includes:
receiving first connection request information sent by a first intranet node of a first intranet; the first connection request information is generated by the first intranet node responding to a request to establish relay connection with a second intranet node of a second intranet;
judging whether connection with a second intranet node is established:
if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes so that a second guide node for establishing connection with a second intranet node sends the first broadcast information to the second intranet node, and the second intranet node determines a guide node for guiding the current relay connection and a guide node determined by connection in the current node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving second broadcast information, and sending the second broadcast information to the first intranet node so that the first intranet node determines a guide node for guiding the relay connection and a guide node determined by the connection in the current node and the second guide node according to a first rule; the second connection request information is generated by the second intranet node responding to the request and establishing relay connection with the first intranet node;
if yes, respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the first intranet node and the second intranet node;
and responding to the situation that the current node is determined to be the guide node of the relay connection, selecting a first relay node from a local relay node list to generate relay information and respectively sending the relay information to a first intranet node and a second intranet node, so that the first intranet node and the second intranet node establish the relay connection through the first relay node.
In a second aspect, the invention provides an intranet node relay connection method applicable to an intranet node, wherein a plurality of guide nodes and a plurality of relay nodes are configured in a block chain network, the guide nodes and the relay nodes are public network nodes, the guide nodes are configured with a relay node list, the intranet node is configured with a guide node list, and all the guide nodes can communicate with each other; the method comprises the following steps:
responding to the request to establish relay connection with a second intranet node of a second intranet, generating first connection request information, and sending the first connection request information to a first guide node so that the first guide node can:
judging whether connection with a second intranet node is established:
if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes so that a second guide node for establishing connection with a second intranet node sends the first broadcast information to the second intranet node, and the second intranet node determines a guide node for guiding the relay connection and a guide node determined by connection in the first guide node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving second broadcast information and sending the second broadcast information to the current node; the second connection request information is generated by the second intranet node responding to the request and establishing relay connection with the current node;
if yes, respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the current node and a second intranet node;
monitoring whether second broadcast information or notification information is received:
if the second broadcast information is received, determining a guide node guiding the relay connection and a guide node determined by the connection in the first guide node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving first relay information sent by the determined guide node, and establishing relay connection with a second intranet node according to a second relay node in the first relay information; the first relay information is generated by a second relay node selected by the determined guide node from a local relay node list and is respectively sent to the current node and a second intranet node, and the first relay information is also used for establishing relay connection between the second intranet node and the current node through the second relay node;
if the notification information is received, receiving second relay information sent by the first guide node, and establishing relay connection with a second intranet node according to a third relay node in the second relay information; the second relay information is generated by a third relay node selected by the first guide node from a local relay node list and is respectively sent to the current node and the second intranet node, and the second relay information is also used for the second intranet node to establish relay connection with the current node through the third relay node.
In a third aspect, the present invention also provides an apparatus comprising one or more processors and a memory, where the memory contains instructions executable by the one or more processors to cause the one or more processors to perform the method for relaying a connection between intranet nodes in a block chain according to embodiments of the present invention.
In a fourth aspect, the present invention further provides a storage medium storing a computer program, where the computer program makes a computer execute the method for relaying connection between intranet nodes in a block chain according to the embodiments of the present invention.
According to the block chain intranet node relay connection method, equipment and storage medium provided by the embodiments of the invention, first connection request information sent by a first intranet node of a first intranet is received; judging whether connection with a second intranet node is established: if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes; if yes, respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the first intranet node and the second intranet node; and responding to the fact that the current node is determined to be the guide node of the relay connection, selecting a first relay node from a local relay node list to generate relay information and respectively sending the relay information to a first intranet node and a second intranet node, so that the first intranet node and the second intranet node can establish the relay connection through the first relay node, and the intranet nodes of different intranets can establish the relay connection in the unstructured block chain, thereby actively providing service for the unstructured block chain.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a relay connection method for a block chain intranet node according to an embodiment of the present invention.
Fig. 2 is a flowchart of step S18 in a preferred embodiment of the method shown in fig. 1.
Fig. 3 is a flowchart of step S182 in a preferred embodiment of the method shown in fig. 2.
Fig. 4 is a flowchart of another method for relaying connection between intranet nodes in a block chain according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a relay connection method for a block chain intranet node according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a relay connection method for a blockchain intranet node suitable for a bootstrap node, where a plurality of bootstrap nodes and a plurality of relay nodes are configured in a blockchain network, the bootstrap nodes and the relay nodes are both public network nodes, the bootstrap nodes are configured with a relay node list, the intranet node is configured with a bootstrap node list, and each bootstrap node can communicate with each other, where the method includes:
s12: receiving first connection request information sent by a first intranet node of a first intranet; the first connection request information is generated by the first intranet node responding to a request to establish relay connection with a second intranet node of a second intranet;
s13: judging whether connection with a second intranet node is established:
otherwise, step S141 is executed: generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes so that a second guide node for establishing connection with a second intranet node sends the first broadcast information to the second intranet node, and the second intranet node determines a guide node for guiding the relay connection and a guide node determined by connection in a current node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
s142: receiving second broadcast information, and sending the second broadcast information to the first intranet node so that the first intranet node determines a guide node for guiding the relay connection and a guide node determined by the connection in the current node and the second guide node according to a first rule; the second connection request information is generated by the second intranet node responding to the request and establishing relay connection with the first intranet node;
if yes, go to step S15: respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to a first intranet node and a second intranet node;
s18: and responding to the situation that the current node is determined to be the guide node of the relay connection, selecting a first relay node from a local relay node list to generate relay information and respectively sending the relay information to a first intranet node and a second intranet node, so that the first intranet node and the second intranet node establish the relay connection through the first relay node.
Specifically, assume that the first intranet node is a, the second intranet node is b, the first guide node connected to a is s1, the second guide node connected to b is s2, and the character string of s1 is large; s1 is configured with a list of relay nodes r1, r2, r3, r1 being the first relay node selected; taking a preconfigured first rule as a character string for comparing two guide nodes, taking a guide node with a larger character string as a guide node for determining to guide the relay connection, taking s1 as an example of the current node;
in step S12, a generates and transmits first connection request information to S1 in response to establishing the relay connection with b, and S1 receives the first connection request information transmitted by a;
in step S13, S1 determines whether a connection has been established with b:
otherwise, step S141 is executed, and S1 generates the first broadcast information according to the first connection request information and broadcasts the first broadcast information to other guide nodes; since the second bootstrapping node to which b is connected is s2, s2 transmits the first broadcast information to b; since the preconfigured first rule is to compare character strings of two guidance nodes, the guidance node with the larger character string is the guidance node which is determined to guide the relay connection of this time, and the character string of s1 is larger, b determines s1 as the guidance node which is determined to guide the relay connection of this time, b is disconnected from s2, and is connected with s 1; and the number of the first and second groups,
in step S142, b, in response to the request to establish the relay connection with a, generating second connection request information and transmitting the second connection request information to S2, S2 generating second broadcast information according to the second connection request information and broadcasting the second broadcast information to other bootstrap nodes, and since the first bootstrap node to which a is connected is S1, S1 receives the second broadcast information and transmits the second broadcast information to a; since the preconfigured first rule is to compare the character strings of the two guidance nodes, the guidance node with the larger character string is the guidance node determined to guide the relay connection of this time, and the character string of s1 is larger, a determines s1 as the guidance node guiding the relay connection of this time, and a maintains the connection established with s 1;
in step S18, in response to the current node determining as the leading node of the current relay connection, S1 selects a first relay node from the local list of relay nodes (r1, r2, r3), and since r1 is the selected first relay node, relay information is generated according to r1 and sent to a and b, respectively, and a and b establish the relay connection through r 1.
If the first bootstrap nodes connected to a and b are S1 at the beginning, after steps S12 and S13 are executed, since the first bootstrap nodes connected to a and b are S1, step S15 is executed, and S1 sends notification information currently determined to be a bootstrap node for guiding the relay connection of this time to a and b, respectively, and then step S18 is executed.
In the above embodiment, it is assumed that the first intranet node is a, the second intranet node is b, the first guide node connected to a is s1, the second guide node connected to b is s2, and the character string of s1 is large; s1 is configured with a list of relay nodes r1, r2, r3, r1 being the first relay node selected; taking a pre-configured first rule as a character string for comparing two guide nodes, taking a guide node with a larger character string as a guide node for determining to guide the relay connection, and taking s1 as a current node for exemplary explanation;
in further embodiments, the block chain intranet node relay connection method provided by the present invention is not limited to the above examples, and in further embodiments, the preconfigured first rule may also be configured as another rule according to actual requirements, for example, configured as: comparing the character strings of the two guide nodes, the guide node with the smaller character string is the guide node which is determined to guide the relay connection, and the same technical effect can be realized as long as the first rule can be used for determining the determined guide node.
In further embodiments, step S18 may be further configured to: generating relay information according to a plurality of relay nodes in a relay node list and respectively sending the relay information to a first intranet node and a second intranet node, wherein the first intranet node respectively calculates round trip delay RTTs (round trip time) with each relay node and sends the round trip delay RTTs to the second intranet node through a first guide node, the second intranet node respectively calculates round trip delay RTTs with each relay node and sends the round trip delay RTTs to the first intranet node through the first guide node, the first intranet node and the second intranet node respectively select an optimal relay node according to each RTT of the first intranet node and each RTT of the second intranet node, and the first intranet node and the second intranet node establish relay connection according to the determined optimal relay node; the above configuration can achieve the same technical effect.
In more embodiments, the number of the bootstrap nodes may be configured to be 1, and in this case, the bootstrap nodes are centralized bootstrap servers, and the same technical effect may be achieved.
The above-described embodiment realizes that in an unstructured block chain, the intranet nodes of different intranets establish relay connections, thereby actively providing services for the unstructured block chain.
Fig. 2 is a flowchart of step S18 in a preferred embodiment of the method shown in fig. 1. As shown in fig. 2, in a preferred embodiment, step S18 includes:
s182: determining a first relay node with the lowest load from a local relay node list in response to the fact that the current node is determined to be a guide node of the current relay connection;
s183: and generating relay information according to the first relay node and respectively sending the relay information to the first intranet node and the second intranet node.
In more embodiments, a rule for selecting a relay node may be configured according to actual requirements, for example, the relay node with the smallest RTT with the current node is selected as the selected relay node, so that the same technical effect may be achieved.
Fig. 3 is a flowchart of step S182 in a preferred embodiment of the method shown in fig. 2. As shown in fig. 3, in a preferred embodiment, step S182 includes:
s1822: updating the load information of each relay node in a local relay node list in response to the fact that the current node is determined to be the guide node of the current relay connection;
s1824: and determining the first relay node with the lowest load from the local relay node list.
In more embodiments, if each relay node in the local relay node list periodically sends load information to the current node, the load information stored in the current node may be considered to be the latest load information, and the load information of each relay node in the local relay node list may not be updated, so that the same technical effect may be achieved.
Fig. 4 is a flowchart of another method for relaying connection between intranet nodes in a block chain according to an embodiment of the present invention. As shown in fig. 4, in this embodiment, the present invention provides a method for relaying and connecting intranet nodes in a blockchain suitable for intranet nodes, where a blockchain network is configured with a plurality of guide nodes and a plurality of relay nodes, where the guide nodes and the relay nodes are both public network nodes, the guide nodes are configured with a relay node list, the intranet nodes are configured with a guide node list, and all the guide nodes can communicate with each other; the method comprises the following steps:
s22: responding to the request to establish relay connection with a second intranet node of a second intranet, generating first connection request information, and sending the first connection request information to a first guide node so that the first guide node can:
judging whether connection with a second intranet node is established:
if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes so that a second guide node for establishing connection with a second intranet node sends the first broadcast information to the second intranet node, and the second intranet node determines a guide node for guiding the relay connection and a guide node determined by connection in the first guide node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving second broadcast information and sending the second broadcast information to the current node; the second connection request information is generated by the second intranet node responding to the request and establishing relay connection with the current node;
if yes, respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the current node and a second intranet node;
s23 monitors whether the second broadcast information or the notification information is received:
s241: if the second broadcast information is received, determining a guide node guiding the relay connection and a guide node determined by the connection in the first guide node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
s242: receiving first relay information sent by the determined guide node, and establishing relay connection with a second intranet node according to a second relay node in the first relay information; the first relay information is generated by a second relay node selected by the determined guide node from a local relay node list and is respectively sent to the current node and a second intranet node, and the first relay information is also used for establishing relay connection between the second intranet node and the current node through the second relay node;
s26: if the notification information is received, receiving second relay information sent by the first guide node, and establishing relay connection with a second intranet node according to a third relay node in the second relay information; the second relay information is generated by a third relay node selected by the first guide node from a local relay node list and is respectively sent to the current node and the second intranet node, and the second relay information is also used for the second intranet node to establish relay connection with the current node through the third relay node.
The relay connection principle of the intra-network node in the block chain according to the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
Preferably, the first relay information is generated by the determined guide node from the second relay node with the lowest load determined in the local relay node list; the second relay information is generated by the first bootstrap node from a third relay node with the lowest load determined in the local relay node list.
The relay connection principle of the intra-network node in the block chain according to the above embodiment may refer to the method shown in fig. 2, and is not described herein again.
Preferably, the first relay information is generated by the second relay node with the lowest load determined in the local relay node list, and the determined bootstrap node updates the load information of each relay node in the local relay node list; the second relay information is generated by the first guide node updating the load information of each relay node in the local relay node list and the third relay node with the lowest load determined in the local relay node list.
The relay connection principle of the intra-network node in the block chain according to the above embodiment may refer to the method shown in fig. 3, and is not described herein again.
Fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. As shown in fig. 5, as another aspect, the present application also provides an apparatus 500 including one or more Central Processing Units (CPUs) 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the apparatus 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the method for relaying connection between intranet nodes in a block chain described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing a method for intranet node relay connection. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for one or more processors to perform the block chain intranet node relay connection method described herein.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (8)

1. A block chain intranet node relay connection method is characterized in that a block chain network is provided with a plurality of guide nodes and a plurality of relay nodes, the guide nodes and the relay nodes are public network nodes, the guide nodes are provided with a relay node list, the intranet nodes are provided with a guide node list, and the guide nodes can communicate with each other; the method is applicable to a bootstrap node, and comprises the following steps:
receiving first connection request information sent by a first intranet node of a first intranet; the first connection request information is generated by the first intranet node responding to a request for establishing relay connection with a second intranet node of a second intranet;
judging whether the connection with the second intranet node is established:
if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes, so that a second guide node for establishing connection with the second intranet node sends the first broadcast information to the second intranet node, and the second intranet node determines a guide node for guiding the current relay connection and a guide node determined by connection in the current node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving second broadcast information, and sending the second broadcast information to the first intranet node, so that the first intranet node determines a guide node guiding the relay connection and a guide node determined by the connection in the current node and the second guide node according to the first rule; the second broadcast information is generated by the second intranet node according to second connection request information, and the second connection request information is generated by the second intranet node responding to a request to establish a relay connection with the first intranet node;
if yes, sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the first intranet node and the second intranet node respectively;
and in response to the fact that the current node is determined to be the guide node of the relay connection, selecting a first relay node from a local relay node list to generate relay information and respectively sending the relay information to the first intranet node and the second intranet node, so that the first intranet node and the second intranet node establish the relay connection through the first relay node.
2. The method according to claim 1, wherein the selecting a first relay node from a local relay node list to generate relay information and respectively send the relay information to the first intranet node and the second intranet node in response to the current node being determined as a guide node of the current relay connection comprises:
determining a first relay node with the lowest load from a local relay node list in response to the fact that the current node is determined to be a guide node of the current relay connection;
and generating relay information according to the first relay node and respectively sending the relay information to the first intranet node and the second intranet node.
3. The method of claim 2, wherein the determining, in response to the current node being determined to be the leader node of the current relay connection, the first relay node with the lowest load from the local relay node list comprises:
updating the load information of each relay node in a local relay node list in response to the fact that the current node is determined to be the guide node of the current relay connection;
and determining the first relay node with the lowest load from the local relay node list.
4. A block chain intranet node relay connection method is characterized in that a block chain network is provided with a plurality of guide nodes and a plurality of relay nodes, the guide nodes and the relay nodes are public network nodes, the guide nodes are provided with a relay node list, the intranet nodes are provided with a guide node list, and the guide nodes can communicate with each other; the method is suitable for an intranet node, and comprises the following steps:
responding to a request for establishing relay connection with a second intranet node of a second intranet, generating first connection request information, and sending the first connection request information to a first guide node, so that the first guide node can:
judging whether the connection with the second intranet node is established:
if not, generating first broadcast information according to the first connection request information and broadcasting the first broadcast information to other guide nodes, so that a second guide node for establishing connection with the second intranet node sends the first broadcast information to the second intranet node, and the second intranet node determines a guide node for guiding the relay connection and a guide node determined by connection in the first guide node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving second broadcast information, and sending the second broadcast information to a current node; the second broadcast information is generated by the second intranet node according to second connection request information, and the second connection request information is generated by the second intranet node responding to a request to establish relay connection with the current node;
if yes, respectively sending notification information that the current node is determined to be a guide node for guiding the current relay connection to the current node and the second intranet node;
monitoring whether the second broadcast information or the notification information is received:
if the second broadcast information is received, determining a guide node guiding the relay connection and a guide node determined by the connection in the first guide node and the second guide node according to a pre-configured first rule; and the number of the first and second groups,
receiving first relay information sent by the determined guide node, and establishing relay connection with the second intranet node according to a second relay node in the first relay information; the first relay information is generated by a second relay node selected by the determined guide node from a local relay node list and is respectively sent to a current node and the second intranet node, and the first relay information is also used for establishing relay connection between the second intranet node and the current node through the second relay node;
if the notification information is received, second relay information sent by the first guide node is received, and relay connection is established with the second intranet node according to a third relay node in the second relay information; the second relay information is generated by a third relay node selected by the first guide node from a local relay node list and is respectively sent to the current node and the second intranet node, and the second relay information is further used for the second intranet node to establish relay connection with the current node through the third relay node.
5. The method of claim 4, wherein the first relay information is generated by the determined bootstrap node from a second relay node with the lowest load determined from a local list of relay nodes; the second relay information is generated by the first bootstrap node from a third relay node with the lowest load determined in a local relay node list.
6. The method of claim 5, wherein the first relay information is generated by the determined bootstrap node updating the load information of each relay node in the local relay node list, and the first relay information is generated from a second relay node with the lowest load determined in the local relay node list; the second relay information is generated by the first guide node updating the load information of each relay node in the local relay node list and the third relay node with the lowest load determined in the local relay node list.
7. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-6.
8. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-6.
CN201911224014.0A 2019-12-04 2019-12-04 Block chain intranet node relay connection method Active CN110944058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911224014.0A CN110944058B (en) 2019-12-04 2019-12-04 Block chain intranet node relay connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911224014.0A CN110944058B (en) 2019-12-04 2019-12-04 Block chain intranet node relay connection method

Publications (2)

Publication Number Publication Date
CN110944058A true CN110944058A (en) 2020-03-31
CN110944058B CN110944058B (en) 2022-03-04

Family

ID=69909502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911224014.0A Active CN110944058B (en) 2019-12-04 2019-12-04 Block chain intranet node relay connection method

Country Status (1)

Country Link
CN (1) CN110944058B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447290A (en) * 2020-06-12 2020-07-24 支付宝(杭州)信息技术有限公司 Communication method and service data transmission method in block chain network
CN112055067A (en) * 2020-08-28 2020-12-08 杭州复杂美科技有限公司 Node connection method, device and storage medium
CN112929285A (en) * 2020-08-28 2021-06-08 支付宝(杭州)信息技术有限公司 Communication optimization system of block chain network
CN116388962A (en) * 2023-06-05 2023-07-04 敏于行(北京)科技有限公司 Communication method and system between block chain network nodes

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN108347486A (en) * 2018-02-12 2018-07-31 众安信息技术服务有限公司 Across chain communication means, device and system based on block chain
CN110268677A (en) * 2018-11-16 2019-09-20 阿里巴巴集团控股有限公司 Across chain interaction is carried out using domain name scheme in block catenary system
WO2019179543A2 (en) * 2019-03-27 2019-09-26 Alibaba Group Holding Limited Retrieving public data for blockchain networks using trusted execution environments
KR102042361B1 (en) * 2018-10-26 2019-11-07 에이치닥 테크놀로지 아게 Apparatus, system, method for blockchain linkage and signal relay
CN110489486A (en) * 2019-08-02 2019-11-22 腾讯科技(深圳)有限公司 Generate method, seed node and the medium of block chain network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN108347486A (en) * 2018-02-12 2018-07-31 众安信息技术服务有限公司 Across chain communication means, device and system based on block chain
KR102042361B1 (en) * 2018-10-26 2019-11-07 에이치닥 테크놀로지 아게 Apparatus, system, method for blockchain linkage and signal relay
CN110268677A (en) * 2018-11-16 2019-09-20 阿里巴巴集团控股有限公司 Across chain interaction is carried out using domain name scheme in block catenary system
WO2019179543A2 (en) * 2019-03-27 2019-09-26 Alibaba Group Holding Limited Retrieving public data for blockchain networks using trusted execution environments
CN110489486A (en) * 2019-08-02 2019-11-22 腾讯科技(深圳)有限公司 Generate method, seed node and the medium of block chain network

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447290A (en) * 2020-06-12 2020-07-24 支付宝(杭州)信息技术有限公司 Communication method and service data transmission method in block chain network
CN112383473A (en) * 2020-06-12 2021-02-19 支付宝(杭州)信息技术有限公司 Method for establishing P2P direct connection by nodes in auxiliary block chain network
WO2021249490A1 (en) * 2020-06-12 2021-12-16 支付宝(杭州)信息技术有限公司 Communication method and service data transmission method in blockchain network
CN112055067A (en) * 2020-08-28 2020-12-08 杭州复杂美科技有限公司 Node connection method, device and storage medium
CN112929285A (en) * 2020-08-28 2021-06-08 支付宝(杭州)信息技术有限公司 Communication optimization system of block chain network
CN112929285B (en) * 2020-08-28 2022-05-31 支付宝(杭州)信息技术有限公司 Communication optimization system of block chain network
US11388017B2 (en) 2020-08-28 2022-07-12 Alipay (Hangzhou) Information Technology Co., Ltd. Communication optimization systems of blockchain network, registration methods and message forwarding methods
CN112055067B (en) * 2020-08-28 2023-04-18 杭州复杂美科技有限公司 Node connection method, device and storage medium
CN116388962A (en) * 2023-06-05 2023-07-04 敏于行(北京)科技有限公司 Communication method and system between block chain network nodes

Also Published As

Publication number Publication date
CN110944058B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN110944058B (en) Block chain intranet node relay connection method
US11290381B2 (en) Method and system for transmitting data resource acquisition request
EP3646570B1 (en) Probabilistic relay for efficient propagation in a blockchain network
CN112968967A (en) Block synchronization method and device
AU2016216645B2 (en) Efficient multicast in a smart grid
CN110601978B (en) Flow distribution control method and device
CN101621548A (en) Method and system for realizing terminal resource sharing based on peer connection system
EP3522496A1 (en) Method and system for processing node registration notification
US8565243B2 (en) Method and apparatus for using a gossip protocol to communicate across network partitions
CN112055077B (en) Block link access method, device and storage medium
CN113452600A (en) Cross-region message communication method and device, electronic equipment and storage medium
CN112751689A (en) Network connectivity detection method, monitoring server and monitoring agent device
CN106790354B (en) Communication method and device for preventing data congestion
CN109412942B (en) Cloud network transmission routing method and system
CN112053154B (en) Transaction broadcasting method, apparatus and storage medium
US10742499B2 (en) Distributed dynamic sizing and load self-management for a relay infrastructure
CN110971669B (en) Message notification method, device, server, electronic equipment and readable storage medium
CN112866365A (en) Node communication method, computer device, and storage medium
CN107342942B (en) Information transmission method and device for multi-node controller cluster
CN111639944A (en) Transaction broadcasting method, apparatus and storage medium
JP2006270150A (en) Address management node of wireless communication network and node of wireless communication network
CN113778504B (en) Publishing method, publishing system and routing device
US20110137972A1 (en) System and method for agent networks
CN116996481B (en) Live broadcast data acquisition method and device, electronic equipment and storage medium
CN113590611B (en) Block execution method, computer device, and storage medium

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