From owner-freebsd-hackers Sat Nov 23 18: 0:24 2002 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 4D18437B401 for ; Sat, 23 Nov 2002 18:00:23 -0800 (PST) Received: from web.internal.psiu.dyndns.org (alb-24-58-129-23.nycap.rr.com [24.58.129.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAA2343E4A for ; Sat, 23 Nov 2002 17:56:54 -0800 (PST) (envelope-from dolemite@psiu.dyndns.org) Received: from ultraalex.psiu.dyndns.org ([10.2.2.101]) by web.internal.psiu.dyndns.org (8.12.6/8.12.5) with ESMTP id gAO1o5MU077274 for ; Sat, 23 Nov 2002 20:52:43 -0500 (EST) (envelope-from dolemite@psiu.dyndns.org) Received: (from dolemite@localhost) by ultraalex.psiu.dyndns.org (8.11.6+Sun/8.11.6) id gAO1ndl21410 for freebsd-hackers@freebsd.org; Sat, 23 Nov 2002 20:49:39 -0500 (EST) Date: Sat, 23 Nov 2002 20:49:38 -0500 From: Alex Newman To: freebsd-hackers@freebsd.org Subject: getting the rtt in a divert socket Message-ID: <20021124014938.GA21312@ultraalex.psiu.dyndns.org> Reply-To: dolemite@wuli.nu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I just finnished writing a program which introduces a small random delay on the sending times in tcp to prevent synchronization of windows. I did it with divert sockets and ipfw. The one problem is , I was planning on setting the random delay =RTT(1+x)/cwnd where x is a random number. Currently i just have a small random number. Does anyone know a good way of picking out the cwnd and make a good estimate of the roundtrip time from the information flowing over divert sockets? Obviously i don't have to worry about the first calculation so i will probably set the RTT= something small. -- Alex Newman Quidquid latine dictum sit, altum viditur. dolemite@wuli.nu I don't know who came up with this quote. www.wuli.nu/users/dolemite To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message