Subject: Query Arrival Time calculation in traceroute draft.

From: Mladen Sablic <[email-masked]>
Date: Mon, 15 May 2000 18:05:26 +0100

I was looking at the formula for calculating 32-bit NTP stamp:
http://www.ietf.org/internet-drafts/draft-ietf-idmr-traceroute-ipm-06.txt
(Section 5.1):

    query_arrival_time = (tv.tv_sec + 32384)<<16+(tv.tv_usec<<10)/15625

And in the same section it is stated that:

    ((tv.tv_usec << 10) / 15625) is a reduction of
    ((tv.tv_usec / 100000000) << 16).

Shouldn't that be ((tv.tv_usec/ 1000000) << 16) ?

tv.tv_usec/10^6 << 16 = tv.tv_usec/(2^6*5^6)*2^16
                      = (tv.tv_usec*2^10)/5^6
                      = ((tv.tv_usec << 10)/15625)

Mladen