Finding Internet Connection Download and Upload rate dynamically

Hello Experts,

        I am currently developing an Voice Chat application that requires to know the upload
 and download rate (in kbps) of the internet connection so that the application can adjust the
 voice communication accordingly. It can be also used to show that the network bandwidth
 available at a particular time is not suitable for two-way voice communication. Is there any
 VC code available to do the same.
LVL 5
Vinod_VijayanVinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nonubikCommented:
To find the actual ul/dl rate you can try a conenction from client to server and make a quick counter on ul/dl files rate.
0
Vinod_VijayanVinAuthor Commented:
Thanks nonubik for yur help,

    I have to actually find the net activity taking place at any instant and determine how
    much bandwidth is available to me before  sending any data. Because i
    require information like total upload bandwidth and download bandwidth available
    at a instant so that i cn determine the quantity of data to send and accept.
0
nonubikCommented:
Then you can use a 'calibrating' stage. You can send and receive chunks of data to/from the server for short amount of time and compute the rate.
But this can be relative as the user may be in the middle of some large download and the dload rate you'll compute will be smaller than the usual, or the reverse, as you'll compute some dload rate but while your app runs the user decides to do some dload.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Vinod_VijayanVinAuthor Commented:

  nonubik, there are bandwidth monitors available that detect and display the internet activity
  taking place at the client. I am amazed at how they do that. They certainly do not send any data
  across the internet for doing that. I want to use the same mechanism. I want to compute the
  available bandwidth every time i send a packet.
0
Vinod_VijayanVinAuthor Commented:
 
  I have found the answer to the problem.
  They are many ways to implement bandwidth monitor.

  1.   The most prominent of them are either to put the adapter in  promiscuous mode.
        Promiscuous mode is a special reception mode where an adapter will receive all frames on
       the ring, not just frames are addressed to that adapter which is an disadvantage.

  2.  The other way is to implement a Dll hook that will notify our function whenever calls are made
       to transfer or receive network data
       http://www.hollistech.com/Resources/IpHook/hts_iphook.htm
       OR
       by implementing a Winsock2 Layered Service Provider
       http://www.microsoft.com/msj/0599/LayeredService/LayeredService.aspx
     
 

 
 
 
0
Vinod_VijayanVinAuthor Commented:

  As i have given the solution i request the moderator to close the question and award the
  points to me.
0
moduloCommented:
Closed, 250 points refunded.
modulo
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.