Description

This article describes the issue of the FTP data session timing out on SRX.

Symptoms

Some clients have huge FTP servers with large number of files. In this case, while doing 'ls' in a FTP session, the FTP data session times out on the SRX when waiting for a response from the server.

Example:

C:\Downloads>ftp 192.168.117.46
Connected to 192.168.117.46.
220 Microsoft FTP Service
User (192.168.117.46:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 Anonymous user logged in.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list  << connection hangs at this stage and subsequently displays
Connection closed by remote host.



Solution

FTP data session may have been timed out on the SRX device.

The FTP data session may have been timed out on the SRX device:

  • 10.4R2 and below, data session has a timeout of 30 seconds.

  • 10.4R3 and above, data session has a timeout of 300 seconds.

In previous releases of Junos, the FTP data session timeout was 30 seconds. But it has been changed to 300 seconds from the following releases: 9.6R4, 10.0R3, 10.1R1, 10.2R,1 10.4R3, 11.2R1, 11.3R1, and 11.1R2.

The FTP data session timeout is fixed and not configurable.