{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,13]],"date-time":"2026-06-13T05:55:30Z","timestamp":1781330130597,"version":"3.54.1"},"reference-count":60,"publisher":"Association for Computing Machinery (ACM)","issue":"6","funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62232012"],"award-info":[{"award-number":["62232012"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2025,12,4]]},"abstract":"<jats:p>\n                    Strong consistency, particularly linearizability, is essential for distributed DBMSs deployed in correctness-critical domains such as finance and defense. In general, an optimal linearizability DBMS system focus on two key principles: (1) matching single-node (no-consistency cost)\n                    <jats:italic toggle=\"yes\">Read\/Write performance<\/jats:italic>\n                    under strong consistency, and (2) practical deployability via general database\n                    <jats:italic toggle=\"yes\">compatibility.<\/jats:italic>\n                    Unfortunately, existing solutions fall short on both fronts. %However, achieving strong consistency often comes with steep performance penalties. For example, etcd-a widely-used Raft-based system-achieves only ~5.9% of the throughput of LevelDB, a single-node store without consistency overhead. To achieve higher performance, software approaches adopt weaker consistency models (e.g., ZAB), rely on narrow network assumptions (e.g., NOPaxos), or expose protocol internals to clients (e.g., CURP), yet still fail to close the performance gap. Recent programmable networking hardware offers promising advances, yet current hardware solutions face practical limitations, including minimal storage and incompatibility with general-purpose databases.\n                  <\/jats:p>\n                  <jats:p>We propose P4KVS, the first practical Raft-based in-network consensus offloading solution leveraging programmable switches (P4) for distributed key-value stores. P4KVS offloads only the Leader role to the switch while retaining Followers on servers. Under linearizability, it achieves 74% of single-node LevelDB's throughput for write-heavy workloads, and up to 222.4% for read-heavy workloads by distributing reads across three replicas. This demonstrates that, even under strong consistency, P4KVS can match or exceed the performance of a single-node system. Compared to etcd (which also uses Raft), P4KVS delivers 37.5\u00d7 higher read throughput and 3520\u00d7 lower write latency. These results validate our hardware role-replica separation design in eliminating software Raft bottlenecks, while preserving compatibility via standard database interfaces (e.g., LevelDB, etcd) and scaling beyond typical switch memory constraints.<\/jats:p>","DOI":"10.1145\/3769812","type":"journal-article","created":{"date-parts":[[2025,12,6]],"date-time":"2025-12-06T04:32:13Z","timestamp":1764995533000},"page":"1-24","source":"Crossref","is-referenced-by-count":0,"title":["P4KVS: A Role-Replica Separation Offloading Method to Achieve In-Network Consistency for KV Stores Based on P4 Switches"],"prefix":"10.1145","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0009-0006-8241-5411","authenticated-orcid":false,"given":"Haojuan","family":"Li","sequence":"first","affiliation":[{"name":"Shanghai Jiaotong University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2548-5732","authenticated-orcid":false,"given":"Zongpu","family":"Zhang","sequence":"additional","affiliation":[{"name":"Shanghai Jiaotong University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-0124-8350","authenticated-orcid":false,"given":"Chenzhen","family":"Ye","sequence":"additional","affiliation":[{"name":"Shanghai Jiaotong University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-3028-5054","authenticated-orcid":false,"given":"Ruohan","family":"Tang","sequence":"additional","affiliation":[{"name":"Shanghai Jiaotong University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0894-0892","authenticated-orcid":false,"given":"Jian","family":"Li","sequence":"additional","affiliation":[{"name":"Shanghai Jiaotong University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4714-7400","authenticated-orcid":false,"given":"Haibing","family":"Guan","sequence":"additional","affiliation":[{"name":"Shanghai Jiaotong University, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5788-6082","authenticated-orcid":false,"given":"Qiaoling","family":"Wang","sequence":"additional","affiliation":[{"name":"Huawei Technologies Co., Ltd., Shenzhen, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-3102-5590","authenticated-orcid":false,"given":"Pengpeng","family":"Zhou","sequence":"additional","affiliation":[{"name":"Huawei Technologies Co., Ltd., Shenzhen, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,12,5]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"2023. EtcdBenchmark. https:\/\/etcd.io\/docs\/v3.4\/op-guide\/performance\/#benchmarks."},{"key":"e_1_2_1_2_1","unstructured":"2023. A Go port of Yahoo! Cloud Serving Benchmark (YCSB). https:\/\/github.com\/pingcap\/go-ycsb"},{"key":"e_1_2_1_3_1","unstructured":"2023. Intel\u00ae Tofino\u2122. https:\/\/www.intel.com\/content\/www\/us\/en\/products\/details\/network-io\/intelligent-fabricprocessors\/tofino.html."},{"key":"e_1_2_1_4_1","unstructured":"2023. LevelDB. http:\/\/www.lmdb.tech\/bench\/microbench\/benchmark.html."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/2.116885"},{"key":"e_1_2_1_6_1","volume-title":"Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics (demonstrations). 54-59","author":"Akbik Alan","year":"2019","unstructured":"Alan Akbik, Tanja Bergmann, Duncan Blythe, Kashif Rasul, Stefan Schweter, and Roland Vollgraf. 2019. FLAIR: An easy-to-use framework for state-of-the-art NLP. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics (demonstrations). 54-59."},{"key":"e_1_2_1_7_1","first-page":"357","volume-title":"20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23)","author":"Alimadadi Mohammadreza","year":"2023","unstructured":"Mohammadreza Alimadadi, Hieu Mai, Shenghsun Cho, Michael Ferdman, Peter Milder, and Shuai Mu. 2023. Waverunner: An Elegant Approach to Hardware Acceleration of State Machine Replication. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23). 357-374."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1851182.1851192"},{"key":"e_1_2_1_9_1","volume-title":"Workload analysis of a large-scale key-value store. 40, 1","author":"Atikoglu Berk","year":"2012","unstructured":"Berk Atikoglu, Yuehai Xu, Eitan Frachtenberg, Song Jiang, and Mike Paleczny. 2012. Workload analysis of a large-scale key-value store. 40, 1 (2012)."},{"key":"e_1_2_1_10_1","doi-asserted-by":"crossref","unstructured":"Peter Bailis Alan Fekete Joseph M Hellerstein Ali Ghodsi and Ion Stoica. 2014. Coordination avoidance in database systems. In VLDB.","DOI":"10.14778\/2735508.2735509"},{"key":"e_1_2_1_11_1","doi-asserted-by":"crossref","unstructured":"Peter Bailis Shivaram Venkataraman Michael J Franklin Joseph M Hellerstein and Ion Stoica. 2013. Eventual consistency today: limitations extensions and beyond. In CIDR.","DOI":"10.1145\/2447976.2447992"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2663165.2663323"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/3211922.3211923"},{"key":"e_1_2_1_14_1","volume-title":"8th USENIX Symposium on Networked Systems Design and Implementation (NSDI 11)","author":"Bolosky William J","year":"2011","unstructured":"William J Bolosky, Dexter Bradshaw, Randolph B Haagens, Norbert P Kusters, and Peng Li. 2011. Paxos replicated state machines as the basis of a high-performance data store. In 8th USENIX Symposium on Networked Systems Design and Implementation (NSDI 11)."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2656877.2656890"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-48989-6_8"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1281100.1281103"},{"key":"e_1_2_1_18_1","first-page":"293","volume-title":"Hydra: Serialization-Free Network Ordering for Strongly Consistent Distributed Applications. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23)","author":"Choi Inho","year":"2023","unstructured":"Inho Choi, Ellis Michael, Yunfan Li, Dan RK Ports, and Jialin Li. 2023. Hydra: Serialization-Free Network Ordering for Strongly Consistent Distributed Applications. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23). 293-320."},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491245"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1109\/TNET.2020.2992106"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/2774993.2774999"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3483840"},{"key":"e_1_2_1_23_1","first-page":"1037","article-title":"Amazon DynamoDB: A scalable, predictably performant, and fully managed NoSQL database service","author":"Elhemali Mostafa","year":"2022","unstructured":"Mostafa Elhemali, Niall Gallagher, Bin Tang, Nick Gordon, Hao Huang, Haibo Chen, Joseph Idziorek, Mengtian Wang, Richard Krog, Zongpeng Zhu, et al. 2022. Amazon DynamoDB: A scalable, predictably performant, and fully managed NoSQL database service. In USENIX ATC. 1037-1048.","journal-title":"USENIX ATC."},{"key":"e_1_2_1_24_1","volume-title":"Linearizability: A correctness condition for concurrent objects. ACM Transactions on Programming Languages and Systems (TOPLAS)","author":"Herlihy Maurice P","year":"1990","unstructured":"Maurice P Herlihy and Jeannette M Wing. 1990. Linearizability: A correctness condition for concurrent objects. ACM Transactions on Programming Languages and Systems (TOPLAS) (1990)."},{"key":"e_1_2_1_25_1","unstructured":"Jaco A Hofmann Lasse Thostrup Tobias Ziegler Carsten Binnig and Andreas Koch. 2019. High-Performance In-Network Data Processing.. In ADMS@ VLDB. 64-73."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2486001.2486019"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3229591.3229597"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.14778\/3461535.3461551"},{"key":"e_1_2_1_29_1","first-page":"35","volume-title":"NetChain: Scale-Free Sub-RTT Coordination. In 15th USENIX Symposium on Networked Systems Design and Implementation (NSDI 18)","author":"Jin Xin","year":"2018","unstructured":"Xin Jin, Xiaozhou Li, Haoyu Zhang, Nate Foster, Jeongkeun Lee, Robert Soul\u00e9, Changhoon Kim, and Ion Stoica. 2018. NetChain: Scale-Free Sub-RTT Coordination. In 15th USENIX Symposium on Networked Systems Design and Implementation (NSDI 18). 35-49."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3132747.3132764"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/DSN.2011.5958223"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.14778\/3523210.3523213"},{"key":"e_1_2_1_33_1","first-page":"4","article-title":"Paxos made simple","volume":"32","author":"Lamport Leslie","year":"2001","unstructured":"Leslie Lamport. 2001. Paxos made simple. ACM SIGACT News (Distributed Computing Column) 32, 4 (Whole Number 121, December 2001) (2001), 51-58.","journal-title":"ACM SIGACT News (Distributed Computing Column)"},{"key":"e_1_2_1_34_1","unstructured":"Leslie Lamport. 2005. Generalized consensus and Paxos. (2005)."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00446-006-0005-x"},{"key":"e_1_2_1_36_1","volume-title":"Proceedings of the ACM SIGOPS 28th Symposium on Operating Systems Principles. 488-504","author":"Yu Yanpeng","year":"2021","unstructured":"Seung-seob Lee, Yanpeng Yu, Yupeng Tang, Anurag Khandelwal, Lin Zhong, and Abhishek Bhattacharjee. 2021. Mind: In-network memory management for disaggregated data centers. In Proceedings of the ACM SIGOPS 28th Symposium on Operating Systems Principles. 488-504."},{"key":"e_1_2_1_37_1","unstructured":"Alberto Lerner Rana Hussein Philippe Cudr\u00e9-Mauroux and U eXascale Infolab. 2019. The Case for Network Accelerated Query Processing.. In CIDR."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3132747.3132751"},{"key":"e_1_2_1_39_1","first-page":"467","volume-title":"12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16)","author":"Li Jialin","year":"2016","unstructured":"Jialin Li, Ellis Michael, Naveen Kr Sharma, Adriana Szekeres, and Dan RK Ports. 2016. Just say NO to paxos overhead: Replacing consensus with network ordering. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16). 467-483."},{"key":"e_1_2_1_40_1","first-page":"31","article-title":"Be fast, cheap and in control with SwitchKV","author":"Li Xiaozhou","year":"2016","unstructured":"Xiaozhou Li, Raghav Sethi, Michael Kaminsky, David G Andersen, and Michael J Freedman. 2016. Be fast, cheap and in control with SwitchKV. In NSDI. 31-44.","journal-title":"NSDI."},{"key":"e_1_2_1_41_1","unstructured":"Barbara Liskov and James Cowling. 2012. Viewstamped replication revisited. (2012)."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3037697.3037731"},{"key":"e_1_2_1_43_1","first-page":"3829","volume-title":"30th USENIX Security Symposium (USENIX Security 21)","author":"Liu Zaoxing","year":"2021","unstructured":"Zaoxing Liu, Hun Namkung, Georgios Nikolaidis, Jeongkeun Lee, Changhoon Kim, Xin Jin, Vladimir Braverman, Minlan Yu, and Vyas Sekar. 2021. Jaqen: A High-Performance Switch-Native approach for detecting and mitigating volumetric DDoS attacks with programmable switches. In 30th USENIX Security Symposium (USENIX Security 21). 3829-3846."},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1109\/DSN.2010.5544272"},{"key":"e_1_2_1_45_1","unstructured":"David Mazieres. 2007. Paxos made practical."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/2517349.2517350"},{"key":"e_1_2_1_47_1","unstructured":"Diego Ongaro and John Ousterhout. 2014. In search of an understandable consensus algorithm. In 2014 USENIX annual technical conference (USENIX ATC 14). 305-319."},{"key":"e_1_2_1_48_1","first-page":"47","volume-title":"16th USENIX Symposium on Networked Systems Design and Implementation (NSDI 19)","author":"Park Seo Jin","year":"2019","unstructured":"Seo Jin Park and John Ousterhout. 2019. Exploiting commutativity for practical fast replication. In 16th USENIX Symposium on Networked Systems Design and Implementation (NSDI 19). 47-64."},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/2749246.2749267"},{"key":"e_1_2_1_50_1","first-page":"43","volume-title":"12th USENIX Symposium on Networked Systems Design and Implementation (NSDI 15)","author":"Ports Dan RK","year":"2015","unstructured":"Dan RK Ports, Jialin Li, Vincent Liu, Naveen Kr Sharma, and Arvind Krishnamurthy. 2015. Designing distributed systems using approximate synchrony in data center networks. In 12th USENIX Symposium on Networked Systems Design and Implementation (NSDI 15). 43-57."},{"key":"e_1_2_1_51_1","volume-title":"Using paxos to build a scalable, consistent, and highly available datastore. arXiv preprint arXiv:1103.2408","author":"Rao Jun","year":"2011","unstructured":"Jun Rao, Eugene J Shekita, and Sandeep Tata. 2011. Using paxos to build a scalable, consistent, and highly available datastore. arXiv preprint arXiv:1103.2408 (2011)."},{"key":"e_1_2_1_52_1","unstructured":"Vikram Rao and Steven Guan. [n.d.]. Brewer's conjecture and the feasibility of consistent available partition-tolerant web services. ([n.d.])."},{"key":"e_1_2_1_53_1","volume-title":"International conference on Computer Science and Information Systems (ICSIS). 17-18","author":"Saparon Azilah","year":"2014","unstructured":"Azilah Saparon and Fatin Najihah Bt Razlan. 2014. Cache coherence protocols in multi-processor. In International conference on Computer Science and Information Systems (ICSIS). 17-18."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/3152434.3152461"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3386134"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/2213836.2213838"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389698"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/3603269.3604813"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/3387514.3406214"},{"key":"e_1_2_1_60_1","volume-title":"Harmonia: Near-linear scalability for replicated storage with in-network conflict detection. arXiv preprint arXiv:1904.08964","author":"Zhu Hang","year":"2019","unstructured":"Hang Zhu, Zhihao Bai, Jialin Li, Ellis Michael, Dan Ports, Ion Stoica, and Xin Jin. 2019. Harmonia: Near-linear scalability for replicated storage with in-network conflict detection. arXiv preprint arXiv:1904.08964 (2019)."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3769812","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,13]],"date-time":"2026-06-13T04:57:12Z","timestamp":1781326632000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3769812"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,12,4]]},"references-count":60,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2025,12,4]]}},"alternative-id":["10.1145\/3769812"],"URL":"https:\/\/doi.org\/10.1145\/3769812","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,12,4]]}}}