Network Functions With Dynamic State Management on Programmable Switches
Recent popular programmable switches provide programmability in packet processing at the line rate, promising to host various Network Functions (NFs). However, the limitations on the switch programmability make it unable to manage runtime dynamic NF states. In the status quo, on-switch NFs rely on the network controller for dynamic state management, suffering from high first-packet latency. This paper proposes DNF, a hardware-software co-design system for dynamic state management of network functions on programmable switches. DNF designs a dynamic State Table on the switch, which provides <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">opportunistic</i> service to NF flows and sets up <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">fallback</i> NFs on the server to handle flows that fail on the switch. DNF proposes a state pre-computation and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">runtime-binding</i> method for per-flow state initialization, which avoids a flow’s runtime interaction with the controller and the consequent latency. DNF devises a <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">state replacement</i> method, which periodically swaps hot flows into the switch. It could maximize the switch resource utilization and the throughput. We prototype DNF on P4 switches, implement six representative NFs, and compare DNF with state-of-the-art solutions. Our experiments show DNF reduces the first-packet latency by up to 98% compared with the controller-assisted architecture and improves the system throughput by up to 4.87 times compared with the software solution.
Authors
- Wenfei Wu (ORCID: https://orcid.org/0000-0002-1357-3137)
- Renhai Chen (ORCID: https://orcid.org/0000-0002-0233-5838)
- Xin Yao (ORCID: https://orcid.org/0000-0002-5780-7900)
- Gong Zhang (ORCID: https://orcid.org/0000-0003-0283-7050)
- Y. Yuan (ORCID: https://orcid.org/0000-0001-6698-9497)
Institutions
- Peking University (CN)
- Huawei Technologies (China) (CN)
Publication Details
- Journal
- IEEE Transactions on Networking
- Published
- 2025-09-23
- DOI
- https://doi.org/10.1109/ton.2025.3606501
- Primary Topic
- Interconnection Networks and Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00