CN108810157A - The connection method of block chain network, medium, apparatus and system - Google Patents

The connection method of block chain network, medium, apparatus and system Download PDF

Info

Publication number
CN108810157A
CN108810157A CN201810636283.7A CN201810636283A CN108810157A CN 108810157 A CN108810157 A CN 108810157A CN 201810636283 A CN201810636283 A CN 201810636283A CN 108810157 A CN108810157 A CN 108810157A
Authority
CN
China
Prior art keywords
node
block chain
chain network
existing
newly increased
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810636283.7A
Other languages
Chinese (zh)
Inventor
吴胜文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Thai Chain (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 CN201810636283.7A priority Critical patent/CN108810157A/en
Publication of CN108810157A publication Critical patent/CN108810157A/en
Pending legal-status Critical Current

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/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a kind of block chain network connection methods, include the following steps:When newly increasing a node in block chain network, it is attached by the node and any one existing node in the block chain network that newly increase to obtain existing each address of node in the block chain network, wherein, it is interconnected between existing node in the block chain network;According to the direct-connected relationship between existing each node in the node newly increased described in existing each address of node foundation in the block chain network and the block chain network;Correspondingly, the invention also discloses a kind of computer readable storage medium, block chain network attachment device and block catenary systems, equally may be implemented rapidly by newly-increased node with have node in block chain and be directly connected to, improve the utilization rate of hardware resource and Internet resources in block chain;Meanwhile it reducing and the case where block chain bifurcated occurs.

Description

The connection method of block chain network, medium, apparatus and system
Technical field
The present invention relates to information technology field, more particularly to a kind of block chain network connection method, medium, device and it is System.
Background technology
Block chain, is the P2P distributed data base systems participated in by node, and its feature is can not to distort written block The data of chain.In existing block chain technology, the limitation that configuration file carries out newly-increased node connection type is mostly used.Namely Say, when there is new node that the chain is added, new node by download configuration file obtain can connecting node link address, and with finger Determine node and establishes connection.The utilization rate of hardware resource and Internet resources of this building mode to being possessed in block chain is low, and And it be easy to cause the congestion of network and the bifurcated of block chain.
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 block chain network connection method will rapidly can have node in newly-increased node and block chain Be directly connected to, improve block chain in hardware resource and Internet resources utilization rate;Meanwhile reducing the feelings for block chain bifurcated occur Condition.
Second object of the present invention is to propose computer readable storage medium.
Third object of the present invention is to propose a kind of block chain network attachment device.
Fourth object of the present invention is proposing a kind of block catenary system.
In order to achieve the above objectives, first aspect present invention embodiment proposes a kind of block chain network connection method, including Following steps:When newly increasing a node in block chain network, by the node that newly increases in the block chain network Any one node having is attached to obtain existing each address of node in the block chain network, wherein described It is interconnected between existing node in block chain network;Institute is established according to existing each address of node in the block chain network State the direct-connected relationship between existing each node in the node newly increased and the block chain network.
Block chain network connection method according to the ... of the embodiment of the present invention, first when newly increasing a node in block chain network When, it is attached by the node and any one existing node in the block chain network that newly increase to obtain the block Existing each address of node in chain network, wherein interconnected between existing node in the block chain network;Then basis In the node newly increased described in existing each address of node foundation in the block chain network and the block chain network Direct-connected relationship between each node having;Rapidly newly-increased node is connected with having the direct of node in block chain to realize It connects, improves the utilization rate of hardware resource and Internet resources in block chain;Meanwhile it reducing and the case where block chain bifurcated occurs.
In addition, the block chain network connection method proposed according to the above embodiment of the present invention can also be with following additional Technical characteristic:
Optionally, according to existing each address of node in the block chain network establish described in the node that newly increases with it is described Direct-connected relationship in block chain network between existing each node, including:By the node newly increased to the block Existing any one node sends direct-connected request in chain network, and establishes after the echo message for receiving the node described new Connection between increased node and the node;After the node newly increased is connect with the node, according to the block chain Existing residue address of node existing each remaining node into the block chain network sends direct-connected request in network, and Connection between the node and each remaining node that are newly increased described in being established after the echo message for receiving each remaining node.
Optionally, when the node newly increased is attempted to be attached with existing each node in the block chain network When, the response speed of existing each node in the block chain network is also obtained, and according to block described in response velocity estimated The health status of existing each node in chain network, and the health according to existing each node in the block chain network Situation, which is chosen in the block chain network, has the part of node as target direct-link node.
Optionally, speed and health status correlation are responded.
Optionally, when the node newly increased is attached with any one existing node in the block chain network, Also the crowding of the block chain network is monitored, and is allowed when the crowding of the block chain network is less than preset value Existing each address of node in the block chain network is sent to the node newly increased.
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 block chain network linker, such as above-mentioned block chain is realized when which is executed by processor Method for connecting network.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of block chain network attachment device, including: Acquisition module when for newly increasing a node in block chain network, passes through node and the block chain network newly increased In any one existing node be attached to obtain existing each address of node in the block chain network, wherein It is interconnected between existing node in the block chain network;Connection management module, for having according in the block chain network Each address of node establish described in it is straight between existing each node in the node newly increased and the block chain network Even relationship.
Block chain network attachment device according to the ... of the embodiment of the present invention, first, acquisition module increase newly in block chain network When adding a node, it is attached by the node and any one existing node in the block chain network that newly increase to obtain Take existing each address of node in the block chain network, wherein in the block chain network between existing node mutually Even;Then, connection management module according to existing each address of node in the block chain network establish described in newly increase Direct-connected relationship in node and the block chain network between existing each node;To realize rapidly by newly-increased node with Have being directly connected to for node in block chain, improves the utilization rate of hardware resource and Internet resources in block chain;Meanwhile it reducing out The case where existing block chain bifurcated.
In addition, the block chain network attachment device proposed according to the above embodiment of the present invention can also be with following additional Technical characteristic:
Optionally, connection management module is additionally operable to, by the node newly increased into the block chain network existing One node of meaning sends direct-connected request, and the node newly increased described in foundation after the echo message for receiving the node and the section Connection between point;After the node newly increased is connect with the node, according to existing residue in the block chain network Address of node existing each remaining node into the block chain network sends direct-connected request, and is receiving each residue Connection between the node and each remaining node that are newly increased described in being established after the echo message of node.
Optionally, acquisition module is additionally operable to, when the node that newly increases attempt with it is existing in the block chain network When each node is attached, the response speed of existing each node in the block chain network is obtained, and fast according to responding Degree judges the health status of existing each node in the block chain network, and according to existing in the block chain network The health status of each node, which is chosen in the block chain network, has the part of node as target direct-link node.
Optionally, speed and health status correlation are responded.
Optionally, connection management module is additionally operable to, when existing arbitrary in the node and the block chain network newly increased When one node is attached, the crowding of the block chain network is monitored, and in the crowded of the block chain network Degree allows existing each address of node in the block chain network being sent to the section newly increased when being less than preset value Point.
In order to achieve the above object, fourth aspect present invention embodiment proposes a kind of block catenary system, including above-mentioned Block chain network attachment device.
Description of the drawings
Fig. 1 is the flow diagram according to the block chain network connection method of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the block chain network connection method of another embodiment of the present invention;
Fig. 3 is the block diagram according to the block chain network attachment device 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 chain technology, the form for mostly using configuration file carries out the limitation of newly-increased node connection type.This Kind of mode is low to the utilization rate of hardware and Internet resources, and the case where be easy to cause block chain bifurcated.The embodiment of the present invention carries The block chain network connection method of confession, by the way that existing any one node in newly-increased node and block chain network to be attached simultaneously Obtain and have each address of node, and after getting each address of node, establish increase newly node and each node it Between direct-connected relationship;To realize rapidly by newly-increased node with have node in block chain and be directly connected to, raising block chain The utilization rate of middle hardware resource and Internet resources;Meanwhile it reducing and the case where block chain bifurcated occurs.
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 a kind of flow diagram of block chain network connection method provided in an embodiment of the present invention, as shown in Figure 1, The block chain network connection method includes the following steps:
S101, when newly increasing a node in block chain network, by the node that newly increases with it is existing in block chain network Any one node is attached to obtain existing each address of node in block chain network, wherein in block chain network It is interconnected between existing node.
That is, when newly increasing a node in block chain network, foundation newly increases in node and block chain network Connection between any one existing node, to obtain existing each address of node in block chain network.It needs to illustrate , interconnected between existing node in block chain network.
Wherein, foundation, which newly increases the mode being connect between node and any one existing node in block chain network, has It is a variety of, for example, when newly increasing node block chain network is added, send existing arbitrary in communication request to block chain network One node;Wherein, communication request includes newly increasing the digital certificate of node;Then, any one of communication request is received Whether the digital certificate that node newly increases node according to the communication request and the verification of certificate legality message is legal, and is verifying When being as a result legal, the connection newly increased between node and any one node is established.
S102, according to the node and institute newly increased described in existing each address of node foundation in the block chain network State the direct-connected relationship between existing each node in block chain network.
Wherein, direct-connected to refer to being directly connected between two nodes, rather than indirectly connected by other nodes.
It should be noted that the step specifically may include:Have first into block chain network by the node newly increased Any one node send direct-connected request, and the node and the section newly increased is established after the echo message for receiving the node Connection between point;Then after the node newly increased is connect with the node, according to existing residue node in block chain network Address into block chain network existing each remaining node send direct-connected request, and receiving returning for each remaining node Answer the connection between the node newly increased described in establishing after information and each remaining node;Wherein, remaining node refer to not with Existing node in the direct-connected block chain network of the node that newly increases.
That is, in getting block chain network after existing each address of node, the node root that newly increases It is direct-connected according to existing each address of node in the block chain network and each node progress in block chain network.
In order to better understand, it is explained with practice scene:
After the local node for creating wound generation block establishes connection with first node, communication request is sent out extremely when there is second node When local node, local node verify second node legitimacy, and verification second node it is legal after establish local node with The connection of second node, and the node address of first node that is connect with local node is sent to second node.Then, second Node stores the node address of first node in the buffer, and direct-connected according to the first node address and first node progress; In this way, according to the above method, when newly increasing a node in block chain network, the node that newly increases can be by being attached thereto Any one existing node obtains existing each address of node in block chain network in block chain network;And establish with it is new Increased node in block chain network existing each node it is direct-connected, with this realize in block chain have node between it is mutual It is mutually direct-connected.
In conclusion block chain network connection method according to the ... of the embodiment of the present invention, first when newly-increased in block chain network When adding a node, it is attached by the node and any one existing node in the block chain network that newly increase to obtain Take existing each address of node in the block chain network, wherein in the block chain network between existing node mutually Even;Then according to the node and the block newly increased described in existing each address of node foundation in the block chain network Direct-connected relationship in chain network between existing each node;To realize existing section in newly-increased node and block chain rapidly Point is directly connected to, and improves the utilization rate of hardware resource and Internet resources in block chain;Meanwhile it reducing and block chain bifurcated occurs Situation.
Fig. 2 is the block chain network connection method of another embodiment of the present invention, as shown in Fig. 2, the block chain network connects Method includes the following steps:
S201 by the node direct-connected request of existing any one node transmission into block chain network newly increased, and is connecing The connection between the node newly increased and the node is established after receiving the echo message of the node.
S202 obtains the crowding of current block chain network.
Wherein, there are many modes for obtaining the crowding of current block chain network, for example, being carried out by MRTG tool software The monitoring of network link flow load obtains the flow information of equipment by snmp agreements.
As an example, network flow sniffer can be increased in node to be monitored network congestion degree.
S203, judges whether the crowding of current block chain network is less than preset value;If so, thening follow the steps S204;If It is no, then follow the steps S202.
That is, after the crowding for getting block chain network, judge whether the crowding is less than preset value, if It is then to continue follow-up step;If it is not, then being waited for;Continue the crowding of acquisition current block chain network, and is somebody's turn to do Whether crowding is less than the judgement of preset value, until crowding is less than preset value, continues subsequent step.In this way, can be to prevent Only because the node that newly increases and block chain network caused by existing each node is direct-connected in block chain network are crowded.
Existing each address of node in block chain network is sent to the node newly increased by S204.
S205, the node newly increased existing each node into block chain network according to existing each address of node Direct-connected request is sent, and establishes the company between the node newly increased and each node after the echo message for receiving each node It connects.
S206 obtains the response speed of each node, and existing each in velocity estimated block chain network according to responding The health status of node.
Wherein, the response speed of each node refers to each node in the direct-connected request for receiving the node transmission newly increased Later, echo message is returned to the speed of the node newly increased.
As an example, the node newly increased is existing into block chain network according to existing each address of node After each node sends direct-connected request, the sending time of the direct-connected request is cached;Then, the node newly increased is connecing After the echo message for receiving each node, calculated according to the receiving time of echo message and the sending time of direct-connected request every The response speed of a node.
It should be noted that, network patency difference different according to the hardware of node, the response speed of different nodes can be in Now corresponding difference;Therefore, it is the key factor that node health situation judges to respond speed, responds speed and health status Correlation;In other words, the speed of response is faster, indicates that the health status of node is the better, and the speed of response is slower, indicates The health status of node is poorer.In other words, the basis for estimation of health status includes but not limited to respond speed, for example, healthy shape The proof of work etc. of credit rating, node that the basis for estimation of condition can also be including node.
S207, according to existing node in the health status selected block chain network of existing each node in block chain network Part as target direct-link node, and establish the node newly increased and target direct-link node is direct-connected.
That is, in judging block chain network after the health status of existing each node, according to the health shape Condition selected part node establishes the node newly increased and target direct-link node is direct-connected as target direct-link node.It needs to illustrate , there are many realization methods of the step, for example, in judging block chain network have each node health status it Afterwards, further judge whether the health status is more than preset health status threshold value, and when the determination result is yes, determining should The node that health status is more than preset health status threshold value is target direct-link node, and establishes the node that newly increases and target is straight Even node is direct-connected.
As an example, after having the health status of each node in judging block chain network, to each node Health status be ranked up, obtain health status and sort node within preset value, the part of nodes is straight as target Even node, and establish the node that newly increases and target direct-link node is direct-connected;Meanwhile each node is connect with the node newly increased When, it can also sort and be updated to the health status of each node, and is direct-connected according to newer health status sequence progress target The selection of node;So, it is ensured that the health status of block chain network prevents the generation of network congestion phenomenon.
In conclusion block chain network connection method according to the ... of the embodiment of the present invention, first by the node that newly increases to Any one existing node sends direct-connected request in block chain network, and is established newly after the echo message for receiving the node Connection between increased node and the node then obtains the crowding of current block chain network, and judges to judge to work as proparea Whether the crowding of block chain network is less than preset value;It and when the determination result is yes, will be existing each in block chain network Address of node is sent to the node newly increased;Then, the node newly increased is according to existing each address of node to block In chain network existing each node sends direct-connected request, and establishes and newly increase after the echo message for receiving each node Connection between node and each node, and the response speed of each node is obtained, and according to response velocity estimated block chain The health status of existing each node in network;Finally, according to the health status of existing each node in block chain network Have the part of node in selected block chain network as target direct-link node, and establishes the node newly increased and the direct-connected section of target Point is direct-connected;To ensure the health status of block chain network, and avoid node because newly increasing with it is existing in block chain network Block chain network is crowded caused by each node is direct-connected.
To realize above-described embodiment, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with Block chain network linker realizes that above-mentioned block chain network such as connects when the block chain network linker is executed by processor Connect method.
Fig. 3 is a kind of block diagram of block chain network attachment device provided in an embodiment of the present invention, as shown in figure 3, the area Block chain network attachment device includes:Acquisition module 10, connection management module 20.
Wherein, acquisition module 10, when for newly increasing a node in block chain network, by the node that newly increases with Any one existing node is attached to obtain existing each address of node in block chain network in block chain network, Wherein, in block chain network is interconnected between existing node
Connection management module 20, for according to existing each address of node in block chain network establish the node newly increased with Direct-connected relationship in block chain network between existing each node.
Block chain network attachment device according to the ... of the embodiment of the present invention, first, acquisition module increase newly in block chain network When adding a node, it is attached by the node and any one existing node in the block chain network that newly increase to obtain Take existing each address of node in the block chain network, wherein in the block chain network between existing node mutually Even;Then, connection management module according to existing each address of node in the block chain network establish described in newly increase Direct-connected relationship in node and the block chain network between existing each node;To realize rapidly by newly-increased node with Have being directly connected to for node in block chain, improves the utilization rate of hardware resource and Internet resources in block chain;Meanwhile it reducing out The case where existing block chain bifurcated.
In some embodiments, connection management module 20 is additionally operable to:By the node that newly increases into block chain network Any one node having sends direct-connected request, and establishes the node newly increased after the echo message for receiving the node and be somebody's turn to do Connection between node;After the node newly increased is connect with the node, according to existing residue node in block chain network Address existing each remaining node into block chain network sends direct-connected request, and in the response for receiving each remaining node The connection between the node newly increased and each remaining node is established after information.
In some embodiments, acquisition module 10 is additionally operable to:When the node newly increased is attempted to have with block chain network Each node when being attached, obtain the response speed of existing each node in block chain network, and according to responding speed Judge the health status of existing each node in block chain network, and according to existing each node in block chain network Has the part of node in health status selected block chain network as target direct-link node.
It should be noted that wherein, responding speed and health status correlation.
In some embodiments, connection management module 20 is additionally operable to, when the node newly increased has with block chain network Any one node when being attached, the crowding of block chain network is monitored, and in the crowding of block chain network Allow existing each address of node in block chain network being sent to the node newly increased when less than preset value.
To realize that above-described embodiment, the embodiment of the present invention also provide a kind of block catenary system, including above-mentioned block link network Network attachment device.
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 (12)

1. a kind of block chain network connection method, which is characterized in that include the following steps:
When newly increasing a node in block chain network, pass through existing in the node newly increased and the block chain network One node of meaning is attached to obtain existing each address of node in the block chain network, wherein the block chain It is interconnected between existing node in network;
According to the node and the block chain newly increased described in existing each address of node foundation in the block chain network Direct-connected relationship in network between existing each node.
2. block chain network connection method as described in claim 1, which is characterized in that have according in the block chain network Each address of node establish described in it is straight between existing each node in the node newly increased and the block chain network Even relationship, including:
The direct-connected request of existing any one node transmission into the block chain network by the node newly increased, and Receive the connection between the node and the node newly increased described in establishing after the echo message of the node;
After the node newly increased is connect with the node, according to existing residue address of node in the block chain network Into the block chain network, existing each remaining node sends direct-connected request, and in the response for receiving each remaining node Connection between the node and each remaining node that are newly increased described in being established after information.
3. block chain network connection method as claimed in claim 1 or 2, which is characterized in that when the node newly increased is tasted When examination is attached with existing each node in the block chain network, also obtain existing each in the block chain network The response speed of node, and according to the health status for responding existing each node in block chain network described in velocity estimated, with And it is chosen according to the health status of existing each node in the block chain network and has node in the block chain network Part is used as target direct-link node.
4. block chain network connection method as claimed in claim 3, which is characterized in that it is in positive to respond speed with health status Pass relationship.
5. block chain network connection method as described in claim 1, which is characterized in that when the node newly increased and the block When any one existing node is attached in chain network, also the crowding of the block chain network is monitored, and The crowding of the block chain network allows when being less than preset value by existing each address of node in the block chain network It is sent to the node newly increased.
6. a kind of computer readable storage medium, which is characterized in that be stored thereon with block chain network linker, the block chain The block chain network connection method as described in any one of claim 1-5 is realized when network attachment procedure is executed by processor.
7. a kind of block chain network attachment device, which is characterized in that including:
Acquisition module when for newly increasing a node in block chain network, passes through node and the block chain newly increased Any one existing node is attached to obtain existing each address of node in the block chain network in network, In, it is interconnected between existing node in the block chain network;
Connection management module, for what is newly increased described in being established according to existing each address of node in the block chain network Direct-connected relationship in node and the block chain network between existing each node.
8. block chain network attachment device as claimed in claim 7, which is characterized in that the connection management module is additionally operable to,
The direct-connected request of existing any one node transmission into the block chain network by the node newly increased, and Receive the connection between the node and the node newly increased described in establishing after the echo message of the node;
After the node newly increased is connect with the node, according to existing residue address of node in the block chain network Into the block chain network, existing each remaining node sends direct-connected request, and in the response for receiving each remaining node Connection between the node and each remaining node that are newly increased described in being established after information.
9. block chain network attachment device as claimed in claim 7 or 8, which is characterized in that the acquisition module is additionally operable to, when When the node newly increased is attempted to be attached with existing each node in the block chain network, the block chain is obtained The response speed of existing each node in network, and according to existing each section in block chain network described in response velocity estimated The health status of point, and the block link network is chosen according to the health status of existing each node in the block chain network Has the part of node in network as target direct-link node.
10. block chain network attachment device as claimed in claim 9, which is characterized in that respond speed with health status in just Correlativity.
11. block chain network attachment device as claimed in claim 7, which is characterized in that the connection management module is additionally operable to, When the node newly increased is attached with any one existing node in the block chain network, to the block chain network Crowding be monitored, and allow will be in the block chain network when the crowding of the block chain network is less than preset value Existing each address of node is sent to the node newly increased.
12. a kind of block catenary system, which is characterized in that include the block chain network company as described in any one of claim 7-11 Connection device.
CN201810636283.7A 2018-06-20 2018-06-20 The connection method of block chain network, medium, apparatus and system Pending CN108810157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810636283.7A CN108810157A (en) 2018-06-20 2018-06-20 The connection method of block chain network, medium, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810636283.7A CN108810157A (en) 2018-06-20 2018-06-20 The connection method of block chain network, medium, apparatus and system

Publications (1)

Publication Number Publication Date
CN108810157A true CN108810157A (en) 2018-11-13

Family

ID=64083866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810636283.7A Pending CN108810157A (en) 2018-06-20 2018-06-20 The connection method of block chain network, medium, apparatus and system

Country Status (1)

Country Link
CN (1) CN108810157A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011978A (en) * 2019-03-08 2019-07-12 阿里巴巴集团控股有限公司 A kind of method and system of modification block chain network configuration
CN110266763A (en) * 2019-05-20 2019-09-20 深圳壹账通智能科技有限公司 Block chain network implementation method, system and the storage medium of cross-network segment interconnection
CN110392115A (en) * 2019-07-25 2019-10-29 上海和数软件有限公司 Block chain node administration method, device and readable storage medium storing program for executing
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN111491020A (en) * 2020-04-08 2020-08-04 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465753A (en) * 2007-12-19 2009-06-24 中国移动通信集团公司 Method, device and system for managing P2P system set
US20160344717A1 (en) * 2014-01-31 2016-11-24 Hewlett-Packard Development Company, L.P Communicating between a cluster and a node external to the cluster
CN107171829A (en) * 2017-04-24 2017-09-15 杭州趣链科技有限公司 A kind of dynamic node management method for algorithm realization of being known together based on BFT
CN107231239A (en) * 2017-06-27 2017-10-03 中国联合网络通信集团有限公司 Create generation block method for anti-counterfeit and device
CN107819829A (en) * 2017-10-17 2018-03-20 上海点融信息科技有限责任公司 Access method, system, block chain node device and the user terminal of block chain
CN107995270A (en) * 2017-11-24 2018-05-04 成都赤乌软件技术有限公司 A kind of method that distributed document storage is realized based on block chain
CN108124505A (en) * 2017-12-19 2018-06-05 深圳前海达闼云端智能科技有限公司 Method and device for acquiring trusted node, storage medium and block link node

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465753A (en) * 2007-12-19 2009-06-24 中国移动通信集团公司 Method, device and system for managing P2P system set
US20160344717A1 (en) * 2014-01-31 2016-11-24 Hewlett-Packard Development Company, L.P Communicating between a cluster and a node external to the cluster
CN107171829A (en) * 2017-04-24 2017-09-15 杭州趣链科技有限公司 A kind of dynamic node management method for algorithm realization of being known together based on BFT
CN107231239A (en) * 2017-06-27 2017-10-03 中国联合网络通信集团有限公司 Create generation block method for anti-counterfeit and device
CN107819829A (en) * 2017-10-17 2018-03-20 上海点融信息科技有限责任公司 Access method, system, block chain node device and the user terminal of block chain
CN107995270A (en) * 2017-11-24 2018-05-04 成都赤乌软件技术有限公司 A kind of method that distributed document storage is realized based on block chain
CN108124505A (en) * 2017-12-19 2018-06-05 深圳前海达闼云端智能科技有限公司 Method and device for acquiring trusted node, storage medium and block link node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高伟: "《哈尔滨工程大学博士学位论文》", 31 December 2011 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011978A (en) * 2019-03-08 2019-07-12 阿里巴巴集团控股有限公司 A kind of method and system of modification block chain network configuration
CN110011978B (en) * 2019-03-08 2021-02-12 创新先进技术有限公司 Method, system, device and computer equipment for modifying block chain network configuration
TWI732295B (en) * 2019-03-08 2021-07-01 開曼群島商創新先進技術有限公司 Method and system for modifying block chain network configuration
US11349649B2 (en) 2019-03-08 2022-05-31 Advanced New Technologies Co., Ltd. Methods and systems for modifying blockchain network configuration
CN110266763A (en) * 2019-05-20 2019-09-20 深圳壹账通智能科技有限公司 Block chain network implementation method, system and the storage medium of cross-network segment interconnection
CN110392115A (en) * 2019-07-25 2019-10-29 上海和数软件有限公司 Block chain node administration method, device and readable storage medium storing program for executing
CN110392115B (en) * 2019-07-25 2022-03-01 上海和数软件有限公司 Block chain node management method, device and readable storage medium
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN110601896B (en) * 2019-09-20 2021-08-24 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN111491020A (en) * 2020-04-08 2020-08-04 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108810157A (en) The connection method of block chain network, medium, apparatus and system
CN111447290B (en) Communication method and service data transmission method in block chain network
CN105103507B (en) The method and device of network function virtualization
CN109492380B (en) Equipment authentication method and device and block link point
KR20190057109A (en) Method and management unit for managing network slices
CN109391490B (en) Network slice management method and device
CN104219316A (en) Method and device for processing call request in distributed system
CN108833181A (en) NG-CN network slice systems and network are sliced selection method
TW201041339A (en) Methods and apparatus for merging peer-to-peer overlay networks
EP2965465A1 (en) Handling of digital certificates
CN109474449A (en) A kind of method and device of processing network slice example
CN105635931B (en) A kind of method and apparatus of resource access
CN104811323A (en) Data requesting method, data requesting device, node server and CDN (content delivery network) system
WO2016112676A1 (en) Alarm processing method and device
CN113301071B (en) Network source returning method, device and equipment
CN107005452A (en) A kind of network function virtual resources processing method and virtual network function manager
CN109964507A (en) Management method, administrative unit and the system of network function
CN106161171B (en) Method and device for establishing network service instance
CN115499859B (en) NWDAF-based method for managing and deciding computing resources
CN111510383A (en) Route calculation method and related equipment
CN111262724B (en) Method and device for confirming trust relationship between domains
CN109391503B (en) Network slice management method and device
CN103607410A (en) Content access method and equipment
CN105792247A (en) Data pushing method and device
TW201735719A (en) Network function virtualization (NFV) performance measurement (PM) threshold monitoring operations

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113