From owner-freebsd-questions Thu Sep 17 10:02:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA13007 for freebsd-questions-outgoing; Thu, 17 Sep 1998 10:02:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA12984; Thu, 17 Sep 1998 10:02:39 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id MAA08985; Thu, 17 Sep 1998 12:01:09 -0500 (CDT) Date: Thu, 17 Sep 1998 12:01:09 -0500 From: Dan Nelson To: dg@root.com, Kevin Kyeong-il CHOI Cc: FreeBSD Question , FreeBSD Net , tcp-over-satellite@achtung.sp.trw.com Subject: Re: Why FreeBSD (or Solaris as well) get stuck in case of long delay ? Message-ID: <19980917120109.A8761@emsphone.com> References: <006801bde208$b8e51ac0$52099584@pc-kichoi.cst.cnes.fr> <199809171437.HAA06002@implode.root.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: <199809171437.HAA06002@implode.root.com>; from "David Greenman" on Thu Sep 17 07:37:48 GMT 1998 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 17), David Greenman said: > FreeBSD is almost certainly still using a window of 16KB. There > are problems in the code related to changing the socket buffer size > after the system is up. You pretty much have to modify the default > value in the kernel source files in order to use a larger window. I've been able to reliably increase my window by putting this in rc.local: sysctl -w net.inet.tcp.recvspace=65536 sysctl -w net.inet.tcp.sendspace=65536 route change default -recvpipe 65536 -sendpipe 65536 route change -recvpipe 65536 -sendpipe 65536 Kevin: you can easily check to see what window size BSD is using by tcpdump'ing the interface during your test: 11:54:46.789259 dan.emsphone.com.4730 > wcarchive.cdrom.com.ftp: S 4230863059:4230863059(0) win 65535 (DF) shows my window size at 64K. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message