• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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

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
thornton_paul
Asked:
thornton_paul
1 Solution
 
raidosCommented:
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
 
Stuart_JohnsonCommented:
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
 
thornton_paulAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Stuart_JohnsonCommented:
Nope.  This is the easiest way of doing it :(
0
 
thornton_paulAuthor Commented:
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
 
SJohnsonCommented:
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
 
thornton_paulAuthor Commented:
Thanks Stuart, much appreciated.
0
 
MoondancerCommented:
What would you like done with this question?
Moondancer - EE Moderator
0
 
pnh73Commented:
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
 
Stuart_JohnsonCommented:
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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now