The list of TCP parameters provided previously is quite extensive, but the Linux network stack is complex and so are the TCP settings. Kernel parameters can be numerous and not all are directly related to TCP performance tuning.
Given the context of TCP performance tuning and acknowledging the intricacy of the network stack, the provided lists cover many of the primary and most commonly tuned TCP parameters that you might encounter. However, kernel developers may introduce new options or some options might become obsolete or considered harmful and thus removed in newer kernel versions.
Here are a few additional parameters and considerations that might come into play when tuning TCP:
-
tcp_abort_on_overflow: Determines whether a listening service will abort the connection attempt if the backlog queue is full.
-
tcp_adv_win_scale: Adjusts the TCP window scaling factor; a higher value increases the socket transfer buffer size.
-
tcp_app_win: Adjusts the window with the saved application content on the scale.
-
tcp_challenge_ack_limit: Defines the rate limit imposed on TCP Challenge ACKs to mitigate ACK rate-based DoS attacks.
-
tcp_min_tso_segs: Determines the minimum number of TCP segments for TCP Segmentation Offload (TSO).
-
tcp_reordering: The number of TCP packets that can be resequenced while still accepting packets out of order.
-
tcp_retrans_collapse: Allows or disallows retransmission of contiguous collapsed packets.
-
tcp_retries1 and tcp_retries2: Configure how many times unacknowledged data is retried in the network layers before considering the remote system unresponsive.
-
tcp_rfc1337: Implements RFC 1337 fix which handles TIME-WAIT assassination hazards in TCP.
-
tcp_stdurg: Uses the standard urg mode in TCP as per RFC.
-
net.ipv4.tcp_rfc1337: Determines if sockets are protected against TIME-WAIT assassination.
-
net.ipv4.ip_local_reserved_ports: Specifies local ports that should not be used by automatic port assignments.
In addition to the TCP parameters, there are other factors at play when tuning systems for network performance such as NIC offloads, CPU affinity for interrupt handling, using Receive Side Scaling (RSS), and more.
Before tuning, make sure to research and understand the impact of each parameter, because inappropriate changes to kernel parameters can negatively affect system stability and performance. Also, some parameters should be tuned in consideration of the complete stack—from NIC to applications—alongside corresponding kernel versions and hardware capabilities.
Consult the Linux kernel documentation, as well as other credible sources and benchmarks when deciding which parameters to adjust. It's essential to test the effects of any tweaks in a controlled environment before applying them to production systems.