IDEAS home Printed from https://ideas.repec.org/a/wly/intnem/v35y2025i1ne2320.html
   My bibliography  Save this article

Real‐Time Encrypted Traffic Classification in Programmable Networks with P4 and Machine Learning

Author

Listed:
  • Aristide Tanyi‐Jong Akem
  • Guillaume Fraysse
  • Marco Fiore

Abstract

Network traffic encryption has been on the rise in recent years, making encrypted traffic classification (ETC) an important area of research. Machine learning (ML) methods for ETC are widely regarded as the state of the art. However, most existing solutions either rely on offline ETC based on collected network data or on online ETC with models running in the control plane of software‐defined networks, all of which do not run at line rate and would not meet the strict requirements of ultra‐low‐latency applications in modern networks. This work exploits recent advances in data plane programmability to achieve real‐time ETC in programmable switches at line rate, with high throughput and low latency. An extensive analysis is first conducted to show how tree‐based models excel in ETC on various datasets. Then, a workflow is proposed for in‐switch ETC with tree‐based models. The proposed workflow builds on (i) an ETC‐aware random forest (RF) modelling process where only features based on packet size and packet arrival times are used and (ii) an encoding of the trained RF model into off‐the‐shelf P4‐programmable switches. The performance of the proposed in‐switch ETC solution is evaluated on three use cases based on publicly available encrypted traffic datasets. Experiments are then conducted in a real‐world testbed with Intel Tofino switches, in the presence of high‐speed background traffic. Results show how the solution achieves high classification accuracy of up to 95% in QUIC traffic classification, with submicrosecond delay while consuming less than 10% on average of the total hardware resources available on the switch.

Suggested Citation

  • Aristide Tanyi‐Jong Akem & Guillaume Fraysse & Marco Fiore, 2025. "Real‐Time Encrypted Traffic Classification in Programmable Networks with P4 and Machine Learning," International Journal of Network Management, John Wiley & Sons, vol. 35(1), January.
  • Handle: RePEc:wly:intnem:v:35:y:2025:i:1:n:e2320
    DOI: 10.1002/nem.2320
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/nem.2320
    Download Restriction: no

    File URL: https://libkey.io/10.1002/nem.2320?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wly:intnem:v:35:y:2025:i:1:n:e2320. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://doi.org/10.1002/(ISSN)1099-1190 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.