<?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: ping timeout value. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213405#M83570</link>
    <description>&amp;gt;&amp;gt;&amp;gt; What is the value of tmax&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; In my case it is returning&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; rtt min/avg/max/mdev = 0.398/0.656/0.915/0.259 ms&lt;BR /&gt;&lt;BR /&gt;As you can see above, the max would be the third value, first is min, then average, then max.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; I wanted to call ping from a c program and with -W. what would be reasonable default value in case user doesn't specify it.&lt;BR /&gt;&lt;BR /&gt;This depends of what you are trying to do, probably, you don't even need to specify a timeout value, but a count. Or probably, would be better if you use -w (lower).</description>
    <pubDate>Tue, 10 Jun 2008 19:24:18 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2008-06-10T19:24:18Z</dc:date>
    <item>
      <title>ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213402#M83567</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I would like to understand -W option on Fedora Linux. What is the default value of -W. I was going through the man page.&lt;BR /&gt;&lt;BR /&gt;-W timeout&lt;BR /&gt;              Time  to  wait for a response, in seconds. The option affects only timeout in absense of any responses,&lt;BR /&gt;              otherwise ping waits for two RTTs.&lt;BR /&gt;&lt;BR /&gt;What is the values of two RTTS? If I ues -W 1000 would it mean it will wait for 1000 seconds for the response packet before declaring timeout.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma</description>
      <pubDate>Mon, 09 Jun 2008 22:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213402#M83567</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2008-06-09T22:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213403#M83568</link>
      <description>&lt;!--!*#--&gt;&amp;gt;&amp;gt;&amp;gt; What is the values of two RTTS? &lt;BR /&gt;&lt;BR /&gt;According to ping source code:&lt;BR /&gt;&lt;BR /&gt;if (nreceived) {&lt;BR /&gt;  /* approx. 2*tmax, in seconds (2 RTT) */&lt;BR /&gt;  expire = tmax / (512*1024);&lt;BR /&gt;  if (expire == 0)&lt;BR /&gt;    expire = 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;2 RTTs would be 2*tmax, being tmax the maximum RTT obtained from a ping sequence. You can see it at the end of a ping as:&lt;BR /&gt;&lt;BR /&gt;rtt min/avg/max/mdev = 0.040/0.042/0.044/0.002 ms, pipe 2&lt;BR /&gt;&lt;BR /&gt;That would mean that the -W allows you to&lt;BR /&gt;specify how much time you will wait for a &lt;BR /&gt;response, in case that you have, for example,&lt;BR /&gt; missing packets. &lt;BR /&gt;After some echo reply, you will have your RTTs calculated, &lt;BR /&gt;if a response is not received, and you don't&lt;BR /&gt;specify -W, it will wait 2*tmax, otherwise,&lt;BR /&gt;will wait -W &lt;N&gt; seconds.&lt;BR /&gt;&lt;BR /&gt;&lt;/N&gt;</description>
      <pubDate>Tue, 10 Jun 2008 05:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213403#M83568</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-06-10T05:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213404#M83569</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Thanks for the response. What is the value of tmax &lt;BR /&gt;In my case it is returning&lt;BR /&gt;&lt;BR /&gt;rtt min/avg/max/mdev = 0.398/0.656/0.915/0.259 ms&lt;BR /&gt;&lt;BR /&gt;How do i interpret this. I wanted to call ping from a c program and with -W. what would be reasonable default value in case user doesn't specify it. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Padma</description>
      <pubDate>Tue, 10 Jun 2008 16:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213404#M83569</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2008-06-10T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213405#M83570</link>
      <description>&amp;gt;&amp;gt;&amp;gt; What is the value of tmax&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; In my case it is returning&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; rtt min/avg/max/mdev = 0.398/0.656/0.915/0.259 ms&lt;BR /&gt;&lt;BR /&gt;As you can see above, the max would be the third value, first is min, then average, then max.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; I wanted to call ping from a c program and with -W. what would be reasonable default value in case user doesn't specify it.&lt;BR /&gt;&lt;BR /&gt;This depends of what you are trying to do, probably, you don't even need to specify a timeout value, but a count. Or probably, would be better if you use -w (lower).</description>
      <pubDate>Tue, 10 Jun 2008 19:24:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213405#M83570</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-06-10T19:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213406#M83571</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Ok I got you, so if min is 0.398 mili seconds then I believe we use -W &lt;SECONDS&gt; so -W 398 &lt;BR /&gt;&lt;BR /&gt;right?&lt;BR /&gt;&lt;BR /&gt;Padma&lt;/SECONDS&gt;</description>
      <pubDate>Tue, 10 Jun 2008 20:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213406#M83571</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2008-06-10T20:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213407#M83572</link>
      <description>&amp;gt;&amp;gt;&amp;gt; Ok I got you, so if min is 0.398 mili seconds then I believe we use -W &lt;SECONDS&gt; so -W 398 &lt;BR /&gt;&lt;BR /&gt;That would be correct, but remember that -W use max, not min. But, why do you want to specify this value?&lt;/SECONDS&gt;</description>
      <pubDate>Tue, 10 Jun 2008 21:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213407#M83572</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-06-10T21:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: ping timeout value.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213408#M83573</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Thanks for your response. We have a enterprise specific MIB file which I can do ping through snmp, now a user can specify this value, if this value is not specified then I have to start with some default value.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma</description>
      <pubDate>Tue, 10 Jun 2008 22:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ping-timeout-value/m-p/4213408#M83573</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2008-06-10T22:38:31Z</dc:date>
    </item>
  </channel>
</rss>

