Measure transfer rate?

Just starting out? Need help? Post your questions and find answers here.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Measure transfer rate?

Post 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?
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Why not a FTP Server + PureBasic Module who put/get file to that server.
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post 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.
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
superadnim
Enthusiast
Enthusiast
Posts: 480
Joined: Thu Jul 27, 2006 4:06 am

Post 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.

:lol: should I bash the keyboard and give up?
:?
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post 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!
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post 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.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

Just what I needed! Thank you.
Post Reply