From owner-freebsd-net@freebsd.org Thu Sep 22 02:58:59 2016 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 23D8BBE4D78 for ; Thu, 22 Sep 2016 02:58:59 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 08DB8FEE; Thu, 22 Sep 2016 02:58:58 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id u8M2wv2v016144 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 21 Sep 2016 19:58:57 -0700 (PDT) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id u8M2wuTK016143; Wed, 21 Sep 2016 19:58:56 -0700 (PDT) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 21 Sep 2016 19:58:56 -0700 From: Gleb Smirnoff To: Ryan Stone Cc: Kubilay Kocak , freebsd-net , Karl Pielorz , Steven Hartland Subject: Re: lagg Interfaces - don't do Gratuitous ARP? Message-ID: <20160922025856.GH1018@cell.glebi.us> References: <0D84203FAAFD0A8E7BBB24A3@10.12.30.106> <6E574F1B61786E6032824A88@10.12.30.106> <2c62f5f0-3fb4-f513-2a8f-02de3a1d552f@FreeBSD.org> <20160921235703.GG1018@cell.glebi.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 02:58:59 -0000 On Wed, Sep 21, 2016 at 09:12:11PM -0400, Ryan Stone wrote: R> > IMHO, the original patch was absolutely evil hack touching multiple R> > layers, for the sake of a very special problem. R> > R> > I think, that in order to kick forwarding table on switches, lagg R> > should: R> > R> > - allocate an mbuf itself R> > - set its source hardware address to its own R> > - set destination hardware to broadcast R> > - put some payload in there, to make packet of valid size. Why should it be R> > gratuitous ARP? A machine can be running IPv6 only, or may even use R> > whatever R> > higher level protocol, e.g. PPPoE. We shouldn't involve IP into this R> > Layer 2 R> > problem at all. R> > - Finally, send the prepared mbuf down the lagg member(s). R> > R> > And please don't hack half of the network stack to achieve that :) R> R> The original report in this thread is about a system where it takes almost R> 15 minutes for the network to start working again after a failover. That R> does not sound to me like a switch problem. That sounds to me like the ARP R> cache on the remote system. To fix such a case we have to touch L3. Does lagg(4) hardware address change when it failovers? -- Totus tuus, Glebius.