Re: Bandwidth Monitor

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Roulette" <Roulette@xxxxxxxxxxxx> wrote

> I want to write a bandwidth monitor that will tally up how much data
is
> sent and received from the machine on which it is run. (I need to add
some
> additional custom functionality, so I'm not looking for any existing
> applications like AnalogX's free monitor, etc..)
>
> Can anyone suggest how I would go about doing this? Would you
intercept
> the appropriate Windows functions, tally up the amount of data being sent
> and received, and then call the original functions? If so, how would you
go
> about intercepting such functions? Which functions would be necessary -
> just the Winsock send() and recv() functions (assuming we're just talking
> about Winsock-based networking), or are there additional functions I'd
have
> to worry about?
>
> Or is there an easier way to do this?

Yes, assuming you just want to monitor and not modify anything.

Use WinPcap http://www.winpcap.org/install/default.htm

Essentially it eavesdrops on the network link and captures all the Ethernet
packets.

You can then process the packets to count how many bytes are being sent /
received.

If for example you wanted to see how much *Internet* bandwidth it was using,
then you can just process packets where Src or Dest IP is not on local LAN.

Dave.


.



Relevant Pages

  • Re: Bandwidth Monitor
    ... >> I want to write a bandwidth monitor that will tally up how much data ... > You can then process the packets to count how many bytes are being sent / ... > then you can just process packets where Src or Dest IP is not on local ...
    (microsoft.public.win32.programmer.networks)
  • Re: Bandwidth Monitor
    ... > - Roulette ... >>> I want to write a bandwidth monitor that will tally up how much data ... >> You can then process the packets to count how many bytes are being sent / ... >> then you can just process packets where Src or Dest IP is not on local ...
    (microsoft.public.win32.programmer.networks)
  • RE: Detecting WAPs
    ... CTS packets.. ... Now...you could, theoritically, monitor the RTS and CTS packets. ... whether or not you have an AP on the network. ...
    (Security-Basics)
  • Re: Legality of WEP Cracking
    ... > I start Wireshark and capture all the packets I am seeing from the WAP. ... device that can monitor cell phone communications, ... This applies to all wifi transmissions, ...
    (Pen-Test)
  • Re: polling
    ... Correlate the netstat info with a simple ... monitor program to monitor UDP packets... ... To write the monitor program to monitor data link level packets (at ...
    (comp.os.linux.embedded)