From owner-freebsd-net@FreeBSD.ORG Thu Apr 15 05:39:56 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 ED7E916A4CE for ; Thu, 15 Apr 2004 05:39:56 -0700 (PDT) Received: from hotmail.com (bay13-dav66.bay13.hotmail.com [64.4.31.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFD1B43D48 for ; Thu, 15 Apr 2004 05:39:56 -0700 (PDT) (envelope-from naga_raju_@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Apr 2004 05:39:57 -0700 Received: from 203.200.20.226 by bay13-dav66.bay13.hotmail.com with DAV; Thu, 15 Apr 2004 12:39:57 +0000 X-Originating-IP: [203.200.20.226] X-Originating-Email: [naga_raju_@hotmail.com] X-Sender: naga_raju_@hotmail.com From: "Nagaraju" To: References: <20040414190205.7AE6516A4D1@hub.freebsd.org> Date: Thu, 15 Apr 2004 18:04:46 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 15 Apr 2004 12:39:57.0447 (UTC) FILETIME=[C2840170:01C422E6] Subject: How do tt_timerq and tmerq manage tcp syncache? 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: Thu, 15 Apr 2004 12:39:57 -0000 Hi, In FreeBSD 4.9, tcp_syncache implements a hash table with buckets, where an entry is created on SYN request. Function syncache_timer takes care of SYN-ACK retransmissions and removing old entries from syncache. It uses two variables timerq (array of link lists) and tt_timerq (array of callouts). Size of both arrays is SYNCACHE_MAXREXMTS+1. (SYNCACHE_MAXREXMTS = 3) Can someone explain, how these two variable do manage, required functionality (removing old entries and retransmitting SYN-ACK etc)? Thanks&Regards, Nagaraju.