MSL (Maximum Segment Lifetime) is the longest time (in seconds) that is expected in a TCP segment on a network. This is especially important when closing a TCP connection - between CLOSE_WAIT and the CLOSED state, the machine waits for 2 MSL (conceptually round trip to the end of the Internet and back) for any later packets. During this time, the machine holds the resources to connect in a basically closed state. If the server is busy, resources stored this way can be a problem. One “fix” is to omit the MSL so that they are released earlier. This usually works fine, but sometimes it can cause confusing failure scenarios.
On Linux (RHEL anyway, what I know), the variable /proc/sys/net/ipv4/tcp_fin_timeout is a 2 * MSL value. Usually it is 60 seconds. To see this, do:
cat /proc/sys/net/ipv4/tcp_fin_timeout
To change it, do something like:
echo 5 > /proc/sys/net/ipv4/tcp_fin_timeout
The following is the STANDARD TCP SCHEME. You can find this expectation below.

source share