From owner-freebsd-net@freebsd.org Wed Nov 4 19:34:52 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 E8F01A20F44 for ; Wed, 4 Nov 2015 19:34:52 +0000 (UTC) (envelope-from csjp@sqrt.ca) Received: from mx01.sqrt.ca (i4hg.x.rootbsd.net [208.79.81.26]) by mx1.freebsd.org (Postfix) with ESMTP id 0BFB012CF for ; Wed, 4 Nov 2015 19:34:51 +0000 (UTC) (envelope-from csjp@sqrt.ca) Received: from [192.168.0.2] (unknown [24.114.96.106]) by mx01.sqrt.ca (Postfix) with ESMTPSA id D9830B828; Wed, 4 Nov 2015 14:28:10 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: netstat -B "Recv" From: Christian Peron In-Reply-To: Date: Wed, 4 Nov 2015 13:28:50 -0600 Cc: freebsd-net Content-Transfer-Encoding: quoted-printable Message-Id: <04EF5880-800D-4A52-8CD1-DAF87EB6E37A@sqrt.ca> References: To: elof2@sentor.se X-Mailer: Apple Mail (2.3094) 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 19:34:53 -0000 Your assumptions are correct, recv count is the number of packets which = are received by the bpf peer, match count is the number of packets which = matched the bpf filter that is active.. this shouldn=E2=80=99t be = happening. Are you running netstat during the tcpreplay run or after it = completed? Also can you give me more information on what specifically = mon0 is? > On Nov 4, 2015, at 10:44 AM, elof2@sentor.se wrote: >=20 >=20 > Hi! >=20 > Question: > What do the Recv column in 'netstat -B' show? >=20 > I thought it was tha amount of packets received, but appaently not so. >=20 > I send 2000000 packets from a tcpreplay machine to a receiving = machine. > I do it a few times. >=20 > 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 >=20 > 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 >=20 > So 6000000 has increased to 8000000. Good. >=20 >=20 > However, 'netstat -B' show: > Pid Netif Flags Recv Drop Match Sblen Hblen Command > 25553 mon0 p--s--- 1996862 0 2000000 0 0 tcpdump >=20 > How can the "Recv" be *lower* than "Match"? > 1996862 < 2000000. >=20 >=20 > For every new run (fast and slow) I get the same results, slightly = less than 2000000 Recv. >=20 > What am I missing? >=20 > /Elof > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"