EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC-ND 4.0

Implementation of the K-Means Clustering Algorithm for Network Traffic Analysis on Debian 12

Daniel Silaban, Gracia Simatupang, Fasrad Juang Harefa, Lotar Mateus Sinaga

Tech-E · 2026

DOI: 10.31253/te.v10i1.4796 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Tech-E, 2026. Verfasst von Daniel Silaban und 3 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-ND 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Network traffic analysis is a crucial aspect of maintaining server performance and security. This study aims to implement the K-Means clustering algorithm to group network traffic characteristics on a server running the Debian 12 Bookworm operating system. Raw data was collected in real time using the tcpdump utility on the enp0s3 network interface by capturing 3,000 data packets (packet capture/PCAP). The raw data was then extracted using tshark into CSV format based on the Packet Size and Frequency features as input parameters for data mining. Clustering was evaluated for K values ranging from 2 to 10 using inertia, the Silhouette Score, and the Davies–Bouldin Index. K=3 was retained to represent macro-level segmentation, while K=5 was examined to provide a more detailed traffic representation based on the combined consideration of cluster validity and interpretability. For K=3, the mean packet sizes ranged from 121.00 to 1,241.85 bytes, while for K=5 they ranged from 118.75 to 1,303.81 bytes. The findings demonstrate the feasibility of K-Means as an initial approach for descriptive network-traffic segmentation. However, the study did not directly evaluate anomaly-detection accuracy or cybersecurity effectiveness. The findings demonstrate the feasibility of K-Means as an initial approach for descriptively segmenting Debian 12 network traffic based on packet size and packet frequency.

Zitieren

APA

Silaban, D., Simatupang, G., Harefa, F. J., & Sinaga, L. M. (2026). Implementation of the K-Means Clustering Algorithm for Network Traffic Analysis on Debian 12. Tech-E. https://doi.org/10.31253/te.v10i1.4796

Vancouver

Silaban D, Simatupang G, Harefa FJ, Sinaga LM. Implementation of the K-Means Clustering Algorithm for Network Traffic Analysis on Debian 12. Tech-E. 2026. doi:10.31253/te.v10i1.4796

BibTeX
@article{Silaban2026,
  author = {Silaban, Daniel and Simatupang, Gracia and Harefa, Fasrad Juang and Sinaga, Lotar Mateus},
  title = {Implementation of the K-Means Clustering Algorithm for Network Traffic Analysis on Debian 12},
  journal = {Tech-E},
  year = {2026},
  doi = {10.31253/te.v10i1.4796}
}
Kostenlos starten →