implement rate adaptation algorithm for the serial segment fetching method based on http://www.cs.tut.fi/~moncef/publications/rate-adaptation-IC-2011.pdf