From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out1.informatik.tu-muenchen.de (mail-out1.informatik.tu-muenchen.de [131.159.0.8]) by dpdk.org (Postfix) with ESMTP id 56AE32B94 for ; Mon, 17 Oct 2016 00:55:53 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.net.in.tum.de (Postfix) with ESMTPSA id 6F495282F005; Mon, 17 Oct 2016 00:55:52 +0200 (CEST) To: Ajinkya D Kadam , users@dpdk.org References: From: Paul Emmerich Message-ID: <30743c45-8247-ebf6-45ae-55d95e9bdfce@net.in.tum.de> Date: Mon, 17 Oct 2016 00:55:51 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] TimeStamping Packets Generated and Received via Pktgen Application X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2016 22:55:53 -0000 Hi, Ajinkya D Kadam: > If yes I would like to modify the pktgen code so that each transmitting and > received packet is timestamped. Right now I am exploring the example > applications like rxtx_callbacks which timestamps packets in DPDK, Is this > the right direction to go ? Check out my packet generator MoonGen https://github.com/emmericp/MoonGen It uses the hardware timestamping features (PTP) to do latency measurements in the nanosecond-range. However, if you will run into hardware limitations if you want to timestamp *all* packets. This is sometimes supported on RX (e.g., i310, X550) but I don't know a NIC that supports this on TX. As for the precision that is achievable: ~10ns (depending on the NIC) with hardware support. Software timestamping will typically result in a standard deviation of 200-300ns under load and there will be huge outliers. Paul