SwiSh: Distributed Shared State Abstractions for Programmable Switches
Lior Zeno, Dan R. K. Ports, Jacob Nelson, Daehyeok Kim, Shir Landau Feibish, Idit Keidar, Arik Rinberg, Alon Rashelbach, Igor Lima de Paula, Mark Silberstein
Abstract
We design and evaluate SwiSh, a distributed shared state management layer for data-plane P4 programs. SwiSh enables running scalable stateful distributed network functions on programmable switches entirely in the data-plane. We explore several schemes to build a shared variable abstraction, which differ in consistency, performance, and in-switch implementation complexity. We introduce the novel Strong Delayed-Writes (SDW) protocol which offers consistent snapshots of shared data-plane objects with semantics known as -relaxed strong linearizability, enabling implementation of distributed concurrent sketches with precise error bounds.
We implement strong, eventual, and SDW consistency protocols in Tofino switches, and compare their performance in microbenchmarks and three realistic network functions, NAT, DDoS detector, and rate limiter. Our results show that the distributed state management in the data plane is practical, and outperforms centralized solutions by up to four orders of magnitude in update throughput and replication latency.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ea439fc6-688e-461a-81bc-ccd83b3949a6Cited by top-tier papers8
- Hydra: Serialization-Free Network Ordering for Strongly Consistent Distributed ApplicationsInho Choi, Ellis Michael, Yunfan Li, Dan R. K. Ports et al.NSDI 2023 · 21 citations
- MTP: Transport for In-Network ComputingTao Ji, Rohan Vardekar, Balajee Vamanan, Brent E. Stephens et al.NSDI 2025 · 9 citations
- Empower Programmable Pipeline for Advanced Stateful Packet ProcessingYong Feng, Zhikang Chen, Haoyu Song, Yinchao Zhang et al.NSDI 2024 · 8 citations
- NetShuffle: Circumventing Censorship with Shuffle Proxies at the EdgePatrick Tser Jern Kon, Aniket Gattani, Dhiraj Saharia, Tianyu Cao et al.S&P 2024 · 6 citations
- High-level Programming for Application NetworksXiangfeng Zhu, Yuyao Wang, Banruo Liu, Yongtong Wu et al.NSDI 2025 · 6 citations
Builds on6
- Ripple: A Programmable, Decentralized Link-Flooding Defense Against Adaptive AdversariesJiarong Xing, Wenqing Wu, Ang ChenUSENIX Security 2021 · 100 citations
- Cheetah: Accelerating Database Queries with Switch PruningMuhammad Tirmazi, Ran Ben Basat, Jiaqi Gao, Minlan YuSIGMOD 2020 · 47 citations
- RedPlane: enabling fault-tolerant stateful in-switch applicationsDaehyeok Kim, Jacob Nelson, Dan R. K. Ports, Vyas Sekar et al.SIGCOMM 2021 · 33 citations
- Fast concurrent data sketchesArik Rinberg, Alexander Spiegelman, Edward Bortnikov, Eshcar Hillel et al.PPoPP 2020 · 4 citations
- Scaling Distributed Machine Learning with In-Network AggregationAmedeo Sapio, Marco Canini, Chen-Yu Ho, Jacob Nelson et al.NSDI 2021
Related papers
- Lucid: a language for control in the data planeJohn Sonchack, Devon Loehr, Jennifer Rexford, David WalkerSIGCOMM 2021 · 45 citations
- P4runpro: Enabling Runtime Programmability for RMT Programmable SwitchesYifan Yang, Lin He, Jiasheng Zhou, Xiaoyi Shi et al.SIGCOMM 2024 · 12 citations
- Safe, modular packet pipeline programmingDevon Loehr, David WalkerPOPL 2022 · 6 citations
- Multitenant In-Network Acceleration with SwitchVMSajy Khashab, Alon Rashelbach, Mark SilbersteinNSDI 2024 · 21 citations
- FarReach: Write-back Caching in Programmable SwitchesSiyuan Sheng, Huancheng Puyang, Qun Huang, Lu Tang et al.USENIX ATC 2023 · 22 citations
