On 2011-12-03, David Woolley <[email protected]> wrote:
> Hans Peter wrote:
>> 
>> I'm implementing an SNTP Server with Delphi for a Windows System which 
>
> Why?  What's wrong with w32time or, better, the reference ntpd?
>
> Also, isn't Delphi interpreted?
>
>> is complain to RFC 5905. It already works but I'm not filling the 
>> following packet fields on a client request:
>> 
>> - precision
>> - rootdisp
>> 
>> If the SNTP Server works as a secondary server I'm only using the values 
>
> Have the SNTP rules been relaxed?  I thought that secondary servers must 
> implement full NTP on their client side and the server side of SNTP is 
> not much different from full NTP. If you have to implement a full NTP 
> client, w32time, properly configured (not out of the box), or the 
> reference ntpd will do both client and server jobs.
>
>> of the refernence server. If the SNTP Server works as a primary server 
>> these values are not set.
>> 
>> Do I need to fill these values in the SNTP Implementation? If yes how to 
>> do this on a windows system? Maybe somebody knows the Windows-APIs to 
>> get the precision and the dispersion?
>
> To get precision, you repeatedly read the software clock and determine 
> the minimum, non-zero, difference between consecutive readings.  Do you 
> want local dispersion or root dispersion.  Local dispersion is 15E-6 
> times the time since the measurement last used to correct the local 
> clock.  Root dispersion is that plus the upstream root dispersion. 
> (There may be some other values involved, but they all depend on your 
> time discipline system, not really on the OS.)

_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions

Reply via email to