Abstract
The objective of internet traffic analysis is to identify latent patterns and ascertain the true state of internet operations by examining traffic data. This approach is considered an effective and valuable means to achieve accurate network management. Whilst the extant network traffic datasets are predominantly collated within a laboratory environment, exhibiting deficiencies with regard to authenticity in terms of network scales, users, behaviours, and temporal and spatial characteristics, this paper proposes an in-situ network deployment and data collection scheme involving a large number of devices and users. The scheme involves the collection of a large real Internet traffic dataset including encrypted and non-encrypted traffic through sensors deployed on real-world network access equipment. Through desensitization, cleaning, feature engineering and labelling, an open database is created for researchers in the field of traffic analysis to use in academic and engineering.
Subject terms: Computer science, Information technology, Scientific data, Statistics, Electrical and electronic engineering
Background & Summary
The Internet has evolved into an essential infrastructure for human life and production, driven by the integration of cloud networks, the expansion of network scale, and the proliferation of diverse network applications. Operator urban network traffic, growing annually by 15%1,2, underscores the critical need to understand key information components and traffic patterns in cloud network traffic. This understanding is vital for enhancing operational value, improving data transformation capabilities, enabling automation and intelligent operations in cloud networks, and enhancing overall customer satisfaction. Concurrently, the rise in various network attack activities, including denial of service attacks, computer worms, and ransomware, poses significant cybersecurity risks3–5.
The industry trend towards automated extraction of valuable service application information from existing network traffic reflects the growing demand for user traffic patterns and network security protection. Network traffic, as a data stream reflecting user network usage patterns, is readily accessible. However, the sheer volume of network data generated continuously on the Internet, such as the substantial data produced by short videos like TikTok every 10 minutes, necessitates a more efficient approach. Relying on individually developed methods and systems to collect network traffic data would be resource-intensive. Therefore, leveraging publicly available datasets that have been cleaned, extracted, and refined for service application analysis is imperative6–11.
While mainstream public datasets like ISCXVPN016 and CSE-CIC-ISDS2018 offer valuable insights, they are static offline datasets collected in simulated test environments without real-time updates1–7. In contrast, our datasets12 are derived from real-time Internet user interaction traffic data collected directly from the real network, rather than through PC or mobile device testing. After anonymizing key user information, our data processing and service application classification models, deployed online on plugins or platforms, extract original service application traffic data and corresponding labels based on session flow dimensions. The processed data is stored in PCAP or CSV formats and collected quasi real-time through terminal plugins integrated with server platforms1,10,13.
For model training and general statistical data analysis, understanding the service application labels associated with each traffic session is crucial. Therefore, labeling traffic data by session and filtering out irrelevant session flows is necessary. Service application tags typically consist of two levels: the primary application category (e.g., web browsing, network video) and specific subcategories (e.g., TikTok, Douyu, iQiyi). Deep packet inspection (DPI) and deep flow inspection (DFI) technologies are commonly used in the industry to annotate network traffic data8,9.
Deep packet inspection and identification
DPI technology, known for its straightforward algorithm and quick deployment, boasts high application identification accuracy, reaching up to 95% for HTTP streams, making it the prevailing standard for traffic analysis. DPI technology primarily scrutinizes the application protocol of traffic by monitoring TCP and HTTP flows to extract essential field values, such as the host and user agent fields. These field values typically contain website URLs with the application name. In engineering, DPI technology is commonly implemented through two methods: mirroring technology, which duplicates data from access devices to servers for unpacking and analysis, and spectroscopic technology, which replicates data through spectral analysis, dividing it between access devices and CR before copying it to servers for further analysis7–10.
Despite its advantages, DPI technology has several drawbacks. Firstly, the substantial amount of data collected and stored in full spectrum or mirror mode includes vast user service data with limited analytical value, leading to high storage and computing costs. DPI technology’s reliance on flow tracking necessitates a significant server infrastructure to support analytical and computational tasks, resulting in substantial investments. Secondly, extracting keyword information from non-encrypted traffic requires analyzing all user data, potentially compromising user privacy, including account information, and introducing security risks. Lastly, with approximately 60% of real network traffic being encrypted, DPI technology struggles to identify encrypted traffic, such as tunneling protocols like HTTPS and anonymous network services that conceal critical information like application signatures.
Deep flow inspection and identification
DFI technology, an emerging traffic analysis approach, differs from DPI by employing a model training and learning methodology13–15. Instead of establishing fixed traffic identification rules based on data, DFI technology extracts features from original traffic data, processes these features, and utilizes them as input for training learning models. Subsequently, unknown traffic data is fed into the trained model for prediction and identification. The effectiveness of DFI technology hinges on the analysis and processing of traffic characteristics, which influences model selection and prediction performance.
DFI technology employs two primary feature extraction methods for network traffic identification: feature statistics-based methods and sequence-based methods. The feature statistics-based approach extracts features from statistical characteristics of each packet side information within a session (e.g., packet length, time interval) and is typically represented by models like random forest and gradient boosting. This method is characterized by low data and model resource consumption, rapid training and prediction speeds, good real-time performance, and the use of lightweight machine learning models, making it unsuitable for extensive data processing13,16.
Sequence-based methods within DFI technology can be categorized into three types. The first method utilizes packet length and other packet side information without statistical aggregation, employing the original feature sequence as model input, often represented by models like LSTM and one-dimensional convolutional neural networks. The second method constructs feature map data based on multiple feature correlations, represented by graph neural network models11,13,17–19. The third method directly converts the original byte sequence of application load data into grayscale or color images, suitable for 2D convolutional neural network models. Sequence-based methods are characterized by high data and model resource consumption, slower training and prediction speeds, and limited real-time performance. However, their use of deep learning models makes them suitable for parallel processing of large traffic data.
Hybrid inspection and identification
The limitations of DPI technology, such as the inability to identify encrypted traffic and high deployment costs, pose significant challenges in real network traffic annotation. Nonetheless, DPI technology offers advantages like simple algorithms, easy implementation, and high application identification accuracy. To address these challenges, our dataset12 leverages a combination of DPI and DFI technologies for annotating network traffic related to service applications. While DPI technology is effective for non-encrypted traffic, manual annotation is employed for encrypted traffic, complemented by DPI annotation for non-encrypted traffic to annotate the entire dataset and develop a DFI model. Subsequently, the trained DFI model enhances the identification of unrecognized and encrypted traffic, resulting in a traffic classification identification accuracy exceeding 95%20–22.
Related work
In recent years, the industry has acknowledged numerous public traffic datasets tailored to various field scenarios. These datasets are typically curated for specific domains and serve purposes ranging from model training for traffic classification and identification to direct statistical analysis of patterns. Prominent network traffic analysis scenarios encompass datasets like the Internet of Things (IoT) dataset, IDS series dataset, ISCX series dataset, and dark network dataset. Table 1 offers a comprehensive overview of information on seven publicly available datasets spanning four major categories, alongside the datasets introduced in this article.
Table 1.
Overview of public datasets.
| Literature | Dataset | Field | FIle Format | Size |
|---|---|---|---|---|
| Gerard Drapper Gil23 | ISCXVPN2016 | service application identification | PCAP | 27.3 G |
| Arash Habibi Lashkari24 | ISCXTor2016 | service application identification | PCAP/CSV | 20 G/14 M |
| Iman Sharafaldin25 | CSE-CIC-IDS2018 | Network attack detection | PCAP | 53 G |
| Iman Sharafaldin26 | CIC-DDoS 2019 | Network attack detection | PCAP/CSV | 21 G/3 G |
| Arash Habibi Lashkar27 | CIC-Darknet2020 | Abnormal traffic detection | CSV | 58 M |
| Sajjad Dadkhah28 | CIC IoT Profiling Dataset 2022 | Behavior identification of IoT devices | PCAP/CSV | 13.2 G/122 M |
| E. C. P. Neto29 | CIC IoT Attack Dataset 2023 | IoT device attack detection | PCAP/CSV | 27.3 G/260 M |
| ours | — | service application identification | PCAP/CSV | 10.4 G/88 M |
ISCXVPN2016
This dataset was developed in 2016 and is mainly used to distinguish between VPN and non VPN traffic data. Developers define a set of tasks and create two simulated accounts for network communication. Based on application services such as Skype and Facebook, they simulate the generation of large categories of traffic data such as web browsing, email, chat, video streaming, file transfer, network phone, P2P transmission, etc. To ensure the purity of traffic, all unnecessary services and applications will be shut down when capturing traffic.
Filters are used to only capture packets with the source or target IP, i.e. the IP addresses of two local client accounts. The traffic was captured using Wireshark and tcpdump, resulting in a total of 28GB of data stored in Packet Capture (PCAP) file format23. For VPN data, use an external VPN service provider and connect using OpenVPN (UDP mode), instead of using a regular network connection for non VPN data.
ISCXTor2016
This dataset was developed in 2016 and is mainly used to distinguish between BT (Bit Torrent) and non BT traffic data. The dataset capture, feature extraction, and data annotation are similar to the ISCXVPN2016 dataset. The ISCXTor2016 dataset contains a total of 22GB of traffic data, including web browsing, email, chat, video streaming, file transfer, network phone, P2P transmission, and other categories. In addition to being stored in the original PCAP file format, the generated PCAP file is also read by ISCxFlowMeter and corresponding CSV feature files are created based on the selected functions24.
CSE-CIC-IDS2018
This dataset was developed in 2018 and captures traffic from Amazon e-commerce platform servers. It is generated systematically using the concept of configuration files, which will include detailed descriptions of intrusions and abstract distribution models of applications, protocols, or lower level network entities. These configuration files contain feature representations of network events and behaviors, which are combined to generate a different set of datasets, each with a unique set of features. The final dataset includes 5 different attack scenarios: brute force attacks, botnet attacks, denial of service (DDos) attacks, web attacks, and penetration attacks. The attack infrastructure includes 50 machines, and the victim organization has 5 departments, including 420 machines and 30 servers. This dataset includes network traffic captured by each machine and system logs25. CSE-CIC-IDS2018 is based on the CICFlowMeter tool for traffic capture and parsing. The CICFlowMeter tool is a network traffic generator written in Java. Its feature capture is based on bidirectional flow and can generate up to 83 statistical features, such as duration, number of packets, number of bytes, packet length, etc. It is calculated in two directions: upstream and downstream.
CIC-DDoS 2019
This dataset was developed in 2019 and includes both normal and the latest common DDoS attacks. By using simulated DDoS attacks, the training and testing sets were generated by executing 12 DDoS attacks and 7 DDoS attacks respectively. Each attack required recording of raw data, including network traffic (Pcaps) and event logs for each machine. Then, the CICFlowMeter tool was used for network traffic analysis, extracting over 80 traffic features and saving them as CSV files for each machine, If you want to extract custom features, you can use the original PCAP file to extract feature26. This dataset records the behavior data of 25 users based on application layer email protocols such as HTTP, HTTPS, FTP, SSH, etc. The vulnerable protocols used for attacks include NTP, DNS, LDAP, MSSQL, BIOS, SNMP, SSDP, UDP, UDP Lag, WebDDoS, SYN, and TFTP.
CIC-Darknet2020
This data set was developed in 2020. The dark network comes from the unused IP address space of the Internet. Any traffic data from the dark network has a passive listening nature, accepting incoming packets, but not supporting outgoing packets. Due to the absence of legitimate hosts in dark networks, any traffic cannot be traced, and is often considered a network testing or configuration error. The classification of dark network traffic is very important for classifying real-time applications, and analyzing dark network traffic helps to monitor malware and detect malicious activities early before malware attacks27. CIC-Darknet2020 merged two other public datasets, ISCxTor2016 and ISCxVPN2016, to detect and characterize VPN and Tor applications together as the true representatives of dark network traffic, in order to create a complete dark network dataset that covers Tor and VPN traffic, respectively. In the CICDarknet2020 dataset, traffic categories include audio streaming, browsing, chatting, email, P2P, transmission, video streaming, and VOIP, with each category containing both normal and dark network traffic.
CIC IoT profiling dataset 2022
This dataset was developed in 2022 with the main goal of generating a comprehensive IoT dataset for analysis, behavior analysis, and vulnerability testing of different IoT devices using different protocols (such as IEEE 802.11, based on Zigbee and Z-Wave). This dataset configures various network traffic data for conducting and capturing device undercurrents and important attacks in IoT environments, analyzes the behavior exhibited by IoT devices, and includes different scenarios of IoT and analyzes the behavior of devices in different situations. In addition, this dataset also includes traffic data of IoT devices during startup and idle periods, making it convenient for analyzing specific scenarios. The traffic data collection environment is configured with a 64 bit Window computer through laboratory network configuration, which has two network interface cards and one connected to a network gateway and the other connected to an unmanaged network switch. Meanwhile, the open-source network protocol analyzer Wireshark listens to these two interfaces, capturing and saving output pcap files28.
Therefore, IoT devices that require Ethernet connection will be connected to this switch. In addition, the intelligent automation center Vera Plus is also connected to a non managed switch, which creates our wireless IoT environment and provides services for IoT devices compatible with Wi Fi, ZigBee, Z-Wave, and Bluetooth. In order to collect data, Wireshark and dumpcap were used in six different types of experiments to capture the network traffic of IoT devices passing through the gateway, generating PCAP files and dumpcap files, which can be conveniently used for various model experiments related to IoT application scenarios. This dataset category covers four different scenarios: startup/shutdown comparison traffic data of IoT devices, active/idle comparison traffic data of devices in startup state, traffic data of devices communicating with each other, and traffic data of devices being attacked.
CIC IoT attack dataset 2023
This dataset was developed in 2023 and can serve as a real-time benchmark dataset for large-scale attacks in IoT environments. Its main goal is to provide a novel and extensive IoT attack dataset to promote the development of security analysis applications in actual IoT operations29. To this end, 105 attacks were executed in an IoT topology consisting of 33 devices. The environment, method, and generated data files for traffic data collection are similar to the CIC IoT Profiling Dataset 2022 dataset.
Our dataset
Existing public datasets are often tailored to specific applications in particular scenarios, such as IoT data and network attack data, resulting in fragmented coverage and limited scope. These datasets are typically generated in laboratory settings for simulated data collection, influenced by the hardware environment and experimental configurations. The controlled settings lead to small-scale data collection, restricting the representation of real-world service applications accessed by users. Moreover, public datasets offer static data from a limited number of test users, lacking updates and timeliness.
In contrast, the data collection approach proposed in this article involves gathering data from large-scale edge devices in authentic network environments, primarily focusing on access devices. By deploying plugins or platforms on these access devices, real user internet traffic is collected, providing a more accurate reflection of the diverse service applications accessed by users. The dataset12 introduced in this article can effectively identify and classify both encrypted and non-encrypted traffic, enabling operators to tailor precise marketing strategies. Additionally, it facilitates the provision of customized proactive services for different user segments, ultimately enhancing user satisfaction.
Methods
This paper focuses on creating real Internet data, and the focus of this dataset12 is data collection and data feature extraction. This article will first introduce the overall method of generating traffic datasets based on the data collection sources of different network location segments, and then subdivide the content into three parts: data collection, data processing, and online deployment.
Overall method for generating datasets
The data collection framework encompasses two primary components: traffic acquisition from access devices, specifically the Broadband Remote Access Server (BRAS), and edge devices, particularly the Optical Network Unit (ONU), as shown in Fig. 1. Within the network topology, the BRAS and ONU serve as critical elements for traffic monitoring and data acquisition.
Fig. 1.
Data collection framework.
The BRAS, functioning as the access point for the Optical Line Terminal (OLT) port, plays a pivotal role in optical signal reception and transmission. Typically interconnected with multiple network devices through an optical brancher, it serves as the crucial interface bridging user equipment and the operator’s core network infrastructure. Through its integration with the OLT, the BRAS executes essential operations including optical multiplexing/demultiplexing, channel connection assignment and control, while simultaneously providing auxiliary functionalities such as real-time network monitoring, system management, and maintenance operations.
The network architecture primarily consists of two essential passive components: the Optical Distribution Network (ODN) and its integrated Optical Branching Device (OBD). The OBD features a hierarchical structure comprising two distinct branches: the primary Optical Branching Device (OBD1) and the secondary Optical Branching Device (OBD2), which collectively facilitate optical signal distribution within the network infrastructure. At the user terminal, the home gateway serves as the output interface of the PON port, primarily functioning as the user interface between terminal equipment and the Passive Optical Network (PON). Beyond its fundamental role in optoelectronic conversion (supporting Ethernet frame format), the gateway implements comprehensive network functionalities, including Layer 2 and Layer 3 switching operations. These advanced capabilities facilitate efficient data routing between network segments, thereby enhancing transmission reliability and network performance.
When numerous network units like access devices and edge devices continuously monitor Internet traffic, they can capture real-time packets from a large volume of users utilizing the network simultaneously. To effectively leverage this data, a series of processing and transformations are necessary. Initially, the plugin system deployed in the network units conducts data cleaning to eliminate erroneous or abnormal data, ensuring the accuracy of subsequent processing. The plugin system processes the captured traffic data by filtering and converting formats to enhance its suitability for further analysis.
Following data cleaning and feature calculation, the data undergoes additional processing to generate PCAP and CSV files. PCAP files, a standard format for capturing network traffic, meticulously record packet information flowing through network units, serving as raw material for subsequent traffic analysis. Conversely, CSV files present data in tabular form, facilitating rapid data analysis and processing by researchers. These files are stored in a cloud server to ensure data accessibility and persistence30,31.
Massive data files are downloaded from the cloud server to the local server through an interface between the two. On the local server, this data is utilized to train AI models, enabling them to learn network traffic characteristics and patterns, analyze data using proprietary algorithms and model structures. Through continuous learning and refinement, the model’s prediction accuracy improves gradually, uncovering valuable insights and patterns. During the training process, the AI model offers feedback for optimizing plugin deployment based on prediction results and feature selection methods. Upon receiving this feedback, the plugin system guides plugins to enhance and adjust feature calculation methods. This closed-loop data processing mechanism ensures continuous system optimization and progress. Through this collaborative approach, network units, plugin systems, cloud servers, and local servers collectively form an efficient and intelligent data processing system, enhancing data utilization and providing robust support for network traffic analysis.
To validate the authenticity of the data acquisition environment, Table 2 presents an actual network topology resource tree link information, including the Logical Identification (LOID) of an user’s optical modem, OBD2 code, OBD1 code, OLT code, OLT port, BRAS code, BRAS port.
Table 2.
An example of Network topology resource tree information.
| LOID | OBD2 code | OBD1 code | OLT code | OLT port | BRAS code | BRAS port |
|---|---|---|---|---|---|---|
| 13257376 | GW025015/OBD7005/OUT02 | GW025/OBD8011 | NC-NB-DongF2F-OLT.HXTA6800X15-01(09) | EPON_1/6/2 | SC-NC-NCDGL-NSE-1.MAN.TE40E | D02/K/TE40E-X16-0001/01/06.0(P101E)/01/GigabitEthernet3/1/1 |
Data collection
Data collection from edge devices
The ONU plug-in collects raw traffic based on port replication. Since some session flows contain a large number of data payload packets, and considering the usage of computing and storage resources deployed online, only a portion of the packets are selected for statistical computing32. Therefore, the first N packets of each flow are intercepted for statistical feature extraction. experimental methods were used to select N = 4,6,8,12,16,24,32,48,64. According to the trend chart of the accuracy rate of classification and recognition based on business application categories, when N < 8, increasing the value of N causes the classification accuracy rate to increase rapidly, However, after N > 8, the model classification accuracy tends to remain almost unchanged. It is finally determined that it is most appropriate to collect only the first 8 (the number of packets can be set remotely by the perception platform) packets for statistical feature extraction through three layers of switching. The relationship between the number of packets per stream and the service classification accuracy is shown in Fig. 2.
Fig. 2.

The relationship between top-n packets of each flow and bussiness recognition.
By utilizing the traffic capture engine within the perception plugin to capture packets from specified network interfaces, protocol analysis is conducted on network packets. Data sharing the same IP + port + layer 4 protocol (5-tuple) is categorized as a stream, enabling in-depth analysis of the data stream to generate corresponding logs for streams conforming to protocol rules. Integration of perception plugins into gateway devices enables comprehensive traffic data collection, with the plugin monitoring designated links as per platform directives to assess network quality and interface with the network quality monitoring platform33.
The process commences with the network management platform issuing specific traffic data collection instructions, generating subscription tasks through the southbound interface to interact with the service data center platform and the USM plugin data platform. The subscription command is dispatched to the designated terminal, where the plugin receives and processes the subscription request. The raw traffic byte sequence is read, and the service data center platform collaborates with the backend data platform to parse, extract features, and annotate the application protocol of the raw data byte streams in batches.
Post-parsing of the original traffic, data such as five tuples, MAC, HOST, User Agent, Cookies, SNI, packet counts, packet intervals, and packet sizes are obtained. The backend analysis platform categorizes and organizes diverse data based on services, discarding non-client-server communication packets lacking internal network addresses. This organized data is periodically relayed to the network management platform in a predefined format, with a default reporting interval of 100 ms, remotely adjustable via the awareness platform.
The edge devices plugin processes the reported data by extracting, cleaning, filtering, labeling, and removing duplicates, enhancing subsequent data analysis and processing capabilities. Leveraging host, URL, and other reported information, a high-performance application identification engine based on Hyperscan is utilized to identify user applications and construct a service identification feature library34. The application feature library is then disseminated to the plugin, enabling matching of message feature words or features to ascertain traffic service types. Ultimately, the five tuples, side channel features (packet quantity, length, arrival time interval), and corresponding service application labels are utilized for application classification and identification. Additionally, IP and application libraries are established to support data classification and identification.
Data collection from access devices
To implement traffic data collection on a access devices device in a prefecture-level city, with 19,417 online users generating bidirectional traffic of around 45 Gbit/s during peak hours from 8 to 10 in the evening (Beijing Standard Time Zone, China), and approximately 2.47 million network session connections every 5 minutes, the following steps can be taken35:
1. Deploy software packages on the access devices device to facilitate traffic data collection.
2. Configure the software to collect traffic data from multiple users of broadband web applications.
3. Set parameters such as the maximum packet capture rate, number of packets, duration, and capture mode (raw or pure stream capture) for manual packet capture.
4. Upon completion of the capture process, the interface should automatically generate PCAP files for further analysis. For traffic application protocol matching identification on the access devices device, deep packet detection technology is employed with two distinct methods:
The BRAS traffic application protocol matching and identification method employs deep packet inspection technology, which can be implemented in two approaches:
1. DNS Domain Name Resolution Method: Extract application and protocol names from DNS domain name resolutions of various HTTP protocol-based fields (e.g., host, user-agent) by tracking HTTP flows.
2. Payload Byte Sequence Method: Search for specific byte sequences within a large volume of original payload traffic to establish a mapping rule table between the payload byte sequences and application protocols. - Maintain this mapping rule table to identify newly captured traffic application protocols based on the protocol rule table.
Data processing
The traffic data collected by edge devices and access devices undergoes processing by the plugin platform or board system to generate data files (PCAP, CSV) that are then uploaded to the cloud storage server. The workflow involves uploading PCAP files to the ownCloud server, which are subsequently transferred to the local server. Conversely, CSV files are initially uploaded to the local server, where all PCAP files are converted into CSV format. The CSV files from various sources are consolidated and fed into the AI model for feature selection. The offline AI model provides feedback on feature importance scores to the edge devices and access devices collection platforms for re-selection and calculation of traffic features. This process, depicted in Fig. 1, encompasses steps 3–5 as a closed loop for traffic feature selection. Upon finalizing the essential features, the results are stored in the ownCloud cloud storage server in a stable CSV format as the definitive traffic data.The extracted traffic features typically fall into three categories36:
1. Dimensional Features: Comprising five key features: user-server IP, user-server port number, and protocol. These five-tuple features uniquely identify session basic information.
2. Statistical Features: Utilized for identifying side channel information in DFI technology, including session packet size, packet arrival time interval, protocol features, etc.
3. Label Features: Encompassing application categories and specific sub-applications corresponding to the conversation, aiding in traffic classification and identification.
Service application classification label
Based on the statistical distribution analysis of real network users’ access to Internet application instances and leveraging traffic monitoring professional software, a set of nine standardized service application category labels has been established. These categories include network storage, network transmission, network video, web games, instant messaging, network security, tunnel protocol, mail service, and web browsing1,3. The selection criteria for these applications prioritize mainstream popular applications that are widely accessed by real network users. This selection approach ensures that the collected data is not only easily obtainable but also more indicative of the traffic characteristics associated with each category tag. For a detailed breakdown of application category names and specific examples from the real network traffic data selection, please refer to Table 3.
Table 3.
Service application classification label.
| Application category | Application instance |
|---|---|
| network-storage | Baidu Netdisk |
| Tianyi Cloud Disk | |
| Alibaba Cloud | |
| Hua Weiyun | |
| network-transmission | Thunderbolt |
| BT Download | |
| Emule | |
| video | Station B |
| Tiktok | |
| Tencent Video | |
| IQiyi Video | |
| Youku Video | |
| Mango TV | |
| Tencent Meeting | |
| game | League of Legends |
| Honor of Kings | |
| instant-message | |
| web-browsing | Alipay webpage |
| Today’s Headlines | |
| Zhihu | |
| Baidu Baike | |
| mail-service | 163 email |
| QQ email | |
| 189 email |
Service application feature extraction
The feature extraction process for real network data involves several steps, as outlined in Fig. 3:
1. Pure Purification Treatment of Original PCAP Files: - Split the PCAP file into different sessions based on the same quintuple and use the SplitCap tool to divide the original captured PCAP file into multiple pure stream files, each containing a unique quintuple.
2. Invalid IP Address Removal: - Eliminate session flows lacking user IPs, typically intranet or special addresses like 192.168.x.x or 100.64.x.x.
3. Packet Filtering: - Select only the first 8 data packets for each session to optimize resource deployment for feature extraction algorithms.
4. Packet Division: - Divide each packet into uplink and downlink packets based on whether the user IP is the source or destination, resulting in three types of packet sets.
5. Original Feature Selection: - Extract two sets of side channel numerical sequences from each data packet: packet arrival time interval and packet byte number.
6. Feature Statistical Calculation: - Compute 8 statistical values for each session flow packet, including minimum, maximum, mean, median absolute deviation, standard deviation, median, 25th percentile, and 75th percentile. This results in a total of 48 features across uplink packets, downlink packets, and all packets.
7. Increase the number of Packets Feature: - Enhance the feature set by including the number of uplink packets.
8. Add Transport Layer Protocol Features: - Introduce transport layer protocol encoding (0 for TCP, 1 for UDP protocol, otherwise 2).
9. Add Application Layer Protocol Features: - Include the number of fixed ports 80/443 corresponding to HTTP/HTTPS, resulting in 4 features for uplink and downlink.
10. Associated Service Application Labels:For edge devices data, extract and associate with DPI, match with the IP and port of the PCAP file based on the server IP and port to label each row of feature data. For access devices data, the service application name in the PCAP file directly associates with each row of feature data.
Fig. 3.
Feature extraction process of real network data.
The 54 feature representation segments are detailed in Table 4. The features are represented as: , where T, L, N, and C denote packet inter-arrival time, packet length, packet count, and protocol code, respectively. The superscript d indicates the traffic direction: d = up,down. The absence of the superscript d indicates bidirectional traffic. For the T and L features, the subscript Δ denotes the variation in time or length, and the subscript s represents the statistical feature state: s = min,max,mean,mad,std,p25,p50,p75, which stand for minimum, maximum, mean, median absolute deviation, standard deviation, 25th percentile, 50th percentile (median), and 75th percentile, respectively. For the N feature, the subscript proto indicates the selection of the application layer protocol. If this subscript is absent, it means that no specific protocol is distinguished Figs. 4, 5.
Table 4.
Extracted statistical features.
| Flow direction | Side channel information | Feature Count | Feature representation (s = min,max,mean,mad,std,p25,p50,p75) |
|---|---|---|---|
| double-link | Package arrival time interval | 8 | TΔs |
| Package length | 8 | LΔs | |
| Transport layer protocol encoding | 1 | Cproto | |
| uplink | Package arrival time interval | 8 | |
| Package length | 8 | ||
| Number of packages | 3 | ||
| downlink | Package arrival time interval | 8 | |
| Package length | 8 | ||
| Number of packages | 2 |
Fig. 4.
The samples of raw data (PCAP file).
Fig. 5.
The samples of processed data after feature extraction (CSV file).
Data Records
The proposed dataset12 is publicly available in the figshare repository (10.6084/m9.figshare.28380347). It comprises four files, including two archived files containing network traffic data and two CSV files with metadata. Notably, all PCAP files within the original compressed traffic archives have undergone anonymization of both source and destination MAC/IP addresses to ensure privacy compliance:
1. BRAS-datasets.rar: Contains raw traffic data (PCAP format) captured from BRAS network elements, encompassing 23 data files across 7 service application categories described in this study (Total size: 5.36 GB).
2. ONU-datasets.rar: Includes raw traffic data (PCAP format) collected from ONU network units, containing 41 data files spanning 7 service application categories specified in this work (Total size: 5.05 GB).
3. Bras_features.csv: Feature file generated through our proposed methodology, containing extracted characteristics from BRAS-originated PCAP files.
4. Onu_features.csv: Feature file derived using our presented approach, comprising processed features from ONU-sourced PCAP files.
Additionally, both raw datasets collected from edge devices (ONU) and access devices (BRAS), along with feature-engineered datasets for model input, are publicly accessible via GitHub: https://github.com/zqxfree/Real-network-datasets-for-application-analysis/blob/main/dataset. Our dataset12 records encompass the following 8 aspects:
1. Traffic Data Source: The traffic data is sourced from two collection platforms: access devices collection boards and edge devices collection plugins, capturing real user traffic from the network.
2. Data Application Scope: The data is utilized for traffic analysis and service application identification within the network environment.
3. Data File Format: Data collected by the access devices and edge devices plugins are all stored in PCAP file format.
4. Collection Environment: The access devices collection platform is situated on a device serving 19.5 thousand active users with 45Gbit/s bidirectional traffic during peak hours. The edge devices plugin is deployed on an edge devices in a prefecture-level city, generating 400 log entries per unit per second, serving 26.4 thousand active users with a daily storage capacity of 3.3TB in the ES database.
5. Data Volume: The access devices platform gathers 5.36GB of service application identification data also in PCAP format while the edge devices plugin platform collects 5.05GB of data stored in PCAP files.
6. Data Collection Period (Beijing Standard Time Zone, China): Data collection spans morning (9:00–12:00), afternoon (14:00–17:00), and evening (18:00–22:00) time periods.
7. Selected Features: A total of 54 features are extracted from the access devices plugins and edge devices boards for model input, with standardized service application category labels as model output.
8. Feature Extraction: The access devices plugin and edge devices board data generate 244,216 and 81,406 samples, respectively, after feature extraction.
These aspects provide a comprehensive overview of the data collection process, sources, formats, environment, volume, features, and collection period for the traffic data obtained from edge devices and access devices devices19–21 Table 5.
Table 5.
Overview of dataset12 indicators.
| source | Total size | bandwidth | Collection period | Original data format | Processed file format | Total session number | Total packet number | Precessing Method | Model input features | Model output features (labels) | CSV file line count | Sample correspondence |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| edge devices (ONU) | 5.05GB | 22MB |
9:00-12:00 14:00-17:00 18:00-22:00 |
PCAP | CSV | 81406 | 10234865 | Renaming PCAP files using application tags based on timestamps | Table 4 | Table 3 | 81406 | One row of data corresponds to one session and one sample |
| access devices (BRAS) | 5.36GB | 66MB |
9:00-12:00 14:00-17:00 18:00-22:00 |
PCAP | CSV | 244216 | 27595448 | Split the original PCAP file by session | Table 4 | Table 3 | 244216 | One row of data corresponds to one session and one sample |
Technical Validation
This section initially compares our extracted dataset12 with a publicly available one, ISCXVPN2016, to verify its data integrity, quality, and authenticity, as depicted in Fig. 6. We choose ISCXVPN2016, which closely resembles the dataset12 proposed in this paper, for the comparison. Here are the three aspects of comparison:
1. Data quality: Both datasets cover the same seven major application categories as shown in Table 3, indicating a reasonable coverage and completeness of our data. A further comparison of PCAP files’ size and session counts per category (Table 6) reveals that our dataset’s12 file sizes and session numbers are similar to ISCXVPN2016, suggesting high data quality.
2. Data integrity: We assess the integrity by examining PCAP files’ transport layer protocols, dividing them into TCP and UDP streams. We compare TCP stream completeness (counting as 1 if all three-way handshake connections in a stream are complete, and 0 otherwise) with ISCXVPN2016. Since UDP is unreliable, we compare stream-based packet loss rates (counting as 1 if there’s a packet loss in a stream, and 0 otherwise). As shown in Table 7, the two datasets have results as following:
Fig. 6.
Technical validation framework.
Table 6.
Data quality statistical distribution comparison.
| Application category | size(GB) | session number | ||
|---|---|---|---|---|
| Our datasets12 | ISCXVPN201623 | Our datasets12 | ISCXVPN201623 | |
| network-storage | 1.20 | 3.12 | 37236 | 64644 |
| network-transmission | 1.87 | 4.85 | 57827 | 100388 |
| video | 0.38 | 0.97 | 11525 | 20001 |
| game | 0.47 | 1.21 | 14434 | 25058 |
| instant-message | 1.85 | 4.8 | 57234 | 99359 |
| web-browsing | 2.40 | 6.22 | 74142 | 128706 |
| mail-service | 2.24 | 6.14 | 73224 | 127118 |
| 10.41 | 27.31 | 325622 | 565274 | |
Table 7.
Data integrity statistical distribution comparison.
- TCP stream integrity above 99%, with our dataset12 having a higher proportion, indicating better TCP stream integrity.
- UDP packet loss rates below 0.05%, with our dataset12 having a lower rate, suggesting better UDP stream integrity.
In conclusion, our data integrity is strong.
3. Data authenticity: From the collected traffic from the total 45,803 users (including 19,417 BRAS users and 26,386 ONU users), 10 users were selected for an interview survey, indicating that the users’ behavior reflected in these data is consistent with real-world network usage patterns.
In summary, our dataset12 is of high quality, integrity, and authenticity, making it suitable for future relevant research purposes.
Usage Notes
To ensure optimal user experience while maintaining efficient and stable quality of service (QoS), the Network Management System (NMS) plays an indispensable role in traffic monitoring. This process is explicitly stipulated in the Service Level Agreement (SLA) governing user services.
The SLA comprehensively discloses critical details regarding traffic monitoring, including monitoring purposes, methodologies, and technical implementations, thereby ensuring full transparency for users regarding network surveillance during service utilization. This disclosure constitutes an essential element in safeguarding user rights and establishing trustworthy user-provider relationships. Furthermore, as user traffic data remains dissociated from personally identifiable information (PII) such as telephone numbers, no ethical concerns arise from this monitoring framework.
Moving forward, novel traffic data will be periodically incorporated to supersede obsolete records, contingent upon maintaining relative stability in total data volume. This dynamic updating mechanism ensures sustained dataset relevance and utility. Through this protocol, researchers may access contemporaneous network traffic data to fulfill evolving analytical requirements in telecommunications studies.
Acknowledgements
This paper is supported and assisted by the University of Electronic Science and Technology of China Telecom Sichuan Branch.
Author contributions
Wei Jiang and Bin Zhang proposes data collection frameworks. Qixun Zhu, Conghui Liao, and Wenyong Wang conducted the validaiton experiments and analyzed the results. All authors wrote and reviewed the manuscript.
Code availability
Python codes for dataset can be obtained freely at https://github.com/zqxfree/Real-network-datasets-for-application-analysis, with no restrictions to access.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
These authors contributed equally: Wei Jiang, Bin Zhang.
Change history
6/20/2025
A Correction to this paper has been published: 10.1038/s41597-025-05417-7
References
- 1.Boutaba, R. et al. A comprehensive survey on machine learning for networking: evolution, applications and research opportunities. Journal of Internet Services and Applications.9, 1–99, 10.1186/s13174-018-0087-2 (2018). [Google Scholar]
- 2.Salman, O. et al. A Review on Machine Learning Based Approaches for Internet Traffic Classification. Ann. Telecommun.75, 673–710, 10.1007/s12243-020-00770-7 (2020). [Google Scholar]
- 3.Papadogiannaki, E. & Ioannidis, S. A Survey on Encrypted Network Traffic Analysis Applications, Techniques, and Countermeasures. ACM Computing Surveys (CSUR).54, 1–35, https://api.semanticscholar.org/CorpusID:236898570 (2021). [Google Scholar]
- 4.Cunha, V. C. et al. A Complete Review on the Application of Statistical Methods for Evaluating Internet Traffic Usage. IEEE Access.10, 128433–128455, https://ieeexplore.ieee.org/document/9970716/ (2022). [Google Scholar]
- 5.Shen, M. et al. Machine Learning-Powered Encrypted Network Traffic. Analysis: A Comprehensive Survey. IEEE Communications Surveys & Tutorials.25, 791–824, https://ieeexplore.ieee.org/document/9896143 (2023). [Google Scholar]
- 6.Dehghani, F., Movahhedinia, N., Khayyambashi, M. R. & Kianian, S. Real-Time Traffic Classification Based on Statistical and Payload Content Features. 2010 2nd International Workshop on Intelligent Systems and Applications. https://ieeexplore.ieee.org/abstract/document/5473467 (2010).
- 7.Goo, Y.-H., Shim, K.-S., Lee, S.-K. & Kim, M.-S. Payload signature structure for accurate application traffic classification. 2016 18th Asia-Pacific Network Operations and Management Symposium (APNOMS).https://api.semanticscholar.org/CorpusID:17812984 (2016).
- 8.Shen, M., Liu, Y., Zhu, L., Du, X. & Hu, J. Fine-Grained Webpage Fingerprinting Using Only Packet Length Information of Encrypted Traffic. IEEE Transactions on Information Forensics and Security.16, 2046–2059, https://ieeexplore.ieee.org/abstract/document/9305740 (2021). [Google Scholar]
- 9.Taylor, V. F. & Spolaor, R. Conti, Mauro & Martinovic, Ivan. Robust smartphone app identification via encrypted network traffic analysis. IEEE Transactions on Information Forensics and Security.13, 63–78, https://ieeexplore.ieee.org/document/8006282 (2018). [Google Scholar]
- 10.Sengupta, S. H. Kim, & J. Rexford. Continuous in-network round-trip time monitoring. Proceedings of the ACM SIGCOMM 2022 Conference. 2022. 10.1145/3544216.3544222 (2022).
- 11.Jiang, M., Gou, G., Shi, J. & Xiong, G. I know what you are doing with remote desktop. 2019 IEEE 38th International Performance Computing and Communications Conference (IPCCC). https://api.semanticscholar.org/CorpusID:210693719 (2019).
- 12.Jiang, W., Zhang, B., Zhu, Q.-X. & Liao, C.-H. A Real Network Environment Dataset for Traffic Analysis. figshare10.6084/m9.figshare.28380347 (2025). [DOI] [PMC free article] [PubMed]
- 13.Liu, Q. F. et al. Measurement, modeling, and analysis of TCP in high-speed mobility scenarios. 2016 IEEE 36th International Conference on Distributed Computing Systems (ICDCS). https://www.sci-hub.ru/10.1109/ICDCS.2016.43 (2016).
- 14.Loh, F., Wamser, F., Poigne, F., Geissler, S. & Hossfeld. T. YouTube Dataset on Mobile Streaming for Internet Traffic Modeling, Network Management, and Streaming Analysis. Scientific Data. 9, https://api.semanticscholar.org/CorpusID:249628741 (2022).
- 15.Shen, M. et al. Encrypted traffic classification of decentralized applications on ethereum using feature fusion. 2019 IEEE/ACM 27th International Symposium on Quality of Service (IWQoS). 10.1145/3326285.3329053 (2019).
- 16.Shen, M. et al. Optimizing feature selection for efficient encrypted traffic classification: A systematic approach. IEEE Network.34(4), 20–27, 10.1109/MNET.011.1900366 (2020). [Google Scholar]
- 17.Yu, K., Liu, Y., Qing, L., Wang, B. & Cheng, Y. Positive and unlabeled learning for user behavior analysis based on mobile internet traffic data. IEEE Access.6, 37568–37580, 10.1109/ACCESS.2018.2852008 (2018). [Google Scholar]
- 18.Koumar, J. & Čejka, T. Network traffic classification based on periodic behavior detection. 2022 18th International Conference on Network and Service Management (CNSM). 10.23919/CNSM55787.2022.9964556 (2022).
- 19.Xuemei, Z. et al. Flow context and host behavior based shadowsocks’s traffic identification. IEEE Access.7, 41017–41032, 10.1109/ACCESS.2019.2907149 (2019). [Google Scholar]
- 20.Dong, C., Zhang, C., Lu, Z., Liu, B. & Jiang, B. CETAnalytics: Comprehensive effective traffic information analytics for encrypted traffic classification. Comput. Networks.176, 107258 https://api.semanticscholar.org/CorpusID:218775924 (2020). [Google Scholar]
- 21.Shen, M. et al. DeepQoe: Real-time measurement of video qoe from encrypted traffic with deep learning. 2020 IEEE/ACM 28th International Symposium on Quality of Service (IWQoS). 10.1109/IWQoS49365.2020.9212897 (2020).
- 22.Khokhar, M. J., Ehlinger, T & Barakat, C. From network traffic measurements to QoE for internet video. 2019 IFIP Networking Conference (IFIP Networking). 10.23919/IFIPNetworking.2019.8816854 (2019).
- 23.Draper-Gil, G, Lashkari, A. H., Saiful, M., Mamun, I. & Ghorbani, A. A. Characterization of Encrypted and VPN Traffic using Time-related Features. International Conference on Information Systems Security and Privacy. https://api.semanticscholar.org/CorpusID:21535780 (2016).
- 24.Lashkari, A. H., Draper-Gil, G., Mamun, M. S. I. & Ghorbani, A. A. Characterization of Tor Traffic using Time based Features. International Conference on Information Systems Security and Privacy. https://api.semanticscholar.org/CorpusID:38122314 (2017).
- 25.Sharafaldin, I., Lashkari, A. H. & Ghorbani, A. A. Toward Generating a New Intrusion Detection Dataset and Intrusion Traffic Characterization. International Conference on Information Systems Security and Privacy. https://api.semanticscholar.org/CorpusID:4707749 (2018).
- 26.Sharafaldin, I., Lashkari, A. H., Hakak, S. & Ghorbani. A. A. Developing Realistic Distributed Denial of Service (DDoS) Attack Dataset and Taxonomy. 2019 International Carnahan Conference on Security Technology. 10.1109/CCST.2019.8888419 (2019).
- 27.Habibi Lashkari, A.,Kaur, G. & Rahali, A. DIDarknet: A Contemporary Approach to Detect and Characterize the Darknet Traffic using Deep Image Learning. 10th International Conference on Communication and Network Security. 10.1145/3442520.3442521 (2020).
- 28.Dadkhah, S. et al. Towards the development of a realistic multidimensional IoT profiling dataset. 2022 19th Annual International Conference on Privacy, Security & Trust(PST). 10.1109/PST55820.2022.9851966 (2022).
- 29.Neto, E. C. P. et al. CICIoT2023: A Real-Time Dataset and Benchmark for Large-Scale Attacks in IoT Environment. Sensors.23(13), 5941, 10.3390/s23135941 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Wassermann, S., Seufert, M., Casas, P. & Li, L. G. & K. Vicrypt to the rescue: Real-time, machine-learning-driven video-qoe monitoring for encrypted streaming traffic. IEEE Transactions on Network and Service Management.17, 2007–2023, https://api.semanticscholar.org/CorpusID:228090082 (2020). [Google Scholar]
- 31.Xu, Z. & Zhang, A. Network traffic type-based quality of experience (qoe) assessment for universal services. Applied Sciences.9(19), 4107, 10.3390/app9194107 (2019). [Google Scholar]
- 32.Lin, H., Yan, Z., Fu, Y., & Chen, Y. Adaptive security-related data collection with context awareness. Journal of Network and Computer Applications, 126, 88–103, https://link.springer.com/chapter/10.1007/978-3-030-30619-9_1 7 (2019).
- 33.Jing, X., Yan, Z., Pedrycz, W., & Zhao, J. Network traffic fusion and analysis against DDoS flooding attacks with a novel reversible sketch. Information Fusion, 51, 100-113, https://link.springer.com/chapter/10.1007/978-3-030-30619-9_1 7 (2019).
- 34.Yue, Y. et al. A data collection method for mobile wireless sensor networks based on improved dragonfly algorithm[J]. Computational Intelligence and Neuroscience2022(1), 4735687 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Izenberg, M. et al. A community-partnered approach to social network data collection for a large and partial network[J]. Field Methods35(2), 153–159 (2023). [Google Scholar]
- 36.Kong, J. et al. Secure and High-available Cloud Optical Network Data Collecting and Analysis System[C]. Optical Fiber Communication Conference. Optica Publishing GroupW3A, 5 (2023). [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Citations
- Jiang, W., Zhang, B., Zhu, Q.-X. & Liao, C.-H. A Real Network Environment Dataset for Traffic Analysis. figshare10.6084/m9.figshare.28380347 (2025). [DOI] [PMC free article] [PubMed]
Data Availability Statement
Python codes for dataset can be obtained freely at https://github.com/zqxfree/Real-network-datasets-for-application-analysis, with no restrictions to access.





