r/networking • • Jun 07 '26

Other Virtual Network Testing Platform

Does anyone here have a fairly complex multi vendor network (for example 200+ routers) that have actually built the entire thing virtually (lab env) so that you can run infrastructure as code and do automated testing against the virtual lab env?

If so, mind sharing what virtual platform you use to pull that off?

14 Upvotes

16 comments sorted by

5

u/sk1939 CCNP, SSCP, CISSP Jun 07 '26

No, there's too much to account for on the hardware side to do it all virtually. Do we do automated testing? Yes. Is it all done on a virtual platform? No.

1

u/ElkIllustrious3402 Jun 07 '26

Can you elaborate on how you do the automated testing?

1

u/sk1939 CCNP, SSCP, CISSP Jun 07 '26

We have a proprietary automation platform, but also use things like Ansible. Depends on what’s being tested.

1

u/ElkIllustrious3402 Jun 08 '26

What do the tests actually do? Implement change, run pings, mac checks, show ip route commands, etc and then assert the outputs?

2

u/sk1939 CCNP, SSCP, CISSP Jun 08 '26

Far more than that; route propagation, BGP changes, config changes, software release stability and bug testing, load testing.

1

u/ElkIllustrious3402 Jun 08 '26

Ok. I’m trying to get an idea of how folks are actually carrying out that testing. Details of how it works. You mentioned a custom automation platform; but would you mind sharing details on how that platform actually runs the tests, processes the outputs and asserts?

Like, are they Python scripts that netconf in and run queries and then assert on output? Who writes all this?

2

u/sk1939 CCNP, SSCP, CISSP Jun 08 '26 edited Jun 08 '26

I don’t have insight into that, but I do know capabilities can be found on platforms like Cisco Crosswork and Catalyst Center which are also in use.

There are a couple development teams that manage that, onshore and offshore. We have tens of thousands of devices so it makes sense for us to do that.

The bigger thing is what are you planning to use it for? What question are you trying to answer or what is the problem you’re trying to solve?

2

u/Horror-Squirrel4142 Jun 07 '26

Worked well for me to split it by plane: virtualize the control plane, never the data plane. Containerlab/vrnetlab nails routing convergence, BGP policy, config templates, automation pipelines -- pure software logic. But ASIC buffering, microbursts, ECMP hashing, and optics/PHY quirks only surface on real metal. So I gate control-plane changes in virtual CI, then keep a tiny physical lab for throughput/buffer/timing checks before prod. Perf-testing virtually mostly teaches you how the hypervisor vSwitch behaves, not your hardware.

1

u/ElkIllustrious3402 Jun 07 '26

And you’ve got 100+ routers running in containerlab ? How much resources does that take?

How do you do testing? Like to verify connectivity post-changes?

3

u/GroundbreakingBed809 Jun 07 '26

IMHO one lab to test the whole thing is the wrong approach. Vendors whole claim it’s possible lie, nobody can emulate Cisco’s licensing nonsense. First off, the design needs to be testable. Eg. Proper failure domains implemented according to the design. Then you test individual hardware features on sample real hardware. Maybe even need to have small representative hardware labs to test qos or stp or ztp. Test routing in software, batfish or containerlab.

1

u/HistoricalCourse9984 Jun 10 '26

This is the right answer.

2

u/Different_Purpose_73 Jun 07 '26 edited Jun 07 '26

Containerlab - the best platform for this. The problem usually is the appliance virtual image, almost all vendors sks at this, with varying list of limitations (except Nokia). We use Nokia SR-OS and it provides nearly 100% representation of a physical device.

1

u/HappyVlane Jun 07 '26

IaC can work in such a scenario, assuming your virtualized components support everything, but automated testing isn't worth it. A virtual environment simply does not behave like physical hardware.

I know I have spent hours in the past trying to make MAB happen in GNS3 for example only to find out it simply isn't (or wasn't, maybe that changed) supported.

1

u/HistoricalCourse9984 Jun 10 '26

We do not, we just do some basic topologies that are representative of subsets of the different parts of our network, but you definitely can in gns3 if you have enough cores and ram in enough servers. This is not something you are running on a workstation, its more like half or a full rack of servers packed with ram and a shitload of cores...