Albert,

I haven't scratched the simulator in quite a while, but last I ran it it worked as advertised. Since I last tweaked the code, somebody has added an awesome command-line option processor. While unlikely, that might have broken something. However, the simulator has been rebuilt with multiple servers and scripts. It's part of the major change reported earlier, but on hold due lack of enthusiastic volunteer.

Having said that, you might have exposed a "feature". When synchronizinig a client expects the server to honk valid stratum and dispersion. Look at srvr_reply() in ntpsim. It should simulate a stratum-i sever with valid delay and dispersion. That's a very curious transmit timestamp.

Dave

Albert J Sawyer wrote:
Can someone help me get ntpdsim running right?  The time will not
synchronize.  At the end of a run with
ntpdsim -A -C .001 -T 400 -W 1 -c ./ntp.conf
the last line output is:
                T                     T+ERR                  T+ERR+NTP
           86400.000000         34513621.245209            86400.000000

By adding -d -d -d to the argument list, and some extra debug output
messages I found that the clock_select() function always gets 0x400
failure return from peer_unfit(), which is a Test 11 failure, root
distance too large.

A typical line of rawstats has
15020 63118.000 192.43.244.18 135.1.121.22 63117.000000000
22742575.719312813 22742575.720312811 63117.019083045.

It seems that the client packet is sent with transmit time from
ntp_time, but srvr_rply() sets its time stamps from clk_time.  Because
the server is never accepted by clock_select, ntp_time is never adjusted.

I got this version in downloaded of ntp-4.2.2p3, ran configure.guess to
create a directory for sparc-sun-solaris2.8, ran configure to create the
makefile, compiled
with gnu tools,  and created a simple ntp.conf:

disable kernel
server time.nist.gov iburst
logfile /home/ajs/public_html/NTP/ntpdsim/ntplog
driftfile ./ntp.drift
statsdir ./ntpstats/
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
filegen rawstats file rawstats type day enable
filegen sysstats file sysstats type day enable

and ran with:

ntpdsim $* -A -C .001 -T 400 -W 1 -c ./ntp.conf

Only peerstats and rawstats are created.

thanks,
Al Sawyer


_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions


_______________________________________________
questions mailing list
[email protected]
https://lists.ntp.isc.org/mailman/listinfo/questions

Reply via email to