Advanced congestion control in FreeBSD
-
Because the international exports of foreign networks that I connect via VPV are often congested, resulting in high network latency and packet loss. I am thinking about optimizing my system.
I refer to this document
https://fasterdata.es.net/host-tuning/freebsd/To load a particular congestion control algorithm (for example htcp) you can use:
kldload cc_htcp
But I have an error when I start the module
/root: kldload cc_htcp kldload: can't load cc_htcp: No such file or directory
How can I choose the settings?
-
You could probably copy that module across from FreeBSD (11.2 for pfSense 2.4.4).
However it probably won't help since pfSense is not the end point of the TCP connection for the vast majority if traffic going through it.Steve
-
@stephenw10 said in Advanced congestion control in FreeBSD:
ince pfSense is not the end point of the TCP connection for the vast majority if traffic going through
i will test it. i have copy the cc_htcp.ko to /boot/kernel
-
It will work in either location since there isn't a kernel module already but I would expect that to be in
/boot/modules
.Let us know if you see any difference with that running.
Steve
-
@stephenw10 said in Advanced congestion control in FreeBSD:
It will work in either location since there isn't a kernel module already but I would expect that to be in
/boot/modules
.Let us know if you see any difference with that running.
Steve
how i check it ?
sysctl net.inet.tcp.cc net.inet.tcp.cc.htcp.rtt_scaling: 0 net.inet.tcp.cc.htcp.adaptive_backoff: 0 net.inet.tcp.cc.available: newreno, htcp net.inet.tcp.cc.algorithm: htcp /root: sysctl net.inet.tcp.cc.available net.inet.tcp.cc.available: newreno, htcp /root: kldload cc_htcp kldload: can't load cc_htcp: module already loaded or in kernel
-
I feel that it may be running, as if the network latency has improved
-
@yon-0 said in Advanced congestion control in FreeBSD:
@stephenw10 said in Advanced congestion control in FreeBSD:
ince pfSense is not the end point of the TCP connection for the vast majority if traffic going through
i will test it. i have copy the cc_htcp.ko to /boot/kernel
There were a lot of kernel enhancements to improve TCP throughput. However, as mentioned above, that only affects the ends of the connections. Any router in between is simply passing the packets through.
-
@yon-0 said in Advanced congestion control in FreeBSD:
net.inet.tcp.cc.algorithm: htcp
If you're seeing that then it is in use.
Steve
-
@jknott said in Advanced congestion control in FreeBSD:
@yon-0 said in Advanced congestion control in FreeBSD:
@stephenw10 said in Advanced congestion control in FreeBSD:
ince pfSense is not the end point of the TCP connection for the vast majority if traffic going through
i will test it. i have copy the cc_htcp.ko to /boot/kernel
There were a lot of kernel enhancements to improve TCP throughput. However, as mentioned above, that only affects the ends of the connections. Any router in between is simply passing the packets through.
so i am using openvpn p2p mode, maybe it is helpful.
-
@yon-0 said in Advanced congestion control in FreeBSD:
so i am using openvpn p2p mode, maybe it is helpful.
OpenVPN normally uses UDP, which is not affected by those changes. They only work with TCP.
-
@jknott said in Advanced congestion control in FreeBSD:
@yon-0 said in Advanced congestion control in FreeBSD:
so i am using openvpn p2p mode, maybe it is helpful.
OpenVPN normally uses UDP, which is not affected by those changes. They only work with TCP.
yes, but i don't know why it is helpfull for network. now i have change othe vpn side ubuntu use Westwood+ congestion control. before use is bbr. but freebsd no find the Westwood yet.