hi all
i would like to know the speed of the internet(bandwidth),programatically.
is there any possible way.
please help me
thank you in advance
hi all
i would like to know the speed of the internet(bandwidth),programatically.
is there any possible way.
please help me
thank you in advance
there is a speedometer for ur car.
(i thought that expirienced persons can understand things easily,what about you?)
i am asking about how to know internet speed in my machine.
for example:
i taken a cable connection from one person.
he said that i am giving 500kbps (speed of the net)
then how can i know.
help me in this way
thank you in advance
That would depend on your broadband modem / router, and whether it has any kind of status page you can log into, say via HTML.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
There are several websites that will test your internet connection speed for you, free.
I'm sure it could be done with a program, but I haven't seen the source code for this.
Just google something like "test internet connection" or "test bandwidth", and you'll get several hits.
Adak
This should have answered the question already. I'll explain it a little further, it seems this went by unnoticed:
The "speed" of a car is measured in distance/time, commonly km/h or miles/h, in physics often m/s. If you want to find out how fast your car can drive, you only have to pass a certain distance and measure the time you needed.
Example:
You drive 10 meter in 4 seconds, that's 10/4 m/s = (10*3600)/(4*1000) km/h = 36/4 km/h = 9 km/h (damn slow ...)
The same is true for measuring internet speed, which is measures in kbytes/sec (or whatever suits you). Go ahead and download a file of a known size, then measure how long you needed to download it and use this to measure your internet speed.
This can also be done "on-the-fly", by constantly measuring how long you needed to download x bytes.
Me thinks sounds like an assignment.
KONI told you the logic, implementing it in a program is rather trivial. Look into sockets (Winsock, or BSD Sockets).
hello...
i know that...
can you do it programatically....
which said by koni...
every time we have to download a file and mesurements....
just do yourself..that is
download a file programatically
and mesure the speed programatically....
and another thing it is not an assignment..
if you know about it, just tell me..
i think you , understand my problem..
if any help
thank you in advance
YES for the 2nd time you can do it programatically, download a file from the internet (with sockets) and measure how long it took, and how big the file is and from there you can work out your internet speed (well close enough to it).
Or just use the results from one of the many internet speed measuring sites + write a parser for one of them. Enough said.
Isn't this the same guy that was writing a program to connect to a website that someone said had references to spyware?
I think you missed the point. What if I'm driving on a road with a 25 mile per hour speed limit? Is it really correct so say that my car's top speed is 25 miles per hour just because I'm not legally allowed to go any faster?
Similarly, how can you possibly know how fast your Internet connection really is? Sure, you can download a file from somewhere and measure how long it took. But that's only measuring how fast THAT particular connection was. It could be slower than usual because the host on the other end is on a slow connection.
So in general there is no way to programmatically determine your maximum bandwidth, unless you have certain knowledge that the host you are communicating with (and every router in between) is able to keep up with your maximum transfer speed. And of course on the wild Internet there is absolutely no way to know this.
Also, consider latency. Are you including that in the measurement or not? What if you can transfer 1 megabit per second but the link has a latency of 5 seconds in each direction? Are you going to include that in the numbers? How are you going to measure the latency? How many bytes are you going to transfer? If you transfer only 10000 bytes, this takes a split second but the 10 seconds of latency swamped the numbers. If you transfer billions of bytes, the latency effect is decreased but your test takes days to finish.