Setting TCP timers
About TCP timers
You can set the following TCP timers:
SYN wait timer—TCP starts the SYN wait timer after sending a SYN packet. Within the SYN wait timer if no response is received or the upper limit on TCP connection tries is reached, TCP fails to establish the connection.
FIN wait timer—TCP starts the FIN wait timer when TCP changes the connection state to FIN_WAIT_2. If no FIN packet is received within the timer interval, TCP terminates the connection. If a FIN packet is received, TCP changes the connection state to TIME_WAIT. If a non-FIN packet is received, TCP restarts the timer, and tears down the connection when the timer expires.
Procedure
Enter system view.
system-view
Set the TCP SYN wait timer.
tcp timer syn-timeout time-value
By default, the TCP SYN wait timer is 75 seconds.
Set the TCP FIN wait timer.
tcp timer fin-timeout time-value
By default, the TCP FIN wait timer is 675 seconds.