Trace the network packets

Posted on 2003-11-05
Last Modified: 2010-04-15
I am trying to write a program which would trace the statistics of the bandwidth  usage , the no. of packets lost , the no. of packets sent and recieved over the network from one IP to another IP , when I am conducting Videoconferencing using NetMeeting .

Are there any C builtin functions for this?


Question by:janu_s

Accepted Solution

mtmike earned 50 total points
ID: 9688896
There are no standard functions, but take a look at libpcap:

And winpcap:

Expert Comment

ID: 9689123
Also remember, any packet capturing on host might severely affect performance for high bandwidth applications based on CPU-Power to Bandwidth needed ratio.

The idea scenario will be to use a tap in the middle of the hosts to snoop on packets at physical level.

Other option is to use a switch in between and using the switch statistics to calculate the bandwidth. All mediam to high end switches will have some kind of SNMP/RMON interface to get info like packets transferred.

Expert Comment

ID: 9722084
do you work on Linux or windows?

Author Comment

ID: 9734504
I am using Winodws

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
In desperate need of help 8 129
jquery/ajax to code behind 7 158
Test against App 49 129
C Language combined operators 28 102
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now