Configuring TCP attributes involves the adjustment in the TCP timer, the size of a TCP sliding window, and TCP Maximum Segment Size (MSS).
The TCP attributes are as follows:
SYN-WAIT timer
TCP starts the SYN-WAIT timer before sending SYN packets. If no response packets are received after the SYN-WAIT timer expires, a TCP connection is terminated.
FIN-WAIT timer
The FIN-WAIT timer starts after a TCP connection changes from FIN_WAIT_1 to FIN_WAIT_2. If no FIN packets are received after the FIN-WAIT timer expires, a TCP connection is terminated. If FIN packets are received, the TCP connection changes to the TIME_WAIT state. If non-FIN packets are received, TCP restarts the SYN-WAIT timer upon receiving the last non-FIN packet and terminates the TCP connection after the SYN-WAIT timer expires.
TCP sliding window size
The TCP sliding window size is size of the buffer for sent and received packets on a TCP socket.
MSS
The MSS of a TCP packet is the maximum length allowed for a TCP packet sent from the peer end to the local end. After a TCP connection is established, both ends notify each other of their MSSs in TCP packets. After recording the peer end's MSS, the local end only sends TCP packets smaller than the MSS. If a TCP packet from the peer end is smaller than the local end's MSS, the packet is not segmented; otherwise, the peer end must send the packet after segmenting it.
system-view
tcp timer syn-timeout interval
The default SYN-WAIT time is 75 seconds.
tcp timer fin-timeout interval
The default FIN-WAIT time is 675 seconds.
tcp window window-size
The default size is 8 KB.
The MSS parameters include the MSS value, minimum MSS value, and maximum MSS value. When a TCP connection is set up, the two ends notify each other of the MSS value of the local end, and then negotiate the final MSS value based on the MSS value advertised by both ends and the minimum and maximum MSS value.
The MSS advertised by the local end is min (interface MTU – 40, MSS configured on the local end). If PPPoE is used for setting up an uplink, the MSS advertised by the local end is min (interface MTU – 48, MSS configured on the local end).