Solved

Trace the network packets

Posted on 2003-11-05
4
353 Views
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?

Thanks.

Janu
0
Comment
Question by:janu_s
4 Comments
 
LVL 5

Accepted Solution

by:
mtmike earned 50 total points
ID: 9688896
There are no standard functions, but take a look at libpcap:
http://www.tcpdump.org/

And winpcap:
http://winpcap.polito.it/misc/links.htm
0
 

Expert Comment

by:linuxsub
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.
0
 
LVL 3

Expert Comment

by:cincin77
ID: 9722084
do you work on Linux or windows?
0
 

Author Comment

by:janu_s
ID: 9734504
I am using Winodws
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

820 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