LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2014, 10:09 AM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
Congestion control


Hello,

I would like to ask if anyone knows how is it possible to determine what will be the appropriate receive window size for a receiver in a Server-Client application, especially if the application implements a congestion control algorithm (ex.Reno)?

Thank you.
 
Old 01-18-2014, 05:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The receive window size consists of two values: a fixed maximum (/proc/sys/net/core/rmem_max: mucking with changing of values is not suggested unless you know you need to and you know what you are doing) and the current size which is flexibly based on the amount of data not yet received from the sender. The latter, basically a countdown of bytes not received yet, is advertised in ACKs as a 16-bit window value. Sloppy AWK but on the server this should more or less show the window settings it advertises to clients:
Code:
tcpdump -n -nn -N -i [ethernet_device_name] 'tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-ack'|awk '{if($10 = "win") print $5,$11}'
 
1 members found this post helpful.
Old 01-22-2014, 06:12 AM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
unSpawn,

Thank you very much for your reply. Could I also ask you which congestion control algorithm do you believe is more efficient?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question about TCP Congestion Control kinetic Linux - Networking 2 09-05-2008 08:09 AM
tcp congestion control jwstric2 Linux - Networking 8 04-19-2005 12:28 PM
Programming - Linux TCP Congestion Control smokey1582 Programming 1 10-22-2004 05:07 PM
Programming - Linux TCP Congestion Control smokey1582 Linux - Software 1 10-21-2004 01:38 PM
Programming - Linux TCP Congestion Control smokey1582 Linux - Networking 0 10-21-2004 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration