English

UniNet: A Unified Multi-granular Traffic Modeling Framework for Network Security

Cryptography and Security 2025-07-04 v2 Machine Learning Networking and Internet Architecture

Abstract

As modern networks grow increasingly complex--driven by diverse devices, encrypted protocols, and evolving threats--network traffic analysis has become critically important. Existing machine learning models often rely only on a single representation of packets or flows, limiting their ability to capture the contextual relationships essential for robust analysis. Furthermore, task-specific architectures for supervised, semi-supervised, and unsupervised learning lead to inefficiencies in adapting to varying data formats and security tasks. To address these gaps, we propose UniNet, a unified framework that introduces a novel multi-granular traffic representation (T-Matrix), integrating session, flow, and packet-level features to provide comprehensive contextual information. Combined with T-Attent, a lightweight attention-based model, UniNet efficiently learns latent embeddings for diverse security tasks. Extensive evaluations across four key network security and privacy problems--anomaly detection, attack classification, IoT device identification, and encrypted website fingerprinting--demonstrate UniNet's significant performance gain over state-of-the-art methods, achieving higher accuracy, lower false positive rates, and improved scalability. By addressing the limitations of single-level models and unifying traffic analysis paradigms, UniNet sets a new benchmark for modern network security.

Keywords

Cite

@article{arxiv.2503.04174,
  title  = {UniNet: A Unified Multi-granular Traffic Modeling Framework for Network Security},
  author = {Binghui Wu and Dinil Mon Divakaran and Mohan Gurusamy},
  journal= {arXiv preprint arXiv:2503.04174},
  year   = {2025}
}

Comments

16 pages,6 figures, 12 tables; accepted for publication in IEEE Transactions on Cognitive Communications and Networking, 2025

R2 v1 2026-06-28T22:08:48.844Z