Re: Linux router performance

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexander Samad wrote:
> On Thu, Jun 01, 2006 at 04:03:29AM +0200, Carl-Daniel Hailfinger wrote:
>> Alexander Samad wrote:
>>> On Thu, Jun 01, 2006 at 02:44:57AM +0200, Carl-Daniel Hailfinger wrote:
>>>> Damjan wrote:
>>>>>>> I wonder about the performance of a Linux box used as router (I guest I'm
>>>>>>> not the first :). Althought I know it mainly depends on the hardware, I'm
>>>>>>> trying to find some references on the topic or comparations with other
>>>>>>> routing solutions (FreeBSD box used as router, Cisco, etc). For example,
>>>>>>> http://facweb.cti.depaul.edu/jyu/Publications/Yu-Linux-TSM2004.pdf
>>>>>>> (althought is related with Linux-briding more than with Linux-routing) shows
>>>>>>> in Figure 14 that with an AMD Duron 1.3GHz 512M RAM a throughput of 90 Mbps
>>>>>>> can be achieved.
>>>>>> On an AMD Athlon64 3200+ (2 GHz) I was able to saturate 2 PCI-Express
>>>>>> gigabit cards (but that was with 1500 byte packets). Never tried more
>>>>>> although the box has 6 interfaces capable of gigabit, 4 of them attached
>>>>>> via PCI-Express.
>>>>> But that's _only_ 83333 packets/s isn't it.
>>>> Hm. How do you arrive at that result? I get twice the numbers.
>>>> nic a: 1 gbit in -> nic b: 1 gbit out
>>>> nic b: 1 gbit in -> nic a: 1 gbit out
>>>> total 2 gbit
>>>> 2 gbit /(1500*8 bit/frame) ~ 160k packets/s
>>>>
>>>> Please note that I did not test with smaller frame sizes, so 1Mp/s
>>>> may be possible (I'll test that if I have some spare time).
>>> what if you test inbound and outbound at the same time - the cards
>>> should be capable of full duplex ?
>> I tested 1 gbit in and 1 gbit out per nic at the same time. That's
>> how I arrived at my results.
> sorry I might be being very dense on this, but 2 nics 1G in and out
> shouldn't that be
> 4gbit / (1500*8 bit/frame) ~ 320k packets/s

No, because you can count each packet passing through the router only
once. If the machine works as a router, each entering packet also has
to leave, so if the router has 2 interfaces A+B, you can have 1 Gbit
from A to B and 1 Gbit from B to A.

Your calculation would be correct if the machine is a server and
generates and consumes all traffic locally.

> My presumption is that the nic can send and recieve at the same time

Yes.

Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux