RepTC: Representation-Aware Optimization for Efficient Traffic Classification on Edge IoT Devices
Adel Chehade, Edoardo Ragusa, Paolo Gastaldo, Rodolfo Zunino
Abstract
Traffic classification (TC) is crucial to secure Internet of Things (IoT) networks, whose edge nodes often operate under privacy, bandwidth, and energy constraints. Yet, encrypted payloads and limited computing power make accurate, real-time TC a challenging task. Existing learning-based TC approaches often fix the input configuration a priori, even though it directly influences both predictive performance and computational cost. This paper presents RepTC, a representation-aware hardware-constrained strategy that addresses session-level TC through joint model and input optimization. The method co-optimizes network architecture, session length, and header preprocessing; this enables joint control of model complexity, input scale, and data representation within a unified resource-constrained design space. The proposed approach enforces microcontroller-class constraints on memory, model size, and computation, and yields compact models deployable on low-power edge devices. A gateway monitors traffic by aggregating sessions and either performs inference locally or offloads to a low-power edge node. Both scenarios are validated on heterogeneous embedded hardware, including a Raspberry Pi 3B+, STM32 Nucleo-F401RE, and XIAO ESP32-C3, spanning Cortex-A, Cortex-M, and RISC-V processor architectures; measured inference latency ranges from 0.63 to 18.59 ms, with MCU-side inference energy between 0.50 and 1.41 mJ per session. RepTC yields configurations that achieve high accuracy on a variety of established benchmarks: 96.21% on ISCX VPN-nonVPN, 99.62% on USTC-TFC2016, and 99.97% on Edge-IIoTset; at the same time, model size and computational requirements were reduced by up to three orders of magnitude compared with state-of-the-art methods. The results show that representation-aware optimization can improve efficiency while preserving competitive classification performance.
Create a lesson
Metadata
- Categories
- cs.NI, cs.LG
- Comments
- 17 pages, 10 figures, 13 tables
Related papers
NetCoFi: A Budget-Aware Coarse-Fine Dual-Branch Model for Encrypted Traffic Classification
Shared title terminologycs.NIZhengyi Ma, Qiming Yu, Chungang Lin et al.
Movement-Cost-Aware Energy Minimization in Pinching Antenna-Assisted WPCN: A Joint Energy-Time Optimization
Shared title terminologycs.NIXiang Zhang, Ke Xiong, Wei Chen et al.
Beyond Raw IQ: Compact Semantic Representations for Task Oriented Automatic Modulation Classification
Shared title terminologycs.NIOmm Swarup, Shrishail M. Hiremath
HiGAI-Net: Hierarchical Encrypted Traffic Classification for Generative AI Services
Shared title terminologycs.NIMadhan Raj Kanagarathinam, Jaheon Gu, Krishna M. Sivalingam et al.
SliceWise: Traffic-Aware Multi-Agent RL with Temporal Encoding for Joint Slice Admission and Resource Orchestration in O-RAN
Shared title terminologycs.NIXingqi Wu, Yuhui Wang, Junaid Farooq et al.
Robust Lightweight IoT Device Fingerprinting Under Network Traffic Anomalies
Shared title terminologycs.NIRoya Taheri, Shamik Sengupta