post  Calculate ISP speed

rhine2 (1)   Link to this post
Hello
I am trying to develop a small program that will periodically (say every 6 hrs) calculate my ISP broadband speed (both up and dn stream) and display on my router GUI's WAN page. I am thinking of say, start a Linux timer, start down/uploading a file of a known size, stop timer and then calculate the U/D speed of the ISP.
Any good suggestions, sample program etc would be of great help. If there are open source programs out there that already does this, a link would be good.
Appreciate any/all the help!

thanks
rhine
turbozedd (153)   Link to this post
http://www.net-track.ch/opensource/speedtest/

...try using google before asking us to find stuff for you

http://lmgtfy.com/?q=speedtest+opensource
Last edited on
computerquip (876)   Link to this post
turbozedd, most of these use PHP and / or Java. This is a C++ forum after all. I'm guessing he's trying to make a native application for his router.

EDIT: Thought I'd note that I don't know much about it. You could set up a file on a server that you know can handle your maximum bandwidth, download the file and measure how fast the download goes. I don't know much about socks and I'm still working on these so I can't give much advice.
Last edited on
turbozedd (153)   Link to this post
if you want to use c++ to do it you'll have to use SOAP or REST or something similar
chrisname (2545)   Link to this post
Or you could use Beej's guide to network programming (which is centered around *nix after all) at http://beej.us/guide/bgnet/ to learn how to use sockets; and then send a SYN packet to a server (I can't remember what the size of these tends to be) and then work out the latency via the time taken to send the packet. Once you've done that you can say "XYZ Kb/sec". You could also measure the time it takes for a data packet to return from the server (ACK(knowledge)). You could work out the down speed from that based on the time to live of the packet.

This topic is archived - New replies not allowed.