wangyu- / UDPspeeder

A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction, possible for All Traffics(TCP/UDP/ICMP)
MIT License
4.7k stars 828 forks source link

Tune FEC redundancy automatically #30

Open yydcool opened 6 years ago

yydcool commented 6 years ago

Can we tune FEC redundancy automatically? Based on the link statistics e.g. packet loss, rtt ... UDPspeeder measures the link statistics, and dynamically select the best FEC ratio. For those people whose network environment is quite unstable, the packet loss rate changes a lot.

wangyu- commented 6 years ago

Can we tune FEC redundancy automatically? Based on the link statistics e.g. packet loss, rtt ... UDPspeeder measures the link statistics, and dynamically select the best FEC ratio.

This might be implemented in future.It will need tons of work to be stable,so,it wont come soon.

For those people whose network environment is quite unstable, the packet loss rate changes a lot.

For this circumstance,at the moment,you have to estimate the max packet loss rate and use a conservative fec parameter.

wangyu- commented 6 years ago

Now,an interface for changing FEC parameters dynamically has been implemented.Check --fifo option for details.

You can measure link statistics e.g. packet loss, rtt ... by using a script, and let the script tell UDPspeeder to change FEC parameters dynamically.