Re: setting Initial Window Size of TCP in linux



I am using debian distribution with 2.4 kernel...and I want both to
increase or decrease it...

I suspect you need to crack-open an editor and the compiler.

Just a minute - the receiving end determines its TCP window size (in
both directions).

There are, in broad handwaving terms, three things that limit how much
data is "in flight" at one time on a TCP connection.

The first is what I like to call the "classic" TCP window - it is the
"receive" window advertised by the receiver, and is seen in the TCP
header. Indeed, it is maintained by the receiver.

The second is the congestion window. It is the _sender's_ best guess
as to how much data can be in flight at one time without overloading
some component between the sender and the receiver. It is purely a
figment of the sender's imagination :) (as it were) and does not
appear on the wire in the TCP header.

The third I call the "SO_SNDBUF" window. TCP must retain a reference
to the data it has sent until it receives an ACK from the remote.
Generally, the place where TCP keeps this data is the socket send
buffer, and that is controlled in part by setsockopt() calls setting
SO_SNDBUF - typically bounded by some sort of system configuration
limits. If TCP has no place to keep the reference to the data, it
cannot send it, so it can send no more data at one time than it can
track.

So, the maximum quantity of data outstanding at any one time will be
the minimum of those three things.

rick jones
--
denial, anger, bargaining, depression, acceptance, rebirth...
where do you want to be today?
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
.



Relevant Pages

  • Re: Interesting TCP issue
    ... }} Subject: Re: Interesting TCP issue ... }}> idiotically small window the remote server is advertising. ... }} turn off window scaling and see if that helps ...
    (freebsd-hackers)
  • Re: Increasing TCP buffer and window for more throughput
    ... place a limit on the size of the "effective" TCP window. ... receive window on the receiver without increasing the "SO_SNDBUF" on ... inside rsync code which is used on both the sender and receiver hosts. ...
    (comp.unix.solaris)
  • RE: RWIN (TCP Window Size) negotiates properly after upgrading to SP2
    ... Apparently SP2 uses a different registry setting than SP1: ... TCP window size. ... There are 3-4 places in the Windows Registry that affect the TCP Window. ...
    (microsoft.public.windowsxp.network_web)
  • Re: large tcp window
    ... Additionally about TCP window size (TcpWindowSize registry key) on XP (at ... > on the first glance Nagle have to decrease performance but with TCP ...
    (microsoft.public.win32.programmer.networks)
  • Re: 2.6.17.1: fails to fully get webpage
    ... the RFC standard window scaling field of the TCP headers. ... I have customers and they have customers. ...
    (Linux-Kernel)