Solved

Calculating internet speed Visual basic 2010

Posted on 2011-09-03
4
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

726 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