From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matti Aarnio Subject: Re: Linux based router for Gigabit traffic Date: Sun, 22 Aug 2004 18:07:04 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20040822150704.GC19844@mea-ext.zmailer.org> References: <7a436d9b040822053245a3304d@mail.gmail.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <7a436d9b040822053245a3304d@mail.gmail.com> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Anantha Kiran Cc: linux-admin@vger.kernel.org, linux-net@vger.kernel.org On Sun, Aug 22, 2004 at 06:02:59PM +0530, Anantha Kiran wrote: > Hi > I am doing a project, in which i have to redirect traffic coming from > one ethernet card of a machine, to one of three remaining three > ethernet cards of same machine based on the src,dest IP and Port > values of the pkt. I wrote a net_hook module to do this which i > working fine for lower speeds like < 400 Mbps traffic. But project > goal is to deal with gigabit traffic. I have used gigabit ethernet > cards and Switch. But when the traffic rate is more than 400Mbps it is > dropping packets. I did test, by increasing the transmit queue > length. But same problem is coming. I have found during the pkt drop > there is no memory or CPU is hundred percently utilised. So, what can > be the resource that is lacking while dropping of pkts is happend. > > We have done a test, in which module will simply forward pkts from > "eth0" through "eth1". Same problem of pkt dropping at highier speed > is happening. The lspci output shows that you have a GE and a FE interfaces. Getting thru more than 100 Mbps should not be possible with that.. 01:01.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet Controller (rev 02) Subsystem: Intel Corp. PRO/1000 MT Desktop Adapter Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- Now we thought , it can be due to PCI bus. But we are unable to find > what is configuration of PCI bus , our system is using. we have used > "lspci" to find that. But i am unable to interpret it. I am attaching > that output file. Can anybody tell me how to interpret that or give > some guidelines , like whom to mail, to find that. > > Atlast we try to solve the problem in the following manner. Idea is > to, install a router for my machine which can deal with gigabit > traffic. If the router is able to work with gigabit traffic, then > definitely pkts dropping will not be due to PCI bus. A motherboard with two or more LOM GE interfaces MIGHT do it. Those are usually available only with 10/100/1000Base-T, not with optical (gbic) mode. Another approach is to have system with multiple PCI-X busses, and add PCI-X GE cards. For example: http://www.supermicro.com/products/motherboard/Xeon800/E7520/X6DH8-XG2.cfm > So, canbdoy please, suggest some opensource router for linux which > can deal with gigabit traffic. Or atleast some suggestions to solve > this problem. > -- > K.AnanthaKiran > D-108/HALL-7 /Matti Aarnio