Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-11-2009, 07:46 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 17

Rep: Reputation: 0
ISP speed calculation

I am trying to write a program for my router that will calculate my broadband speed (DN/UP) periodically say every 6 hrs (total of 4/day) and display in the Router "WAN" page. Is there something already out there in Open Source forums (part of GPL etc)?
example: Start a timer, download a file (ftp?) of a known size, stop the timer and then used the time delta and file size to calculate the BW etc?
Any help/suggestion would be greatly appreciated! A sample code would be a great start!

Old 10-11-2009, 07:52 PM   #2
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
or you could just use one of the many free web pages out there that will do that for you. now it will not be automated, but meh it will give you the info you are seeking.

is what i use as they have a test location less then 8hr (drive time) from my house and it is more accurate then my ISPs speed testing page.
Old 10-11-2009, 09:20 PM   #3
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Use wget to download a file of known size and it shows the summary of time and speed after downloading.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
speed + for same isp please Linux - Networking 2 07-21-2009 06:13 AM
One Cable One Wifi isp how to combine for speed on fedora core 5 zonemikel Linux - Wireless Networking 6 08-16-2006 11:50 PM
home isp speed linuxhippy Slackware 2 09-01-2005 01:37 PM
intel 536EP random connection speed to ISP (<10% 45333 bps, mostly often slow 33000) Emmanuel_uk Linux - Newbie 10 05-16-2005 02:14 AM
Changing ISP, apt-get can not see new ISP proxy linx win Debian 0 01-05-2005 04:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration