0

DUPE: How to programmatically check Internet bandwidth in VC++?

Can we find the bandwidth from the latency of ping .If yes how is it done

Community
  • 1
  • 1
subbu
  • 3,229
  • 13
  • 49
  • 70
  • 3
    Seriously, this is the 4th question you've asked about Bandwidth & Ping. Go and read/search Stack Overflow before posting. Theres lots of info on here already e.g. http://stackoverflow.com/questions/566139/detecting-network-connection-speed-and-bandwidth-usage-in-c – Eoin Campbell Apr 21 '09 at 11:23
  • What is the relation to Internet Explorer? Your question does not mention IE at all. Huh? – Dirk Vollmar Apr 21 '09 at 11:52
  • Why the downvotes? The question is definitely of interest to programmers, even though the answer is "no, you can't." – Piskvor left the building Apr 21 '09 at 12:06
  • No, the answer is not a plain, "no, you cant" (but neither is it "yes you can"). See my answer. – flybywire Apr 21 '09 at 12:18

3 Answers3

8

No, generally speaking there not much of relation. See Wiki: Comparison of latency and throughput.

Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
— Andrew S. Tanenbaum.

Modern sneakernet can have incredible bandwidth (imagine e.g. sending 2 x 2TB disks via courier), while their latency is of hours or even days.

vartec
  • 131,205
  • 36
  • 218
  • 244
7

The two aren't related:

  • Latency is the difference in time between when you send something and when the receiver gets it. There is an absolute minimum latency for all transmission governed by the distance and the speed of light.

  • Bandwidth, used in the way you describe, is the amount of information that can be sent over a particular time. There is a physical limit on the amount of bandwidth you can have per volume it occupies (if we had computers made of pure energy that were as dense as possible), but it's unlikely we'll reach this anytime soon.

Some examples:

  • Low latency, low bandwidth: Connecting to a congested terminal on a LAN.
  • Low latency, high bandwidth: Transmitting over the Internet backbone.
  • High latency, low bandwidth: Dial-up modem on a congested network.
  • High latency, high bandwidth: Fill a car with hard drives and drive it to San Francisco. (This is sneakernet.)
John Feminella
  • 303,634
  • 46
  • 339
  • 357
2

There is however a technique called packet pair probing.

You send to packets one immediately after the other. In theory, the less bandwidth available, the more they will spread away in arrival time.

flybywire
  • 261,858
  • 191
  • 397
  • 503