IP Library › Granted Patent US 11,445,016
Granted Patent B2
US 11,445,016 · App. 17/364,712 · Granted Sep 13, 2022

Methods and apparatuses for transmitting messages

Inventors: Chao Zeng (Hangzhou, CN); Jiang Wang (Hangzhou, CN); He Sun (Hangzhou, CN); Fuxi Deng (Hangzhou, CN)
Assignee: Alipay (Hangzhou) Information Technology Co., Ltd.
H04L67/108H04L51/18
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,445,016
App. No.
17/364,712
Granted
Sep 13, 2022
Kind
B2
Abstract

One or more embodiments of this specification provide methods and apparatuses for transmitting messages. A method includes: registering, based on a registration request sent by each blockchain node in a blockchain relay communication network, a blockchain node to a blockchain node set indicated by the registration request; determining, in response to receiving a blockchain message to be sent to a target blockchain node set, a target blockchain node registered to the target blockchain node set and a target relay node in the blockchain relay communication network; and transmitting the blockchain message to the target blockchain node through the target relay node.

Claims (77)

1. A computer-implemented method, comprising:

determining, as a result, whether a blockchain registration request sent by a blockchain node in a blockchain relay communication network comprises a set identifier;

in response to the result being TRUE, registering the blockchain node to a blockchain node set corresponding to the set identifier;

in response to the result being FALSE, registering the blockchain node to a default blockchain node set comprising all blockchain nodes in the blockchain relay communication network to which the blockchain node pertains;

determining, in response to receiving a blockchain message to be sent to a target blockchain node set of the blockchain relay communication network, a target blockchain node registered to the target blockchain node set and a target relay node in the blockchain relay communication network; and

transmitting the blockchain message to the target blockchain node through the target relay node.

2. The computer-implemented method according to claim 1 , wherein receiving the blockchain message sent for the target blockchain node set, comprises at least one of:

(i) receiving the blockchain message sent for the target blockchain node set from a connected blockchain node, or

(ii) receiving the blockchain message sent for the target blockchain node set from one or more other relay nodes in the blockchain relay communication network.

3. The computer-implemented method according to claim 1 , wherein receiving the blockchain message sent for the target blockchain node set comprises:

identifying a set identifier from the blockchain message after receiving the blockchain message; and

determining a blockchain node set corresponding to the set identifier as the target blockchain node set corresponding to the blockchain message.

4. The computer-implemented method according to claim 1 , comprising:

recording, based on role type information comprised in the blockchain registration request, a role type corresponding to each blockchain node in the blockchain node set to which the blockchain node pertains; and

wherein determining the target blockchain node registered to the target blockchain node set comprises:

identifying a target role type indicated in the blockchain message; and

taking a blockchain node registered to the target blockchain node set and corresponding to the target role type as the target blockchain node.

5. The computer-implemented method according to claim 1 , comprising:

generating a routing table configured to record a blockchain node set to which each blockchain node pertains and a connection relationship between each blockchain node and relay nodes; and

wherein determining the target blockchain node registered to the target blockchain node set and the target relay node in the blockchain relay communication network and connected to the target blockchain node comprises:

determining, by querying the routing table, the target blockchain node registered to the target blockchain node set and the target relay node in the blockchain relay communication network and connected to the target blockchain node.

6. The computer-implemented method according to claim 1 , wherein transmitting the blockchain message to the target blockchain node through the target relay node, comprises at least one of:

(i) transmitting the blockchain message to the target blockchain node connected to the target relay node; or

(ii) transmitting the blockchain message to the target relay node, for the target relay node to forward the blockchain message to the target blockchain node connected to the target relay node.

7. The computer-implemented method according to claim 1 , comprising:

determining, when receiving a blockchain message sent for a blockchain node in the blockchain relay communication network, a relay node in the blockchain relay communication network and connected to the blockchain node and transmitting the blockchain message to the blockchain node through the relay node.

8. The computer-implemented method according to claim 1 , wherein the blockchain node set indicated by the blockchain registration request is one of:

(i) irrelevant to one or more of other blockchain node sets,

(ii) comprised in one or more other blockchain node sets, or

(iii) the blockchain node set indicated by the blockchain registration request comprises one or more other blockchain node sets.

9. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

determining, as a result, whether a blockchain registration request sent by a blockchain node in a blockchain relay communication network comprises a set identifier;

in response to the result being TRUE, registering the blockchain node to a blockchain node set corresponding to the set identifier;

in response to the result being FALSE, registering the blockchain node to a default blockchain node set comprising all blockchain nodes in the blockchain relay communication network to which the blockchain node pertains;

determining, in response to receiving a blockchain message to be sent to a target blockchain node set of the blockchain relay communication network, a target blockchain node registered to the target blockchain node set and a target relay node in the blockchain relay communication network; and

transmitting the blockchain message to the target blockchain node through the target relay node.

10. The non-transitory, computer-readable medium according to claim 9 , wherein receiving the blockchain message sent for the target blockchain node set, includes at least one operation comprising:

(i) receiving the blockchain message sent for the target blockchain node set from a connected blockchain node, or

(ii) receiving the blockchain message sent for the target blockchain node set from one or more other relay nodes in the blockchain relay communication network.

11. The non-transitory, computer-readable medium according to claim 9 , wherein receiving the blockchain message sent for the target blockchain node set, the operations comprising:

identifying a set identifier from the blockchain message after receiving the blockchain message; and

determining a blockchain node set corresponding to the set identifier as the target blockchain node set corresponding to the blockchain message.

12. The non-transitory, computer-readable medium according to claim 9 , the operations comprising:

recording, based on role type information comprised in the blockchain registration request, a role type corresponding to each blockchain node in the blockchain node set to which the blockchain node pertains; and

wherein determining the target blockchain node registered to the target blockchain node set includes operations comprising:

identifying a target role type indicated in the blockchain message; and

taking a blockchain node registered to the target blockchain node set and corresponding to the target role type as the target blockchain node.

13. The non-transitory, computer-readable medium according to claim 9 , the operations comprising:

generating a routing table configured to record a blockchain node set to which each blockchain node pertains and a connection relationship between each blockchain node and relay nodes; and

wherein determining the target blockchain node registered to the target blockchain node set and the target relay node in the blockchain relay communication network and connected to the target blockchain node includes operations comprises:

determining, by querying the routing table, the target blockchain node registered to the target blockchain node set and the target relay node in the blockchain relay communication network and connected to the target blockchain node.

14. The non-transitory, computer-readable medium according to claim 9 , wherein transmitting the blockchain message to the target blockchain node through the target relay node, the operations comprise at least one of:

(i) transmitting the blockchain message to the target blockchain node connected to the target relay node; or

(ii) transmitting the blockchain message to the target relay node, for the target relay node to forward the blockchain message to the target blockchain node connected to the target relay node.

15. The non-transitory, computer-readable medium according to claim 9 , the operations comprising:

determining, when receiving a blockchain message sent for a blockchain node in the blockchain relay communication network, a relay node in the blockchain relay communication network and connected to the blockchain node and transmitting the blockchain message to the blockchain node through the relay node.

16. 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, as a result, whether a blockchain registration request sent by a blockchain node in a blockchain relay communication network comprises a set identifier;

in response to the result being TRUE, registering the blockchain node to a blockchain node set corresponding to the set identifier;

in response to the result being FALSE, registering the blockchain node to a default blockchain node set comprising all blockchain nodes in the blockchain relay communication network to which the blockchain node pertains;

determining, in response to receiving a blockchain message to be sent to a target blockchain node set of the blockchain relay communication network, a target blockchain node registered to the target blockchain node set and a target relay node in the blockchain relay communication network; and

transmitting the blockchain message to the target blockchain node through the target relay node.

17. The computer-implemented system according to claim 16 , wherein receiving the blockchain message sent for the target blockchain node set, includes one or more operations comprising at least one of:

(i) receiving the blockchain message sent for the target blockchain node set from a connected blockchain node, or

(ii) receiving the blockchain message sent for the target blockchain node set from one or more other relay nodes in the blockchain relay communication network.

18. The computer-implemented system, according to claim 16 , wherein receiving the blockchain message sent for the target blockchain node set includes one or more operations comprising:

identifying a set identifier from the blockchain message after receiving the blockchain message; and

determining a blockchain node set corresponding to the set identifier as the target blockchain node set corresponding to the blockchain message.

19. The computer-implemented system according to claim 16 , the operations comprising:

generating a routing table configured to record a blockchain node set to which each blockchain node pertains and a connection relationship between each blockchain node and relay nodes; and

wherein determining the target blockchain node registered to the target blockchain node set and the target relay node in the blockchain relay communication network and connected to the target blockchain node comprises:

determining, by querying the routing table, the target blockchain node registered to the target blockchain node set and the target relay node in the blockchain relay communication network and connected to the target blockchain node.

20. The computer-implemented system according to claim 16 , wherein transmitting the blockchain message to the target blockchain node through the target relay node, includes one or more operations comprising at least one of:

(i) transmitting the blockchain message to the target blockchain node connected to the target relay node; or

(ii) transmitting the blockchain message to the target relay node, for the target relay node to forward the blockchain message to the target blockchain node connected to the target relay node.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 20, 2025
From: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
To: ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO., LTD.
Reel/Frame 070578/0163 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 21, 2021
From: ZENG, CHAO; WANG, JIANG; SUN, HE; DENG, FUXI
To: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 057550/0490 →
Priority Claims (1)
CN 202011021691.5 · Sep 25, 2020 · national
Continuity (1)
Related Publication 20210329068A1 · Oct 21, 2021