----- Original Message -----
From: "Gallun, Benton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'Mark Zvolanek'" <[EMAIL PROTECTED]>
Sent: Monday, February 11, 2002 7:57 PM
Subject: RE: Latency testing


> After a some struggle with my local firewall and such, I have
installed
> Time::Hires and have placed Mark's code into a single Ping.pl
script. Thank
> you Mark.
>
> However, I am having trouble getting sensical data based by
IP, instead I am
> forced to use alpha names.
>
> Thanks,
> B
A ping will always take longer if the machine has to look up the
I.P. address from the DNS server. On a LAN, the latency should
be VERY close to 0. The elapsed time you're measuring includes
the time it takes for Net::Ping to run, look up the I.P.
address, connect to the machine, close the connect etc...

I once saw some code which packed an I.P. packet with a time
stamp, sent it out requesting a response packet with a time
stamp, and then calculated the latency from the packet outgoing,
and it's return. This will give you a accurate measurement of
the network latency. Unfortunately, I have no idea where I saw
the code, but I do recall it was in C, not Perl.

ego
Edward G. Orton, GWN Consultants Inc.
Phone: 613-764-3186, Fax: 613-764-1721
email: [EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to