From owner-freebsd-net@FreeBSD.ORG Wed May 19 02:01:47 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AB0D16A4CE for ; Wed, 19 May 2004 02:01:47 -0700 (PDT) Received: from raven.ecs.soton.ac.uk (raven.ecs.soton.ac.uk [152.78.70.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1A343D54 for ; Wed, 19 May 2004 02:01:46 -0700 (PDT) (envelope-from kwl02r@ecs.soton.ac.uk) Received: from magpie.ecs.soton.ac.uk (magpie.ecs.soton.ac.uk [152.78.68.131]) i4J91W7s003346 for ; Wed, 19 May 2004 10:01:32 +0100 (BST) Received: from ecs.soton.ac.uk (kaiwen [152.78.66.89]) by magpie.ecs.soton.ac.uk (8.9.3/8.9.3) with ESMTP id KAA15082 for ; Wed, 19 May 2004 10:01:28 +0100 (BST) Message-ID: <40AB2209.6060108@ecs.soton.ac.uk> Date: Wed, 19 May 2004 09:59:53 +0100 From: kwl02r User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-Information: Please contact helpdesk@ecs.soton.ac.uk for more information X-ECS-MailScanner: Found to be clean Subject: About tcp_fastimo() and tcp_slowtimo() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 09:01:47 -0000 Dear all, I just follow the book "TCP/IP illustrate vol 2" to understand more about TCP timer. In the book, tcp_fastimo() is invoked each 200 ms to do delay ack job and tcp_slowtimo() is invoked each 500 ms to do the rest of other tcp times. But at the last version of FreeBSD source code, I couldn't find tcp_fastimo() anymore and tcp_slowtimo() is quite different compared with source code present at book. My questions are: At the new FreeBSD: 1. Did delay ack time still be detected each 200ms? Which function do this job? If not, can anybody help to describe some detail things about delay ack time at freebsd source code. 2. The new tcp_slowtimo() following is invoked each 500ms, but seems only detects tcp_keepintvl timer, how about other timers (eg. SYN, FIN_WAIT ..) void tcp_slowtimo() { int s; s = splnet(); tcp_maxidle = tcp_keepcnt * tcp_keepintvl; splx(s); } 3. Did TCP timer (detect 200 or 500 ms each time) doing the same job under the LINUX kernel? 4. Any web or book can find detail describe at source code about TCP timer under both FreeBSD and Linux kernel? Thanks Calvin