Re: How to get the Internet Speed
- From: Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 01 Apr 2006 19:25:55 +0100
moumitaghosh@xxxxxxxxxxxxxxx wrote:
hi all,If the connection is to something outside your local LAN the most significant factor is packet transit time, not bytes/sec, so I'll assume transit time is what you want to measure.
I need to get the internet speed,how can i get this
plz help
You can measure UDP round trip times directly with the ping utility program. Ping is a standard command line utility for virtually every operating system.
There's no equivalent way to measure request/response round trip times on a TCP connection. If you're using a *nix operating system (UNIX, Linux, FreeBSD, Solaris, OS X) you can easily script a simple solution by using netcat (known as nc on some systems) as both client and server, send a known number of messages and use the time utility to measure the elapsed time. If netcat isn't installed you can get it from netcat.sourceforge.net.
If you have any other operating system you'll have to write a simple client/server pair and time individual request/response pairs. Use the Socket and Date classes for communication and timing respectively. See also the Stopwatch class that was published here last week.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- Prev by Date: Re: JSP
- Next by Date: Re: [regex?] word correction
- Previous by thread: Re: Class Loading on Different Opperating Systems
- Next by thread: Re: How to get the Internet Speed
- Index(es):
Relevant Pages
|