This work proposes a pipeline for Software Defined Networking (SDN) that enables natural-language-based flow rule configuration using large language models (LLMs). The system addresses two key challenges: 1) the ambiguity and incompleteness of natural language inputs, and 2) the difficulty of reliably translating them into deployable SDN configurations. To this end, the pipeline integrates: i) an intent recognition module that refines user prompts via iterative clarification, and ii) a retrybased correction mechanism that handles failed configurations by regenerating and resubmitting corrected versions. These components are combined with intermediate YAML generation, documentation-based enrichment, and final translation into OpenFlow-compliant JSON for Ryu controllers. The pipeline is evaluated on flow rule deployment tasks of varying complexity, achieving an accuracy up to 96.7%, while maintaining costefficiency with an estimated API cost of only 0.08 per 100 configurations and remaining model model-agnostic.

Flow-Rule Generation for SDN Using LLMs with Retry-Based Deployment Validation

Anouar El Hachimi;Nicola Di Cicco;Mëmëdhe Ibrahimi;Francesco Musumeci;Massimo Tornatore
2025-01-01

Abstract

This work proposes a pipeline for Software Defined Networking (SDN) that enables natural-language-based flow rule configuration using large language models (LLMs). The system addresses two key challenges: 1) the ambiguity and incompleteness of natural language inputs, and 2) the difficulty of reliably translating them into deployable SDN configurations. To this end, the pipeline integrates: i) an intent recognition module that refines user prompts via iterative clarification, and ii) a retrybased correction mechanism that handles failed configurations by regenerating and resubmitting corrected versions. These components are combined with intermediate YAML generation, documentation-based enrichment, and final translation into OpenFlow-compliant JSON for Ryu controllers. The pipeline is evaluated on flow rule deployment tasks of varying complexity, achieving an accuracy up to 96.7%, while maintaining costefficiency with an estimated API cost of only 0.08 per 100 configurations and remaining model model-agnostic.
2025
IEEE 2025 21st International Conference on Network and Service Management (CNSM)
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11311/1298727
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact