Gleb Smirnoff f8e159d658 Quoting Alexander:
Formulas described in RFC require high precision of floating point.
  Formulas of integer math implemented in ng_pptpgre give mistake in range
  of +0-7ms on RTT and +0-3ms on deviation. This leads to significant
  underestimation of real packet RTT.

  I have made a very simple patch to reduce mistake to +4-3ms on RTT and
  +2-1ms on deviation. Mistake in RTT is not good, but gets covered by
  deviation. To cover worst possible negative mistake in deviation I have
  added 2ms to it. Also this 2 ms cover the case when measured deviation
  is so small (about zero) that it can interfere with process scheduling
  delays or weather on Mars.

  My tests show decreasing of packet losses on 20ms RTT link from 2.5% to
  0.3% while speed increased un 1/3.

Reviewed by:	archie
2007-02-02 09:45:23 +00:00
..
2006-09-30 12:37:43 +00:00
2006-10-11 14:33:08 +00:00
2005-12-07 21:41:45 +00:00
2005-02-12 18:10:26 +00:00
2007-01-15 05:55:56 +00:00
2005-04-15 10:14:00 +00:00
2006-01-14 21:49:31 +00:00
2005-12-09 07:09:44 +00:00
2006-02-14 15:22:24 +00:00
2006-02-17 09:42:49 +00:00
2006-01-14 14:17:27 +00:00
2007-02-02 09:45:23 +00:00
2007-01-15 05:55:56 +00:00
2005-02-06 19:24:59 +00:00