Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    5

    Calculating the ISP speed for my router

    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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Try Speedtest.net - The Global Broadband Speed Test. The speed of a connection depends upon a number of issues such as the speed of both ends of the link, network congestion, distance between the connection ends, etc. Like MIPS, poorly written network performance tests are often meaningless without fully understanding all the factors involved.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    5
    I dont think you read my question. I dont want to run some fancy application from some URL via my web browser. I am trying to write a small "daemon" that will run in the background of my router box to go and do a small scale version of what your suggested site is doing.

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    The download part would be the easy thing to do, its the upload part that is difficult. You could just pick a server and download a large file, even just using a linux distro's repo and directly downloading a file. You could set up a cron job to do this and combine it with maybe the time function. As for upload, you would have to have some kind of server out on the web somewhere with upload privileges with ftp, ssh, etc.

  5. #5
    Just Joined!
    Join Date
    Apr 2009
    Posts
    5
    Yes, thanks! I figured out the download part. I can use "wget" or "curl" to do it. Uploading is tricky.

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    The problem with upload is even if you use a free hosting service, chances are you will be throttled and unable to utilize your maximum capacity.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...