Intent2Tc: Automated Intent-to-Traffic Control Translation with Language Models
Organizations: University of Ottawa, Ottawa, ON, Canada · University of Bologna, Italy
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.
Figures & tables
| Metric | Formula | What it evaluates |
|---|---|---|
| FEACI Format (F) | Fraction of correct format: expected syntax in sub-intents and deployable tc rules. | |
| FEACI Explainability (E) | Fraction of items with reasoning keywords or explanation comments, = set of explanation keywords. | |
| FEACI Accuracy (A) | Weighted fraction of outputs with correct configuration values (e.g., traffic-profile match assigned higher weight). | |
| FEACI Cost ( ) | Normalized token cost (0 for open-source models; reference United States dollars (USD)). | |
| FEACI Inference Time ( ) | Normalized inference latency (threshold ). | |
| Overall FEACI [ 6 ] | Weighted FEACI composite score ( ). |
Intent-Based Networking
Intent-Based Networking translates high-level goals into validated network policies and uses feedback to manage services, resources, and performance.
See all 22 papers