Checksum Replica Agent for Distributed Database Integrity

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed systems, it is challenging for a computing entity to verify the integrity and order of operations contributed to a shared log by other organizations, as malicious or accidental alterations can occur, leading to data inconsistencies and security breaches.

Innovation Solution

The implementation of local and global checksums within a distributed database system, where replicas generate local checksums to verify their own operation order and a checksum replica agent generates global checksums to ensure the correct ordering of operations across multiple replicas, providing cryptographically verifiable assurances against data modification or reordering.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If replicas contribute data to a shared log controlled by a different organization, then data availability and distribution are improved, but data integrity and ordering verification become problematic

Engineering Contradiction:
Improvedata availabilityVSAvoiddata integrity risk
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The system performs preliminary actions by generating cryptographic checksums (local and global) for operations before they are fully committed to the shared log. These checksums serve as pre-computed verification mechanisms that allow replicas to validate operation integrity and ordering without needing to trust the shared log operator, thus resolving the contradiction between data availability and integrity verification.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If a shared log is controlled by a separate organization, then system independence and distribution are improved, but verification of operation ordering becomes difficult or impossible

Engineering Contradiction:
Improvesystem independenceVSAvoidoperation ordering verification
Core Design Contradiction:
Adaptability or versatilityVSDifficulty of detecting and measuring

Solution Approach 1:

The system implements feedback mechanisms where checksums are generated for operations and fed back to replicas for verification. Local checksums provide feedback on individual replica operation ordering, while global checksums provide feedback on cross-replica operation ordering. This feedback loop enables independent verification of operation sequences without requiring trust in the shared log operator.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

Cryptographic checksums serve as intermediaries between the shared log and replicas. Instead of replicas directly verifying operation ordering from the shared log (which would require trust), checksums act as mediators that encode ordering information in a verifiable form. The checksums translate the shared log's operation sequences into provably correct ordering evidence that replicas can independently verify.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If cryptographic verification mechanisms are implemented, then data integrity is improved, but computational overhead and system complexity increase

Engineering Contradiction:
Improvedata integrityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The verification mechanism is segmented into two distinct components: local checksums for individual replica operation ordering and global checksums for cross-replica operation ordering. This segmentation allows the system to apply appropriate verification granularity without requiring full cryptographic verification of all operations at all replicas, reducing overall complexity while maintaining integrity.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11354445B2Mechanism to protect a distributed replicated state machine
Publication Date: 2022.06.07 AMAZON TECH INC
  • US11354445B2 patent drawing
  • US11354445B2 patent drawing
  • US11354445B2 patent drawing

AI summary

A database server (e.g., a replica) generates a local checksum from a sequence of database operations and contributes the sequence of operations and the local checksum to a shared log of a distributed database. Additional database servers, similarly, generate local checksums. A checksum replica agent determines a first ordering of database operations of a first database server of a database, determines a second ordering of database operations of a second database server of the database; determines whether a third ordering of database operations that is based at least in part on the first ordering and the second ordering is valid. In an embodiment, a checksum replica agent generates a global checksum over the third ordering. Checksums, in an embodiment, are digitally signed and/or encrypted.