All of lore.kernel.org
 help / color / mirror / Atom feed
* performance troubles
@ 2002-11-03 12:01 Stefan Mueller
  2002-11-05  6:52 ` Stefan Mueller
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Mueller @ 2002-11-03 12:01 UTC (permalink / raw)
  To: netfilter

Hello
i have a performance problem with my new SNAT (masquerade).
i have a cable modem with 512kbit/s. downloading a 1MB file takes 30s without 
NAT. downloading the same file from a pc behind NAT takes 500s! (2.5kbit/s)

OK, some information:
the NAT Router:
-AMD 1800+
-512MB DDR-Ram
-10MBit Card to the Cablemodem (the cabelmodem has a 10Mbit connector)
-100MBit to the Intranet
-Redhat 8.0 (2.4.18-14)
-iptables v1.2.6a
-load average 0.00 0.00 0.00
-no entrys in /var/log/messages
-iptables -L -> nothing,policy ACCEPT in INPUT OUTPUT FORWARD
-using iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
-interfaces:
 eth0 217.162.74.155 mask 255.255.254.0 (dhcp)
 eth1 10.22.0.1      mask 255.255.0.0
-routing table:
 217.162.74.0 *              255.255.254.0 U  0 0 0 eth0
 10.22.0.0    *              255.255.0.0   U  0 0 0 eth1
 127.0.0.0    *              255.0.0.0     U  0 0 0 lo
 default      (isp's router) 0.0.0.0       UG 0 0 0 eth0

the Client
-AMD 1800+
-512MB DDR-Ram
-100MBit to the Intranet
-Redhat 8.0 (2.4.18-14)
-load average 0.00 0.00 0.00
-iptables v1.2.6a
-no entrys in /var/log/messages
-iptables entrys
-interfaces:
 eth0 10.22.32.1 mask 255.255.0.0
-routing table:
 10.22.0.0 *         255.255.0.0 U  0 0 0 eth0
 127.0.0.0 *         255.0.0.0   U  0 0 0 lo
 default   10.22.0.1 0.0.0.0     UG 0 0 0 eth0

transmission between server and client has normal 100Mbit speed.
ping from the client to the internet is normal at ~100ms

what did i wrong? i know that NAT can't be as fast as a direct connection but 
this is terrible slow...
--
Open WebMail Project (http://openwebmail.org)



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

* Re: performance troubles
  2002-11-03 12:01 performance troubles Stefan Mueller
@ 2002-11-05  6:52 ` Stefan Mueller
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Mueller @ 2002-11-05  6:52 UTC (permalink / raw)
  To: netfilter

I found the problem my self, it wasn't the NAT, it was the 10Mbit Card. This 
card was defect. Now NAT works just great!

-Stefan Mueller

> Hello
> i have a performance problem with my new SNAT (masquerade).
> i have a cable modem with 512kbit/s. downloading a 1MB file takes 
> 30s without NAT. downloading the same file from a pc behind NAT 
> takes 500s! (2.5kbit/s)
> 
> OK, some information:
> the NAT Router:
> -AMD 1800+
> -512MB DDR-Ram
> -10MBit Card to the Cablemodem (the cabelmodem has a 10Mbit 
> connector) -100MBit to the Intranet -Redhat 8.0 (2.4.18-14) -
> iptables v1.2.6a -load average 0.00 0.00 0.00 -no entrys 
in /var/log/messages
> -iptables -L -> nothing,policy ACCEPT in INPUT OUTPUT FORWARD
> -using iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> -interfaces:
>  eth0 217.162.74.155 mask 255.255.254.0 (dhcp)
>  eth1 10.22.0.1      mask 255.255.0.0
> -routing table:
>  217.162.74.0 *              255.255.254.0 U  0 0 0 eth0
>  10.22.0.0    *              255.255.0.0   U  0 0 0 eth1
>  127.0.0.0    *              255.0.0.0     U  0 0 0 lo
>  default      (isp's router) 0.0.0.0       UG 0 0 0 eth0
> 
> the Client
> -AMD 1800+
> -512MB DDR-Ram
> -100MBit to the Intranet
> -Redhat 8.0 (2.4.18-14)
> -load average 0.00 0.00 0.00
> -iptables v1.2.6a
> -no entrys in /var/log/messages
> -iptables entrys
> -interfaces:
>  eth0 10.22.32.1 mask 255.255.0.0
> -routing table:
>  10.22.0.0 *         255.255.0.0 U  0 0 0 eth0
>  127.0.0.0 *         255.0.0.0   U  0 0 0 lo
>  default   10.22.0.1 0.0.0.0     UG 0 0 0 eth0
> 
> transmission between server and client has normal 100Mbit speed.
> ping from the client to the internet is normal at ~100ms
> 
> what did i wrong? i know that NAT can't be as fast as a direct 
> connection but this is terrible slow...
> --
> Open WebMail Project (http://openwebmail.org)


--
Open WebMail Project (http://openwebmail.org)



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

end of thread, other threads:[~2002-11-05  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-03 12:01 performance troubles Stefan Mueller
2002-11-05  6:52 ` Stefan Mueller

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.