From owner-freebsd-net@FreeBSD.ORG Thu Mar 16 22:51:59 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F25BC16A41F for ; Thu, 16 Mar 2006 22:51:59 +0000 (UTC) (envelope-from bart@it-ss.be) Received: from piggy.solidweb.be (piggy.web.bru.it-ss.be [195.28.164.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2784543D4C for ; Thu, 16 Mar 2006 22:51:58 +0000 (GMT) (envelope-from bart@it-ss.be) Received: from bartwrkstxp (97-3.241.81.adsl.skynet.be [81.241.3.97]) (authenticated bits=0) by piggy.solidweb.be (8.12.9-SW.b/8.12.9-SW) with ESMTP id k2GMphvF003497; Thu, 16 Mar 2006 23:51:43 +0100 Message-ID: <001601c6494c$32f188f0$020b000a@bartwrkstxp> From: "Bart Van Kerckhove" To: "Brad" , "freebsd-net@FreeBSD.org" References: <20060316193740.GE11850@spc.org><003701c64941$ac548540$020b000a@bartwrkstxp><20060316215207.GH11850@spc.org> <20060316222111.GD23644@blar.home.comstyle.com> Date: Thu, 16 Mar 2006 23:51:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Scanned-By: MIMEDefang 2.45 Cc: Subject: Re: OT - Quagga/CARP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 16 Mar 2006 22:52:00 -0000 Brad wrote: > On Thu, Mar 16, 2006 at 09:52:07PM +0000, Bruce M Simpson wrote: >> On Thu, Mar 16, 2006 at 10:36:20PM +0100, Bart Van Kerckhove wrote: >>> ECMP was indeed one of the features i was looking for at that time, >>> which i found to be impossible. >>> I just don't like the idea of moving towards another platform just >>> for this reason, since I'm very happy with freebsd's performance. >>> There used to be a patch for ECMP, but it was a huge hack. very >>> dirty at best. >> >> itojun recently committed a set of ECMP related changes to OpenBSD. >> Unfortunately I have not had free time to review them in any detail. >> >> I hope andre@ is watching this thread, it's probably on his laundry >> list too. I believe other parties may have implemented the hack you >> are referring to. > > Heh. At first I read this and wasn't sure what ECMP was, I've never > seen anyone use that acronym before. Hmm, sorry if I used a non-common term there, it's the only abbreviation i know of ;> > The code Itojun commited to the > OpenBSD tree consisted of code to add multipath support for radix > trees. The routing code still needs to be modified to use this new > support though. > > > radix tree with multipath support. from kame. deraadt ok > user visible changes: > - you can add multiple routes with same key (route add A B then route > add A C) > - you have to specify gateway address if there are multiple entries > on the table (route delete A B, instead of route delete A) > kernel change: > - radix_node_head has an extra entry > - rnh_deladdr takes extra argument I have looked into KAME before, and was puzzled to see it was in KAME, but not in *bsd :-> > > TODO: > - actually take advantage of multipath (rtalloc -> rtalloc_mpath) > > > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/radix.c > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/radix_mpath.c I have no kernel coding experience whatsoever. How hard would it be to merge this with freebsd? -Bart