Optimizing Transport Layer for Secure Computation

Markus Brandt, Claudio Orlandi, Kris Shrishak, Haya Schulmann

Introduction

Secure Two-Party Computation (2PC) enables two parties to jointly compute a function over their private inputs while maintaining data confidentiality. Despite decades of cryptographic refinement aimed at reducing computational overhead and bandwidth consumption, 2PC remains slow in practical wide-area network (WAN) deployments. This paper introduces Transputation, a framework designed to bridge the gap between theoretical cryptographic efficiency and real-world network performance by optimizing the underlying transport layer.

The Network Bottleneck

Standard 2PC implementations typically rely on TCP sockets for data transmission. While TCP is the backbone of general web traffic, it is ill-suited for the massive, bursty data transfers characteristic of 2PC, particularly in high-latency or lossy environments. The authors identify two primary hurdles:

  1. The TCP Bottleneck: TCP's congestion control and windowing mechanisms often fail to fully utilize available bandwidth in high-latency settings, creating a performance ceiling regardless of cryptographic speed.
  2. The Evaluation Gap: Most 2PC protocols are benchmarked in idealized local environments (localhost), which do not account for real-world internet conditions like buffer bloat and routing delays.

The Transputation Framework

Transputation is a modular C++ framework that serves as an abstraction layer between 2PC applications and the network. It allows developers to swap transport protocols—such as TCP, UDP, or SABUL/UDT—without modifying the core cryptographic logic.

Key features include:

  • Adaptive Protocol Selection: The framework uses live network probes to measure Round Trip Time (RTT) and packet loss, automatically selecting the optimal protocol based on the circuit size and network conditions.
  • Buffer Optimization: It dynamically calculates sender and receiver buffer sizes to prevent application-level packet loss.
  • Support for State-of-the-Art Schemes: The framework integrates several garbled circuit optimizations to demonstrate its versatility across different cryptographic approaches.
Table of cryptographic protocols and schemes integrated into the Transputation framework.

Experimental Setup

The researchers evaluated Transputation using standard benchmark circuits: AES (small), SHA256 (medium), and MinCut (large). To capture authentic WAN conditions, they deployed a global testbed using cloud instances across the EU, US, and Australia, rather than relying solely on simulations.

Results and Insights

The evaluation revealed that the transport protocol is often a more significant factor in 2PC performance than the cryptographic scheme itself.

Comparison of execution time vs. communication size for TCP and SABUL at different latencies.

As shown in the figure above, while TCP performs adequately for small communication volumes in low-latency settings, its performance degrades significantly as communication size and latency increase. In contrast, SABUL maintains much lower execution times for large data transfers, especially at 300ms latency.

Key findings include:

  • 8x Speedup: On an EU-to-Australia link, 2PC for large circuits was 8 times faster with SABUL than with TCP.
  • Resilience to Packet Loss: Even a 1% packet loss causes TCP performance to collapse, whereas rate-based protocols like SABUL handle loss gracefully.
  • No "One Size Fits All": TCP remains optimal for small circuits in LAN settings due to its low overhead, but SABUL is vastly superior for large-scale WAN computations.

Conclusion

Transputation demonstrates that the "real-world" bottleneck for 2PC is frequently the network transport layer rather than the computation itself. By automatically selecting and optimizing transport protocols, the framework achieves significant speedups in global network settings. Future work includes extending this approach to malicious adversary models and multi-party computation (MPC) scenarios.

Summary updated

BibTeX
@article{brandt2019optimizing,
  author = {Markus Brandt and Claudio Orlandi and Kris Shrishak and Haya Schulmann},
  title = {{Optimizing Transport Layer for Secure Computation}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2019},
}
Figure