Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4133517pxy; Mon, 26 Apr 2021 19:36:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy63Lq9OKEnWUJMPFq1xSFdo/1+H8fX19D5enT97ui9JpFnH4zQv2eua+HUUN9J8XeI4kNi X-Received: by 2002:aa7:cfd0:: with SMTP id r16mr1779708edy.330.1619490992772; Mon, 26 Apr 2021 19:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619490992; cv=none; d=google.com; s=arc-20160816; b=JHKsdpVF9rlb7yKDwT2WDr9mUCVwmEnjdXEsOq31X95ozwAH7282z9X69e4lDHV5qS xYwL+NU2U3yrtDviwDmFqdCvc5n7MSL2uNagM4crlDOwDbGLceqZJ47uPZxZVMyCLWfI J7KIA2umeT+QWA0CdutMeyzDEsRRzNfg2epyX7itLDT82TV5D4QQ2ucl4zVbb+7KGBbD 3oFCqA2iCK/4rfZU8IhHiw+uR0gh0f6uGe82tFSd+Noi+zBNfU8V/0Y1Fc63uW4W/+v8 Dm6NS4HqD9/VMxm9rlW1k4Cf02f2V86pCMT38lUfP06QXi2MZLPJZp7tJo9PBFj4VpEh 81VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=vBVTQ1sbBsQfPYqIXqCK4Jv/CFy4Gq4uQLWVxvxQRJU=; b=IzyaNiVAB0gurDKLjLs5ET8IUNSIzG6rmq+OzlfTomgihTNjAjOpUado+KDVuQTpTm 0PtJ++6D77YFszeFDb5jS/Gon/GmvPifrbfru58zCJM4Jq3Ul3pC2x3p80O6/Qi02Fx0 ny8A2BvW7HEdyOQX+RpyDtZ1SWRTV8FFt0rblKBBKqUkzk4HR8XAXXK2Xn1OnmWS0oMz jSxkpix8Byxk9312exiPpwJbZgOOSjchRQ86EMpqvoFgtP7gkBLR9UgqYQe+T4N8D36V AnGZbdtDPSjlmOoeRFwBqscGlH9fwRqC7tSshwrnDDjJoJP7k3N4zkyQtPrVxBpx9BNy /jkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm2 header.b=VIuBHyCv; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZW0TAQ91; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si14826361ejk.321.2021.04.26.19.36.09; Mon, 26 Apr 2021 19:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hmh.eng.br header.s=fm2 header.b=VIuBHyCv; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZW0TAQ91; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233979AbhD0CgB (ORCPT + 99 others); Mon, 26 Apr 2021 22:36:01 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60037 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbhD0CgA (ORCPT ); Mon, 26 Apr 2021 22:36:00 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EAAC85C01A4; Mon, 26 Apr 2021 22:35:17 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute4.internal (MEProxy); Mon, 26 Apr 2021 22:35:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmh.eng.br; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=vBVTQ1sbBsQfPYqIXqCK4Jv/CFy4Gq4 uQLWVxvxQRJU=; b=VIuBHyCvI32XasUXpVQ+THVqFZg6Z12Z5UAbWKR/SVWGtWI YmW3qVMEuIiwK3g7+ApWYMsrbyPWw2/G7Cnb4d9zfevz92aef025s2LIVXHkjcc+ sbJPrgYryt4lVOzbD6fc2SC5Rm49Sfe1RpKuB6BUc5hNFlGdVRi8Eg4RSN/lOFwT AtXGEUZnuNMxMF7eUopmQngveZ5XHQm/PxJZ3z30dW5slm5Qu1cqa+X3oQx5bU3d kVCvzCN4HLhXyO36ewzuijVab7XG2ny2RqGCfr7Z8YFalH3aqwutv2BUsLSNsSGv QaFF3iomaZL9irfgIAkZWSqQS1BA6Dzfre8kZrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vBVTQ1 sbBsQfPYqIXqCK4Jv/CFy4Gq4uQLWVxvxQRJU=; b=ZW0TAQ915dsNWarhUYBMg4 OBL3oERjAy5Zu+MOdhPWWkRWCwpBuD7Rqligp1piFzc7xbGfa+95Tif3/2nIG23V DjYG7jHJSWaWbc473CRDDiIJ+j1rRlOL1KSpV2A1FdheLhVlt+OkufX9/8XzhJPv YzDhCvgeRx5ZrGogkbL7RBJt5E9oyRmMWZwsBMJjLokp5brFNlnXSY4bTv0Cloj8 OFuU70nT3ja14f4Wj+Eocpae0EN31IUpEpQdHs6Jn8gV5BCC6p64a5HZh7s1GO6q Xtr2RBXlrT1ZceZNlzpJ61dPRVT4MTXrm9hnEEytDy9oFSLVXRmUTIDZkTBxJurA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdduledgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfjvghn rhhiqhhuvgcuuggvucfoohhrrggvshcujfholhhstghhuhhhfdcuoehhmhhhsehhmhhhrd gvnhhgrdgsrheqnecuggftrfgrthhtvghrnhepuddvgfeikefgieehkeevveduhfevteeu heevtdduueduffekuddtffelkefftddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhephhhmhheshhhmhhdrvghnghdrsghr X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 75CCE51C005F; Mon, 26 Apr 2021 22:35:17 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-Id: <52f1b7a1-ff3b-41d3-a84b-badcda8a6ad6@www.fastmail.com> In-Reply-To: <8e0aa5a6-0457-ccd0-8984-9c9aaeab2228@gmail.com> References: <8e0aa5a6-0457-ccd0-8984-9c9aaeab2228@gmail.com> Date: Mon, 26 Apr 2021 23:34:55 -0300 From: "Henrique de Moraes Holschuh" To: "Eric Dumazet" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: Unexpected timestamps in tcpdump with veth + tc qdisc netem delay Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021, at 14:07, Eric Dumazet wrote: > On 4/26/21 4:35 PM, Henrique de Moraes Holschuh wrote: [...] > > [root netns]: tcpdump -i vec0 -s0 -n -p net 192.168.233.0/30 > > listening on vec0, link-type EN10MB (Ethernet), capture size 262144 bytes > > 17:09:09.740681 IP 192.168.233.1 > 192.168.233.2: ICMP echo request, id 9327, seq 1, length 64 > > Here you see the packet _after_ the 250ms delay > > 17:09:09.990891 IP 192.168.233.2 > 192.168.233.1: ICMP echo reply, id 9327, seq 1, length 64 > Same here. [...] > > Adding more namespaces and VETH pairs + routing "in a row" so that the packet "exits" one veth tunnel and enters another one (after trivial routing) doesn't fix the tcpdump timestamps in the capture at the other end of the veth-veth->routing->veth-veth->routing->... chain. > > > > It looks like some sort of bug to me, but maybe I am missing something, in which case I would greatly appreciate an explanation of where I went wrong... > > That is only because you expect to see something, but you forgot that tcpdump captures TX packet _after_ netem. That was it! Thank you very much for the quick reply, and direct, precise explanation. I had completely forgotten about the qdisc running before interface timestamping, and I overlooked the fact that I did not try three netns in-a-chain with the qdiscs *in the middle netns*: I tried them in the two opposite edge netns, only. Again, thank you! -- Henrique Holschuh