IP Library › Granted Patent US 11,741,267
Granted Patent B2
US 11,741,267 · App. 18/011,620 · Granted Aug 29, 2023

Consensus method for a distributed database

Inventor: Saurabh Narayan Singh (Bayern, DE)
Assignee: SIEMENS AKTIENGESELLSCHAFT
G06F21/64H04L67/1097G06F2201/80
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,741,267
App. No.
18/011,620
Granted
Aug 29, 2023
Kind
B2
Abstract

A method for obtaining a valid global state for a distributed database, wherein the distributed database includes main nodes storing a complete dataset, and a plurality of subsets of nodes configured to store a part of the dataset, including: a. receiving a request for providing a valid global state of the distributed database, b. determining a first local state for each subset based on status information of nodes of the respective subset regarding the respective part of the dataset, c. combining these first local states of all subsets to a first combined state, d. determining a global state by the main nodes based on status information of the main nodes regarding the stored dataset, e. verifying the first combined state by matching the first combined state with the global state and f. outputting the first combined state as valid global state for the distributed database depending on the verification.

Claims (28)

1. A computer-implemented consensus method for obtaining a valid global state for a distributed database, wherein the distributed database comprises main nodes, each main node storing a complete dataset, and a plurality of subsets of nodes, each subset configured to store a part of the dataset, the method comprising:

a. receiving a request for providing the valid global state of the distributed database;

b. determining by each subset of nodes a first local state for each subset based on status information of nodes of the respective subset regarding the respective part of the dataset;

c. combining the first local state of all subsets to a first combined state;

d. determining a global state by the main nodes based on status information of the main nodes regarding the stored dataset;

e. verifying the first combined state by matching the first combined state with the global state generating a verification result;

and

f. outputting the first combined state as the valid global state for the distributed database depending on the previously generated verification result.

2. The computer-implemented method according to claim 1 , wherein the first local state for each subset is determined by:

randomly selecting a node from the respective subset of nodes;

receiving node-specific status information of the selected node by the remaining nodes of the subset;

verifying the node-specific status information of the selected node through matching the status information with respective status information of the remaining nodes and generating a verification result;

and

outputting the status information of the selected node as the first local state depending on the previously generated verification result.

3. The computer-implemented method according to claim 1 , wherein verifying the first combined state is performed by all main nodes or by one randomly selected main node.

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

providing a second local state for each subset of nodes, wherein the second local state is determined based on status information of a randomly selected node from a subset other than the node selected for determining the first local state;

determining a second combined state by combining the second local states of all subsets;

verifying the second combined state by matching the second combined state with the global state and/or with the first combined state and generating a verification result;

and

outputting the second combined state as the valid global state depending on the previously generated verification result.

5. The computer-implemented method according to claim 1 , wherein in case of a mismatch between the first combined state and the global state a new first combined state is determined and verified until consensus is reached.

6. The computer-implemented method according to claim 1 , wherein in case of a mismatch between the second combined state and the global state a new second combined state is determined and verified until consensus is reached.

7. The computer-implemented method according to claim 1 , wherein in case of a mismatch between the first combined state and the global state and/or between the second combined state and the global state different main nodes are selected to determine a new global state.

8. The computer-implemented method according to claim 1 , wherein in case of a mismatch between the first combined state and the global state and/or between the second combined state and the global state the subset according to the mismatch is identified and at least one transaction is rolled back for that subset.

9. The computer-implemented method according to claim 1 , wherein the distributed database is a blockchain.

10. A computer program product, comprising a computer readable hardware storage device having computer readable program code stored therein, said program code executable by a processor of a computer system to implement a method according to claim 1 when the computer program product is run on a computer.

11. A distributed database comprising main nodes, each main node storing a dataset, and a plurality of subsets of nodes, each subset storing a part of the dataset, configured to perform a consensus method according to claim 1 for obtaining a valid global state of the distributed database.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 20, 2022
From: SINGH, SAURABH NARAYAN
To: SIEMENS AKTIENGESELLSCHAFT
Reel/Frame 062156/0956 →
Priority Claims (1)
EP 20182882 · Jun 29, 2020 · regional
Continuity (1)
Related Publication 20230185969A1 · Jun 15, 2023