From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 8 20:44:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD8AA16A4CE for ; Wed, 8 Sep 2004 20:44:55 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 18D4D43D2D for ; Wed, 8 Sep 2004 20:44:55 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 8 Sep 2004 21:44:54 +0100 (BST) Date: Wed, 8 Sep 2004 21:44:53 +0100 From: David Malone To: Soo-Hyun Choi Message-ID: <20040908204453.GA38332@walton.maths.tcd.ie> References: <34b425c504090809435a949a03@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34b425c504090809435a949a03@mail.gmail.com> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie cc: freebsd-hackers@freebsd.org Subject: Re: TCP RTO X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 20:44:56 -0000 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.