# US 2021/0240673 A1 · Load balancing based blockchain transaction submission

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0240673 A1
- Document ID: US20210240673A1
- Status: Published application
- Kind: A1
- Application number: 16/783,155
- Filed: 2020-02-05
- Published: 2021-08-05
- Earliest claimed: 2020-02-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Petr Novotny; Qi Zhang
- Web page: https://patentgrep.com/patent/US20210240673A1

## CPC

- H04L 67/104: Peer-to-peer [P2P] networks
- G06F 16/1837: {Management specially adapted to peer-to-peer storage networks (topology management mechanisms of peer-to-peer networks H04L67/1042)}
- G06F 16/9035: Filtering based on additional data, e.g. user or group profiles
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 63/126: {the source of the received data}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An example operation may include one or more of transmitting an inquiry to a blockchain peer, where the inquiry comprises a trigger to invoke a chaincode installed on the blockchain peer, receiving a response from the blockchain peer based on a chaincode execution of the blockchain peer, determining a latency value of the blockchain peer based on the response, and storing an identifier of the blockchain peer among identifiers of a group of blockchain peers, where an order of the identifiers of the group of blockchain peers are arranged based on respective latency values.

## Claims

### Claim 1

An apparatus comprising:
a network interface configured to transmit an inquiry to a blockchain peer, where the inquiry comprises a trigger to invoke a chaincode installed on the blockchain peer, and receive a response from the blockchain peer based on a chaincode execution of the blockchain peer; and
a processor configured to determine a latency value of the blockchain peer based on the response, and store an identifier of the blockchain peer among identifiers of a group of blockchain peers, where an order of the identifiers of the group of blockchain peers are arranged based on respective latency values.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processor is configured to determine a chaincode simulation latency value and a round trip latency value of the blockchain peer, and combine the chaincode simulation latency value and the round trip latency value to generate the latency value.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the processor is configured to determine a chaincode simulation latency value based on timestamps added to the response by the blockchain peer based on the chaincode execution performed by the blockchain peer.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the processor is configured to determine a round trip latency value of the blockchain peer based on when the inquiry is transmitted and when the response is received.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to detect that the latency value of the blockchain peer is unstable based on a previous latency value of the blockchain peer, and in response, control the network interface to transmit a second inquiry to the blockchain peer to invoke the chaincode again.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the network interface is configured to transmit the inquiry to each blockchain peer in the group of blockchain peers, and the processor is configured to determine latency values for each blockchain peer in the group of blockchain peers based on respective responses.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to determine that a predetermined period of time has elapsed since the latency value of the blockchain peer has been determined, and control the network interface to transmit a second inquiry to the blockchain peer to invoke the chaincode again.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to display a list of latency values of the group of blockchain peers via a user interface, where the list is ordered from a blockchain peer that has a smallest latency value to a blockchain peer that has a greatest latency value.

### Claim 9

A method comprising:
transmitting an inquiry to a blockchain peer, where the inquiry comprises a trigger to invoke a chaincode installed on the blockchain peer;
receiving a response from the blockchain peer based on a chaincode execution of the blockchain peer;
determining a latency value of the blockchain peer based on the response; and
storing an identifier of the blockchain peer among identifiers of a group of blockchain peers, where an order of the identifiers of the group of blockchain peers are arranged based on respective latency values.

### Claim 10 (depends on 9)

The method of claim 9, wherein the determining comprises determining a chaincode simulation latency value and a round trip latency value of the blockchain peer, and combining the chaincode simulation latency value and the round trip latency value to generate the latency value.

### Claim 11 (depends on 9)

The method of claim 9, wherein the determining the latency value comprises determining a chaincode simulation latency value based on timestamps added to the response by the blockchain peer based on the chaincode execution performed by the blockchain peer.

### Claim 12 (depends on 9)

The method of claim 9, wherein the determining the latency value comprises determining a round trip latency value of the blockchain peer based on when the inquiry is transmitted and when the response is received.

### Claim 13 (depends on 9)

The method of claim 9, further comprising detecting that the latency value of the blockchain peer is unstable based on a previous latency value of the blockchain peer, and in response, transmitting a second inquiry to the blockchain peer to invoke the chaincode again.

### Claim 14 (depends on 9)

The method of claim 9, wherein the transmitting comprises transmitting the inquiry to each blockchain peer in the group of blockchain peers, and determining latency values for each blockchain peer in the group of blockchain peers based on respective responses.

### Claim 15 (depends on 9)

The method of claim 9, further comprising determining that a predetermined period of time has elapsed since the latency value of the blockchain peer has been determined, and transmitting a second inquiry to the blockchain peer to invoke the chaincode again.

### Claim 16 (depends on 9)

The method of claim 9, further comprising displaying a list of latency values of the group of blockchain peers via a user interface, where the list is ordered from a blockchain peer that has a smallest latency value to a blockchain peer that has a greatest latency value.

### Claim 17

A non-transitory computer readable medium comprising instructions, that when read by a processor, cause the processor to perform a method comprising:
transmitting an inquiry to a blockchain peer, where the inquiry comprises a trigger to invoke a chaincode installed on the blockchain peer;
receiving a response from the blockchain peer based on a chaincode execution of the blockchain peer;
determining a latency value of the blockchain peer based on the response; and
storing an identifier of the blockchain peer among identifiers of a group of blockchain peers, where an order of the identifiers of the group of blockchain peers are arranged based on respective latency values.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the determining comprises determining a chaincode simulation latency value and a round trip latency value of the blockchain peer, and combining the chaincode simulation latency value and the round trip latency value to generate the latency value.

### Claim 19 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the determining the latency value comprises determining a chaincode simulation latency value based on timestamps added to the response by the blockchain peer based on the chaincode execution performed by the blockchain peer.

### Claim 20 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the determining the latency value comprises determining a round trip latency value of the blockchain peer based on when the inquiry is transmitted and when the response is received.
