Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2007 09:45:23 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netgraph ng_pptpgre.c
Message-ID:  <200702020945.l129jNFt074401@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2007-02-02 09:45:23 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_pptpgre.c 
  Log:
  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
  
  Revision  Changes    Path
  1.40      +5 -4      src/sys/netgraph/ng_pptpgre.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702020945.l129jNFt074401>