CN110011930A - The load-balancing method and device of multi-joint alliance's chain in a kind of block chain - Google Patents
The load-balancing method and device of multi-joint alliance's chain in a kind of block chain Download PDFInfo
- Publication number
- CN110011930A CN110011930A CN201910184051.7A CN201910184051A CN110011930A CN 110011930 A CN110011930 A CN 110011930A CN 201910184051 A CN201910184051 A CN 201910184051A CN 110011930 A CN110011930 A CN 110011930A
- Authority
- CN
- China
- Prior art keywords
- chain
- node
- routing
- service request
- alliance
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
Abstract
The invention discloses the load-balancing methods and device of multi-joint alliance's chain in a kind of block chain, this method includes, it obtains service request and routes the contract information of chain, wherein, the block chain that routing chain is made of the node of the mechanism in multi-joint alliance's chain, service request includes business to be processed, according to the contract information of service request and routing chain, determine the corresponding alliance's chain of service request, first node is determined according to the corresponding alliance's chain of service request, and business to be processed is sent to first node, safeguard the contract information of a routing chain jointly by multimachine structure, it avoids the occurrence of since the routing rule of each mechanism is inconsistent, lead to not the load balancing for realizing multi-joint alliance's chain.
Description
Technical field
The embodiment of the present invention belongs to the financial technology field (Fintech) more particularly to a kind of block chain (Blockchain)
In multi-joint alliance's chain load-balancing method and device.
Background technique
Block chain is a kind of Distributed sharing account book database, and alliance's chain is a kind of agency node group by trusting each other
At establishing connection between node, data transmission is all made of safe and reliable mode, for example authenticate, IP (Internet
Protocol, the agreement interconnected between network) white list etc., the block Chain System that external node can not be added.Existing business
Request amount is bigger, and single-stranded performance and storage are unable to satisfy business demand, it is therefore desirable to introduce multichain technology, existing block
The load balancing of multi-joint alliance's chain is mainly by the routing configuration file of each access mechanism in chain, to determine which cochain request is sent to
One alliance's chain, to realize the load balancing of multi-joint alliance's chain.
But in the prior art, each mechanism needs to safeguard respective routing configuration file, once it needs to routing configuration text
When part is modified, it is each it is inter-agency need synchronous vacations, the situation is it is possible that the inconsistent situation of routing rule, Wu Fashi
The load balancing of existing multi-joint alliance's interchain.
Summary of the invention
The embodiment of the present invention provides the load-balancing method and device of multi-joint alliance's chain in a kind of block chain, total by multimachine structure
It with the contract information of one routing chain of maintenance, avoids the occurrence of since the routing rule of each mechanism is inconsistent, leads to not realize more
The load balancing of alliance's chain.
The load-balancing method of multi-joint alliance's chain in a kind of block chain provided in an embodiment of the present invention, comprising:
It obtains service request and routes the contract information of chain;The routing chain is by the section of the mechanism in multi-joint alliance's chain
The block chain of point composition;The service request includes business to be processed;
According to the contract information of the service request and routing chain, the corresponding alliance's chain of the service request is determined;
First node is determined according to the corresponding alliance's chain of the service request, and the business to be processed is sent to described
First node;The first node is in multi-joint alliance's chain for handling the node of the business to be processed.
In above-mentioned technical proposal, obtains service request and route the contract information of chain, wherein routing chain is by multi-joint alliance's chain
In mechanism node composition block chain, the contract information for routing chain is safeguarded jointly by multimachine structure, also it is avoided that occur
The inconsistent problem of each mechanism routing configuration file, further according to the contract information of service request and routing chain, it can really
The corresponding alliance's chain of service request is made, and after determining first node, business to be processed is sent to first node, the party
The corresponding alliance's chain of the service request that formula is determined and first node can effectively reach the load balancing of multi-joint alliance's chain, that is, pass through
Multimachine structure safeguards the contract information of a routing chain jointly, avoids the occurrence of since the routing rule of each mechanism is inconsistent, leads to nothing
Method realizes the load balancing of multi-joint alliance's chain.
Optionally, the contract information of the routing chain includes the routing rule of each mechanism;The service request includes mechanism
Mark, service identification and sequence number;
The contract information according to the service request and routing chain, determines the corresponding alliance's chain of the service request,
Include:
According to the authority identification, the routing rule of each mechanism, the routing of the service request institutional affiliation is determined
Rule;
According to the service identification and sequence number, the routing rule of the service request institutional affiliation is inquired, determines institute
State the corresponding alliance's chain of service request.
In above-mentioned technical proposal, the contract information for routing chain includes the routing rule of each mechanism, and service request includes mechanism
Mark, service identification and sequence number, according to the routing rule of each mechanism, the authority identification of service request, service identification and sequence
Number, it can determine the corresponding alliance's chain of service request.The routing rule in the contract information of chain including each mechanism is routed,
Exactly each mechanism safeguards a routing configuration file jointly, includes the routing rule of each mechanism in the routing configuration file, avoids
There is the respective routing configuration file of each facility maintenance, cause each mechanism routing configuration file inconsistent, influences negative between multichain
Carry balanced problem.
Optionally, the contract information of the routing chain includes the node of the node of each mechanism, each alliance's chain;The business is asked
It asks including authority identification;
It is described that first node is determined according to the corresponding alliance's chain of the service request, comprising:
According to the corresponding alliance's chain of the service request, the node of each alliance's chain, determine that the service request is corresponding
Alliance's chain node first set;
According to the authority identification, the node of each mechanism, the of the node of the service request institutional affiliation is determined
Two set;
According to belonging to the first set and belonging to the node of the second set, first node is determined.
In above-mentioned technical proposal, the contract information for routing chain includes the node of the node of each mechanism, each alliance's chain, and business is asked
It asks including authority identification, can determine that service request is corresponding according to the corresponding alliance's chain of service request, the node of each alliance's chain
Alliance's chain all nodes set, i.e. first set determines business further according to authority identification, the node of each mechanism
The node of institutional affiliation, i.e. second set are requested, first node is determined according to the node for belonging to first set and second set,
Namely for the node for handling business to be processed.
Optionally, the contract information for obtaining routing chain, comprising:
Send the node of contract information acquisition request to the routing chain;
Receive the contract information of the routing chain of the node feeding back of the routing chain.
In above-mentioned technical proposal, multiple mechanisms safeguard the contract information of a routing chain jointly, the contract letter of the routing chain
Breath is the contract information of the block chain of the node composition of the mechanism in multi-joint alliance's chain, in the contract information for needing to obtain the routing chain
When, contract information acquisition request can be sent to the node of routing chain, and receive the feedback of routing chain, to get the routing
The contract information of chain.
Optionally, further includes:
Obtain the modification information of routing rule;
The modification information of the routing rule is sent to the node of the routing chain, so that the node root of the routing chain
It modifies according to the modification information of the routing rule to the contract information of the routing chain.
In above-mentioned technical proposal, when needing to modify the routing rule of mechanism, the modification of the available routing rule is believed
Breath, and the modification information of the routing rule is sent to the node for routing chain, to modify the contract information of routing chain.It is modifying
After coming into force, each mechanism directly can obtain the contract information of the routing chain from routing chain, it can get after modification comes into force
Mechanism routing rule, avoid the occurrence of due to each mechanism routing rule modification it is asynchronous, lead to not realize multi-joint alliance's chain
Load balancing.
Correspondingly, the embodiment of the invention also provides a kind of load balancing apparatus of multi-joint alliance's chain in block chain, comprising:
Transmit-Receive Unit, for obtaining service request and routing the contract information of chain;The routing chain is by the multi-joint alliance
The block chain of the node composition of mechanism in chain;The service request includes business to be processed;
Processing unit determines that the service request is corresponding for the contract information according to the service request and routing chain
Alliance's chain;First node is determined according to the corresponding alliance's chain of the service request, and the business to be processed is sent to institute
State first node;The first node is in multi-joint alliance's chain for handling the node of the business to be processed.
Optionally, the contract information of the routing chain includes the routing rule of each mechanism;The service request includes mechanism
Mark, service identification and sequence number;
The processing unit is specifically used for:
According to the authority identification, the routing rule of each mechanism, the routing of the service request institutional affiliation is determined
Rule;
According to the service identification and sequence number, the routing rule of the service request institutional affiliation is inquired, determines institute
State the corresponding alliance's chain of service request.
Optionally, the contract information of the routing chain includes the node of the node of each mechanism, each alliance's chain;The business is asked
It asks including authority identification;
The processing unit is specifically used for:
According to the corresponding alliance's chain of the service request, the node of each alliance's chain, determine that the service request is corresponding
Alliance's chain node first set;
According to the authority identification, the node of each mechanism, the of the node of the service request institutional affiliation is determined
Two set;
According to belonging to the first set and belonging to the node of the second set, first node is determined.
Optionally, the Transmit-Receive Unit is specifically used for:
Send the node of contract information acquisition request to the routing chain;
Receive the contract information of the routing chain of the node feeding back of the routing chain.
Optionally, the Transmit-Receive Unit is also used to:
Obtain the modification information of routing rule;
The modification information of the routing rule is sent to the node of the routing chain, so that the node root of the routing chain
It modifies according to the modification information of the routing rule to the contract information of the routing chain.
Correspondingly, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned block according to the program of acquisition for calling the program instruction stored in the memory
The load-balancing method of multi-joint alliance's chain in chain.
Correspondingly, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium, including computer
Readable instruction, when computer is read and executes the computer-readable instruction, so that more in the above-mentioned block chain of computer execution
The load-balancing method of alliance's chain.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of schematic diagram of system architecture provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the load-balancing method of multi-joint alliance's chain provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the load-balancing method of multi-joint alliance's chain provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram of the load-balancing method of multi-joint alliance's chain provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the load balancing apparatus of multi-joint alliance's chain provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the system architecture that the load-balancing method of multi-joint alliance's chain in block chain is applicable in, the system
Framework may include multiple mechanisms, and the node composition alliance's chain and routing chain of each mechanism illustratively can in multiple mechanisms
As shown in Figure 1, the system includes mechanism A, mechanism B, mechanism C, wherein mechanism A includes node A1, node A2, node A3, section
Point A4, mechanism B include node B1, node B2, node B3, node B4, and mechanism C includes node C1, node C2, node C3.Node
A1, node A4, node B1, node C1 form alliance's chain 1, and node A2, node B2, node B4, node C2 form alliance's chain 2, section
Point A3, node B3, node C3 composition routing chain.
In the embodiment of the present invention, the block chain that routing chain is made of the node of the mechanism in multi-joint alliance's chain routes chain
Contract information includes a routing configuration file, and Ji Ge mechanism safeguards a routing configuration file, the routing configuration file jointly
In include each mechanism routing rule, such as Fig. 1, mechanism A, mechanism B, mechanism C determine routing chain contract information, safeguard one jointly
A routing configuration file, the routing configuration file include the routing of the routing rule of mechanism A, the routing rule of mechanism B, mechanism C
Rule.If after some authorities to service request, can determine ask the business according to the contract information of routing chain
It asks and is sent in which alliance's chain, to realize the load balancing of multi-joint alliance's chain.
Based on foregoing description, Fig. 2 illustratively shows multi-joint alliance's chain in a kind of block chain provided in an embodiment of the present invention
Load-balancing method process, which can be executed by the load balancing apparatus of alliance's chain multi-joint in block chain.Such as Fig. 2 institute
Show, which specifically includes:
Step 201, it obtains service request and routes the contract information of chain.
In the embodiment of the present invention, service request may include any one of following parameter or combination: business to be processed, machine
Structure mark, service identification and sequence number.Wherein, business to be processed corresponds to the mark of mechanism, industry in authority identification, that is, service request
Business mark is the service identification of business to be processed in the service request, the sequence number of the Serial No. business to be processed.In conjunction with figure
1, if mechanism A gets a service request, the corresponding mechanism of business to be processed is mechanism A in the service request, then mechanism mark
Knowing is " Org A ", and the service identification of the business to be processed in the service request is " APPID A1 ", Serial No. " SeqNo
50 ", then it is to be understood that including " Org A, APPID A1, SeqNo 50 " in the service request.
In the embodiment of the present invention, the contract information for routing chain may include any one of following parameter or combination: each machine
The routing rule of structure, the node of each mechanism, each alliance's chain node.The routing rule of each mechanism includes the business mark of each mechanism
Know, the range of sequence number and alliance's chain mark, the node that the node Ji Ge mechanism of each mechanism includes, the node of each alliance's chain, that is, each
The node that alliance's chain includes.Illustratively, in framework as shown in Figure 1, the routing rule of each mechanism is referred to shown in table 1,
The node of each mechanism is referred to shown in table 2, and the node of each alliance's chain is referred to shown in table 3.
Table 1
Table 2
Mechanism | Authority identification | The node of mechanism |
Mechanism A | Org A | Node A1, node A2, node A3, node A4 |
Mechanism B | Org B | Node B1, node B2, node B3, node B4 |
Mechanism C | Org B | Node C1, node C2, node C3 |
Table 3
Alliance's chain | Alliance's chain mark | The node of alliance's chain |
Alliance's chain 1 | Chain1 | Node A1, node A4, node B1, node C1 |
Alliance's chain 2 | Chain2 | Node A2, node B2, node B4, node C2 |
In the embodiment of the present invention, mechanism can obtain the contract information of routing chain from routing chain, and mechanism sends contract information
Acquisition request to route chain node, route chain node receive the contract information acquisition request after, the contract of chain will be routed
Information feeds back to mechanism, the contract information of the routing chain of the node feeding back of the authorities routing chain.
Step 202, according to the contract information of the service request and routing chain, the corresponding alliance of the service request is determined
Chain.
In the embodiment of the present invention, the contract information for routing chain may include the routing rule of each mechanism, and service request includes
Authority identification, service identification and sequence number, specifically, determining service request first according to authority identification, the routing rule of each mechanism
The routing rule of institutional affiliation, further according to service identification and sequence number, inquiry business requests the routing rule of institutional affiliation, determines
The corresponding alliance's chain of service request out.
In the embodiment of the present invention, it is the service request of mechanism to business to be processed that mechanism is available, also available
It is not the service request of mechanism to business to be processed, i.e. mechanism A is available to be asked to the business that authority identification is " Org A "
It asks, it is also available to arrive the service request that authority identification is " Org B ".
Illustratively, if the service request that gets of mechanism A includes that " Org A, APPID A1, SeqNo 50 ", then can be with
According to " Org A, APPID A1, SeqNo 50 " and table 1 determine that alliance's chain is identified as Chain1, i.e. the corresponding connection of the service request
Alliance's chain 1.Alternatively, if the service request that mechanism A is got includes that " Org B, APPID B1, SeqNo 50 ", then can basis
" Org B, APPID B1, SeqNo 50 " and table 1 determine that alliance's chain is identified as Chain2, i.e., the service request corresponds to alliance's chain
2。
Step 203, first node is determined according to the corresponding alliance's chain of the service request, and the business to be processed is sent out
It send to the first node.
In the embodiment of the present invention, first node is in multi-joint alliance's chain for handling the node of business to be processed.That is,
After determining the corresponding alliance's chain of service request in step 202, need to determine from the corresponding alliance's chain of the service request
The node of the business to be processed is handled, which is first node.
Optionally, the contract information for routing chain includes the node of the node of each mechanism, each alliance's chain, and service request includes machine
Structure mark determines the section of the corresponding alliance's chain of service request first according to the corresponding alliance's chain of service request, the node of each alliance's chain
The first set of point;Further according to authority identification, the node of each mechanism, the second collection of the node of service request institutional affiliation is determined
It closes;Last basis belongs to first set and belongs to the node of the second set, determines first node.
It is construed to, after determining the corresponding alliance's chain of service request, can determine that service request is corresponding according to table 3
The node of alliance's chain determines the node of the corresponding mechanism of service request according to table 2.For example, according to " Org A, APPID A1,
After SeqNo 50 " determines that service request corresponds to alliance's chain 1 with table 1, determine that the first set of the node composition of alliance's chain 1 is
" node A1, node A4, node B1, node C1 ", determine mechanism A node composition second set be " node A1, node A2,
Node A3, node A4 ", belong to first set, second set node be " node A1, node A4 ", according to " node A1, section
Point A4 " determines first node, herein it is found that belong to first set and belong to the node of second set can be for one or big
In one, it is one when belonging to first set and belonging to the node of second set, then the only one node is determined as first
Node can be from the node greater than one when belonging to first set and belonging to the node of second set for greater than one
It determines first node at random, can also determine according to preset rules, it is not limited here.
It, can be with after determining first node in addition, node may include IP address corresponding to node and listening port
According to the IP address and listening port of first node, business to be processed is sent to first node, so that first node is to this
Business to be processed is handled.
In the embodiment of the present invention, it can also modify to the contract information of routing chain, it further, can be to each mechanism
Routing rule modify, specifically, obtain routing rule modification information, the modification information of routing rule is sent to road
By the node of chain, so that the node of routing chain modifies to the contract information of routing chain according to the modification information of routing rule.
It is corresponding to " 100~200 " by the sequence number range of APPID B1 for example, it is desired to modify to the routing rule of mechanism B
Alliance's chain is revised as alliance's chain 1, then can directly modify in mechanism B, and modification information is sent to the node of routing chain, such as
Fig. 1, can be sent to node B3, and node B3 modifies according to contract information of the modification information to routing chain.
Embodiment in order to preferably explain the present invention will describe the negative of multi-joint alliance's chain under specific implement scene below
Balanced process is carried, as shown in figure 3, specific as follows:
Step 301, mechanism obtains service request;
Step 302, mechanism sends contract information acquisition request to routing chain node;
Step 303, routing chain node sends the contract information of routing chain to mechanism;
Step 304, mechanism determines the corresponding alliance's chain of service request according to the contract information of service request and routing chain;
Step 305, mechanism determines first node according to the corresponding alliance's chain of service request;
Step 306, mechanism sends business to be processed to first node;
Step 307, first node handles business to be processed.
Since the specific implementation of the present embodiment has described in other embodiments, therefore not to repeat here.
Another embodiment provided by the invention can be as shown in Figure 4, wherein can also include proxy (generation in the system
Manage server), which can be located in mechanism, can also complete above-mentioned area for agency independently of mechanism, proxy
The load-balancing method of multi-joint alliance's chain in block chain, specifically, being sent to service request after mechanism gets service request
Proxy, proxy read the contract information in routing chain, are determined and the service request from multi-joint alliance's chain according to contract information
Corresponding alliance's chain, the corresponding alliance's chain of the service request handle the business to be processed in the service request, and by business
Successful result feeds back to proxy, and proxy responds implementing result to mechanism.
In above-mentioned technical proposal, obtains service request and route the contract information of chain, wherein routing chain is by multi-joint alliance's chain
In mechanism node composition block chain, the contract information for routing chain is safeguarded jointly by multimachine structure, also it is avoided that occur
The inconsistent problem of each mechanism routing configuration file, further according to the contract information of service request and routing chain, it can really
The corresponding alliance's chain of service request is made, and after determining first node, business to be processed is sent to first node, the party
The corresponding alliance's chain of the service request that formula is determined and first node can effectively reach the load balancing of multi-joint alliance's chain, that is, pass through
Multimachine structure safeguards the contract information of a routing chain jointly, avoids the occurrence of since the routing rule of each mechanism is inconsistent, leads to nothing
Method realizes the load balancing of multi-joint alliance's chain.
Based on the same inventive concept, Fig. 5 illustratively shows multi-joint in a kind of block chain provided in an embodiment of the present invention
The structure of the load balancing apparatus of alliance's chain, the device can execute the process of the load-balancing method of multi-joint alliance's chain in block chain.
The device, comprising:
Transmit-Receive Unit 501, for obtaining service request and routing the contract information of chain;The routing chain is by described multi-joint
The block chain of the node composition of mechanism in alliance's chain;The service request includes business to be processed;
Processing unit 502 determines the service request pair for the contract information according to the service request and routing chain
The alliance's chain answered;First node is determined according to the corresponding alliance's chain of the service request, and the business to be processed is sent to
The first node;The first node is in multi-joint alliance's chain for handling the node of the business to be processed.
Optionally, the contract information of the routing chain includes the routing rule of each mechanism;The service request includes mechanism
Mark, service identification and sequence number;
The processing unit 502 is specifically used for:
According to the authority identification, the routing rule of each mechanism, the routing of the service request institutional affiliation is determined
Rule;
According to the service identification and sequence number, the routing rule of the service request institutional affiliation is inquired, determines institute
State the corresponding alliance's chain of service request.
Optionally, the contract information of the routing chain includes the node of the node of each mechanism, each alliance's chain;The business is asked
It asks including authority identification;
The processing unit 502 is specifically used for:
According to the corresponding alliance's chain of the service request, the node of each alliance's chain, determine that the service request is corresponding
Alliance's chain node first set;
According to the authority identification, the node of each mechanism, the of the node of the service request institutional affiliation is determined
Two set;
According to belonging to the first set and belonging to the node of the second set, first node is determined.
Optionally, the Transmit-Receive Unit 501 is specifically used for:
Send the node of contract information acquisition request to the routing chain;
Receive the contract information of the routing chain of the node feeding back of the routing chain.
Optionally, the Transmit-Receive Unit 501 is also used to:
Obtain the modification information of routing rule;
The modification information of the routing rule is sent to the node of the routing chain, so that the node root of the routing chain
It modifies according to the modification information of the routing rule to the contract information of the routing chain.
Based on the same inventive concept, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned block according to the program of acquisition for calling the program instruction stored in the memory
The load-balancing method of multi-joint alliance's chain in chain.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium,
Including computer-readable instruction, when computer is read and executes the computer-readable instruction, so that computer execution is above-mentioned
The load-balancing method of multi-joint alliance's chain in block chain.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or 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 counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
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
Mind 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.
Claims (12)
1. the load-balancing method of multi-joint alliance's chain in a kind of block chain characterized by comprising
It obtains service request and routes the contract information of chain;The routing chain is by the node group of the mechanism in multi-joint alliance's chain
At block chain;The service request includes business to be processed;
According to the contract information of the service request and routing chain, the corresponding alliance's chain of the service request is determined;
First node is determined according to the corresponding alliance's chain of the service request, and the business to be processed is sent to described first
Node;The first node is in multi-joint alliance's chain for handling the node of the business to be processed.
2. the method as described in claim 1, which is characterized in that the contract information of the routing chain includes the routing rule of each mechanism
Then;The service request includes authority identification, service identification and sequence number;
The contract information according to the service request and routing chain, determines the corresponding alliance's chain of the service request, comprising:
According to the authority identification, the routing rule of each mechanism, the routing rule of the service request institutional affiliation is determined;
According to the service identification and sequence number, the routing rule of the service request institutional affiliation is inquired, determines the industry
Corresponding alliance's chain is requested in business.
3. the method as described in claim 1, which is characterized in that it is described routing chain contract information include each mechanism node,
The node of each alliance's chain;The service request includes authority identification;
It is described that first node is determined according to the corresponding alliance's chain of the service request, comprising:
According to the corresponding alliance's chain of the service request, the node of each alliance's chain, determine that the service request is corresponding
The first set of the node of alliance's chain;
According to the authority identification, the node of each mechanism, the second collection of the node of the service request institutional affiliation is determined
It closes;
According to belonging to the first set and belonging to the node of the second set, first node is determined.
4. the method as described in claim 1, which is characterized in that the contract information for obtaining routing chain, comprising:
Send the node of contract information acquisition request to the routing chain;
Receive the contract information of the routing chain of the node feeding back of the routing chain.
5. such as the described in any item methods of Claims 1-4, which is characterized in that further include:
Obtain the modification information of routing rule;
The modification information of the routing rule is sent to the node of the routing chain, so that the node of the routing chain is according to institute
The modification information for stating routing rule modifies to the contract information of the routing chain.
6. the load balancing apparatus of multi-joint alliance's chain in a kind of block chain characterized by comprising
Transmit-Receive Unit, for obtaining service request and routing the contract information of chain;The routing chain is by multi-joint alliance's chain
Mechanism node composition block chain;The service request includes business to be processed;
Processing unit determines that the service request is corresponding for the contract information according to the service request and routing chain
Alliance's chain;First node is determined according to the corresponding alliance's chain of the service request, and the business to be processed is sent to described
One node;The first node is in multi-joint alliance's chain for handling the node of the business to be processed.
7. device as claimed in claim 6, which is characterized in that the contract information of the routing chain includes the routing rule of each mechanism
Then;The service request includes authority identification, service identification and sequence number;
The processing unit is specifically used for:
According to the authority identification, the routing rule of each mechanism, the routing rule of the service request institutional affiliation is determined;
According to the service identification and sequence number, the routing rule of the service request institutional affiliation is inquired, determines the industry
Corresponding alliance's chain is requested in business.
8. device as claimed in claim 6, which is characterized in that it is described routing chain contract information include each mechanism node,
The node of each alliance's chain;The service request includes authority identification;
The processing unit is specifically used for:
According to the corresponding alliance's chain of the service request, the node of each alliance's chain, determine that the service request is corresponding
The first set of the node of alliance's chain;
According to the authority identification, the node of each mechanism, the second collection of the node of the service request institutional affiliation is determined
It closes;
According to belonging to the first set and belonging to the node of the second set, first node is determined.
9. device as claimed in claim 6, which is characterized in that the Transmit-Receive Unit is specifically used for:
Send the node of contract information acquisition request to the routing chain;
Receive the contract information of the routing chain of the node feeding back of the routing chain.
10. such as the described in any item devices of claim 6 to 9, which is characterized in that the Transmit-Receive Unit is also used to:
Obtain the modification information of routing rule;
The modification information of the routing rule is sent to the node of the routing chain, so that the node of the routing chain is according to institute
The modification information for stating routing rule modifies to the contract information of the routing chain.
11. a kind of calculating equipment characterized by comprising
Memory, for storing program instruction;
Processor requires 1 to 5 according to the program execution benefit of acquisition for calling the program instruction stored in the memory
Described in any item methods.
12. a kind of computer-readable non-volatile memory medium, which is characterized in that including computer-readable instruction, work as computer
When reading and executing the computer-readable instruction, so that computer executes such as method described in any one of claim 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910184051.7A CN110011930B (en) | 2019-03-12 | 2019-03-12 | Load balancing method and device for multi-union chain in block chain |
PCT/CN2020/076490 WO2020181985A1 (en) | 2019-03-12 | 2020-02-24 | Blockchain multiple alliance chain load balancing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910184051.7A CN110011930B (en) | 2019-03-12 | 2019-03-12 | Load balancing method and device for multi-union chain in block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110011930A true CN110011930A (en) | 2019-07-12 |
CN110011930B CN110011930B (en) | 2022-06-24 |
Family
ID=67166838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910184051.7A Active CN110011930B (en) | 2019-03-12 | 2019-03-12 | Load balancing method and device for multi-union chain in block chain |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110011930B (en) |
WO (1) | WO2020181985A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262959A (en) * | 2020-01-13 | 2020-06-09 | 平安科技(深圳)有限公司 | Block link point access method, device and storage medium |
WO2021032153A1 (en) * | 2019-08-22 | 2021-02-25 | 杭州趣链科技有限公司 | Method and system for balancing cross-domain broadcast network load of blockchain, computer device, and readable storage medium |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328605B (en) * | 2020-11-26 | 2024-01-12 | 安徽继远软件有限公司 | Block chain-based power field security data management method and system |
CN112612816B (en) * | 2020-12-01 | 2023-06-30 | 网易(杭州)网络有限公司 | Service result query method, device, equipment and medium of Ethernet alliance chain |
CN113691621B (en) * | 2021-08-24 | 2023-10-13 | 上海点融信息科技有限责任公司 | Block chain data uplink method |
CN115334038B (en) * | 2022-08-20 | 2024-03-26 | 信通院(江西)科技创新研究院有限公司 | APPID application management method and system based on blockchain |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
WO2018067232A1 (en) * | 2016-10-03 | 2018-04-12 | Visa International Service Association | Network topology |
CN108323232A (en) * | 2017-05-16 | 2018-07-24 | 北京大学深圳研究生院 | The maintaining method of index and chain topological structure between a kind of multi-layer block catenary system |
CN108540536A (en) * | 2018-03-16 | 2018-09-14 | 深圳前海微众银行股份有限公司 | Network magnanimity method for processing business, equipment and storage medium based on block chain |
CN108600315A (en) * | 2018-03-22 | 2018-09-28 | 深圳市网心科技有限公司 | Block chain route processing method, device and storage medium |
CN109447643A (en) * | 2018-10-31 | 2019-03-08 | 中国银联股份有限公司 | A kind of data-sharing systems and data sharing method based on block chain |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10438209B2 (en) * | 2016-02-10 | 2019-10-08 | Bank Of America Corporation | System for secure routing of data to various networks from a process data network |
CN108696594A (en) * | 2018-05-27 | 2018-10-23 | 佛山市虚拟现实大数据产业研究院有限公司 | A kind of the big data traffic load equalization methods and device of market surpervision block chain |
CN109325366B (en) * | 2018-08-22 | 2022-08-12 | 深圳前海微众银行股份有限公司 | Service processing method and device based on alliance chain and computer readable storage medium |
CN109347955B (en) * | 2018-10-19 | 2021-03-02 | 北京奇艺世纪科技有限公司 | Block chain network system and information processing method |
-
2019
- 2019-03-12 CN CN201910184051.7A patent/CN110011930B/en active Active
-
2020
- 2020-02-24 WO PCT/CN2020/076490 patent/WO2020181985A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018067232A1 (en) * | 2016-10-03 | 2018-04-12 | Visa International Service Association | Network topology |
CN108323232A (en) * | 2017-05-16 | 2018-07-24 | 北京大学深圳研究生院 | The maintaining method of index and chain topological structure between a kind of multi-layer block catenary system |
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
CN108540536A (en) * | 2018-03-16 | 2018-09-14 | 深圳前海微众银行股份有限公司 | Network magnanimity method for processing business, equipment and storage medium based on block chain |
CN108600315A (en) * | 2018-03-22 | 2018-09-28 | 深圳市网心科技有限公司 | Block chain route processing method, device and storage medium |
CN109447643A (en) * | 2018-10-31 | 2019-03-08 | 中国银联股份有限公司 | A kind of data-sharing systems and data sharing method based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021032153A1 (en) * | 2019-08-22 | 2021-02-25 | 杭州趣链科技有限公司 | Method and system for balancing cross-domain broadcast network load of blockchain, computer device, and readable storage medium |
CN111262959A (en) * | 2020-01-13 | 2020-06-09 | 平安科技(深圳)有限公司 | Block link point access method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020181985A1 (en) | 2020-09-17 |
CN110011930B (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110011930A (en) | The load-balancing method and device of multi-joint alliance's chain in a kind of block chain | |
Sallam et al. | Shortest path and maximum flow problems under service function chaining constraints | |
CN111201754B (en) | Device for providing cryptographically protected and filtered and ordered collection of transaction data sets for links of a blockchain | |
CN109240830B (en) | Application intelligent request management based on server health and client information | |
US9185006B2 (en) | Exchange of server health and client information through headers for request management | |
CN109885410A (en) | Message method, device, computer equipment and storage medium | |
JP5514041B2 (en) | Identifier assignment method and program | |
CN105630590B (en) | A kind of business information processing method and processing device | |
CN106101232A (en) | Load-balancing method and device | |
US20120089677A1 (en) | Method and system for providing network services | |
US20200242604A1 (en) | Transaction selection device for selecting blockchain transactions | |
CN105516302B (en) | A kind of data processing method and the network equipment | |
CN107846364A (en) | A kind for the treatment of method and apparatus of message | |
CN106230992B (en) | A kind of load-balancing method and load balancing node | |
CN107402956A (en) | Data processing method, equipment and the computer-readable recording medium of big task | |
JP2016046736A (en) | Service chaining system, service chaining forwarder device, and service chaining method | |
US9407546B2 (en) | Routing a message using a routing table in a dynamic service mesh | |
US9729652B2 (en) | Dynamically affinitizing users to a version of a website | |
JP5154313B2 (en) | SIP message distribution method and SIP message distribution apparatus | |
CN106797384A (en) | Same endpoints in cluster are routed requests to different agreements | |
Feng et al. | An aggressive migration strategy for service function chaining in the core cloud | |
CN106874371A (en) | A kind of data processing method and device | |
CN105763617B (en) | A kind of load-balancing method and system | |
CN108389124A (en) | Data processing method, device, computer equipment and storage medium | |
CN108199965B (en) | Flow spec table item issuing method, network device, controller and autonomous 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 |