TCP tuning parameters

Issues related to configuring your network
Post Reply
Spiros85
Posts: 1
Joined: 2014/04/11 08:18:53

TCP tuning parameters

Post by Spiros85 » 2014/04/11 08:36:58

Hello dear Members

I am trying to set my TCP tuning parameters for 1.5Mbps bandwidth and 500msec latency. In order to find the BDP I have to use the following mathematical type:
BDP= (1.5*1024*1024*0.5)/8 = 98304 bytes

My minimun and default parameters I want to be equal to BDP and the maximum to be 1.5*BDP.

The purpose of my question is which TCP tuning parameters do I have to set at '/etc/sysctl.conf' ?
I know it is obvious to set
net.ipv4.tcp_rmem=98304 98304 147456
net.ipv4.tcp_wmem=98304 98304 147456


but what about the following parameters:
net.core.rmem_max
net.core.rmem_max
net.core.rmem_default
net.core.wmem_max
net.core.wmem_default


Do I have to set them too?

Thanks in advance :)

User avatar
Super Jamie
Posts: 310
Joined: 2014/01/10 23:44:51

Re: TCP tuning parameters

Post by Super Jamie » 2014/04/11 11:11:31

net.core..mem control protocols which are not TCP, UDP, or SCTP

net.ipv4.tcp_.mem and net.ipv4.udp_.mem_min and net.sctp.sctp_.mem control TCP, UDP, and SCTP respectively.

You're probably best to match your min/max/default for all protocols, or at least don't tune net.core to be drastically different to net.ipv4.tcp.

However, I'd expect your maximum is not sufficient to get best performance. Honestly with such a rubbish connection, you may as well just leave the defaults as they are.

Post Reply