LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 01-17-2014, 09:09 AM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 373

Rep: Reputation: 30
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, 04:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
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, 05:12 AM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 373

Original Poster
Rep: Reputation: 30
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 12:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration