Search code examples
network-programmingbandwidthpingmeasurement

Is it possible to measure bandwidth using ping?


Can we find the internet bandwidth from the time it takes to ping a server if yes how is it done


Solution

  • No, ping tells you nothing about the bandwidth, it just measures latency. Measuring bandwidth is best done by a dedicated test, i.e. transferring a bunch of bits and measuring how long time it takes. You might want to consider that the bandwidth can vary dramatically with many factors, such as:

    • Direction; A to B might be faster than B to A, or vice versa
    • Time of day; depending on general load level of links involved
    • The exact route taken, which in turn can vary randomly