On Scalable Integrity Checking for Secure Cloud Disks

Quinn Burke, Ryan Sheatsley, Rachel King, Owen Hines, Michael Swift, Patrick D. McDaniel

TL;DR

This paper tackles the performance bottleneck of Merkle hash trees, a standard for data integrity in cloud storage. They introduce Dynamic Merkle Trees (DMTs), a novel, adaptive tree structure that significantly improves throughput and reduces latency by exploiting skewed access patterns common in real-world workloads.

What Problem Does This Paper Address?

Cloud storage systems are increasingly vulnerable to data-only attacks, where attackers manipulate data stored on untrusted infrastructure. Merkle hash trees are a widely adopted solution to ensure data integrity and freshness, verifying that data hasn't been tampered with. However, these trees introduce significant computational and I/O overheads, especially on the critical path of data access. For instance, a 1TB disk can require 28 hash computations per block access, leading to latencies that dwarf the underlying storage device's speed. While prior work has studied these costs in memory systems, their impact on large-scale, low-latency cloud block storage, with its distinct workload characteristics, remained largely uncharacterized. This paper aims to quantify these overheads and propose an efficient, scalable solution.

Methods

The authors begin by analyzing the performance bottlenecks of traditional, balanced Merkle hash trees in cloud block storage. They identify CPU-bound hashing as the primary culprit. To address this, they propose Dynamic Merkle Trees (DMTs), a novel, unbalanced hash tree design inspired by splay trees. DMTs dynamically restructure themselves on-the-fly to bring frequently accessed data blocks (hot data) closer to the root of the tree. This reduces the number of hashes that need to be computed for verification and updates, thereby improving performance. Key to DMTs is a "hotness counter" and a splaying mechanism that adapts the tree structure based on access patterns. They also introduce the concept of an "optimal tree oracle" to establish theoretical performance bounds by using workload traces.

Datasets

The paper evaluates DMTs using a combination of:

  • Zipfian workloads: Used to model skewed access patterns, with specific parameters like Zipf(2.5) being highlighted as representative of real-world storage workloads.
  • Alibaba dataset: A real-world trace from an array of 1000 volumes in a public cloud datacenter.
  • Filebench OLTP workload: A case study to demonstrate how DMTs' driver-level improvements translate to application-level performance gains.

The authors also mention using fio for generating and recording traces for the optimal tree oracle.

Key Insights and Ideas

  • Balanced trees are suboptimal for cloud storage: The paper strongly argues that static, balanced binary trees, while theoretically sound, are ill-suited for the skewed access patterns prevalent in cloud block storage. Their performance degrades significantly with increasing capacity.
  • CPU-bound hashing is the bottleneck: The analysis clearly shows that the time spent computing hashes is the primary performance limiter, not I/O for metadata fetching (especially with caching).
  • Dynamic adaptation is key: DMTs' ability to adapt to workload hotness by restructuring the tree is crucial for achieving high performance. This is a significant departure from static tree structures.
  • High-degree trees aren't always better: Counter-intuitively, the paper shows that increasing tree arity (e.g., 64-ary trees) can lead to worse performance due to increased hashing costs, even though tree height is reduced.
  • Splay trees offer a promising foundation: The adaptation mechanism in DMTs is inspired by splay trees, which naturally bring accessed nodes closer to the root, capturing temporal locality.

Key Results

  • DMTs achieve up to 2.2x higher throughput and significant latency improvements compared to state-of-the-art balanced binary trees (like dm-verity).
  • DMTs deliver >85% of optimal throughput across various capacities, demonstrating excellent scalability.
  • In contrast, balanced trees (binary, 4-ary, 8-ary, 64-ary) experience up to 75% throughput loss at 4TB capacity.
  • DMTs maintain high performance even with small cache sizes (0.1%), outperforming binary trees with 1% cache size.
  • For the Filebench OLTP workload, DMTs showed 1.8x improved read and 1.7x improved write performance at the application level.
  • DMTs adapt quickly to changing workload patterns, showing performance spikes within seconds of entering skewed phases.

Limitations and Future Work

  • Memory and Storage Overhead: DMTs require additional memory and storage for parent-child pointers and hotness counters compared to balanced trees. However, the paper argues this is offset by significantly better performance and cache efficiency.
  • Dynamic Tree Structure Complexity: While DMTs adapt, maintaining tree invariants during splaying (ensuring leaves remain leaves, etc.) requires careful implementation and can incur costs during rotations.
  • Future Work: The authors suggest extending DMT principles to 4-ary and 8-ary trees to potentially achieve even better performance, especially during uniform workload phases. They also note that designing concurrency-optimal hash trees is an open problem.

Summary updated

BibTeX
@inproceedings{burke2024scalable,
  author = {Quinn Burke and Ryan Sheatsley and Rachel King and Owen Hines and Michael Swift and Patrick D. McDaniel},
  title = {{On Scalable Integrity Checking for Secure Cloud Disks}},
  booktitle = {FAST},
  year = {2024},
  doi = {10.48550/arxiv.2405.03830},
}
Figure