Enhancing TCP throughput of highly available virtual machines via speculative communication

Balazs Gerofi, Yutaka IshikawaVEE 2012

TL;DR

This paper tackles the significant performance bottleneck in highly available virtual machines (VMs) that rely on checkpointing for fault tolerance. By introducing "speculative communication" and "replication-aware congestion control," they enable VMs to achieve near-native network throughput, a crucial improvement for cloud services.

What Problem Does This Paper Address?

Cloud computing heavily relies on virtual machines (VMs) for running online services. To ensure these services remain available even if a VM or its underlying hardware fails, a common approach is "checkpoint-recovery based replication." This involves periodically saving the VM's entire state (checkpointing) and sending it to a backup VM. If the primary VM fails, the backup can quickly take over.

However, a major challenge arises from the "output commit problem." To guarantee that a failed VM can be recovered to a consistent state, any output (like network packets) sent by the VM must be held back until its corresponding execution state is safely checkpointed and acknowledged by the backup. This buffering and delay severely cripples network performance, especially for TCP-based applications that require high bandwidth. The paper highlights that basic replication can reduce throughput from ~110 MB/s to a mere ~6 MB/s, making it impractical for many real-world scenarios.

Methods

The paper introduces two core innovations:

  • Speculative Communication: Instead of simply buffering outgoing TCP packets, the Virtual Machine Monitor (VMM) fabricates "speculative acknowledgments" to the VM's TCP stack. This tricks the VM into thinking its packets have been successfully sent and acknowledged, allowing its TCP stack to proceed and send more data. Crucially, these speculative packets are not sent to the actual client until the VM's state is checkpointed and confirmed by the backup. This allows the VM to transmit data much faster than it could under the strict output commit rules.
  • Replication-Aware Congestion Control: This is a modification to the guest OS's TCP stack. It's designed to aggressively fill the VMM's replication buffer by sending large bursts of packets. This ensures that speculative packets are sent to the VMM as quickly as possible, maximizing the utilization of the replication buffer and enabling earlier release of data to clients once the backup acknowledges the checkpoint.

To manage these speculative communications and ensure correctness, the paper also details the use of shadow sockets. These are maintained by the VMM to track TCP flows from both the VM's perspective and the actual network's perspective, handling retransmissions and congestion control for speculative streams.

Datasets

The paper does not introduce new datasets. Instead, it evaluates its proposed mechanisms using standard benchmarks:

  • SPECweb2005 Banking workload: This emulates an internet banking website, involving SSL-encrypted transactions. It's used to test the performance of web servers under replication.
  • Hadoop MR/DB benchmark: This benchmark tests the performance of Hadoop's MapReduce framework, specifically focusing on the JobTracker, a critical component for fault tolerance.
  • Bulk data transfer tests: Using the ttcp utility, the authors measure raw TCP throughput for various data transfer sizes.

Key Insights and Ideas

  • Decoupling VM Progress from Client Acknowledgment: The core insight is that by allowing the VM's TCP stack to believe data has been sent (via speculative ACKs), you can dramatically improve its ability to transmit data, even if the actual delivery is delayed. This is a clever way to sidestep the strict output commit problem for network traffic.
  • Replication Awareness is Key: Simply enabling speculative communication isn't enough. Making the guest OS's TCP stack aware of the replication process (via replication-aware congestion control) is crucial for achieving near-native performance, especially when combined with high-speed networks.
  • Network Performance is the Bottleneck: The paper strongly emphasizes that for checkpoint-recovery based replication, network communication is the primary performance limiter, not necessarily the computational overhead of checkpointing itself.
  • Infiniband Makes a Big Difference: The use of high-performance interconnects like Infiniband significantly boosts performance, allowing for much faster replication updates and, consequently, faster data release to clients.

Key Results

  • Order of Magnitude Improvement in Bulk Data Transfer: Speculative communication alone provides up to a 10x improvement in bulk TCP transfer rates compared to basic replication.
  • Near-Native Performance with Replication Awareness and Infiniband: When replication-aware congestion control is enabled and replication occurs over Infiniband, network performance approaches that of a native (non-replicated) VM.
  • SPECweb2005 Performance: The SPECweb banking workload sees performance improve from 30% of native with basic replication to 80% with speculative communication. With Infiniband, this climbs to over 90%.
  • Hadoop Performance: The Hadoop JobTracker, a communication-intensive component, experiences only a 3-5% overhead with speculative communication and replication-aware congestion control, compared to a native execution.
  • Reduced Response Times: For SPECweb, speculative communication reduces response times by an average of 57% compared to basic replication, with Infiniband offering further significant reductions.

Limitations and Future Work

  • Replication Epoch Length: The paper notes that while speculative communication allows for longer replication epochs (reducing overhead), determining the optimal epoch length dynamically based on workload characteristics is an area for future exploration.
  • Broader Replication Awareness: The authors suggest extending replication awareness beyond just congestion control. A guest OS that is more aware of the replication process (e.g., checkpoint frequency) could further optimize disk I/O and network transmissions.
  • TCP Reception: The paper primarily focuses on TCP transmission. While speculative communication is mentioned as applicable to reception, detailed results are not presented.
  • Network Interconnects: While Infiniband shows significant benefits, the primary focus for many experiments is Gigabit Ethernet, and Infiniband was not tested for all benchmarks (e.g., Hadoop).

Summary updated

BibTeX
@inproceedings{gerofi2012enhancing,
  author = {Balazs Gerofi and Yutaka Ishikawa},
  title = {{Enhancing TCP throughput of highly available virtual machines via speculative communication}},
  booktitle = {VEE},
  year = {2012},
  doi = {10.1145/2151024.2151038},
}

Loading related content...

Figure