Solved

How to monitor in/out packets on interfaces (bandwidth monitor)

Posted on 2002-04-22
10
206 Views
Last Modified: 2010-04-04
I'm looking for a way to monitor the number of all incoming and outgoing packets for a bandwidth display application. The method must work on all windows platforms from W95 up...

Anybody go any ideas?

Cheers,
Paul
0
Comment
Question by:thornton_paul
10 Comments
 
LVL 3

Expert Comment

by:raidos
ID: 6959488
I haven't tried doing something like that, but there is a library/device driver called winpcap maybe that would work for you.

http://winpcap.polito.it/default.htm

Regards
//raidos
0
 
LVL 6

Accepted Solution

by:
Stuart_Johnson earned 100 total points
ID: 6961597
I've used WinPCap and it's GREAT.  At times it's pretty difficult to figure out, but the included examples are great (although most of them wouldn't compile on my system).
0
 

Author Comment

by:thornton_paul
ID: 6962134
OK, I'll take a look... I was kind of hoping to manage without using any driver type stuff. Are there no registry entries which record packets in/out?
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 6962643
Nope.  This is the easiest way of doing it :(
0
 

Author Comment

by:thornton_paul
ID: 6976587
Hi Stuart,

I've tried WinPCap (with the Delphi header files from http://home1.stofanet.dk/nitezhifter) and it seems to do what I need.

I do however have a couple of concerns:

1. Has anybody any experience with deploying WinPCap with an application (install/uninstall/different operating systems etc.)?

2. Are there any performance issues?

Cheers,
Paul
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:SJohnson
ID: 6977032
Paul,

I haven't tried deploying it, but I could sure give it a go for you.  I can probably test it on 98, NT4, 2000 and XP Home (as they are they only OS's I have access to at present).  I use Wise InstallMaster, so I can provide a script if that helps (and providing the install works).

Performance issues..  I'm sure there would be some.  Everything has some form of effect on something else somwhere down the line.  I haven't noticed it on my ADSL connection (256k originally, upgraded to 512k last month).

I'll try doing something tomorrow morning for you.

Stu
0
 

Author Comment

by:thornton_paul
ID: 6977047
Thanks Stuart, much appreciated.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7079867
What would you like done with this question?
Moondancer - EE Moderator
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9003912
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from Stuart Johnson

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
 
LVL 6

Expert Comment

by:Stuart_Johnson
ID: 9096515
Umm, although I appreciate getting the points, it wasn't me who suggested WinPCap - it was raidos.  They deserve the points.

Stu
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using FastMM4... should I enable MMX option? 9 75
Virtuailstring tree compare node issue 14 103
tidtcpserver connection lost handle 2 69
Create a path if not exists 7 68
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now