From owner-freebsd-net@FreeBSD.ORG Fri Nov 14 10:49:11 2003 Return-Path: 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 00DDC16A4CE for ; Fri, 14 Nov 2003 10:49:11 -0800 (PST) Received: from blake.polstra.com (dsl081-189-066.sea1.dsl.speakeasy.net [64.81.189.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D69F043FBF for ; Fri, 14 Nov 2003 10:49:09 -0800 (PST) (envelope-from jdp@polstra.com) Received: from strings.polstra.com (dsl081-189-067.sea1.dsl.speakeasy.net [64.81.189.67]) by blake.polstra.com (8.12.9p2/8.12.9) with ESMTP id hAEIn48b049042; Fri, 14 Nov 2003 10:49:04 -0800 (PST) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <1068806299.210616.7785.nullmailer@cicuta.babolo.ru> Date: Fri, 14 Nov 2003 10:49:04 -0800 (PST) From: John Polstra To: "."@babolo.ru X-Bogosity: No, tests=bogofilter, spamicity=0.499987, version=0.14.5 cc: freebsd-net@freebsd.org Subject: RE: what about 5000 .. 10000 VLANs in one system? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 18:49:11 -0000 On 14-Nov-2003 "."@babolo.ru wrote: > > I remember that VLAN tag has 12 bits :-) > > I need in system with 5000 .. 10000 VLAN > interfaces on 2 .. 6 physical ethernets. Er, so what is your strategy for packing 5000-10000 different values into a 12-bit field? > Does anybody has such expienence? > Stability? Performance? I doubt it would perform very well. When a tagged packet comes into the system, the matching VLAN interface is found using a linear search. It will be pretty slow if there are a lot of VLANs. John