Chapter 4. Networking Configuration
4.1. TCP Settings Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The Transmission Control Protocol (
TCP
) is a core part of the Internet Protocol (IP
) communication protocol suite. Computers use the TCP/IP
protocol to communicate with each other when using the Internet.
4.1.1. Adjusting TCP Send/Receive Window Settings Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The operating system is a deciding factor in determining the maximum size of the TCP Send and Receive window.
Procedure 4.1. Set the TCP Send and Receive Windows
For Red Hat Enterprise Linux, use the recommended settings to configure the send and receive windows as follows:
Adjust the Send and Receive Window Sizes
Adjust the size of the send and receive windows by adding the following lines to the/etc/
sysctl.conf
file as root:- Add the following line to set the send window size to the recommended value (
640
KB):net.core.wmem_max=655360
net.core.wmem_max=655360
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the following line to set the receive window size to the recommended value (
25
MB):net.core.rmem_max=26214400
net.core.rmem_max=26214400
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Apply Changes Immediately
Optionally, to load the new values into a running kernel (without a reboot), enter the following command as root:sysctl -p
# sysctl -p
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the user reboots after the first step, the second step is unnecessary.