Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Finding Internet Connection Download and Upload rate dynamically

Posted on 2005-03-23
8
Medium Priority
?
179 Views
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.
0
Comment
Question by:Vinod_VijayanVin
  • 4
  • 2
7 Comments
 
LVL 16

Expert Comment

by:nonubik
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.
0
 
LVL 5

Author Comment

by:Vinod_VijayanVin
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.
0
 
LVL 16

Expert Comment

by:nonubik
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:Vinod_VijayanVin
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.
0
 
LVL 5

Author Comment

by:Vinod_VijayanVin
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
       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
 
LVL 5

Author Comment

by:Vinod_VijayanVin
ID: 13643528

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

Accepted Solution

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

578 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