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