From owner-freebsd-isp Mon Aug 9 9: 0:23 1999 Delivered-To: freebsd-isp@freebsd.org Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (Postfix) with ESMTP id BE59E152B5 for ; Mon, 9 Aug 1999 09:00:11 -0700 (PDT) (envelope-from thierry.herbelot@alcatel.fr) Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id QAA04098; Mon, 9 Aug 1999 16:53:21 +0200 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id RAA02210; Mon, 9 Aug 1999 17:50:26 +0200 (MET DST) Received: from telss1 (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.1a/8.9.1) with ESMTP id RAA09183; Mon, 9 Aug 1999 17:44:16 +0200 (MEST) Received: from alcatel.fr by telss1 (8.8.8+Sun/SMI-SVR4) id RAA03518; Mon, 9 Aug 1999 17:53:36 +0200 (MET DST) Message-ID: <37AEF9B3.87259EFC@alcatel.fr> Date: Mon, 09 Aug 1999 17:54:27 +0200 From: Thierry Herbelot Reply-To: thierry.herbelot@alcatel.fr Organization: ALCATEL CIT Nanterre X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Chris Dillon Cc: InterACT Info , freebsd-isp@FreeBSD.ORG Subject: maximum UDP output (was Re: Multi networkcards) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Talking about saturating interfaces, I've got here a little program spitting UDP packets as fast at it can, in a burst. The program is just a loop : while (1) usleep(delay) // to adjust the rate for i = 1 to n send(socket, packet) I've set up the socket as "connected" to speed up the kernel processing (it is even bound to a local address). I am still wondering why I can't use a burst of 6 packets or more unless the emitted rate drops to one fifth of the one attained with a 5-packet burst. I've had a look at the usual suspects (ip_output, udp_output, ...), but I've not seen the light (I've increased UDP send space, but everything remains the same). Anyway, I've got a box processing around 10K packets per second with a 40% load (PIII-450) TfH Chris Dillon wrote: > > On Mon, 9 Aug 1999, InterACT Info wrote: > > > Have anyone successfully tryed a gateway/firewall > > with more than ten or six interfaces? > > More than six, yes. I've been using a Compaq Proliant 3000 (PIII-500, > 256MB) with six Intel EtherExpress PRO 10/100B's (82558) and one Dual > EtherExpress PRO 10/100B (dual 82558 + PCI bridge) for a total of 8 > interfaces. FreeBSD 3.1-RELEASE didn't want to see all of the PCI > busses in this particular server, but 3.2 saw everything just fine, > and works without a hitch. I could easily put 10 interfaces in this > thing since it has a couple of free PCI slots, and I wouldn't forsee a > problem doing so. > > The performance is quite good, by the way. I've managed to saturate 4 > of the interfaces at 100Mbit FD and the server didn't break a sweat. > This was with 36 ipfw rules, with most of the traffic passing through > 14 rules on its way in and out (exactly 28 rules for a packet to pass > through the box from one of my private networks to another). > Granted, this was a bunch of SMB traffic passing between multiple NT > (blech) boxes, so the packets on average were fairly large. > > Maybe in a few months, time allowing, I'll set up some workstations on > each of the networks to pump as much data as they can through all 8 > interfaces, packets both big and small, and see how it performs. > > -- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net > FreeBSD: The fastest and most stable server OS on the planet. > For Intel x86 and Alpha architectures (SPARC under development). > ( http://www.freebsd.org ) > > "One should admire Windows users. It takes a great deal of > courage to trust Windows with your data." > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message