Changes between Version 24 and Version 25 of NikySandbox/SIGSCETutorial/RunExampleAssignment


Ignore:
Timestamp:
02/25/13 21:27:20 (11 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NikySandbox/SIGSCETutorial/RunExampleAssignment

    v24 v25  
    6666 </table>
    6767}}}
     68
    6869You should now have three terminals open, one for each host.
    6970
    7071=== 2b. UDT vs FTP Experiment ===
    7172
    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.
     73For 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
     76FTP: 1M in 255 ms
     77UDT: 1M in 552 ms
     78}}}
     79
     80Try the same for the other files, you can skip the xl.1000M, since it will take a bit to complete.
     81
    10582
    10683=== 2c. Modify Link Parameters ===
     
    10885In this experiment, you'll be changing the characteristics of the link and measuring how they affect UDT and TCP performance.
    10986
    110  * Log into your delay node as you do with any other node. Then, on your delay node, use this command:
     87 * In the terminal of the delay node run this command:
    11188{{{
    11289%sudo ipfw pipe show
     
    145122In each case, you'll need to provide the correct pipe numbers, if they're different from the example.
    146123
    147  * To change bandwidth (100M means 100Mbits/s):
    148 {{{
    149 sudo ipfw pipe 60111 config bw 100M
    150 sudo ipfw pipe 60121 config bw 100M
     124 * To change bandwidth (10M means 10Mbits/s):
     125{{{
     126sudo ipfw pipe 60111 config bw 10M
     127sudo ipfw pipe 60121 config bw 10M
    151128}}}
    152129
     
    196173Note that bandwidth is set to ''unlimited'', delay to ''0 ms'', and no PLR is shown.
    197174
    198  * Using this initial setting, try a few UDT transfers, including the larger files. Now try FTP transfers. Record the transfer sizes and rates.
     175 * Using this initial setting, try to transfer the files and note the rate of UDT and FTP.
    199176
    200177 * Now change the link parameters to reduce the available bandwidth to 10Mbps: