All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables / network / linux issue ...
@ 2003-12-11 12:32 Ray Leach
  2003-12-14 15:56 ` Stephen Satchell
  0 siblings, 1 reply; 2+ messages in thread
From: Ray Leach @ 2003-12-11 12:32 UTC (permalink / raw)
  To: Netfilter Mailing List

Hi

I have a strange network / iptables / Linux problem. I don't know which
it is yet ...

If I ssh to my firewall (which has 4 NIC installed), I then ftp back to
an ftp server on eth2 segment of the firewall and get a whole bunch of
files (about 20 totaling 100MB), I get a transfer rate of 110KB/s
(800Kb/s) - measured on both ends of the connection. This is on a 100Mb
network.

I then ftp from the machine on the internal LAN (eth2) through the
firewall to a machine in the DMZ (eth1 on the firewall). Now I get 1MB/s
- that's more like it.

Any ideas why the first transfer could be so slow?

I have checked my -m limit iptables rules and verified (as can be seen
above) that they are not limiting the packet rate.

Regards

Ray



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

* Re: iptables / network / linux issue ...
  2003-12-11 12:32 iptables / network / linux issue Ray Leach
@ 2003-12-14 15:56 ` Stephen Satchell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Satchell @ 2003-12-14 15:56 UTC (permalink / raw)
  To: spoons; +Cc: Netfilter Mailing List

On Thu, 2003-12-11 at 04:32, Ray Leach wrote:
> Hi
> 
> I have a strange network / iptables / Linux problem. I don't know which
> it is yet ...
> 
> If I ssh to my firewall (which has 4 NIC installed), I then ftp back to
> an ftp server on eth2 segment of the firewall and get a whole bunch of
> files (about 20 totaling 100MB), I get a transfer rate of 110KB/s
> (800Kb/s) - measured on both ends of the connection. This is on a 100Mb
> network.
> 
> I then ftp from the machine on the internal LAN (eth2) through the
> firewall to a machine in the DMZ (eth1 on the firewall). Now I get 1MB/s
> - that's more like it.
> 
> Any ideas why the first transfer could be so slow?
> 
> I have checked my -m limit iptables rules and verified (as can be seen
> above) that they are not limiting the packet rate.

Use netstat -i before and after each transfer to read out the connection
statistics for each of the interfaces.  Look for inordinate error
counts.  Remember the problem may well be on the other end of the link
(not visible on your end) so you will need to check error counts on the
other end as well.

You can also look at the statistics for TCP in /proc/net/snmp, paying
particular attention to packet retries.

You may have already tried a flood ping to try to diagnose the problem,
but most people don't realize that the packets being sent are quite
small.  To duplicate the conditions, you need to send ping packets of
near-MTU size.  "ping -f -s 1460 <endpoint>"  Try that with your problem
connection and see if you see significant packet loss.  (You may also
need to define data in order to tickle the poor NICs to fail; here's a
list I use:

   ping -f -s 1460 -p 00 $IPADDR   
   ping -f -s 1460 -p ff $IPADDR   
   ping -f -s 1460 -p aa $IPADDR   
   ping -f -s 1460 -p deadface0000ffffff $IPADDR

The first sends all zeros [the default], the second all ones, the third
alternating ones and zeros, and the fourth is a pattern I hit upon with
Realtek NICs.)

Remember, too, that each Ethernet segment is one big happy family, and
if one of the family members -- not even involved in your transfer -- is
playing interfering bully, you will need to send him/her/it to
his/her/its room.

My pair-o-pennies(tm).

Satch




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

end of thread, other threads:[~2003-12-14 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-11 12:32 iptables / network / linux issue Ray Leach
2003-12-14 15:56 ` Stephen Satchell

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.