Abstract
Modern network functions (NFs) often process only packet headers while the entire payload traverses the link between switches and servers, consuming significant bandwidth and PCIe resources. We present PayloadPark, a transparent in-network optimization that "parks" packet payloads in a programmable switch's memory, forwarding only headers to NF servers. Implemented on a Barefoot Tofino ASIC using P4, PayloadPark increases link goodput by up to 36% and reduces PCIe bus load by up to 58% without adding latency.
Introduction
Network Functions (NFs) such as firewalls, NATs, and load balancers are critical components of modern data centers. Most "shallow" NFs only inspect the first few dozen bytes of a packet (the headers) to make forwarding or filtering decisions. However, standard network architectures transmit the entire packet, including the payload, to the NF server. This inefficiency creates a bottleneck at the physical link and the server's PCIe bus, limiting the overall "goodput"—the rate of useful data processed. PayloadPark addresses this by decoupling headers from payloads at the switch level.
System Design and Methodology
PayloadPark leverages the programmability of modern switch ASICs to store payloads locally while headers are processed externally. The system operates through two primary mechanisms: Split and Merge.
Split and Merge Operations
When a packet enters the switch, the Split operation assigns it a unique 48-bit tag. The payload is "parked" (stored) in the switch's stateful SRAM. The header, appended with the tag and minimal metadata, is then forwarded to the NF server. After the NF server processes the header and returns it, the Merge operation uses the tag to retrieve the parked payload, reassembles the packet, and forwards it to its final destination.
Architectural Integration
PayloadPark is designed as a "bump-in-the-wire" solution, requiring no changes to NF application code or end-host stacks. It integrates directly into the Top-of-Rack (ToR) switch dataplane.
To manage limited switch memory, a Payload Evictor uses an expiry threshold to reclaim space from packets dropped by the NF or lost in transit. The authors found that even with the scarce SRAM of a Tofino ASIC (50-100MB), as little as 0.8MB is sufficient to saturate a 40Gbps link due to the low latency of header processing.
Evaluation
The system was evaluated using enterprise datacenter traffic patterns and synthetic fixed-size traffic against DPDK-based (OpenNetVM) and Rust-based (NetBricks) NF frameworks.
Key Results
- Goodput Gains: Individual NFs like firewalls and NATs saw goodput improvements of 10-36%. Complex NF chains achieved a 28% gain when using packet recirculation to increase storage capacity.
- Resource Efficiency: PCIe bus load on the NF server was reduced by 2-58%. The implementation is lightweight, utilizing less than 40% of the Tofino's on-chip memory to support up to eight NF servers.
- Latency: The system is latency-neutral. The nanoseconds added by P4 logic are offset by the reduction in link congestion.
Conclusion and Future Work
PayloadPark demonstrates that offloading payload storage to the switch can significantly enhance NF performance by alleviating PCIe and link bottlenecks. While currently optimized for shallow NFs, future work could explore dynamic memory reallocation and security enhancements for multi-tenant cloud environments.
Summary updated