Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2004 21:44:53 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Soo-Hyun Choi <shchoi@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: TCP RTO
Message-ID:  <20040908204453.GA38332@walton.maths.tcd.ie>
In-Reply-To: <34b425c504090809435a949a03@mail.gmail.com>
References:  <34b425c504090809435a949a03@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 08, 2004 at 05:43:36PM +0100, Soo-Hyun Choi wrote:
> These variables are used to calculate the TCP RTO. But why do they
> have the two different version of variables?

There are two different variables because they store different
things. One measures the average of the round trip time and the
other measured the variability of the round trip time. The RTO is
calculated as the average plus some constant times the variability.

> The interesting thing is
> the 't_' variables are a fixed-point integer, and the original
> variables are just floating-point values. I assume the reason why they
> have is to avoid the floating-point arithmetic in the kernel. Is this
> really only reason for being two different version of those?

The calculation is designed to be done with fixed point calculations,
but this is not why there are two variables.

	David.



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