From owner-freebsd-net Tue Jul 10 13:36:17 2001 Delivered-To: freebsd-net@freebsd.org Received: from jezebel.demon.co.uk (jezebel.demon.co.uk [158.152.38.143]) by hub.freebsd.org (Postfix) with ESMTP id DC96D37B408 for ; Tue, 10 Jul 2001 13:36:09 -0700 (PDT) (envelope-from rdls@jezebel.demon.co.uk) Received: (from rdls@localhost) by jezebel.demon.co.uk (8.11.1/8.11.1) id f69MhIv01258; Mon, 9 Jul 2001 23:43:18 +0100 (BST) (envelope-from rdls) Date: Mon, 9 Jul 2001 23:43:18 +0100 From: Richard Smith To: Luigi Rizzo Cc: net@FreeBSD.ORG Subject: Re: sysctls keepidle and keepintvl Message-ID: <20010709234317.A1235@gaia.home.rdls.net> References: <20010709230512.A918@gaia.home.rdls.net> <200107092207.AAA11018@info.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107092207.AAA11018@info.iet.unipi.it>; from luigi@info.iet.unipi.it on Tue, Jul 10, 2001 at 12:07:55AM +0200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jul 10, 2001 at 12:07:55AM +0200, Luigi Rizzo wrote: > > Please cc me, as I'm not on this list. > > > > I am using 4.3-RELEASE, and investigating why I don't see > > any keepalives (using tcpdump) on my connections. > > > > The default values are as follows: > > net.inet.tcp.keepidle = 7200000 > > net.inet.tcp.keepintvl = 75000 > > > > It seems to me that the keepalive interval is being set > > by keepidle, thus setting keepidle = 20000, generates > > keepalives at 20s intervals. > > whatever is used, isn't the interval in seconds ? If so > you must be very patient to see something... No, the tcp sysctls are in ms. Looking through the code, however, I now understand the relationship between keepidle and keepintvl. The value of keepidle has been 120 minutes (7200000) since the beginning of CVS. I was rather hoping to keep a dynamic firewall open with keepalives :-) So I need to set: keepidle < net.inet.ip.fw.dyn_ack_lifetime. Problem solved. Thanks, Rich. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message