Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2002 11:34:01 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Don Bowman <don@sandvine.com>
Cc:        "'freebsd-stable@freebsd.org'" <freebsd-stable@freebsd.org>
Subject:   Re: tens of thousands of ip aliases
Message-ID:  <20020509113401.G56548@k7.mavetju.org>
In-Reply-To: <FE045D4D9F7AED4CBFF1B3B813C85337676165@mail.sandvine.com>; from don@sandvine.com on Wed, May 08, 2002 at 09:16:07PM -0400
References:  <FE045D4D9F7AED4CBFF1B3B813C85337676165@mail.sandvine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020509113401.G56548>