CN115208895B - Automatic networking method and system for block chain technology - Google Patents

Automatic networking method and system for block chain technology

Info

Publication number
CN115208895B
CN115208895B CN202210846899.3A CN202210846899A CN115208895B CN 115208895 B CN115208895 B CN 115208895B CN 202210846899 A CN202210846899 A CN 202210846899A CN 115208895 B CN115208895 B CN 115208895B
Authority
CN
China
Prior art keywords
node
networking
target
information
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210846899.3A
Other languages
Chinese (zh)
Other versions
CN115208895A (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.)
Nanjing Zhongke Qixing Software Co ltd
Original Assignee
Nanjing Zhongke Qixing Software Co ltd
Filing date
Publication date
Application filed by Nanjing Zhongke Qixing Software Co ltd filed Critical Nanjing Zhongke Qixing Software Co ltd
Priority to CN202210846899.3A priority Critical patent/CN115208895B/en
Publication of CN115208895A publication Critical patent/CN115208895A/en
Application granted granted Critical
Publication of CN115208895B publication Critical patent/CN115208895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an automatic networking method and system for a block chain technology, and relates to the technical field of block chains. The method comprises the following steps: acquiring and constructing an initial networking frame according to basic information of a target object and target requirements; setting a central management node, and associating the central management node with an initial networking frame; analyzing the storage capacity of each main node in the initial networking frame through a central management node to obtain node capacity information; constructing and adding auxiliary nodes into the initial networking frame according to the node capacity information to obtain a target networking frame; and carrying out real-time detection and analysis on the running conditions of all the main nodes in the target networking frame through the central management node, generating and carrying out networking calling on corresponding auxiliary nodes in the target networking frame according to the detection result so as to ensure that the data synchronization channel is normal. The invention can rapidly and efficiently realize self-service networking of each node according to actual demand conditions, and ensures the stability of the block chain system.

Description

Automatic networking method and system for block chain technology
Technical Field
The invention relates to the technical field of blockchain, in particular to an automatic networking method and system for a blockchain technology.
Background
Blockchain is a distributed network system in which a plurality of nodes collectively maintain data, and blockchain technology is built on top of a transport network (e.g., a point-to-point network). Nodes in the blockchain network verify and store data using a chained data structure and employ a distributed node consensus algorithm to generate and update the data. The blockchain has two main core characteristics: firstly, the data is difficult to tamper, and secondly, the data is decentralised. Based on the two characteristics, the blockchain is widely applied to data storage, and the data security can be ensured.
However, existing blockchain systems suffer from these drawbacks: the node networking cannot be automatically and efficiently regulated in combination with actual demands, faults cannot be timely and effectively handled, so that the running stability of the block chain system is poor, and the data storage demands cannot be met.
Disclosure of Invention
In order to overcome the problems or at least partially solve the problems, the embodiment of the invention provides an automatic networking method and system for a blockchain technology, which can quickly and efficiently realize self-service networking of all nodes according to actual demand conditions, timely respond to faults and ensure the stability of a blockchain system.
Embodiments of the present invention are implemented as follows:
In a first aspect, an embodiment of the present invention provides an automated networking method for blockchain technology, including the steps of:
acquiring and constructing an initial networking frame according to basic information of a target object and target requirements;
setting a central management node, and associating the central management node with an initial networking frame;
analyzing the storage capacity of each main node in the initial networking frame through a central management node to obtain node capacity information;
constructing and adding auxiliary nodes into the initial networking frame according to the node capacity information to obtain a target networking frame;
and carrying out real-time detection and analysis on the running conditions of all the main nodes in the target networking frame through the central management node, generating and carrying out networking calling on corresponding auxiliary nodes in the target networking frame according to the detection result so as to ensure that the data synchronization channel is normal.
In order to solve the problems in the prior art, the method combines the actual storage requirement and the target object to construct a targeted networking frame, selects reasonable block nodes to support the transaction requirement or the data storage requirement of the target object, and greatly improves the data storage efficiency; then, a central management node is set and is associated with the initial networking frame to manage each node in the initial networking frame, so that the nodes in the initial networking frame are not required to be occupied to detect faults, and the node utilization efficiency is improved. The storage capacity of each main node in the initial networking frame is analyzed through the central management node, and reasonable auxiliary nodes are configured by combining the storage capacity of each main node so as to construct a perfect target networking frame, so that when the corresponding main node is detected and analyzed to be faulty or the storage capacity is insufficient through the subsequent central management node, the auxiliary nodes are timely called to store data, normal operation of a consensus communication channel is ensured, and the operation stability of the system is ensured. The invention can quickly and efficiently realize self-service networking of each node according to actual demand conditions, timely and effectively cope with faults, and ensure the stability of the block chain system.
Based on the first aspect, in some embodiments of the present invention, the method for acquiring and constructing an initial networking framework according to the basic information of the target object and the target requirement includes the following steps:
acquiring basic information and target demand information of a target object;
Extracting and determining networking nodes according to object identity information in the basic information of the target object;
Extracting and determining configuration data of each networking node according to the data storage demand and transaction information in the target demand information;
And constructing and obtaining an initial networking frame based on a consensus mechanism according to the networking nodes and the configuration data of each networking node.
Based on the first aspect, in some embodiments of the present invention, the method for constructing and adding an auxiliary node to an initial networking frame according to the node capability information to obtain a target networking frame includes the following steps:
Constructing auxiliary nodes according to the node capacity information;
And setting association priorities for all the main nodes in the initial networking frame according to the node capacity information, and associating the auxiliary nodes with all the main nodes according to the association priorities so as to obtain the target networking frame.
Based on the first aspect, in some embodiments of the present invention, the method for performing real-time detection analysis on the operation status of each master node in the target networking frame through the central management node includes the following steps:
Collecting consensus status information and storage status information of each main node in a target networking frame in real time;
and detecting and analyzing whether errors occur in each master node in real time through the central management node according to preset fault condition information, consensus condition information of each master node and storage condition information.
Based on the first aspect, in some embodiments of the present invention, the method for performing networking call on the corresponding auxiliary node in the target networking frame according to the detection result includes the following steps:
and if the detection result is that the fault occurs, the auxiliary node in the target networking frame is called to replace the corresponding main node, and a common access of the auxiliary node and other main nodes is established.
In a second aspect, an embodiment of the present invention provides an automated networking system for blockchain technology, including: the system comprises an initial networking module, a central management module, a capability analysis module, an auxiliary adding module and a detection networking module, wherein:
the initial networking module is used for acquiring and constructing an initial networking frame according to the basic information of the target object and the target requirement;
the center management module is used for setting a center management node and associating the center management node with the initial networking frame;
The capacity analysis module is used for analyzing the storage capacity of each main node in the initial networking frame through the central management node so as to obtain node capacity information;
The auxiliary adding module is used for constructing and adding auxiliary nodes into the initial networking frame according to the node capacity information so as to obtain a target networking frame;
The detection networking module is used for carrying out real-time detection analysis on the running condition of each main node in the target networking frame through the central management node, generating and carrying out networking call on the corresponding auxiliary nodes in the target networking frame according to the detection result so as to ensure that the data synchronization channel is normal.
In order to solve the problems in the prior art, the system constructs a targeted networking framework by combining actual storage requirements and target objects through the cooperation of a plurality of modules such as an initial networking module, a central management module, a capability analysis module, an auxiliary adding module, a detection networking module and the like, selects reasonable block nodes to support the transaction requirements or the data storage requirements of the target objects, and greatly improves the data storage efficiency; then, a central management node is set and is associated with the initial networking frame to manage each node in the initial networking frame, so that the nodes in the initial networking frame are not required to be occupied to detect faults, and the node utilization efficiency is improved. The storage capacity of each main node in the initial networking frame is analyzed through the central management node, and reasonable auxiliary nodes are configured by combining the storage capacity of each main node so as to construct a perfect target networking frame, so that when the corresponding main node is detected and analyzed to be faulty or the storage capacity is insufficient through the subsequent central management node, the auxiliary nodes are timely called to store data, normal operation of a consensus communication channel is ensured, and the operation stability of the system is ensured. The invention can quickly and efficiently realize self-service networking of each node according to actual demand conditions, timely and effectively cope with faults, and ensure the stability of the block chain system.
Based on the second aspect, in some embodiments of the present invention, the initial networking module includes an information acquisition unit, a node determination unit, a node configuration unit, and a frame construction unit, where:
the information acquisition unit is used for acquiring basic information of the target object and target demand information;
The node determining unit is used for extracting and determining networking nodes according to the object identity information in the target object basic information;
The node configuration unit is used for extracting and determining configuration data of each networking node according to the data storage demand and the transaction information in the target demand information;
The frame construction unit is used for constructing and obtaining an initial networking frame based on a consensus mechanism according to the networking nodes and the configuration data of each networking node.
Based on the second aspect, in some embodiments of the present invention, the auxiliary adding module includes a node building unit and a node association unit, where:
the node construction unit is used for constructing auxiliary nodes according to the node capacity information;
The node association unit is used for setting association priority for each main node in the initial networking frame according to the node capacity information, and associating the auxiliary node with each main node according to the association priority so as to obtain the target networking frame.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory for storing one or more programs; a processor. The method of any of the first aspects described above is implemented when one or more programs are executed by a processor.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the first aspects described above.
The embodiment of the invention has at least the following advantages or beneficial effects:
The embodiment of the invention provides an automatic networking method and system for a blockchain technology, which are used for constructing a targeted networking frame by combining actual storage requirements and target objects, and selecting reasonable block nodes to support transaction requirements or data storage requirements of the target objects; a central management node is set and associated with the initial networking framework for managing each node in the initial networking framework. And analyzing the storage capacity of each main node in the initial networking frame through the central management node, and configuring reasonable auxiliary nodes by combining the storage capacity of each main node so as to construct a perfect target networking frame, so that when the corresponding main node is detected and analyzed to be faulty or the storage capacity is insufficient by the subsequent central management node, the auxiliary nodes are timely called for data storage. The invention can quickly and efficiently realize self-service networking of each node according to actual demand conditions, timely and effectively cope with faults, and ensure the stability of the block chain system.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an automated networking method for blockchain technology in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of an initial networking framework construction in an automated networking method for blockchain technology in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart of a target networking framework construction in an automated networking method for blockchain technology in accordance with an embodiment of the present invention;
FIG. 4 is a schematic block diagram of an automated networking system for blockchain technology in accordance with an embodiment of the present invention;
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Reference numerals illustrate: 100. an initial networking module; 200. a central management module; 300. a capability analysis module; 400. an auxiliary adding module; 500. detecting a networking module; 101. a memory; 102. a processor; 103. a communication interface.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Examples:
as shown in fig. 1-3, in a first aspect, an embodiment of the present invention provides an automated networking method for blockchain technology, including the steps of:
S1, acquiring and constructing an initial networking frame according to basic information of a target object and target requirements;
Further, as shown in fig. 2, includes:
s11, acquiring basic information and target demand information of a target object;
s12, extracting and determining networking nodes according to object identity information in the basic information of the target object;
S13, extracting and determining configuration data of each networking node according to the data storage demand and the transaction information in the target demand information;
S14, constructing an initial networking frame based on a consensus mechanism according to the networking nodes and configuration data of each networking node.
In some embodiments of the present invention, in order to improve networking efficiency, a targeted networking framework is built according to different requirements of different objects, so that resource waste is greatly reduced, and storage resource utilization rationality is improved. Firstly, corresponding networking nodes and configuration data of all networking nodes are determined according to object identity information in target object basic information, data storage demand and transaction information in target demand information, and then all networking nodes are subjected to consensus based on a consensus mechanism, and a consensus channel is established so as to obtain a reasonable initial networking framework. The target object basic information comprises object identity information, object quantity and the like; the target demand information includes demand scenes, demand categories, data storage demand amounts, transaction demands, and the like.
S2, setting a central management node, and associating the central management node with an initial networking frame;
S3, analyzing the storage capacity of each main node in the initial networking frame through the central management node to obtain node capacity information; the node capability information includes each master node information and its storage capability and node location.
S4, constructing and adding auxiliary nodes into the initial networking frame according to the node capacity information to obtain a target networking frame;
further, as shown in fig. 3, includes:
S41, constructing auxiliary nodes according to the node capacity information;
S42, setting association priorities for all the main nodes in the initial networking frame according to the node capacity information, and associating the auxiliary nodes with all the main nodes according to the association priorities so as to obtain the target networking frame.
In some embodiments of the present invention, in order to further improve the rationality and efficiency of networking, it is determined that one or more auxiliary nodes need to be constructed in combination with the storage capacity of each node, then, the association priority is set in sequence from low to high according to the storage capacity of the node, the lower the storage capacity of the node, the higher the association priority, the higher the node is, the auxiliary node and the node are preferentially associated, or a plurality of auxiliary nodes are associated for the node, so as to construct a more perfect target networking framework. And each main node in the target networking framework establishes a complete consensus channel based on a consensus mechanism, and when a certain main node fails, a proper auxiliary node is selected for replacement.
S5, detecting and analyzing the running condition of each main node in the target networking frame in real time through the central management node, generating and carrying out networking call on the corresponding auxiliary nodes in the target networking frame according to the detection result so as to ensure that the data synchronization channel is normal.
Further, the method comprises the steps of: collecting consensus status information and storage status information of each main node in a target networking frame in real time; and detecting and analyzing whether errors occur in each master node in real time through the central management node according to preset fault condition information, consensus condition information of each master node and storage condition information.
Further, the method comprises the steps of: and if the detection result is that the fault occurs, the auxiliary node in the target networking frame is called to replace the corresponding main node, and a common access of the auxiliary node and other main nodes is established.
In some embodiments of the present invention, in order to ensure normal operation of a blockchain system, ensure normal operation of block storage for a target object, real-time monitoring needs to be performed on consensus status information and storage status information of each main node, analysis is performed on whether the main node is faulty or not through a central management node, comparison analysis is performed on real-time collected fault status information and preset fault status information, if the fault status information is not in consensus intercommunication or exceeds preset storage capacity, an auxiliary node in a target networking frame is called to replace a faulty main node, a consensus channel between the auxiliary node and other main nodes in the target networking frame is established, and networking replacement is automatically and rapidly performed, so that stable operation of the system is ensured.
In order to solve the problems in the prior art, the method combines the actual storage requirement and the target object to construct a targeted networking frame, selects reasonable block nodes to support the transaction requirement or the data storage requirement of the target object, and greatly improves the data storage efficiency; then, a central management node is set and is associated with the initial networking frame to manage each node in the initial networking frame, so that the nodes in the initial networking frame are not required to be occupied to detect faults, and the node utilization efficiency is improved. The storage capacity of each main node in the initial networking frame is analyzed through the central management node, and reasonable auxiliary nodes are configured by combining the storage capacity of each main node so as to construct a perfect target networking frame, so that when the corresponding main node is detected and analyzed to be faulty or the storage capacity is insufficient through the subsequent central management node, the auxiliary nodes are timely called to store data, normal operation of a consensus communication channel is ensured, and the operation stability of the system is ensured. The invention can quickly and efficiently realize self-service networking of each node according to actual demand conditions, timely and effectively cope with faults, and ensure the stability of the block chain system.
As shown in fig. 4, in a second aspect, an embodiment of the present invention provides an automated networking system for blockchain technology, including: an initial networking module 100, a central management module 200, a capability analysis module 300, an auxiliary adding module 400 and a detection networking module 500, wherein:
The initial networking module 100 is configured to acquire and construct an initial networking frame according to the basic information of the target object and the target requirement;
The central management module 200 is configured to set a central management node, and associate the central management node with an initial networking frame;
The capability analysis module 300 is configured to analyze, by using a central management node, storage capabilities of each master node in the initial networking frame, so as to obtain node capability information;
the auxiliary adding module 400 is configured to construct and add an auxiliary node to the initial networking frame according to the node capability information to obtain a target networking frame;
The detection networking module 500 is configured to perform real-time detection analysis on the operation status of each main node in the target networking frame through the central management node, generate and perform networking call on the corresponding auxiliary node in the target networking frame according to the detection result, so as to ensure that the data synchronization channel is normal.
In order to solve the problems in the prior art, the system constructs a targeted networking framework by combining actual storage requirements and target objects through the cooperation of a plurality of modules such as an initial networking module 100, a central management module 200, a capability analysis module 300, an auxiliary adding module 400, a detection networking module 500 and the like, selects reasonable block nodes to support the transaction requirements or the data storage requirements of the target objects, and greatly improves the data storage efficiency; then, a central management node is set and is associated with the initial networking frame to manage each node in the initial networking frame, so that the nodes in the initial networking frame are not required to be occupied to detect faults, and the node utilization efficiency is improved. The storage capacity of each main node in the initial networking frame is analyzed through the central management node, and reasonable auxiliary nodes are configured by combining the storage capacity of each main node so as to construct a perfect target networking frame, so that when the corresponding main node is detected and analyzed to be faulty or the storage capacity is insufficient through the subsequent central management node, the auxiliary nodes are timely called to store data, normal operation of a consensus communication channel is ensured, and the operation stability of the system is ensured. The invention can quickly and efficiently realize self-service networking of each node according to actual demand conditions, timely and effectively cope with faults, and ensure the stability of the block chain system.
Based on the second aspect, in some embodiments of the present invention, the initial networking module 100 includes an information acquisition unit, a node determination unit, a node configuration unit, and a frame construction unit, where:
the information acquisition unit is used for acquiring basic information of the target object and target demand information;
The node determining unit is used for extracting and determining networking nodes according to the object identity information in the target object basic information;
The node configuration unit is used for extracting and determining configuration data of each networking node according to the data storage demand and the transaction information in the target demand information;
The frame construction unit is used for constructing and obtaining an initial networking frame based on a consensus mechanism according to the networking nodes and the configuration data of each networking node.
In order to improve networking efficiency, the information acquisition unit, the node determination unit, the node configuration unit, the frame construction unit and other units are matched to construct a targeted networking frame aiming at different requirements of different objects, so that resource waste is greatly reduced, and storage resource utilization rationality is improved. The node determining unit and the node configuring unit determine the corresponding networking nodes and the configuration data of the networking nodes according to the object identity information in the basic information of the target object and the data storage demand and transaction information in the target demand information, and then the frame constructing unit carries out consensus on the networking nodes based on a consensus mechanism to establish a consensus channel so as to obtain a reasonable initial networking frame. The target object basic information comprises object identity information, object quantity and the like; the target demand information includes demand scenes, demand categories, data storage demand amounts, transaction demands, and the like.
Based on the second aspect, in some embodiments of the present invention, the auxiliary adding module 400 includes a node constructing unit and a node associating unit, where:
the node construction unit is used for constructing auxiliary nodes according to the node capacity information;
The node association unit is used for setting association priority for each main node in the initial networking frame according to the node capacity information, and associating the auxiliary node with each main node according to the association priority so as to obtain the target networking frame.
In order to further improve the rationality and the high efficiency of networking, the node construction unit is used for combining the storage capacity of each node to determine that one or more auxiliary nodes need to be constructed, then the node association unit is used for sequentially setting association priorities according to the low-to-high storage capacity of the nodes, the association priorities are higher as the storage capacity of the nodes is lower, the nodes and the auxiliary nodes are preferentially associated, or a plurality of auxiliary nodes are associated for the nodes, so that a more perfect target networking framework is constructed.
As shown in fig. 5, in a third aspect, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; a processor 102. The method of any of the first aspects described above is implemented when one or more programs are executed by the processor 102.
And a communication interface 103, where the memory 101, the processor 102 and the communication interface 103 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules that are stored within the memory 101 for execution by the processor 102 to perform various functional applications and data processing. The communication interface 103 may be used for communication of signaling or data with other node devices.
The Memory 101 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In the embodiments provided in the present application, it should be understood that the disclosed method, system and method may be implemented in other manners. The above-described method and system embodiments are merely illustrative, for example, flow charts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems, methods and computer program products according to various embodiments of the present application. 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.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by the processor 102, implements a method as in any of the first aspects described above. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (6)

1. An automated networking method for blockchain technology, comprising the steps of:
acquiring and constructing an initial networking framework according to basic information of a target object and target requirements, wherein the initial networking framework comprises the following steps: acquiring basic information and target demand information of a target object; extracting and determining networking nodes according to object identity information in the basic information of the target object; extracting and determining configuration data of each networking node according to the data storage demand and transaction information in the target demand information; constructing and obtaining an initial networking frame based on a consensus mechanism according to networking nodes and configuration data of each networking node;
setting a central management node, and associating the central management node with an initial networking frame;
analyzing the storage capacity of each main node in the initial networking frame through a central management node to obtain node capacity information;
Constructing and adding auxiliary nodes into the initial networking frame according to the node capacity information to obtain a target networking frame, wherein the method comprises the following steps of: constructing auxiliary nodes according to the node capacity information; setting association priorities for all main nodes in the initial networking frame according to the node capacity information, and associating the auxiliary nodes with all the main nodes according to the association priorities so as to obtain a target networking frame;
and carrying out real-time detection and analysis on the running conditions of all the main nodes in the target networking frame through the central management node, generating and carrying out networking calling on corresponding auxiliary nodes in the target networking frame according to the detection result so as to ensure that the data synchronization channel is normal.
2. An automated networking method for blockchain technologies according to claim 1, wherein the method for real-time detection and analysis of the operation status of each master node in the target networking frame by the central management node comprises the following steps:
Collecting consensus status information and storage status information of each main node in a target networking frame in real time;
and detecting and analyzing whether errors occur in each master node in real time through the central management node according to preset fault condition information, consensus condition information of each master node and storage condition information.
3. An automated networking method for blockchain technologies according to claim 1, wherein the method of networking call to the corresponding auxiliary node in the target networking framework according to the detection result comprises the following steps:
and if the detection result is that the fault occurs, the auxiliary node in the target networking frame is called to replace the corresponding main node, and a common access of the auxiliary node and other main nodes is established.
4. An automated networking system for blockchain technology, comprising: the system comprises an initial networking module, a central management module, a capability analysis module, an auxiliary adding module and a detection networking module, wherein:
the initial networking module is used for acquiring and constructing an initial networking frame according to the basic information of the target object and the target requirement;
the center management module is used for setting a center management node and associating the center management node with the initial networking frame;
The capacity analysis module is used for analyzing the storage capacity of each main node in the initial networking frame through the central management node so as to obtain node capacity information;
The auxiliary adding module is used for constructing and adding auxiliary nodes into the initial networking frame according to the node capacity information so as to obtain a target networking frame;
The detection networking module is used for carrying out real-time detection analysis on the running condition of each main node in the target networking frame through the central management node, generating and carrying out networking call on the corresponding auxiliary nodes in the target networking frame according to the detection result so as to ensure that the data synchronization channel is normal;
The initial networking module comprises an information acquisition unit, a node determination unit, a node configuration unit and a frame construction unit, wherein:
the information acquisition unit is used for acquiring basic information of the target object and target demand information; the node determining unit is used for extracting and determining networking nodes according to the object identity information in the target object basic information; the node configuration unit is used for extracting and determining configuration data of each networking node according to the data storage demand and the transaction information in the target demand information; the frame construction unit is used for constructing an initial networking frame based on a consensus mechanism according to the networking nodes and the configuration data of each networking node;
the auxiliary adding module comprises a node construction unit and a node association unit, wherein:
the node construction unit is used for constructing auxiliary nodes according to the node capacity information; the node association unit is used for setting association priority for each main node in the initial networking frame according to the node capacity information, and associating the auxiliary node with each main node according to the association priority so as to obtain the target networking frame.
5. An electronic device, comprising:
a memory for storing one or more programs;
A processor;
The method of any of claims 1-3 being implemented when the one or more programs are executed by the processor.
6. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-3.
CN202210846899.3A 2022-07-19 Automatic networking method and system for block chain technology Active CN115208895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210846899.3A CN115208895B (en) 2022-07-19 Automatic networking method and system for block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210846899.3A CN115208895B (en) 2022-07-19 Automatic networking method and system for block chain technology

Publications (2)

Publication Number Publication Date
CN115208895A CN115208895A (en) 2022-10-18
CN115208895B true CN115208895B (en) 2024-07-05

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639413A (en) * 2018-12-10 2019-04-16 四川大学 A kind of block catenary system based on mobile ad hoc network
CN110351133A (en) * 2019-06-28 2019-10-18 阿里巴巴集团控股有限公司 Method and device for the host node hand-off process in block catenary system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639413A (en) * 2018-12-10 2019-04-16 四川大学 A kind of block catenary system based on mobile ad hoc network
CN110351133A (en) * 2019-06-28 2019-10-18 阿里巴巴集团控股有限公司 Method and device for the host node hand-off process in block catenary system

Similar Documents

Publication Publication Date Title
CN114185708A (en) Data analysis method and device based on distributed link tracking and electronic equipment
CN112631913B (en) Method, device, equipment and storage medium for monitoring operation faults of application program
CN110471945B (en) Active data processing method, system, computer equipment and storage medium
CN106874135B (en) Method, device and equipment for detecting machine room fault
CN113176978A (en) Monitoring method, system and device based on log file and readable storage medium
CN110009347B (en) Block chain transaction information auditing method and device
CN110247977B (en) Data fusion method and system based on edge calculation
CN111078513A (en) Log processing method, device, equipment, storage medium and log alarm system
CN111651595A (en) Abnormal log processing method and device
CN111680104B (en) Data synchronization method, device, computer equipment and readable storage medium
CN110807050B (en) Performance analysis method, device, computer equipment and storage medium
CN111711540B (en) Method and device for identifying government and enterprise business alarm
CN107203464B (en) Method and device for positioning service problem
CN115208895B (en) Automatic networking method and system for block chain technology
CN110609761B (en) Method and device for determining fault source, storage medium and electronic equipment
CN117271177A (en) Root cause positioning method and device based on link data, electronic equipment and storage medium
CN112751722B (en) Data transmission quality monitoring method and system
CN112363893B (en) Method, equipment and device for detecting time sequence index abnormity
CN113285978B (en) Fault identification method based on block chain and big data and general computing node
CN113746924B (en) Cross-region transmission method and device for power grid business data
CN115496470A (en) Full-link configuration data processing method and device and electronic equipment
CN115017211A (en) Method and device for determining abnormality detection object, storage medium and computer equipment
CN114896653A (en) Building data monitoring method and system based on BIM
CN115208895A (en) Automatic networking method and system for block chain technology
CN112860527A (en) Fault monitoring method and device of application server

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240612

Address after: Unit 2, Building B, No. 300 Zhihui Road, Qilin Technology Innovation Park, Jiangning District, Nanjing City, Jiangsu Province, 211135

Applicant after: Nanjing Zhongke Qixing Software Co.,Ltd.

Country or region after: China

Address before: Office 804, Building 8, No. 2333, Hong Kong and Macao Avenue, Hengqin New District, Zhuhai City, Guangdong Province, 519000

Applicant before: Chinasoft Aviation Data Technology (Zhuhai Hengqin) Co.,Ltd.

Country or region before: China

GR01 Patent grant