broadband

Technology behind speed test


I was wondering what is the technology behind Internet Speed test, which some websites use to check your speed e.g; http://www.speedtest.net/

The reason behind this question is, i wanted to write my own with one more feature and that is to keep checking speed after some interval so that i can have better idea of what i am getting for what i am paying for.

I am not sure if this question belongs to stackoverflow, so please forgive me if it is not.

Thanks.


Solution

  • Download a reasonably large amount of data from the server (N bytes). Record how long it takes. (M seconds) Download rate is N / M bytes per second.

    Repeat for upload.