Lune

NSDI2022Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MTP: Transport for In-Network Computing cites RedPlane: enabling fault-tolerant stateful in-switch applications
  • MTP: Transport for In-Network Computing cites Scaling Distributed Machine Learning with In-Network Aggregation
  • RedPlane: enabling fault-tolerant stateful in-switch applications cites Cheetah: Accelerating Database Queries with Switch Pruning
  • RedPlane: enabling fault-tolerant stateful in-switch applications cites Ripple: A Programmable, Decentralized Link-Flooding Defense Against Adaptive Adversaries
  • Empower Programmable Pipeline for Advanced Stateful Packet Processing cites Ripple: A Programmable, Decentralized Link-Flooding Defense Against Adaptive Adversaries
  • Hydra: Serialization-Free Network Ordering for Strongly Consistent Distributed Applications cites RedPlane: enabling fault-tolerant stateful in-switch applications
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. 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
  2. MTP: Transport for In-Network ComputingTao Ji, Rohan Vardekar, Balajee Vamanan, Brent E. Stephens et al.NSDI 2025 · 9 citations
  3. Empower Programmable Pipeline for Advanced Stateful Packet ProcessingYong Feng, Zhikang Chen, Haoyu Song, Yinchao Zhang et al.NSDI 2024 · 8 citations
  4. 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
  5. High-level Programming for Application NetworksXiangfeng Zhu, Yuyao Wang, Banruo Liu, Yongtong Wu et al.NSDI 2025 · 6 citations

Builds on6

  1. Ripple: A Programmable, Decentralized Link-Flooding Defense Against Adaptive AdversariesJiarong Xing, Wenqing Wu, Ang ChenUSENIX Security 2021 · 100 citations
  2. Cheetah: Accelerating Database Queries with Switch PruningMuhammad Tirmazi, Ran Ben Basat, Jiaqi Gao, Minlan YuSIGMOD 2020 · 47 citations
  3. RedPlane: enabling fault-tolerant stateful in-switch applicationsDaehyeok Kim, Jacob Nelson, Dan R. K. Ports, Vyas Sekar et al.SIGCOMM 2021 · 33 citations
  4. Fast concurrent data sketchesArik Rinberg, Alexander Spiegelman, Edward Bortnikov, Eshcar Hillel et al.PPoPP 2020 · 4 citations
  5. Scaling Distributed Machine Learning with In-Network AggregationAmedeo Sapio, Marco Canini, Chen-Yu Ho, Jacob Nelson et al.NSDI 2021

Related papers

  1. Lucid: a language for control in the data planeJohn Sonchack, Devon Loehr, Jennifer Rexford, David WalkerSIGCOMM 2021 · 45 citations
  2. P4runpro: Enabling Runtime Programmability for RMT Programmable SwitchesYifan Yang, Lin He, Jiasheng Zhou, Xiaoyi Shi et al.SIGCOMM 2024 · 12 citations
  3. Safe, modular packet pipeline programmingDevon Loehr, David WalkerPOPL 2022 · 6 citations
  4. Multitenant In-Network Acceleration with SwitchVMSajy Khashab, Alon Rashelbach, Mark SilbersteinNSDI 2024 · 21 citations
  5. FarReach: Write-back Caching in Programmable SwitchesSiyuan Sheng, Huancheng Puyang, Qun Huang, Lu Tang et al.USENIX ATC 2023 · 22 citations
Dusk over the sea between two cliffs drawn in fine vertical lines