1) port command, client need to upload a file, and selected port is 3662.
2) server response, OK
3) client run "put 1", and server setup a TCP connection for Data transfer, and selected port is 4566.
4) after data transfer done, client close the TCP connection, then server close the TCP connection, and server response with 226, transfer complete.
debug info in ftp,
>ftp -d a.b.comConnected to a.b.com (135.52.4.8).220 a FTP server ready.Name (a.b.com:nomad2): nomad2---> USER nomad2331 Password required for nomad2Password:---> PASS XXXX230 User nomad2 logged in.---> SYST215 UNIX Type: L8 Version: SUNOSRemote system type is UNIX.Using binary mode to transfer files.ftp> passivePassive mode off.ftp> passivePassive mode on.