Calculating available bandwidth

2020-03-07 07:10发布

问题:

I need write a code in C++ in Windows , to calculate available bandwidth. I'm currently planing to use spruce algorithm. i wanted to know is there any code available for this algorithm in windows . or is there any other technique to get the internet bandwidth.

回答1:

Searching for "spruce algorithm" gives me this result http://iris.csail.mit.edu/spruce/ :

Spruce is a tool for measuring available bandwidth over Internet paths. Download source code

It's GPLv2 and written in C - should be easily portable to C++.



回答2:

thrulay is another network capacity tester, which along with calculating the bandwidth, does the rtt and uses median for summarizing delay which as it's author Stanislav Shalunov in Mean Delay Considered Harmful is right as averages are mostly meaningless if the distribution from which the samples are taken isn't fixed