From owner-freebsd-net@freebsd.org Wed Nov 4 16:54:58 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8979A26CD4 for ; Wed, 4 Nov 2015 16:54:58 +0000 (UTC) (envelope-from elof2@sentor.se) Received: from smtp-out.sentor.se (smtp-out.sentor.se [176.124.225.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FA7E1069 for ; Wed, 4 Nov 2015 16:54:58 +0000 (UTC) (envelope-from elof2@sentor.se) Received: from localhost (localhost [127.0.0.1]) by farmermaggot.shire.sentor.se (Postfix) with ESMTP id C9C96B61D235 for ; Wed, 4 Nov 2015 17:44:56 +0100 (CET) Date: Wed, 4 Nov 2015 17:44:56 +0100 (CET) From: elof2@sentor.se To: freebsd-net Subject: netstat -B "Recv" Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 16:54:58 -0000 Hi! Question: What do the Recv column in 'netstat -B' show? I thought it was tha amount of packets received, but appaently not so. I send 2000000 packets from a tcpreplay machine to a receiving machine. I do it a few times. On the receiver I see: netstat -in Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll ix0 1500 0c:c4:7a:58:e2:3c 0 0 0 0 0 0 ix1 1500 0c:c4:7a:58:e2:3d 6000000 0 0 0 0 0 and then netstat -in Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll ix0 1500 0c:c4:7a:58:e2:3c 0 0 0 0 0 0 ix1 1500 0c:c4:7a:58:e2:3d 8000000 0 0 0 0 0 So 6000000 has increased to 8000000. Good. However, 'netstat -B' show: Pid Netif Flags Recv Drop Match Sblen Hblen Command 25553 mon0 p--s--- 1996862 0 2000000 0 0 tcpdump How can the "Recv" be *lower* than "Match"? 1996862 < 2000000. For every new run (fast and slow) I get the same results, slightly less than 2000000 Recv. What am I missing? /Elof