CN109981794A - Processing method, device and electronic equipment based on block chain meshed network - Google Patents

Processing method, device and electronic equipment based on block chain meshed network Download PDF

Info

Publication number
CN109981794A
CN109981794A CN201910279636.7A CN201910279636A CN109981794A CN 109981794 A CN109981794 A CN 109981794A CN 201910279636 A CN201910279636 A CN 201910279636A CN 109981794 A CN109981794 A CN 109981794A
Authority
CN
China
Prior art keywords
node
super
ordinary
network
group
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
CN201910279636.7A
Other languages
Chinese (zh)
Other versions
CN109981794B (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.)
Guangzhou Ant Bit Block Chain Technology Co Ltd
Original Assignee
Guangzhou Ant Bit Block Chain 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 Guangzhou Ant Bit Block Chain Technology Co Ltd filed Critical Guangzhou Ant Bit Block Chain Technology Co Ltd
Priority to CN201910279636.7A priority Critical patent/CN109981794B/en
Publication of CN109981794A publication Critical patent/CN109981794A/en
Application granted granted Critical
Publication of CN109981794B publication Critical patent/CN109981794B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of processing method based on block chain meshed network, device and electronic equipments, are related to block chain field, this method comprises: network type locating for the process performance of determining node and node;Judge node process performance and node locating for network type whether be all satisfied default capabilities judgment criteria;It is super node by vertex ticks if network type locating for the process performance and node of node is all satisfied the default capabilities judgment criteria;Wherein super node is the node that verifying can be directly participated in block chain meshed network.Network type locating for process performance and node by acquisition node, and the network type according to locating for the process performance of node and node determines node if appropriate for as the direct super node for participating in verifying;Verification time caused by traditional block chain network is alleviated in a manner of the whole network node verification is long, and the lower technical problem of verification efficiency can reduce verifying duration, improve verification efficiency.

Description

Processing method, device and electronic equipment based on block chain meshed network
Technical field
The present invention relates to block chain technical field, more particularly, to a kind of processing method based on block chain meshed network, Device and electronic equipment.
Background technique
In recent years, with the hot development of block chain technology, the application of P2P (Point-to-Point, point-to-point) technology It is pushed to climax again.The bottom-layer network topological structure that block chain technology uses is connected and group by node node adjacent thereto At reticular structure.But it since the technology business of block chain or digging mine are usually to be carried out in a manner of the whole network node verification, leads Cause the verification time long.
To sum up, the existing block chain meshed network technical problem long there are the verification time.
Summary of the invention
In view of this, the purpose of the present invention is to provide processing method, device and electronics based on block chain meshed network Equipment alleviates the long technical problem of verification time existing for the whole network node verification in the prior art with alleviation or part.
In a first aspect, the embodiment of the invention provides a kind of processing methods based on block chain meshed network, comprising: determine Network type locating for the process performance of the node and the node;Judge the node process performance and the section Whether the locating network type of point is all satisfied default capabilities judgment criteria;The default capabilities judgment criteria includes: the node Cpu performance, internal memory performance, hard disk remaining space accounting, exchange area (swap place, abbreviation swap) subregion, network bandwidth And network speed is not less than threshold value;Network type locating for the node is non-Intranet type;If the place of the node Network type locating for rationality energy and the node is all satisfied the default capabilities judgment criteria, is super by the vertex ticks Grade node;Wherein the super node is the node that verifying can be directly participated in the block chain meshed network.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute State method further include: be grouped to the node based on super node rule of classification.
If the super node rule of classification includes: when the node is online, there are the common sections of state to be allocated The ordinary node of the state to be allocated is received pipe into the subgroup by the node administration by point;If online in the node When, there are less than super node groups, receive pipe to described less than super by the node or by the subgroup of the node administration In node group;Wherein the less than super node group is that the quantity of super node is less than the mother of preset group of super node threshold value Group;If the node is online, both there is no the ordinary node of state to be allocated or less than super node group was not present, then The node is simultaneously received pipe into new female group by the new female group of building;Wherein the less than super node group is super node Quantity is less than female group of preset group of super node threshold value;If the node is online, both there is no the general of state to be allocated Less than super node group is also not present in logical node, is the super node of not up to full load state by the vertex ticks.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect Possible embodiment, wherein if described when the node is online, there are the ordinary nodes of state to be allocated, will be described The ordinary node of state to be allocated receives pipe into the subgroup by the node administration, comprising: obtains the general of the state to be allocated The quantity q of logical node;The quantity q of ordinary node based on the state to be allocated and the predetermined node can carry The number p of ordinary node the ordinary node of the state to be allocated is received into pipe into the subgroup by the node administration.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the third of first aspect Possible embodiment, wherein the quantity q and the predetermined section of the ordinary node based on the state to be allocated The ordinary node of the state to be allocated is received pipe to the son by the node administration by the number p of ordinary node that point can carry In group, comprising: can carry the quantity q of the ordinary node of the state to be allocated with the predetermined node common The number p of node is compared;When q is less than or equal to p, by the q in the ordinary node of the state to be allocated receive pipe to by In the subgroup of the node administration;When q is greater than p, advised from the ordinary node of the q states to be allocated according to default selection It then selects p and receives pipe into the subgroup by the node administration.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute State method further include: determine the number p for the ordinary node that the node can carry;What the determination node can carry The number p of ordinary node, comprising: obtain the hard disk remaining space accounting of the node;Based on the hard disk remaining space Accounting and default bringing onto load coefficient calculate the number p for the ordinary node that the node can carry.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein institute State method further include: if any one of network type locating for the process performance of the node and the node is unsatisfactory for The vertex ticks is ordinary node by the default capabilities judgment criteria;Wherein the ordinary node is the block chain link The node of verifying cannot be directly participated in spot net.
The 5th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 6th kind of first aspect Possible embodiment, wherein the method also includes: the node is grouped based on ordinary node rule of classification;Institute It states and the node is grouped based on ordinary node rule of classification, comprising: if existed not up to when the node is online The super node of full load state, by the node receive pipe to by it is described not up to full load state super node management son In group;If when the node is online, there is no the super node of not up to full load state, by the vertex ticks be to The ordinary node of distribution state.
With reference to first aspect, the embodiment of the invention provides the 7th kind of possible embodiments of first aspect, wherein institute State method further include: pre- offline according to preset super node if there is the super node to go offline when the node is online Standby host system handles the subgroup by the super node management to go offline.
The 7th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 8th kind of first aspect Possible embodiment, wherein if it includes: the super node to go offline that the preset super node prepares mechanism offline Pipe of receiving in the subgroup of management has ordinary node, there is the super node of not up to full load state, then receives the ordinary node Pipe is in by the not up to subgroup of the super node management of full load state;If the super node management to go offline Pipe of receiving in subgroup has ordinary node, and there is no the super nodes of not up to full load state, then is labeled as the ordinary node The ordinary node of state to be allocated etc. is to be allocated.
The 8th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 9th kind of first aspect Possible embodiment, wherein have ordinary node if receiving pipe in the subgroup of the super node management to go offline, exist The ordinary node is received pipe to by the super section for being not up to full load state by the not up to super node of full load state In the subgroup of point management, comprising: have ordinary node if receiving pipe in the subgroup of the super node management to go offline, it is described fall There is the super node of not up to full load state in female group where the subgroup of the super node management of line, by the common section Point receives pipe in by the not up to subgroup of the super node management of full load state;If the super node pipe to go offline Pipe of receiving in the subgroup of reason has ordinary node, and there are full super node group, the ordinary node is received pipe to the full super node In group;Wherein the full super node group is not have an ordinary node there is only super node, and the quantity of super node is less than etc. In female group of preset group of super node threshold value.
Second aspect, the embodiment of the present invention also provide a kind of processing unit based on block chain meshed network, comprising: determine Module, for determine the node process performance and the node locating for network type;Determination module, for judging State node process performance and the node locating for network type whether be all satisfied default capabilities judgment criteria;It is described default Performances evaluation standard includes: cpu performance, internal memory performance, hard disk remaining space accounting, the virtual memory (swap) point of the node Area, network bandwidth and network speed are not less than threshold value;Network type locating for the node is non-Intranet type;Mark mould Block is judged if being all satisfied the default capabilities for network type locating for the process performance of the node and the node The vertex ticks is super node by standard;Wherein the super node be the block chain meshed network in can be direct Participate in the node of verifying.
The third aspect present disclose provides a kind of electronic equipment, including memory, processor and is stored in the memory Computer program that is upper and can running on the processor, the processor is realized above-mentioned when executing the computer program The step of method.
Fourth aspect, present disclose provides a kind of machine readable storage medium, the machine readable storage medium is stored with Machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotees the machine-executable instruction The processor is set to realize above-mentioned method.
The embodiment of the present invention brings following the utility model has the advantages that provided in an embodiment of the present invention based on block chain meshed network Processing method, device, electronic equipment and machine readable storage medium, wherein it is somebody's turn to do the processing method based on block chain meshed network, Applied to node, comprising the following steps: determine node process performance and node locating for network type;Judge the place of node Whether network type locating for rationality energy and node is all satisfied default capabilities judgment criteria;Default capabilities judgment criteria includes: Cpu performance, internal memory performance, hard disk remaining space accounting, exchange area swap subregion, network bandwidth and the network speed of the node Degree is not less than threshold value;Network type locating for node is non-Intranet type;If locating for the process performance and node of node Network type be all satisfied the default capabilities judgment criteria, by vertex ticks be super node;Wherein super node is block The node of verifying can be directly participated in chain meshed network.Therefore, technical solution provided in an embodiment of the present invention, for block chain Any node in meshed network, by obtain node process performance and node locating for network type, and by node Network type locating for process performance and node and default capabilities judgment criteria are compared to judge node if appropriate for work For the super node for directly participating in verifying;If the node is suitable as super node, simultaneously for super node by vertex ticks Verifying is participated in, the embodiment of the present invention is delayed by way of judging obtained super node and directly participating in verifying by super node Verification time caused by traditional block chain network has been solved in a manner of the whole network node verification is long, and the lower technology of verification efficiency is asked Topic, can reduce verifying duration, improve verification efficiency.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the processing method based on block chain meshed network provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another processing method based on block chain meshed network provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the third processing method based on block chain meshed network provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the 4th kind of processing method based on block chain meshed network provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the 5th kind of processing method based on block chain meshed network provided in an embodiment of the present invention;
Fig. 6 is the synoptic chart of block chain network topological structure provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of different types of subgroup provided in an embodiment of the present invention, female group;
Fig. 8 is a kind of schematic diagram of internal structure of block chain network topological structure provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of the processing unit based on block chain meshed network provided in an embodiment of the present invention;
Figure 10 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, the bottom-layer network topological structure that block chain technology uses is connected by node node adjacent thereto and is formed Reticular structure.But since the technology business of block chain or digging mine are usually to be carried out in a manner of the whole network node verification, cause Verification time is long, is based on this, a kind of processing method based on block chain meshed network provided in an embodiment of the present invention, device And electronic equipment, the technology that can alleviate or partially alleviate the length of verification time existing for the whole network node verification in the prior art are asked Topic, shortens the verification time to a certain extent, is conducive to improve verification efficiency.
To be based on block chain node to one kind disclosed in the embodiment of the present invention first convenient for understanding the present embodiment The processing method method of network describes in detail.
Embodiment one:
The embodiment of the invention provides a kind of processing methods based on block chain meshed network, are applied to node, above-mentioned Node refers to any node of block chain meshed network, can be the node for having accessed block chain link spot net, is also possible to The node (node that block chain link spot net will be accessed) of block chain link spot net to be accessed;For having accessed block chain link The node of spot net can be offline node, be also possible to online node;It can be reason method division according to this Obtained super node is also possible to the ordinary node that the method for managing according to this divides;For block chain link point net to be accessed The node of network, the node itself that can be the pre-access block chain meshed network execute, and are also possible to access block chain link point The node of network executes the node of block chain link spot net to be accessed;Here it is not restricted.
As shown in Figure 1, method includes the following steps:
Step S102, determine the node process performance and the node locating for network type;
Above-mentioned process performance include: cpu performance, internal memory performance, hard disk remaining space accounting, exchange area swap subregion, Network bandwidth and network speed;Wherein, hard disk remaining space accounting refers to hard disk residue available space (abbreviation hard disk residue Space) account for the ratio of hard disk gross space;Swap full name is swap place, i.e. exchange partition, is used for when memory is insufficient, Temporarily store the process kicked out of.
Above-mentioned network type refers to intranet and extranet information, that is, includes simple Intranet (such as local area network WLAN), outer net (example Such as 4G mobile communications network), pass through NAT (Network Address Translation, network address translation) through-transmission technique The Intranet got through.
Step S104, judge the node process performance and the node locating for network type whether be all satisfied default property It can judgment criteria;The default capabilities judgment criteria include: the cpu performance of node, internal memory performance, hard disk remaining space accounting, Swap subregion, network bandwidth and network speed are not less than threshold value;Network type locating for the node is non-Intranet type.
Above-mentioned non-Intranet type includes: outer net and the Intranet got through by NAT through-transmission technique.
In order to reduce the verification time, verification efficiency, cpu performance, the memory of default capabilities standard interior joint here are improved Performance, hard disk remaining space accounting, swap subregion, network bandwidth and network speed are usually respectively provided with a higher threshold value, To obtain the stronger super node of processing capacity, the i.e. cpu performance of node, internal memory performance, hard disk remaining space accounting, swap Threshold value is not achieved in any one of subregion, network bandwidth and network speed, cannot be used as super node.
In order to make it easy to understand, the setting standard of the threshold value in process performance is as follows:
1, the threshold value setting of cpu performance: CPU refers to the preceding m cpu performances in high ladder cpu performance ranking list and formulates, Wherein m can usually be set as 50,100 etc.;2, for internal memory performance: memory threshold is set as 8G;3, hard disk remaining space accounting threshold Value is set as 50%;4, swap partition threshold is set as 7G;5, network bandwidth threshold value is set as 10Mbps (Million bits Per second, megabits per second);6, network speed threshold value is set as 640Kbps (Kilobits per second, bit is every Second).
When the process performance of a node meets above-mentioned each condition simultaneously and network type is non-Intranet, Think that the node has preferable performance;Otherwise it is assumed that the performance of the node is poor.
Node is screened by default capabilities judgment criteria, cpu performance, the memory of only non-Intranet type and node Performance, hard disk remaining space accounting, swap subregion, network bandwidth and network speed are not less than the section of the better performances of threshold value Point can be used as super node;The cpu performance, internal memory performance, hard disk remaining space of simple Intranet or node are accounted for Than, swap subregion, network bandwidth and network speed any one of have the node poor lower than the performance of threshold value be can not conduct Super node.
It should be noted that in other embodiments, default capabilities judgment criteria can also be referring to von Neumann system system The computer index that the algorithm of fixed judge computer performance is selected is carried out, and is not illustrated excessively here.
Step S106, if network type locating for the process performance of node and node is all satisfied above-mentioned default capabilities and comments Sentence standard, is super node by the vertex ticks;Wherein super node is that can directly participate in verifying in block chain meshed network Node.
Processing method provided in an embodiment of the present invention based on block chain meshed network, applied to block chain meshed network Node, by obtain node process performance and node locating for network type, and by the process performance and node of node Locating network type is compared to determine that node is tested if appropriate for as direct participation respectively with default capabilities judgment criteria The super node of card;If the node is suitable as super node, it is super node by vertex ticks and participates in verifying, alleviate Traditional block chain network in a manner of the whole network node verification caused by the verification time it is long, the lower technology of verification efficiency asks Topic, can reduce verifying duration, improve verification efficiency.
In view of for a block chain meshed network, if only being super node by vertex ticks, quantity is still It is very huge, how node is managed, so that the operation of block chain meshed network is more efficient;Further, referring to figure 2, the processing method the embodiment of the invention provides another kind based on block chain meshed network, the difference with Fig. 1 is, this method Further include:
Step S202 is grouped the node based on super node rule of classification.
Above-mentioned super node rule of classification includes:
If one, when target super node is online, there are the ordinary node of state to be allocated, the target super node Receive the ordinary node of state to be allocated described in pipe;
If there are less than super node groups two, when target super node is online, the target super node is drawn It assigns in the less than super node group;
If the ordinary node of state to be allocated is both not present or is not present less than three, when target super node is online Super node group, be the not up to super node of full load state and/or building new female group and will by the vertex ticks Target super node receives pipe into new female group.
When specific implementation, step S202 can in the following manner at least one realize:
If there are the ordinary nodes of state to be allocated, by the general of the state to be allocated 1, when the node is online Logical node receives pipe into the subgroup by the node administration;Node herein refers to the node labeled as super node.
I.e. if when super node is online, there are the ordinary node of state to be allocated, pipe is received by the super node and is waited for point Ordinary node with state is to the subgroup (subgroup, also known as subgroup or group or small grouping) managed by the super node In.
In view of the carrying load ability of each super node is limited, it is issuable to meshed network to reduce overload operation It influences.Therefore, in specific implementation, which includes:
1) the quantity q of the ordinary node of the state to be allocated is obtained;
2) the quantity q of the ordinary node based on the state to be allocated can carry general with the predetermined node Logical node number p (node can receive pipe ordinary node maximum value, the also known as carrying load ability of node) will be described The ordinary node of state to be allocated receives pipe into the subgroup by the node administration.
In actual implementation, the step 2), comprising:
The common section that the quantity q of the ordinary node of the state to be allocated and the predetermined node can be carried The number p of point is compared;When q is less than or equal to p, q in the ordinary node of the state to be allocated are received into pipe to by institute It states in the subgroup of node administration;When q is greater than p, according to default selection rule from the ordinary node of the q states to be allocated It selects p and receives pipe into the subgroup by the node administration.
Here default selection rule includes randomly selecting rule or apart from selection rule.Wherein, rule is randomly selected It is chosen according to random algorithm, is not illustrated excessively here;
Refer to for each super node apart from selection rule, the position of the ordinary node being connected thereto should be with Super node is in the position of relative close in physical distance;Here so-called relative close, refer to relative to super node and Speech, the physical distance between each ordinary node and super node, on the whole, the level in low middling.For example, if one Super node nearby has 100 ordinary nodes, calculates separately this 100 physical distances between ordinary node and super node. If wherein have the distance of 10 nodal distance super nodes 0-10km, 20 nodal distance super nodes distance in 10- 30km, 20 nodal distance super nodes distance 30-50km, 30 nodal distance super nodes distance 50-70km, The distance of 20 nodal distance super nodes is in 70-100km, then selection is apart from super node physical distance in the general of low middling It is selected in logical node, it should be in 20 nodal distance super node distance 10-30km and 20 nodal distance super node 30- The ordinary node for selecting the super node to be connected in this 40 nodes of 50km.
Specifically, presetting selection rule is apart from selection rule in the present embodiment.
It should be noted that the access for the ease of ordinary node when online, improves access efficiency and is further working as q Less than p, when q in the ordinary node of the state to be allocated are received pipe into the subgroup by the node administration, and by institute State the super node that vertex ticks is not up to full load state;When q be greater than p when, remaining (q-p) a state to be allocated it is general State to be allocated progress secondary mark of logical node etc. is to be allocated, that is, waiting can be as the new online node of super node Access.
If there are less than super node groups, by the node or by the node pipe 2, when the node is online The subgroup of reason receives pipe into the less than super node group;Wherein node here is super node, described less than super Node group is that the quantity of super node is less than female group of (group, also known as grouping or big of preset group of super node threshold value Group).
If 3, the node is online, the ordinary node of state to be allocated is both not present or less than super section is not present Point group, the then new female group of the building and node is received pipe is not up to full into new female group, and/or by the vertex ticks The super node of load condition;Wherein the less than super node group is that the quantity of super node is less than preset group of super section Female group of point threshold value.
For the subsequent access convenient for ordinary node, grouping efficiency is improved, further, as shown in figure 3, the present invention is implemented Example additionally provides the third processing method based on block chain meshed network, and the difference with Fig. 1 is, this method further include:
Step S302 determines the number p for the ordinary node that the node can carry.
Here node is super node.
In the present embodiment, step S302 can be executed by following steps:
1, the hard disk remaining space accounting of the node is obtained;
Specifically, obtaining the hard disk information of the node first;The hard disk information includes that hard disk gross space and hard disk are surplus Complementary space;Then the ratio that the hard disk remaining space accounts for the hard disk gross space is calculated, hard disk remaining space accounting is obtained;
2, calculating the node based on the hard disk remaining space accounting and default bringing onto load coefficient can carry Ordinary node number p.
Here default bringing onto load coefficient is super node bringing onto load corresponding to per unit hard disk remaining space accounting The quantity of (ordinary node);Such as corresponding 100 ordinary nodes of per unit (1=100/100), then presetting bringing onto load coefficient is 100;When the hard disk remaining space accounting for calculating a super node is 50%, then the super node can carry common section The number p=50%*100=50 of point.
Specifically, the hard disk remaining space accounting, which is calculated the node multiplied by default bringing onto load coefficient, to hold The number p of the ordinary node of load.
Further, referring to Fig. 4, the embodiment of the invention provides the 4th kind of processing sides based on block chain meshed network Method, the difference with Fig. 2 be, this method further include:
Step S402, if any one of network type locating for the process performance of the node and the node is unsatisfactory for The vertex ticks is ordinary node by above-mentioned default capabilities judgment criteria;Wherein the ordinary node is the block chain node The node of verifying cannot be directly participated in network.
Network type locating for the i.e. described node be simple Intranet or the node central processor CPU performance, Any one of internal memory performance, hard disk remaining space accounting, swap subregion, network bandwidth and network speed (such as memory) is low It is then ordinary node by the vertex ticks in its (memory) corresponding threshold value.
In view of when ordinary node is online how communication with the outside world the problem of, further, this method further includes:
Step S404 is grouped the node based on ordinary node rule of classification.
Wherein, ordinary node rule of classification includes:
If a, there is the super node of not up to full load state when target ordinary node is online, by described less than Super node receive target ordinary node described in pipe;
If there is no the super nodes of not up to full load state b, when target ordinary node is online, will be described general Logical vertex ticks is state to be allocated.
It should be noted that each super node can be managed according to a first default subgroup for receiving the division of pipe principle. If the first default pipe principle of receiving includes the rule one of above-mentioned super node rule of classification, when target super node is online, There are the ordinary node of state to be allocated, the target super node receives the ordinary node of state to be allocated described in pipe) and on Ordinary node the rule of classification a and b stated.
In addition, super node is multiple groups according to the second default pipe regular partition of receiving, the second default pipe rule of receiving includes above-mentioned If super node rule of classification rule two, when target super node is online, there are less than super node groups, by institute Target super node is stated to be divided into less than super node group.
It is understood that each ordinary node by super node receives pipe according to the above-mentioned first default pipe principle of receiving.
According to above-mentioned ordinary node allocation rule, step S404 includes:
If A, there is the super node of not up to full load state when the node is online, the node is received into pipe To in by the not up to subgroup of the super node management of full load state, by the super section of the not up to full load state Point receives node described in pipe;Here node is the node that index is denoted as ordinary node.
If there is no the super nodes of not up to full load state, by the node mark B, when the node is online It is denoted as the ordinary node of state to be allocated.
Since the node in block chain network is by modern computer, Virtual Private Server, Cloud Server and mine machine etc. Machine composition.And subjective, there are the possibility that user shuts down at any time for such computer such as notebook, common PC, in master In sight, a possibility that node off-line, is larger on chain caused by the factors such as power-off and suspension as caused by external environment.In order to reduce Node goes offline the influence caused by block chain meshed network, improves the stability and reliability of block chain node, further, ginseng According to Fig. 5, the embodiment of the invention also provides the 5th kind of processing method based on block chain meshed network, the difference with Fig. 4 is, This method further include:
Step S502, if on this node line when, there is the super node to go offline, it is offline according to preset super node Preparation mechanism handles the subgroup by the super node management to go offline.
Here node refers to online node, can be ordinary node, is also possible to super node, can also be by falling The super node of line receives the online ordinary node of pipe.
It goes offline in view of if it is ordinary node, the opposite network structure that will not influence the subgroup where it, only this is common The number of the ordinary node of the super node load of subgroup where node can reduce one, thus to meshed network will not generate compared with It is big to influence.But make in view of super node carries the bridge that ordinary node and group exterior node are in communication with each other in the subgroup of its management With if going offline if it is super node, then there may be larger problems, and especially the super node to go offline, which receives pipe, has commonly The case where node.Therefore it proposes a set of preset super node and prepares mechanism offline.
Wherein, prepared mechanism includes: the preset super node offline
(1) if, pipe of receiving in the subgroup of the super node management to go offline have ordinary node, there is not up to full load The super node of state, then by the ordinary node receive pipe to by it is described not up to full load state super node management son In group;
Specifically, the step (1) mainly includes following approach scatternet risk:
If pipe of 1.1, receiving in the subgroup of the super node management to go offline has ordinary node, it is described go offline it is super There is the super node of not up to full load state in female group where the subgroup of node administration, the ordinary node is received into pipe and is arrived By in the not up to subgroup of the super node management of full load state;
If pipe of 1.2, receiving in the subgroup of the super node management to go offline has ordinary node, there are full super nodes The ordinary node is received pipe into the full super node group by group;Wherein the full super node group is that there is only super sections The no ordinary node of point, and the quantity of super node is less than or equal to female group of preset group of super node threshold value.
It selects full super node group and is to be used directly to because its internal super node does not all receive pipe ordinary node Instead of the super node to go offline, emergency efficiency in this way is relatively high.
It should be pointed out that being pressed from the full super node group when full super node group includes multiple super nodes A super node is selected according to the second default selection rule, ordinary node described in pipe is received as the super node, second is default here Selection rule can be above-mentioned randomly selecting, and regular, distance is regular, is also possible to load selection rule, load here is chosen Rule refers to that the carrying load ability based on super node is chosen, and usually chooses carrying load ability and (is primarily referred to as here not by force The super node of full state can also be with the number of ordinary node) super node, can maximumlly distribute go offline in this way The ordinary node of the received pipe of super node;Distance rule and load selection rule can certainly be comprehensively considered, i.e., to the two point It is selected after analysis apart from relative close and the stronger super node of carrying load ability, naturally it is also possible to be the excellent of setting selection rule First grade is chosen, in this regard, the application is not construed as limiting.
It in one embodiment, is to be combined apart from selection rule and load selection rule with the second default selection rule For, inquiry is with the presence or absence of not up to full load shape first from female group where the subgroup of the super node management to go offline The ordinary node is received pipe and not reached to by described by the super node of state, the if it exists not up to super node of full load state Into the subgroup of the super node management of full load state;If all super in female group where the subgroup of super node management Node is in full load state, and then inquiry whether there is full super node group, and finally existing again from other not up to expires shape It is inquired in female group of the super node of state, shape is not up to expired in other nearest presence of the ordinary node that can specifically go offline from distance It is searched in female group of the super node of state)
I.e. by then loading selection rule, the mode of last length selection rule is chosen first apart from selection rule.
Specifically, step (1) has ordinary node if receiving pipe in the subgroup of the super node management to go offline, exist not Reach the super node of full load state, then the ordinary node is received into pipe to by the super section for being not up to full load state In the subgroup of point management, comprising the following steps:
Received in the subgroup of the super node management to go offline described in acquisition pipe ordinary node quantity n;
What the super node of quantity n and the not up to full load state based on the ordinary node can also carry The number m of ordinary node, by the ordinary node receive pipe to by it is described not up to full load state super node management son In group.
Specifically, n is compared with m, when n is less than or equal to m, the ordinary node is received into pipe and arrives and is not up to by described In the subgroup of the super node management of full load state;When n is greater than m, selected from n ordinary node according to default selection rule It takes out m and receives pipe and arrive by the subgroup of the super node management for being not up to full load state;By remaining (n-m) a common section Point is to be allocated labeled as the ordinary node of state to be allocated etc., that is, waiting can be as the new online node of super node.
It should be noted that being divided again when the super node for managing the subgroup is again online according to above-mentioned rule Group.
It, will be by the subgroup of the super node management to go offline when the super node of not up to full load state is multiple In ordinary node distributed according to the second default selection rule.
(2) if, pipe of receiving in the subgroup of the super node management to go offline have ordinary node, there is no not up to full negative The super node of load state, then it is the ordinary node is to be allocated labeled as the ordinary node of state to be allocated etc..
As shown in Fig. 6, Fig. 7 and Fig. 8, the embodiment of the invention provides a kind of block chain network topological structure, use is above-mentioned Based on the processing method of block chain meshed network, which includes multiple female groups:
It include the super node of the first preset quantity and the ordinary node of the second preset quantity in each mother's group, wherein For each female group, the quantity for the ordinary node that each super node is connected and the carrying load ability of the super node are true It is fixed;The physical distance of each ordinary node and each super node that each super node is connected is within a preset range;
Specifically, the ordinary node quantity of each super node connection of each female group according to the power of its load capacity and It determines.For each super node, the position for the ordinary node being connected thereto should be in super node physics away from Position from upper relative close.
In each female group, when super node quantity is enough, the super node number of average each female group is selected in n A (n >=3).If the super node in each mother's group is assigned with ordinary node, and there are also several super nodes are remaining at this time In the case of, then by remaining super node according to one group of composition mother's group of n (n >=3);If being assigned with to all super nodes The ordinary node of each super node full load, and when there remains ordinary node, then at this time ordinary node need to wait for it is new super Node is added in network topology structure, if there is the new node for being suitable as super node to be added, by the ordinary node by This is new to be suitable as super node and receives pipe, becomes a new subgroup.
It should be noted that it includes super node and ordinary node that left figure, which shows a kind of block chain network topological structure, Schematic diagram, right figure schematically illustrates a kind of the interconnected total of all super nodes of block chain network topological structure Body structure chart.
In order to make it easy to understand, a specific implementation referring herein to Fig. 9 to the processing method based on block chain meshed network Scheme is illustrated:
For each new online node (new node is online): judging the node if appropriate for serving as super node (Super Point, SP):
If being suitable as SP;Calculate the bearing capacity p of the SP;Judge in already present node with the presence or absence of to be allocated Ordinary node (Nomal Point, NP);If there is ordinary node to be allocated, NP several q (q > 0) to be allocated is counted; If p > q, remaining q ordinary node is connected with the super node being newly added (i.e. by the super node receive pipe) form For one small grouping (subGroup);If p is not more than q, it is small point that the optional p unallocated NP and SP, which are formed by connecting, from q Group (subGroup);For above-mentioned small grouping (subGroup), first determine whether have in allocated group in network Big group (Groupi, i-th super section that i expression here find of the super node number less than 3 (group super node threshold value) Point number is less than big group of 3);If so, the newly-generated small grouping (subGroup) is then added to the big group of (Groupi) In;If the big group of Group without super node number less than 3 (group super node threshold value)i, big group of new Group is established, it will The small grouping (subGroup) is added in the big group of newly-built Group;If there is no ordinary node to be allocated, then judge Whether there is super node number less than the big group of Group of 3 (group super node threshold value) in network in allocated groupi
It is being NP by the vertex ticks if being not suitable as SP;For the NP node, the group distributed is inquired first In whether there is super node SP to remain to connection (receive pipe) (the ordinary node number for whether having super node SP to have connected is less than NP Its portative NP number), if any such SP, then this new node (NP) is added to SP institute in the group;Otherwise, it says It is bright can be for the NP connection that is newly added without SP, then the NP (node) this being newly added is added in NP to be allocated.
Abnormal conditions processing:
In this network topology structure, if ordinary node goes offline, the opposite network structure that will not influence the group, only The number of the ordinary node of the super node load of group where the ordinary node can reduce one, because without there is larger shadow It rings.If then there is larger problem but if super node goes offline.Because super node carries its group of interior nodes and group is outer The function served as bridge that node is in communication with each other.It is then desired to the preliminary treatment mechanism that a set of super node is offline.
Since in this virtual network topology, there may be multiple groups in each group, group's number may be 3 It is a, specifically see group's number of setting.Thus, it is however generally that, if a super node in a group goes offline, then first Inquire in its adjacent group either with or without the super node of not full load (so-called not full load refer to super node connection it is common The number of node is less than its ordinary node number that can load connection), if so, then these ordinary nodes are actively connected to remaining not On the super node of full load.If all super nodes in the group are in full load state, then from all full SP groups, Select the super node that a SP serves as the group that goes offline.If then all NP of the group that goes offline, which are in, waits without full SP group The state that new SP is added.
This packet network topological structure, has characteristics that
(1) dynamic: the network topology structure and the difference of traditional semi structured network are: in this network What super node and ordinary node in each group were dynamically generated.Before a group is unassigned or before building, building should The super node and ordinary node of group be it is unknown, when there is new node that network is added, that is, be possible to generate new grouping;
(2) randomness: each SP in group is distributed according to fixed random algorithm.And the NP in group is also to press It is randomly assigned according to fixed algorithm.But this randomness, what SP and NP in obedience group were closer in physical distance Principle;
(3) super node is externally visible between group, ordinary node is externally invisible: can only pass through super section for different groups Point is communicated.Ordinary node in group is sightless for outer group of super node or ordinary node, because of common section Point is in simple Intranet local area network;
(4) verifiability: information between node and historical information in group can verify that, and trade in organizing Participant etc. can verify that;
(5) virtual: to be different from traditional physical network topology, ordinary node and super node in group here Connection between super node between connection and group is connected with each other without being directly connected on physical medium by network For virtual group structure.
The advantage of above-mentioned processing method also resides in:
(1) agility: due to being to be managed node grouping, and super node in group and ordinary node are physics sections Relative close on point, therefore in block chain using upper, organize in time for knowing together it is shorter;And the topological structure of grouping is more conducive to lead to Letter, on organizing interior message transmission also faster;Transaction can be completed by the node and super node of physical distance relative close Or communication, reduce the time for communicating and forwarding between node;
(2) scalability: as new node is added, new group can be constantly extended, and increases this network topology knot The scale of structure.The scalability of such network structure is theoretically regarded as unlimited.And with the addition of user, not only service Increase in demand, the resource and service ability of system entirety also synchronously expanding, and can relatively easily meet user's always It needs;
(3) robustness: carrying out between each node since service is dispersed in, and part node or network are by destroying pair The influence very little of other parts.The whole topology of energy adjust automatically, holding go offline on node when some super node in group goes offline Ordinary node be quickly connected on its 2 adjacent SP.Network can also change according to network bandwidth, nodal point number, load etc. Constantly do the adjustment of self-adapting type;
(4) high-performance/price ratio: with the development of hardware technology, the calculating of personal computer and storage capacity and net The performances such as network bandwidth grow at top speed according to mole theorem.This network architecture can effectively utilize a large amount of knots spread in internet Calculating task or data on file are distributed on all nodes by point.Using wherein idle computing capability or memory space, reach The purpose of high-performance calculation and mass memory.By that can be provided with lower cost using a large amount of idling-resources in network Higher calculating and storage capacity;
(5) secret protection: due to sightless characteristic outside in the ordinary node group in group visible group, the privacy information of user It is ravesdropping and is substantially reduced a possibility that leakage;The relay forwarding of super node also substantially increases the flexibility of Anonymous communication And reliability, better secret protection can be provided for user;
(6) load balancing: since each super node is both server and client computer, reduce to traditional C/S structure The requirement of server computational power, storage capacity, simultaneously as resource distribution preferably realizes whole network in multiple nodes Load balancing.
Based on above-mentioned characteristic, the network topology structure of above-mentioned processing method and its construction can be applied to following scene:
(1) distributed scientific algorithm;This network structure can make the cpu resource of numerous terminals join together, and serve One common calculating.This calculate is usually that calculation amount is huge, data are extremely more, time-consuming very long scientific algorithm.It is counting every time During calculation, task (including logical AND data etc.) is divided into multiple, and first choice is assigned on each group of super node, then Ordinary node in administration is distributed to by each super node.Under the premise of not influencing original computer use, dispersion is utilized Cpu resource complete calculating task, and return result to one or more servers, numerous results integrated, with To final result.
(2) file-sharing/retrieval/downloading: the virtual architecture of grouping is partitioned the network into, may make the super node in group Manage a part of ordinary node.There are when the order of demand file on network, the super node in each group is requested first, is inquired Whether super node and the ordinary node of super node management have requested file resource, if any then directly obtaining in this set Resource.File-sharing/retrieval/downloading speed can be significantly increased relative to traditional P2P technology in this method.
(3) communication forwarding: when network structure dynamic arrangements communication base station mentioned conducive to the processing method, due to each request Node is continuous by inquiring whether the super node nearest from destination communication node has administered target when issuing communication request Communication node then stops forwarding if the destination communication node belongs to the range of this super node administration and continues to request, directly logical Base station where crossing the super node generates communication.Otherwise, continue to forward, the duration that communication greatly improved in this mode disappears Consumption, to improve the speed and accuracy of communication request.
(4) block chain bottom layer node is laid out: this network structure can enable being organized orderly of the node on block chain Get up, and the transaction in group does not need to forward by the whole network, the outer super node of the group of few quantity is only needed to participate in To the verifying of transaction.It, can quickly and commonly by super node and when needing the whole network node all to carry out a common affairs Node reaches common recognition, and then the affairs is allowed quickly to execute completion by the whole network node.
It specifically, can be according to each business if this virtual network topology is applied in the business on block chain As the foundation of division group, i.e., in each group, the ordinary node in group is set as the node in the same service groups, only Super node may be from outside.The advantages of such group according to delineation of activities, is 1, can reduce the forwarding and biography of transaction Pass the time;2, the business in group is avoided to be transmitted in the node of other service groups, the transaction in a general service groups can be as far as possible It is handled in a group, interferes other service groups without going;
Embodiment three:
As shown in figure 9, the embodiment of the invention provides a kind of processing units based on block chain meshed network, comprising: really Cover half block 901, for determine the node process performance and the node locating for network type;Determination module 902 is used Whether the network type locating for the process performance and the node for judging the node is all satisfied default capabilities judgment criteria; The default capabilities judgment criteria includes: the cpu performance, internal memory performance, hard disk remaining space accounting, virtual memory of the node (swap) subregion, network bandwidth and network speed are not less than threshold value;Network type locating for the node is non-Intranet class Type;Mark module 903, if be all satisfied for network type locating for the process performance of the node and the node described The vertex ticks is super node by default capabilities judgment criteria;Wherein the super node is the block chain node net The node of verifying can be directly participated in network.
Processing unit provided in an embodiment of the present invention based on block chain meshed network, is based on provided by the above embodiment The processing method technical characteristic having the same of block chain meshed network reaches phase so also can solve identical technical problem Same technical effect.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Its realization principle and the technical effect of generation are identical with preceding method embodiment, and to briefly describe, Installation practice part is not mentioned And place, it can refer to corresponding contents in preceding method embodiment.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limit the scope of the invention up to formula and numerical value.In all examples being illustrated and described herein, any occurrence should be solved It is interpreted as being only exemplary, not as limitation, therefore, other examples of exemplary embodiment can have different Value.It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi are attached It is defined in figure, does not then need that it is further defined and explained in subsequent attached drawing.
Referring to Figure 10, the embodiment of the present invention also provides a kind of electronic equipment 100, comprising: processor 40, memory 41, always Line 42 and communication interface 43, the processor 40, communication interface 43 and memory 41 are connected by bus 42;Processor 40 is used for Execute the executable module stored in memory 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random Access Memory), It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least One communication interface 43 (can be wired or wireless) realizes the communication between the system network element and at least one other network element Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 42 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data Bus, control bus etc..Only to be indicated with a four-headed arrow in Figure 10, it is not intended that an only bus convenient for indicating Or a type of bus.
Wherein, memory 41 is for storing program, and the processor 40 executes the journey after receiving and executing instruction Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle In device 40, or realized by processor 40.
Processor 40 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 40 or the instruction of software form.Above-mentioned Processor 40 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.The storage medium is located at memory 41, and processor 40 reads the information in memory 41, in conjunction with Its hardware completes the step of above method.
Further, present embodiment additionally provides a kind of machine readable storage medium, machine readable storage medium storage There is machine-executable instruction, when being called and being executed by processor, machine-executable instruction promotes to handle machine-executable instruction Device realizes the method that above embodiment provides.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description , can be with reference to the corresponding process in preceding method embodiment with the specific work process of device, details are not described herein.
Finally, it should be noted that embodiment of above, the only specific embodiment of the disclosure, to illustrate the disclosure Technical solution, rather than its limitations, the protection scope of the disclosure are not limited thereto, although referring to aforementioned embodiments to this public affairs It opens and is described in detail, it should be understood by those skilled in the art that: anyone skilled in the art is in this public affairs It opens in the technical scope of exposure, can still modify to technical solution documented by aforementioned embodiments or can think easily To variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make corresponding The essence of technical solution is detached from the spirit and scope of disclosure embodiment technical solution, should all cover the protection model in the disclosure Within enclosing.Therefore, the protection scope of the disclosure should be subject to the protection scope in claims.

Claims (13)

1. a kind of processing method based on block chain meshed network, which is characterized in that be applied to node, comprising the following steps:
Determine the node process performance and the node locating for network type;
Judge the node process performance and the node locating for network type whether be all satisfied default capabilities judge mark It is quasi-;The default capabilities judgment criteria includes: the central processor CPU performance of the node, internal memory performance, hard disk remaining space Accounting, exchange area swap subregion, network bandwidth and network speed are not less than threshold value;Network type locating for the node is Non- Intranet type;
If network type locating for the process performance of the node and the node is all satisfied the default capabilities and judges mark The vertex ticks is super node by standard;Wherein the super node is that can directly join in the block chain meshed network With the node of verifying.
2. the method according to claim 1, wherein the method also includes:
The node is grouped based on super node rule of classification;
The super node rule of classification includes:
If there are the ordinary nodes of state to be allocated, by the ordinary node of the state to be allocated when the node is online Pipe is received into the subgroup by the node administration;
If there are less than super node groups, by the node or by the son of the node administration when the node is online Group receives pipe into the less than super node group;Wherein the less than super node group is that the quantity of super node is less than in advance If group female group of super node threshold value;
If the node is online, both there is no the ordinary node of state to be allocated or less than super node group was not present, The then new female group of the building and node is received pipe into new female group and/or by the vertex ticks is not up to full load shape The super node of state;Wherein the less than super node group is that the quantity of super node is less than preset group of super node threshold value Female group.
3. according to the method described in claim 2, if there are to be allocated it is characterized in that, described when the node is online The ordinary node of the state to be allocated is received pipe into the subgroup by the node administration by the ordinary node of state, comprising:
Obtain the quantity q of the ordinary node of the state to be allocated;
The ordinary node that the quantity q of ordinary node based on the state to be allocated and the predetermined node can carry Number p the ordinary node of the state to be allocated is received into pipe into the subgroup by the node administration.
4. according to the method described in claim 3, it is characterized in that, the number of the ordinary node based on the state to be allocated The number p for the ordinary node that amount q can be carried with the predetermined node receives the ordinary node of the state to be allocated Pipe is into the subgroup by the node administration, comprising:
The ordinary node that the quantity q of the ordinary node of the state to be allocated and the predetermined node can be carried Number p is compared;
When q is less than or equal to p, the q in the ordinary node of the state to be allocated is received into pipe to the son by the node administration In group;
When q is greater than p, from the ordinary node of the q state to be allocated according to default selection rule select p receive pipe to In subgroup by the node administration.
5. the method according to claim 1, wherein the method also includes:
Determine the number p for the ordinary node that the node can carry;
The number p for the ordinary node that the determination node can carry, comprising:
Obtain the hard disk remaining space accounting of the node;
Based on the hard disk remaining space accounting and default bringing onto load coefficient calculate the node can carry it is common The number p of node.
6. the method according to claim 1, wherein the method also includes:
If any one of network type locating for the process performance of the node and the node is unsatisfactory for described default The vertex ticks is ordinary node by performances evaluation standard;Wherein the ordinary node is in the block chain meshed network The node of verifying cannot directly be participated in.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The node is grouped based on ordinary node rule of classification;
It is described that the node is grouped based on ordinary node rule of classification, comprising:
If there is the super node of not up to full load state when the node is online, the node is received into pipe to by institute It states in the subgroup of super node management of not up to full load state;
If when the node is online, there is no the super node of not up to full load state, by the vertex ticks be to The ordinary node of distribution state.
8. the method according to claim 1, wherein the method also includes:
If there is the super node to go offline when the node is online, mechanism pair is prepared offline according to preset super node It is handled by the subgroup of the super node management to go offline.
9. according to the method described in claim 8, it is characterized in that, the preset super node offline prepare mechanism include:
If pipe of receiving in the subgroup of the super node management to go offline has ordinary node, there is the super of not up to full load state The ordinary node is then received pipe in by the not up to subgroup of the super node management of full load state by grade node;
If pipe of receiving in the subgroup of the super node management to go offline has ordinary node, there is no not up to full load states Super node, then it is the ordinary node is to be allocated labeled as the ordinary node of state to be allocated etc..
10. if according to the method described in claim 9, the it is characterized in that, son of the super node management to go offline Pipe of receiving in group has ordinary node, there is the super node of not up to full load state, and the ordinary node is received pipe to by described Not up in the subgroup of the super node management of full load state, comprising:
If pipe of receiving in the subgroup of the super node management to go offline has ordinary node, in the super node management to go offline Subgroup where female group in exist not up to full load state super node, by the ordinary node receive pipe to by it is described not Reach in the subgroup of super node management of full load state;
If pipe of receiving in the subgroup of the super node management to go offline has ordinary node, there are full super node groups, will be described Ordinary node receives pipe into the full super node group;Wherein the full super node group is not common for there is only super nodes Node, and the quantity of super node is less than or equal to female group of preset group of super node threshold value.
11. a kind of processing unit based on block chain meshed network characterized by comprising
Determining module, for determine the node process performance and the node locating for network type;
Determination module, for judge the node process performance and the node locating for network type whether be all satisfied it is pre- If performances evaluation standard;The default capabilities judgment criteria includes: that the cpu performance, internal memory performance, hard disk of the node are remaining empty Between accounting, virtual memory (swap) subregion, network bandwidth and network speed be not less than threshold value;Network locating for the node Type is non-Intranet type;
Mark module, if be all satisfied for network type locating for the process performance of the node and the node described pre- It is super node by the vertex ticks if performances evaluation standard;Wherein the super node is the block chain meshed network In can directly participate in verifying node.
12. a kind of electronic equipment, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, which is characterized in that the processor realizes that claims 1 to 10 is any when executing the computer program The step of method described in item.
13. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor Realize the described in any item methods of claim 1-10.
CN201910279636.7A 2019-04-09 2019-04-09 Processing method and device based on block chain node point network and electronic equipment Active CN109981794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910279636.7A CN109981794B (en) 2019-04-09 2019-04-09 Processing method and device based on block chain node point network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910279636.7A CN109981794B (en) 2019-04-09 2019-04-09 Processing method and device based on block chain node point network and electronic equipment

Publications (2)

Publication Number Publication Date
CN109981794A true CN109981794A (en) 2019-07-05
CN109981794B CN109981794B (en) 2021-08-17

Family

ID=67083591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910279636.7A Active CN109981794B (en) 2019-04-09 2019-04-09 Processing method and device based on block chain node point network and electronic equipment

Country Status (1)

Country Link
CN (1) CN109981794B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704464A (en) * 2019-09-12 2020-01-17 广州蚁比特区块链科技有限公司 Method and device for processing bifurcation problem
CN111400399A (en) * 2020-03-04 2020-07-10 链农(深圳)信息科技有限公司 Account book synchronization method and device of block chain system and hardware equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878118A (en) * 2005-06-06 2006-12-13 腾讯科技(深圳)有限公司 System for realizing data communication and its method
US20170346833A1 (en) * 2016-05-27 2017-11-30 Sony Corporation Blockchain-based system, and electronic apparatus and method in the system
CN108429765A (en) * 2018-05-28 2018-08-21 北京奇虎科技有限公司 A kind of method, server and system for realizing domain name mapping based on block chain
CN108805585A (en) * 2018-05-28 2018-11-13 广州中国科学院软件应用技术研究所 Distributed commodity data storage system, circulation and source tracing method based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878118A (en) * 2005-06-06 2006-12-13 腾讯科技(深圳)有限公司 System for realizing data communication and its method
US20170346833A1 (en) * 2016-05-27 2017-11-30 Sony Corporation Blockchain-based system, and electronic apparatus and method in the system
CN108429765A (en) * 2018-05-28 2018-08-21 北京奇虎科技有限公司 A kind of method, server and system for realizing domain name mapping based on block chain
CN108805585A (en) * 2018-05-28 2018-11-13 广州中国科学院软件应用技术研究所 Distributed commodity data storage system, circulation and source tracing method based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704464A (en) * 2019-09-12 2020-01-17 广州蚁比特区块链科技有限公司 Method and device for processing bifurcation problem
CN110704464B (en) * 2019-09-12 2022-07-08 广州蚁比特区块链科技有限公司 Method and device for processing bifurcation problem
CN111400399A (en) * 2020-03-04 2020-07-10 链农(深圳)信息科技有限公司 Account book synchronization method and device of block chain system and hardware equipment
CN111400399B (en) * 2020-03-04 2023-11-14 链农(深圳)信息科技有限公司 Ledger synchronization method, device and hardware equipment of blockchain system

Also Published As

Publication number Publication date
CN109981794B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN100558080C (en) Cluster message transmitting method and distributed cluster system
CN109040259A (en) A kind of CDN node distribution method and system based on MEC
CN105323099B (en) Business network flowmeter factor method, network resource scheduling method and network element
CN107734558A (en) A kind of control of mobile edge calculations and resource regulating method based on multiserver
CN104158755B (en) The methods, devices and systems of transmitting message
CN107396396B (en) Data transmission management method supporting multi-source multipath
CN109451540B (en) Resource allocation method and equipment for network slices
CN106161610A (en) A kind of method and system of distributed storage
CN101873224A (en) Cloud computing load balancing method and equipment
CN103516744A (en) A data processing method, an application server and an application server cluster
CN110519090B (en) Method and system for allocating accelerator cards of FPGA cloud platform and related components
Kliazovich et al. CA-DAG: Communication-aware directed acyclic graphs for modeling cloud computing applications
CN111813330A (en) System and method for dispatching input-output
CN102970242A (en) Method for achieving load balancing
Wen et al. Load balancing job assignment for cluster-based cloud computing
Ren et al. Resource scheduling for delay-sensitive application in three-layer fog-to-cloud architecture
CN109981794A (en) Processing method, device and electronic equipment based on block chain meshed network
WO2021259246A1 (en) Resource scheduling method and apparatus, electronic device, and computer-readable storage medium
CN111611076B (en) Fair distribution method for mobile edge computing shared resources under task deployment constraint
CN109587072A (en) Distributed system overall situation speed limiting system and method
CN101448020A (en) Data source return method and device
CN105872093A (en) CDN acceleration method and system
CN101330529B (en) Method for distributing address of self-pruning type tree-shaped structure network
Eymann et al. Self-organizing resource allocation for autonomic network
WO2017000094A1 (en) Data storage method, device and 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