2001-07-05 01:50:01

by Mark Henson

[permalink] [raw]
Subject: tcp stack tuning and Checkpoint FW1 & Legato Networker

Hi,

Can someone point me to a document that describes how to tune the tcp
stack for Linux kernels 2.4.x and 2.2.x

I want to set the tcp_keepalive timer to 60 seconds and understand
possible implications for Linux.

Simply I have a problem with Checkpoint FW1 and Legato Backup:

When making a backup over a Checkpoint FW from Linux using Legato on a
Solaris Server.

When legoto starts to make a backup it opens a tcp connection from the
backup client to the backup server with a standard tcp threeway
handshake. When the backup is completed (this can take a while) the
client sends 1 packet to close the connection and includes in this the
result of the backup - success/failure.

Problem is that checkpoint seem to have taken it upon themseleves to treat
a tcp established session as "tcp_start" and not honour the state unless
the connection has additional packets sent.

the initial period after tcp establishment (3way handshake) with no
payload defaults to 60 seconds. Once data has been sent this connection
is moved to a state table and the connection will be honoured for 3600
seconds or whatever I choose to set it to.

Because of the tcp_start timer in checkpoint any partition with a size
sufficient to make the backup take > 60 secs will fail to receive the
success/failure packet and therefore reported as Bad.

If I set the tcp_keepalive timer to 60 seconds then keepalives will keep
the connection established for the duration of the backup which could be
50 minutes for a large partition. I can set this under solaris with ndd
tcp_keepalive_interval 60000 (ms)

Thanks
Mark



2001-07-05 01:58:51

by George Bonser

[permalink] [raw]
Subject: RE: tcp stack tuning and Checkpoint FW1 & Legato Networker

>
> I want to set the tcp_keepalive timer to 60 seconds and understand
> possible implications for Linux.


echo 60 >/proc/sys/net/ipv4/tcp_keepalive_time

????


2001-07-05 03:38:43

by Andrew Pimlott

[permalink] [raw]
Subject: Re: tcp stack tuning and Checkpoint FW1 & Legato Networker

On Wed, Jul 04, 2001 at 07:02:36PM -0700, George Bonser wrote:
> > I want to set the tcp_keepalive timer to 60 seconds and understand
> > possible implications for Linux.
>
> echo 60 >/proc/sys/net/ipv4/tcp_keepalive_time

By default, this is only polled by the kernel every 75 seconds, so
you would still lose. In 2.2, this is hard-coded. In 2.4,
/proc/sys/net/ipv4/tcp_keepalive_intvl will probably help, but I
haven't tried it.

Andrew

2001-07-05 11:06:53

by Alan

[permalink] [raw]
Subject: Re: tcp stack tuning and Checkpoint FW1 & Legato Networker

> I want to set the tcp_keepalive timer to 60 seconds and understand
> possible implications for Linux.

The RFC's strictly forbid it being below two hours

> If I set the tcp_keepalive timer to 60 seconds then keepalives will keep
> the connection established for the duration of the backup which could be
> 50 minutes for a large partition. I can set this under solaris with ndd
> tcp_keepalive_interval 60000 (ms)

And the moment you leave a few boxes tuned like that on the internet you'll
find yourself very unpopular.

Get the checkpoint box reconfigured properly