views:

1407

answers:

6

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

+1  A: 

No, but you might be able to estimate the latency.

anon
+8  A: 

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
unwind
+2  A: 

You might be able to make a very crude measure by creating pings of differing sizes

You could then use the difference in the latency between the smaller and larger pings to form the basis of your latency calculation.

Practically though with broadband speeds this would yield no meaningful data. At modem speeds or slower you may be able to get an indication of bandwidth, but it is unlikely to be accurate and repeatable.

But as others have already indicated pings are best used as an indication of latency and there are better ways to measure bandwidth.

benophobia
+1  A: 

Some years ago, I did some investigation into the relationship between latency and bandwidth use over cable.

Basically, if you start from zero bandwidth and increase bandwidth use, latency very slowly increases - until you hit about 90% of your bandwidth. Then latency goes through the roof, up to another plateau, after which it again increases slowly.

Blank Xavier
+1  A: 

Please take a look at top-5-unix-network-monitoring-utilities

Oliver Michels
A: 

You can measure bandwidth if you know the latency of the channel beforehand.

You can use big ping packages and estimate the bandwidth knowing the type of channel and the expected RTT.

simao