Abstract
Router configuration errors are unfortunately common and difficult to localize using current network verifiers. We introduce a novel configuration error localizer (CEL) that precisely identifies which configuration segments contribute to the violation of forwarding requirements. In particular, CEL generates a system of satisfiability modulo theories (SMT) constraints—which encode a network's configurations, control logic, and forwarding requirements—and uses a domain-specific minimal correction set (MCS) enumeration algorithm to identify problematic configuration segments. CEL efficiently locates several configuration errors in real university networks and identifies all routing-related and at least half of all ACL-related errors we introduce.
The Localization Gap
Modern networks are the backbone of digital infrastructure, yet they remain notoriously difficult to manage. Network engineers must navigate thousands of lines of configuration code across distributed protocols like BGP and OSPF. A single typo in a route filter or an omitted command can trigger massive outages or expose security vulnerabilities.
Current troubleshooting practices often rely on manual inspection and basic CLI commands. While existing tools can identify "suspicious" patterns or prove that a requirement has been violated, they frequently fail to bridge the gap between a high-level failure (e.g., "Subnet A cannot reach Subnet B") and the specific low-level configuration line responsible. This "localization gap" forces engineers to spend hours manually debugging configurations.
Methodology: From Logic to Localization
CEL (Configuration Error Localizer) addresses this challenge by treating network troubleshooting as a constraint satisfaction problem. Its workflow is built on three technical pillars:
1. Structured SMT Encoding
CEL translates the network's configuration, its underlying control logic (how protocols like OSPF or BGP behave), and the desired forwarding requirements into a system of Satisfiability Modulo Theories (SMT) constraints. A key innovation here is the strict separation of configuration (the variable input that might be wrong) from control logic (the fixed rules of the protocol). This ensures the solver only looks for faults in the parts an engineer can actually modify.
2. Encoding the "Absent"
Traditional verifiers only analyze existing code. However, many network errors are errors of omission—forgetting a command. CEL explicitly models "plausible" missing configurations by using templates derived from other parts of the network. If an ACL is applied to ten interfaces but missing on the eleventh, CEL uses the existing patterns to "guess" the missing logic, allowing it to flag what isn't there.
3. Minimal Correction Sets (MCS)
When a requirement is violated, the resulting SMT constraints are "unsatisfiable." CEL employs a domain-specific version of the MARCO algorithm to identify Minimal Correction Sets (MCS). An MCS is the smallest subset of configuration constraints that, if removed or modified, would restore the satisfiability of the requirements. By ranking these sets by size, CEL assumes that the smallest possible change to the configuration is the most likely intended fix.
Evaluation and Results
The researchers evaluated CEL using real-world configurations from two large universities (UnivA and UnivB) and synthetic wide-area networks (WANs) from the Internet Topology Zoo.
- Accuracy: CEL achieved 100% recall for routing-related errors. It successfully identified all injected routing bugs and at least half of all ACL-related errors.
- Real-World Impact: In the university datasets, CEL uncovered several previously unknown bugs, including improperly configured backup paths that would have failed during specific link outages.
- Efficiency: Speed is critical for operational tools. While human engineers often take over an hour to localize complex bugs, CEL localized 50% of errors in under 15 seconds and nearly all within 10 minutes.
Discussion and Future Directions
CEL represents a significant step toward automated network repair. By leveraging the inherent repetitiveness of network configurations (the "Power of Clones") and efficient SMT solvers, it provides actionable insights rather than just error reports.
However, challenges remain. The tool's precision for Access Control Lists (ACLs) is currently lower than for routing; it sometimes suggests technically correct but operationally undesirable "fixes," such as disabling an interface to stop a blocked packet. Future work will focus on improving ranking heuristics for ACLs, incorporating Layer 2 (VLAN) modeling, and further optimizing SMT encoding to scale to massive ISP-level networks.
Summary updated