Finding Internet Connection Download and Upload rate dynamically

Posted on 2005-03-23
Medium Priority
Last Modified: 2013-11-20
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.
Question by:Vinod_VijayanVin
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
  • 4
  • 2
LVL 16

Expert Comment

ID: 13610218
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.

Author Comment

ID: 13611793
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.
LVL 16

Expert Comment

ID: 13612023
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.
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf


Author Comment

ID: 13619002

  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.

Author Comment

ID: 13643438
  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
       by implementing a Winsock2 Layered Service Provider


Author Comment

ID: 13643528

  As i have given the solution i request the moderator to close the question and award the
  points to me.

Accepted Solution

modulo earned 0 total points
ID: 14461683
Closed, 250 points refunded.
Community Support Moderator

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

752 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