Limiting download speed

Is there any way to limit download speed? Just pondering; since majority (if not all) the blocks come from different nodes there can be no flow control. That means if the requests are not intentionally delayed to fit bandwidth, a large download is practically a self caused DoS attack. If all the blocks are requested as fast as possible, they are sent in parallel to your ip address, each from a different node. That’s a DoS attack :flushed:
The same applies similar way to uploads.

Edit: for uploads you lan speed limits the max speed, so it’s not that bad. Nevertheless, if your internet speed is lower than your lan speed, you actually can choke your router just by uploading a big enought file.

7 Likes

Just as one can set upload/download rate limits in bittorrent apps, I can see at least basic traffic shaping preferences being a smart optimization to make on the client side eventually. Good thought.

2 Likes

Actually, there can be flow control, even when the blocks come from different nodes. Just delay sending request, if there are too much earlier requests waiting for response.
I assume there is such control set up…

2 Likes

I think this discussion is relevant to link here:

1 Like

You told somewhere else that your router fails with large uploads? Maybe this is the reason, ie router gets filled with sent UDP packets since it cannot forward them quickly enought?
Can you force your lan/wifi speed to something lower than your internet speed and try then?

2 Likes

The options in my router for Ethernet ports were scarce, just 1Gbit/s or 100Mbit/s, and I guess that means both ways. My connection is 600 down / 100 up. So unfortunately I couldn’t set it as lower, but even setting it to 100 seemed to help! Uploading 40MB took only 3 tries. So, thank you! :beers:

I’ll see tomorrow, if my router can throttle the WiFi a bit more, and try that way.

Set it on your PC perhaps. set nic to 10 Mbps :grimacing:

2 Likes

Didn’t find a setting to control it on my machine.

1 Like

Got any old 10Mbps switches or hubs?

2 Likes

Yes - much cheapness

My internet speed is terrible, and whenever I ran nodes, pretty much everything else suffered. My solution was to run an ubuntu VM inside hyper-v on windows! You can set a quality of service on the virtual network adapter. A bit of a fudge, but it did the trick. That said, I’ve been running nodes and have no records as of yet (though that’s probably due to my 5 measly nodes competing with however many million are online now :rofl:)

1 Like

Happy to help!
It really looks like there is some flow control problem :thinking:
Btw, for downloading the problem is reversed, ie you might need to set the lan speed higher to internet speed, ie back to 1G.

Did you have a read if this. It is the flow control mechanism built in. Hopefully it can be configured to help.

Good idea.

The problem is, that my router has just two options 100Mb and 1Gb, and the same option applies to both directions. That’s for ethernet, and wi-fi doesn’t have even that.

I run my Autonomi stuff on Ubuntu, and didn’t find a GUI setting to control data flow. Is there possibly some command line stuff I could do?

Old witches and tubs? What would they do :grin:
(Just illustrating my lack of knowledge here.)

1 Like

If you plug your computer’s network into a 10Mbps switch then the speed is forced limited to 10Mbps. If software doesn’t have the config then hit it with the hammer of hardware

Assuming of course the NIC and the router understands 10Mbps

Gotcha, I have a hammer.

But really, sounds like a good idea, but I don’t have the stuff, and can’t be bothered to buy and learn some.

Shame that. Routers from the late 90’s early 2000 often had a 10Mbps switch in them. Just use the switch part if you had one

Just found this. But I got to veer away from all that for the length of the workday.

Anyone experiences with Wondershaper?

OK, tried to use Wondershaper.

Seemed very simple, but returned an error I’m not able to solve. Googling leads to only a few results, that are over my head.

If anybody here has time, I appreciate help, but I can also live without this.

I’m on Ubuntu 24.04.1 LTS, and I tried to use the version of Wondershaper that came with it.

toivo@toivo-HP-ProBook-450-G5:~$ sudo wondershaper enp1s0 102400 20480
Error: Specified qdisc kind is unknown.
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Failed to find specified qdisc.
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel

1 Like