Click here to Skip to main content
11,928,786 members (55,072 online)
Click here to Skip to main content
Add your own
alternative version


47 bookmarked

Applications Traffic Watcher Lite

, 14 Jul 2006
Rate this:
Please Sign up or sign in to vote.
Applications Traffic Watcher is a small utility to get costs of the internet traffic consumed by different applications
Sample Image - apptraffmonlite.gif


Applications Traffic Watcher Lite (ATWL) is a small utility to get information about the costs of the downloaded internet traffic consumed by different applications. It uses the WinPcap library from here. Network traffic inside a LAN is calculated, but ignored when calculating costs. ATWL is very useful to understand how much traffic is consumed by Skype, Gizmo, etc.

Main Idea

The idea of the application is quite simple: 

  1. Application Traffic Watcher Lite constantly gets packets from WinPCap
  2. It tries to associate packets with process ID using packet's information about local address and port and also information about all active connections, using functions GetExtendedTcpTable or GetExtendedUdpTable.
  3. If the application couldn't associate packet with corresponding process ID, it adds this packet to "virtual" application named "Unknown_" and local port number. Unfortunately, sometimes it cannot associate packet with process (see "Troubles" section of the article).
  4. ATWL determines either packet belongs to local network or to external using lib IPNumber (


Program installs by setup.msi file. Just run it, sit back and relax. Wink | ;-)  The installation is required if WinPcap is already installed. Otherwise you must download WinPCap from and install it. After installation, you should maybe restart your computer to properly initialize the WinPcap drivers - otherwise the program may crash.


The user can tune the application using the options dialog.

Application Traffic Monitor Lite Options Dialog


As you can see in the application predecessor screenshot, there are a lot of processes with name "Unknown_". Unfortunately, I still couldn't find any way to determine which application sends/receives packets. Packets couldn't be identified when Internet Explorer/Firefox, etc. download some web pages. They create a lot of connections on different local ports with unknown PID (I couldn't associate the connection which I get from GetExtendedTcpTable and packet which I get from WinPCap). So, if you can help in resolving this problem - welcome.

Another big trouble - sometimes ATWL consumes a lot of CPU resources. After hard code refactoring and optimization, I minimize CPU consuming, but sometimes it is still too big.

CPU resources eat WinPCap library. Unfortunately there is only one way to solve this problem - use filters when using WinPCap library to reject packets from applications which are not interesting for monitoring. But it's not a suitable thing, I think.


Password to change options and exit - bizkit. User with role administrator can do everything without entering password.


  1. SharpPcap - A packet capture framework for .NET
  2. IP list, Check an IP number against a list in C#
  3. Getting active TCP/UDP connections on a box
  4. Getting active TCP/UDP connections using GetExtendedTcpTable function
  5. TrafficWatcher
  6. Applications Traffic Watcher


  • 14th July, 2006: Initial post


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Russian Federation Russian Federation
I am a CIO in Nizhny Novgorod, Russia.

You may also be interested in...

Comments and Discussions

GeneralCompilation errors Pin
chakkaradeepcc27-Sep-06 21:23
memberchakkaradeepcc27-Sep-06 21:23 
Generalplz help me Pin
vaibhav tiwari17-Jul-06 23:11
membervaibhav tiwari17-Jul-06 23:11 
GeneralNice App, really useful Pin
exDreamDuck17-Jul-06 20:08
memberexDreamDuck17-Jul-06 20:08 
GeneralRe: Nice App, really useful Pin
Warlib18-Jul-06 20:17
memberWarlib18-Jul-06 20:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.151126.1 | Last Updated 14 Jul 2006
Article Copyright 2006 by Warlib
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid