Throttling network speed is theoretically straightforward in linux, made even easier with a utility called wondershaper. Unfortunately, in line with the golden rule ‘nothing is ever easy’, wondershaper fails on Ubuntu, and none of the fixes I tried work. However, wondershaper is a front-end to the ‘tc’ utiitity (traffic control), and this tc command worked:
sudo tc qdisc add dev enp4s0 root tbf rate 1000kbit burst 16kbit latency 50mS
This magic incantation means “to device enp4s0 (my ethernet network connection), add a traffic block filter that limits the maximum upload speed to 1megabits per second, with a 16kbits per second burst, and 50mS of latency (network delay). The effect can be seen in this speedtest, where my download is just under 50Mbits/s but my upload speed is reduced from 10Mbits/s to 0.9.
When sending images to the forim, it’s the upload speed that matters, and on an asynchronous service upload is about 20% of the download speed.
My next post will contain a 7Mb image. Not putting it this one in case my slow network mangles everything and I have to retype it.
Dave