All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Linux router performance
@ 2006-05-31 18:01 Fermín Galán Márquez
  2006-05-31 20:27 ` Andreas John
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Fermín Galán Márquez @ 2006-05-31 18:01 UTC (permalink / raw)
  To: lartc

Hi,

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.

Anybody knows any other similar analysis, please?

Best regards,

--------------------
Fermín Galán Márquez
CTTC - Centre Tecnològic de Telecomunicacions de Catalunya
Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860
Castelldefels, Spain
Room 1.02
Tel : +34 93 645 29 12 
Fax : +34 93 645 29 01
Email address: fermin.galan@cttc.es 

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
@ 2006-05-31 20:27 ` Andreas John
  2006-05-31 23:24 ` Carl-Daniel Hailfinger
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Andreas John @ 2006-05-31 20:27 UTC (permalink / raw)
  To: lartc

Hi,

Maybe:
Khan, Sohel; Waheed, Abdul (2003): High Performance Routing on
PCshttp://www.ccse.kfupm.edu.sa/~sohel/networking/references/Routing.pdf

A rule of thumb:
- with current COTS hardware and (standard) PCI Bus, you can reach the
maximum of the PCI bus bandwidth. That's 1 GB/s, e.h. two NICs with  500
Meg/s each ( one in and one out )
- with PCI-X and in the future PCI-express you'll for sure be able to
reach more performance. I didnt find a sponsor for a test-lab yet :)
- in DoS secnarios it may get worse :/ I heavily depends on driver type
(polling and NAPI preferred). The problem with the performace is
_always_ the number of interrupts, nothing else is a bottleneck (well,
we didn't talk about thousands of iptables rules yet, but you ask for a
'maximum').
- The question you have to ask in high-performance scenarios is not
"MBit/s" but MPPS (megapackets per seconds). FreeBSD and Linux broke the
1 MPPS barrier some time ago (on dual xeons).

rgds,
Andreas

Fermín Galán Márquez wrote:
> Hi,
> 
> 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.
> 
> Anybody knows any other similar analysis, please?
> 
> Best regards,
> 
> --------------------
> Fermín Galán Márquez
> CTTC - Centre Tecnològic de Telecomunicacions de Catalunya
> Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860
> Castelldefels, Spain
> Room 1.02
> Tel : +34 93 645 29 12 
> Fax : +34 93 645 29 01
> Email address: fermin.galan@cttc.es 
> 
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
> 

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
  2006-05-31 20:27 ` Andreas John
@ 2006-05-31 23:24 ` Carl-Daniel Hailfinger
  2006-06-01  0:34 ` Damjan
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-05-31 23:24 UTC (permalink / raw)
  To: lartc

Fermín Galán Márquez wrote:
> Hi,
> 
> 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.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
  2006-05-31 20:27 ` Andreas John
  2006-05-31 23:24 ` Carl-Daniel Hailfinger
@ 2006-06-01  0:34 ` Damjan
  2006-06-01  0:44 ` Carl-Daniel Hailfinger
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Damjan @ 2006-06-01  0:34 UTC (permalink / raw)
  To: lartc

> > 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.


-- 
damjan | дамјан
This is my jabber ID -->         damjan@bagra.net.mk 
 -- not my mail address, it's a Jabber ID --^ :)
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (2 preceding siblings ...)
  2006-06-01  0:34 ` Damjan
@ 2006-06-01  0:44 ` Carl-Daniel Hailfinger
  2006-06-01  1:59 ` Alexander Samad
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-06-01  0:44 UTC (permalink / raw)
  To: lartc

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).


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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (3 preceding siblings ...)
  2006-06-01  0:44 ` Carl-Daniel Hailfinger
@ 2006-06-01  1:59 ` Alexander Samad
  2006-06-01  2:03 ` Carl-Daniel Hailfinger
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Alexander Samad @ 2006-06-01  1:59 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 1673 bytes --]

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 ?
> 
> 
> Regards,
> Carl-Daniel
> -- 
> http://www.hailfinger.org/
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
> 

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (4 preceding siblings ...)
  2006-06-01  1:59 ` Alexander Samad
@ 2006-06-01  2:03 ` Carl-Daniel Hailfinger
  2006-06-01  2:21 ` Alexander Samad
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-06-01  2:03 UTC (permalink / raw)
  To: lartc

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.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (5 preceding siblings ...)
  2006-06-01  2:03 ` Carl-Daniel Hailfinger
@ 2006-06-01  2:21 ` Alexander Samad
  2006-06-01  4:52 ` Carl-Daniel Hailfinger
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Alexander Samad @ 2006-06-01  2:21 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 2139 bytes --]

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

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

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (6 preceding siblings ...)
  2006-06-01  2:21 ` Alexander Samad
@ 2006-06-01  4:52 ` Carl-Daniel Hailfinger
  2006-06-01  8:46 ` Andrew Lyon
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-06-01  4:52 UTC (permalink / raw)
  To: lartc

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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (7 preceding siblings ...)
  2006-06-01  4:52 ` Carl-Daniel Hailfinger
@ 2006-06-01  8:46 ` Andrew Lyon
  2006-06-01 11:23 ` Ronny Aasen
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Andrew Lyon @ 2006-06-01  8:46 UTC (permalink / raw)
  To: lartc

x>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.

What NIC's are you using? Are they multiport or do you have several
pci-express single port cards?

Andy
Registered Office: J.O. Sims Ltd, Pudding Lane, Pinchbeck, Spalding, Lincs. PE11 3TJ
Company reg No: 2084187 Vat reg No: GB 437 4621 47
Tel: +44 (0) 1775 842100 Fax: +44 (0) 1775 842101 Web: www.josims.com
Email:enquiries@josims.com
The information contained in this e-mail is confidential and is intended for the addressee only. The contents of this e-mail must not be disclosed or copied without the sender's consent. If you are not the intended recipient of the message, please notify the sender immediately, and delete the message. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company. No commitment may be inferred from the contents unless explicitly stated. The company does not take any responsibility for the personal views of the author. This message has been scanned for viruses before sending, but the company does not accept any responsibility for infection and recommends that you scan any attachments.JOSEDV001TAG
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (8 preceding siblings ...)
  2006-06-01  8:46 ` Andrew Lyon
@ 2006-06-01 11:23 ` Ronny Aasen
  2006-06-01 11:46 ` Carl-Daniel Hailfinger
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Ronny Aasen @ 2006-06-01 11:23 UTC (permalink / raw)
  To: lartc

On Wed, 2006-05-31 at 22:27 +0200, Andreas John wrote:
> Hi,
> 
> Maybe:
> Khan, Sohel; Waheed, Abdul (2003): High Performance Routing on
> PCshttp://www.ccse.kfupm.edu.sa/~sohel/networking/references/Routing.pdf
> 
> A rule of thumb:
> - with current COTS hardware and (standard) PCI Bus, you can reach the
> maximum of the PCI bus bandwidth. That's 1 GB/s, e.h. two NICs with  500
> Meg/s each ( one in and one out )
> - with PCI-X and in the future PCI-express you'll for sure be able to
> reach more performance. I didnt find a sponsor for a test-lab yet :)
> - in DoS secnarios it may get worse :/ I heavily depends on driver type
> (polling and NAPI preferred). 

ofcouse prefered. 
Does it exsist a list of driver/nic combos that are know to support NAPI
on linux on stock kernels ?

-- 
Ronny Aasen <list@datapart-as.no>

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (9 preceding siblings ...)
  2006-06-01 11:23 ` Ronny Aasen
@ 2006-06-01 11:46 ` Carl-Daniel Hailfinger
  2006-06-01 20:33 ` Jesper Dangaard Brouer
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Carl-Daniel Hailfinger @ 2006-06-01 11:46 UTC (permalink / raw)
  To: lartc

Andrew Lyon wrote:
> >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.
> 
> What NIC's are you using? Are they multiport or do you have several
> pci-express single port cards?

Single-Port SK-9E21D with sky2 driver version 0.13a.
I'm going to retry with SK-9E82 dual port cards soon.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (10 preceding siblings ...)
  2006-06-01 11:46 ` Carl-Daniel Hailfinger
@ 2006-06-01 20:33 ` Jesper Dangaard Brouer
  2006-06-10  6:45 ` S Mohan
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Jesper Dangaard Brouer @ 2006-06-01 20:33 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2686 bytes --]


Hi

I'm sure that Robert can provide us with some interesting numbers.

I have just tested routing performance on a AMD opteron 270 (dual core), 
here I can route 400 kpps (tg3 netcards on PCI-X).  I use the kernel 
module "pktgen" to generate the packets (64 bytes in size).

Cheers,
   Jesper Brouer

--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------


On Wed, 31 May 2006, Andreas John wrote:

> Hi,
>
> Maybe:
> Khan, Sohel; Waheed, Abdul (2003): High Performance Routing on
> PCshttp://www.ccse.kfupm.edu.sa/~sohel/networking/references/Routing.pdf
>
> A rule of thumb:
> - with current COTS hardware and (standard) PCI Bus, you can reach the
> maximum of the PCI bus bandwidth. That's 1 GB/s, e.h. two NICs with  500
> Meg/s each ( one in and one out )
> - with PCI-X and in the future PCI-express you'll for sure be able to
> reach more performance. I didnt find a sponsor for a test-lab yet :)
> - in DoS secnarios it may get worse :/ I heavily depends on driver type
> (polling and NAPI preferred). The problem with the performace is
> _always_ the number of interrupts, nothing else is a bottleneck (well,
> we didn't talk about thousands of iptables rules yet, but you ask for a
> 'maximum').
> - The question you have to ask in high-performance scenarios is not
> "MBit/s" but MPPS (megapackets per seconds). FreeBSD and Linux broke the
> 1 MPPS barrier some time ago (on dual xeons).
>
> rgds,
> Andreas
>
> Fermín Galán Márquez wrote:
>> Hi,
>>
>> 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.
>>
>> Anybody knows any other similar analysis, please?
>>
>> Best regards,
>>
>> --------------------
>> Fermín Galán Márquez
>> CTTC - Centre Tecnològic de Telecomunicacions de Catalunya
>> Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860
>> Castelldefels, Spain
>> Room 1.02
>> Tel : +34 93 645 29 12
>> Fax : +34 93 645 29 01
>> Email address: fermin.galan@cttc.es


[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (11 preceding siblings ...)
  2006-06-01 20:33 ` Jesper Dangaard Brouer
@ 2006-06-10  6:45 ` S Mohan
  2006-06-16  7:52 ` Tomas Bonnedahl
  2006-06-16  8:23 ` [LARTC] Linux router performance (fwd) Jesper Dangaard Brouer
  14 siblings, 0 replies; 16+ messages in thread
From: S Mohan @ 2006-06-10  6:45 UTC (permalink / raw)
  To: lartc

Damjan wrote:
>>> 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).

I've done some benchmarks on a Sunfire x2100 with 2 port PCI Express
ethernet cards. It switches 800KPPS for 64B packets.

Regards
Mohan

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (12 preceding siblings ...)
  2006-06-10  6:45 ` S Mohan
@ 2006-06-16  7:52 ` Tomas Bonnedahl
  2006-06-16  8:23 ` [LARTC] Linux router performance (fwd) Jesper Dangaard Brouer
  14 siblings, 0 replies; 16+ messages in thread
From: Tomas Bonnedahl @ 2006-06-16  7:52 UTC (permalink / raw)
  To: lartc

Fermín Galán Márquez skrev:
> Hi,
>
> 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.
>
> Anybody knows any other similar analysis, please?
>
> Best regards,
>
> --------------------
> Fermín Galán Márquez
> CTTC - Centre Tecnològic de Telecomunicacions de Catalunya
> Parc Mediterrani de la Tecnologia, Av. del Canal Olímpic s/n, 08860
> Castelldefels, Spain
> Room 1.02
> Tel : +34 93 645 29 12 
> Fax : +34 93 645 29 01
> Email address: fermin.galan@cttc.es 
>
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>   

This was seen on the mailing list a couple of years ago, doesnt say much 
but it shows what could be done.


On Mon, 02 Dec 2002 22:30:10 +0100
Anton Tinchev <atl@unixsol.org> wrote:


> > Hi,
> > first i wonna thank you for the great work.
> > I have few slack boxes with several 3com cards that acts as routers.
> > Some of them has 50+ vlans, 100 000+ routing entries, full BGP (zebra) with 10+ peers
> > and routes 50-70 mb/s traffic. Everithing is rock solid, few months uptimes.
>   

Sounds pretty impressive, really. I admire such setups.


> > I wona to upgrade some of my cards and need advice what to use.
> > On 100+mb/s interrups killing my boxes - 20 000+/s (yes, coalescing, i know:))
> > What to use? tigon2 or tigon3 for gigabit? (3c985 or 3c996)
>   

None of them! Or at least not tigon3! I've tried to use one (3c996-T), and I experienced
strange system lockups. The board is a dual Tyan Tiger MP with couple of Athlon MP 1600+. It was
just hanging from time to time with completely no output of any kind. Just rock solid lockup. :/

Anyway, I changed to a good old 3c905C and now I don't have any problems. Well, I'm serving at
half of your rate, but anyway. So, I would suggest using HP equipment. At least I've heard that
it works quote well.


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [LARTC] Linux router performance (fwd)
  2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
                   ` (13 preceding siblings ...)
  2006-06-16  7:52 ` Tomas Bonnedahl
@ 2006-06-16  8:23 ` Jesper Dangaard Brouer
  14 siblings, 0 replies; 16+ messages in thread
From: Jesper Dangaard Brouer @ 2006-06-16  8:23 UTC (permalink / raw)
  To: lartc


I think that Robert Olssons post never made it through the filters...

---------- Forwarded message ----------
Date: Fri, 2 Jun 2006 12:32:53 +0200
From: Robert Olsson <Robert.Olsson@data.slu.se>
To: Jesper Dangaard Brouer <hawk@diku.dk>
Cc: Andreas John <lists@aj.net-lab.net>,
     Robert Olsson <Robert.Olsson@data.slu.se>, lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Linux router performance


Jesper Dangaard Brouer writes:
  >
  > Hi
  >
  > I'm sure that Robert can provide us with some interesting numbers.
  >
  > I have just tested routing performance on a AMD opteron 270 (dual core),
  > here I can route 400 kpps (tg3 netcards on PCI-X).  I use the kernel
  > module "pktgen" to generate the packets (64 bytes in size).

  400 kpps is decent but it all depends on your setup what you're testing.
  Single flow?

  Number of packets in environment with hi-number of flows. ( Forces
  lookup of dst cache, route lookup and garbage collection) is the most
  challenging  Also how to handle filters eventually stateful information.

  For single flow tests most things end up in L2-cache and we most
  limited to latency. Bus latency, Memory latency etc.

  Large packets bus and memory bandwidth.

  We've seen 500 kpps in some of our production routers for BGP and
  about 500 filters. Dual Opteron 2.6 GHz. But you need to have a "setup"
  routing so it can make best use of your HW.


  Cheers.
 					--ro

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-06-16  8:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-31 18:01 [LARTC] Linux router performance Fermín Galán Márquez
2006-05-31 20:27 ` Andreas John
2006-05-31 23:24 ` Carl-Daniel Hailfinger
2006-06-01  0:34 ` Damjan
2006-06-01  0:44 ` Carl-Daniel Hailfinger
2006-06-01  1:59 ` Alexander Samad
2006-06-01  2:03 ` Carl-Daniel Hailfinger
2006-06-01  2:21 ` Alexander Samad
2006-06-01  4:52 ` Carl-Daniel Hailfinger
2006-06-01  8:46 ` Andrew Lyon
2006-06-01 11:23 ` Ronny Aasen
2006-06-01 11:46 ` Carl-Daniel Hailfinger
2006-06-01 20:33 ` Jesper Dangaard Brouer
2006-06-10  6:45 ` S Mohan
2006-06-16  7:52 ` Tomas Bonnedahl
2006-06-16  8:23 ` [LARTC] Linux router performance (fwd) Jesper Dangaard Brouer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.