<?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 TCP Port becomes unusable in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146047#M56151</link>
    <description>OpenVMS Alpha 7.3-2&lt;BR /&gt;TCPIP 5.4 ECO5&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;Every few months a process appears to be unable to open its predefined listening port. We reboot to solve the problem, we have not yet tried just restarting TCPIP.&lt;BR /&gt;&lt;BR /&gt;Situation:&lt;BR /&gt;We have a weekly data deployment cycle that results in all the vendor's application processes being restarted. The vendor's environment includes a library around TCPIP, part of which supports opening listening ports. If the library is unable to open a listening port it will go into a loop, making up to 24 attempts, once every 5 seconds. After the last attempt fails the process aborts. Each atempt is logged to SYS$OUTPUT. We do not have access to the vendor's code, but debug output appears to indicate the looping only occurs if the return status is SS$_DUPLNAM.&lt;BR /&gt;&lt;BR /&gt;It is quite common to see a few failed attempts on a restart even though the BGDevice shows the REUSEADR option.&lt;BR /&gt;&lt;BR /&gt;Every 4 months or so a process will always fail all 24 attempts, every time we restart it. TCPIP SHOW DEVICE/PORT= shows nothing. The latest occurance lasted for a whole day and we left the process down for extended periods of time.&lt;BR /&gt;&lt;BR /&gt;I have looked through the ECO 6 &amp;amp; 7 release notes and haven't noticed anything relavent.&lt;BR /&gt;&lt;BR /&gt;Randy S.</description>
    <pubDate>Fri, 15 Feb 2008 22:52:14 GMT</pubDate>
    <dc:creator>Randy W. Suhrbier</dc:creator>
    <dc:date>2008-02-15T22:52:14Z</dc:date>
    <item>
      <title>TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146047#M56151</link>
      <description>OpenVMS Alpha 7.3-2&lt;BR /&gt;TCPIP 5.4 ECO5&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;Every few months a process appears to be unable to open its predefined listening port. We reboot to solve the problem, we have not yet tried just restarting TCPIP.&lt;BR /&gt;&lt;BR /&gt;Situation:&lt;BR /&gt;We have a weekly data deployment cycle that results in all the vendor's application processes being restarted. The vendor's environment includes a library around TCPIP, part of which supports opening listening ports. If the library is unable to open a listening port it will go into a loop, making up to 24 attempts, once every 5 seconds. After the last attempt fails the process aborts. Each atempt is logged to SYS$OUTPUT. We do not have access to the vendor's code, but debug output appears to indicate the looping only occurs if the return status is SS$_DUPLNAM.&lt;BR /&gt;&lt;BR /&gt;It is quite common to see a few failed attempts on a restart even though the BGDevice shows the REUSEADR option.&lt;BR /&gt;&lt;BR /&gt;Every 4 months or so a process will always fail all 24 attempts, every time we restart it. TCPIP SHOW DEVICE/PORT= shows nothing. The latest occurance lasted for a whole day and we left the process down for extended periods of time.&lt;BR /&gt;&lt;BR /&gt;I have looked through the ECO 6 &amp;amp; 7 release notes and haven't noticed anything relavent.&lt;BR /&gt;&lt;BR /&gt;Randy S.</description>
      <pubDate>Fri, 15 Feb 2008 22:52:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146047#M56151</guid>
      <dc:creator>Randy W. Suhrbier</dc:creator>
      <dc:date>2008-02-15T22:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146048#M56152</link>
      <description>Randy,&lt;BR /&gt;&lt;BR /&gt;If you are rebooting to resolve the problem, please force a crash next time so that the dump can be examined.&lt;BR /&gt;&lt;BR /&gt;The question is: Is this a quirk of IP or is it some form of hung process connection.&lt;BR /&gt;&lt;BR /&gt;Certainly, while the dump is useful, it would be interesting to attempt just a restart of the IP stack. Please remember that such a restart must be done from:&lt;BR /&gt;&lt;BR /&gt;- a direct connection,&lt;BR /&gt;- a DECnet remote terminal,&lt;BR /&gt;- a LAT session, or&lt;BR /&gt;- a batch job.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In other words, the restart cannot be done from a telnet or ssh session (which would use the IP stack).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 15 Feb 2008 23:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146048#M56152</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-02-15T23:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146049#M56153</link>
      <description>&amp;gt; [...] looping only occurs if the return&lt;BR /&gt;&amp;gt; status is SS$_DUPLNAM.&lt;BR /&gt;&lt;BR /&gt;The status returned from what?  (Is this a&lt;BR /&gt;process creation problem, or an IP-related&lt;BR /&gt;problem?)</description>
      <pubDate>Sat, 16 Feb 2008 00:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146049#M56153</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-16T00:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146050#M56154</link>
      <description>IP related problem. Status from in IOSB for bind.</description>
      <pubDate>Sat, 16 Feb 2008 00:22:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146050#M56154</guid>
      <dc:creator>Randy W. Suhrbier</dc:creator>
      <dc:date>2008-02-16T00:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146051#M56155</link>
      <description>Randy S.  &lt;BR /&gt;&lt;BR /&gt;Have you talked to the vendor of the application?  Is there a supplied shutdown procedure for their product?  What are you doing to restart the vendor's application processes?&lt;BR /&gt;&lt;BR /&gt;Here is what the manual has to say about this status:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/6529/6529pro_019.html#tcppmch05_15" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6529/6529pro_019.html#tcppmch05_15&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SS$_DUPLNAM  Programming error. The port being bound is already in use. An attempt to bind the socket to an address and port failed.  &lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Feb 2008 07:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146051#M56155</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-02-16T07:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146052#M56156</link>
      <description>Could you post twice a &lt;BR /&gt;$ ucx sh dev bgxxx:/fu&lt;BR /&gt;for you bg device, when&lt;BR /&gt;1) it works fine&lt;BR /&gt;2) it is hung&lt;BR /&gt;&lt;BR /&gt;It could help understand what goes on.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Feb 2008 18:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146052#M56156</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-02-16T18:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146053#M56157</link>
      <description>Randy,&lt;BR /&gt;&lt;BR /&gt;While it is easier to postmortem a system from a crash dump (which would be not a disruption since you are already rebooting), you can use SDA on the running system to display the relevant data structures to see what the status of the relevant BG device is.&lt;BR /&gt;&lt;BR /&gt;In an unrelated situations, over the years, I have encountered numerous situations where an application component failed to exit when so instructed, and the restart procedure would fail. Looking at the output of SHOW SYSTEM or going into SDA normally identified the culprit in fairly short order. Manually fixing the problem (e.g., in most cases, terminating the malfunctioning processs) allowed the restart to occur without the need to resort to a system restart.&lt;BR /&gt;&lt;BR /&gt;Long time forum user symposia and forum readers know that I loath rebooting systems unnecessarily.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Sat, 16 Feb 2008 21:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146053#M56157</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-02-16T21:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146054#M56158</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. We stop and start the processes per vendor supplied procedures.&lt;BR /&gt;&lt;BR /&gt;2. We have not seen any evidence that the process has not exited.&lt;BR /&gt;&lt;BR /&gt;3. When the problem exists, UCX SHOW DEVICE/PORT= does not show any devices using the known port.&lt;BR /&gt;&lt;BR /&gt;4. Does anyone have direct experience with the REUSEADR option?</description>
      <pubDate>Tue, 19 Feb 2008 20:06:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146054#M56158</guid>
      <dc:creator>Randy W. Suhrbier</dc:creator>
      <dc:date>2008-02-19T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146055#M56159</link>
      <description>Randy,&lt;BR /&gt;&lt;BR /&gt;When we look into help and Jon's response...&lt;BR /&gt;&amp;gt; SS$_DUPLNAM Programming error.&lt;BR /&gt;&lt;BR /&gt;you say $ ucx sho device/port=nnn shows nothing, no service and process assigned to that port. But the docu continues as &lt;BR /&gt;&amp;gt;The port being bound is already in use.&lt;BR /&gt;It won't be correct. &lt;BR /&gt;&lt;BR /&gt;I doubt this may be the prog. error only.&lt;BR /&gt;OR as Jon's info, the application/service assigned on that port not properily shutdown. Because once the service is started on a specific port, simply disabling the service or stop/id the process will stop the process, but ends up with unpredicatable result and will be a problem again when we want to use that port. The vendor program may want to stop the service by specifying the service name, process name, port name, and protocol name. Proper shutdown is necessary in this case.&lt;BR /&gt;&lt;BR /&gt;We have faced this kind of issue, but we were able to see the open socket name, so we disconnect the device socket, then re-start the program soled the issue.&lt;BR /&gt;&lt;BR /&gt;Another doubt I have is that it happens every 4 months!. Also there will be a limit in the number of instances of the service to run in the system, I doubt this because you mentioned the program does not go through the loop all the time.&lt;BR /&gt;&lt;BR /&gt;Check dcl show system --- when you don't find any opensocket with that port. And check options from $ucx sho devic/full --- to see REUSEADR for any other similar process.&lt;BR /&gt;&lt;BR /&gt;Archie</description>
      <pubDate>Wed, 20 Feb 2008 00:52:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146055#M56159</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2008-02-20T00:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146056#M56160</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Normally the device looks like:&lt;BR /&gt;&lt;BR /&gt;Device_socket:  bg621   Type: STREAM&lt;BR /&gt;         LOCAL      REMOTE&lt;BR /&gt;Port:   37395          0&lt;BR /&gt;Host:     *            *&lt;BR /&gt;Service:&lt;BR /&gt;                                          RECEIVE       SEND&lt;BR /&gt;               Queued I/O                    0             0&lt;BR /&gt;Q0LEN    0     Socket buffer bytes           0             0&lt;BR /&gt;QLEN     0     Socket buffer quota      900000        900000&lt;BR /&gt;QLIMIT   4     Total buffer alloc            0             0&lt;BR /&gt;TIMEO    0     Total buffer limit      7200000       7200000&lt;BR /&gt;ERROR    0     Buffer or I/O waits           1             0&lt;BR /&gt;OOBMARK  0     Buffer or I/O drops           0             0&lt;BR /&gt;               I/O completed                 0             0&lt;BR /&gt;               Bytes transferred             0             0&lt;BR /&gt;&lt;BR /&gt;  Options:  ACCEPT REUSEADR KEEP LOOP FDPX_CLOSE&lt;BR /&gt;  State:    None&lt;BR /&gt;  RCV Buff: WAIT&lt;BR /&gt;  SND Buff: None&lt;BR /&gt;&lt;BR /&gt;The LOOP option gives me pause since the documentation says it is reserved for VMS usage.&lt;BR /&gt;&lt;BR /&gt;None of the vendor's apps are registered as TCPIP services.&lt;BR /&gt;&lt;BR /&gt;Some simple testing with the QIO sample server and client programs in sys$examples: shows that restarting an app too quickly will result in SS$_DUPNAM if the REUSEADR is not specified. UCX SHOW DEVICE again does not show a matching device. Is there a way to look deeper into UCX?&lt;BR /&gt;&lt;BR /&gt;Randy S.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2008 02:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146056#M56160</guid>
      <dc:creator>Randy W. Suhrbier</dc:creator>
      <dc:date>2008-02-20T02:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146057#M56161</link>
      <description>Randy S.,&lt;BR /&gt;&lt;BR /&gt;the most detailled information on TCPIP sockets you can probably get is from&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; tcpip sho dev/debug/full&lt;BR /&gt;&lt;BR /&gt;When researching similar symptoms, I came across a discussion in:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.devx.com/showthread.php?t=37492" target="_blank"&gt;http://forums.devx.com/showthread.php?t=37492&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is a concept of 'lingering' sockets, which stay around 'for some time'...&lt;BR /&gt;&lt;BR /&gt;Don't know if this help, but I had not heard about that before.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2008 14:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146057#M56161</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2008-02-20T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146058#M56162</link>
      <description>In my notes I read that not REUSEADR will close the connection after about 2 minutes. &lt;BR /&gt;&lt;BR /&gt;**&lt;BR /&gt;Q&amp;gt;How is a TCP connection terminated ?&lt;BR /&gt;--------------------------------------&lt;BR /&gt;Either side can send a FIN package. The one sending the FIN is doing the active&lt;BR /&gt;close. After the FIN, no more data can be sent. The other side can however&lt;BR /&gt;continue to send data (called half close). E.g. rsh will close the input&lt;BR /&gt;channel for the server when all commands are passed. The FIN must be acked.&lt;BR /&gt;&lt;BR /&gt;If the 2nd FIN is not received by the active closer, the line will be broken&lt;BR /&gt;after 75 seconds of iddleness (most versions).&lt;BR /&gt;&lt;BR /&gt;Q&amp;gt;What is 2MSL ?&lt;BR /&gt;----------------&lt;BR /&gt;When the "close connection" second FIN is received, an ACK is given and the&lt;BR /&gt;line closed. Before closing however, we must wait and see if the ACK arrived&lt;BR /&gt;well. Since there is no ACK for an ACK, the only thing that can happen is that&lt;BR /&gt;the FIN is sent again and we must ACK again. This continues until both sides&lt;BR /&gt;timeout. The timeout is after 2 times the MSL (about 2 minutes).&lt;BR /&gt;&lt;BR /&gt;Only sockets that set the options "REUSEADR" don't bother about the 2MSL. All&lt;BR /&gt;known services use this option but many programs don't.&lt;BR /&gt;** &lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 20 Feb 2008 15:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146058#M56162</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-02-20T15:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146059#M56163</link>
      <description>This thread from comp.os.vms discusses the same problem.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://groups.google.com/group/comp.os.vms/browse_thread/thread/fa0e2ceafcae5c16/647cf29c9353d611?lnk=st&amp;amp;q=#647cf29c9353d611" target="_blank"&gt;http://groups.google.com/group/comp.os.vms/browse_thread/thread/fa0e2ceafcae5c16/647cf29c9353d611?lnk=st&amp;amp;q=#647cf29c9353d611&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If that link doesn't work, use a search for "Problem with UCX QIOW IO$_SETMODE Options".&lt;BR /&gt;&lt;BR /&gt;It does seem to be to to a programming error, but more likely a programming error in the TCPIP stack than the application.&lt;BR /&gt;&lt;BR /&gt;Here's the meat of the thread,&lt;BR /&gt;&lt;BR /&gt;"The trick is that, with the QIO interface, you must not specify all&lt;BR /&gt;parameters in one call because it seems that they are processed in an&lt;BR /&gt;unsuitable sequence. The BG: driver processes them starting with p1, next&lt;BR /&gt;p2, p3 and so on, whatever was not passed as zero. This means that parameter&lt;BR /&gt;p3 which is used to bind the socket to a specific port is processed _before_&lt;BR /&gt;parameter p5 which is used to set socket options. Therefore, because the&lt;BR /&gt;UCX$_REUSEADDR option isn't yet set at the time parameter p3 is processed,&lt;BR /&gt;the binding fails with SS$_DUPLNAM."&lt;BR /&gt;&lt;BR /&gt;I've also attached the complete response as a text file.</description>
      <pubDate>Wed, 20 Feb 2008 23:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146059#M56163</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-02-20T23:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: TCP Port becomes unusable</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146060#M56164</link>
      <description>Thanks for the great information Jon! I have forwarded it to our vendor for comments. Based on the observed behavior I suspect they are combining the QIO's.&lt;BR /&gt;&lt;BR /&gt;I feel that the problem of never being able to reuse the port is a TCPIP bug. Maybe changing the QIO's will allow us to avoid it.&lt;BR /&gt;&lt;BR /&gt;Randy S.</description>
      <pubDate>Tue, 26 Feb 2008 01:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/tcp-port-becomes-unusable/m-p/4146060#M56164</guid>
      <dc:creator>Randy W. Suhrbier</dc:creator>
      <dc:date>2008-02-26T01:42:35Z</dc:date>
    </item>
  </channel>
</rss>

