From owner-freebsd-doc Thu Mar 9 7:17:28 2000 Delivered-To: freebsd-doc@freebsd.org Received: from css-1.cs.iastate.edu (css-1.cs.iastate.edu [129.186.3.24]) by hub.freebsd.org (Postfix) with ESMTP id 911DB37B673 for ; Thu, 9 Mar 2000 07:17:23 -0800 (PST) (envelope-from ghelmer@cs.iastate.edu) Received: from popeye.cs.iastate.edu (ghelmer@popeye.cs.iastate.edu [129.186.3.4]) by css-1.cs.iastate.edu (8.9.0/8.9.0) with ESMTP id JAA25208; Thu, 9 Mar 2000 09:17:17 -0600 (CST) Received: from localhost (ghelmer@localhost) by popeye.cs.iastate.edu (8.9.0/8.9.0) with ESMTP id JAA18865; Thu, 9 Mar 2000 09:17:14 -0600 (CST) X-Authentication-Warning: popeye.cs.iastate.edu: ghelmer owned process doing -bs Date: Thu, 9 Mar 2000 09:17:14 -0600 (CST) From: Guy Helmer To: Gregory Sutter Cc: Oyster Liu , freebsd-doc@FreeBSD.ORG Subject: Re: How do you change the TCP windows size ? In-Reply-To: <20000309005424.A50524@azazel.zer0.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 9 Mar 2000, Gregory Sutter wrote: > On 2000-03-09 12:34 +0800, Oyster Liu wrote: > > > > I have used the freebsd for a long time. But, I could not find the > > command to display the tcp window size and set the window size. Could > > you help me to find these commands ? > > You are looking for a couple of sysctl settings: > > # sysctl net.inet.tcp | grep space > net.inet.tcp.sendspace: 16384 > net.inet.tcp.recvspace: 16384 > # > # sysctl -w net.inet.tcp.sendspace=32768 > net.inet.tcp.sendspace: 16384 -> 32768 > # > # sysctl net.inet.tcp | grep space > net.inet.tcp.sendspace: 32768 > net.inet.tcp.recvspace: 16384 > > Greg Thanks, Greg. It may be worth mentioning also that it may be useful to set tcp_extensions="YES" in /etc/rc.conf (the default in /etc/defaults/rc.conf is "NO") to enable window scaling, which would allow tcp window sizes > 65535. Larger windows may help performance for faster (e.g., gigabit) networks. Guy Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science Research Assistant, Dept. of Computer Science --- ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer Mistakes in this message are likely due to a cat walking across my keyboard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message