• [questions] Re: ntpd doesn't follow minpoll/maxpoll interval

    From Sameera Unnisa@shaiksameer.sam90@gmail.com to questions on Wed Apr 3 09:28:00 2024
    From Newsgroup: comp.protocols.time.ntp


    --=_foot_filter_boundary_KHKLMOLNBEHCA_=
    Content-Type: multipart/alternative; boundary="000000000000f454cc06152dcfaf"

    --000000000000f454cc06152dcfaf
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    Hi ,

    I have my ntp.conf as below

    "pool -4 server1 true minpoll 6 maxpoll 10 iburst"
    "pool -6 server1 true minpoll 6 maxpoll 10 iburst"

    I could see after 3rd request the very next 4th request =
    is happening
    earlier than minpoll interval i.e 2^6 sec.


    Is there a way to give proper command to follow min and =
    max poll interval?

    Kindly help

    Regards
    Sameera


    On Wed, 3 Apr 2024, 2:13=E2=80=AFpm Sameera Unnisa, <shaiksameer.sam= 90@gmail.com>
    wrote:

    Hi ,

    I have my ntp.conf as below

    "pool -4 server1 true minpoll 6 maxpoll 10 iburst"
    "pool -6 server1 true minpoll 6 maxpoll 10 iburst"

    I could see after 3rd request the very next 4th request =
    is happening
    earlier than minpoll interval i.e 2^6 sec.


    Is there a way to give proper command to follow min and =
    max poll interval?

    Kindly help

    Regards
    Sameera


    --000000000000f454cc06152dcfaf
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"auto"><div style=3D"font-size:12.8px" dir=3D"auto"><div = style=3D"width:394.314px;margin:15px 0px"><div><div dir=3D"auto">Hi =
    ,<div dir=3D"auto"><br></div><div dir=3D"auto">I have my =
    ntp.conf as below</div><div dir=3D"auto"><br></div><div = dir=3D"auto">&quot;pool -4 server1 true minpoll 6 maxpoll =
    10 iburst&quot;</div><div dir=3D"auto">&quot;pool -6 server1 =
    true minpoll 6 maxpoll 10 iburst&quot;<br></div><div dir=3D"auto"><b= r></div><div dir=3D"auto">I could see after 3rd request =
    the very next 4th request is happening earlier than minpoll =
    interval i.e 2^6 sec.</div><div dir=3D"auto"><br></div><div = dir=3D"auto"><br></div><div dir=3D"auto">Is there a way =
    to give proper command to follow min and max poll interval?</div><di=
    v dir=3D"auto"><br></div><div dir=3D"auto">Kindly help</div><div = dir=3D"auto"><br></div><div dir=3D"auto">Regards</div><div = style=3D"color:rgb(136,136,136)"><div dir=3D"auto">Sameera</div></di= v></div></div></div><div style=3D"height:0px"></div></div><br></div>=
    <br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr"=
    On Wed, 3 Apr 2024, 2:13=E2=80=AFpm Sameera Unnisa, &lt;<a = href=3D"mailto:shaiksameer.sam90@gmail.com">shaiksameer.sam90@gmail.= com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" = style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
    ex"><div dir=3D"auto">Hi ,<div dir=3D"auto"><br></div><div =
    dir=3D"auto">I have my ntp.conf as below</div><div dir=3D"auto"><br>= </div><div dir=3D"auto">&quot;pool -4 server1 true minpoll =
    6 maxpoll 10 iburst&quot;</div><div dir=3D"auto">&quot;pool =
    -6 server1 true minpoll 6 maxpoll 10 iburst&quot;<br></div><div = dir=3D"auto"><br></div><div dir=3D"auto">I could see after =
    3rd request the very next 4th request is happening earlier =
    than minpoll interval i.e 2^6 sec.</div><div dir=3D"auto"><br></div>=
    <div dir=3D"auto"><br></div><div dir=3D"auto">Is there a =
    way to give proper command to follow min and max poll interval?</div=
    <div dir=3D"auto"><br></div><div dir=3D"auto">Kindly help</div><div=
    dir=3D"auto"><br></div><div dir=3D"auto">Regards</div><div = dir=3D"auto">Sameera</div></div>
    </blockquote></div>

    --000000000000f454cc06152dcfaf--
    --=_foot_filter_boundary_KHKLMOLNBEHCA_=
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable



    --=_foot_filter_boundary_KHKLMOLNBEHCA_=--

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Harlan Stenn@stenn@nwtime.org to questions on Wed Apr 3 09:48:00 2024
    From Newsgroup: comp.protocols.time.ntp

    Sameera,

    What version of ntpd are you running?

    Why are you using the 'true' keyword?

    Do you understand what the iburst keyword does?

    What is server1, an NTP server or a source of NTP pool names?

    Why are you querying server1 for IPv4 and IPv6 separately?

    Thanks...

    H

    On 4/3/2024 2:25 AM, Sameera Unnisa wrote:
    Hi ,

    I have my ntp.conf as below

    "pool -4 server1 true minpoll 6 maxpoll 10 iburst"
    "pool -6 server1 true minpoll 6 maxpoll 10 iburst"

    I could see after 3rd request the very next 4th request is happening
    earlier than minpoll interval i.e 2^6 sec.


    Is there a way to give proper command to follow min and max poll interval?

    Kindly help

    Regards
    Sameera


    On Wed, 3 Apr 2024, 2:13 pm Sameera Unnisa, <shaiksameer.sam90@gmail.com <mailto:shaiksameer.sam90@gmail.com>> wrote:

    Hi ,

    I have my ntp.conf as below

    "pool -4 server1 true minpoll 6 maxpoll 10 iburst"
    "pool -6 server1 true minpoll 6 maxpoll 10 iburst"

    I could see after 3rd request the very next 4th request is happening
    earlier than minpoll interval i.e 2^6 sec.


    Is there a way to give proper command to follow min and max poll
    interval?

    Kindly help

    Regards
    Sameera


    --
    Harlan Stenn <stenn@nwtime.org>
    http://networktimefoundation.org - be a member!
    --
    This is questions@lists.ntp.org
    Subscribe: questions+subscribe@lists.ntp.org
    Unsubscribe: questions+unsubscribe@lists.ntp.org



    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Sameera Unnisa@shaiksameer.sam90@gmail.com to questions on Wed Apr 3 10:13:00 2024
    From Newsgroup: comp.protocols.time.ntp


    --=_foot_filter_boundary_PHBHALGJFMPDC_=
    Content-Type: multipart/alternative; boundary="0000000000006aba1206152e65b5"

    --0000000000006aba1206152e65b5
    Content-Type: text/plain; charset="UTF-8"

    What version of ntpd are you running?
    4.2.8p15

    Why are you using the 'true' keyword?
    Its been there in my conf file by default was it not recommended?

    Do you understand what the iburst keyword does?
    Correct me if i'm wrong , it sends the burst of packet at time for early synchronisation

    What is server1, an NTP server or a source of NTP pool names?
    An NTP server

    Why are you querying server1 for IPv4 and IPv6 separately?
    There is a limitation that I am getting first IPv4 and then IPv6 so
    using it separately

    Thanks

    --0000000000006aba1206152e65b5
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"auto"><span style=3D"font-size:12.8px">What =
    version of ntpd are you running?</span><br style=3D"font-size:12.8px= ">&gt;&gt;=C2=A0 4.2.8p15<div dir=3D"auto"><br style=3D""><span = style=3D"font-size:12.8px">Why are you using the &#39;true&#39; = keyword?</span></div><div dir=3D"auto">&gt;&gt; Its been =
    there in my conf file by default was it not recommended?<br = style=3D"font-size:12.8px"><br style=3D"font-size:12.8px"><span = style=3D"font-size:12.8px">Do you understand what the iburst =
    keyword does?</span><br style=3D"font-size:12.8px">&gt;&gt; =
    Correct me if i&#39;m wrong , it sends the burst of packet =
    at time for early synchronisation</div><div dir=3D"auto"><br =
    style=3D""><span style=3D"font-size:12.8px">What is server1, =
    an NTP server or a source of NTP pool names?</span></div><div = dir=3D"auto">&gt;&gt; An NTP server<br style=3D"font-size:12.8px"><b=
    r style=3D"font-size:12.8px"><span style=3D"font-size:12.8px">Why =
    are you querying server1 for IPv4 and IPv6 separately?</span></div><=
    div dir=3D"auto">&gt;&gt; There is a limitation that I am =
    getting first IPv4 and then IPv6 so using it separately=C2=A0<br = style=3D"font-size:12.8px"><br></div><div dir=3D"auto">Thanks=C2=A0<= /div></div>

    --0000000000006aba1206152e65b5--
    --=_foot_filter_boundary_PHBHALGJFMPDC_=
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable



    --=_foot_filter_boundary_PHBHALGJFMPDC_=--

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Dave Hart@davehart@gmail.com to questions on Sun Apr 7 18:18:00 2024
    From Newsgroup: comp.protocols.time.ntp


    --=_foot_filter_boundary_LIIEIAEGCFMEK_=
    Content-Type: multipart/alternative; boundary="000000000000273ded061585a7d3"

    --000000000000273ded061585a7d3
    Content-Type: text/plain; charset="UTF-8"

    On Wed, 3 Apr 2024 at 09:26, Sameera Unnisa <shaiksameer.sam90@gmail.com> wrote:

    I have my ntp.conf as below

    "pool -4 server1 true minpoll 6 maxpoll 10 iburst"
    "pool -6 server1 true minpoll 6 maxpoll 10 iburst"

    I could see after 3rd request the very next 4th request is happening
    earlier than minpoll interval i.e 2^6 sec.

    I see two distinct issues that may explain what you're seeing, but note
    it's not entirely clear what you're seeing. You don't mention how you're seeing the requests. Are you looking at a packet capture? Does the early request occur on both IPv4 and IPv6?

    1. The "pool" directive, as opposed to "server", instructs ntpd to attempt
    to spin up as many associations for each hostname as possible, up until
    ntpd has maxclock associations. With the above two lines being the
    entirety of ntp.conf, I'd expect "tos maxclock 10" to be the default. If server1 resolves to more than one A (IPv4) or AAAA (IPv6) record, ntpd will solicit each in turn until 8 more associations are started. The "POOL" associations, as seen in `ntpq -p` output, count for 2 of the 10. At the
    risk of wandering into the weeds a bit, the initial solicitation request appears just like a normal NTP client request, but the response is not processed for time. Instead, it results in starting an association with
    the responding IP address and scheduling the next solicitation, if any.

    2. "iburst" instructs ntpd to initially send a sequence of 6 requests at
    least 2 seconds apart, assuming a response is received for each, to speed initial synchronization. If the association has become unreachable for
    some time, iburst is activated again when responses are once again
    received. Wandering in weeds again, stay away from "burst", which is
    intended for synchronization occurring over an intermittent connection,
    such over a dialup modem connection, where very high minpoll is used to
    keep down costs by polling as infrequently as every 36 hours. It causes
    the burst behavior on every query, rather than only initially.

    If you continue to have problems, consider providing the output of `ntpq
    -crv -w -clpeers` redacted of any names or addresses you wish.

    Cheers,
    Dave Hart

    --000000000000273ded061585a7d3
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" = style=3D"font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:s= mall"><span style=3D"font-family:Arial,Helvetica,sans-serif">On =
    Wed, 3 Apr 2024 at 09:26, Sameera Unnisa &lt;<a href=3D"mailto:shaik= sameer.sam90@gmail.com">shaiksameer.sam90@gmail.com</a>&gt; = wrote:</span><br></div></div><div class=3D"gmail_quote"><blockquote = class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
    1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"auto"><div = style=3D"font-size:12.8px" dir=3D"auto"><div style=3D"width:394.314p= x;margin:15px 0px"><div dir=3D"auto"><div dir=3D"auto">I =
    have my ntp.conf as below</div><div dir=3D"auto"><br></div><div = dir=3D"auto">&quot;pool -4 server1 true minpoll 6 maxpoll =
    10 iburst&quot;</div><div dir=3D"auto">&quot;pool -6 server1 =
    true minpoll 6 maxpoll 10 iburst&quot;<br></div><div dir=3D"auto"><b= r></div><div dir=3D"auto">I could see after 3rd request =
    the very next 4th request is happening earlier than minpoll =
    interval i.e 2^6 sec.</div></div></div></div></div></blockquote><div=
    class=3D"gmail_default" style=3D"font-family:&quot;trebuchet = ms&quot;,sans-serif;font-size:small">I see two distinct =
    issues that may explain what you&#39;re seeing, but note =
    it&#39;s not entirely clear what you&#39;re seeing.=C2=A0 =
    You don&#39;t mention how you&#39;re seeing the requests.=C2=A0 =
    Are you looking at a packet capture?=C2=A0 Does the early =
    request occur on both IPv4 and IPv6?</div><div class=3D"gmail_defaul=
    t" style=3D"font-family:&quot;trebuchet ms&quot;,sans-serif;font-siz= e:small"><br></div><div class=3D"gmail_default" style=3D"font-family= :&quot;trebuchet ms&quot;,sans-serif;font-size:small">1.=C2=A0 =
    The &quot;pool&quot; directive, as opposed to &quot;server&quot;, =
    instructs ntpd to attempt to spin up as many associations =
    for each hostname as possible, up until ntpd has maxclock=C2=A0assoc= iations.=C2=A0 With the above two lines being the entirety =
    of ntp.conf, I&#39;d expect &quot;tos maxclock 10&quot; =
    to be the default.=C2=A0 If server1 resolves to more than =
    one A (IPv4) or AAAA (IPv6) record, ntpd will solicit each =
    in turn until 8 more associations are started.=C2=A0 The =
    &quot;POOL&quot; associations, as seen in `ntpq -p` output, =
    count for 2 of the 10.=C2=A0 At the risk of wandering into =
    the weeds a bit, the initial solicitation request appears =
    just like a normal NTP client request, but the response =
    is not processed for time.=C2=A0 Instead, it results in =
    starting an association with the responding IP address and =
    scheduling the next solicitation, if any.</div><div class=3D"gmail_d=
    efault" style=3D"font-family:&quot;trebuchet ms&quot;,sans-serif;fon= t-size:small"><br></div><div class=3D"gmail_default" style=3D"font-f= amily:&quot;trebuchet ms&quot;,sans-serif;font-size:small">2.=C2=A0 = &quot;iburst&quot; instructs ntpd to initially send a sequence =
    of 6 requests at least 2 seconds apart, assuming a response =
    is received for each, to speed initial synchronization.=C2=A0 =
    If the association has become unreachable for some time, =
    iburst is activated again when responses are once again =
    received.=C2=A0 Wandering in weeds again, stay away from =
    &quot;burst&quot;, which is intended for synchronization =
    occurring over an intermittent connection, such over a dialup =
    modem connection, where very high minpoll is used to keep =
    down costs by polling as infrequently as every 36 hours.=C2=A0 =
    It causes the burst behavior on every query, rather than =
    only initially.</div><div class=3D"gmail_default" style=3D"font-fami= ly:&quot;trebuchet ms&quot;,sans-serif;font-size:small"><br></div><d=
    iv class=3D"gmail_default" style=3D"font-family:&quot;trebuchet = ms&quot;,sans-serif;font-size:small">If you continue to =
    have problems, consider providing the output of `ntpq -crv =
    -w -clpeers` redacted of any names or addresses you wish.</div><div = class=3D"gmail_default" style=3D"font-family:&quot;trebuchet = ms&quot;,sans-serif;font-size:small"><br></div><div class=3D"gmail_d=
    efault" style=3D"font-family:&quot;trebuchet ms&quot;,sans-serif;fon= t-size:small">Cheers,</div><div class=3D"gmail_default" = style=3D"font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:s= mall">Dave Hart</div></div></div>

    --000000000000273ded061585a7d3--
    --=_foot_filter_boundary_LIIEIAEGCFMEK_=
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable



    --=_foot_filter_boundary_LIIEIAEGCFMEK_=--

    --- Synchronet 3.20a-Linux NewsLink 1.114