Page 1 of 1

Measure transfer rate?

Posted: Mon Nov 10, 2008 4:55 pm
by Beach
I would like to create an app that would be able to measure the speed of a given network connection. I'm just not sure how to go about doing this accurately. I know Vista has something that shows the transfer speed if you copy a file. Something like that would be fine. Basically, I would like to send a file or data packet every 20 seconds or so and rate the speed so I can monitor when the speed dips.

Any ideas?

Posted: Mon Nov 10, 2008 11:34 pm
by Droopy
Why not a FTP Server + PureBasic Module who put/get file to that server.

Posted: Tue Nov 11, 2008 12:31 am
by pdwyer
What are you wanting to monitor?

Point A to B across the internet? An average of Point A and several B's Or are you on a wan with a system at each side?

I suppose the approach changes depending on whether you control one or both sides of the connection as if you have both you can dictate protocol etc too.

Posted: Tue Nov 11, 2008 3:04 am
by superadnim
you can implement this with timing, knowing how long it takes for the data to be sent and received allows you to time the transfer rate to a certain extent.

Posted: Tue Nov 11, 2008 1:48 pm
by Beach
Thanks for the replys. The setup I want to benchmark is multiple Metro-E links between buildings. Some links are 100Mb and some are 1Gb. The ISP will make changes in their com gear and will effects our link speeds. The only way I know something has changed is when someone calls and says the system seems slow. The last time that happened my users waited 4 weeks to tell me. The fix given from the ISP was very generic and made to seem as though it just happened for no reason.

I have machines on both ends I can control. Putting together a client server app would be no problem. It might be easier to just measure the transfer rate to a SMB share or FTP on a remote server. Then I would not need to worry about two apps. I will play around with some code and come back with more specific questions if need be.

Thanks all!

Posted: Sat Nov 15, 2008 11:21 am
by Rescator
Here: http://www.purebasic.fr/english/viewtopic.php?t=28763

This is a flexible progress calculation, you should easily be able to use/adapt this to pretty much anything.

Posted: Mon Nov 17, 2008 5:47 am
by Beach
Just what I needed! Thank you.