Hierarchical B-Tree Caching for Encrypted Cross-Region File Replication

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing file system cross-region replication technologies face inefficiencies and performance challenges due to dependency relationships between parent directories and child files, leading to increased IO traffic and latency, especially when storage devices are remote, and hinder parallel processing.

Innovation Solution

A hierarchical caching mechanism is implemented, utilizing a B-tree layout with three levels of caches (first-level, second-level, and third-level caches) to store replication-related information, enabling efficient parallel processing and resolving snapshot key inter-dependency by creating temporary dummy entries, allowing independent processing of file data without waiting for associated parent information.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional replication methods are used with dependency relationships between parent directories and child files, then data consistency is maintained, but IO traffic increases and latency increases

Engineering Contradiction:
Improvedata consistencyVSAvoidlatency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by creating dummy parent directory entries in advance before actual parent directory data is available. This allows child file replication to proceed without waiting for parent directory information, reducing latency while maintaining data consistency through subsequent updates when real parent data arrives.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses an intermediary mechanism by introducing dummy placeholder entries that mediate between child files and actual parent directories. These intermediaries allow the replication process to continue with placeholder references, reducing IO waiting time while ensuring eventual consistency when real parent data is populated.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Manufacturing precision

If traditional replication methods are used with dependency relationships, then data accuracy is maintained, but parallel processing is hindered

Engineering Contradiction:
Improvedata accuracyVSAvoidparallel processing capability
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent applies segmentation by dividing the replication process into independent parallel tasks. Child files can be replicated in parallel by creating entries with dummy parent references, while parent directory replication proceeds separately. This segmentation enables parallel processing without compromising data accuracy through subsequent consistency updates.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

By performing preliminary action of creating dummy parent directory entries, the patent enables child file replication to proceed independently in parallel. This preliminary setup breaks the dependency chain, allowing multiple replication operations to execute concurrently while maintaining data accuracy through later synchronization.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If storage devices are remote, then data security and isolation are improved, but IO traffic increases and performance decreases

Engineering Contradiction:
Improvedata securityVSAvoidreplication performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies preliminary action by pre-creating dummy parent directory entries locally before actual parent data is available from remote storage. This reduces the need for repeated remote IO operations, improving replication performance while maintaining data security through controlled data flow from remote storage devices.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system applies self-service by using locally cached dummy parent directory information to enable child file replication without immediate remote storage access. This self-sufficient approach reduces remote IO traffic and improves performance while maintaining security, with the system automatically updating when real parent data arrives from remote storage.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12455861B2Techniques for efficient encryption and decryption during file system cross-region replication
Publication Date: 2025.10.28 ORACLE INT CORP
  • US12455861B2 patent drawing
  • US12455861B2 patent drawing
  • US12455861B2 patent drawing

AI summary

Techniques are described for a hierarchical caching mechanism enabling efficient cross-region replications. In some embodiments, replication-related information (e.g., key-value pairs) is stored in a particular layout in a binary tree (B-tree) of a file system for replication processing. A hierarchy of caches storing a first type of information (e.g., crypto keys associated with iNodes) may be arranged to match the particular layout in the B-tree to enable efficient parallel processing of a second type of information (e.g., files, file data, or symbolic links), where the replication-related information in the B-tree is partitioned into multiple key ranges for parallel processing. In some embodiments, the caches in different hierarchies may be shared by different parallel-processing key ranges and replication jobs in a file system.