Universal Embedding Function for Traffic Classification via QUIC Domain Recognition Pretraining: A Transfer Learning Success

Jan Luxemburk, Karel Hynek, Richard Plný, Tomáš Čejka
2/18/2025
cs.LGcs.NI

No official code found. Best implementation: CESNET/cesnet-models (28 stars, BSD-3-Clause, last commit 2026-03-23). 1 more below.

Abstract

Encrypted traffic classification (TC) methods must adapt to new protocols and extensions as well as to advancements in other machine learning fields. In this paper, we follow a transfer learning setup best known from computer vision. We first pretrain an embedding model on a complex task with a large number of classes and then transfer it to five well-known TC datasets. The pretraining task is recognition of SNI domains in encrypted QUIC traffic, which in itself is a problem for network monitoring due to the growing adoption of TLS Encrypted Client Hello. Our training pipeline -- featuring a disjoint class setup, ArcFace loss function, and a modern deep learning architecture -- aims to produce universal embeddings applicable across tasks. The proposed solution, based on nearest neighbors search in the embedding space, surpasses SOTA performance on four of the five TC datasets. A comparison with a baseline method utilizing raw packet sequences revealed unexpected findings with potential implications for the broader TC field. We published the model architecture, trained weights, and transfer learning experiments.

View on arXivView PDF

Code Implementations(2)

BSD-3-Clause

CESNET Models: Neural networks for network traffic classification

284PythonMar 14, 20247 months agoBSD-3-Clause
computer-networksdeep-learningencrypted-trafficmachine-learningtraffic-classification
CESNET/tc-transferCommunity59%
BSD-3-Clause

This project provides code to reproduce the transfer learning experiments from Universal Embedding Function for Traffic Classification via QUIC Domain Recognition Pretraining: A Transfer Learning Success

11Python, Jupyter NotebookAug 13, 20257 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{luxemburk2025universal,
  title  = {Universal Embedding Function for Traffic Classification via QUIC Domain Recognition Pretraining: A Transfer Learning Success},
  author = {Jan Luxemburk and Karel Hynek and Richard Plný and Tomáš Čejka},
  year   = {2025},
  eprint = {2502.12930},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12930v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12930.svg)](https://codeofpaper.com/paper/2502.12930)

Discussion