Verifying network designs and changes with modelling tools: Batfish, digital twins and intent checks
In short: Instead of discovering a change's effects in production, modelling tools build a model of the network from its configurations and answer questions: can these hosts reach each other, which ACL line permits this flow, which routes change if this link fails, what does the proposed change alter? Combined with emulation labs and automated pipelines, they catch mistakes before they cause outages.
The problem
Large networks have thousands of configuration lines across hundreds of devices. A single change, such as a new ACL entry, a route map or a BGP policy, can have side effects nobody predicted. Most outages are caused by changes. Peer review helps, but humans cannot mentally simulate a whole network.
Configuration analysis
Tools such as Batfish (open source) and commercial platforms (Forward Networks, IP Fabric, NetBrain and vendor tools) read device configurations, sometimes with live state such as routing tables, and build a mathematical model of the network. You can then ask questions:
- Reachability: can anything in the guest VLAN reach the payment servers on any port? The tool checks every possible path, not just one test packet.
- ACL and firewall analysis: which line in which ACL allows or blocks this flow? Which rules are unreachable (shadowed)?
- Routing: what is the path from site A to the data centre, and what happens if this link fails?
- Configuration hygiene: inconsistent NTP or AAA settings, undefined references, mismatched MTUs or BGP sessions that cannot come up.
Differential analysis
Run the same questions against the current configuration and the proposed configuration, and compare. For example, "after this change, these three new flows are allowed, and this route to the backup site disappears." Reviewers can then approve what they actually intended, instead of reading raw command diffs.
Digital twins and emulation
- Emulation labs (Cisco Modeling Labs, EVE-NG, containerlab with vendor virtual images) run real network operating systems with copies of production configurations, so you can test upgrades and complex changes.
- Digital twin platforms combine a model of the live network with simulation, letting you test "what if" scenarios continuously.
Putting it in the change process
- Engineers propose changes as code (templates, configuration files) in a Git repository.
- A pipeline generates the full new configuration and runs model-based checks: no new access to sensitive zones, no loss of redundancy, no broken BGP sessions.
- Only changes that pass the checks go to peer review and deployment.
- After deployment, the same tool verifies the live network matches the intent.
Limitations
- Models depend on vendor and feature support; unusual features may not be modelled exactly.
- They show what configurations allow, not real performance or hardware faults.
- Results are only as good as the questions you ask; build a library of standard checks.
Real-world example: the ACL that would have opened the PCI zone
An engineer prepared a firewall change to give a new monitoring server access to the data centre. Batfish differential analysis in the change pipeline showed the change also allowed the entire user subnet range to reach the card payment servers on TCP 1433, because of a wrong object group. The change was corrected before review, avoiding a serious compliance breach.
Practice
What can a configuration analysis tool like Batfish tell you that a single ping test cannot?
What is differential analysis?
Name one limitation of network modelling tools.
Key takeaways
- Modelling tools build a model of the network from configurations and state.
- Ask reachability, ACL, routing and hygiene questions across all paths.
- Use differential analysis to see what a change really does.
- Add checks to change pipelines and use emulation labs for complex changes.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.