skip to main content
10.1145/3565009.3569520acmconferencesArticle/Chapter ViewAbstractPublication PagesconextConference Proceedingsconference-collections
research-article

Henna: hierarchical machine learning inference in programmable switches

Published: 06 December 2022 Publication History

Abstract

The recent proliferation of programmable network equipment has opened up new possibilities for embedding intelligence into the data plane. Deploying models directly in the data plane promises to achieve high throughput and low latency inference capabilities that cannot be attained with traditional closed loops involving control-plane operations. Recent efforts have paved the way for the integration of trained machine learning models in resource-constrained programmable switches, yet current solutions have significant limitations that translate into performance barriers when coping with complex inference tasks. In this paper, we present Henna, a first in-switch implementation of a hierarchical classification system. The concept underpinning our solution is that of splitting a difficult classification task into easier cascaded decisions, which can then be addressed with separated and resource-efficient tree-based classifiers. We propose a design of Henna that aligns with the internal organization of the Protocol Independent Switch Architecture (PISA), and integrates state-of-the-art strategies for mapping decision trees to switch hardware. We then implement Henna into a real testbed with off-the-shelf Intel Tofino programmable switches using the P4 language. Experiments with a complex 21-category classification task based on measurement data demonstrate how Henna improves the F1 score of an advanced single-stage model by 21%, while keeping usage of switch resources at 8% on average.

References

[1]
Albert Banchs, Marco Fiore, Andres Garcia-Saavedra, and Marco Gramaglia. 2021. Network Intelligence in 6G: Challenges and Opportunities (MobiArch '21). ACM, NY, USA, 7--12.
[2]
Dario Bega, Marco Gramaglia, Marco Fiore, Albert Banchs, and Xavier Costa-Perez. 2020. AZTEC: Anticipatory Capacity Allocation for Zero-Touch Network Slicing. In IEEE INFOCOM 2020.
[3]
Pat Bosshart, Dan Daly, Glen Gibb, Martin Izzard, Nick McKeown, Jennifer Rexford, Cole Schlesinger, Dan Talayco, Amin Vahdat, George Varghese, and David Walker. 2014. P4: Programming Protocol-Independent Packet Processors. SIGCOMM Comput. Commun. Rev. 44, 3 (jul 2014), 87--95.
[4]
Raouf Boutaba, Mohammad A. Salahuddin, Noura Limam, Sara Ayoubi, Nashid Shahriar, Felipe Estrada Solano, and Oscar Mauricio Caicedo Rendón. 2018. A comprehensive survey on machine learning for networking: evolution, applications and research opportunities. J. Internet Serv. Appl. 9, 1 (2018), 16:1--16:99.
[5]
Coralie Busse-Grawitz, Roland Meier, Alexander Dietmüller, Tobias Bühler, and Laurent Vanbever. 2019. pForest: In-Network Inference with Random Forests. CoRR abs/1909.05680 (2019). arXiv:1909.05680
[6]
Daniel Camps-Mur, Anastasius Gavras, Mir Ghoraishi, Halid Hrasnica, Alexandros Kaloxylos, Markos Anastasopoulos, Anna Tzanakaki, Gokul Srinivasan, Kiril Antevski, Jorge Baranda, Koen Schepper, Claudio Casetti, Carla Chiasserini, Andres Garcia-Saavedra, Carlos Guimares, Koteswararao Kondepu, Xi Li, Lina Magoula, Marco Malinverno, and Tezcan Cogalan. 2021. AI and ML - Enablers for Beyond 5G Networks. 5G PPP Technology Board (2021).
[7]
Gerald Combs. 1998. Tshark. Wireshark (1998). https://www.wireshark.org/docs/man-pages/tshark.html
[8]
Nick Feamster and Jennifer Rexford. 2017. Why (and How) Networks Should Run Themselves. CoRR (2017). arXiv:1710.11583
[9]
Anteneh A. Gebremariam, Muhammad Usman, and Marwa Qaraqe. 2019. Applications of Artificial Intelligence and Machine Learning in the Area of SDN and NFV: A Survey. SSD 2019 (2019), 545--549.
[10]
Hanxian He, Kourosh Khoshelham, and Clive Fraser. 2017. A two-step classification approach to distinguishing similar objects in mobile LIDAR point clouds. ISPRS Annals of Photogrammetry, Remote Sensing and Spatial Information Sciences IV-2/W4, 67--74.
[11]
Intel. 2016. Tofino Programmable Ethernet Switch ASIC. (2016). https://www.intel.com/content/www/us/en/products/network-io/programmable-ethernet-switch/tofino-series.html
[12]
Marios Evangelos Kanakis, Ramin Khalili, and Lin Wang. 2022. Machine Learning for Computer Systems and Networking: A Survey. ACM Comput. Surv. (Feb 2022).
[13]
Jong-Hyouk Lee and Kamal Preet Singh. 2020. SwitchTree: in-network computing and traffic analyses with Random Forests. Neural Computing and Applications (2020), 1--12.
[14]
Yingchi Mao, Andri Pranolo, Leonel Hernandez, Aji Prasetya Wibawa, and Zalik Nuryana. 2022. Artificial intelligence in mobile communication: A Survey. IOP Conference Series: Materials Science and Engineering 1212, 1 (jan 2022), 012046.
[15]
Netronome. 2016. Netronome Agilio SmartNICs. (2016). https://www.netronome.com/products/smartnic/overview/
[16]
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. 2011. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research 12 (2011).
[17]
Dan R. K. Ports and Jacob Nelson. 2019. When Should The Network Be The Computer? (HotOS '19). ACM, NY, USA, 209--215.
[18]
Dario Rossi and Liang Zhang. 2022. Landing AI on Networks: An equipment vendor viewpoint on Autonomous Driving Networks. Huawei Technologies (2022).
[19]
Amedeo Sapio, Ibrahim Abdelaziz, Abdulla Aldilaijan, Marco Canini, and Panos Kalnis. 2017. In-Network Computation is a Dumb Idea Whose Time Has Come. In HotNets'17 (Palo Alto, CA, USA). ACM, NY, USA.
[20]
Carlos Nascimento Silla and Alex Alves Freitas. 2010. A survey of hierarchical classification across different application domains. Data Mining and Knowledge Discovery 22 (2010), 31--72.
[21]
Giuseppe Siracusano and Roberto Bifulco. 2018. In-network Neural Networks. CoRR (2018). arXiv:1801.05731
[22]
Giuseppe Siracusano, Salvator Galea, Davide Sanvito, Mohammad Malekzadeh, Hamed Haddadi, Gianni Antichi, and Roberto Bifulco. 2022. Re-architecting Traffic Analysis with Neural Network Interface Cards. In NSDI. USENIX, Renton, WA.
[23]
Arunan Sivanathan, Hassan Habibi Gharakheili, Franco Loi, Adam Radford, Chamith Wijenayake, Arun Vishwanath, and Vijay Sivaraman. 2019. Classifying IoT Devices in Smart Environments Using Network Traffic Characteristics. IEEE Transactions on Mobile Computing 18, 8 (2019).
[24]
Tushar Swamy, Alexander Rucker, Muhammad Shahbaz, Ishan Gaur, and Kunle Olukotun. 2022. Taurus: A Data Plane Architecture for Per-Packet ML. ASPLOS (2022).
[25]
Aaron Turner and Fred Klassen. 2013. Tcpreplay. https://tcpreplay.appneta.com/
[26]
Bruno Missi Xavier, Rafael Silva Guimarães, Giovanni Comarela, and Magnos Martinello. 2021. Programmable Switches for in-Networking Classification. In IEEE INFOCOM 2021.
[27]
Guorui Xie, Qing Li, Yutao Dong, Guanglin Duan, Yong Jiang, and Jingpu Duan. 2022. Mousika: Enable General In-Network Intelligence in Programmable Switches by Knowledge Distillation. In IEEE INFOCOM 2022. 1938--1947.
[28]
Zhaoqi Xiong and Noa Zilberman. 2019. Do Switches Dream of Machine Learning? Toward In-Network Classification. In HotNets 2019 (Princeton, NJ, USA). ACM, NY, USA, 25--33.
[29]
Xiaoquan Zhang, Lin Cui, Fung Po Tso, and Weijia Jia. 2021. pHeavy: Predicting Heavy Flows in the Programmable Data Plane. IEEE Transactions on Network and Service Management 18, 4 (2021), 4353--4364.
[30]
Changgang Zheng, Zhaoqi Xiong, Thanh T Bui, Siim Kaupmees, Riyad Bensoussane, Antoine Bernabeu, Shay Vargaftik, Yaniv Ben-Itzhak, and Noa Zilberman. 2022. IIsy: Practical In-Network Classification. arXiv (2022).
[31]
Changgang Zheng, Mingyuan Zang, Xinpeng Hong, Riyad Bensoussane, Shay Vargaftik, Yaniv Ben-Itzhak, and Noa Zilberman. 2022. Automating In-Network Machine Learning. arXiv (2022).
[32]
Changgang Zheng and Noa Zilberman. 2021. Planter: Seeding Trees within Switches. In SIGCOMM '21 (Princeton, NJ, USA). ACM, NY, USA, 12--14.

Cited By

View all

Index Terms

  1. Henna: hierarchical machine learning inference in programmable switches

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image ACM Conferences
        NativeNi '22: Proceedings of the 1st International Workshop on Native Network Intelligence
        December 2022
        38 pages
        ISBN:9781450398879
        DOI:10.1145/3565009
        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: 06 December 2022

        Permissions

        Request permissions for this article.

        Check for updates

        Author Tags

        1. P4
        2. in-switch inference
        3. machine learning
        4. programmable switch

        Qualifiers

        • Research-article

        Funding Sources

        Conference

        CoNEXT '22
        Sponsor:

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • Downloads (Last 12 months)100
        • Downloads (Last 6 weeks)8
        Reflects downloads up to 06 Jan 2025

        Other Metrics

        Citations

        Cited By

        View all

        View Options

        Login options

        View options

        PDF

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media