TopoEdge: Topology-Grounded Agentic Framework for Edge Networking Code Generation and Repair
Organizations: University of California San Diego, La Jolla, CA, USA · The Chinese University of Hong Kong, Hong Kong SAR · University of Copenhagen, Copenhagen, Denmark · Duke University, Durham, NC, USA
Abstract
TopoEdge is a topology-grounded, edge-deployable framework for end-to-end software-defined networking (SDN) configuration generation and repair, motivated by the brittleness of configuration artefacts under topology variation and by strict operational constraints on latency, privacy, and on-site execution. TopoEdge represents each target topology as a router-level graph and embeds it using a contrastively trained graph neural network (GNN), enabling nearest-neighbour retrieval of a verified reference configuration paired with an executable Python driver (a Topotest/pytest test script that orchestrates the emulated network and checks protocol assertions). The target topology, retrieved reference topology, and reference driver are assembled into a topology-grounded retrieval-augmented generation context (TopoRAG), which grounds a distributed, execution-centric generate--verify--repair loop coordinated by a central controller and realised by three role-specialised agents: (i) a Planning agent that produces a topology-consistent configuration plan and a per-device skeleton; (ii) a Generation agent that materialises executable configuration artefacts, including device configurations and the driver; and (iii) a Verification agent that runs the FRRouting Topotest/pytest harness, compresses failures into a compact trace, and emits localised patch directives for iterative repair.
Figures & tables
| Method | P@1 | P@5 | P@10 | P@20 | Med | Avg |
|---|---|---|---|---|---|---|
| TopoEdge | 0.130 | 0.460 | 0.725 | 0.890 | 5 | 7.835 |
| No-TopoRAG | 0.060 | 0.230 | 0.345 | 0.550 | 9 | 13.275 |
| Central-LLM | 0.140 | 0.510 | 0.755 | 0.930 | 4 | 7.035 |
| Method | Time (s) | Tokens | Verify runs | Cap fails |
|---|---|---|---|---|
| TopoEdge | 220 | 4,000 | 7.8 | 22 |
| No-TopoRAG | 360 | 6,900 | 13.3 | 90 |
| Central-LLM | 75 | 4,400 | 7.0 | 14 |
| Variant | P@20 | Avg iters | Tokens | Invalid rate |
|---|---|---|---|---|
| Full TopoEdge | 0.890 | 7.835 | 4,000 | 0.045 |
| Without adaptive budgets | 0.875 | 8.150 | 4,700 | 0.048 |
| Without constrained decoding | 0.840 | 9.400 | 4,600 | 0.090 |
| Without both | 0.800 | 10.200 | 5,400 | 0.140 |
Software Engineering Agents
Software Engineering Agents are AI systems that use code, tools, and feedback to perform software development tasks.
See all 344 papers