# MLAG CHR test lab

**URL:** <https://forum.mikrotik.com/t/mlag-chr-test-lab/274679>\
**Category:** Virtualization\
**Created:** [November 24, 2026, 3:43pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679 "2026-11-24T15:43:58Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 24, 2026, 3:43pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/1 "2026-11-24T15:43:58Z")

</div>

**Subject:** MLAG CHR test lab

Hi all,

I've made our MLAG test lab public: [GitHub - narrowin/mikrotik-mlag-testsuite: test suite to really validate mikrotik releases against working mlag · GitHub](https://github.com/narrowin/mikrotik-mlag-testsuite)

**What it does**

It measures how long traffic stops when a MikroTik MLAG pair loses and regains something: a bond member, the peer link, an LACP partner, an MLAG peer (reboot or power loss), or a MAC moving between the peers. Everything runs on RouterOS CHR in Containerlab. Numbered pings run every 100 ms during each fault, and the tool times the outage separately for the fault and for the return. Each case gets a PASS or FAIL against a limit, and each run produces a readable report with packet timelines and the device configs it used.

There are two labs: a Small one (MLAG pair with dual-homed Linux hosts) and a Medium one (MLAG pair with an access switch). Both can run with STP off, RSTP or MSTP.

**How to use it**

The quickest way is GitHub Codespaces, in the browser:

1. Open the repo and click **Open in GitHub Codespaces**.
2. In the terminal, run `./labs/small/quickstart.sh`
3. Look for `01-baseline: pass` and open the report path it prints.

Locally, it runs with Docker in a VS Code dev container (OrbStack on Apple Silicon, or Docker on Linux); the README has the steps. To run a single case:

```auto
uv run mlag-lab run --case primary-reboot --bridge-mode none

```

**What we've seen so far** (RouterOS 7.26beta7 CHR, virtual lab, not hardware)

- **STP off** on the MLAG pair and its neighbours: every case passed. An MLAG peer reboot cost 2–3 s.
- **RSTP or MSTP with the MLAG pair as root:** an MLAG primary reboot cost 10–13 s in the Medium lab.

All results are in `results/README.md`. Corrections, other RouterOS versions and results from real hardware are very welcome.

---

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 24, 2026, 4:14pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/10 "2026-11-24T16:14:33Z")

</div>

for people new to codespaces, vscode and containerlab. Codespaces run fully in the cloud all batteries included, containerlab has a cli but also a vscode plugin that lets you look and navigate the labs. You can do wiresharks and all the goodies direclty in the browser if you want. And of course your agents love containerlab since the docs are great and everytyhing is text with yaml etc...

 ![image](https://data-discourse.cdn.mikrotik.com/original/3X/7/6/768110e817c6deecba5afea0ffb68a1e7ad9043b.jpeg)

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [November 24, 2026, 4:18pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/11 "2026-11-24T16:18:27Z")

</div>

It’s my fault:  
I’m currently working on a project called "MikroTikSpamHunter/3.43" and using it on the forum,  
so I wasn't careful enough to notice what your topic was actually about.

@Larsa was even polite enough to teach me some manners.  
I made a fool of myself, and I apologize for it, to you as well.

---

<div class="post-metadata">

**Author:** ![holvoetn](https://forum.mikrotik.com/letter_avatar/holvoetn/32/6_449c533f586939b6e5f246632a46421f.png) [@holvoetn](https://forum.mikrotik.com/u/holvoetn)\
**Post date:** [November 24, 2026, 4:58pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/12 "2026-11-24T16:58:02Z")

</div>

Cleanup done.

Only a person who does nothing, makes no mistakes.

---

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 24, 2026, 5:21pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/13 "2026-11-24T17:21:10Z")

</div>

these are the results for now. All evidence needed is uploaded maybe also interesting for mikoritk folks to have a look at.

 ![image](https://data-discourse.cdn.mikrotik.com/original/3X/0/a/0a264254f9207a88ef1026abb5c96a73311e99b7.jpeg)

---

<div class="post-metadata">

**Author:** ![Sledge](https://forum.mikrotik.com/letter_avatar/sledge/32/6_449c533f586939b6e5f246632a46421f.png) [@Sledge](https://forum.mikrotik.com/u/Sledge)\
**Post date:** [November 24, 2026, 7:07pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/14 "2026-11-24T19:07:46Z")

</div>

I did recently a test with wo simple routers using bonded interface with pair of CRS326-24G-2S+ in between as a MLAG pair, with rate of 4 ping / sec (RSTP and bridge ID at default values) and the ping drop during "failure" of one unit was 0-0,5 sec, while the ping-drop during the "MLAG master" recovery always took 2,5 sec. So it seems that anything affecting (or speeding up) the restoring the operational state (such as edge ports, bride ID's etc.) has highest effects effects...

in the meantime boot time of cisco switches is 4-6 min, some junipers even exceeds 11 mins. Cisco stack add' two more minutes and some combination of component in cisco C9200L switches might result in convergence time of 15-30 sec for multicast traffic.....so let's have everything in "perspective"...

---

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 24, 2026, 7:44pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/15 "2026-11-24T19:44:25Z")

</div>

Thanks. It's good to finally see someone say exactly what they test. It also shows the problem: two routers on one MLAG pair is not a real setup. No other bridge runs STP, so the pair is always root and STP has nothing to do.

In that layout our virtual lab (RouterOS 7.26beta7, a ping every 100 ms) shows the same numbers as yours. A switch dropping its links costs about 0.5 s, and a bond member coming back costs about 2.5 s. The 2.5 s stays with STP off, so it comes from LACP, not from edge ports or bridge IDs. RouterOS sends on the returning member before LACP lets it carry traffic. [Result](https://github.com/narrowin/mikrotik-mlag-testsuite/blob/main/results/2026-11-24-small-search/none-default-l2/README.md#mlag-bond-member-loss-and-return--stp-off)

Add one RSTP access switch below the pair and an MLAG primary reboot costs 10.5–13.1 s. The secondary stops sending BPDUs and the access switch elects a new root. [Test](https://github.com/narrowin/mikrotik-mlag-testsuite/blob/main/docs/cases/medium-core-reboot.md)

On the other vendors: boot time doesn't matter, because the peer carries the traffic while a unit boots. What matters is that their MLAG (Cisco vPC, Arista MLAG, Aruba VSX, Juniper MC-LAG) handles failover and return far better than MikroTik's does so far.

Test suite and all results: [GitHub - narrowin/mikrotik-mlag-testsuite: test suite to really validate mikrotik releases against working mlag · GitHub](https://github.com/narrowin/mikrotik-mlag-testsuite)

---

<div class="post-metadata">

**Author:** ![Larsa](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/larsa/32/1542_2.png) [@Larsa](https://forum.mikrotik.com/u/Larsa)\
**Post date:** [November 24, 2026, 8:09pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/16 "2026-11-24T20:09:27Z")

</div>

Thanks for sharing this, @mischa01101.

I checked the topology and device configs, and nothing in there jumps out that would explain the outage when the primary reboots with RSTP. Most of what follows is about how far the results carry over to real hardware.

Fair warning, this got a bit longer than I planned, but what the heck, I'm throwing in everything I can think of 😉

I dug a bit deeper, starting with your README. From what I can tell, you're building a repeatable way to catch MLAG failures and compare RouterOS releases. If that's the goal, permanent ARP entries and a single VLAN are fine since they keep the test focused. Personally, I'd want tests with normal ARP and tagged VLANs before recommending STP off for production, though.

Here's what I meant when I suggested a separate thread. There's a lot of stuff that works differently on hardware compared to CHR. CHR might reproduce real MLAG "logical" problems, but just because a test passes on CHR doesn't mean a CRS with hw offloading will behave the same.

For starters, even copying the config across doesn't guarantee the same behavior (sadly). The Prestera switch chip used in some CRS models ignores the configured bonding hash policy and uses its own built-in hw hash. Automatic STP costs also differ between software and offloaded bonds. So you can end up testing different traffic paths without changing a single setting(!) That's why I'd run the failing cases on the physical switches with offloading both disabled and enabled, and check the actual STP costs each time.

And finally, the lab side. You asked for results on other RouterOS versions. Pointing **`MLAG_CHR_IMAGE`** at another release is the easy part. The catch is that some of your test variants use settings older releases don't have. **`mlag-lacp-fallback`** , for example, only showed up in 7.25, so the fallback-off variants will just fail on anything older. It'd be worth flagging which cases need 7.25 or newer.

The virtual NICs matter too. Each vNIC type reports its own link speed (virtio only what the hypervisor sets, e1000 1G, vmxnet3 10G). That speed sets the auto STP costs, and it has to match within a LACP bond. Your lab forces 10G full duplex on virtio, which only sets the cost of plain ports like the peer link. The bonds get a fixed 20,000 either way. And on VMware or Hyper-V (maybe Proxmox too, though I haven't looked into that) the hypervisor has to allow promiscuous mode or MAC spoofing and pass the VLANs, or bridged traffic just gets dropped.

Then there's CHR licensing, which starts to matter once you add load tests. Free CHR caps upload at 1 Mbit/s per interface. A 60-day P-Unlimited trial removes the cap, but once it expires the CHR can't be upgraded or change packages. Not a big deal when each RouterOS version runs from its own image, though. The real catch is the admin overhead: every CHR needs its own trial registered to a MikroTik account, it has to reach the license server to stay valid (tricky on an isolated lab host), and once it runs out you're back to a fresh install.

Anyways, back to the actual MLAG problem. Your "Medium" topology (the MLAG pair plus a dual-connected access switch) already nails a real case: traffic drops when the primary reboots with RSTP enabled and the MLAG pair as root. That's the one I'd really like to see on real hardware, since Sledge's CRS326 numbers already match your simple case. One catch though: a CHR reboot keeps carrier up, and your own notes show traffic still following the LACP leg toward the rebooting peer. Your power-loss test drops carrier, but it only ran with STP off, so an RSTP power-loss run would show how much of the 10-13s is the virtual lab. Your captures also show the secondary sends no BPDUs while the primary reboots. Have you sent those to MikroTik support? To me that looks like the clearest bug candidate in the whole lab.

Separate question: you mentioned all the evidence is uploaded, and your results README says pair B in the two-pair lab did the same, but I couldn't find that lab or its results in the repo. Did they get left out? I'm curious, because that's the test that would back up or rule out the unique bridge ID tip from the other thread.  
--

Phew, that's it for now. I'll be back if I think of anything else. Have a nice evening!

---

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 24, 2026, 8:46pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/17 "2026-11-24T20:46:56Z")

</div>

Thanks a lot for taking the time to go through all of this, and for the detailed thoughts. Much appreciated.

**Two-pair lab:** my fault, it hadn't been pushed. It's online now:

- Results: [mikrotik-mlag-testsuite/results/2026-11-24-two-pair at main · narrowin/mikrotik-mlag-testsuite · GitHub](https://github.com/narrowin/mikrotik-mlag-testsuite/tree/main/results/2026-11-24-two-pair)
- Case description: [mikrotik-mlag-testsuite/docs/cases/medium-two-pair-root.md at main · narrowin/mikrotik-mlag-testsuite · GitHub](https://github.com/narrowin/mikrotik-mlag-testsuite/blob/main/docs/cases/medium-two-pair-root.md)

**On the unique bridge ID tip:** it doesn't fix it. With RSTP, rebooting pair A's primary stopped traffic for about 17.5 s with equal priorities and about 16.4 s with one priority per pair (0x2000 / 0x4000). With STP off, a primary reboot of either pair stopped traffic for 20–23 s in all five runs.

**BPDUs:** yes, the surviving peer stops sending BPDUs while the primary reboots. We reported this to MikroTik support earlier but never heard back. Feel free to open a ticket with them after validating. Both faults are written up here, so anyone can file or reopen it:

> <https://github.com/narrowin/mikrotik-mlag-testsuite/blob/main/docs/plans/routeros-failures-report.md>

**Captures:** we keep the raw pcaps out of git. Every run has its configs, timeline, verdict and capture checksums, and the labs and runner are in the repo, so anyone can rerun any case. If someone needs the captures, we can publish them as GitHub release assets outside the repo.

**Versions:** everything runs on 7.26beta7 only. Older releases lack the MLAG fixes, so I see no point in testing them at the moment.

**Hardware:** we saw these RSTP problems on hardware first, on two CRS326-24S+2Q+ and on CCR2004 routers, and built the tests from that, from forum reports and from the changelogs. On the CRS326 pair, a 2 × 40G peer link caused a loop; moving it to 10G fixed it, and MikroTik support confirmed that. The failures reproduce on CHR and on hardware. CHR timing differs, but in our experience what breaks on CHR doesn't start working on hardware.

**ARP and VLANs:** static ARP and one VLAN are deliberate, to isolate MLAG and STP. Agreed that production advice needs normal ARP and tagged VLANs; we'll add that case.

**What this lab is and isn't:** it's functional testing only. We don't send load traffic and don't plan to license the CHRs. Containerlab with CHR works really well for this: every link can be captured, and we see the whole stack, from LACP and STP frames to bridge tables, syslog and device state, in every run.

Thanks again, and have a nice evening too!

PS: If you find the repo useful, a star on GitHub would help a lot to make it more visible.

---

<div class="post-metadata">

**Author:** ![fischerdouglas](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/fischerdouglas/32/2357_2.png) [@fischerdouglas](https://forum.mikrotik.com/u/fischerdouglas)\
**Post date:** [November 24, 2026, 9:17pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/18 "2026-11-24T21:17:06Z")

</div>

IMHO  
This kind of tests should be obligatory before releasing any stable version.  
(Perhaps a bit more simplified.)

For each feature, 3-4 sets of tests (at least), CI/CD.  
And just after the "all green lights" a stable release.

And no just talking about CHR and EMU scenarios. Physical tests also!

Considering the number of regressions is possible to see on release notes, I sincerely doubt that they do exhaustive tests before releses.

I would love to be wrong!  
I would love to be forced to retract my statement regarding MikroTik having almost no minimally comprehensive test scenario.  
Waiting for a detailed video on Youtube proving I'm wrong.

---

<div class="post-metadata">

**Author:** ![Larsa](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/larsa/32/1542_2.png) [@Larsa](https://forum.mikrotik.com/u/Larsa)\
**Post date:** [November 24, 2026, 9:44pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/19 "2026-11-24T21:44:19Z")

</div>

Alright, good to see the two-pair results up. I also noticed you updated the recommendation in your README. Good call.

Since your ticket hasn't gotten a reply, I'd really push MikroTik on this. Your fault "1" shows the 7.26beta7 fix for packets looped back to a dual-connected bond doesn't fully hold, and the missing BPDUs land right next to the BPDU fixes in that same changelog.

Spell that out in your existing ticket with links to this thread and the repo, and post the same summary in the 7.26beta thread ([7.26beta [development] is released!](https://forum.mikrotik.com/t/7-26beta-development-is-released/273582)) while 7.26 is still in beta. You're not alone either, plenty of people are hitting MLAG issues on 7.25.1 too, two-pair setups included.

Keep us posted! Cheers

---

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 25, 2026, 5:35am UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/20 "2026-11-25T05:35:50Z")

</div>

MikroTik support #[SUP-228968]: RouterOS 7.26beta7 MLAG: surviving MLAG peer sends no BPDUs while the MLAG primary reboots, plus four related faults

also added the same text to the 7.26beta thread. Also working on adding the relevant pcap captures to the tests for further proof.

---

<div class="post-metadata">

**Author:** ![Larsa](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/larsa/32/1542_2.png) [@Larsa](https://forum.mikrotik.com/u/Larsa)\
**Post date:** [November 25, 2026, 10:11am UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/21 "2026-11-25T10:11:12Z")

</div>

Thanks for the beta post and for updating the ticket. 🙏 I've added [a short follow-up](https://forum.mikrotik.com/t/7-26beta-development-is-released/273582/321) there with the ticket number and links to this thread and the repo, since those were missing.

A few things worth fixing in the beta post, since MikroTik will likely read it side by side with the report:

- The numbering differs. The report's fault 1 and 2 are points 4 and 5 in the post.

- The counts don't quite match either. The post says 12 of 37 for RSTP/MSTP, while the linked report at 8e7c5a3 says 5 of 6 plus 6 of 28, so 11 of 34. And the STP-off "11 of 11" only counts the cases where it showed up (member flap, peer reboots, secondary power loss), so I'd name those.

- Since it's the beta thread, I'd also say in point 4 that the 7.26beta7 fix is incomplete too, not just the 7.25.2 one.

Point 3 (access switch as root) might be worth holding back until you've traced it. If it turns out to be config, it takes some weight off the rest.

Cheers

---

<div class="post-metadata">

**Author:** ![mischa01101](https://forum.mikrotik.com/letter_avatar/mischa01101/32/6_449c533f586939b6e5f246632a46421f.png) [@mischa01101](https://forum.mikrotik.com/u/mischa01101)\
**Post date:** [November 25, 2026, 11:56am UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/22 "2026-11-25T11:56:30Z")

</div>

Hi,

thanks again @Larsa i corrected the wrong numbers.

Everything we used is public and runs on any Linux host with Containerlab and the CHR image, so you don't need me for new tests and evidence for captures or reruns. The hole point of this being open source and so easy to setup is that you guys test and validate yourself:

> **[GitHub - narrowin/mikrotik-mlag-testsuite: test mikrotik mlag with containerlab](https://github.com/narrowin/mikrotik-mlag-testsuite)**
>
> test mikrotik mlag with containerlab

- Lab setup: [mikrotik-mlag-testsuite/docs/operator-guide.md at 59299681efd9089e6bba5a008cb1e220bb94d19e · narrowin/mikrotik-mlag-testsuite · GitHub](https://github.com/narrowin/mikrotik-mlag-testsuite/blob/5929968/docs/operator-guide.md#deploy-the-three-chr-medium-lab) (Medium lab) and #reboot-the-direct-client-pair (Small lab)
- Host entry stuck on the peer port (new ticket), Medium lab:  
uv run mlag-lab run --case medium-access-root-baseline --settle 60 --repeat 5  
The suite stops at the first failed baseline; it is intermittent.
- Frames sent back to the sender (point 4), Small lab with spanning tree off:  
uv run mlag-lab run --bridge-mode none --case member-flap-repeat

Every run saves captures, RouterOS state, syslog and a verdict. "mlag-lab evaluate" re-grades saved runs. You can also use the suite to check a fix before release: run it on the new build and compare the verdicts.

All the evidence we have is attached. I don't plan to run more tests on our side; please contact me if the suite itself doesn't work for you.

Regards

---

<div class="post-metadata">

**Author:** ![Larsa](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/larsa/32/1542_2.png) [@Larsa](https://forum.mikrotik.com/u/Larsa)\
**Post date:** [November 25, 2026, 12:16pm UTC](https://forum.mikrotik.com/t/mlag-chr-test-lab/274679/23 "2026-11-25T12:16:08Z")

</div>

Hey, huge thanks for sticking with this! 🙏

IMO getting point 1 reproduced and registered as a bug by MikroTik, plus tracking down point 3 and getting that filed, is a pretty big deal for everyone running MLAG, so thanks again.

We'll take a closer look at the Containerlab setup on our side. We're on GNS3 right now, but having the whole lab "as code" and driven from the CLI looks like a good fit for scripted test runs. We'll see.

Cheers
