arXiv:2609.31397cs.NISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.31397

Intent2Tc: Automated Intent-to-Traffic Control Translation with Language Models

Andrea Masini, Sudipta Acharya, Paolo Bellavista, Luca Foschini, Burak Kantarci

Andrea Masini, Sudipta Acharya, Paolo Bellavista, Luca Foschini, Burak Kantarci

Abstract—Automated and highly usable Quality-of-Service (QoS) enforcement requires translating high-level service intents into deployable traffic-management policies. Although intent-based networking (IBN) has simplified policy specification, bridging the gap between business-level intents and executable network configurations remains complex, error-prone, and difficult to automate. This paper presents Intent2Tc, a closed-loop language-model-driven framework that translates business-level traffic-shaping intents into declarative sub-intents and subsequently into validated, executable Linux traffic control (tc) configurations. The framework integrates an Active Queue Management (AQM)-based digital twin (DT) semantic model, automated metadata extraction, critique-driven refinement, and Retrieval-Augmented Generation (RAG)-based knowledge reuse to improve semantic consistency and configuration reliability. We evaluate multiple open-source large language models (LLMs) and small language models (SLMs), together with Claude Sonnet-4.6, on 100 Request for Comments (RFC) 9315-compliant traffic-shaping intents. Across both translation stages, Intent2Tc achieves high semantic fidelity, configuration accuracy, and deployment readiness, with Claude Sonnet-4.6 reaching 0.98 semantic similarity, 1.0 semantic unit coverage, and 0.045 normalized edit distance. Furthermore, RAG reduces token consumption and inference latency while enabling compact models such as Phi-4-mini to approach the performance of substantially larger models. Linux tc serves as the target configuration platform, demonstrating the practical applicability of the proposed framework.

Index Terms—IBN, Linux tc, language models, RAG.

I. INTRODUCTION

Interest in IBN frameworks has grown significantly in recent years [1], [2], driven by the need to simplify traffic management and enable autonomous actuation, supervision, and adaptation across various scenarios [3]. Research shows that most existing IBN work focuses on the underlying infrastructure layer [4], while the intent-processing pipeline remains dependent on slow, repetitive, and error-prone manual creation of network-shaping rules. More recently, language models (LMs) have emerged as a pivotal approach for intent translation, mediating between high-level human articulations and the underlying network configuration primitives [5], [6]. Despite notable advances in the validation and orchestration stages [6], the terminal translation phase is largely left to manual intervention [7]. Intent2Tc addresses this gap as a natural-language-to-tc translator focused on the acquisition-and-translation stage of the IBN lifecycle.

Recently, the authors of [8] introduced the first queueing-theory-based end-to-end LM-driven intent-to-tc translation pipeline, but it relied on static keyword matching and a single-pass critique, which limited recovery from mismatches and learning from validated outputs. To overcome these limitations, we propose a closed-loop framework with dynamic metadata extraction, multi-stage critique, and RAG-based knowledge reuse to improve accuracy, robustness, and adaptability.

Our framework follows a three-phase workflow: (1) an AQM-based DT provides a semantic model of the simulated priority-queueing network; (2) an LM extracts metadata (aided by a confidence-based common-patterns lookup table (LUT)), decomposes the intent into declarative sub-intents, and generates Linux tc rules, while a Critique Module (CM) corrects hallucinations, duplicates, and omissions after each stage; (3) the RAG database (RAG DB) is updated with the corrected intent, sub-intents, and tc rules, and indexed by traffic profile and time bounds. The key contributions of this work are as follows:

• A scalable DT environment implementing priority-class queueing with AQM, enabling semantic-model generation for diverse traffic-shaping scenarios.

• A RAG DB of validated intents, sub-intents, and tc rules to support continual improvement in intent translation.

• A closed-loop LM-driven framework for translating traffic-shaping intents into deployable tc rules through DT-based semantic modeling, dynamic traffic-profile matching, confidence-based metadata extraction, critique-driven correction, and RAG-assisted knowledge reuse.

To evaluate end-to-end intent-to-tc translation, we transform a publicly available business-intent dataset [9] into 100 RFC 9315-compliant traffic-shaping intents [2], preserving their real-world context. We evaluate multiple open-source LLMs and SLMs available on Hugging Face [10] with and without RAG augmentation, including Hermes-2-Pro (8B), Qwen-3 (4B/8B), Phi-4-mini (3.8B), Llama-3.1 (8B), Qwen3.5-Claude-Opus4.6-Distill (9B), Gemma-4-E4B (8B), and IBM Granite-4.1 (8B), using Claude Sonnet-4.6 as a closed-source baseline. The reported results show highly accurate traffic-profile and time-bound extraction, while RAG reduces token usage and inference latency. Claude Sonnet-4.6 achieves 0.98 semantic similarity, 1.0 semantic unit coverage, and 0.045 normalized edit distance.

The remainder of this paper is structured as follows. Section II reviews related work and identifies the gap in closed-loop intent-to-tc translation. Section III presents the proposed framework, including semantic modeling, metadata extraction, critique-driven correction, and RAG-based knowledge reuse. Section IV describes the dataset, evaluation metrics, case

Andrea Masini, Sudipta Acharya and Burak Kantarci are with the University of Ottawa, Ottawa, ON, Canada. Emails: {amasi092,sacharya2,burak.kantarci}@uottawa.ca

Andrea Masini, Paolo Bellavista and Luca Foschini are with the University of Bologna, Italy. Emails: andrea.masini6@studio.unibo.it & {paolo.bellavista,luca.foschini}@unibo.it

This work was performed while Andrea Masini was affiliated with the University of Ottawa, working in B. Kantarci's research lab.

study, and results. Section V concludes the paper and outlines future work.