From owner-freebsd-net@FreeBSD.ORG Tue Sep 14 09:50:11 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55C0E1065675; Tue, 14 Sep 2010 09:50:11 +0000 (UTC) (envelope-from "."@babolo.ru) Received: from smtp1.babolo.ru (smtp1.babolo.ru [195.9.14.139]) by mx1.freebsd.org (Postfix) with ESMTP id CFDF18FC0C; Tue, 14 Sep 2010 09:50:10 +0000 (UTC) Received: from cicuta.babolo.ru ([194.58.246.5]) by smtp1.babolo.ru (8.14.2/8.14.2) with SMTP id o8E9TYG3088640; Tue, 14 Sep 2010 13:29:34 +0400 (MSD) (envelope-from .@babolo.ru) Received: (nullmailer pid 35047 invoked by uid 136); Tue, 14 Sep 2010 09:27:32 -0000 Date: Tue, 14 Sep 2010 13:27:32 +0400 From: Aleksandr A Babaylov <.@babolo.ru> To: Dave Seddon Message-ID: <20100914092732.GA34995@babolo.ru> References: <1284107762.5923.306.camel@das8530.vic.bigpond.net.au> <532349FC-9269-4674-872F-FA84292E264C@mimectl> <1284130306.6282.6.camel@das8440.seddon.ca> <009101cb5308$514066d0$f3c13470$@com> <1284423495.5238.99.camel@das8530.vic.bigpond.net.au> <4C8EC845.2060306@elischer.org> <1284445899.5238.155.camel@das8530.vic.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1284445899.5238.155.camel@das8530.vic.bigpond.net.au> Cc: Andrew Hannam , Robert Watson , Julian Elischer , FreeBSD Net Subject: Re: FreeBSD route tables limited 16? 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: Tue, 14 Sep 2010 09:50:11 -0000 On Tue, Sep 14, 2010 at 04:31:39PM +1000, Dave Seddon wrote: > It sounds like dedicating some space for this in the mbuf would be the > best way forward, but the question is how much. I'm worried that most > freebsd users won't go for lots of route tables, which is why you went > for 4 bits originally. > > Within the network service provider space there is frequently a > requirement for lots of virtual-routing with MPLS. I imagine there are > others in my situation, including vendors and people working on > equipment like Cisco/Juniper/Lucatel. > > Regarding the size to dedicate, the best number might be 12 bits or > 4096. This would allow a route table per VLAN on a 802.1q interface. > (Actually I'm lying a little because the first and last vlan IDs aren't > usable :) ). > > Perhaps a separate option for non-common users who want many route > tables would be best. e.g. > > GIANT_ROUTETABLES=12 Why not 16? There can be several independent iface with VLAN on each. arg1 in ipfw has 16 bits for fib number. Yes, it is very special case when huge number of fib needed.