Solved

Calculating internet speed Visual basic 2010

Posted on 2011-09-03
4
448 Views
Last Modified: 2012-05-12
I'm just starting out with VB so bear with me. :) Just for giggles and fun I decided to make a program that shows network speed. Well.. using system.net.networkinformation I seem to have at least gotten the speed of the network card. Which is fine.

I would like to take it one step further and, if at all possible (Especially considering my VB Noob status) show my current speed that I am enjoying from my provider. No particular reason, just want to see if I can do it or at the very least get a feel for what is required.

Thank you.
0
Comment
Question by:thirtywinter
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36478968
Getting the actual speed of a connection requires programs at both ends.  If your ISP has a web page that you can connect to, you can measure the time it takes from your request until the entire file is received and do the arithmetic.  Network connections seldom run at their rated speed because of overhead and other traffic that shares the network.
0
 

Author Comment

by:thirtywinter
ID: 36479003
Sounds logical. ok.. in that case, is it possible to get the actual speed that my network port is transmitting at at any give time? Like my port has X bandwidth, but is currently sending at Y and receiving at Z?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36479016
Not really.  Since the network operates by sending small packets and has to wait for a response fairly often, the 'effective' speed varies constantly.  The rated speed like 100MHz network card is the fastest that data will be sent.  The 'real' speed will be less than that because it doesn't run constantly but only in packets.  Typical packet size for Ethernet is about 1500 bytes.
0
 

Author Closing Comment

by:thirtywinter
ID: 36479038
Gotcha! Well, that concludes that it looks like.

Thank you for your input. :)
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question