English

P4COM: In-Network Computation with Programmable Switches

Networking and Internet Architecture 2021-07-30 v1 Distributed, Parallel, and Cluster Computing

Abstract

Traditionally, switches only provide forwarding services and have no credits on computation in distributed computing frameworks. The emerging programmable switches make in-network computing (INC) possible, i.e., offloading some computation to the switch data plane. While some proposals have attempted to offload computation onto special hardwares (e.g., NetFPGA), many practical issues have not been addressed. Therefore, we propose P4COM - a user-friendly, memory-efficient, and fault-tolerant framework realizing in-network computation (e.g., MapReduce) with programmable switches. P4COM consists of three modules. First, P4COM automatically translates application logic to switch data plane programs with a lightweight interpreter. Second, P4COM adopts a memory management policy to efficiently utilize the limited switch on-chip memory. Third, P4COM provides a cutting-payload mechanism to handle packet losses. We have built a P4COM prototype with a Barefoot Tofino switch and multiple commodity servers. Through a combination of testbed experiments and large-scale simulations, we show that P4COM is able to achieve line-rate processing at 10Gbps links, and can increase the data shuffling throughput by 2-5 times for the MapReduce-style applications.

Keywords

Cite

@article{arxiv.2107.13694,
  title  = {P4COM: In-Network Computation with Programmable Switches},
  author = {Ge Chen and Gaoxiong Zeng and Li Chen},
  journal= {arXiv preprint arXiv:2107.13694},
  year   = {2021}
}

Comments

10 pages

R2 v1 2026-06-24T04:37:22.806Z