CN110011930B - Load balancing method and device for multi-union chain in block chain - Google Patents

Load balancing method and device for multi-union chain in block chain Download PDF

Info

Publication number
CN110011930B
CN110011930B CN201910184051.7A CN201910184051A CN110011930B CN 110011930 B CN110011930 B CN 110011930B CN 201910184051 A CN201910184051 A CN 201910184051A CN 110011930 B CN110011930 B CN 110011930B
Authority
CN
China
Prior art keywords
chain
routing
service request
nodes
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910184051.7A
Other languages
Chinese (zh)
Other versions
CN110011930A (en
Inventor
肖克
刘明臻
苏小康
张开翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910184051.7A priority Critical patent/CN110011930B/en
Publication of CN110011930A publication Critical patent/CN110011930A/en
Priority to PCT/CN2020/076490 priority patent/WO2020181985A1/en
Application granted granted Critical
Publication of CN110011930B publication Critical patent/CN110011930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a load balancing method and a device of a multi-union chain in a block chain, wherein the method comprises the steps of obtaining a service request and contract information of a routing chain, wherein the routing chain is the block chain consisting of nodes of organizations in the multi-union chain, the service request comprises a service to be processed, determining the union chain corresponding to the service request according to the service request and the contract information of the routing chain, determining a first node according to the union chain corresponding to the service request, sending the service to be processed to the first node, and commonly maintaining the contract information of one routing chain through multiple organizations, so that the phenomenon that the load balancing of the multi-union chain cannot be realized due to the inconsistent routing rules of all the organizations is avoided.

Description

Load balancing method and device for multi-union chain in block chain
Technical Field
The embodiment of the invention belongs to the field of financial technology (Fintech), and particularly relates to a load balancing method and device for a multi-union chain in a block chain (Blockchain).
Background
The block chain is a distributed shared account book database, the alliance chain is a block chain system which is composed of mutually trusted organization nodes, connection is established among the nodes, data transmission is carried out in a safe and reliable mode, for example, authentication, an IP (Internet Protocol, Protocol for interconnection among networks) white list and the like, and external nodes cannot be added. The existing service request volume is large, and the performance and storage of a single chain cannot meet the service requirements, so a multi-chain technology needs to be introduced, and the load balancing of the multi-alliance chain in the existing block chain mainly determines which alliance chain the uplink request is sent to through the routing configuration file of each access mechanism, so as to realize the load balancing of the multi-alliance chain.
However, in the prior art, each mechanism needs to maintain its own routing configuration file, and once the routing configuration file needs to be modified, the mechanisms need to be modified synchronously, which may cause inconsistency of routing rules, and thus load balancing among multiple alliance chains cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a load balancing method and device for multi-union chains in a block chain, which are used for jointly maintaining contract information of one routing chain through multiple mechanisms and avoiding the phenomenon that the load balancing of the multiple union chains cannot be realized due to the fact that routing rules of all the mechanisms are inconsistent.
The embodiment of the invention provides a load balancing method of a multi-union chain in a block chain, which comprises the following steps:
acquiring a service request and contract information of a routing chain; the routing chain is a blockchain consisting of nodes of enterprises in the multi-federation chain; the service request comprises a service to be processed;
determining a alliance chain corresponding to the service request according to the service request and contract information of the routing chain;
determining a first node according to the alliance chain corresponding to the service request, and sending the service to be processed to the first node; the first node is a node in the multi-federation chain for processing the service to be processed.
In the technical scheme, the service request and the contract information of the routing chain are obtained, wherein the routing chain is a block chain consisting of nodes of the enterprises in the multi-alliance chain, the contract information of the routing chain is commonly maintained by the enterprises, so that the problem that routing configuration files of the enterprises are inconsistent is avoided.
Optionally, the contract information of the routing chain includes routing rules of each mechanism; the service request comprises an organization identifier, a service identifier and a serial number;
the determining a federation chain corresponding to the service request according to the service request and contract information of the routing chain includes:
determining the routing rule of the mechanism to which the service request belongs according to the mechanism identification and the routing rule of each mechanism;
and inquiring the routing rule of the mechanism to which the service request belongs according to the service identifier and the sequence number, and determining the alliance chain corresponding to the service request.
In the above technical solution, the contract information of the routing chain includes the routing rule of each organization, the service request includes an organization identifier, a service identifier and a serial number, and the federation chain corresponding to the service request can be determined according to the routing rule of each organization, the organization identifier, the service identifier and the serial number of the service request. The contract information of the routing chain comprises the routing rules of all mechanisms, namely all the mechanisms maintain a routing configuration file together, and the routing configuration file comprises the routing rules of all the mechanisms, so that the problem that the routing configuration files of all the mechanisms are inconsistent and the load balance among the multiple chains is influenced because all the mechanisms maintain the respective routing configuration files is solved.
Optionally, the contract information of the routing chain includes nodes of each organization and nodes of each federation chain; the service request comprises an organization identification;
the determining the first node according to the federation chain corresponding to the service request includes:
determining a first set of nodes of the alliance chain corresponding to the service request according to the alliance chain corresponding to the service request and the nodes of each alliance chain;
determining a second set of nodes of the organization to which the service request belongs according to the organization identification and the nodes of each organization;
determining a first node according to nodes belonging to the first set and to the second set.
In the above technical solution, the contract information of the routing chain includes nodes of each enterprise and nodes of each alliance chain, the service request includes an enterprise identifier, and a set, that is, a first set, of all nodes of the alliance chain corresponding to the service request can be determined according to the alliance chain corresponding to the service request and the nodes of each alliance chain, and further a node, that is, a second set, of the enterprise to which the service request belongs is determined according to the enterprise identifier and the nodes of each enterprise, and the first node, that is, a node for processing the service to be processed is determined according to the nodes belonging to the first set and the second set.
Optionally, the obtaining contract information of the routing chain includes:
sending a contract information acquisition request to the node of the routing chain;
and receiving contract information of the routing chain fed back by the nodes of the routing chain.
In the above technical solution, a plurality of enterprises commonly maintain contract information of a routing chain, the contract information of the routing chain is contract information of a blockchain formed by nodes of the enterprises in the multi-alliance chain, and when the contract information of the routing chain needs to be acquired, a contract information acquisition request may be sent to the node of the routing chain, and a feedback of the routing chain is received, so as to acquire the contract information of the routing chain.
Optionally, the method further includes:
acquiring modification information of a routing rule;
and sending the modification information of the routing rule to the nodes of the routing chain so that the nodes of the routing chain modify the contract information of the routing chain according to the modification information of the routing rule.
In the above technical solution, when the routing rule of the mechanism needs to be modified, the modification information of the routing rule may be obtained, and the modification information of the routing rule is sent to the node of the routing chain, so as to modify the contract information of the routing chain. After the modification takes effect, each mechanism can directly acquire the contract information of the routing chain from the routing chain, that is, the routing rule of the mechanism after the modification takes effect can be acquired, and the problem that the load balance of multiple alliance chains cannot be realized due to the fact that the routing rule of each mechanism is not modified synchronously is avoided.
Correspondingly, an embodiment of the present invention further provides a load balancing apparatus for a multi-union chain in a block chain, including:
a receiving and sending unit, configured to obtain a service request and contract information of a routing chain; the routing chain is a blockchain consisting of nodes of enterprises in the multi-federation chain; the service request comprises a service to be processed;
the processing unit is used for determining a alliance chain corresponding to the service request according to the service request and the contract information of the routing chain; determining a first node according to the alliance chain corresponding to the service request, and sending the service to be processed to the first node; the first node is a node in the multi-federation chain for processing the service to be processed.
Optionally, the contract information of the routing chain includes routing rules of each mechanism; the service request comprises an organization identifier, a service identifier and a serial number;
the processing unit is specifically configured to:
determining the routing rule of the mechanism to which the service request belongs according to the mechanism identification and the routing rule of each mechanism;
and inquiring the routing rule of the mechanism to which the service request belongs according to the service identifier and the sequence number, and determining the alliance chain corresponding to the service request.
Optionally, the contract information of the routing chain includes nodes of each organization and nodes of each federation chain; the service request comprises an organization identification;
the processing unit is specifically configured to:
determining a first set of nodes of the alliance chain corresponding to the service request according to the alliance chain corresponding to the service request and the nodes of each alliance chain;
determining a second set of nodes of the organization to which the service request belongs according to the organization identification and the nodes of each organization;
determining a first node according to nodes belonging to the first set and to the second set.
Optionally, the transceiver unit is specifically configured to:
sending a contract information acquisition request to the nodes of the routing chain;
and receiving contract information of the routing chain fed back by the nodes of the routing chain.
Optionally, the transceiver unit is further configured to:
acquiring modification information of a routing rule;
and sending the modification information of the routing rule to the nodes of the routing chain so that the nodes of the routing chain modify the contract information of the routing chain according to the modification information of the routing rule.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the load balancing method of the multi-union chain in the block chain according to the obtained program.
Accordingly, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the method for load balancing of multiple alliance chains in the block chain.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic flow diagram of a load balancing method for a multi-connected alliance chain according to an embodiment of the present invention;
fig. 3 is a schematic flow diagram of a load balancing method for a multi-connected alliance chain according to an embodiment of the present invention;
fig. 4 is a schematic flow diagram of a load balancing method for a multi-connected alliance chain according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a load balancing apparatus of a multi-connected alliance chain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a system architecture to which a method for balancing load of a multi-union chain in a blockchain is applied, where the system architecture may include a plurality of organizations, nodes of each of the plurality of organizations form a union chain and a routing chain, and for example, as shown in fig. 1, the system includes an organization a, an organization B, and an organization C, where the organization a includes a node a1, a node a2, a node A3, and a node a4, the organization B includes a node B1, a node B2, a node B3, and a node B4, and the organization C includes a node C1, a node C2, and a node C3. Node A1, node A4, node B1 and node C1 form a federation chain1, node A2, node B2, node B4 and node C2 form a federation chain2, and node A3, node B3 and node C3 form a routing chain.
In this embodiment of the present invention, the routing chain is a blockchain formed by nodes of enterprises in a multi-federation chain, and the contract information of the routing chain includes a routing configuration file, that is, each enterprise maintains a routing configuration file together, where the routing configuration file includes routing rules of each enterprise, for example, as shown in fig. 1, enterprise a, enterprise B, and enterprise C determine the contract information of the routing chain, and maintain a routing configuration file together, and the routing configuration file includes routing rules of enterprise a, routing rules of enterprise B, and routing rules of enterprise C. After receiving the service request, a certain organization determines which alliance chain the service request should be sent to according to contract information of the routing chain, so as to realize load balancing of multiple alliance chains.
Based on the above description, fig. 2 exemplarily shows a flow of a load balancing method for multiple alliance chains in a blockchain according to an embodiment of the present invention, where the flow may be performed by a load balancing apparatus for multiple alliance chains in a blockchain. As shown in fig. 2, the process specifically includes:
step 201, acquiring the contract information of the service request and the routing chain.
In this embodiment of the present invention, the service request may include any one or a combination of the following parameters: the system comprises the service to be processed, an organization identifier, a service identifier and a sequence number. The mechanism identifier is an identifier of a mechanism corresponding to the service to be processed in the service request, the service identifier is a service identifier of the service to be processed in the service request, and the sequence number is a sequence number of the service to be processed. With reference to fig. 1, if an organization a acquires a service request, and an organization corresponding to a service to be processed in the service request is the organization a, the organization is identified as "Org a", and a service identification of the service to be processed in the service request is "APPID a 1" and a serial number is "SeqNo 50", it can be understood that the service request includes "Org a, APPID a1, and SeqNo 50".
In this embodiment of the present invention, the contract information of the routing chain may include any one or a combination of the following parameters: routing rules of each enterprise, nodes of each enterprise, and nodes of each federation chain. The routing rule of each enterprise includes the service identifier, the sequence number range and the federation chain identifier of each enterprise, the node of each enterprise is the node included in each enterprise, and the node of each federation chain is the node included in each federation chain. For example, in the architecture shown in fig. 1, the routing rule of each enterprise may be as shown in table 1, the node of each enterprise may be as shown in table 2, and the node of each federation chain may be as shown in table 3.
TABLE 1
Figure BDA0001992249220000071
TABLE 2
Mechanism Mechanism identification 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
Federation chain Federation chain identification Node of alliance chain
Federation chain1 Chain1 Node A1, node A4, node B1, node C1
Federation chain2 Chain2 Node A2, node B2, node B4, node C2
In the embodiment of the invention, the mechanism can acquire contract information of the routing chain from the routing chain, the mechanism sends a contract information acquisition request to a node of the routing chain, the node of the routing chain feeds back the contract information of the routing chain to the mechanism after receiving the contract information acquisition request, and the mechanism receives the contract information of the routing chain fed back by the node of the routing chain.
Step 202, determining a federation chain corresponding to the service request according to the service request and contract information of the routing chain.
In this embodiment of the present invention, the contract information of the routing chain may include routing rules of each organization, and the service request includes an organization identifier, a service identifier, and a serial number, and specifically, the routing rule of the organization to which the service request belongs is determined according to the organization identifier and the routing rules of each organization, and then the routing rule of the organization to which the service request belongs is queried according to the service identifier and the serial number, so as to determine the federation chain corresponding to the service request.
In the embodiment of the present invention, the mechanism may obtain that the service to be processed is a service request of the mechanism, or may obtain that the service to be processed is not a service request of the mechanism, that is, the mechanism a may obtain a service request whose mechanism identifier is "Org a", or may obtain a service request whose mechanism identifier is "Org B".
For example, if the service request acquired by the organization a includes "Org a, APPID a1, and SeqNo 50", it may be determined that the federation Chain identifier is Chain1 according to "Org a, APPID a1, and SeqNo 50" and table 1, that is, the service request corresponds to federation Chain 1. Or, if the service request acquired by the organization a includes "Org B, APPID B1, and SeqNo 50", it may be determined that the federation Chain identifier is Chain2 according to "Org B, APPID B1, and SeqNo 50" and table 1, that is, the service request corresponds to federation Chain 2.
Step 203, determining a first node according to the federation chain corresponding to the service request, and sending the service to be processed to the first node.
In the embodiment of the invention, the first node is a node used for processing the service to be processed in the multi-union chain. That is to say, after the federation chain corresponding to the service request is determined in step 202, a node for processing the service to be processed needs to be determined from the federation chain corresponding to the service request, where the node is the first node.
Optionally, the contract information of the routing chain includes nodes of each enterprise and nodes of each alliance chain, the service request includes an enterprise identifier, and a first set of nodes of the alliance chain corresponding to the service request is determined according to the alliance chain corresponding to the service request and the nodes of each alliance chain; determining a second set of the nodes of the mechanism to which the service request belongs according to the mechanism identification and the nodes of each mechanism; and finally, determining the first node according to the nodes belonging to the first set and the second set.
The interpretation is that after determining the alliance chain corresponding to the service request, the node of the alliance chain corresponding to the service request can be determined according to table 3, and the node of the enterprise corresponding to the service request can be determined according to table 2. For example, after determining that the service request corresponds to federation chain1 according to "Org a, APPID a1, SeqNo 50" and table 1, determining that the first set of nodes of federation chain1 is "node a1, node a4, node B1, node C1", determining that the second set of nodes of federation chain1 is "node a1, node a2, node A3, node a 4", the nodes belonging to the first set and the second set are "node a1, node a 4", determining the first node according to "node a1 and node a 4", where it is known that the node belonging to the first set and the node belonging to the second set may be one or more than one, determining that the only one node is the first node when the node belonging to the first set and the node belonging to the second set is more than one, randomly determining that the first node is from the more than one nodes, the determination may be made according to a preset rule, and is not limited herein.
In addition, the node may include an IP address and a monitoring port corresponding to the node, and after the first node is determined, the to-be-processed service may be sent to the first node according to the IP address and the monitoring port of the first node, so that the first node processes the to-be-processed service.
In the embodiment of the present invention, the contract information of the routing chain may also be modified, and further, the routing rules of each mechanism may be modified, specifically, the modification information of the routing rule is obtained, and the modification information of the routing rule is sent to the node of the routing chain, so that the node of the routing chain modifies the contract information of the routing chain according to the modification information of the routing rule. For example, the routing rule of the mechanism B needs to be modified, and the federation chain corresponding to the sequence number range of "100 to 200" of the APPID B1 is modified into the federation chain1, the federation chain can be directly modified in the mechanism B, and the modification information is sent to the node of the routing chain, as shown in fig. 1, the node B3 can be sent, and the node B3 modifies the contract information of the routing chain according to the modification information.
In order to better explain the embodiment of the present invention, the following describes the load balancing process of the multi-union chain in a specific implementation scenario, as shown in fig. 3, specifically as follows:
step 301, an organization acquires a service request;
step 302, the mechanism sends a contract information acquisition request to a routing link node;
step 303, sending contract information of the routing chain to the mechanism by the routing chain node;
step 304, the mechanism determines a alliance chain corresponding to the service request according to the service request and contract information of the routing chain;
305, determining a first node by the enterprise according to the alliance chain corresponding to the service request;
step 306, the mechanism sends the service to be processed to the first node;
step 307, the first node processes the pending traffic.
Since the specific implementation of this embodiment has been described in other embodiments, it is not described herein.
Another embodiment provided by the present invention may be as shown in fig. 4, where the system may further include a proxy (proxy server), where the proxy may be located in the enterprise or may be independent of the enterprise, and the proxy is configured to use the proxy to complete a load balancing method for a multi-alliance chain in the block chain, specifically, after acquiring a service request, the enterprise sends the service request to the proxy, reads contract information in the routing chain, determines an alliance chain corresponding to the service request from the multi-alliance chain according to the contract information, processes a service to be processed in the service request by the alliance chain corresponding to the service request, and feeds back a result of success of the service to the proxy, and the proxy responds to the execution result to the enterprise.
In the technical scheme, the service request and the contract information of the routing chain are obtained, wherein the routing chain is a block chain consisting of nodes of the enterprises in the multi-alliance chain, the contract information of the routing chain is commonly maintained by the enterprises, so that the problem that routing configuration files of the enterprises are inconsistent is avoided.
Based on the same inventive concept, fig. 5 exemplarily shows a structure of a load balancing apparatus for multiple alliance chains in a block chain according to an embodiment of the present invention, and the apparatus may perform a process of a load balancing method for multiple alliance chains in the block chain.
The device, comprising:
a transceiving unit 501, configured to obtain a service request and contract information of a routing chain; the routing chain is a block chain consisting of nodes of enterprises in the multi-federation chain; the service request comprises a service to be processed;
a processing unit 502, configured to determine, according to the service request and contract information of the routing chain, a federation chain corresponding to the service request; determining a first node according to the alliance chain corresponding to the service request, and sending the service to be processed to the first node; the first node is a node in the multi-federation chain for processing the service to be processed.
Optionally, the contract information of the routing chain includes routing rules of each mechanism; the service request comprises an organization identifier, a service identifier and a serial number;
the processing unit 502 is specifically configured to:
determining the routing rule of the mechanism to which the service request belongs according to the mechanism identification and the routing rule of each mechanism;
and inquiring the routing rule of the mechanism to which the service request belongs according to the service identifier and the sequence number, and determining the alliance chain corresponding to the service request.
Optionally, the contract information of the routing chain includes nodes of each organization and nodes of each federation chain; the service request comprises an organization identification;
the processing unit 502 is specifically configured to:
determining a first set of nodes of the alliance chain corresponding to the service request according to the alliance chain corresponding to the service request and the nodes of each alliance chain;
determining a second set of nodes of the organization to which the service request belongs according to the organization identification and the nodes of each organization;
determining a first node according to nodes belonging to the first set and to the second set.
Optionally, the transceiver unit 501 is specifically configured to:
sending a contract information acquisition request to the node of the routing chain;
and receiving contract information of the routing chain fed back by the nodes of the routing chain.
Optionally, the transceiver 501 is further configured to:
acquiring the modification information of the routing rule;
and sending the modification information of the routing rule to the nodes of the routing chain so that the nodes of the routing chain modify the contract information of the routing chain according to the modification information of the routing rule.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the load balancing method of the multi-union chain in the block chain according to the obtained program.
Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the method for load balancing of multiple alliance chains in the block chain.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A load balancing method of a multi-union chain in a block chain is characterized by comprising the following steps:
acquiring a service request and contract information of a routing chain; the routing chain is a blockchain consisting of nodes of enterprises in the multi-federation chain; the service request comprises a service to be processed;
determining a alliance chain corresponding to the service request according to the service request and contract information of the routing chain;
determining a first node according to the alliance chain corresponding to the service request, and sending the service to be processed to the first node; the first node is a node used for processing the service to be processed in the multi-alliance chain;
the contract information of the routing chain comprises nodes of all organizations and nodes of all alliance chains; the service request comprises an organization identification; the determining the first node according to the federation chain corresponding to the service request includes:
determining a first set of nodes of the alliance chain corresponding to the service request according to the alliance chain corresponding to the service request and the nodes of each alliance chain;
determining a second set of nodes of the organization to which the service request belongs according to the organization identification and the nodes of each organization;
determining a first node according to nodes belonging to the first set and to the second set.
2. The method of claim 1, wherein the contract information for the routing chain includes routing rules for each organization; the service request comprises an organization identifier, a service identifier and a serial number;
the determining a federation chain corresponding to the service request according to the service request and contract information of the routing chain includes:
determining the routing rule of the mechanism to which the service request belongs according to the mechanism identification and the routing rule of each mechanism;
and inquiring the routing rule of the mechanism to which the service request belongs according to the service identifier and the serial number, and determining a alliance chain corresponding to the service request.
3. The method of claim 1, wherein obtaining contract information for a routing chain comprises:
sending a contract information acquisition request to the node of the routing chain;
and receiving contract information of the routing chain fed back by the nodes of the routing chain.
4. The method of any of claims 1 to 3, further comprising:
acquiring modification information of a routing rule;
and sending the modification information of the routing rule to the nodes of the routing chain so that the nodes of the routing chain modify the contract information of the routing chain according to the modification information of the routing rule.
5. A load balancing device of a multi-union chain in a block chain is characterized by comprising:
a receiving and sending unit, configured to obtain a service request and contract information of a routing chain; the routing chain is a block chain consisting of nodes of enterprises in the multi-federation chain; the service request comprises a service to be processed;
the processing unit is used for determining a alliance chain corresponding to the service request according to the service request and the contract information of the routing chain; determining a first node according to the alliance chain corresponding to the service request, and sending the service to be processed to the first node; the first node is a node used for processing the service to be processed in the multi-alliance chain;
the contract information of the routing chain comprises nodes of all organizations and nodes of all alliance chains; the service request comprises an organization identification; the processing unit is specifically configured to:
determining a first set of nodes of the alliance chain corresponding to the service request according to the alliance chain corresponding to the service request and the nodes of each alliance chain;
determining a second set of nodes of the organization to which the service request belongs according to the organization identification and the nodes of each organization;
and determining a first node according to the nodes belonging to the first set and the second set.
6. The apparatus of claim 5, wherein the contract information for the routing chain includes routing rules for each organization; the service request comprises an organization identifier, a service identifier and a serial number;
the processing unit is specifically configured to:
determining the routing rule of the mechanism to which the service request belongs according to the mechanism identification and the routing rule of each mechanism;
and inquiring the routing rule of the mechanism to which the service request belongs according to the service identifier and the serial number, and determining a alliance chain corresponding to the service request.
7. The apparatus as claimed in claim 5, wherein said transceiver unit is specifically configured to:
sending a contract information acquisition request to the node of the routing chain;
and receiving contract information of the routing chain fed back by the nodes of the routing chain.
8. The apparatus of any of claims 5 to 7, wherein the transceiver unit is further configured to:
acquiring the modification information of the routing rule;
and sending the modification information of the routing rule to the nodes of the routing chain so that the nodes of the routing chain modify the contract information of the routing chain according to the modification information of the routing rule.
9. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 4 in accordance with the obtained program.
10. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 4.
CN201910184051.7A 2019-03-12 2019-03-12 Load balancing method and device for multi-union chain in block chain Active CN110011930B (en)

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 CN110011930A (en) 2019-07-12
CN110011930B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535697B (en) * 2019-08-22 2021-05-11 杭州趣链科技有限公司 Method for balancing block chain cross-domain broadcast network load
CN111262959B (en) * 2020-01-13 2021-05-25 平安科技(深圳)有限公司 Block link point access method, device and storage medium
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

Family Cites Families (10)

* Cited by examiner, † Cited by third party
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
AU2017340233B2 (en) * 2016-10-03 2022-04-07 Visa International Service Association Network topology
WO2018209543A1 (en) * 2017-05-16 2018-11-22 北京大学深圳研究生院 Method for maintaining indexes and chain topology between multi-level blockchain systems
CN107231299A (en) * 2017-06-07 2017-10-03 众安信息技术服务有限公司 A kind of chain route and realized the system that block chain communicates across chain
CN108540536B (en) * 2018-03-16 2021-07-23 深圳前海微众银行股份有限公司 Block chain-based network mass service processing method, equipment and storage medium
CN108600315B (en) * 2018-03-22 2021-04-06 深圳市网心科技有限公司 Block link route processing method, device and storage medium
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
CN109447643B (en) * 2018-10-31 2022-12-20 中国银联股份有限公司 Data sharing system and data sharing method based on block chain

Also Published As

Publication number Publication date
WO2020181985A1 (en) 2020-09-17
CN110011930A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110011930B (en) Load balancing method and device for multi-union chain in block chain
US11336451B2 (en) Cross-blockchain resource transmission
WO2020258846A1 (en) Method and apparatus for sending certifiable messages across chains
CN110070445B (en) Transaction processing method and device based on blockchain system
WO2020258847A1 (en) Method and apparatus for cross-chain transmission of authenticable message based on processing module
WO2020173287A1 (en) Systems and methods for determining network shards in blockchain network
CN103384237A (en) Method for sharing IaaS cloud account, shared platform and network device
CN112866421B (en) Intelligent contract operation method and device based on distributed cache and NSQ
CN114189525B (en) Service request method and device and electronic equipment
CN105447110A (en) Method for rapidly loading data in batches of database cluster and loading system
CN111401904B (en) Consensus method and system in alliance chain
CN110557416A (en) multi-node collaborative blocking method and system
CN109728992A (en) Method, apparatus, storage medium and the electronic device in distribution forwarding domain
CN110071968B (en) Block chain based message storage method and device
CN110933022A (en) Block processing method and device, computer equipment and storage medium
WO2022141024A1 (en) Blockchain technology-based business transaction method and system, and storage medium
CN112187797B (en) Cloud data transmission method and system
CN112751724B (en) Method and device for detecting link state
CN112615868B (en) Method and device for transmitting authenticatable message across chains
CN112001800B (en) Method and device for processing business in block chain system
EP3972199A1 (en) Open interface management method, electronic device, and storage medium
CN113919511A (en) Federal learning method and device
CN109257227B (en) Coupling management method, device and system in data transmission
CN108882268B (en) Method and device for updating device configuration
CN113760519A (en) Distributed transaction processing method, device and system and electronic equipment

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