CN108650333A - Dispersed nodes load method, medium, device and the block catenary system of block catenary system - Google Patents

Dispersed nodes load method, medium, device and the block catenary system of block catenary system Download PDF

Info

Publication number
CN108650333A
CN108650333A CN201810857274.0A CN201810857274A CN108650333A CN 108650333 A CN108650333 A CN 108650333A CN 201810857274 A CN201810857274 A CN 201810857274A CN 108650333 A CN108650333 A CN 108650333A
Authority
CN
China
Prior art keywords
node
block
logical
network
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.)
Granted
Application number
CN201810857274.0A
Other languages
Chinese (zh)
Other versions
CN108650333B (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.)
Ke'an (Xiamen) Technology Co.,Ltd.
Original Assignee
Thai Chain (xiamen) 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 Thai Chain (xiamen) Technology Co Ltd filed Critical Thai Chain (xiamen) Technology Co Ltd
Priority to CN201810857274.0A priority Critical patent/CN108650333B/en
Publication of CN108650333A publication Critical patent/CN108650333A/en
Application granted granted Critical
Publication of CN108650333B publication Critical patent/CN108650333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of dispersed nodes load methods of block catenary system, include the following steps:At least two functional nodes are configured, and functional node is combined into a logical node with unique identification information in block chain network;When logical node is in active state, the node for having network connecting function in control logic node waits for other nodes for having network connecting function to be attached, and the node listing control network connection node based on configuration is attempted to establish with other network connection nodes and be connected, and block production is started based on the data storage operation node in original block producer's list controls logical node, and user's requesting node open port in control logic node is to wait for the incoming of user task request data package;Correspondingly, the invention also discloses a kind of medium, device and block catenary systems;It can realize and break up the function of single node, to mitigate the running load of single node, and then improve the stability of block catenary system.

Description

Dispersed nodes load method, medium, device and the block catenary system of block catenary system
Technical field
The present invention relates to block chain technical field, more particularly to a kind of dispersed nodes load method of block catenary system is situated between Matter, device and block catenary system.
Background technology
Block chain be decentralization and go trust by way of collective safeguard an authentic data library technical solution. In existing block catenary system, single node affairs to be treated often there are many(For example, the task requests of user, network The transmitting and receiving of data, operation storage of data etc.);Cause the load of single node larger, is easy so that load is more than node Node collapses are caused when tolerance interval, to influence the normal operation of block catenary system.
Invention content
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, the present invention One purpose is to propose a kind of dispersed nodes load method of block catenary system, can realize and carry out the function of single node Differentiation, to mitigate the running load of single node, to improve the stability of block catenary system.
Second object of the present invention is to propose a kind of computer readable storage medium.
Third object of the present invention is to propose a kind of dispersed nodes load device of block catenary system.
Fourth object of the present invention is to propose a kind of block catenary system.
In order to achieve the above objectives, first aspect present invention embodiment proposes a kind of dispersed nodes load of block catenary system Method includes the following steps:At least two functional nodes are configured, and at least two functional nodes are combined into a logic section Point, wherein at least two functional nodes have data storage calculation function, network connecting function and user's request function, described Logical node has unique identification information in block chain network;When the logical node is in active state, institute is controlled State have the node open port of network connecting function in logical node with wait for other have the node of network connecting function into Row connection, and have in logical node described in the logical node list controls based on configuration network connecting function node attempt with The node for having network connecting function in other logical nodes establishes a connection, and is based on original block producer's list control It makes the node for having data storage calculation function in the logical node and starts block production, and control and have in the logical node The node open port of standby user request function is to wait for the incoming of user task request data package.
The dispersed nodes load method of block catenary system according to the ... of the embodiment of the present invention configures at least two functions first Node, and at least two functional nodes are combined into a logical node, wherein at least two functional nodes have data storage Calculation function, network connecting function and user's request function, logical node have unique identification information in block chain network; Then, when logical node is in active state, have in control logic node the node open port of network connecting function with Other nodes for having network connecting function are waited for be attached, and in the logical node list controls logical node based on configuration The node trial for having network connecting function establishes a connection with the node for having network connecting function in other logical nodes, And block life is started based on the node for having data storage calculation function in original block producer's list controls logical node Production, and have the node open port of user's request function in control logic node to wait for the biography of user task request data package Enter;The function of single node is broken up to realize, to mitigate the running load of single node, and then improves block linkwork The stability of system.
In addition, the dispersed nodes load method of the block catenary system proposed according to the above embodiment of the present invention can also have Following additional technical characteristic:
Optionally, at least two functional nodes are three, and three functional nodes are respectively data storage operation node, network connection Node and user's requesting node, between data storage operation node, network connection node and user's requesting node two-by-two into Row interaction, wherein any one node in the data storage operation node, network connection node and user's requesting node is fixed Whether the phase sends inquiry data packet to other two node, normal with the mutual connection of inquiry;If any one section Point receives two and responds normal information, then judges that the logical node is in active state;If any one node It receives the information of at least one response exception or can not be connect with other nodes, then judge that the logical node is in suspend mode State.
Optionally, when that need to access block chain network there are new logic node, the network in the new logic node connects Configuration network connecting node address set on node is connect, and basis is matched after the repertoire node startup in the new logic node Network connection node in the new logic node is connected in the block chain network by the network connection node address set set The new logic node is connected into the block chain network by the network connection node of respective logic node.
Optionally, it when the user task request data package is incoming, obtains and waits for incoming user's requesting node, and will Incoming user's requesting node is waited for described in being sent to after task requests packing signature, wherein described to wait for that incoming user asks section Point parses the user task request data package based on client public key to obtain task requests, and task requests are forwarded Operation node is stored to the data in counterlogic node, while task requests are transmitted to the network in counterlogic node and are connected Node is connect, it is wide to be carried out in the block chain network task requests by the network connection node in counterlogic node It broadcasts;When counterlogic node has book keeping operation temporary, the data storage operation node store tasks request in counterlogic node is simultaneously Carry out operation.
Optionally, when the network connection node in any one logical node in the block chain network receives broadcast When data packet, the network connection node in the logical node deposits the data that the broadcast data packet is transmitted in the logical node Storage and transportation operator node, wherein when the broadcast data packet is block synchronous package, the data in the logical node store operation node Directly stored;When the broadcast data packet is task requests packet and the logical node has block manufacturing right, the logic Data storage operation node in node carries out block production according to the task requests in the task requests packet.
Optionally, when the block chain network triggering dpos block producers vote event, in the block chain network Each logical node participate in as a whole ballot to campaign for block manufacturing right, wherein be triggered in block working condition When, there is the storage operation node of the data in the logical node of block manufacturing right to carry out task record and block production to generate together Block is walked, and synchronous block is transmitted to the network connection node in the logical node with block manufacturing right, so as to area Synchronous block is packaged into after block synchronous package in the block link network by the network connection node in the logical node of block manufacturing right It is broadcasted in network.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon It is stored with the dispersed nodes programmed load of block catenary system, the dispersed nodes programmed load of the block catenary system is executed by processor The dispersed nodes load method of block catenary system for example above-mentioned Shi Shixian.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of dispersed nodes load of block catenary system Device, including:Configuration module and load module, wherein the configuration module is used for, and configures at least two functional nodes, And at least two functional nodes are combined into a logical node, wherein at least two functional nodes have data storage operation Function, network connecting function and user's request function, the logical node have unique identification information in block chain network; The load module is used for, and when the logical node is in active state, controls in the logical node and has network The node open port of linkage function is attached with the node for waiting for other to have network connecting function, and patrolling based on configuration Node listing is collected to control the node trial for having network connecting function in the logical node and have net in other logical nodes The node of network linkage function establishes a connection, and based on having in logical node described in original block producer's list controls The node of data storage calculation function starts block production, and controls the node for having user's request function in the logical node Open port is to wait for the incoming of user task request data package.
The dispersed nodes load device of block catenary system according to the ... of the embodiment of the present invention, configuration module is for configuring at least two A functional node, and at least two functional nodes are combined into a logical node, wherein at least two functional nodes have number According to storage calculation function, network connecting function and user's request function, logical node has unique mark in block chain network Know information;Load module is used for when logical node is in active state, has network connection work(in control logic node The node open port of energy is attached with the node for waiting for other to have network connecting function, and the logical node based on configuration The node for having network connecting function in list controls logical node is attempted and has network connecting function in other logical nodes Node establish a connection, and based on have in the original block producer's list controls logical node data store operation work( The node of energy starts block production, and has the node open port of user's request function in control logic node to wait for user Task requests data packet is passed to;The function of single node is broken up to realize, it is negative with the running for mitigating single node Lotus, and then improve the stability of block catenary system.
In addition, the dispersed nodes load device of the block catenary system proposed according to the above embodiment of the present invention can also have Following additional technical characteristic:
Optionally, at least two functional nodes are three, and three functional nodes are respectively data storage operation node, network connection Node and user's requesting node, between data storage operation node, network connection node and user's requesting node two-by-two into Row interaction, any one node in data storage operation node, network connection node and user's requesting node periodically to Whether other two node sends inquiry data packet, normal with the mutual connection of inquiry, wherein the dispersed nodes load Device further includes judgment module, and the judgment module is used for, if any one node, which receives two, responds normal letter Breath, then judge that the logical node is in active state;If any one node receives at least one response exception Information then judges the logical node in a dormant state.
In order to achieve the above objectives, fourth aspect present invention proposes a kind of block catenary system, including above-mentioned block linkwork The dispersed nodes load device of system.
Description of the drawings
Fig. 1 is the flow diagram according to the dispersed nodes load method of the block catenary system of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the mode of the decision logic node active state of the embodiment of the present invention;
Fig. 3 is the flow diagram that block chain network is accessed according to the logical node of the embodiment of the present invention;
Fig. 4 is the flow diagram that task requests are submitted according to the user of the embodiment of the present invention;
Fig. 5 is the broadcast data packet processing flow schematic diagram according to the embodiment of the present invention;
Fig. 6 is the block production procedure schematic diagram according to the embodiment of the present invention;
Fig. 7 is the block diagram according to the dispersed nodes load device of the block catenary system of the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
In existing block catenary system, the item handled needed for single node is more and complicated, be easy to cause node load It is excessive and collapse, to influence the normal operation of block catenary system;The dispersion section for the block catenary system that the embodiment of the present invention proposes Point load method, first, at least two functional nodes of configuration are combined into a logical node, and at least two functional nodes have number According to storage high in the clouds function, network connecting function and user's request function;Then, has network connecting function in control logic node Node open port be attached with the node for waiting for other to have network connecting function, and based on configuration logical node row The node for having network connecting function in table control logic node is attempted and has network connecting function in other logical nodes Node establishes a connection, and stores calculation function based on having data in original block producer's list controls logical node Node start block production, and have in control logic node the node open port of user's request function with wait for user appoint Request data package of being engaged in is passed to;The function of single node is broken up to realize, to mitigate the running load of single node, And then improve the stability of block catenary system.
In order to better understand the above technical scheme, the exemplary reality of the present invention is more fully described below with reference to accompanying drawings Apply example.Although showing exemplary embodiment of the present invention in attached drawing, it being understood, however, that may be realized in various forms this hair It is bright without should be limited by embodiments set forth here.It is to be able to be best understood from this on the contrary, providing these embodiments Invention, and the scope of the present invention can be completely communicated to those skilled in the art.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Fig. 1 is the flow diagram of the dispersed nodes load method of the block catenary system proposed according to the embodiment of the present invention, As shown in Figure 1, the dispersed nodes load method of the block catenary system includes the following steps:
S101 configures at least two functional nodes, and at least two functional nodes is combined into a logical node, wherein extremely Few two functional nodes have data storage calculation function, network connecting function and user's request function, and logical node is in block There is unique identification information in chain network.
That is, the quantity of functional node at least needs two, a logic is combined by least two functional nodes Node, also, the logical node has unique identification information in block chain network;Wherein, at least two functional node energy It is enough to realize to data storage operation, establish network connection and reception user request information with other nodes.
As an example, the quantity of functional node is two, the connection between functional node is established, by two functions Combination of nodes is at a logical node, wherein a functional node is set as the data storage with data storage calculation function Operation node, another functional node are set as the network connection node with network connecting function and user's request function, with To needing the affairs that single node is handled to carry out functional differentiation processing by two functional nodes originally, mitigate single node Load.
As another example, the quantity of functional node is three, and three functional nodes are combined into a logical node;Its In, three functional nodes are respectively to store the data storage operation node of budget function, with network connecting function with data Network connection node and with receive user's request function user's requesting node;In this way, by the way that three functional nodes are arranged It is combined into a logical node, and functional differentiation is carried out to three functional nodes, load is operated to mitigate single node.
S102, when logical node is in active state, the node for having network connecting function in control logic node is opened It puts port and is attached with the node for waiting for other to have network connecting function, and the logical node list controls based on configuration are patrolled The node collected the node trial for having network connecting function in node and have network connecting function in other logical nodes is established Connection relation, and opened based on the node for having data storage calculation function in original block producer's list controls logical node Beginning block produces, and has the node open port of user's request function in control logic node to wait for user task number of request According to the incoming of packet.
That is, when the state of logical node is active state, has network connecting function in control logic node Node open port, connect so that other nodes for having network connecting function pass through the open port and logical node and establish It connects;Also, the node for having network connecting function in the logical node list controls logical node based on configuration is attempted and other The node for having network connecting function in logical node establishes a connection, with according to logical node list by having network company Connection in the node foundation and list of connection function between each logical node;Then, according to original block producer's list controls The node for having data storage calculation function in logical node starts block production, and has user's request in control logic node The node open port of function, so that user can carry out the incoming of task by open port.
Wherein, decision logic node whether in active state mode there are many, such as:When the quantity of functional node is At two, two functional nodes every preset time to other side send inquiry data packet, with the mutual connection of inquiry whether Normally, and wherein any one functional node, which receives, responds abnormal information or when another node can not connect, then sentences Disconnected logical node is in a dormant state;Alternatively, the hair of inquiry data packet is only carried out according to preset time by a functional node It send, and is received in the functional node and respond abnormal information or another node does not receive inquiry data packet in preset time When, decision logic node is in a dormant state.
In conclusion the dispersed nodes load method of block catenary system according to the ... of the embodiment of the present invention, first, configuration is at least Two functional nodes, and at least two functional nodes are combined into a logical node, wherein at least two functional nodes have Data store calculation function, network connecting function and user's request function, and logical node has unique in block chain network Identification information;Then, when logical node is in active state, the node for having network connecting function in control logic node is opened It puts port and is attached with the node for waiting for other to have network connecting function, and the logical node list controls based on configuration are patrolled The node collected the node trial for having network connecting function in node and have network connecting function in other logical nodes is established Connection relation, and opened based on the node for having data storage calculation function in original block producer's list controls logical node Beginning block produces, and has the node open port of user's request function in control logic node to wait for user task number of request According to the incoming of packet;The function of single node is broken up to realize, to mitigate the running load of single node, and then is improved The stability of block catenary system.
As shown in Fig. 2, in some embodiments, the dispersed nodes load side for the block catenary system that the embodiment of the present invention proposes In method, when at least two functional nodes are three, three functional nodes are respectively data storage operation node, network connection section Point and user's requesting node interact two-by-two between data storage operation node, network connection node and user's requesting node; Wherein, whether the mode in active state is specially decision logic node:
S201, data store any one node in operation node, network connection node and user's requesting node periodically to another Whether outer two nodes send inquiry data packet, normal with the mutual connection of inquiry;If any one node receives Normal information is responded to two, then decision logic node is in active state;If any one node receives at least One is responded abnormal information or can not be connect with other nodes, then decision logic node is in a dormant state.
That is, when the quantity of functional node is three, three functional nodes be respectively data storage operation node, Network connection node and user's requesting node;Data store two between operation node, network connection node and user's requesting node Two interact;Wherein, any one node meeting in data storage operation node, network connection node and user's requesting node Inquiry data packet periodically is sent to other two functional node, it is whether normal with the mutual connection of inquiry;When other two When functional node receives inquiry data packet, whether judgement is normal with the connection of other functional nodes in addition to itself, if sentenced Disconnected result is yes, then responds normal information, if it is judged that being no, then respond abnormal information;Then, if it is any one A node receives two and responds normal information, then decision logic node is in active state;If any one node connects It receives the information of at least one response exception or can not be connect with other nodes, then decision logic node is in a dormant state. To occur being closed to logical node when connection is abnormal between each functional node in logical node, ensure block catenary system Normal operation.
In conclusion the scatteredload method of block catenary system according to the ... of the embodiment of the present invention, data storage operation node, Any one node in network connection node and user's requesting node periodically sends inquiry data packet to other two node, with Whether the mutual connection of inquiry is normal;If any one node receives two and responds normal information, judge Logical node is in active state;If any one node receive at least one response exception information or can not be with Other nodes connect, then decision logic node is in a dormant state;To connect between each functional node in logical node Logical node is closed when connecing exception, ensures the normal operation of block catenary system.
As shown in figure 3, in some embodiments, the scatteredload method for the block catenary system that the embodiment of the present invention proposes In, when that need to access block chain network there are new logic node, the scatteredload method of the block catenary system further includes following step Suddenly:
S301, Configuration network connecting node address set on the network connection node in new logic node, and in new logic node In repertoire node start after according to the network connection node address set of configuration by the network connection section in new logic node Point is connected to the network connection node of respective logic node in block chain network, and new logic node is connected into block chain network.
That is, when needing to access block chain network there are new logic node, has network in new logic node The node for having network connection node function in new logic node block chain network to be connected is configured on the node of linkage function Address set, so that new logic node establishes the node and node that itself have network connecting function according to the node address collection of configuration The connection of address centralized node;Wherein, after the repertoire node of new logic node starts, just according to the node address of configuration Collection establishes the connection of the node and node address centralized node that itself have network connecting function;New logic node is connected into area Block chain network.
As shown in figure 4, in some embodiments, the dispersed nodes load side for the block catenary system that the embodiment of the present invention proposes In method, when user needs task requests being submitted to block chain network, the dispersed nodes load method of the block catenary system is also Include the following steps:
S401 is obtained and is waited for incoming user's requesting node, and task requests are packaged to be sent to after signature and wait for that incoming user asks Seek node.
That is, when user needs task requests being passed to block catenary system, obtains wait for that incoming user asks first Node is sought, then is packaged to be sent to after signature by task requests and waits for incoming user's requesting node.
Wherein, it obtains and waits for there are many modes of incoming user's requesting node.
As an example, user's requesting node address set that user issues according to block catenary system official website carries out waiting being passed to User's requesting node selection, it should be noted that can system official website issue user's requesting node address be set shown in The state of each user's requesting node(For example, the connection signal intensity, each user between user node and each user's requesting node are asked Ask operational capability, the idle state etc. of node), so that user carries out waiting for incoming user according to the state of each user's requesting node The selection of requesting node.
It should be noted that task requests, which are packaged signature, refers to that user treats incoming task by block catenary system Request be packaged and signed to the task requests after packing by owned private key, to ensure that task requests pass Defeated safety.
S402 waits for that incoming user's requesting node parses to obtain user task request data package based on client public key Obtain task requests.
That is, after waiting for that incoming user's requesting node receives the task requests data packet for being packaged and signing, make The task requests data packet is parsed with the public key of corresponding private key for user, to obtain task requests.
Task requests are transmitted to the data in counterlogic node and store operation node by S403, while by task requests The network connection node being transmitted in counterlogic node, to be asked task by the network connection node in counterlogic node It asks and is broadcasted in block chain network.
That is, user's requesting node after being parsed to task requests data packet and obtaining task requests, is incited somebody to action Task requests are transmitted to the storage operation node of the data in counterlogic node, so that logical node is possessing book keeping operation temporary to this Task requests are handled;Meanwhile task requests are also transmitted to the network connection in counterlogic node by user's requesting node Node broadcasts task requests in block chain network.
S404, when counterlogic node has book keeping operation temporary, the data storage operation node in counterlogic node stores Task requests simultaneously carry out operation.
That is, data store operation node after the task requests for receiving the forwarding of user's requesting node, judge Whether logical node where itself possesses book keeping operation power, and when the determination result is yes, and data store operation node to task requests Carry out storage union.
As shown in figure 5, in some embodiments, the dispersed nodes load side for the block catenary system that the embodiment of the present invention proposes In method, when the network connection node in any one logical node in block chain network receives broadcast data packet, wherein Broadcast data packet includes block synchronous package and task requests packet;The dispersed nodes load method of the block catenary system further includes following Step:
Broadcast data packet is transmitted to the data in logical node and stores operation section by S501, the network connection node in logical node Point.
S502 executes step S503, judges when data storage operation node judges the broadcast data packet for block synchronous package When the broadcast data packet is task requests packet, step S504 is executed.
That is, data store operation node when receiving broadcast data packet, the classification of broadcast data packet is carried out Judge, judges that the broadcast data packet is block synchronous package or task requests packet, to carry out difference to different broadcast data packets Processing.
S503, the data storage operation node in logical node directly store block synchronous package.
In other words, when broadcast data packet is block synchronous package, data store operation node and are directly carried out to block synchronous package Storage, so that each logical node synchronizes update to block chained file.
S504, judges whether the logical node has block manufacturing right, and when the determination result is yes, in the logical node Data storage operation node according in task requests packet task requests carry out block production.
That is, when broadcast data packet is task requests packet, judge whether the logical node has block manufacturing right, When judging result is to be, the data storage operation node in the logical node is carried out according to the task requests in task requests packet Block produces.
Wherein, decision logic node whether with block manufacturing right mode there are many.
As an example, by way of distributing block manufacturing right mark, to possess the logical node of block manufacturing right Block manufacturing right mark is distributed, and stores operation node by data and block manufacturing right mark is stored;When data are deposited When storage and transportation operator node receives the task requests packet of network connection node forwarding, judge whether itself is stored with block manufacturing right Mark, if so, judging that the corresponding logical node of data storage operation node has block manufacturing right.
Wherein, data storage operation node carries out block production according to the task requests in task requests packet and refers to number According to storage operation node according to the task requests in task requests packet, storage union is carried out to task requests, and reaching The generation of block is carried out after preset condition.
As shown in fig. 6, in some embodiments, in the dispersed nodes load method of block catenary system proposed by the present invention, The block producer triggers dpos block producers ballot event by block chain network and generates, each logic in block chain network Node participates in ballot to campaign for block manufacturing right as a whole, wherein when block working condition is triggered, the block chain The dispersed nodes load method of system is further comprising the steps of:
S601, with block manufacturing right logical node in data storage operation node carry out task record and block production with Generate synchronous block.
That is, when block working condition is triggered, the data storage in the logical node with block manufacturing right Operation node records task, and is packaged the task after upper block timeline to generate synchronous block.
Wherein, there are many triggering modes of block working condition, such as;By presetting block production time, mono- areas Dang Shang When the interval of block timeline and current time reaches the default block production time, then block production event is triggered;Alternatively, default every The task storage quantity of one block, task quantity after upper block timeline in block catenary system reach preset each After the task storage quantity of block, triggering block produces event.
Synchronous block is transmitted to the network connection node in the logical node with block manufacturing right by S602.
That is, the data storage operation node in the logical node with block manufacturing right is packaged to task And after generating synchronous block, synchronous block is transmitted to the network connection node in counterlogic node.
There is the network connection node in the logical node of block manufacturing right synchronous block is packaged into block and synchronize by S603 It is broadcasted in block chain network after packet.
That is, the network connection node in the logical node with block manufacturing right is receiving data storage operation After the synchronization block that node is sent, synchronous block is packaged as block synchronous package, and block is synchronized into packet broadcast to block chain In network, so that other logical nodes carry out block chain synchronization according to block synchronous package.
To realize that above-described embodiment, the embodiment of the present invention propose a kind of computer readable storage medium, be stored thereon with The dispersed nodes programmed load of block catenary system, the dispersed nodes programmed load of the block catenary system are realized when being executed by processor The dispersed nodes load method of above-mentioned block catenary system.
To realize above-described embodiment, the present invention proposes a kind of dispersed nodes load device of block catenary system, such as Fig. 7 institutes Show, the dispersed nodes load device of the block catenary system includes:Configuration module 10 and load module 20.
Wherein, configuration module 10 is for configuring at least two functional nodes, and at least two functional nodes are combined into one A logical node, wherein at least two functional nodes, which have data storage calculation function, network connecting function and user, asks work( Can, logical node has unique identification information in block chain network
Load module 20 is used for when logical node is in active state, has network connecting function in control logic node Node open port be attached with the node for waiting for other to have network connecting function, and based on configuration logical node row The node for having network connecting function in table control logic node is attempted and has network connecting function in other logical nodes Node establishes a connection, and stores calculation function based on having data in original block producer's list controls logical node Node start block production, and have in control logic node the node open port of user's request function with wait for user appoint Request data package of being engaged in is passed to.
The dispersed nodes load device of block catenary system according to the ... of the embodiment of the present invention, configuration module is for configuring at least two A functional node, and at least two functional nodes are combined into a logical node, wherein at least two functional nodes have number According to storage calculation function, network connecting function and user's request function, logical node has unique mark in block chain network Know information;Load module is used for when logical node is in active state, has network connection work(in control logic node The node open port of energy is attached with the node for waiting for other to have network connecting function, and the logical node based on configuration The node for having network connecting function in list controls logical node is attempted and has network connecting function in other logical nodes Node establish a connection, and based on have in the original block producer's list controls logical node data store operation work( The node of energy starts block production, and has the node open port of user's request function in control logic node to wait for user Task requests data packet is passed to;The function of single node is broken up to realize, it is negative with the running for mitigating single node Lotus, and then improve the stability of block catenary system.
In some embodiments, in the dispersed nodes load device for the block catenary system that the embodiment of the present invention proposes, at least Two functional nodes are three, and three functional nodes are respectively data storage operation node, network connection node and user's request Node interacts two-by-two between data storage operation node, network connection node and user's requesting node, and data store operation Any one node in node, network connection node and user's requesting node periodically sends inquiry data to other two node Whether packet is normal with the mutual connection of inquiry, wherein dispersed nodes load device further includes judgment module, judgment module For if any one node, which receives two, responds normal information, decision logic node to be in active state;Such as Fruit any one node receives the information of at least one response exception, then decision logic node is in a dormant state.
In order to realize that above-described embodiment, the embodiment of the present invention propose a kind of block catenary system, which includes The dispersed nodes load device of above-mentioned block catenary system.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program of upper implementation produces The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that in the claims, any reference mark between bracket should not be configured to power The limitation that profit requires.Word "comprising" does not exclude the presence of component not listed in the claims or step.Before component Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled Several in setting can be embodied by the same hardware branch.The use of word first, second, and third is not Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot It is interpreted as indicating or implies relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more this feature.In the description of the present invention, The meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc. Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;Can be that machinery connects It connects, can also be electrical connection;It can be directly connected, can also can be indirectly connected through an intermediary in two elements The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature can be with "above" or "below" second feature It is that the first and second features are in direct contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of Fisrt feature level height is higher than second feature.Fisrt feature second feature " under ", " lower section " and " below " can be One feature is directly under or diagonally below the second feature, or is merely representative of fisrt feature level height and is less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It is interpreted as that identical embodiment or example must be directed to.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changes, replacing and modification.

Claims (10)

1. a kind of dispersed nodes load method of block catenary system, which is characterized in that include the following steps:
At least two functional nodes are configured, and at least two functional nodes are combined into a logical node, wherein at least two Functional node has data storage calculation function, network connecting function and user's request function, and the logical node is in block chain There is unique identification information in network;
When the logical node is in active state, controls the node for having network connecting function in the logical node and open Port is attached with the node for waiting for other to have network connecting function, and described in the logical node list controls based on configuration The node trial for having network connecting function in logical node is built with the node for having network connecting function in other logical nodes Vertical connection relation, and store calculation function based on having data in logical node described in original block producer's list controls Node starts block production, and controls the node open port for having user's request function in the logical node to wait for user Task requests data packet is passed to.
2. the dispersed nodes load method of block catenary system as described in claim 1, which is characterized in that at least two function sections Point is three, and three functional nodes are respectively data storage operation node, network connection node and user's requesting node, the number It is interacted two-by-two according between storage operation node, network connection node and user's requesting node, wherein
Any one node in the data storage operation node, network connection node and user's requesting node is periodically in addition Whether two nodes send inquiry data packet, normal with the mutual connection of inquiry;
If any one node receives two and responds normal information, judges that the logical node is in and enliven shape State;
If any one node receives the information of at least one response exception or can not be connect with other nodes, sentence The logical node break in a dormant state.
3. the dispersed nodes load method of block catenary system as claimed in claim 1 or 2, which is characterized in that newly patrolled when existing When volume node need to access block chain network, Configuration network connecting node on the network connection node in the new logic node Location collection, and repertoire node in the new logic node start after according to the network connection node address set of configuration by institute The network connection node that the network connection node in new logic node is connected to respective logic node in the block chain network is stated, The new logic node is connected into the block chain network.
4. the dispersed nodes load method of block catenary system as claimed in claim 1 or 2, which is characterized in that by the use It when family task requests data packet is passed to, obtains and waits for incoming user's requesting node, and be sent to after task requests are packaged signature It is described to wait for incoming user's requesting node, wherein
It is described to wait for that incoming user's requesting node parses to obtain the user task request data package based on client public key Task requests, and task requests are transmitted to the data in counterlogic node and store operation node, while by task requests The network connection node being transmitted in counterlogic node, to be asked task by the network connection node in counterlogic node It asks and is broadcasted in the block chain network;
When counterlogic node has book keeping operation temporary, the data storage operation node store tasks request in counterlogic node is simultaneously Carry out operation.
5. the dispersed nodes load method of block catenary system as claimed in claim 4, which is characterized in that when the block link network When the network connection node in any one logical node in network receives broadcast data packet, the network in the logical node connects It connects the data that the broadcast data packet is transmitted in the logical node by node and stores operation node, wherein
When the broadcast data packet is block synchronous package, the data storage operation node in the logical node is directly deposited Storage;
When the broadcast data packet is task requests packet and the logical node has block manufacturing right, the number in the logical node According to storage operation node block production is carried out according to the task requests in the task requests packet.
6. the dispersed nodes load method of the block catenary system as described in any one of claim 1-5, which is characterized in that work as institute When stating block chain network triggering dpos block producers ballot event, each logical node in the block chain network is as one A entirety participates in ballot to campaign for block manufacturing right, wherein
When block working condition is triggered, the data storage operation node in the logical node with block manufacturing right is appointed Business record produces to generate synchronous block with block, and synchronous block is transmitted in the logical node with block manufacturing right Network connection node, so that synchronous block is packaged into block by the network connection node in the logical node with block manufacturing right It is broadcasted in the block chain network after synchronous package.
7. a kind of computer readable storage medium, which is characterized in that be stored thereon with the dispersed nodes load journey of block catenary system Sequence is realized when the dispersed nodes programmed load of the block catenary system is executed by processor as described in any one of claim 1-6 Block catenary system dispersed nodes load method.
8. a kind of dispersed nodes load device of block catenary system, which is characterized in that including configuration module and load module, Wherein,
The configuration module is used for, and configures at least two functional nodes, and at least two functional nodes are combined into a logic Node, wherein at least two functional nodes have data storage calculation function, network connecting function and user's request function, institute State logical node has unique identification information in block chain network;
The load module is used for, and when the logical node is in active state, controls and has in the logical node The node open port of network connecting function is attached with the node for waiting for other to have network connecting function, and based on configuration Logical node list controls described in have network connecting function in logical node node trial have with other logical nodes The node of standby network connecting function establishes a connection, and based in logical node described in original block producer's list controls The node for having data storage calculation function starts block production, and controls and have user's request function in the logical node Node open port is to wait for the incoming of user task request data package.
9. the dispersed nodes load device of block catenary system as claimed in claim 8, which is characterized in that at least two function sections Point is three, and three functional nodes are respectively data storage operation node, network connection node and user's requesting node, the number It is interacted two-by-two according between storage operation node, network connection node and user's requesting node, the data store operation section Any one node in point, network connection node and user's requesting node periodically sends inquiry data to other two node Whether packet is normal with the mutual connection of inquiry, wherein the dispersed nodes load device further includes judgment module, described Judgment module is used for,
If any one node receives two and responds normal information, judges that the logical node is in and enliven shape State;
If any one node receives the information of at least one response exception, judge that the logical node is in suspend mode State.
10. a kind of block catenary system, which is characterized in that include the dispersed nodes of block catenary system as claimed in claim 8 or 9 Load device.
CN201810857274.0A 2018-07-31 2018-07-31 Method, medium, device and system for distributing node load in block chain system Active CN108650333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810857274.0A CN108650333B (en) 2018-07-31 2018-07-31 Method, medium, device and system for distributing node load in block chain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810857274.0A CN108650333B (en) 2018-07-31 2018-07-31 Method, medium, device and system for distributing node load in block chain system

Publications (2)

Publication Number Publication Date
CN108650333A true CN108650333A (en) 2018-10-12
CN108650333B CN108650333B (en) 2021-02-02

Family

ID=63760461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810857274.0A Active CN108650333B (en) 2018-07-31 2018-07-31 Method, medium, device and system for distributing node load in block chain system

Country Status (1)

Country Link
CN (1) CN108650333B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240826A (en) * 2018-08-15 2019-01-18 泰链(厦门)科技有限公司 Multi-tiling chain network interior joint shares computational resource allocation method when calculating equipment
CN109525678A (en) * 2018-12-25 2019-03-26 众安信息技术服务有限公司 Block chain network system and corresponding node device find method
CN111563129A (en) * 2020-07-15 2020-08-21 江苏荣泽信息科技股份有限公司 Distributed storage area block chain account book method
CN114978619A (en) * 2022-05-07 2022-08-30 国电南瑞科技股份有限公司 Cross-safety-zone data integration monitoring method, system and medium for multi-load regulation and control system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364996A (en) * 2008-07-23 2009-02-11 西安电子科技大学 Hybrid layering P2P static network
CN103348638A (en) * 2011-02-07 2013-10-09 日本电气株式会社 Communication system, control device, communication node, and communication method
WO2016205748A1 (en) * 2015-06-18 2016-12-22 Jie Diao Conveying attention information in virtual conference
CN106530083A (en) * 2016-10-27 2017-03-22 上海亿账通区块链科技有限公司 Multi-chain management method and system based on block chain
CN106790513A (en) * 2016-12-19 2017-05-31 杜伯仁 The method that network share service is realized based on block chain
CN107079059A (en) * 2016-12-21 2017-08-18 深圳前海达闼云端智能科技有限公司 Block chain storage method and device and node equipment
CN108012582A (en) * 2017-08-18 2018-05-08 达闼科技成都有限公司 block chain system and authority management method thereof
KR20180075450A (en) * 2018-06-15 2018-07-04 정기영 Peer to peer transmission based data marketplace with cryptocurrency payment, building method of the same
US20180197155A1 (en) * 2016-12-12 2018-07-12 Topl, Llc Method and Apparatus for Processing Mobile Payment Using Blockchain Techniques

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364996A (en) * 2008-07-23 2009-02-11 西安电子科技大学 Hybrid layering P2P static network
CN103348638A (en) * 2011-02-07 2013-10-09 日本电气株式会社 Communication system, control device, communication node, and communication method
WO2016205748A1 (en) * 2015-06-18 2016-12-22 Jie Diao Conveying attention information in virtual conference
CN106530083A (en) * 2016-10-27 2017-03-22 上海亿账通区块链科技有限公司 Multi-chain management method and system based on block chain
US20180197155A1 (en) * 2016-12-12 2018-07-12 Topl, Llc Method and Apparatus for Processing Mobile Payment Using Blockchain Techniques
CN106790513A (en) * 2016-12-19 2017-05-31 杜伯仁 The method that network share service is realized based on block chain
CN107079059A (en) * 2016-12-21 2017-08-18 深圳前海达闼云端智能科技有限公司 Block chain storage method and device and node equipment
CN108012582A (en) * 2017-08-18 2018-05-08 达闼科技成都有限公司 block chain system and authority management method thereof
KR20180075450A (en) * 2018-06-15 2018-07-04 정기영 Peer to peer transmission based data marketplace with cryptocurrency payment, building method of the same

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SEYED IMAN MIRREZAEI等: ""A topology-aware load balancing algorithm for P2P systems"", 《2009 FOURTH INTERNATIONAL CONFERENCE ON DIGITAL INFORMATION MANAGEMENT》 *
申新鹏: ""多节点集群P2P系统研究"", 《计算机科学》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240826A (en) * 2018-08-15 2019-01-18 泰链(厦门)科技有限公司 Multi-tiling chain network interior joint shares computational resource allocation method when calculating equipment
CN109240826B (en) * 2018-08-15 2020-10-23 泰链(厦门)科技有限公司 Method for allocating computing resources when nodes share computing equipment in multi-block chain network
CN109525678A (en) * 2018-12-25 2019-03-26 众安信息技术服务有限公司 Block chain network system and corresponding node device find method
CN111563129A (en) * 2020-07-15 2020-08-21 江苏荣泽信息科技股份有限公司 Distributed storage area block chain account book method
CN114978619A (en) * 2022-05-07 2022-08-30 国电南瑞科技股份有限公司 Cross-safety-zone data integration monitoring method, system and medium for multi-load regulation and control system
CN114978619B (en) * 2022-05-07 2023-08-04 国电南瑞科技股份有限公司 Cross-safety-zone data integration monitoring method, system and medium for multi-element load regulation and control system

Also Published As

Publication number Publication date
CN108650333B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN108650333A (en) Dispersed nodes load method, medium, device and the block catenary system of block catenary system
Oktian et al. Distributed SDN controller system: A survey on design choice
US10547693B2 (en) Security device capability discovery and device selection
CN110933187B (en) Internet of things data transmission system based on block chain consensus encryption mechanism
US9021065B2 (en) Automated topology formation in dynamic distributed environments
CN107911463B (en) Business cross-cloud architecture and creation method and management method thereof
CN104081371B (en) The enlarging of the automation of cloud computing stamp
CN110262902B (en) Information processing method and system, medium, and computing device
CN111612466B (en) Consensus and resource transmission method, device and storage medium
Patti et al. Distributed software infrastructure for general purpose services in smart grid
CN103703738A (en) System for managing audio/video streams using application layer structures in an avb network
US11368525B2 (en) Relaying network management tasks using a multi-service receptor network
CN104090825A (en) Dynamically migrating computer networks
CN104092774A (en) Software defined network connection establishment control method and device
CN103117876B (en) The synchronous method and device of user state information
CN111813570A (en) Event-driven message interaction method for power Internet of things
CN105429938B (en) Resource allocation method and device
CN101375272A (en) Transparent bridging and routing in an industrial automation environment
CN110301104A (en) A kind of optical line terminal OLT equipment virtual method and relevant device
CN103227839A (en) Management system for regional autonomy of content distribution network server
CN104092746B (en) A kind of O&M auditing system and the network load balancing method in its system
CN106162639A (en) SDN wireless network management platform based on Floodlight and authentication method
CN100539602C (en) Dynamic addressing in the transient networks
CN115086330B (en) Cross-cluster load balancing system
CN105704042A (en) Message processing method, BNG and BNG cluster system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 361000 B1F-065, Zone A, Huaxun Building, Software Park, Xiamen Torch Hi-tech Zone, Huli District, Xiamen City, Fujian Province

Patentee after: Ke'an (Xiamen) Technology Co.,Ltd.

Address before: B1f-065, zone a, Huaxun building, software park, torch hi tech Zone, Xiamen City, Fujian Province, 361000

Patentee before: TAILIAN (XIAMEN) TECHNOLOGY Co.,Ltd.