Solved

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

Posted on 2002-04-22
10
205 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Nope.  This is the easiest way of doing it :(
0
 

Author Comment

by:thornton_paul
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Expert Comment

by:SJohnson
Comment Utility
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
Comment Utility
Thanks Stuart, much appreciated.
0
 
LVL 1

Expert Comment

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

Expert Comment

by:pnh73
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

16 Experts available now in Live!

Get 1:1 Help Now