arXiv:2610.36748cs.NIOct 2026

Manuscript Offprint

arXiv:2610.36748

Axiom: a logic programming language to express and enforce network designs

Tibor Schneider, Laurent Vanbever

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Human errors remain the leading cause of network outages. To prevent them researchers propose general verifiers that analyze the network behavior. Yet, their (symbolic) models struggle to accurately reflect network devices, they fail to scale to large networks, and report misbehavior, not what configuration line caused it. We attribute all three challenges to specifications that describe the intended behavior but not how operators intend to achieve it—the network’s design: which protocols to run and how to combine them.

We present Axiom, a language for expressing network designs, and a checker that finds every violation and the responsible commands. Operators state their design decision as rules over configuration commands. Axiom then compiles them into a single Datalog program that checks the entire network directly on its configurations, not on the state they produce. Our prototype checks a 754-router network within seconds. Ultimately, a design enforced on every keystroke could give network operators the integrated development environment that programmers have long enjoyed.

1 INTRODUCTION

Network misconfigurations keep causing large-scale and long-lasting outages [23, 39, 45]. Decades of research have answered with network verifiers that promise to catch bugs offline, before they reach production by comparing the configuration’s behavior against the operators’ intent. Yet, only a small fraction of production networks deploy them [28], and the reasons are well known in the literature: Verifiers (i) need high-fidelity models of deployed devices [10, 28, 41], (ii) struggle to scale to large networks [29, 46, 53, 55], and (iii) report misbehavior, but help little in debugging [46, 54].

We agree with all three, but see them as symptoms of a single root cause: verifiers assume nothing about how operators intend to implement the behavior. Seeing only what is configured, not what is intended, they must be generic and support every possible implementation. For instance, to reach external destinations, a network can propagate their routes over iBGP in various topologies, redistribute them into OSPF or IS-IS, or mix both with static routes on top. A network deploys one of them, yet verifiers must accept them all: They must (i) model all protocols plus their interactions, (ii) build the full symbolic network state before checking, and (iii) cannot blame any command, as each could be intended.

We therefore argue that operators should state not only the intended behavior, but also how they plan to implement it: the network’s design. In the example above, the design would not require reachability, but that the iBGP sessions form a route-reflection topology. Operators already make these design decisions, e.g., OSPF within regions and BGP in between, a dedicated VRF to isolate management traffic, and L3VPNs connecting customer sites. A configuration implements a design if each of its decisions hold; checking this (i) requires modeling only the commands the design uses, (ii) amounts to a fast check on the configuration text, and (iii) points directly at the invalid commands, like those configuring invalid iBGP sessions in the example above.

Hyperscalers seem to agree: their custom management systems [30, 35, 50] make their design explicit, and either check configuration changes against it or generate them from the design. But these systems are tailored to their own design and tightly integrated in their tooling; they would not fit other networks even if they were open-sourced. The vast majority of networks lack the resources to engineer such a solution and are left with no tool to capture their design: Existing tools either check local configuration properties [8] or analyze the behavior produced by a configuration [10, 14]. Although operators can script custom analyses over tools such as Batfish, those scripts are written against configurations or network state [40], not against an explicit representation of the network’s design.

We instead propose Axiom, a language that makes the design itself a first-class citizen that can be checked. It is built around two goals: The first is to be flexible: every network’s design is different, so operators must be able to state their own decisions rather than pick from predefined checks.

Figure

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

AXIOM therefore builds on Datalog: operators write design decisions as rules, and recursion lets those rules span the entire network rather than a single device. The second is to operate directly on configurations, not on a model derived from them. A templating layer matches configuration commands and exposes their parameters to the design rules, linking each derived fact to the command it came from. Thus, AXIOM is tied to no vendor or device. The same language can capture router configurations, and those from applications like DNS or web servers, letting operators express dependencies between applications and the network. We find that writing a design is little work that pays off in fast checks and localized feedback: 140 lines suffice to check a 4-million-line configuration of a 754-node network, and AXIOM does so in five seconds while locating the commands that violate the design.

AXIOM’s benefits are not for free. With verifiers, the cost is complex models, slow checks, and vague errors; with AXIOM, it is effort: operators must write the design and ensure it is correct. We argue that both efforts are smaller than they appear. Writing a design does involve modeling, but only proportionally: operators write templates only for the commands they use and rules only for the decisions they make, never describing how the network computes its forwarding state. Further, they need not start from scratch: just as existing tools mine behavioral specifications [9], templates [24], or device-local contracts [8] from configurations, future tools could mine the design a configuration already implements.

True to its name, AXIOM takes the design as an axiom: any configuration that implements it is assumed correct. If the design is incorrect, so is every conclusion built on it. Yet, this assumption is nothing new, as operators today already trust their design. That trust is implicit, and since only a few networks run a verifier, it goes entirely unchecked. AXIOM instead makes it explicit and at least guarantees that the configuration correctly implements the design.

Beyond checking, an explicit design opens opportunities for the tools that manage configurations. A check that finishes in seconds and points at the offending command can run mid-edit and give network engineering the integrated development environment (IDE) that programmers have long enjoyed. Further, a violated rule carries more than a location: its negative provenance [59] explains which facts are missing for the design to hold, the building blocks for automatically suggesting fixes. The same feedback turns the checker into an oracle for LLMs that guarantees their edits preserve the design, not just the behavior [36]. AXIOM could even constrain the generation directly like type systems already do [38]. Ultimately, provenance and constrained generation aim at the same goal: entire configurations produced and updated from the design itself, bringing the end-to-end tooling of hyperscalers to every other network.

rel Addr(device: String, iface: String, addr: IpAddr); rel Asn(device: String, asn: Int); rel IBgpSession(device: String, neighbor: String, ip: IpAddr); def ("interface", iface: String, "ip", "address", ip: IpNet): set Addr(self, iface, ip as IpAddr); // Router <-> IP mapping

def ("router", "bgp", asn: Int) { set Asn(self, asn); // Router <-> AS number mapping def ("neighbor", ip: IpAddr, "remote-as", remote_asn: Int) { if asn == remote_asn { for Addr(_ as N: String, _, ip) { assert Asn(N, remote_asn): "Invalid remote-as: " ++ N; set IBgpSession(self, N, ip); } assert IBgpSession(self, , ip): "No router has IP " ++ ip; } } for Asn( as N: String, asn): if N != self: assert IBgpSession(self, N, _): "Missing session with " ++ N; }

! Configuration of r1 ! configuration of r2 interface eth0 interface eth0 ip address 5.0.0.1/24 ip address 5.0.0.2/24 router bgp 5 router bgp 5 neighbor 5.0.0.2 remote-as 5 neighbor 5.0.0.1 remote-as 5

Figure 1: AXIOM design to enforce an iBGP full-mesh, along with the configuration of two routers r1 and r2.