Thread: internet speed

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    internet speed

    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

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by munna_dude View Post
    hi all
    i would like to know the speed of the internet(bandwidth),programatically.
    I would like to know the speed of my car. How can I determine this?

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    thank you for quick replay

    Quote Originally Posted by brewbuck View Post
    I would like to know the speed of my car. How can I determine this?
    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

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,674
    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.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by munna_dude View Post
    i taken a cable connection from one person.
    Well that wasn't very nice of you.


    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    136
    Quote Originally Posted by quzah View Post
    Well that wasn't very nice of you.


    Quzah.
    what?
    that is the example to understand u, what i am exactly asking about?

    can i ask you a question?
    what is your internet speed?
    how can you know that?

    replay soon

    thank you in advance

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    8,866
    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

  8. #8
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    Quote Originally Posted by brewbuck View Post
    I would like to know the speed of my car. How can I determine this?
    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.

  9. #9
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    thank you for quick replay

    Quote Originally Posted by Adak View Post
    I'm sure it could be done with a program, but I haven't seen the source code for this.
    Adak
    well. i have to do it by programatically.
    can you help me .

    thank you in advance

  10. #10
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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).

  11. #11
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    thank you for quick replay

    Quote Originally Posted by zacs7 View Post
    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

  12. #12
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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.

  13. #13
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Isn't this the same guy that was writing a program to connect to a website that someone said had references to spyware?

  14. #14
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by munna_dude View Post
    there is a speedometer for ur car.
    (i thought that expirienced persons can understand things easily,what about you?)
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I've got high speed internet!!!!!
    By PJYelton in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-27-2005, 07:57 AM
  2. Speed up any Internet Connection!
    By Stan100 in forum Tech Board
    Replies: 5
    Last Post: 07-13-2004, 10:30 AM
  3. Internet Problems
    By SirCrono6 in forum Tech Board
    Replies: 3
    Last Post: 04-26-2004, 09:47 PM
  4. XP Internet problems
    By Hunter2 in forum Tech Board
    Replies: 9
    Last Post: 09-18-2003, 08:56 PM
  5. Rogers High Speed Internet Router Setup
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 06-25-2002, 08:39 PM