ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been working for a wile in a JAVA program which calculates the real internet connection speed. i.e. If you have contracted an Internet connection with a particular ISP who offers you up to 20 mb, I want to test how much of this 20 mb I have.
I have been trying to just download a file, silly me, but obviously the speed I have got from that is the particular speed of this download, in my case ~150 kbs. I have tried to download lots of files and, becouse each downloads at 150, calculate how the velocity variates and there must be any way but I have not got it.
I don't really care, I obviously prefer it to be multi-platform but, as it is just for me to practice my JAVA, It will be all right to be exclusive for linux.
I don't really understand what you want so I made this python program that monitors the bandwidth usage average until you stop it. You can probably work out from that what you need to do in Java. It reads the statistics from the Linux sysfs, just download a big file from a fast host and it will give you an accurate reading...
If that's not what you want then I don't know!
Last edited by senseproof; 05-14-2009 at 09:14 AM.
Reason: Deleted attachment because it wasn't what he wanted
I was told ( by some Guru) that you download a file or something,
note the actual download speed ( eg : ~150Kb/s ) & multiply that by 8.
( 150Kb/s X 8 = 1.2Mb )( which is about what, my isp supplied 7.2Mb 3g modem does).
so that thing is certainly *not* supplying what I am paying for !
The guru means to convert from bytes per second to bits per second you multiply by 8. ISPs usually give speeds in bits rather than bytes per second (largely because the numbers are bigger so it looks better for marketing).
The speed you get when downloading depends on so many other factors outside your control such as the remote hosts saturation and speed, the saturation and speed of the routers in between you and your destination.
I notice you're in Perth. For a decent speed test, you need to find a fast host in Perth. Try a university there and download an ISO from it. That will give you a more accurate result.
That is quite useful, so, if I want to know what speed is the ISP given I need to consider what I download.
I want to make something similar to one of those internet speed test in flash which are in internet, like this http://www.speedtest.net/, My aim (besides learning) is to make a little application for testing my internet service and use it as proof of it for future complains. xDDDDD
So, If I download some little document from a good server, like the ones owned by universities, and I calculate the speed in bites, what I obtain is the approximated real speed. Isnt it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.