Skip to main content
QUICK REVIEW

[Paper Review] A Federated Semi-Supervised Learning Approach for Network Traffic Classification

Yao Peng, Meirong He|arXiv (Cornell University)|Jul 8, 2021
Internet Traffic Analysis and Secure E-votingComputer Science21 references8 citations
TL;DR

This paper proposes a federated semi-supervised learning framework for network traffic classification that preserves user privacy and reduces reliance on labeled data. By training a global model across decentralized clients using unlabeled traffic data and labeled data on a central server, the approach achieves 91.08% and 97.81% accuracy using simple and incremental sampling, respectively, with minimal performance gap compared to centralized training.

ABSTRACT

Network traffic classification, a task to classify network traffic and identify its type, is the most fundamental step to improve network services and manage modern networks. Classical machine learning and deep learning method have developed well in the field of network traffic classification. However, there are still two major challenges. One is how to protect the privacy of users' traffic data, and the other is that it is difficult to obtain labeled data in reality. In this paper, we propose a novel approach using federated semi-supervised learning for network traffic classification. In our approach, the federated servers and several clients work together to train a global classification model. Among them, unlabeled data is used on the client, and labeled data is used on the server. Moreover, we use two traffic subflow sampling methods: simple sampling and incremental sampling for data preprocessing. The experimental results in the QUIC dataset show that the accuracy of our federated semi-supervised approach can reach 91.08% and 97.81% when using the simple sampling method and incremental sampling method respectively. The experimental results also show that the accuracy gap between our method and the centralized training method is minimal, and it can effectively protect users' privacy and does not require a large amount of labeled data.

Motivation & Objective

  • To address the challenge of protecting user privacy in network traffic classification.
  • To reduce dependency on large-scale labeled traffic data, which is costly and difficult to obtain.
  • To develop a collaborative learning framework where clients train locally on unlabeled data and the server aggregates updates using labeled data.
  • To evaluate the effectiveness of two traffic subflow sampling methods—simple and incremental sampling—in improving model accuracy.
  • To demonstrate that federated semi-supervised learning can achieve performance close to centralized training while preserving data privacy.

Proposed method

  • A federated learning framework is designed where multiple clients hold unlabeled network traffic data and a central server holds labeled data.
  • Clients perform local model training on unlabeled traffic data using a semi-supervised learning strategy, leveraging both labeled and unlabeled samples.
  • The server aggregates model updates from clients using FedAvg or similar aggregation techniques to train a global classification model.
  • Two subflow sampling methods—simple sampling and incremental sampling—are applied to preprocess traffic data and improve training efficiency and accuracy.
  • The approach integrates self-training or pseudo-labeling mechanisms to utilize unlabeled data effectively in the semi-supervised setting.
  • The global model is iteratively refined through communication rounds between clients and the server, minimizing data transfer and preserving privacy.

Experimental results

Research questions

  • RQ1Can federated semi-supervised learning effectively classify network traffic while preserving user data privacy?
  • RQ2How does the performance of the proposed federated approach compare to centralized training in terms of classification accuracy?
  • RQ3What is the impact of different traffic subflow sampling strategies—simple and incremental sampling—on model accuracy?
  • RQ4To what extent can the proposed method reduce the need for large-scale labeled traffic data?
  • RQ5Does the federated learning architecture maintain high model generalization despite decentralized and unlabeled data?

Key findings

  • The proposed federated semi-supervised learning approach achieves 91.08% accuracy when using the simple sampling method on the QUIC dataset.
  • With incremental sampling, the model reaches 97.81% accuracy, demonstrating the effectiveness of the sampling strategy.
  • The performance gap between the federated approach and centralized training is minimal, indicating strong generalization capability.
  • The method effectively protects user privacy by keeping raw traffic data on local devices and only sharing model updates.
  • The approach significantly reduces dependency on labeled data, making it practical for real-world deployment where labeling is expensive.
  • The incremental sampling method outperforms simple sampling, suggesting that adaptive data selection improves model learning efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.