From owner-freebsd-questions Mon Apr 27 09:43:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA18919 for freebsd-questions-outgoing; Mon, 27 Apr 1998 09:43:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA18892 for ; Mon, 27 Apr 1998 09:43:37 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id LAA27623; Mon, 27 Apr 1998 11:43:34 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id LAA20730; Mon, 27 Apr 1998 11:43:02 -0500 Message-ID: <19980427114301.62886@right.PCS> Date: Mon, 27 Apr 1998 11:43:01 -0500 From: Jonathan Lemon To: dr@chaski.com Cc: questions@FreeBSD.ORG Subject: Re: Tracing TCP/IP application response time References: <354494EF.86F83E92@chaski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <354494EF.86F83E92@chaski.com>; from Dan Ratcliff on Apr 04, 1998 at 09:23:43AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Apr 04, 1998 at 09:23:43AM -0500, Dan Ratcliff wrote: > Hi, > > I want to trace the response time of a TCP/IP application. > My measurements must be of a resolution that is less > than a second--milliseconds would be nice. > > Is there any utility to do this? Can anyone recommend a > no-cost sniffer application? tcpdump. This utility will dump the network traffic for your application, and timestamp each packet to the accuracy of the kernel's clock. `man tcpdump' should get you started. You will also need to build a kernel with bpf support; eg: put the following lines in your kernel configuration: pseudo-device bpfilter 4 -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message