LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-08-2009, 04:08 AM   #1
Yair
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Change initial TCP send window size


Hi,

I am working on a project to change the initial send window size under different scenarios. Looking at tcp capture I see that the sender always sends 2 packets. I am working on kernel 2.6.29.1.

I was digging in the kernel source code and added congestion control module. I thought the place to change it is the function .init. So I changed the snd_cwnd to 4 but still no luck, the sender sends 2 packets.

I am new to kernel development, any ideas how to control the send windows size?
 
Old 06-10-2009, 03:34 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Are you sure snd_cwnd is 4 when the packets are sent? When you have this checked, I'd also look into the tcp_init_congestion_ops structure.
 
  


Reply



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
Increasing TCP initial window to 3 segments (rfc 2414 or 3390) nenderle Linux - Networking 1 06-08-2009 04:16 AM
Default value for TCP send buffer size peer Linux - General 4 01-27-2009 07:21 AM
tcp send window size discrepency Viken Kondakji Linux - Networking 0 10-24-2007 01:20 PM
possible to send size zero tcp packet? jackandking Linux - Networking 3 07-05-2007 02:27 AM
tcp/ip window size h/w Linux - Networking 2 12-04-2003 10:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:22 PM.

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