Toward secure SDN infrastructure in smart cities: Kafka-enabled machine learning framework for anomaly detection
Article
Karthick, G., Mapp, G. and Crowcroft, J. 2025. Toward secure SDN infrastructure in smart cities: Kafka-enabled machine learning framework for anomaly detection. Future Internet. 17 (9). https://doi.org/10.3390/fi17090415
| Type | Article |
|---|---|
| Title | Toward secure SDN infrastructure in smart cities: Kafka-enabled machine learning framework for anomaly detection |
| Authors | Karthick, G., Mapp, G. and Crowcroft, J. |
| Abstract | As smart cities evolve, the demand for real-time, secure, and adaptive network monitoring, continues to grow. Software-Defined Networking (SDN) offers a centralized approach to managing network flows; However, anomaly detection within SDN environments remains a significant challenge, particularly at the intelligent edge. This paper presents a conceptual Kafka-enabled ML framework for scalable, real-time analytics in SDN environments, supported by offline evaluation and a prototype streaming demonstration. A range of supervised ML models covering traditional methods and ensemble approaches (Random Forest, Linear Regression & XGBoost) were trained and validated using the InSDN intrusion detection dataset. These models were tested against multiple cyber threats, including botnets, dos, ddos, network reconnaissance, brute force, and web attacks, achieving up to 99% accuracy for ensemble classifiers under offline conditions. A Dockerized prototype demonstrates Kafka’s role in offline data ingestion, processing, and visualization through PostgreSQL and Grafana. While full ML pipeline integration into Kafka remains part of future work, the proposed architecture establishes a foundation for secure and intelligent Software-Defined Vehicular Networking (SDVN) infrastructure in smart cities. |
| Keywords | intelligent edge environment; SDN; ML; kafka pipeline; anomaly detection; smart cities |
| Sustainable Development Goals | 9 Industry, innovation and infrastructure |
| 11 Sustainable cities and communities | |
| Middlesex University Theme | Sustainability |
| Publisher | MDPI |
| Journal | Future Internet |
| ISSN | |
| Electronic | 1999-5903 |
| Publication dates | |
| Online | 11 Sep 2025 |
| Sep 2025 | |
| Publication process dates | |
| Submitted | 14 Jul 2025 |
| Accepted | 02 Sep 2025 |
| Deposited | 22 Sep 2025 |
| Output status | Published |
| Publisher's version | License File Access Level Open |
| Copyright Statement | © 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
| Digital Object Identifier (DOI) | https://doi.org/10.3390/fi17090415 |
| Web of Science identifier | WOS:001580866100001 |
https://repository.mdx.ac.uk/item/2vq0qz
Download files
296
total views30
total downloads63
views this month6
downloads this month