cs.NINov 17, 2026

Do LLMs Understand Network Traces? A Comparative Study of Reasoning over Raw and Filtered Traffic Data

Authors: Irene Gosálvez-White, Roberto Magán-Carrión, Carlota de la Vega-Soriano, Pedro García-Teodoro

Organizations: Network Engineering & Security Group - CITIC School of Computer Science and Telecommunication Engineering University of Granada Granada, Spain

Abstract

The effective delivery and monitoring of ICT services rely heavily on network traffic analysis. However, interpreting complex packet captures remains a challenging task that requires substantial technical expertise. Large language models (LLMs) offer promising opportunities to automate network traffic in- vestigation, yet their reliability in packet-level field extraction and flow-level sequence reconstruction remains an open research question. This study proposes a reproducible, question-answering- based evaluation methodology to assess the capabilities of LLMs in network trace analysis. Using real-world benign traffic from the CICIDS2017 dataset, we evaluate multiple models against a human-generated ground truth, comparing their performance on raw textual traffic dumps and protocol-filtered representations. Model responses are assessed through an automated LLM- as-a-judge pipeline, validated against human evaluations. The results demonstrate that protocol filtering significantly reduces prompt overhead while improving answer accuracy by reducing incorrect responses. These findings highlight the importance of protocol-aware traffic filtering as an effective optimization for improving the efficiency and reliability of LLM-assisted network management.

Figures & tables

Explore similar work

CardsList
  1. A Large-Scale Benchmark and Risk Assessment of Traffic Analysis Attacks on Cloud LLM Services

    Sep 25, 2026Shahrooz Pouryousef, Jesus Lopez, Saeefa Rubaiyet Nowmi +4LLM SecurityPrivacy Leakage in Language Models

  2. Attribution-Driven Explainable Intrusion Detection with Encoder-Based Large Language Models

    Apr 7, 2026Umesh Biswas, Shafqat Hasan, Syed Mohammed Farhan +2Explainable Intrusion DetectionLLMs for Cybersecurity