Abstract
Modern distributed storage systems often separate data and metadata management to achieve independent scalability. However, this separation introduces a significant performance bottleneck known as ordered writes, where metadata updates must wait for data writes to complete to ensure consistency. SwitchDelta is a novel protocol that addresses this by moving metadata updates out of the critical path. By utilizing programmable switches to provide immediate "in-network visibility" for in-flight updates, SwitchDelta enables writes to commit in a single round-trip while maintaining strong consistency (linearizability).
The Bottleneck of Ordered Writes
In modern distributed storage architectures, such as file systems or key-value stores, data and metadata are managed separately. To ensure a reader never finds a metadata pointer to data that hasn't been fully written yet, systems follow a strict sequence: first, write the data to a data node; second, wait for a success response; third, update the metadata on a metadata node; and finally, notify the client.
As shown in Figure 1, this "two-phase" approach forces the client to wait for two full round-trip times (RTTs). Furthermore, the system's overall throughput is often throttled by the slower of the two nodes, creating a significant performance ceiling for high-speed distributed applications.
The SwitchDelta Protocol
SwitchDelta leverages the capabilities of programmable network switches (like the Intel Tofino) to act as a temporary "visibility layer." The core idea is to treat the switch as a high-speed, low-capacity buffer that holds the "delta" between the data nodes and the metadata nodes.
In-Switch Visibility and Asynchronous Updates
When a data node finishes a write, it sends a response. The switch intercepts this response, extracts the new metadata, and stores it in an on-chip hash table before forwarding the response to the client. The client can now consider the write "committed" after just one RTT. While the client proceeds, the metadata update is sent to the metadata node in the background. Once the metadata node processes the update, it instructs the switch to clear its temporary entry.
Maintaining Consistency
As illustrated in Figure 5, if a read request arrives before the metadata node is updated, the switch detects the "in-flight" metadata in its hash table and serves the latest location directly to the reader. To handle out-of-order packets or concurrent writes, SwitchDelta employs a timestamp-based protocol, ensuring the switch only caches the most recent metadata.
Key Results and Performance
The authors evaluated SwitchDelta by integrating it into three distinct systems: a log-structured KV store, a distributed file system (Octopus), and a secondary index (SLIK). The results demonstrate significant improvements:
- Latency Reduction: SwitchDelta reduced median write latency by up to 52.4%. In the KV store, latency dropped from ~12μs to ~5μs.
- Throughput Boost: By enabling aggressive batching on metadata nodes (since they are no longer on the critical path), the system improved throughput by up to 126.9% under write-heavy workloads.
- Efficiency: The in-switch logic is lightweight, using only a small fraction of available switch stages and memory, making it practical for deployment alongside other network functions.
Limitations and Future Work
Despite its gains, SwitchDelta faces hardware constraints. Current programmable switches have limited memory (e.g., ~10MB), which restricts the number of concurrent in-flight updates. Additionally, the protocol is currently optimized for single-switch environments; scaling to multi-tier data center topologies would require coordinating visibility across multiple Top-of-Rack (ToR) switches. Future work will also explore compatibility with "one-sided" RDMA, where the switch cannot easily intercept hardware-level ACKs.
Summary updated