From owner-freebsd-net@FreeBSD.ORG Sun Mar 2 15:33:54 2008 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 72C0C1065670 for ; Sun, 2 Mar 2008 15:33:54 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id E05088FC20 for ; Sun, 2 Mar 2008 15:33:52 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:52230 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JVqCE-0005mC-5n for net@freebsd.org; Sun, 02 Mar 2008 16:33:51 +0100 Received: (qmail 14926 invoked from network); 2 Mar 2008 16:33:49 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 2 Mar 2008 16:33:49 +0100 Received: (qmail 7115 invoked by uid 1001); 2 Mar 2008 16:33:49 +0100 Date: Sun, 2 Mar 2008 16:33:49 +0100 From: Erik Trulsson To: Ingo Flaschberger Message-ID: <20080302153348.GA6587@owl.midgard.homeip.net> Mail-Followup-To: Ingo Flaschberger , Barney Cordoba , net@freebsd.org References: <497111.42659.qm@web63905.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JVqCE-0005mC-5n. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JVqCE-0005mC-5n ea13dc659781907d0a713628af21fb8d Cc: Barney Cordoba , net@freebsd.org Subject: Re: FBSD 1GBit router? 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: Sun, 02 Mar 2008 15:33:54 -0000 On Sun, Mar 02, 2008 at 04:11:28PM +0100, Ingo Flaschberger wrote: > Dear Bareney, > >>> And back to 1x is not fast enough: >>> There are no 1gbit single port network cards that >>> support more than 1 >>> lane, even if you plug it into a 16 lane slot. >>> (and I'm not talking about 10gbit cards; if you have >>> 10gbit upstream you >>> have enough $$ to buy good gear) >> >> Ok, well I've never seen a router with 1 port. I >> thought we were talking about building a router? > > Have you ever read the link? > Have you noticed that the axiomtek appliance has 7 gigabit ports? > Each one connected with 1 lane pci-e? > >> The lack of PCIe cards is a good reason to consider a >> PCIX machine. On the systems that we have, the 1x PCIe >> ports are a lot slower than a PCI-X card in the slot. > > Perhaps, but: pci-x: 4gbit for the whole bus system. PCI-X actually has up to twice that: 133 MHz * 64 bits = 8.512 Gbit/s ( = 1.066 GB/s ) That's assuming only a single PCI-X device on the bus. If you have two devices connected to the same PCI-X bus then most motherboards will lower the clock frequency to 100MHz for reliability reasons. If there are 3 or more devices connected to the same PCI-X bus then the clock frequency is usually lowered to 66 MHz. (Yes, the more devices you connect to a PCI-X bus, the less bandwidth you get to share among them.) > pci-e: 2gbit/lane In each direction. The total bandwidth available is 4Gbit/s per lane. (This is similar to Gigabit ethernet which can only send 1Gbit/s in each direction, but can send and receive at the same time, thus using a total bandwidth of up to 2Gbit/s.) > >> You need 4Gb/s of throughput to handle a gigablt >> router. (1 GB/s full duplex times 2). 1x is 4Gb/s >> maximum. In my view, you always need twice the >> bandwidth on the bus to avoid contention issues. > > sample1: > 3 pci-cards: > card 1: 1x = 2gbit (dedicated) > card 2: 1x = 2gbit (dedicated) > card 3: 1x = 2gbit (dedicated) > -------------------- > sum: 6gbit > (but the use only 3) > > sample2: > 2 pci-x cards > card 1: 4gbit (shared) > card 2: 4gbit (shared) > card 3: 4gbit (shared) > --------------------- > sum: 4gbit > > homework: > calculate with 7 ports. > > Kind regards, > Ingo Flaschberger > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Erik Trulsson ertr1013@student.uu.se