VM Mikrotik CHR + dude latency problem


Recommended Posts

Hi,

I have installed Mikrotik CHR as VM on unraid. My configuration looks like on the attached image. I am experiencing networking problem. When I am logging in to the dude server using dude program it say "getting stuff" at the bottom. During this stage latency to my mikrotik VM jumps above 100 ms, like that:

Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time<1ms TTL=64
Reply from 10.1.1.230: bytes=32 time=102ms TTL=64
Reply from 10.1.1.230: bytes=32 time=274ms TTL=64
Reply from 10.1.1.230: bytes=32 time=113ms TTL=64
Reply from 10.1.1.230: bytes=32 time=93ms TTL=64
Reply from 10.1.1.230: bytes=32 time=77ms TTL=64
Reply from 10.1.1.230: bytes=32 time=53ms TTL=64
Reply from 10.1.1.230: bytes=32 time=22ms TTL=64
Reply from 10.1.1.230: bytes=32 time=12ms TTL=64
Reply from 10.1.1.230: bytes=32 time=115ms TTL=64
Reply from 10.1.1.230: bytes=32 time=102ms TTL=64

 

What can be causing the problem? I have tested with one cpu, two cpus and all cpus passed to vm.

 

mt.png

Edited by Kacper
Link to comment

Hey Mate,

 

Edit: all good figured it out will see if i have same issue with dude

 

Don't have an answer to your question but i am interested in how you got your bridge interface to show up on the mikrotik?

Edited by Draco
Link to comment

I have found the answere. Mikrotik CHR free version has bandwidth limit on single interface 1Mbit. Dude is using ping to probe latency, so every logging in to dude server causes traffic that will make false reading for dude ping probe, as it wil overfill bandwidth. To solve this problem following rules can by applied in the mikrotik terminal:

/ip firewall mangle
add action=mark-packet chain=postrouting new-packet-mark=OUT passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting new-packet-mark=IN passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting new-packet-mark=IN passthrough=yes protocol=udp
add action=mark-packet chain=postrouting new-packet-mark=OUT passthrough=yes protocol=udp

/queue simple
add max-limit=900k/900k name=OUT packet-marks=OUT target=""
add max-limit=900k/900k name=IN packet-marks=IN target=""

 

This will limit maximum bandwith usage and prevent latency to go high. Now dude server will work unjamed. Otherwise one can get P1 license, then the speed limit is 1Gbit, but it will hit the same problem at 1Gbit connection :) So rules presented here are also aplicable for 1Gbit interface, but instead of k one can put M for Meg.

 

SOLVED!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.