52.23.14 FTP Download

Downloads a file from an FTP server.
Please be aware that paths and file names must have correct case throughout.
Note also that you can conduct TCP load tests with the Network Bandwidth activity (see section "Network Bandwidth (Iperf)").

Configuration property:

FTP Client: FTP client used to conduct FTP download sessions.

PC: An FTP client built into TEMS Investigation is used.

UE: An on-device FTP client is used.

Note that the set of options differs between the client types, as detailed below.

Server Address: The IP address or host name of the FTP server. No ftp:// prefix is to be used. The address may not contain a path to a subdirectory.

Server Port: The port on which the FTP server listens for requests. The default port number is 21 (for SFTP, 22).

Firewall Mode: PASV or PORT, enabling or disabling passive FTP as defined in  IETF RFC 959. Note that it is essential to set this correctly. For SFTP, this setting is not applicable.

Local Data Port: The data port the client will use for FTP download. Visible only when Firewall Mode = PORT.

User: User name on the FTP server, if required.

Password: User password on the FTP server, if required.

Account: Account name on the FTP server, if applicable.

End Session After Time: If set to True, the FTP session is ended automatically after a user-specified length of time. Enter the desired session duration in the Time field. The duration is counted from the moment the first FTP packet is received from the server.

Max Allowed Network Idle Time: If the TCP connection is idle for a longer time than this, a "TCP Connection Max Idle Time Exceeded" event is triggered. Setting this to zero means that infinite idle time is allowed without the event being triggered.

Use SFTP: (Available for PC client) If set to Yes, file transfer will be done over SFTP (SSH File Transfer Protocol, "Secure FTP") rather than FTP proper.

Note that no KPI data is logged for SFTP. Also be aware that the throughput may be reduced compared to regular FTP. Therefore, do not use SFTP in stress tests aimed at determining the maximum data throughput.

Regarding necessary SFTP server configuration, see the Installation Guide, section "SFTP Testing".

For brevity, the rest of the description of this activity assumes that regular FTP is used.

Concurrent Download Mode: (Available for on-device client) With the on-device FTP client you can generate multiple downloads in either of two ways.

If you set this mode to Multiple Files and set Number Of Downloads higher than one, the file referenced under Source File will be downloaded multiple times concurrently (the entire file being transferred in each instance). The maximum is 20. This option is useful in order to increase the load when testing a high-speed connection.

If you set this mode to Multiple Parts and set Number Of Threads higher than one, the content of Source File will be downloaded only once, but the download will be split into multiple threads, each downloading a different part of the file. The maximum number of threads is 20. This option is useful for studying the reduction in download time compared to single-thread file transfer.

Note: Multiple Parts is only possible when downloading from an FTP server supporting the MLST command.

Source File: The path and name of the file residing on the FTP server, e.g. srcdir/srcfile.dat. No explicit root symbol is used (no leading slash); if the file is in the root directory, type the file name only. Note that the correct orientation of the slashes is dependent on the FTP server operating system.

Target File: (Specified for PC client) Drive letter, path, and file name describing where to store the file on your computer, e.g. C:\targdir\targfile.dat. The drive letter must be included. A session ID (integer) is prefixed to the file name. If multiple FTP Download activities execute in parallel, multiple files are created, each with a unique session ID prefixed to prevent conflicts, e.g.: 0targfile.dat, 1targfile.dat. If the Target File field is left blank, no files are stored; this is the default setting.

Proceed Without IP Sniffer: Set to True to allow the measurements to continue with limited KPIs or no KPIs.
Note: If the connected device is a non-rooted commercial device, always set this setting to True, in other cases, the activity will not run.

Lists of FTP download information elements and events.
Configuration of TCP Receive Buffer Size
The size of the TCP receive buffer can be changed in the file <TEMS Investigation install dir>\Application\Investigation.exe.config by editing the following line:
<dataServicesConfiguration [...] ftpReceiveBufferSize="4194304" />
TEMS Investigation must be restarted for changes to take effect.
Be aware that drastic changes to this value will have similarly drastic effects on the data throughput. The default value is suitable for high-speed networks.
This setting is applicable to regular FTP only, not to SFTP.