tinyfecVPN icon indicating copy to clipboard operation
tinyfecVPN copied to clipboard

Worse packet loss with tinyfec

Open powturns opened this issue 6 years ago • 1 comments

I've been experimenting with tinyfec under a variety of real-life conditions; however, in almost every case it performs worse than traffic not in the tunnel. Any advice on parameters that may improve the packet loss? Thanks!

Server:

./tinyvpn_amd64 -s -l0.0.0.0:4096 --sub-net 10.22.22.0 --tun-dev tun100 -f1:3,2:4,8:6,20:10 -i10

Client:

sudo ./tinyvpn_amd64 -c -rSERVER_IP:SERVER_PORT --sub-net 10.22.22.0 --tun-dev tun100 --keep-reconnect -f1:3,2:4,8:6,20:10 -i10
sudo ip route add 4.2.2.1/32 via 10.22.22.1 dev tun100

Ping tests (for example)

--- 4.2.2.1 ping statistics ---
50 packets transmitted, 40 received, 20% packet loss, time 49203ms
rtt min/avg/max/mdev = 206.986/303.454/386.257/35.575 ms

--- 8.8.8.8 ping statistics ---
50 packets transmitted, 44 received, 12% packet loss, time 49134ms
rtt min/avg/max/mdev = 115.187/223.699/275.754/33.927 ms

powturns avatar Feb 19 '19 21:02 powturns

Have you tried not setting the -f and -i options? Any chance your NAT router is overloading port 4096?

What's the platform and is the CPU getting hit?

syadnom avatar Aug 24 '19 17:08 syadnom