72 | | For the purpose of this tutorial, we have included a script in your hosts |
73 | | |
74 | | Follow these steps to perform a file transfer using FTP. |
75 | | |
76 | | * For a TCP-based (FTP) transfer, there's already a FTP server running on pc1. Log into pc2, and start an ftp client: |
77 | | |
78 | | (You type ''ftp pc1'', the user name ''anonymous'', and any password you want, although your e-mail address is traditional.) |
79 | | |
80 | | {{{ |
81 | | pc2:~% ftp pc1 |
82 | | Connected to PC1-lan1. |
83 | | 220 (vsFTPd 2.3.2) |
84 | | Name (pc1:mberman): anonymous |
85 | | 331 Please specify the password. |
86 | | Password: |
87 | | 230 Login successful. |
88 | | Remote system type is UNIX. |
89 | | Using binary mode to transfer files. |
90 | | ftp> |
91 | | }}} |
92 | | |
93 | | * Still on pc2, request a file transfer. Note the reported file size, transfer time, and transfer rate. |
94 | | |
95 | | {{{ |
96 | | ftp> get med.100M /dev/null |
97 | | local: /dev/null remote: med.100M |
98 | | 200 PORT command successful. Consider using PASV. |
99 | | 150 Opening BINARY mode data connection for med.100M (104857600 bytes). |
100 | | 226 Transfer complete. |
101 | | 104857600 bytes received in 8.91 secs (11491.9 kB/s) |
102 | | }}} |
103 | | |
104 | | * You can perform additional transfers with additional get commands. When you're done, exit the ftp client with the quit command. |
| 73 | For the purpose of this tutorial, we have automated a single run of the experiment that compare UDT and FTP over a single file transfer between the client and the server. In the server we have placed 4 files of different sizes: sm.1M, med.10M, lg.100M, xl.1000M. In the terminal window of the `clienth` host run: |
| 74 | {{{ |
| 75 | [inki@clienth ~]$ /local/scripts/get_both_file.sh sm.1M |
| 76 | FTP: 1M in 255 ms |
| 77 | UDT: 1M in 552 ms |
| 78 | }}} |
| 79 | |
| 80 | Try the same for the other files, you can skip the xl.1000M, since it will take a bit to complete. |
| 81 | |