From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b4745fc220723159 X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman) Subject: Re: OpenVMS 7.1/UCX 4.1 Network Time Protocol question Date: 1998/04/07 Message-ID: <6ge7de$9at@usenet.pa.dec.com>#1/1 X-Deja-AN: 341840533 References: <3524f258.0@news.scsn.net> Reply-To: hoffman@xdelta.zko.dec.nospam Distribution: world Organization: Digital Equipment Corp Newsgroups: comp.sys.dec Everything I ever knew about NTP and UTC, I've tried to forget... :-) In article <3524f258.0@news.scsn.net>, "Dave Hamby" writes: :I'm hoping to use network time protocol to keep the OS clocks synchronized... .. :Both peers are OpenVMS 7.1 and UCX 4.1 with the patch. .. :Unfortunately, DEC's manual section on NTP is vague. I suspect someone :compiled and linked it and got it to run but doesn't really understand what :it does or how it should behave. Between the manual and being new to NTP :I've got a couple of questions. Having looked at more than my share of internet RFCs over the years, and having implemented or worked on products based on various RFCs, I'd hesitate to believe anyone that claimed to understand anything in an RFC. :-) And if there is more than one way to interprete an RFC, you will eventually have to interoperate with each variant... :-) At the same time. :-) :1. As I understand it, NTP will calculate an estimate of UTC from the :available time sources. Does the UCX NTP adjust the UTC side calculation :performed in OpenVMS 7.1? On OpenVMS, UCX NTP is tied to the local SYS$TIMEZONE_DIFFERENTIAL value, and this allows NTP to correctly adjust the local system time. (Having a correct setting for the Timezone Differntial Factor (TDF) became of central interest to applications starting in V7.0...) And with UCX, the SYS$TIMEZONE_DIFFERENTIAL needs to match the timezone that the system is configured for. The TDF is the offset from the "Zulu", "Greenwich", or UTC time -- yes, I know that this comparison will offend some, and that I am oversimplying, and I know that these three times are officially not necessarily the same timebase. (But for my purposes, they can be treated as the same time. :-) On OpenVMS, the value of UTC is derived from the local system time, by way of the TDF. (This means that OpenVMS system time is affected by changes to and from daylight savings time, but that NTP does not trigger this alone as UTC is the same -- one manually triggers the changeover to/from daylight time.) For those into collecting the names of arcane OpenVMS data cells, please add EXE$GQ_TDF... And on OpenVMS, sys$manager:UTC$CONFIGURE_TDF.COM is the core UTC configuration procedure, and creates the environment used by NTP and by the C run-time library. Also check the settings using UCX> SHOW CONFIG TIME And check the configuration in UCX$NTP.CONF. And check sys$help:daylight_savings.com. And remember that a TDF value of -13 indicates the TDF is invalid or has not been initialized... :2. Does UCX NTP also adjust the OpenVMS clock? Yes, it does. :3. The OpenVMS time libraries retain the original behavior (return OS time) :unless the application is compiled with feature macros set to use UTC :behavior (DEC is real good about not breaking dusty DECKS). I believe the :application (a purchased Plant Information Management System) is compiled :for the original behavior. I'll verify this. The only applications that tend to behave oddly when time services are enabled are programs that directly reset the system time, via SET TIME or via sys$setime. Very few applications use these calls. (I don't know that UCX NTP blocks these direct time alterations for certain, but I suspect it should...) I would, however, recommend testing to confirm that this application continues to operate. But you knew I'd say that. :-) -------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman@xdelta.ZZenet.dec.com note to those folks not contributing spam -- there is no ZZ in my address