Disable tcp linux receiver window auto-tuning

I am working on linux (2.6.43.8-1.fc15.i686.PAE) and run into some problems to disable the automatic configuration of the TCP receiver window.

I am trying to find a predefined setting that will cause my client to advertise a fixed receiver window. I tried to give the same value net.core.rmem_max (/ proc / sys / net / core / rmem_max) and net.core.rmem_default (/ proc / sys / net / core / rmem_default) as well as ipv4.tcp_rmem ( net.ipv4.tcp_rmem), but when checking the advertised window (using wirehark) this does not change anything ....

This is for studying the behavior of TCP, and I would be very grateful if anyone could answer me

Thanks in advance

PS: I used this post to configure the settings

+7
source share
1 answer

Disable the automatic TCP receive buffer size setting. At the receiver:

 $ sudo sysctl net.ipv4.tcp_moderate_rcvbuf=0 

or

 $ sudo echo 0 > /proc/sys/net/ipv4/tcp_moderate_rcvbuf 
+6
source

All Articles