CN115086319A - Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium - Google Patents

Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium Download PDF

Info

Publication number
CN115086319A
CN115086319A CN202210667073.0A CN202210667073A CN115086319A CN 115086319 A CN115086319 A CN 115086319A CN 202210667073 A CN202210667073 A CN 202210667073A CN 115086319 A CN115086319 A CN 115086319A
Authority
CN
China
Prior art keywords
network
subnet
sub
transaction
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210667073.0A
Other languages
Chinese (zh)
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 CN202210667073.0A priority Critical patent/CN115086319A/en
Publication of CN115086319A publication Critical patent/CN115086319A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention belongs to the technical field of computers, and particularly relates to a multi-subnet blockchain network, a transaction broadcasting method, equipment and a storage medium thereof. After the individual sub-networks are attacked, the operation of the whole network is not influenced. After the network is divided, the efficiency of transmitting transaction data and block data among the subnets is greatly increased, and the transmission is only carried out in the seed nodes of the subnets, so that the bandwidth of the whole network can be obviously reduced by less nodes participating in the transmission among the subnets. The paths of data transmitted outside the subnet are reduced, the repeated transmission of the data can be greatly reduced, and the bandwidth of the whole network is further reduced.

Description

Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a multi-subnet blockchain network, a transaction broadcasting method and device thereof, and a storage medium.
Background
After the blockchain node is started, the blockchain node can be actively connected into a blockchain network, and then operations such as transaction broadcasting, block downloading and the like can be carried out. In the prior art, as long as the communication protocols are consistent, or some identification measures such as consistency of chainids of the blockchain are added, the nodes can freely join the blockchain network. With the increase of the number of nodes, the network will expand rapidly, which results in the gradual decrease of the transmission efficiency of the transaction data, some nodes will take a long time to receive the broadcasted transaction data, and the used network bandwidth will expand accordingly, which is not favorable for the throughput of the whole blockchain network.
Disclosure of Invention
In order to solve the above problems, the present invention provides a multi-subnet blockchain network, a transaction broadcasting method thereof, a device thereof, and a storage medium, wherein even when the number of blockchain links expands, the blockchain network can still operate efficiently, and the bandwidth occupation of the entire network is significantly reduced.
The invention adopts the following technical scheme:
in a first aspect, the invention provides a multi-subnet block chain network, where the block chain network includes a main network and multiple subnet networks, each subnet network is configured with a corresponding subnet ID, each subnet network includes a seed node set composed of a plurality of seed nodes and multiple subnet nodes, all the seed nodes in the seed node set store full node data of the block chain network, the seed nodes and the subnet nodes in the same subnet are mutually connected through the subnet network, the seed nodes in each subnet are mutually connected through the main network, and the subnet nodes in the subnet network perform network interaction with the seed nodes and the subnet nodes in the same subnet network based on the subnet IDs. In the scheme, the block chain network is changed from a traditional integral network into a multi-subnet block chain network formed by combining a plurality of independent subnet networks, after the network is divided, the data are traded, the block data are firstly spread in the corresponding subnet, then spread to seed nodes of other subnets through the seed nodes of the subnets, and then transferred to the subnet nodes of the subnet network where the block chain network is located by the seed nodes for receiving the data, so that the data broadcasting is realized, the data are traded in the process, the data spread among the block data subnets is only transferred in the seed nodes of the subnets, fewer nodes participate in the transfer among the subnets, the bandwidth of the integral network can be obviously reduced, and the spread efficiency is greatly improved; on the other hand, the transmission paths of the data in the main network are reduced, so that the repeated transmission of the data can be greatly reduced, and the bandwidth of the whole network is further reduced.
In a second aspect, there is provided a transaction broadcasting method applied to the multi-subnet blockchain network according to the first aspect, the method including the steps of:
the first subnet node acquires a subnet ID of a first subnet network where the first subnet node is located, and sends the transaction to be broadcasted to the seed nodes in the seed node set of the first subnet network through the first subnet network based on the acquired subnet ID;
after the first subnet node sends the transaction to be broadcasted to the seed node in the seed node set of the first subnet network through the first subnet network, the transaction to be broadcasted is broadcasted to the subnet nodes of other first subnet networks through the first subnet network;
the method comprises the steps that a seed node of a first subnet network obtains a transaction to be broadcasted, and the transaction to be broadcasted is broadcasted to a seed node of a second subnet network through a main network;
receiving the transaction to be broadcasted by the seed node of the second subnet network, judging whether the transaction to be broadcasted already exists in the second subnet network, if so, filtering the transaction to be broadcasted, otherwise, broadcasting the transaction to be broadcasted through the second subnet network based on the subnet ID of the second subnet network;
and receiving the transaction to be broadcasted by a second subnet node in a second subnet network.
In the scheme, each subnet is configured with a corresponding subnet ID, the transmission of the transaction in the subnet realizes the directional transmission through the subnet ID, the transaction is only transmitted between nodes of the same subnet ID, the transaction is firstly transmitted to the seed nodes of the subnet and then transmitted between the subnet nodes, the seed nodes can transmit the transaction to the seed nodes of other subnets through a main network while the transaction is transmitted between the subnet nodes, then the seed nodes of other subnets transmit the transaction to the subnet nodes of the subnet where the transaction is located after repeatedly filtering the transaction, thereby realizing the broadcast of the transaction, and the method completes the cross-subnet broadcast of the transaction through the seed nodes and the main network.
In a third aspect, a computer device is provided that includes 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 as described in the second aspect above.
In a fourth aspect, there is provided a storage medium storing a computer program which, when executed by a processor, implements the method of the second aspect as described above.
The multi-subnet blockchain network and the transaction broadcasting method thereof have the advantages that the traditional blockchain network is divided into a plurality of independent sub-networks from an integral network. After the individual sub-networks are attacked, the operation of the whole network is not influenced. After the network is divided, the efficiency of transmitting transaction data and block data among the subnets is greatly increased, and the transmission is only carried out in the seed nodes of the subnets, so that the bandwidth of the whole network can be obviously reduced by less nodes participating in the transmission among the subnets. The paths of data transmitted outside the subnet are reduced, the repeated transmission of the data can be greatly reduced, and the bandwidth of the whole network is further reduced.
Drawings
Fig. 1 is a flowchart of a transaction broadcasting method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to specific embodiments and the attached drawing figures. Those skilled in the art will be able to implement the invention based on these teachings. Moreover, the embodiments of the present invention described in the following description are generally only some embodiments of the present invention, and not all embodiments. Therefore, all other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. Unless otherwise specified, the methods described in the examples of the present invention are all those known to those skilled in the art.
As an embodiment of the present invention, a multi-subnet block chain network is provided, where the block chain network includes a master network and multiple subnet networks, each subnet network is configured with a corresponding subnet ID, each subnet network includes a seed node set composed of a plurality of seed nodes and multiple subnet nodes, all the seed nodes in the seed node set store full node data of the block chain network, the seed nodes and the subnet nodes in the same subnet are communicatively connected to each other through the subnet network, the seed nodes of each subnet are communicatively connected to each other through the master network, and the subnet nodes of the subnet network perform network interaction with the seed nodes and the subnet nodes in the same subnet network based on the subnet IDs. In the scheme, the block chain network is changed from a traditional integral network into a multi-subnet block chain network formed by combining a plurality of independent subnet networks, after the network is divided, the data are traded, the block data are firstly spread in the corresponding subnet, then spread to seed nodes of other subnets through the seed nodes of the subnets, and then transferred to the subnet nodes of the subnet network where the block chain network is located by the seed nodes for receiving the data, so that the data broadcasting is realized, the data are traded in the process, the data spread among the block data subnets is only transferred in the seed nodes of the subnets, fewer nodes participate in the transfer among the subnets, the bandwidth of the integral network can be obviously reduced, and the spread efficiency is greatly improved; on the other hand, the transmission paths of the data in the main network are reduced, so that the repeated transmission of the data can be greatly reduced, and the bandwidth of the whole network is further reduced.
As another embodiment of the present invention, there is provided a transaction broadcasting method, as shown in fig. 1, adapted to the multi-subnet blockchain network, the method including the following steps:
the first subnet node acquires a subnet ID of a first subnet network where the first subnet node is located, and sends the transaction to be broadcasted to the seed nodes in the seed node set of the first subnet network through the first subnet network based on the acquired subnet ID;
after the first sub-network node sends the transaction to be broadcast to the seed nodes in the seed node aggregate of the first sub-network through the first sub-network, the transaction to be broadcast is broadcast to the sub-network nodes of other first sub-network through the first sub-network;
the method comprises the steps that a seed node of a first subnet network obtains a transaction to be broadcasted, and the transaction to be broadcasted is broadcasted to a seed node of a second subnet network through a main network;
receiving the transaction to be broadcasted by the seed node of the second subnet network, judging whether the transaction to be broadcasted exists in the second subnet network, if so, filtering the transaction to be broadcasted, otherwise, broadcasting the transaction to be broadcasted through the second subnet network based on the subnet ID of the second subnet network;
and receiving the transaction to be broadcasted by a second subnet node in a second subnet network. In the scheme, each subnet is configured with a corresponding subnet ID, the transmission of the transaction in the subnet realizes the directional transmission through the subnet ID, the transaction is only transmitted between nodes of the same subnet ID, the transaction is firstly transmitted to the seed nodes of the subnet and then transmitted between the subnet nodes, the seed nodes can transmit the transaction to the seed nodes of other subnets through a main network while the transaction is transmitted between the subnet nodes, then the seed nodes of other subnets transmit the transaction to the subnet nodes of the subnet where the transaction is located after repeatedly filtering the transaction, thereby realizing the broadcast of the transaction, and the method completes the cross-subnet broadcast of the transaction through the seed nodes and the main network.
Fig. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 2, as another aspect, the present application also provides a computer apparatus 100 including one or more Central Processing Units (CPUs) 101 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)102 or a program loaded from a storage section 108 into a Random Access Memory (RAM) 103. In the RAM103, various programs and data necessary for the operation of the apparatus 100 are also stored. The CPU101, ROM102, and RAM103 are connected to each other via a bus 104. An input/output (I/O) interface 105 is also connected to bus 104.
The following components are connected to the I/O interface 105: an input portion 106 including a keyboard, a mouse, and the like; an output section 107 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 108 including a hard disk and the like; and a communication section 109 including a network interface card such as a LAN card, a modem, or the like. The communication section 109 performs communication via a network such as the internet, and the processing driver 110 is also connected to the I/O interface 105 as necessary. A removable medium 111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 110 as necessary, so that a computer program read out therefrom is mounted into the storage section 108 as necessary.
In particular, according to the embodiments disclosed in the present application, the method described in the above embodiment 1 may be implemented as a computer software program. For example, embodiments disclosed herein include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method described in any of the embodiments above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 109, and/or installed from the removable medium 111.
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 use by one or more processors in performing the methods 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 (4)

1. The block chain network is characterized by comprising a main network and a plurality of sub-network networks, wherein each sub-network is configured with a corresponding sub-network ID, each sub-network comprises a seed node set consisting of a plurality of seed nodes and a plurality of sub-network nodes, all the seed nodes in the seed node set store all node data of the block chain network, the seed nodes and the sub-network nodes in the same sub-network are mutually communicated and connected through the sub-network, the seed nodes of the sub-networks are mutually communicated and connected through the main network, and the sub-network nodes of the sub-network are mutually communicated and connected with the seed nodes and the sub-network nodes in the same sub-network based on the sub-network IDs to perform network interaction.
2. A transaction broadcasting method is suitable for a multi-subnet block chain network, and is characterized by comprising the following steps:
the first sub-network node acquires the sub-network ID of the first sub-network in which the first sub-network node is positioned, and transmits the transaction to be broadcasted to the seed nodes in the seed node aggregate of the first sub-network through the first sub-network based on the acquired sub-network ID;
after the first subnet node sends the transaction to be broadcasted to the seed node in the seed node set of the first subnet network through the first subnet network, the transaction to be broadcasted is broadcasted to the subnet nodes of other first subnet networks through the first subnet network;
the method comprises the steps that a seed node of a first subnet network obtains a transaction to be broadcasted, and the transaction to be broadcasted is broadcasted to a seed node of a second subnet network through a main network;
receiving the transaction to be broadcasted by the seed node of the second subnet network, judging whether the transaction to be broadcasted exists in the second subnet network, if so, filtering the transaction to be broadcasted, otherwise, broadcasting the transaction to be broadcasted through the second subnet network based on the subnet ID of the second subnet network;
and receiving the transaction to be broadcasted by a second subnet node in a second subnet network.
3. A computer device, characterized by 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 of claim 2.
4. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method of claim 2.
CN202210667073.0A 2022-06-13 2022-06-13 Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium Pending CN115086319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210667073.0A CN115086319A (en) 2022-06-13 2022-06-13 Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210667073.0A CN115086319A (en) 2022-06-13 2022-06-13 Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium

Publications (1)

Publication Number Publication Date
CN115086319A true CN115086319A (en) 2022-09-20

Family

ID=83250669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210667073.0A Pending CN115086319A (en) 2022-06-13 2022-06-13 Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium

Country Status (1)

Country Link
CN (1) CN115086319A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180019867A1 (en) * 2016-07-15 2018-01-18 Mastercard International Incorporated Method and system for partitioned blockchains and enhanced privacy for permissioned blockchains
WO2018104276A1 (en) * 2016-12-08 2018-06-14 Bundesdruckerei Gmbh Master blockchain
CN108400872A (en) * 2018-02-24 2018-08-14 清华大学 A kind of block chain information transmission method based on star cooperateed with and system
CN108900549A (en) * 2018-08-15 2018-11-27 深圳区块大陆科技有限公司 A kind of safe block chain networking technology
CN110430066A (en) * 2019-07-15 2019-11-08 杭州复杂美科技有限公司 For reducing method, equipment and the storage medium of block chain transaction repeated broadcast
WO2019223469A1 (en) * 2018-05-21 2019-11-28 腾讯科技(深圳)有限公司 Block chain network management method, device, medium and electronic device
CN113067914A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Method and device for distributing subnet identification, electronic equipment and storage medium
CN113067774A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Transaction forwarding method between block chain networks
CN113259457A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Information synchronization method and device for block chain sub-network
WO2022002375A1 (en) * 2020-06-30 2022-01-06 DFINITY Stiftung Distributed networks having a plurality of subnets

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180019867A1 (en) * 2016-07-15 2018-01-18 Mastercard International Incorporated Method and system for partitioned blockchains and enhanced privacy for permissioned blockchains
WO2018104276A1 (en) * 2016-12-08 2018-06-14 Bundesdruckerei Gmbh Master blockchain
CN108400872A (en) * 2018-02-24 2018-08-14 清华大学 A kind of block chain information transmission method based on star cooperateed with and system
WO2019223469A1 (en) * 2018-05-21 2019-11-28 腾讯科技(深圳)有限公司 Block chain network management method, device, medium and electronic device
CN108900549A (en) * 2018-08-15 2018-11-27 深圳区块大陆科技有限公司 A kind of safe block chain networking technology
CN110430066A (en) * 2019-07-15 2019-11-08 杭州复杂美科技有限公司 For reducing method, equipment and the storage medium of block chain transaction repeated broadcast
WO2022002375A1 (en) * 2020-06-30 2022-01-06 DFINITY Stiftung Distributed networks having a plurality of subnets
CN113067914A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Method and device for distributing subnet identification, electronic equipment and storage medium
CN113067774A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Transaction forwarding method between block chain networks
CN113259457A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Information synchronization method and device for block chain sub-network

Similar Documents

Publication Publication Date Title
DE112006002601B4 (en) Efficient broadcasting in wireless mesh networks
HUE032818T2 (en) Wlan peer-to-peer group owner negotiation
WO2022068506A1 (en) Data transmission method and apparatus
WO2018201922A1 (en) Method and device for use in indicating antenna polarization direction in wireless network
CN112911729B (en) Method, terminal and storage medium for establishing tunnel direct link
CN110213147B (en) Cloud network intercommunication method and device, storage medium and terminal equipment
EP3952132A2 (en) Systems, methods, and apparatus for multi-link spatial multiplexing
DE102015111405A1 (en) Beacon and method for establishing and maintaining a network
CN110856044A (en) Video image quality enhancement transmission method and related device
CN115086319A (en) Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium
CN104965810A (en) Method and device for rapidly processing data message in multi-core mode
CN112911687B (en) Method for establishing connection between terminal and access equipment, wireless local area network and storage medium
CN109474471A (en) The RTPS agreement accelerated method and its node and system of a kind of DDS network
DE112014006061B4 (en) Connection control method by a communication terminal
CN114358938A (en) Transaction, block broadcasting method, device and storage medium
DE112016003165T5 (en) SHORT RESOURCE REQUIREMENTS
US20140351376A1 (en) Content distribution method, system and server
JP2008234373A (en) Load distribution system and method
CN114158064B (en) Communication equipment, network allocation vector adjustment method and system thereof and electronic equipment
CN113746724B (en) Message transmission method, device, electronic equipment and medium
US20040156342A1 (en) Method and system for dynamically alocating a set of broadcast TDMA channels to a network of transceiver nodes
CN115086320A (en) Layered block chain network, and consensus method, device and storage medium thereof
DE112017003386T5 (en) Communication system and communication method
CN112260804B (en) DMRS resource determination method and communication equipment
CN115348673B (en) Directional ad hoc network time slot dynamic allocation method based on time slot sequence resource pool

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