Loughborough University
Browse

Quark: implementing convolutional neural networks entirely on programmable data plane

conference contribution
posted on 2025-01-14, 10:05 authored by Mai Zhang, Lin Cui, Xiaoquan Zhang, Fung Po TsoFung Po Tso, Zhang Zhen, Yuhui Deng, Zhetao Li

The rapid development of programmable network devices and the widespread use of machine learning (ML) in
networking have facilitated efficient research into intelligent data plane (IDP). Offloading ML to programmable data plane (PDP) enables quick analysis and responses to network traffic dynamics, and efficient management of network links. However, PDP hardware pipeline has significant resource limitations. For instance, Intel Tofino ASIC has only 10Mb SRAM in each stage, and lacks support for multiplication, division and floating-point operations. These constraints significantly hinder the development of IDP. This paper presents Quark, a framework that fully offloads convolutional neural network (CNN) inference onto PDP. Quark employs model pruning to simplify the CNN model, and uses quantization to support floating-point operations. Additionally, Quark divides the CNN into smaller units to improve resource utilization on the PDP. We have implemented a testbed prototype of Quark on both P4 hardware switch (Intel Tofino ASIC) and software switch (i.e., BMv2). Extensive evaluation results demonstrate that Quark achieves 97.3% accuracy in anomaly detection task while using only 22.7% of the SRAM resources on the Intel Tofino ASIC switch, completing inference tasks at line rate with an average latency of 42.66μs.

Funding

National Natural Science Foundation of China (NSFC) [grant no. 62172189]

IoDT2 - Internet of Digital Twin Things

Innovate UK

Find out more...

Innovate UK: 5G-IoTNet: Enabling Seamless Federation of 5G and IoT Networks [grant no. 10106629]

History

School

  • Science

Department

  • Computer Science

Source

IEEE International Conference on Computer Communications

Publisher

IEEE

Version

  • AM (Accepted Manuscript)

Rights holder

© IEEE

Publisher statement

This accepted manuscript will be made available under the Creative Commons Attribution licence (CC BY) under the JISC UK green open access agreement.

Acceptance date

2024-12-06

Language

  • en

Location

London

Event dates

19th May 2025 - 22nd May 2025

Depositor

Dr Posco Tso. Deposit date: 8 January 2025

Usage metrics

    Loughborough Publications

    Categories

    No categories selected

    Keywords

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC