LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-15-2007, 08:01 PM   #1
anirvana
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
Measuring TCP Stack execution time


Hello everyone ,
I'm a novice linux guy and would really appreciate any help on a problem I'm facing. I searched the list for something similar to the issue I'll mention, but could'nt find an exact remedy.

The Problem: I need to measure how much delay does the TCP stack induce in a networking application.

In more detail: consider that I have a small C program using sockets to connect to a remote machine. Now I need to measure how much time does it take for the application packets to pass through the TCP stack and to the card. This will allow me to decompose performance delay into, application delay, stack delay and on-the-wire delay.

I think one possible solution could be compiling the entire network module with gprof and then running the kernel with this stack. Using gmon.out I could perhaps get stats regarding what functions in the stack are taking how much 'relative' time .. but doing this would slow down the actual stack, because of inserted profiling statements.

Can someone please point me to a more simple solution/project that addresses this issue? As I already mentioned, I'm no linux guru, so please excuse any technical detail I may have mucked up in this post.

Thanks,
-A
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP cannections in TCP stack hegdeshashi Linux - Networking 1 01-04-2006 07:24 PM
measuring time in linux (in C) Four Programming 4 12-30-2005 09:21 PM
getting new tcp/ip stack on linux cdp Linux - Networking 7 06-29-2005 12:50 PM
TCP/IP Stack on Linux? Rossak Linux - Networking 2 07-27-2003 06:20 PM
measuring time Hano Programming 2 04-21-2002 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration