Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2000 09:17:14 -0600 (CST)
From:      Guy Helmer <ghelmer@cs.iastate.edu>
To:        Gregory Sutter <gsutter@zer0.org>
Cc:        Oyster Liu <oyster@dns.homenet.com.tw>, freebsd-doc@FreeBSD.ORG
Subject:   Re: How do you change the TCP windows size ?
Message-ID:  <Pine.HPX.4.05.10003090912090.14091-100000@popeye.cs.iastate.edu>
In-Reply-To: <20000309005424.A50524@azazel.zer0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Mar 2000, Gregory Sutter wrote:

> On 2000-03-09 12:34 +0800, Oyster Liu <oyster@dns.homenet.com.tw> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.HPX.4.05.10003090912090.14091-100000>