Home All Groups Group Topic Archive Search About

Determining per-connection bandwidth - 1Please Help!

Author
23 Feb 2007 2:41 AM
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!

Author
23 Feb 2007 3:20 AM
mangist
On Feb 22, 9:41 pm, "OPM" <no@thanks> wrote:
> 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.
Author
25 Feb 2007 10:08 AM
OPM
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
<mang***@gmail.com> wrote in message
Show quote
news:1172200853.814447.91340@j27g2000cwj.googlegroups.com...
> On Feb 22, 9:41 pm, "OPM" <no@thanks> wrote:
>> 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.
>

AddThis Social Bookmark Button