Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

Determining per-connection bandwidth - 1Please Help!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OPM - 23 Feb 2007 02:41 GMT
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!
mangist@gmail.com - 23 Feb 2007 03:20 GMT
> Hi guys and gals,
>
[quoted text clipped - 7 lines]
>
> 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.
OPM - 25 Feb 2007 10:08 GMT
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
>> Hi guys and gals,
>>
[quoted text clipped - 25 lines]
>
> Hope this helps.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.