[Paper Review] FlexTOE: Flexible TCP Offload with Fine-Grained Parallelism
FlexTOE is a high-performance, flexible TCP offload engine for SmartNICs that uses fine-grained parallelism and segment reordering to offload the TCP data-path while maintaining compatibility with POSIX sockets and existing TCP stacks. It achieves up to 38% higher Memcached throughput than TAS and reduces host CPU usage by up to 81% compared to Chelsio, with competitive RPC performance even on resource-constrained SmartNICs.
FlexTOE is a flexible, yet high-performance TCP offload engine (TOE) to SmartNICs. FlexTOE eliminates almost all host data-path TCP processing and is fully customizable. FlexTOE interoperates well with other TCP stacks, is robust under adverse network conditions, and supports POSIX sockets. FlexTOE focuses on data-path offload of established connections, avoiding complex control logic and packet buffering in the NIC. FlexTOE leverages fine-grained parallelization of the TCP data-path and segment reordering for high performance on wimpy SmartNIC architectures, while remaining flexible via a modular design. We compare FlexTOE on an Agilio-CX40 to host TCP stacks Linux and TAS, and to the Chelsio Terminator TOE. We find that Memcached scales up to 38% better on FlexTOE versus TAS, while saving up to 81% host CPU cycles versus Chelsio. FlexTOE provides competitive performance for RPCs, even with wimpy SmartNICs. FlexTOE cuts 99.99th-percentile RPC RTT by 3.2$ imes$ and 50% versus Chelsio and TAS, respectively. FlexTOE's data-path parallelism generalizes across hardware architectures, improving single connection RPC throughput up to 2.4$ imes$ on x86 and 4$ imes$ on BlueField. FlexTOE supports C and XDP programs written in eBPF. It allows us to implement popular data center transport features, such as TCP tracing, packet filtering and capture, VLAN stripping, flow classification, firewalling, and connection splicing.
Motivation & Objective
- To reduce CPU overhead in data center applications caused by TCP stack processing, which can consume up to 48% of per-CPU cycles.
- To enable full TCP data-path offload to SmartNICs without sacrificing flexibility or robustness under adverse network conditions.
- To design a modular, data-parallel architecture that efficiently utilizes wimpy SmartNIC cores and supports dynamic customization of transport features.
- To demonstrate that NPU-based SmartNICs can achieve scalable, high-performance TCP offload while remaining extensible for evolving data center networking needs.
Proposed method
- Decomposes the TCP data-path into fine-grained, stateful modules that communicate explicitly and execute in a data-parallel pipeline.
- Reorders TCP segments on-the-fly to enable out-of-order processing across pipeline stages while ensuring in-order segment delivery to the application.
- Offloads all data-path processing (e.g., checksum, segmentation, retransmission) to the SmartNIC, keeping only connection state and control logic in host memory.
- Uses a separate control-plane for congestion control, retransmission, and connection management, running on either host or dedicated SmartNIC cores.
- Supports eBPF XDP programs for extensibility, enabling features like packet filtering, VLAN stripping, flow classification, and connection splicing.
- Employs a one-shot processing model where segments are not buffered in the NIC, minimizing latency and state overhead.
Experimental results
Research questions
- RQ1Can a flexible TCP offload engine achieve high performance on wimpy SmartNIC architectures without relying on complex buffering or control logic?
- RQ2How does fine-grained parallelism and segment reordering improve throughput and reduce latency in TCP offload on resource-constrained SmartNICs?
- RQ3To what extent can FlexTOE reduce host CPU usage compared to software TCP stacks and existing TOE solutions?
- RQ4How does FlexTOE maintain robustness under network stress, such as packet loss and incast congestion?
- RQ5Can FlexTOE’s modular, extensible design support common data center transport features like packet capture, firewalling, and connection splicing?
Key findings
- Memcached achieves up to 38% higher throughput on FlexTOE compared to the TAS software TCP stack.
- FlexTOE reduces host CPU usage by up to 81% compared to the Chelsio Terminator TOE, significantly lowering application resource consumption.
- FlexTOE reduces 99.99th-percentile RPC RTT by 3.2× compared to Chelsio and by 50% compared to TAS, demonstrating superior latency behavior.
- On the BlueField SmartNIC, FlexTOE achieves up to 4× higher single-connection RPC throughput than x86, highlighting its effectiveness on wimpy architectures.
- FlexTOE maintains high fairness under congestion, achieving a Jain’s fairness index of 0.98 at 2,048 connections, compared to 0.36 for Linux.
- Disabling control-plane congestion control in FlexTOE increases tail latency by 18.8× and reduces fairness by 2×, proving its critical role in performance and stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.