Queue: Speedtest need advise

Hi Fellow MT Enthusiast,

Can you help me figure out a firewall configuration on MT CCR1009/1016 that will let www.speedtest.net shows the approximate bandwidth of an ISP, if I have 30Mbps?
Currently, I have mangle rules with simple queue to limit download speed when it reached 200M, it will fall to a queue with lower bandwidth (2Mbps) . This is where the speedtest falls its connection mark which lead to incorrect result of speedtest. Showing 2Mbps instead of 30Mbps.

Here’s my config:
/ip firewall mangle
add action=mark-packet chain=prerouting connection-bytes=0-200000000 connection-mark=Surfing new-packet-mark=Browsing
add action=mark-packet chain=prerouting connection-bytes=200000000-0 connection-mark=Browsing new-packet-mark=DOWNLOAD

/queue simple
add burst-limit=2M/2M burst-threshold=2M/2M burst-time=10s/10s limit-at=2M/2M max-limit=2M/2M packet-marks=DOWNLOAD

Hey

Why not increase the limit so that a single speedtest session doesn’t go over it?

Hi Sebastia,
Thanks for the response.
If we do increase the limit. It will affects the purpose of clipping the bandwidth usage if a user exceed 200M of download.

Yes it will. Then again, I don’t expect single speedtest session to need much more than that.
If you don’t want to touch that limit, you need some other way to exclude the speedtest from bandwidth manangement.

  • based on src-ip: from a specific system?
  • based on dst-ip: speedtest of you isp will be from a specific destination ip
  • pattern matching: in http (content=..) or https (TLS SNI) matching, and assign it a different mark so it won’t be limited

It doesn’t fail, it precisely indicates to the user what tricks you have made.
Maybe you do not want to uncover the truth, that is another matter.