How to tweak internet connection?

Hi!

I want tweak my VDSL internet connection in Ubuntu Mate because my download rates are slow (3MB/s-max. 4MB/s)

How can I tweak my internet connection with sysctl.conf?

Which values need to be calculated and how do I do it?
RWIN and so on...

i am not sure you can do it with that file but also did you check your other parts of the network and i have never seen that you would need to do anything to get full speed.

my guess before anything with OS would be network cables Wireless and other devices on your network

PS. wow nice speed on vdsl

1 Like

I have bad download rates. about 3-4 MB/s.

on a "250 Mbit connection" :-/

I've tried out:

Tweaks:
sysctl.conf
ethtool
multicast off/on

Unfortunately no success.

On Windows OS there used to be a RWIN Calculator to tweak the internet connection.

With Linux I have not found such a tool yet.

Hi,
There's no need to «tweak» your internet connection.
There's no magic trick that will make you go from 3-4mb/s to 25mb/s (= what you should achieve with a 250 mbit internet connection) except if you got really bad wi-fi. Try an ethernet connection if you didn't already and see if you get the same speeds.
In your router DSL settings, check the real speed of your DSL line and divide it by 10 or so. There you get your max download speed. Should it be around 250 000kbits, contact your ISP.

1 Like

After some tweaking tests, I have now fast download rates with the congestion control 'htcp'.

Here are my tweaks:

"net.core"

net.core.netdev_max_backlog = 65536
net.core.somaxconn = 4096

"icmp"

net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1

net.ipv4.icmp_errors_use_inbound_ifaddr = 0

net.ipv4.icmp_ignore_bogus_error_responses = 1

"net_ipv4_rwin"

net.core.optmem_max = 20480

net.ipv4.tcp_mem = 781250

net.core.rmem_default = 781250
net.core.wmem_default = 781250

net.core.rmem_max = 8000000
net.core.wmem_max = 8000000

net.ipv4.tcp_rmem = 4096 3125000 8000000
net.ipv4.tcp_wmem = 4096 3125000 8000000

"net.ipv4_security"

net.ipv4.tcp_challenge_ack_limit = 999999999

net.ipv4.tcp_dsack = 0
net.ipv4.tcp_fack = 0
net.ipv4.tcp_sack = 1

net.core.tstamp_allow_data = 0
net.ipv4.tcp_rfc1337 = 0
net.ipv4.tcp_timestamps = 0

net.ipv4.tcp_max_syn_backlog = 1024

net.ipv4.tcp_syn_retries = 6
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_syncookies = 1

"ipv4 tweaks"

net.ipv4.tcp_fastopen = 1
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_low_latency = 1
net.ipv4.tcp_mtu_probing = 1

net.ipv4.tcp_moderate_rcvbuf = 1
net.ipv4.tcp_no_metrics_save = 1

net.ipv4.tcp_adv_win_scale = 2
net.ipv4.tcp_window_scaling = 1

net.ipv4.tcp_slow_start_after_idle = 0

net.ipv4.tcp_max_tw_buckets = 32768

net.ipv4.tcp_tw_reuse = 1

1 Like

I'm a bit of a newbie but not sure where to enter those settings- are they config files?

1 Like

Welcome @Ben_Lightfoot to the community!