[ntp:questions] Facing some issue in the ntp version Ver. 4.2.6p1

bhargav p bhargav.1226 at gmail.com
Mon Jul 23 11:42:10 UTC 2012


> Hi,
>
> Can anyone explain me this part of code in ntp_proto.c:
>
>
> /*
>
> * A distance error for a remote peer occurs if the root
>
> * distance is greater than or equal to the distance threshold
>
> * plus the increment due to one host poll interval.
>
> */
>
> if (!(peer->flags & FLAG_REFCLOCK) && root_distance(peer) >=
>
> sys_maxdist + clock_phi * ULOGTOD(peer->hpoll))
>
> rval |= TEST11; /* distance exceeded */
>
>
> why we are checking the peer->flags & FLAG_REFCLOCK ?
>
>
> -Bhargav
>
>
>  On Thu, Jul 19, 2012 at 4:27 PM, bhargav p <bhargav.1226 at gmail.com>wrote:
>
>> Hi,
>>
>> Even if I increase the stratum value to more for local reference clock.
>> It was the same issue.
>>
>> And one more thing I want to mention is
>>
>> If i remove local reference clock configuration from my configuration
>> file then NTP packet exhanges is happening fine and able to synch.
>>
>> But if local configuration is there only one pair  NTP packets are
>> exchanged and coming out without synchronizing with the error log
>>
>> time slew+0.000000sec
>>
>> What  I want to say is if local configuration is there in conf file it is
>> not synching , thinking that it is trying to synch woth local refclock.
>>
>> And if i remove the local configuration from conf file , it is synching
>> fine.
>>  On Thu, Jul 19, 2012 at 3:02 AM, Harlan Stenn <stenn at ntp.org> wrote:
>>
>>> > I have a doubt here.
>>> >
>>> > If I am using the local clock I am unable to synch to the external
>>> > server.  So If I am removing the local clock then I am able to synch
>>> > but this local clock should be there for me to synch to the other
>>> > machines by using this machine, so I kept stratum as Zero .
>>>
>>> You should *never* tell the local refclock to run at S0.
>>>
>>> > If this was the problem then how I would overcome the scenario that ,
>>> > If I am unable to synch to external server and if local clock is not
>>> > there then I am lost . So is there anything I am missing by
>>> > configuration in ntp-4.2.6.p0.
>>> >
>>> > Sorry If I had confused you.
>>>
>>> Please look on the Support web at support.ntp.org for instructions on
>>> the configuring a local refclock.
>>>
>>> H
>>>
>>
>>
>>
>>


More information about the questions mailing list