Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 10:32:03 -0700
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        list@cykotix.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: Packet Loss on FW1 but not FW2 (CARP + PF on FBSD8)
Message-ID:  <20100517173203.GA1413@michelle.cdnetworks.com>
In-Reply-To: <20100514172725.1937468ajpjekhog@webmail.lahni.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 14, 2010 at 05:27:25PM -0400, list@cykotix.com wrote:
> Quoting Pyun YongHyeon <pyunyh@gmail.com>:
> >>>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 <Link#1>      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 <Link#1>      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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100517173203.GA1413>