<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TIME_WAIT in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605108#M947992</link>
    <description>hp-xu 11 should do quite well with very large numbers of TIME_WAIT connections. one thing you might consider is tweaking tcphashsz to increase the size of the hash tables.&lt;BR /&gt;&lt;BR /&gt;i would be very cautious about messing with tcp_time_wait_interval. TIME_WAIT is in TCP for a specifici purpose - part of its protection against data corruption.&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Nov 2001 19:46:30 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2001-11-01T19:46:30Z</dc:date>
    <item>
      <title>TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605102#M947986</link>
      <description>Hi ,&lt;BR /&gt;Can any one tell me how to kill the TIME_WAIT connections on HP-UX 11.0. &lt;BR /&gt;I read some where that the performance goes down if the time_wait are numerous.&lt;BR /&gt;&lt;BR /&gt;I am running  a netscape web-server on HP-UX 11&lt;BR /&gt;&lt;BR /&gt;Command used:netstat -a&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Nag&lt;BR /&gt;Happy Halloween :-:&lt;BR /&gt;                 |</description>
      <pubDate>Wed, 31 Oct 2001 18:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605102#M947986</guid>
      <dc:creator>nagendra_3</dc:creator>
      <dc:date>2001-10-31T18:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605103#M947987</link>
      <description>Sorry, but can't manage your socket connections like processes. It's up to the applications to fix this (netscape). You can change time to live or something of that such in netscape.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 31 Oct 2001 18:05:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605103#M947987</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-31T18:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605104#M947988</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; to set time_wait on 11.00&lt;BR /&gt;do -&lt;BR /&gt; ndd -get /dev/tcp tcp_time_wait_interval&lt;BR /&gt;&lt;BR /&gt; -&amp;gt; this shows your current setting.&lt;BR /&gt;&lt;BR /&gt;To change it&lt;BR /&gt;  ndd -set /dev/tcp/tcp_time_wait_interval  &lt;NEWVALUE&gt;  (in seconds)&lt;BR /&gt;&lt;BR /&gt; to make it permanent&lt;BR /&gt;change the setting in&lt;BR /&gt;/etc/rc.config.d/nddconf&lt;BR /&gt;&lt;BR /&gt;If you want to disconnect&lt;BR /&gt;any existing TIME_WAIT sessions:&lt;BR /&gt; ndd -get /dev/tcp tcp_status &amp;gt;outfile&lt;BR /&gt;check the outfile for the&lt;BR /&gt;remote Ip' connections you&lt;BR /&gt;want to be disconnected.&lt;BR /&gt;Not the first column (TCP)&lt;BR /&gt;then, do &lt;BR /&gt;  ndd -set /dev/tcp tcp_discon 0xfirstcolumn.&lt;BR /&gt;&lt;BR /&gt;(Make sure of the connection&lt;BR /&gt;before you do this!).&lt;BR /&gt;&lt;BR /&gt;-raj&lt;/NEWVALUE&gt;</description>
      <pubDate>Wed, 31 Oct 2001 18:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605104#M947988</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-10-31T18:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605105#M947989</link>
      <description>0fd823e8 0cc.034.176.210 f6f8bdfc f6f8bdfc 00000000 00000000 f6f76f54 f6f76f54 00000000 -N/A- -N/A- [50,e383] TIME_WAIT*&lt;BR /&gt;(3990)&lt;BR /&gt;&lt;BR /&gt;This is the line form the output file ,&lt;BR /&gt;&lt;BR /&gt;but however if i perform this command, it give me ndd -set /dev/tcp tcp_discon  0cc.034.176.210 &lt;BR /&gt;"operation failed, Invalid argument"&lt;BR /&gt;&lt;BR /&gt;Raj any comments where i have done a mistake,&lt;BR /&gt;Thank you for your help</description>
      <pubDate>Wed, 31 Oct 2001 18:35:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605105#M947989</guid>
      <dc:creator>nagendra_3</dc:creator>
      <dc:date>2001-10-31T18:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605106#M947990</link>
      <description>Thanks RajMan, I was learnt today.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nagendra,&lt;BR /&gt;&lt;BR /&gt;You used the second column, try the first column:&lt;BR /&gt;&lt;BR /&gt; ndd -set /dev/tcp tcp_discon 0fd823e8 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2001 18:44:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605106#M947990</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-31T18:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605107#M947991</link>
      <description>Hi Nagendra,&lt;BR /&gt;&lt;BR /&gt;Have a look at these two threads. They might help.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=8388d5851548343cd1/screen=ckiDisplayDocument?docId=200000042082709" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=8388d5851548343cd1/screen=ckiDisplayDocument?docId=200000042082709&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=8388d5851548343cd1/screen=ckiDisplayDocument?docId=200000056429107" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=8388d5851548343cd1/screen=ckiDisplayDocument?docId=200000056429107&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hope it helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2001 18:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605107#M947991</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-10-31T18:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605108#M947992</link>
      <description>hp-xu 11 should do quite well with very large numbers of TIME_WAIT connections. one thing you might consider is tweaking tcphashsz to increase the size of the hash tables.&lt;BR /&gt;&lt;BR /&gt;i would be very cautious about messing with tcp_time_wait_interval. TIME_WAIT is in TCP for a specifici purpose - part of its protection against data corruption.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2001 19:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605108#M947992</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-11-01T19:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605109#M947993</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;Care to give any advice on tuning tcphashsz ;-):&lt;BR /&gt;&lt;BR /&gt;   -- tcphashsz&lt;BR /&gt;&lt;BR /&gt;      The size of the hash table for TCP connections is determined by the&lt;BR /&gt;      kernel parameter tcphashsz.  This kernel parameter should only be&lt;BR /&gt;      modified under the direction of Hewlett-Packard.</description>
      <pubDate>Thu, 01 Nov 2001 21:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605109#M947993</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-11-01T21:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605110#M947994</link>
      <description>OK, I guess I typed right into that one didn't I :)&lt;BR /&gt;&lt;BR /&gt;I'm surprised the wording is as strong as it is. Tpchashsz is something we've been tuning on most of our SPECweb9X submittals with HP-UX 11 for years and years now.&lt;BR /&gt;&lt;BR /&gt;I guess some of it stems from ifyou make tcphashsz too big your kernel might not boot :)&lt;BR /&gt;&lt;BR /&gt;Basically, tcphashsz controls the sizes of a number of internal TCP hash tables. &lt;BR /&gt;&lt;BR /&gt;If the cut and paste works, what follows is a descrpition. I thought it was online at &lt;A href="http://www.spec.org" target="_blank"&gt;www.spec.org&lt;/A&gt; someplace as part of a SPECweb submittal but could not find it.&lt;BR /&gt;&lt;BR /&gt;There are seven dynamically allocated hash lists in TCP and IP.  The sizes&lt;BR /&gt;of these lists are controlled by the HP/UX configuration variable&lt;BR /&gt;tcphashsz.  Since this single variable controls the size of multiple&lt;BR /&gt;lists, it is treated as a relative scale factor, rather than as the&lt;BR /&gt;actual size of any specific list.  The relative sizes of the individual&lt;BR /&gt;lists are fixed.  The absolute sizes are determined by the product of&lt;BR /&gt;the scale factor and the relative size.&lt;BR /&gt;&lt;BR /&gt;The seven hash lists are:&lt;BR /&gt;&lt;BR /&gt;        ipc_tcp_fanout          IP's list of all established TCP connections.&lt;BR /&gt;        &lt;BR /&gt;        ipc_tcp_listeners       IP's list of all TCP listeners.&lt;BR /&gt;        &lt;BR /&gt;        ipc_udp_fanout          IP's list of all bound UDP streams.&lt;BR /&gt;        &lt;BR /&gt;        tcp_port_hash_arr       All TCP's by local port.&lt;BR /&gt;        &lt;BR /&gt;        tcp_listener_hash_arr   All TCP listeners by port.&lt;BR /&gt;        &lt;BR /&gt;        tcp_establshd_hash_arr  All established TCP connections.&lt;BR /&gt;        &lt;BR /&gt;        tcp_lock_list           TCP's distributed lock list.&lt;BR /&gt;&lt;BR /&gt;When allocating the above hash lists, the value of the HP/UX configuration&lt;BR /&gt;variable tcphashsz is first rounded down to the next lowest power of two.&lt;BR /&gt;It is then bounded on the low side at 64 and on the high side at 64K.&lt;BR /&gt;If tcphashsz is specified as zero, a default value of 2048 is used.&lt;BR /&gt;If we use 'A' to indicate the value of the resulting scale factor, the&lt;BR /&gt;following table lists the actual sizes of the allocation, in words, for&lt;BR /&gt;each of the seven lists:&lt;BR /&gt;&lt;BR /&gt;        ipc_tcp_fanout          A / 2&lt;BR /&gt;        &lt;BR /&gt;        ipc_tcp_listeners       A / 4&lt;BR /&gt;        &lt;BR /&gt;        ipc_udp_fanout          A / 4&lt;BR /&gt;        &lt;BR /&gt;        tcp_port_hash_arr       A&lt;BR /&gt;        &lt;BR /&gt;        tcp_listener_hash_arr   A / 4&lt;BR /&gt;        &lt;BR /&gt;        tcp_establshd_hash_arr  A / 2&lt;BR /&gt;        &lt;BR /&gt;        tcp_lock_list           A / 16&lt;BR /&gt;&lt;BR /&gt;The following table gives actual list sizes, in words, and total space&lt;BR /&gt;allocated, in bytes, for several example values of tcphashsz:&lt;BR /&gt;&lt;BR /&gt;                        64      256     2048    16K     32K     64K&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;ipc_tcp_fanout          32      128     1024    8192    16K     32K&lt;BR /&gt;&lt;BR /&gt;ipc_tcp_listeners       16       64      512    4096    8K      16K&lt;BR /&gt;&lt;BR /&gt;ipc_udp_fanout          16       64      512    4096    8K      16K&lt;BR /&gt;&lt;BR /&gt;tcp_port_hash_arr       64      256     2048    16K     32K     64K&lt;BR /&gt;&lt;BR /&gt;tcp_listener_hash_arr   16       64      512    4096    8K      16K&lt;BR /&gt;&lt;BR /&gt;tcp_establshd_hash_arr  32      128     1024    8192    16K     32K&lt;BR /&gt;&lt;BR /&gt;tcp_lock_list            4       16      128    1024    2K      4K&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;total space (in bytes)  720     2880    23040   184320  368640  737280&lt;BR /&gt;&lt;BR /&gt;I've no idea if it will format well, so I'll try to have a copy at &lt;A href="ftp://ftp.cup.hp.com/dist/networking/briefs/tcphashsz.txt" target="_blank"&gt;ftp://ftp.cup.hp.com/dist/networking/briefs/tcphashsz.txt&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2001 22:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605110#M947994</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-11-01T22:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605111#M947995</link>
      <description>I have had these same issues with CLOSE_WAIT, here is how I clear it up: &lt;BR /&gt;&lt;BR /&gt;ndd -set /dev/tcp tcp_discon_by_addr "ac1816585ba0ac184483564"&lt;BR /&gt;&lt;BR /&gt;When you do a netstat -a, you get something like this :&lt;BR /&gt;tcp        0      0  172.24.22.42.58843     143.101.94.40.9102      TIME_WAIT&lt;BR /&gt;tcp        0      0  172.24.22.42.58842     143.101.94.55.9100      TIME_WAIT&lt;BR /&gt;&lt;BR /&gt;You must convert the IP notation to hexadecimal format. &lt;BR /&gt;So 172.24.22.42.58842 is "ac18162ae5da" you must put a 0 between the first set of hexadecimal numbers (IP + Port #) and the second set of hexadecimal numbers..&lt;BR /&gt;The scientific desktop calculator can be used to do this or you can search &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; for Feel The Base, an IP to hexadecimal converter..&lt;BR /&gt;Hope this helps..&lt;BR /&gt;&lt;BR /&gt;DCJ</description>
      <pubDate>Thu, 01 Nov 2001 23:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605111#M947995</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2001-11-01T23:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605112#M947996</link>
      <description>if there are large numbers of TCP endpoints in CLOSE_WAIT it implies that the local app has ignored the notification that the remote has closed its end of the connection.  or...&lt;BR /&gt;&lt;BR /&gt;If the local side is in CLOSE_WAIT, the other side is likely in FIN_WAIT_2. Given that FIN_WAIT_2 can be a perfectly valid recv-only state, CLOSE_WAIT can be a perfectly valid send-only state.&lt;BR /&gt;&lt;BR /&gt;so, i would really strongly caution anyone against using that ndd kludge to sumarily nuke a TCP connection.&lt;BR /&gt;&lt;BR /&gt;if the connection is in CLOSE_WAIT and the app has no concept of a send-only connection, the app is buggy and is ignoring the remote close indication. such an app REALLY needs to be fixed. the ndd junk is merely a bandaid and it will not cure the disease.</description>
      <pubDate>Thu, 01 Nov 2001 23:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605112#M947996</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-11-01T23:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605113#M947997</link>
      <description>there is a small, but vitally important typo in rajman's discussion of setting tcp_time_wait_interval for HP-UX 11.&lt;BR /&gt;&lt;BR /&gt;the units are _milliseconds_ not seconds.&lt;BR /&gt;&lt;BR /&gt;another reason the default TCP timers should be left along I supose :)</description>
      <pubDate>Thu, 01 Nov 2001 23:19:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605113#M947997</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-11-01T23:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: TIME_WAIT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605114#M947998</link>
      <description>Kudos Rick!  Great advice ...</description>
      <pubDate>Thu, 09 May 2002 14:00:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-wait/m-p/2605114#M947998</guid>
      <dc:creator>Dave van Nierop</dc:creator>
      <dc:date>2002-05-09T14:00:48Z</dc:date>
    </item>
  </channel>
</rss>

