Skip to main content
Article
100%
HD

Software‑defined networking (SDN) separates the brain of the network (control plane) from its body (data plane). This flexibility is great, but it also makes the control hub an attractive target for hackers. Traditional defenses focus on known attacks, like DDoS, but what happens when a brand‑new threat appears?

A research team turned network flow data into "sentences" that a language model, BERT‑base‑uncased, can understand. In practice, each packet becomes a word and sequences of packets form sentences for BERT to analyze. Using Random Forest, the most useful features are selected, cutting computational load.

The outcome? A system that evaluates multiple flows at once, making decisions more robust. In tests, BERT identified known attacks with 99.96β€―% accuracy and, surprisingly, kept the same performance on never‑seen attacks. This shows that a well‑trained language model can spot hidden patterns in network traffic, anticipating emerging threats.

The approach paves the way for smarter defenses in SDN, where detecting the unknown is key to keeping networks safe and resilient.

Bonus
100%
HD

The BERT‑base‑uncased model was originally trained on 3.3 billion tokens from Wikipedia and BookCorpus, enabling it to capture long‑range contextual relationships. To adapt it to the networking domain, packet flows were encoded into token sequences representing attributes such as IP address, port, protocol, and packet size. This tokenization preserves the temporal and hierarchical structure of traffic, allowing BERT to learn dependencies between network events. Feature selection with Random Forest reduces the token count from 512 to roughly 150, retaining the most discriminative information for classification. Supervised training employs a balanced cross‑entropy loss to handle potential class imbalance between attack and legitimate traffic. To achieve generalization to unseen threats, a fine‑tuning approach with data augmentation was used: synthetic flows were generated by varying timing and size parameters, simulating zero‑day attacks. The result is a model that, thanks to its transformer architecture, can infer anomaly patterns even when token sequences differ significantly from the training set, providing robust resilience against rapid evolution of attack tactics.

Ask AI

Explore key aspects of this story with 3 quick insights

Source

Authors:
Mohammed N. SwilehShengli Zhang
Date Published:
Original Article www.mdpi.com
Fact-check verified on 14/05/2026
Read our Editorial Guidelines & AI Ethics Policy
Creative Commons License CC BY-NC-SA 4.0

Keep exploring

Discover the full archive of science bites or head back to home

Riconnessione al server... Aggiornamento della sessione in corso
Connessione interrotta Impossibile stabilire il collegamento
Sessione aggiornata Ricarica per visualizzare i contenuti