Operating System - HP-UX
1833018 Members
1999 Online
110048 Solutions
New Discussion

1. How to enable 'TCP Large Windows' on HP-UX?

 
SOLVED
Go to solution
MA Qiang
Regular Advisor

1. How to enable 'TCP Large Windows' on HP-UX?

2. Does default ftp client can set rcvbuf and sndbuf on HP-UX like Lukemftp?
3. Can I install Lukemftp on HP-UX?

Thanks.
8 REPLIES 8
Muthukumar_5
Honored Contributor
Solution

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

2)

# ndd -h socket_udp_rcvbuf_default

socket_udp_rcvbuf_default:

Sets the default receive buffer size for UDP sockets.
The value of this tunable parameter should not exceed the
value of the ndd parameter udp_recv_hiwater_max. Otherwise,
a socket() call to create UDP socket will fail and return
the errno value EINVAL.
[1-2147483647] Default: 65535

# ndd -h socket_udp_sndbuf_default

socket_udp_sndbuf_default:

Sets the default send buffer size for UDP sockets.
[1-65535] Default: 65535

#

You have to tune with ndd utility.

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

3)

Yes. lukemftp is supporting hpux installation.

-Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

You need to tune with ndd. If you have the source of Lukemftp then, you should be able to compile it on HP-UX and start using it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

Lukemftp supports 11.0, if you want it for 11.11 or 11.23, you need to compile it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

1. How to enable 'TCP Large Windows' on HP-UX?

Do you mean to say "Receive window size"? If so,

# ndd -h tcp_recv_hiwater_def

tcp_recv_hiwater_def:

The maximum size for the receive window. [4096,-]
Default: 32768 bytes

# ndd -h tcp_recv_hiwater_lfp

tcp_recv_hiwater_lfp:

The maximum size for the receive window for "long fat pipe"
interfaces such as Fibre Channel which provide high bandwidth
with high latency. [4096,-] Default: 65536 bytes

# ndd -h tcp_recv_hiwater_lnp

tcp_recv_hiwater_lnp:

The maximum size for the receive window for "long, narrow pipe"
interfaces such as PPP over a 56 kb modem which provide low
bandwidth with high latency. [4096,-] Default: 8192 bytes

Tuning these parameter will do.

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

lukemftp is available as,

http://www.opensource.apple.com/darwinsource/10.4.2/lukemftp-5/lukemftp/

-Muthu
Easy to suggest when don't know about the problem!
MA Qiang
Regular Advisor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

When I set rcvbuf to 131072(128KB) in lukemftp, which network parameters shoud I set to match the rcvbuf?
rick jones
Honored Contributor

Re: 1. How to enable 'TCP Large Windows' on HP-UX?

As already mentioned, large windows are already "enabled" in HP-UX these days, so it is just a matter of having the "right" socket buffer/window size settings.

WRT the HP-UX FTP client/server, they make explicit setsockopt(SO_*BUF) calls and so are not affected by the default settings one can alter via ndd. IIRC it is the -B option one can set to set the size of the socket buffer with the HP-UX FTP bits. Should be more in the manpage.

Years ago I did request that if the parm to -B was 0, the HP-UX ftp bits should make no setsockopt() calls, but I've never had a chance to fire-up tusc to see if that went-in...

there is no rest for the wicked yet the virtuous have no pillows