The FEC starts at the level 1 (L=10, D=0) instead of 0 (no repair packets) when the bandwidth is high for the low loss rate values.
Add new statistics to analyze the efficiency of the FEC :
- Cumulative lost packets: number of source packets that have not been repaired by the current fec stream.
- Repaired packets: number of source packets that were missing but have been repaired by the current fec stream.
And some histograms, printed with local stats and global stats (when the fec stream is destroyed):
- histogram of the number of attempts to repair a missing source packet until it succeeds
- histogram of the number of attempts to repair a missing source packet when it fails
- histogram of the number of source packets received between two missing packets
- histogram of the number of successive source packets missing packets
To print these histograms, the sequence numbers of the missing, repaired and definitely lost packets are temporary kept in unordered_map and vectors, then the histograms are computed, print and reset to 0.