Determining per-connection bandwidth - 1Please Help!

  • Thread starter Thread starter OPM
  • Start date Start date
O

OPM

Hi guys and gals,

I've been Googling hi and low for the past few hours trying to work out how
to do this and having very little luck. I'm trying to determine how I can
determine the in and out speed (bytes/sec) for TCP connections.

Do I need to using a Packet Sniffer like WinPCap for this, or is there some
other method for working this out? Thanks heaps in advance and any pointers
would be appreciated.

Kind regards!
 
Hi guys and gals,

I've been Googling hi and low for the past few hours trying to work out how
to do this and having very little luck. I'm trying to determine how I can
determine the in and out speed (bytes/sec) for TCP connections.

Do I need to using a Packet Sniffer like WinPCap for this, or is there some
other method for working this out? Thanks heaps in advance and any pointers
would be appreciated.

Kind regards!

Not sure if you are meaning TCP connections in your application? Or
TCP connections currently in Windows? You don't need WinPCap as there
are bandwidth meters around that just install straight away.

I would recommend using WMI (Windows Management Instrumentation) to
attach to your network adapter. There are several performance
counters available to use like bytes received/sec and bytes sent/sec.
I recommend using the .NET System.Diagnostics namespace (look at
PerformanceCounter classes on MSDN documentation).

P.s. right click My Computer -> Manager -> Performance Monitor , you
can add counters and see what the different ones do.

Hope this helps.
 
Thanks for the reply.

Already aware of PerfMon and Performance Counters, should have been a bit
clearer...

I would like to see the bandwidth being utilised on a per-connection basis,
for example if Internet Explorer is downloading, look at the speed it is
downloading at.

Any ideas?

Cheers
 
Back
Top