Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disabling linux tcp receiver window auto tuning

I'm working on linux (2.6.43.8-1.fc15.i686.PAE) and face some problem to disable auto tuning of the TCP receiver window.

I'm trying to find a given setting that would force my client to advertise a fixed receiver window. I tried to give a same given value to 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 wireshark) it's absolutely not changing anything....

This is for a study of TCP behavior and I would be very greatful if someone could answer me

Thanks in advance

PS: I made use of this post to tune the parameters

like image 536
HorusH Avatar asked Mar 20 '13 12:03

HorusH


People also ask

What is auto-tuning in TCP/IP?

Auto-tuning is consistent throughout all variants of TCP and present in all modern operating systems. In the modern Internet the range of latencies and throughput speeds that must be accommodated is simply too large to manage statically and must be adjusted dynamically.

What happens if I turn off auto-tuning on Windows?

Like all modern operating systems Windows has receive window auto-tuning to dynamically adjust the receive buffer size to the throughput and latency of the link. Disabling this feature will definitely limit your Internet speeds. Auto-tuning is consistent throughout all variants of TCP and present in all modern operating systems.

Does receive window auto-tuning require a reboot?

A reader just commented on this so this is a quickie article to debunk this “tweak”. -This setting does not require a reboot. Receive Window Auto-Tuning popped up with Windows Vista and has been a feature of every Windows version since.

Will disable Auto-tuning limit my internet speed?

Like all modern operating systems Windows has receive window auto-tuning to dynamically adjust the receive buffer size to the throughput and latency of the link. Disabling this feature will definitely limit your Internet speeds.


1 Answers

Turn off auto-tuning of the TCP receive buffer size. On the receiver:

$ sudo sysctl net.ipv4.tcp_moderate_rcvbuf=0

Or

$ sudo echo 0 > /proc/sys/net/ipv4/tcp_moderate_rcvbuf
like image 91
Satish Avatar answered Nov 10 '22 02:11

Satish