This topic describes how to enable TCP selective acknowledgment (SACK) on a Linux Elastic Compute Service (ECS) instance.
If TCP SACK is disabled on a Linux ECS instance, the network performance of the instance may be affected. You can perform the operations that are described in this topic to enable TCP SACK.
Procedure
This section describes how to enable TCP SACK on an ECS instance that runs CentOS 7.4. The operations that you can perform to enable TCP SACK may slightly vary based on the operating system. For more information, see the official document for the actual operating system of your ECS instance.
Connect to the Linux ECS instance by using Virtual Network Computing (VNC).
For more information, see Connect to an instance by using VNC.
Run the following command to modify the
/etc/sysctl.conffile:vim /etc/sysctl.confEnable TCP SACK.
If
net.ipv4.tcp_sacksettings exist in the /etc/sysctl.conf file, perform the following steps to enable TCP SACK:Press the
Ikey to enter Insert mode.Change
net.ipv4.tcp_sack = Xtonet.ipv4.tcp_sack = 1.Press the
Esckey to exit the Insert mode. Enter:wqand press theEnterkey to save and close the file.
If
net.ipv4.tcp_sacksettings do not exist in the /etc/sysctl.conf file, perform the following steps to enable TCP SACK:Press the
Ikey to enter Insert mode.Add the following configuration to the end of the file:
net.ipv4.tcp_sack = 1The following figure shows how to add the configuration to the file.

Press the Esc key to exit the Insert mode. Enter
:wqand press theEnterkey to save and close the file.
Run the following command to allow the changes to take effect:
sysctl -p