From owner-freebsd-net@FreeBSD.ORG Sat Jul 26 14:50:09 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 262D61065672 for ; Sat, 26 Jul 2008 14:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 168358FC08 for ; Sat, 26 Jul 2008 14:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6QEo3rr079320 for ; Sat, 26 Jul 2008 14:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6QEo32V079319; Sat, 26 Jul 2008 14:50:03 GMT (envelope-from gnats) Date: Sat, 26 Jul 2008 14:50:03 GMT Message-Id: <200807261450.m6QEo32V079319@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Stephan Eisvogel Cc: Subject: Re: kern/125816: [carp] [bridge] carp stuck in init when using bridge interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stephan Eisvogel List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2008 14:50:09 -0000 The following reply was made to PR kern/125816; it has been noted by GNATS. From: Stephan Eisvogel To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/125816: [carp] [bridge] carp stuck in init when using bridge interface Date: Sat, 26 Jul 2008 16:40:08 +0200 For the ADHS crowd: Using a bridge as carped device adds ~900ms to configured advertising interval. A chap from bsdforums has sent me a note that layer 2 failover is best done with spanning tree and not carp but as I explained I am not trying to cluster filtering bridges but cluster routers that happen to have a bridge sitting on top (in my case an Ethernet 10/100 vr(4) and an Atheros card ath(4) bridged to create a wireless access point). I am back to 7-STABLE and also now have carpdev patch by max in kernel which I just merged into fib changes of julian. Because if it's broken why not brake it some more while at it... Using another PC with wireshark as reference I measured the inter packet gap of the announcements when carping the bridge and a setting of advbase 1 advskew 0 delivers 1.950s intervals instead of 1.000s as expected. When I up the advbase value to 3 the master will announce every 3.950s so the effect appears to be an offset and not multiplicative. It also does not appear to matter how many devices are attached to the bridge. The moment I set the carped interface to a physical interface announcement interval will come down to the correct 3.010s interval. I measured ping delay to exclude the possibility of the Alix' hardware timer running at wrong speed but inter packet gap was very near 1s for a default ping. I'll be trying to nail the thinko or bug and submit a patch but because I never tweaked the carp or bridge code don't bet on it...