Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

socket buffer size

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2004, 04:12 PM
Default socket buffer size



Hi,

I am trying to understand the relation between socket buffer size
and sliding window size and I have a few questions about the TCP
implementation on linux. What is the use of setting the buffer size (send
and recv) of sockets using setsockopt calls? Does this buffer size have any
relation to Tcp sliding window size? Also, what is the relevance of values
in /proc/sys/net/core/rmem_default, wmem_default with socket buffer sizes
and sliding windows sizes.

What is the effect of tweaking these various parameters on bandwidth and
latency? Is there any link, paper or book that discusses these issues and
issues relating to optimizing TCP for particular applications?

Thanks in Advance,
Pirabhu





Pirabhu Raman
Reply With Quote
  #2  
Old 08-18-2004, 10:48 PM
P Gentry
Guest
 
Posts: n/a
Default Re: socket buffer size

"Pirabhu Raman" <(E-Mail Removed)> wrote in message news:<cfvrlv$13ce$(E-Mail Removed)>...
> Hi,
>
> I am trying to understand the relation between socket buffer size
> and sliding window size and I have a few questions about the TCP
> implementation on linux. What is the use of setting the buffer size (send
> and recv) of sockets using setsockopt calls? Does this buffer size have any
> relation to Tcp sliding window size? Also, what is the relevance of values
> in /proc/sys/net/core/rmem_default, wmem_default with socket buffer sizes
> and sliding windows sizes.
>
> What is the effect of tweaking these various parameters on bandwidth and
> latency? Is there any link, paper or book that discusses these issues and
> issues relating to optimizing TCP for particular applications?
>
> Thanks in Advance,
> Pirabhu


I posted this late yesterday -- in this group ;-)

You can try here for a first go:
http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html

http://ipsysctl-tutorial.frozentux.n...tml/index.html
which gives an explanation of the variables in /proc/sys/net/xxx

This is my standard perf reference (concise but pretty complete):
http://www.psc.edu/networking/perf_tune.html

and this may be of interest too:
http://www.web100.org/

Just so you're aware
http://lwn.net/Articles/91976/
"TCP window scaling and broken routers"

prg
email above disabled
Reply With Quote
Reply

Tags
buffer, size, socket

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.