skip to main content
10.1145/3185467.3185470acmconferencesArticle/Chapter ViewAbstractPublication PagescommConference Proceedingsconference-collections
short-paper

NS4: Enabling Programmable Data Plane Simulation

Published: 28 March 2018 Publication History

Abstract

Network simulation plays a crucial role in the field of network research, education, and industry. However, before conducting a simulation on traditional network simulators, operators need to develop a simulative behavioral model, which requires intimate knowledge of the simulator implementation. Besides, the behavioral model cannot be migrated directly into real-world devices due to its tight coupling with the simulator platform, resulting in redundant and error-prone codes rewriting. Recently, P4, a high-level domain specific language (DSL), has attracted great attention from both academia and industry for its advantages of enabling operators to define behaviors of the programmable data plane.
Inspired by the idea of DSL, we present NS4, a P4-driven network simulator supporting simulation of P4-enabled networks to address the problems existing in traditional simulators. Taking advantage of P4, NS4 simplifies the development of a behavioral model and bridges the gap between simulation and deployment. Furthermore, to the best of our knowledge, NS4 is the first research effort to enable simulation of a P4-enabled network, providing a useful tool for P4 research and development. In this paper, we designed and implemented NS4, consisting of data plane models integrated with ns-3, the state-of-the-art network simulator, and control plane models to interact with the P4 pipeline. Then we evaluated its effectiveness and efficiency by simulating several representative P4 programs. Results show that NS4 can simulate large-scale P4-enabled networks at a low cost.

References

[1]
ns-3. https://www.nsnam.org/, 2011.
[2]
Lee Breslau, Deborah Estrin, Kevin Fall, Sally Floyd, John Heidemann, Ahmed Helmy, Polly Huang, Steven McCanne, Kannan Varadhan, Ya Xu, et al. Advances in network simulation. Computer, 33(5):59--67, 2000.
[3]
Behavioral model. https://github.com/p4lang/behavioral-model.
[4]
Samar Abdi, Umair Aftab, Gordon Bailey, Bochra Boughzala, Faras Dewal, Shafigh Parsazad, and Eric Tremblay. Pfpsim: A programmable forwarding plane simulator. In Architectures for Networking and Communications Systems (ANCS), 2016 ACM/IEEE Symposium on, pages 55--60. IEEE, 2016.
[5]
Mininet Team. Mininet: An instant virtual network on your laptop (or other pc). http://mininet.org/, 2012.
[6]
Jialin Li, Ellis Michael, Naveen Kr. Sharma, Adriana Szekeres, and Dan R. K. Ports. Just say no to paxos overhead: Replacing consensus with network ordering. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pages 467--483, GA, 2016. USENIX Association.
[7]
Rui Miao, Hongyi Zeng, Changhoon Kim, Jeongkeun Lee, and Minlan Yu. Silkroad: Making stateful layer-4 load balancing fast and cheap using switching asics. In Proceedings of the 2017 ACM SIGCOMM Conference, SIGCOMM '17, pages 525--538, Los Angeles, CA, USA, 2017. ACM.
[8]
Mojgan Ghasemi, Theophilus Benson, and Jennifer Rexford. Dapper: Data plane performance diagnosis of tcp. In Proceedings of the Symposium on SDN Research, SOSR '17, pages 61--74, New York, NY, USA, 2017. ACM.
[9]
Jin Xin, Xiaozhou Li, Zhang Haoyu, Robert Soule, and Jeongkeun. Lee. Netcache: Balancing key-value stores with fast in-network caching. P4 workshop 2017. http://p4.org/wp-content/uploads/2017/06/p4-ws-2017-netcache.pdf.
[10]
Barefoot Networks. Tofino. https://barefootnetworks.com/technology/.
[11]
Han Wang, Robert Soulé, Huynh Tu Dang, Ki Suh Lee, Vishal Shrivastav, Nate Foster, and Hakim Weatherspoon. P4fpga: A rapid prototyping framework for p4. In Proceedings of the Symposium on SDN Research, SOSR '17, pages 122--135, New York, NY, USA, 2017. ACM.
[12]
P4runtime: a control plane framework and tools for the p4 programming language. https://github.com/p4lang/PI.
[13]
P4 brigade. https://wiki.onosproject.org/display/ONOS/P4+brigade.
[14]
Ns4. https://ns-4.github.io, 2017.
[15]
Pat Bosshart, Glen Gibb, Hun-Seok Kim, George Varghese, Nick McKeown, Martin Izzard, Fernando Mujica, and Mark Horowitz. Forwarding metamorphosis: Fast programmable match-action processing in hardware for sdn. In Proceedings of the ACM SIGCOMM 2013 Conference on SIGCOMM, SIGCOMM '13, pages 99--110, New York, NY, USA, 2013. ACM.
[16]
Sharad Chole, Andy Fingerhut, Sha Ma, Anirudh Sivaraman, Shay Vargaftik, Alon Berger, Gal Mendelson, Mohammad Alizadeh, Shang-Tse Chuang, Isaac Keslassy, Ariel Orda, and Tom Edsall. drmt: Disaggregated programmable switching. In Proceedings of the Conference of the ACM Special Interest Group on Data Communication, SIGCOMM '17, pages 1--14, New York, NY, USA, 2017. ACM.
[17]
Charles E Leiserson. Fat-trees: universal networks for hardware-efficient supercomputing. IEEE transactions on Computers, 100(10):892--901, 1985.
[18]
Dell. Poweredge r730 rack server. Website. http://www.dell.com/en-uk/work/shop/productdetailstxn/poweredge-r730.
[19]
Parveen Patel, Deepak Bansal, Lihua Yuan, Ashwin Murthy, Albert Greenberg, David A Maltz, Randy Kern, Hemant Kumar, Marios Zikos, Hongyu Wu, et al. Ananta: Cloud scale load balancing. In ACM SIGCOMM Computer Communication Review, volume 43, pages 207--218. ACM, 2013.
[20]
Theophilus Benson, Ashok Anand, Aditya Akella, and Ming Zhang. Understanding data center traffic characteristics. ACM SIGCOMM Computer Communication Review, 40(1):92--99, 2010.
[21]
Xinjie Chang. Network simulations with opnet. In Simulation Conference Proceedings, 1999 Winter, volume 1, pages 307--314. IEEE, 1999.
[22]
Sebastian Rampfl. Network simulation and its limitations. In Proceeding zum Seminar Future Internet (FI), Innovative Internet Technologien und Mobilkommunikation (IITM) und Autonomous Communication Networks (ACN), volume 57, 2013.
[23]
Kevin Fall and Kannan Varadhan. The network simulator (ns-2). URL: http://www.isi.edu/nsnam/ns, 2007.
[24]
Thomas R Henderson, Mathieu Lacage, George F Riley, C Dowell, and J Kopena. Network simulations with the ns-3 simulator. SIGCOMM demonstration, 14(14):527, 2008.
[25]
Hemin Yang, Chuanji Zhang, and George Riley. Support multiple auxiliary tcp/udp connections in sdn simulations based on ns-3. In Proceedings of the Workshop on ns-3, pages 24--30. ACM, 2017.
[26]
Steven Smith, David R Jefferson, Peter D Barnes Jr, and Sergei Nikolaev. Improving per processor memory use of ns-3 to enable large scale simulations. In Proceedings of the 2015 Workshop on ns-3, pages 60--66. ACM, 2015.
[27]
Sérgio Conceição, Filipe Ribeiro, Rui Campos, and Manuel Ricardo. Novel ns-3 model enabling simulation of electromagnetic wireless underground networks. In Proceedings of the 2015 Workshop on ns-3, pages 9--16. ACM, 2015.
[28]
Hongqiang Harry Liu, Yibo Zhu, Jitu Padhye, Jiaxin Cao, Sri Tallapragada, Nuno P Lopes, Andrey Rybalchenko, Guohan Lu, and Lihua Yuan. Crystalnet: Faithfully emulating large production networks. In Proceedings of the 26th Symposium on Operating Systems Principles, pages 599--613. ACM, 2017.
[29]
Behavioral model repository. https://p4.org/.
[30]
Lavanya Jose, Lisa Yan, George Varghese, and Nick McKeown. Compiling packet programs to reconfigurable switches. In NSDI, pages 103--115, 2015.
[31]
Barefoot Networks. Barefoot capilano. Website. https://barefootnetworks.com/products/brief-capilano/.
[32]
Chengze Fan, Jun Bi, Yu Zhou, Cheng Zhang, and Haisu Yu. Ns4: A p4-driven network simulator. In Proceedings of the SIGCOMM Posters and Demos, pages 105--107. ACM, 2017.

Cited By

View all
  • (2024)HifiCNet: High-Fidelity Cloud Network Validation Platform at Scale by Hybrid Architecture2024 IEEE 32nd International Conference on Network Protocols (ICNP)10.1109/ICNP61940.2024.10858551(1-12)Online publication date: 28-Oct-2024
  • (2023)Advancing SDN from OpenFlow to P4: A SurveyACM Computing Surveys10.1145/355697355:9(1-37)Online publication date: 16-Jan-2023
  • (2023)Packet processing and data plane program verification: A survey with tools, techniques, and challengesInternational Journal of Communication Systems10.1002/dac.555436:14Online publication date: 14-Jun-2023
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
SOSR '18: Proceedings of the Symposium on SDN Research
March 2018
195 pages
ISBN:9781450356640
DOI:10.1145/3185467
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 28 March 2018

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. P4
  2. programmable data plane
  3. simulation

Qualifiers

  • Short-paper
  • Research
  • Refereed limited

Funding Sources

  • CERNET Innovation Project
  • National Key R&D Program of China
  • National Science Foundation of China

Conference

SOSR '18
Sponsor:
SOSR '18: Symposium on SDN Research
March 28 - 29, 2018
CA, Los Angeles, USA

Acceptance Rates

Overall Acceptance Rate 7 of 43 submissions, 16%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)26
  • Downloads (Last 6 weeks)8
Reflects downloads up to 05 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2024)HifiCNet: High-Fidelity Cloud Network Validation Platform at Scale by Hybrid Architecture2024 IEEE 32nd International Conference on Network Protocols (ICNP)10.1109/ICNP61940.2024.10858551(1-12)Online publication date: 28-Oct-2024
  • (2023)Advancing SDN from OpenFlow to P4: A SurveyACM Computing Surveys10.1145/355697355:9(1-37)Online publication date: 16-Jan-2023
  • (2023)Packet processing and data plane program verification: A survey with tools, techniques, and challengesInternational Journal of Communication Systems10.1002/dac.555436:14Online publication date: 14-Jun-2023
  • (2022)TurboNet: Faithfully Emulating Networks With Programmable SwitchesIEEE/ACM Transactions on Networking10.1109/TNET.2022.314212630:3(1395-1409)Online publication date: Jun-2022
  • (2021)The Programmable Data PlaneACM Computing Surveys10.1145/344786854:4(1-36)Online publication date: Apr-2021
  • (2020)TurboNet: Faithfully Emulating Networks with Programmable Switches2020 IEEE 28th International Conference on Network Protocols (ICNP)10.1109/ICNP49622.2020.9259358(1-11)Online publication date: 13-Oct-2020
  • (2020)An efficient multipath routing schema in multi-homing scenario based on protocol-oblivious forwardingFrontiers of Computer Science10.1007/s11704-019-8397-514:4Online publication date: 3-Jan-2020
  • (2019)A Simulation Framework for Virtualized Resources in Cloud Data Center NetworksIEEE Journal on Selected Areas in Communications10.1109/JSAC.2019.292706637:8(1808-1819)Online publication date: Aug-2019
  • (2019)Dockemu: An IoT Simulation Framework Based on Linux Containers and the ns-3 Network Simulator — Application to CoAP IoT ScenariosSimulation and Modeling Methodologies, Technologies and Applications10.1007/978-3-030-35944-7_4(54-82)Online publication date: 20-Nov-2019

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media