Page 1 of 1

New IP : how to tune FTP send & receive buffers

Posted: Mon Oct 07, 2019 9:48 am
by bartr
We’re currently testing the new IP stack V10.6
In the past on TCPIP V5.7 we used the following command to tune FTP performance :

$ TCPIP SET SERVICE FTP /SOCKET_OPTIONS=(SEND=1024,RECEIVE=1024)

I suppose the corresponding command on the new IP stack is
SERVER-CONFIG> set SEND-BUFFER-SIZE and RECEIVE-BUFFER-SIZE

However, I get an error message “?Does not match switch or keyword - "SEND-BUFFER-SIZE" :

$ ip config/server
VSI TCP/IP Server Configuration Utility
[Reading in configuration from IP$CONFIG:SERVICES.MASTER_SERVER]
SERVER-CONFIG>select FTP
[The Selected SERVER entry is now FTP]
SERVER-CONFIG>enable ftp
SERVER-CONFIG>select ftp
[The Selected SERVER entry is now FTP]
SERVER-CONFIG>set SEND-BUFFER-SIZE 1024
?Does not match switch or keyword - "SEND-BUFFER-SIZE"
SERVER-CONFIG>set SEND-BUFFER-SIZE=1024
?Does not match switch or keyword - "SEND-BUFFER-SIZE"
SERVER-CONFIG>show/full
Service "FTP":
TCP socket (AF_INET,SOCK_STREAM), Port 21
Socket Options = SO_KEEPALIVE
Flags = PASS_FOREIGN_SOCKET
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Internal_FTP
Program = "IP$SYSTEM:FTP_SERVER.COM"
Working Set Quota = 100

What’s wrong here ?

Also, is there any corresponding command for sysconfig commands like TCPIP sysconfig -r socket sb_max=2097152 ?


Bart

Re: New IP : how to tune FTP send & receive buffers

Posted: Mon Oct 07, 2019 11:13 am
by debbee.west
Bart,

You have the command off by just a little bit.

You wrote -
I suppose the corresponding command on the new IP stack is
SERVER-CONFIG> set SEND-BUFFER-SIZE and RECEIVE-BUFFER-SIZE

But, really, its

SERVER-CONFIG>set send-buffer-space 1024
[Send Buffer Space of FTP set to 1024]

So, in server-config> you will do something like this

SERVER-CONFIG>sel ftp
[The Selected SERVER entry is now FTP]
SERVER-CONFIG>set receive-buffer-space 1024
[Receive Buffer Space of FTP set to 1024]
SERVER-CONFIG>write
[Writing configuration to SYS$COMMON:[IP.CONFIG]SERVICES.MASTER_SERVER.25]
SERVER-CONFIG>

Re: New IP : how to tune FTP send & receive buffers

Posted: Tue Oct 08, 2019 3:57 am
by bartr
Thanks Debbee, SEND-BUFFER-SPACE instead of *-SIZE indeed solved the problem.

It seems this is documented incorrectly in the VSI TCP/IP Administrator's Guide Volume I p. 67 :

- SET RECEIVE-BUFFER-SIZE Specifies the size of receive socket buffer
- SET SEND-BUFFER-SIZE Specifies the size of the send socket buffer

Re: New IP : how to tune FTP send & receive buffers

Posted: Tue Oct 08, 2019 9:47 am
by puder
The next version of the TCP documentation has this correction.

Re: New IP : how to tune FTP send & receive buffers

Posted: Wed Oct 09, 2019 12:24 am
by martinv
The release notes contain the correction on p.19.