TCP断开连接时的TIME_WAIT和MSL的关系
Maximum segment lifetime is the time a TCP segment can exist in the internetwork system. It is arbitrarily defined to be 2 minutes long. The Maximum Segment Lifetime value is used to determine the TIME_WAIT interval (2*MSL).
On some Linux systems, this value can be checked by either of the commands below:
sysctl net.ipv4.tcp_fin_timeout
cat /proc/sys/net/ipv4/tcp_fin_timeout
TCP的一篇非常好的文章:TCP的那些事儿
socket的keep-alive
TIME_WAIT快速回收和重用 我们的板子上reuse和recycle都没开,因此如果是短连接的话,会产生很多TIME_WAIT。