Hi.
About one Year ago I posted topic about network performance problems in freebsd compared to linux on hetzner.
I wasn't able to solve problem and I forgot about it. Lately things start getting worst.
I decided to make simple test:
1. Created to virtual machines on digitalocean. (don't want blame only hetzner for it). One Freebsd 12.0 on Ubuntu 18.04
2. I use the same server location to have similar results
3. Just install iptraf3 on both machines
4. Run test from my home network and from other networks
Results was like expected from my network download speed is very low from Freebsd server compared to Ubuntu.
This happens only for my home network. It is possible that my provider use some kind of QoS to limit traffic?
This don't depend on IP address, Maybe some other flags in TCP protocol?
Maybe there is some kind settings in freebsd that can mimic packets like it was from linux (to verify problem).
- for udp speed are the same (but very low)
- if i use parallel mode for iperf3 I can get similar results for freebsd and linux
- I tested lots of performance optimalization Freebsd network but none of them help (changing net.inet.tcp.cc.algorithm etc).
Any ideas?
FREEBSD SERVER
UBUNTU SERVER
About one Year ago I posted topic about network performance problems in freebsd compared to linux on hetzner.
I wasn't able to solve problem and I forgot about it. Lately things start getting worst.
I decided to make simple test:
1. Created to virtual machines on digitalocean. (don't want blame only hetzner for it). One Freebsd 12.0 on Ubuntu 18.04
2. I use the same server location to have similar results
3. Just install iptraf3 on both machines
4. Run test from my home network and from other networks
Results was like expected from my network download speed is very low from Freebsd server compared to Ubuntu.
This happens only for my home network. It is possible that my provider use some kind of QoS to limit traffic?
This don't depend on IP address, Maybe some other flags in TCP protocol?
Maybe there is some kind settings in freebsd that can mimic packets like it was from linux (to verify problem).
- for udp speed are the same (but very low)
- if i use parallel mode for iperf3 I can get similar results for freebsd and linux
- I tested lots of performance optimalization Freebsd network but none of them help (changing net.inet.tcp.cc.algorithm etc).
Any ideas?
FREEBSD SERVER
Code:
~% iperf3 -t 5 -Rc 167.71.134.232
Connecting to host 167.71.134.232, port 5201
Reverse mode, remote host 167.71.134.232 is sending
[ 5] local 192.168.1.100 port 54503 connected to 167.71.134.232 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 191 KBytes 1.56 Mbits/sec
[ 5] 1.00-2.00 sec 280 KBytes 2.29 Mbits/sec
[ 5] 2.00-3.00 sec 144 KBytes 1.18 Mbits/sec
[ 5] 3.00-4.00 sec 184 KBytes 1.51 Mbits/sec
[ 5] 4.00-5.00 sec 402 KBytes 3.29 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-5.05 sec 1.25 MBytes 2.08 Mbits/sec 51 sender
[ 5] 0.00-5.00 sec 1.17 MBytes 1.97 Mbits/sec receiver
UBUNTU SERVER
Code:
~% iperf3 -t 5 -Rc 167.71.133.221
Connecting to host 167.71.133.221, port 5201
Reverse mode, remote host 167.71.133.221 is sending
[ 5] local 192.168.1.100 port 54516 connected to 167.71.133.221 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 1.76 MBytes 14.8 Mbits/sec
[ 5] 1.00-2.00 sec 2.10 MBytes 17.6 Mbits/sec
[ 5] 2.00-3.00 sec 2.40 MBytes 20.1 Mbits/sec
[ 5] 3.00-4.00 sec 2.37 MBytes 19.8 Mbits/sec
[ 5] 4.00-5.00 sec 2.28 MBytes 19.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-5.00 sec 12.0 MBytes 20.2 Mbits/sec 25 sender
[ 5] 0.00-5.00 sec 10.9 MBytes 18.3 Mbits/sec receiver