Abstract
Boxer is a novel system that transforms serverless platforms, such as AWS Lambda, into "short-lived datacenters" by enabling direct, transparent TCP/IP communication between functions. By utilizing NAT-punching and a sophisticated library interposition technique, Boxer allows unmodified, complex microservices to execute on serverless infrastructure with performance comparable to virtual machines while maintaining the extreme elasticity of Function-as-a-Service (FaaS).
Introduction
Serverless computing has revolutionized cloud deployment with its "scale-to-zero" cost model and rapid elasticity. However, the paradigm suffers from a significant limitation: functional isolation. In standard FaaS environments, functions are prohibited from direct peer-to-peer communication. Current workarounds involve routing data through remote storage (e.g., Amazon S3) or centralized proxies, which introduces substantial latency, increases operational costs, and forces developers to refactor applications into restrictive event-driven models.
Boxer addresses this challenge by asking whether serverless functions can be made to behave like standard Linux nodes. By providing a familiar networking environment, Boxer enables the migration of off-the-shelf distributed applications to serverless platforms without code modification.
System Architecture
Boxer's design is predicated on three primary technical pillars that abstract the underlying FaaS constraints:
- Interposition Library: Boxer employs a shared library that intercepts standard
libcnetworking calls (such asconnectorbind). This allows applications to operate as if they were on a standard VM, while Boxer handles the underlying networking complexity. - NAT Punching: Because serverless functions typically reside behind Network Address Translation (NAT) gateways that block unsolicited incoming connections, Boxer implements a specialized NAT-punching protocol. This mechanism coordinates between functions to "punch holes" in firewalls, facilitating bi-directional TCP/IP traffic.
- The Seed Process: To initialize the network, Boxer utilizes a "seed" process on a reachable host. This seed assists functions in discovering external IP addresses and coordinating initial handshakes. Once established, the data path remains direct between functions, and the seed is no longer required.
Performance Evaluation
The researchers evaluated Boxer using microbenchmarks and real-world applications, specifically the DeathStarBench socialNetwork suite. The results indicate that Boxer successfully bridges the gap between serverless and traditional infrastructure.
As shown in the performance data, Boxer achieved a sustained average throughput of 622 Mbit/s between AWS Lambda functions, a figure comparable to mid-range EC2 instances. While the mean round-trip latency for a 1KB message was 694µs—higher than native VM-to-VM latency (~194µs)—it represents a significant improvement over traditional data-bouncing methods.
Furthermore, in dynamic load tests, Boxer enabled the system to process traffic bursts 5x faster than a VM-only setup, reaching a stable state 1.9x faster. This demonstrates the "elasticity edge" of serverless: while per-hour execution may be higher, the ability to spin up in milliseconds allows for superior handling of bursty workloads.
Discussion and Future Work
Boxer proves that the limitations of serverless are largely software-defined. By fixing the networking layer, a "function" effectively becomes a "node." This enables hybrid deployments where VMs manage steady-state loads while serverless functions absorb sudden spikes.
However, several areas for future research remain:
- Scalability: The current NxN control topology may become a bottleneck as deployments scale to thousands of functions.
- I/O Semantics: The interposition layer requires further development to support all non-blocking socket operations used by high-performance libraries.
- NAT Virtualization: Future work is needed to handle NAT collisions when multiple functions share the same external address.
Conclusion
Boxer demonstrates that with the right networking abstractions, serverless platforms can support complex, unmodified distributed systems. By turning FaaS into a short-lived datacenter, Boxer offers a path toward more flexible, elastic, and high-performance cloud architectures.
Summary updated