Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: NAT performance
Date: Thu, 12 May 2005 19:03:03 -0500	[thread overview]
Message-ID: <4283EEB7.7010207@riverviewtech.net> (raw)
In-Reply-To: <80E06785-6636-4481-ABD1-6C6C28D52629@adelux.fr>

Christophe SUIRE wrote:
> Hi,
> 
> I have done some tests, and i'm surprise with the poor result with NAT.
> I have a linux firewall, 2.6.8 kernel, one card for public network,  and 
> one card for the lan.
> All cards are giga bit cards.
> I have 10 PC which are each in a VLAN, and with a gateway which is  the 
> virtual VLAN interface under the firewall link with the lan card.
> I have 5 switch with a 100Mbit/s uplink to the firewall (with a giga  
> bit backbone switch). I have 2PC under each switch. So in theory each  
> PC have 50Mbit/s of bandwidth.
> Each PC have 10 alias ip, so i have 10 networks with 10 virtuals  
> clients under each network.
> So each virtual client (100) have 5Mbit/s of bandwidth.
> On the firewall each vlan network is SNAT to go out to the internet.
> My bandwidth test is done with TPTEST, and a TPTEST server under the  
> public network of the firewall.
> My procedure is : tcp-receive of 50Mo
>     launch the test for 1 virtual client and get the time
>     launch the test for 2 virtuals clients together and get the time  
> for each
>     ....
>     launch the test for 100 virtuals ...
> 
> When i do my test without NAT, just routing, the total bandwidth used  
> is near to 500Mbit/s, which is great !
> But when i do my test with NAT, the total bandwidth used is near to  
> 170Mbit/s !!! So i have an import drop of the performance !
> And this bandwidth is the same from 20 virtuals clients to 100  virtuals 
> clients.
> So i understand that NAT need to rewrite all packets .. but here the  
> performance is very poor.
> If someone can explain me why ??

What are the specs on the system you are using as the firewall?



Grant. . . .


  reply	other threads:[~2005-05-13  0:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-12 21:24 NAT performance Christophe SUIRE
2005-05-13  0:03 ` Taylor, Grant [this message]
2005-05-13  7:16   ` Christophe SUIRE
     [not found]     ` <Pine.LNX.4.60.0505130423320.5558@darkstar.sysinfo.com>
2005-05-13  8:33       ` Christophe SUIRE
2005-05-13  9:22         ` Jozsef Kadlecsik
2005-05-13  9:51           ` Christophe SUIRE
2005-05-13  9:57             ` Jozsef Kadlecsik
2005-05-13 10:14               ` Jozsef Kadlecsik
2005-05-13 10:19                 ` Christophe SUIRE
2005-05-13 10:18               ` Christophe SUIRE
2005-05-13 11:52           ` Feizhou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4283EEB7.7010207@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox