Community discussions

MikroTik App
 
James56
just joined
Topic Author
Posts: 7
Joined: Fri Aug 21, 2020 9:07 pm

Measure download speed with Cloudflare

Thu Sep 10, 2020 12:15 pm

I want to measure download speed and came up with this:
/tool fetch url="https://speed.cloudflare.com/__down?measId=4436923120229031&bytes=1000000" mode=https

  downloaded: 976KiB
       total: 976KiB
    duration: 1s
Unfortunately the duration is to the nearest second.
I could download a bigger file but that could clog the pipe.

Any suggestions for how to get a better estimate of b/s ?
 
neutronlaser
Member
Member
Posts: 445
Joined: Thu Jan 18, 2018 5:18 pm

Re: Measure download speed with Cloudflare

Thu Sep 10, 2020 3:11 pm

Clog the pipe?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Measure download speed with Cloudflare

Thu Sep 10, 2020 4:43 pm

Isn't clogging the pipe the purpose of any speed test? To get the maximum possible speed, to see what you can handle :) ?
It's only 10MB, it will not take that long.
 
James56
just joined
Topic Author
Posts: 7
Joined: Fri Aug 21, 2020 9:07 pm

Re: Measure download speed with Cloudflare

Thu Sep 10, 2020 5:06 pm

Sorry, Clog the pipe = fill the link with traffic.

It's true it will not take long if the link is running at say 40Mb/s but if it running at say 2Mb/s (which it does when its "ill") it will take 20x longer and the "pipe" will be "clogged" for much longer.

Ideally I would download a small amount, say 100k and measure that.

If the speed is slow I can take action in my watchdog.

I'm also concerned that filling the pipe will increase ping times and the watchdog my trigger wrongly.

Background:
I was running on B3 15MHz, SINR +10db and getting 20-40Mb/s for about 6 days with no breaks :)
Then over a period of about 24 hours SINR went gradually to -10b. Speed dropped to about 2Mb/s (which is slower than my backup link).
I suspect the CA took over (B20 5MHz).
Ping was still fine so my watchdog did not realize the link was rubbish.

So I thought I could add to the watchdog:
If (SINR < 2 && MB/s < 4) {
	Turn off LTE for 1 hour (My load balancer will then switch in ADSL)
}
Hence the need to measure speed.
 
James56
just joined
Topic Author
Posts: 7
Joined: Fri Aug 21, 2020 9:07 pm

Re: Measure download speed with Cloudflare

Sat Sep 12, 2020 1:43 am

Failing that anyone know how to read lte "Rx Rate" in a script ?

Who is online

Users browsing this forum: complexxL9, eworm, Google [Bot], GoogleOther [Bot], karlisi and 180 guests