The road to 10 Gbps internet - Mikrotik CHR Strangeness
How it started
My server1 that lives in Milywan’s Croissy-Beaubourg/CBO location actually has a 10G NIC, as it was one of my requirements when setting it up. Something I have never really used its full potential.
Today that changed (sort of).
Milkywan has a group chat on telegram where we talk about tech and other things between members. One of the guys there was looking for someone with a Mikrotik router “on-net” to run some bandwidth tests.
— I’m trying to find out if and why I’m limited to 1G
Mikrotik has a built in tool for that:
The Bandwidth Tester can be used to measure the throughput to another MikroTik router (either wired or wireless) and thereby help to discover network “bottlenecks” - Mikrotik
Well I volunteered my CHR 2 instance.
A good start
So I dm’d him some connection details and he started his tests!
Not bad for an old R620 - After some changes - my colleague ran another test …
We managed 4G. (I forgot to take a screenshot) Ok but still not quite our the target.
The bottleneck
I then noticed something …
I only ever gave my CHR instance 4 vCPUs because why should I need more? But with out tests we were maxing them out. Simple solution for that problem: Throw more vCPUs at it. I gave the VM 10 vCPUs and restarted it.
Another test later, according to Milkywan’s weathermap 3 that got us to 5G but we wanted more.
The ban and an oddity
While discussing some more ideas we left the test running until we got a message in the group chat:
— Hey guys, your triggering alerts on our monitoring systems 🤣 -One of the admins
Well yes 5Gbps constant traffic will make a NOC at a small ISP look at whats happening.
So I decided to throw it a another socket of 12 vCPUs for a total of 24 vCPUs thinking more cpu = more bandwidth.
That’s where I found and oddity with CHR, it won’t recognise a second CPU socket. So another restart later we had a single socket cpu with 24 vCPUs. Which got us to 6G.
While my colleague was running some other tests in parallel we got another message:
— Well you’ve just triggered the automatic DDoS mitigation4 😅
That locked us out for 15 mins. But after that we ran another test and got … 6 G … again.
We also found out after the fact that we triggering the ddos mitigation on another of Milkywan’s routers.
We stopped after because we could continue optimising all night, trigger more DDOS mitigation and get nowhere further.
I’m still happy though, my little R620 in the colo can pull decent traffic from the internet. I’ll be waiting for my next opportunity to chase the missing 4Gb.
I posted two articles about going from a single to virtual private server to my own server in a colocated rack. ↩︎
Cloud Hosted Router (CHR) is a RouterOS version intended for running as a virtual machine. It supports the x86 64-bit architecture and can be used on most of the popular hypervisors such as VMWare, Hyper-V, Proxmox - Mikrotik - Help ↩︎
A Weathermap is a map that displays the carriers network with overlays displaying statistics ↩︎
DDoS mitigation is a set of network management techniques and/or tools, for resisting or mitigating the impact of distributed denial-of-service attack ↩︎