Re: two kernel arguments related to TIME_WAIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The reason why the TME_WAIT state exists is to force a terminating TCP
connection to stay alive after both ends confirmed closure.  This wait
allows:

 1.  delayed segments to get delivered to the right application,
 2. final ACK to reach destination

The reason some environments would want not to honour TIME_WAIT is to
avoid the accumulation of connections in the TIME_WAIT state and the
subsequent overconsumption of file descriptors.  The accumulation
could be problematic in fast-paced, short-lived transactional
sessions.

The potential risk of disabling the TIME_WAIT timer as suggested is
that an application won't get the final bit of data if a segment
reordering takes place.  However, I really do not see how this could
possibly happen in a LAN environment.  Moreover, properly written
applications should be able to detect malformed requests and/or
replies.

Good luck,

  -Imed


On 1/20/12, redhat-list-request@xxxxxxxxxx
<redhat-list-request@xxxxxxxxxx> wrote:
> Send redhat-list mailing list submissions to
> 	redhat-list@xxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://www.redhat.com/mailman/listinfo/redhat-list
> or, via email, send a message with subject or body 'help' to
> 	redhat-list-request@xxxxxxxxxx
>
> You can reach the person managing the list at
> 	redhat-list-owner@xxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of redhat-list digest..."
>
>
> Today's Topics:
>
>    1. two kernel arguments related to TIME_WAIT (Tech W.)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 20 Jan 2012 11:20:27 +0800 (CST)
> From: "Tech W." <techwww@xxxxxxxxxxxx>
> To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
> Subject: two kernel arguments related to TIME_WAIT
> Message-ID:
> 	<1327029627.34335.YahooMailNeo@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=utf-8
>
> Hello,
>
> When the two kernel arguments were enabled,
>
> net.ipv4.tcp_tw_reuse = 1
> net.ipv4.tcp_tw_recycle = 1
>
> What's the bad affect to the network stability or others?
>
> Thanks.
>
>
>
>
> ------------------------------
>
> __
> redhat-list mailing list
> Unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> End of redhat-list Digest, Vol 95, Issue 6
> ******************************************
>

-- 
Sent from my mobile device

Imed Chihi - عماد الشيحي
http://perso.hexabyte.tn/ichihi/

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux