From owner-freebsd-stable Wed May 8 18:34:45 2002 Delivered-To: freebsd-stable@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 1733737B496 for ; Wed, 8 May 2002 18:33:56 -0700 (PDT) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 0F9A22B6AE; Thu, 9 May 2002 03:33:53 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id 7915A5A0; Thu, 9 May 2002 11:34:01 +1000 (EST) Date: Thu, 9 May 2002 11:34:01 +1000 From: Edwin Groothuis To: Don Bowman Cc: "'freebsd-stable@freebsd.org'" Subject: Re: tens of thousands of ip aliases Message-ID: <20020509113401.G56548@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Don Bowman , "'freebsd-stable@freebsd.org'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from don@sandvine.com on Wed, May 08, 2002 at 09:16:07PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 08, 2002 at 09:16:07PM -0400, Don Bowman wrote: > I'm working on an application where I am using a pair > of FreeBSD 4.5 boxes to simulate a much larger network, > with a device under test between them. > > I need to simulate 10K's of IP addresses (actually, I would > like to do 100K's and higher, but am willing to use more > than one PC to get there). > > On the 'server' side, this seems to be possible using > an ipfw fwd rule with no other special setup. > > On the 'client' side, there seems to be nothing as simple as > this. As a test, I created ~36K if aliases (using ifconfig alias). > I found this got slower and slower as I went along. THe first > ~8K or so went reasonly quickly, but I was able to go to > dinner and come back and it was still chewing on the remainder. Personally, I wouldn't do this with aliases (specially not with the amount you needed) but with simulating the network traffic via libpcap and libnet. Yes you would have to write your own IP stack to keep track of and to act on the packets, but you will not have the limitations of the operating system. And it will even be portable :-) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: bash$ :(){ :|:&};: | http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message