From owner-freebsd-net@FreeBSD.ORG Mon May 17 17:33:18 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0171106566C for ; Mon, 17 May 2010 17:33:17 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id AC9A28FC16 for ; Mon, 17 May 2010 17:33:17 +0000 (UTC) Received: by pxi7 with SMTP id 7so1364500pxi.13 for ; Mon, 17 May 2010 10:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=/W9i/oPnZYla6nTn55Ik9ey/Yg3nUSpa4tHE/eToLu8=; b=BkN9AOi5VeMQs8P+Ed8sFNUqA4a+r9/nHDS0LVmtfT1Vmx7zJjzkir12b9G4tDtYwU oQPTvaHP+vgzG2hGBblJSB+Mdu4hwLnIC4SVzCxSAaabdZL2yCSI8H6FNRyL4KTOwOU3 yqGjwcWKhuMluhfmoLTD3MkXxrjucg7J/t9ec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=hXxA5ewl2LY/YSK11vftbqNKDb9KcVv50NaYIyHsm5xRVS9khcyzqwvo6Ep559BO8m fcE+zuxnGj9pvkiUTmGvDitONGADbk5zzwz15Wlq+bQG7L/blqL2jyhquhyyj+SdoBwG AcA+8YW02C2mo6Y4kqvD/9DkOuGWuhMbtr2rI= Received: by 10.140.88.33 with SMTP id l33mr3935688rvb.4.1274117595531; Mon, 17 May 2010 10:33:15 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id b12sm4372774rvn.22.2010.05.17.10.33.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 17 May 2010 10:33:13 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 17 May 2010 10:32:03 -0700 From: Pyun YongHyeon Date: Mon, 17 May 2010 10:32:03 -0700 To: list@cykotix.com Message-ID: <20100517173203.GA1413@michelle.cdnetworks.com> References: <20100514145612.14566x4tj40yhyos@webmail.lahni.com> <20100514192239.GC24686@michelle.cdnetworks.com> <20100514155638.21116k5xymc7cb8c@webmail.lahni.com> <20100514210342.GD24686@michelle.cdnetworks.com> <20100514172725.1937468ajpjekhog@webmail.lahni.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100514172725.1937468ajpjekhog@webmail.lahni.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Packet Loss on FW1 but not FW2 (CARP + PF on FBSD8) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 17:33:18 -0000 On Fri, May 14, 2010 at 05:27:25PM -0400, list@cykotix.com wrote: > Quoting Pyun YongHyeon : > >>>Show me the output of "sysctl dev.vr.0.stats=1" and "netstat -ndI vr0". > >> > >>soekris1# sysctl dev.vr.0.stats=1 > >>dev.vr.0.stats: -1 -> -1 > >> > > > >Please check the output of console. It would have printed some MAC > >counters maintained in driver. > > >>soekris1# netstat -ndI vr0 > >>Name Mtu Network Address Ipkts Ierrs Opkts > >>Oerrs Coll Drop > >>vr0 1500 00:00:24:cc:cb:94 17491 0 14993 > >> 0 0 0 > >>vr0 1500 98.xxx.xxx.56 98.xxx.xxx.59 992 - 9374 > >> - - - > >> > > FW1: > vr0 statistics: > Outbound good frames : 14992 > Inbound good frames : 17486 > Outbound errors : 0 > Inbound errors : 0 > Inbound no buffers : 0 > Inbound no mbuf clusters: 0 > Inbound FIFO overflows : 0 > Inbound CRC errors : 0 > Inbound frame alignment errors : 0 > Inbound giant frames : 0 > Inbound runt frames : 0 > Outbound aborted with excessive collisions : 0 > Outbound collisions : 0 > Outbound late collisions : 0 > Outbound underrun : 0 > PCI bus errors : 0 > driver restarted due to Rx/Tx shutdown failure : 0 > I thought it could be a bug in vr(4) but it seems vr(4) had zero dropped packets. Let pf(4) log dropped packet with pflog(4) and see why pf(4) dropped packets. > > >No Ierrs, so MAC counters would be more helpful here. > > >>soekris2# sysctl dev.vr.0.stats=1 > >>dev.vr.0.stats: -1 -> -1 > >> > >>soekris2# netstat -ndI vr0 > >>Name Mtu Network Address Ipkts Ierrs Opkts > >>Oerrs Coll Drop > >>vr0 1500 00:00:24:ca:40:60 575909 0 588703 > >> 0 0 0 > >>vr0 1500 98.xxx.xxx.56 98.xxx.xxx.60 10029 - 53106 > >> - - - > > FW2: > vr0 statistics: > Outbound good frames : 588054 > Inbound good frames : 575353 > Outbound errors : 0 > Inbound errors : 0 > Inbound no buffers : 0 > Inbound no mbuf clusters: 0 > Inbound FIFO overflows : 0 > Inbound CRC errors : 0 > Inbound frame alignment errors : 0 > Inbound giant frames : 0 > Inbound runt frames : 0 > Outbound aborted with excessive collisions : 0 > Outbound collisions : 0 > Outbound late collisions : 0 > Outbound underrun : 0 > PCI bus errors : 0 > driver restarted due to Rx/Tx shutdown failure : 0 > > Patrick