Enhancing Network Traffic Classification with Large Language Models
Authors:
- 15 December 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 7282-7291
Abstract
The growing complexity and volume of modern network traffic, driven by the rise of connected devices and cloud services, present significant challenges to traditional classification methods. These methods often fail to adapt to the dynamic and multifaceted nature of today’s network environments, which can compromise security and efficiency. In this paper, we present a novel approach that leverages Large Language Models (LLMs) to classify network traffic. Our proposed methodology utilizes the advanced capabilities of LLMs to understand and categorize network traffic based on their inherent patterns, enhancing the accuracy and efficiency of network analysis. First, we preprocess network traffic data by organizing it into formats compatible with LLMs. Next, we evaluate various LLMs, employing different prompts to determine their effectiveness in accurately classifying network traffic. Finally, we demonstrate the application of this LLM-driven approach in real-world scenarios, showcasing its potential to revolutionize network traffic classification. Our approach achieves an average F1-score of 0.952. In comparison with traditional machine learning-based methods, particularly Naïve Bayes, SVM, and MLP, our method outperforms them. It highlights the significant advancements in network traffic analysis achievable through the integration of LLMs, paving the way for more robust and intelligent network security solutions.Keywords
Funding Information
- Bureau of Justice Assistance
This publication has 18 references indexed in Scilit:
- Network traffic classification: Techniques, datasets, and challengesDigital Communications and Networks, 2024
- Early ChatGPT User Portrait through the Lens of Data2023
- ChatGPT for good? On opportunities and challenges of large language models for educationLearning and Individual Differences, 2023
- Towards the Deployment of Machine Learning Solutions in Network Traffic Classification: A Systematic SurveyIEEE Communications Surveys & Tutorials, 2018
- Ensemble network traffic classification: Algorithm comparison and novel ensemble scheme proposalComputer Networks, 2017
- Can encrypted traffic be identified without port numbers, IP addresses and payload inspection?Computer Networks, 2011
- Better network traffic identification through the independent combination of techniquesJournal of Network and Computer Applications, 2010
- A detailed analysis of the KDD CUP 99 data set2009
- What is a support vector machine?Nature Biotechnology, 2006
- A survey of decision tree classifier methodologyIEEE Transactions on Systems, Man, and Cybernetics, 1991