# US 2022/0286500 A1 · Methods and apparatuses for transmitting messages

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

- Number: US 2022/0286500 A1
- Document ID: US20220286500A1
- Status: Published application
- Kind: A1
- Application number: 17/750,671
- Filed: 2022-05-23
- Published: 2022-09-08
- Earliest claimed: 2020-09-25
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Jiang Wang; Chao Zeng; He Sun
- Web page: https://patentgrep.com/patent/US20220286500A1

## CPC

- H04L 67/108: {characterised by resources being split in blocks or fragments}
- H04L 67/1053: {with pre-configuration of logical or physical connections with a determined number of other peers}
- H04L 67/1076: {Resource dissemination mechanisms or network resource keeping policies for optimal resource availability in the overlay network}
- G06Q 20/065: {using e-cash}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 63/0884: {by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

One or more embodiments of this specification provide methods and apparatuses for transmitting messages. A method includes: determining a blockchain message from two or more message queues stored in a relay node in a blockchain relay communication network based on a message transmission policy, the message transmission policy being configured to transmit blockchain messages in the blockchain relay communication network based upon a priority identifier representing a priority of a blockchain message to be transmitted in the blockchain relay communication network; obtaining identifier from the blockchain message, and determining one or more target blockchain nodes in the blockchain relay communication network corresponding to the identifier; determining a target relay node connected to the one or more target blockchain nodes in the blockchain relay communication network; and transmitting the blockchain message to the one or more target blockchain nodes through the target relay node.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A computer-implemented method, comprising:
determining, in response to receiving a blockchain message, a priority identifier of the blockchain message, wherein the priority identifier is configured based on a user configuration instruction and identifies a priority of transmitting the blockchain message;
adding the blockchain message to two or more message queues stored in a relay node in a blockchain relay communication network, wherein each of the two or more message queues comprises one or more blockchain messages, and wherein the one or more blockchain messages comprised in each of the two or more message queues correspond to a same priority identifier;
determining a to-be-transmitted blockchain message from the two or more message queues based on a message transmission policy, wherein the message transmission policy is configured to transmit blockchain messages from relay nodes in the blockchain relay communication network based on priority identifiers corresponding to the two or more message queues;
determining one or more target blockchain nodes based on one or more identifiers comprised in the to-be-transmitted blockchain message that correspond to the one or more target blockchain nodes;
determining, based on a routing table that comprises a connection relationship between each of the one or more target blockchain nodes and the relay nodes in the blockchain relay communication network, a target relay node in the blockchain relay communication network connected to the one or more target blockchain nodes; and
transmitting the to-be-transmitted blockchain message to the one or more target blockchain nodes through the target relay node.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, wherein determining the to-be-transmitted blockchain message from the two or more message queues comprises:
determining the to-be-transmitted blockchain message from one of the two or more message queues based on message transmission frequencies predetermined for the two or more message queues.

### Claim 23 (depends on 22)

The computer-implemented method of claim 22, wherein the message transmission frequencies are positively correlated to priorities identified by the priority identifiers corresponding to the two or more message queues.

### Claim 24 (depends on 21)

The computer-implemented method of claim 21, wherein determining the to-be-transmitted blockchain message from the two or more message queues comprises:
determining the to-be-transmitted blockchain message from one of the two or more message queues having a highest priority among the two or more message queues identified by the priority identifiers.

### Claim 25 (depends on 24)

The computer-implemented method of claim 24, wherein the blockchain message is a consensus message, a transaction message, or a synchronization message, and wherein the priority identifier is configured to indicate a higher priority of transmitting the consensus message compared to the transaction message or the synchronization message.

### Claim 26 (depends on 21)

The computer-implemented method of claim 21, wherein the one or more identifiers is a set identifier; and
wherein determining the one or more target blockchain nodes comprises:
determining a blockchain node set corresponding to the set identifier; and
determining one or more target blockchain nodes pre-registered to the blockchain node set as the one or more target blockchain nodes.

### Claim 27 (depends on 21)

The computer-implemented method of claim 21, wherein the relay node is determined as the target relay node, and wherein transmitting the to-be-transmitted blockchain message to the target blockchain nodes through the target relay node comprises:
transmitting the to-be-transmitted blockchain message directly to the one or more target blockchain nodes.

### Claim 28

A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
determining, in response to receiving a blockchain message, a priority identifier of the blockchain message, wherein the priority identifier is configured based on a user configuration instruction and identifies a priority of transmitting the blockchain message;
adding the blockchain message to two or more message queues stored in a relay node in a blockchain relay communication network, wherein each of the two or more message queues comprises one or more blockchain messages, and wherein the one or more blockchain messages comprised in each of the two or more message queues correspond to a same priority identifier;
determining a to-be-transmitted blockchain message from the two or more message queues based on a message transmission policy, wherein the message transmission policy is configured to transmit blockchain messages from relay nodes in the blockchain relay communication network based on priority identifiers corresponding to the two or more message queues;
determining one or more target blockchain nodes based on one or more identifiers comprised in the to-be-transmitted blockchain message that correspond to the one or more target blockchain nodes;
determining, based on a routing table that comprises a connection relationship between each of the one or more target blockchain nodes and the relay nodes in the blockchain relay communication network, a target relay node in the blockchain relay communication network connected to the one or more target blockchain nodes; and
transmitting the to-be-transmitted blockchain message to the one or more target blockchain nodes through the target relay node.

### Claim 29 (depends on 28)

The non-transitory, computer-readable medium according to claim 28, wherein determining the to-be-transmitted blockchain message from the two or more message queues comprises:
determining the to-be-transmitted blockchain message from one of the two or more message queues based on message transmission frequencies predetermined for the two or more message queues.

### Claim 30 (depends on 29)

The non-transitory, computer-readable medium according to claim 29, wherein the message transmission frequencies are positively correlated to priorities identified by the priority identifiers corresponding to the two or more message queues.

### Claim 31 (depends on 28)

The non-transitory, computer-readable medium according to claim 28, wherein determining the to-be-transmitted blockchain message from the two or more message queues comprises:
determining the to-be-transmitted blockchain message from one of the two or more message queues having a highest priority among the two or more message queues identified by the priority identifiers.

### Claim 32 (depends on 31)

The non-transitory, computer-readable medium according to claim 31, wherein the relay node is determined as the target relay node, and wherein transmitting the to-be-transmitted blockchain message to the target blockchain nodes through the target relay node comprises:
transmitting the to-be-transmitted blockchain message directly to the one or more target blockchain nodes.

### Claim 33 (depends on 28)

The non-transitory, computer-readable medium according to claim 28, wherein the one or more identifiers is a set identifier; and
wherein determining the one or more target blockchain nodes comprises:
determining a blockchain node set corresponding to the set identifier; and
determining one or more target blockchain nodes pre-registered to the blockchain node set as the one or more target blockchain nodes.

### Claim 34 (depends on 28)

The non-transitory, computer-readable medium according to claim 28, wherein the relay node is determined as the target relay node, and wherein transmitting the to-be-transmitted blockchain message to the target blockchain nodes through the target relay node comprises:
transmitting the to-be-transmitted blockchain message directly to the one or more target blockchain nodes.

### Claim 35

A computer-implemented system, comprising:
one or more computers; and
one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:
determining, in response to receiving a blockchain message, a priority identifier of the blockchain message, wherein the priority identifier is configured based on a user configuration instruction and identifies a priority of transmitting the blockchain message;
adding the blockchain message to two or more message queues stored in a relay node in a blockchain relay communication network, wherein each of the two or more message queues comprises one or more blockchain messages, and wherein the one or more blockchain messages comprised in each of the two or more message queues correspond to a same priority identifier;
determining a to-be-transmitted blockchain message from the two or more message queues based on a message transmission policy, wherein the message transmission policy is configured to transmit blockchain messages from relay nodes in the blockchain relay communication network based on priority identifiers corresponding to the two or more message queues;
determining one or more target blockchain nodes based on one or more identifiers comprised in the to-be-transmitted blockchain message that correspond to the one or more target blockchain nodes;
determining, based on a routing table that comprises a connection relationship between each of the one or more target blockchain nodes and the relay nodes in the blockchain relay communication network, a target relay node in the blockchain relay communication network connected to the one or more target blockchain nodes; and
transmitting the to-be-transmitted blockchain message to the one or more target blockchain nodes through the target relay node.

### Claim 36 (depends on 35)

The computer-implemented system of claim 35, wherein determining the to-be-transmitted blockchain message from the two or more message queues includes one or more operations comprising:
determining the to-be-transmitted blockchain message from one of the two or more message queues based on message transmission frequencies predetermined for the two or more message queues.

### Claim 37 (depends on 36)

The computer-implemented system of claim 36, wherein the message transmission frequencies are positively correlated to priorities identified by the priority identifiers corresponding to the two or more message queues.

### Claim 38 (depends on 35)

The computer-implemented system of claim 35, wherein determining the to-be-transmitted blockchain message from the two or more message queues comprises:
determining the to-be-transmitted blockchain message from one of the two or more message queues having a highest priority among the two or more message queues identified by the priority identifiers.

### Claim 39 (depends on 38)

The computer-implemented system of claim 38, wherein the one or more identifiers is a set identifier; and
wherein determining the one or more target blockchain nodes comprises:
determining a blockchain node set corresponding to the set identifier; and
determining one or more target blockchain nodes pre-registered to the blockchain node set as the one or more target blockchain nodes.

### Claim 40 (depends on 35)

The computer-implemented system of claim 35, wherein the relay node is determined as the target relay node, and wherein transmitting the to-be-transmitted blockchain message to the target blockchain nodes through the target relay node comprises:
transmitting the to-be-transmitted blockchain message directly to the one or more target blockchain nodes.
