The invention relates to a
network delay measuring method and
system for eliminating position errors. The
network delay measuring method comprises the steps of inserting a network driver
interface standard (NDIS) intermediate driver program between a micro-port driver of a host computer Windows
operating system and a protocol driver, moving the recording position of a measurement
timestamp to the intermediate driver from a traditional application program, calculating time
delay values (including one-way time
delay and round trip
delay) of a network path through a measurement probe program of a
user space according to records and a returned
timestamp and achieving
elimination of the time delay measurement position errors. The position errors are influenced by hardware performance, kernel complexity,
system load, interrupt response, a kernel rotation lock and progress /
thread scheduling of the host computer and other factors and is especially and largely influenced by the
system load and the progress /
thread scheduling. By means of the
improved method, the recording position of the data
package receiving / transmitting
timestamp in the measurement process is enabled to be close to the measurement moment of a receiving / transmitting
package of a host
computer network card, and accordingly the time consumption caused by
data processing of the host computer is eliminated, namely the measurement position errors are eliminated.