Changes between Version 17 and Version 18 of MEBSandbox/UDTExample
- Timestamp:
- 05/02/12 14:36:08 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MEBSandbox/UDTExample
v17 v18 18 18 == Setup == 19 19 20 1.Download the attached [link:attachment:udt.rspec rspec file] and save it on your machine.21 1.Start Flack, create a new slice, load rspec ''udt.rspec'' and submit for sliver creation. (Include a picture here.)20 * Download the attached [link:attachment:udt.rspec rspec file] and save it on your machine. 21 * Start Flack, create a new slice, load rspec ''udt.rspec'' and submit for sliver creation. (Include a picture here.) 22 22 23 23 … … 28 28 Follow these steps to perform a file transfer using UDT. 29 29 30 1. Log into pc1 and pc2 in separate windows. 31 1. On pc1, start a UDT file transfer server, using this command: 30 * Log into pc1 and pc2 in separate windows. 31 32 * On pc1, start a UDT file transfer server, using this command: 32 33 {{{ 33 34 % pc1:~% /local/udt4/app/sendfile … … 43 44 speed = 7.14472Mbits/sec 44 45 }}} 45 1.There are three data files available for transfer tests: '''/local/datafiles/sm.10M''' is 10MB, '''/local/datafiles/med.100M''' is 100MB, and '''/local/datafiles/lg.1G''' is 1GB. Leave your transfer server running on pc1, and try transferring each of these files in turn by typing the appropriate commands on pc2. Keep track of the transfer rates in each case.46 1.You can leave your UDT server running or stop it with ctrl-C.46 * There are three data files available for transfer tests: '''/local/datafiles/sm.10M''' is 10MB, '''/local/datafiles/med.100M''' is 100MB, and '''/local/datafiles/lg.1G''' is 1GB. Leave your transfer server running on pc1, and try transferring each of these files in turn by typing the appropriate commands on pc2. Keep track of the transfer rates in each case. 47 * You can leave your UDT server running or stop it with ctrl-C. 47 48 48 49 === File Transfer Using FTP === … … 50 51 Follow these steps to perform a file transfer using FTP. 51 52 52 1.For a TCP-based (FTP) transfer, there's already a FTP server running on pc1. Log into pc2, and start an ftp client:53 * For a TCP-based (FTP) transfer, there's already a FTP server running on pc1. Log into pc2, and start an ftp client: 53 54 [[br]] 54 55 (You type ''ftp pc1'', the user name ''anonymous'', and any password you want, although your e-mail address is traditional.) … … 65 66 ftp> 66 67 }}} 67 1.Still on pc2, request a file transfer. Note the reported file size, transfer time, and transfer rate.68 * Still on pc2, request a file transfer. Note the reported file size, transfer time, and transfer rate. 68 69 {{{ 69 70 ftp> get med.100M … … 74 75 104857600 bytes received in 1.75 secs (58508.9 kB/s) 75 76 }}} 76 1.You can perform additional transfers with additional get commands. When you're done, exit the ftp client with the quit command.77 * You can perform additional transfers with additional get commands. When you're done, exit the ftp client with the quit command. 77 78 78 79 === Viewing and Adjusting link characteristics === … … 80 81 In this experiment, you'll be changing the characteristics of the link and measuring how they affect UDT and TCP performance. 81 82 82 1.Log into your delay node as you do with any other node. Then, on your delay node, use this command:83 * Log into your delay node as you do with any other node. Then, on your delay node, use this command: 83 84 {{{ 84 85 %sudo ipfw pipe show 85 86 }}} 87 86 88 You'll get something like this: 87 89 {{{ … … 96 98 (Note that your output may appear in a different format, depending on what version of ipfw happens 97 99 to be installed on your delay node. However, the key information is still available.) 98 [[br]] 100 99 101 You'll want to make note of the two pipe numbers, one for each direction of traffic along your link. 100 102 In the example above, they are 60111 and 60121. 101 [[br]] 103 102 104 There are three link characteristics we'll manipulate in this experiment: bandwidth, delay, and packet loss rate. 103 105 You'll find their values listed in the ipfw output above. … … 112 114 Here are the command sequences you'll need to change your link parameters. 113 115 114 To change bandwidth (100M means 100Mbits/s):116 * To change bandwidth (100M means 100Mbits/s): 115 117 {{{ 116 118 sudo ipfw pipe 60111 config bw 100M … … 118 120 }}} 119 121 120 Request a bandwidth of zero to use the full capacity of the link (unlimited):122 * Request a bandwidth of zero to use the full capacity of the link (unlimited): 121 123 {{{ 122 124 sudo ipfw pipe 60111 config bw 0 … … 124 126 }}} 125 127 126 To change link delay (delays are measured in ms):128 * To change link delay (delays are measured in ms): 127 129 {{{ 128 130 sudo ipfw pipe 60111 config delay 10 … … 130 132 }}} 131 133 132 To change packet loss rate (rate is a probability, so 0.001 means 0.1% packet loss):134 * To change packet loss rate (rate is a probability, so 0.001 means 0.1% packet loss): 133 135 {{{ 134 136 sudo ipfw pipe 60111 config plr .0001