From: "Steven Levine" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 11992705 for ecs-isp@2rosenthals.com; Mon, 20 Jan 2025 12:47:09 -0500 Received: from secmgr-va.2rosenthals.com ([50.73.8.217]:49602 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1tZvre-000000003vb-09nT for ecs-isp@2rosenthals.com; Mon, 20 Jan 2025 12:47:06 -0500 Received: from mta-102b.earthlink-vadesecure.net ([51.81.61.67]:44451 helo=mta-102a.earthlink-vadesecure.net) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.97.1) (envelope-from ) id 1tZvrb-000000003mG-1VAw for ecs-isp@2rosenthals.com; Mon, 20 Jan 2025 12:47:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; bh=h4weJlmJv8+Chl5VKTCsvaXC4ZMb35ackCdy4o xXXgc=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-unsubscribe-post: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=dk12062016; t=1737395223; x=1738000023; b=fWPFM5Cqx4GKFdMVZ5nC3F59g0u pdP4BpEKPi3DptCTTJWUFcOLIGrj6zeE8F1It2rRkjBzmArbSkefYRsrVgBFzU3INoXnIn2 Lfsm/miRu71IRWgXE6J9IhcXmpiIzN/TjUpRLgFfOi+77iA1MMbhDBTRT4w79f152PSsU90 E4gHPn6iWBnwwAVYtnDKuit7DhX7PD3uEEwKux5p4kXNTfA6K+SLl8Wr0YBFBEW6iMEWdIJ TSN6ORVX1ysOBA9NgNDOOJOXCxunGb/t+hFUctPvLNNiZ0t6q47XTn/eR04Xk1F7BswC7gr TebERV1j0kWzcyoMcQe6QspW/GTknvg== Received: from slamain ([172.56.176.114]) by vsel1nmtao02p.internal.vadesecure.com with ngmta id 9ff54cff-181c77bff06daf3a; Mon, 20 Jan 2025 17:47:02 +0000 Message-ID: <678e7d14.4.mr2ice.fgrirsq@earthlink.net> Date: Mon, 20 Jan 2025 08:43:00 -0800 To: "eCS ISP Mailing List" In-Reply-To: Subject: Re: [eCS-ISP] ntp day issue Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Mailer: MR/2 Internet Cruiser Edition for OS/2 v3.00.11.24/60 In , on 01/20/25 at 10:08 AM, "Massimo S." said: Hi Massimo, >i've seen, but it do not document in details Section IV states: 1) From the command line and accessing a single server using command lin= e arguments: os2_ntpd.exe [ntp server(name or dotted decimal) initial polling interval (integer seconds) number of requests to send (integer)] How much more detail did you expect? >anyway >os2_ntpd 193.204.114.232 2 2 That's compatible with what the docs say. >ntp server RFC 5905, hour and date is right You are looking at the wrong RFC 5905 Network Time Protocol Version 4: Protocol and Algorithms As I mentioned, OS2_NTPD impliements 1305 Network Time Protocol (Version 3) Specification, While both use the same NTP server data, the protocols are quite different. >but how can i be sure? What do you mean? If you run os2_ntpd one shot mode, what you get is wha= t you get? If you run os2_ntpd as a daemon, errors get filtered out by the= algorithm. >how to make it to save a log? Logging is automatic when you run detached. Logging is not supported in one shot mode. I suspect Bruce implemented one-shot mode as a testing tool. I don't know anyone who thinks it's a good idea to use one-shot mode on a production setup. >should i run also >os2_ntpd 193.204.114.233 2 2 You could, but if you choose to run os2_ntpd this way, and you have NTP servers that are returning bad data, you might see the same kind of error= s you are seeing with the time sync tools you are currently using. >or is there another way to give it a list? os2_ntpd does not support multiple servers in one-shot mode. >> That said, os2_ntpd is an NTP client which is designed to work best >> running as a detached daemon. >i will run scheduled some times per day You can do that. os2_ntpd already automatically adjusts it's polling interval to match the quality of the data and the implementation. According the the RFC, the maximum interval is about 17 minutes. For som= e unknown reason, Bruce chose to set this limit to 256 seconds. It's been on my list almost forever to figure out why. For those reading long, when running os2_ntpd in the foreground, the typical status display is: (Server-Client) Ensemble =B5 =3D -0.083, =D5 =3D 0.014 seconds usin= g 7 servers Loop Filter Output =3D +0.004, Loop =FE =3D 384, Local Clock = =D9f/f =3D -8.0e+01 PPM No Local Clock Correction Necessary The NTP protocol differs quite a bit from other time sync protocols. Rather than just setting the clock to some value returned by the time server, it calculates the current error in local hardware's clock frequency and uses this to adjust the clock. This is Local Clock =D9f/f (delta f / f) in the above. This has the advantage that once the frequency error is known, the clock can be updated accurately even when the NTP servers are not accessible. There are exceptions. Server access is needed to handle DST and leap second adjustments. If the hardare clock frequency error varies for some= reason, the clock updates will not be as accurate as they would be if the= NTP servers were accessible. Steven -- ---------------------------------------------------------------------- "Steven Levine" Warp/DIY/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ----------------------------------------------------------------------