Changes between Version 11 and Version 12 of NikySandbox/WebExample


Ignore:
Timestamp:
07/06/12 06:38:49 (7 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NikySandbox/WebExample

    v11 v12  
    2525
    2626In this setup, there is one host acting as a web server and two hosts acting as clients. To test this setup follow these steps:
    27  * Visit the web page of the Server host (to do that press on the (i) button in Flack and then press the Visit button, alternatively open a web browser and go to the webpage !http://<pcname>.emulab.net, in the above example this would be !http://pc511.emulab.net). If the installation is successful you should see a page that is similar to this:
     27 * Visit the web page of the Server host (to do that press on the (i) button in Flack and then press the Visit button, alternatively open a web browser and go to the webpage !http://<pcname>.emulab.net, in the above example this would be !http://pc484.emulab.net). If the installation is successful you should see a page that is similar to this:
    2828
    2929[[Image(WebsrvIndex.png, 40%)]]
     
    3939 * You can download the web page using  this command
    4040   {{{
    41    [inki@Client1 ~]$ wget http://pc511.emulab.net
    42 --2012-07-06 04:23:13--  http://pc511.emulab.net/
    43 Resolving pc511.emulab.net... 155.98.38.111
    44 Connecting to pc511.emulab.net|155.98.38.111|:80... connected.
     41   [inki@Client1 ~]$ wget http://pc484.emulab.net
     42--2012-07-06 04:32:59--  http://pc484.emulab.net/
     43Resolving pc484.emulab.net... 155.98.38.84
     44Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
    4545HTTP request sent, awaiting response... 200 OK
    4646Length: 548 [text/html]
    47 Saving to: “index.html.1
    48 
    49 100%[======================================>] 548          --.-K/s   in 0s     
    50 
    51 2012-07-06 04:23:13 (7.65 MB/s) - “index.html.1” saved [548/548]
     47Saving to: “index.html
     48
     49100%[======================================>] 548         --.-K/s   in 0s     
     50
     512012-07-06 04:32:59 (127 MB/s) - “index.html” saved [548/548]
    5252   }}}
    53   * The above command only downloads the `index.html` file from the webserver. As we are going to see later a web page might consist of multiple web pages or other objects such as pictures, videos etc. In order to force wget to download all dependencies of a page use the following options
     53  * The above command only downloads the `index.html` file from the webserver. As we are going to see later a web page might consist of multiple web pages or other objects such as pictures, videos etc. In order to force wget to download all dependencies of a page use the following options :
    5454   {{{
    55    
     55   [inki@Client1 ~]$ wget -m -p http://pc484.emulab.net
     56--2012-07-06 04:33:49--  http://pc484.emulab.net/
     57Resolving pc484.emulab.net... 155.98.38.84
     58Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     59HTTP request sent, awaiting response... 200 OK
     60Length: 548 [text/html]
     61Saving to: “pc484.emulab.net/index.html”
     62
     63100%[======================================>] 548         --.-K/s   in 0s     
     64
     652012-07-06 04:33:49 (118 MB/s) - “pc484.emulab.net/index.html” saved [548/548]
     66
     67Loading robots.txt; please ignore errors.
     68--2012-07-06 04:33:49--  http://pc484.emulab.net/robots.txt
     69Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     70HTTP request sent, awaiting response... 404 Not Found
     712012-07-06 04:33:49 ERROR 404: Not Found.
     72
     73--2012-07-06 04:33:49--  http://pc484.emulab.net/top.html
     74Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     75HTTP request sent, awaiting response... 200 OK
     76Length: 917 [text/html]
     77Saving to: “pc484.emulab.net/top.html”
     78
     79100%[======================================>] 917         --.-K/s   in 0s     
     80
     812012-07-06 04:33:49 (172 MB/s) - “pc484.emulab.net/top.html” saved [917/917]
     82
     83--2012-07-06 04:33:49--  http://pc484.emulab.net/home.html
     84Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     85HTTP request sent, awaiting response... 200 OK
     86Length: 822 [text/html]
     87Saving to: “pc484.emulab.net/home.html”
     88
     89100%[======================================>] 822         --.-K/s   in 0s     
     90
     912012-07-06 04:33:49 (215 MB/s) - “pc484.emulab.net/home.html” saved [822/822]
     92
     93--2012-07-06 04:33:49--  http://pc484.emulab.net/links.html
     94Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     95HTTP request sent, awaiting response... 200 OK
     96Length: 958 [text/html]
     97Saving to: “pc484.emulab.net/links.html”
     98
     99100%[======================================>] 958         --.-K/s   in 0s     
     100
     1012012-07-06 04:33:49 (267 MB/s) - “pc484.emulab.net/links.html” saved [958/958]
     102
     103--2012-07-06 04:33:49--  http://pc484.emulab.net/media/GENILogo.png
     104Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     105HTTP request sent, awaiting response... 200 OK
     106Length: 22678 (22K) [image/png]
     107Saving to: “pc484.emulab.net/media/GENILogo.png”
     108
     109100%[======================================>] 22,678      --.-K/s   in 0.001s 
     110
     1112012-07-06 04:33:49 (42.8 MB/s) - “pc484.emulab.net/media/GENILogo.png” saved [22678/22678]
     112
     113--2012-07-06 04:33:49--  http://pc484.emulab.net/media/topgeni.png
     114Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     115HTTP request sent, awaiting response... 200 OK
     116Length: 116224 (114K) [image/png]
     117Saving to: “pc484.emulab.net/media/topgeni.png”
     118
     119100%[======================================>] 116,224     --.-K/s   in 0.002s 
     120
     1212012-07-06 04:33:49 (66.7 MB/s) - “pc484.emulab.net/media/topgeni.png” saved [116224/116224]
     122
     123--2012-07-06 04:33:49--  http://pc484.emulab.net/media/hello.png
     124Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     125HTTP request sent, awaiting response... 200 OK
     126Length: 11497 (11K) [image/png]
     127Saving to: “pc484.emulab.net/media/hello.png”
     128
     129100%[======================================>] 11,497      --.-K/s   in 0s     
     130
     1312012-07-06 04:33:49 (45.8 MB/s) - “pc484.emulab.net/media/hello.png” saved [11497/11497]
     132
     133--2012-07-06 04:33:49--  http://pc484.emulab.net/media/experimenter.png
     134Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     135HTTP request sent, awaiting response... 200 OK
     136Length: 14020 (14K) [image/png]
     137Saving to: “pc484.emulab.net/media/experimenter.png”
     138
     139100%[======================================>] 14,020      --.-K/s   in 0s     
     140
     1412012-07-06 04:33:49 (47.5 MB/s) - “pc484.emulab.net/media/experimenter.png” saved [14020/14020]
     142
     143--2012-07-06 04:33:49--  http://pc484.emulab.net/media/keyboard.png
     144Connecting to pc484.emulab.net|155.98.38.84|:80... connected.
     145HTTP request sent, awaiting response... 200 OK
     146Length: 9533 (9.3K) [image/png]
     147Saving to: “pc484.emulab.net/media/keyboard.png”
     148
     149100%[======================================>] 9,533       --.-K/s   in 0s     
     150
     1512012-07-06 04:33:49 (73.4 MB/s) - “pc484.emulab.net/media/keyboard.png” saved [9533/9533]
     152
     153FINISHED --2012-07-06 04:33:49--
     154Downloaded: 9 files, 173K in 0.003s (59.7 MB/s)
     155[inki@Client1 ~]$
    56156   }}}
    57157
    58  * On pc1, start a UDT file transfer server, using this command:
    59 {{{
    60 % pc1:~% /local/udt4/app/sendfile
    61 server is ready at port: 9000
    62 }}}
    63 
    64  * On pc2, start a UDT file transfer client, using this command:
    65 {{{
    66 pc2:~% /local/udt4/app/recvfile pc1 9000 /local/datafiles/sm.10M /dev/null
    67 }}}
    68 You should see output like the following in your pc1 window, showing the results of the file transfer. Note the transfer rate.
    69 {{{
    70 new connection: 192.168.2.2:55839
    71 speed = 7.14472Mbits/sec
    72 }}}
    73 
    74  * 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 1000MB. 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.
    75 
    76  * You can leave your UDT server running or stop it with ctrl-C.
    77 
    78 === File Transfer Using FTP ===
    79 
    80 Follow these steps to perform a file transfer using FTP.
    81 
    82  * For a TCP-based (FTP) transfer, there's already a FTP server running on pc1. Log into pc2, and start an ftp client:
    83 
    84 (You type ''ftp pc1'', the user name ''anonymous'', and any password you want, although your e-mail address is traditional.)
    85 
    86 {{{
    87 pc2:~% ftp pc1
    88 Connected to PC1-lan1.
    89 220 (vsFTPd 2.3.2)
    90 Name (pc1:mberman): anonymous
    91 331 Please specify the password.
    92 Password:
    93 230 Login successful.
    94 Remote system type is UNIX.
    95 Using binary mode to transfer files.
    96 ftp>
    97 }}}
    98 
    99  * Still on pc2, request a file transfer. Note the reported file size, transfer time, and transfer rate.
    100 
    101 {{{
    102 ftp> get med.100M /dev/null
    103 local: /dev/null remote: med.100M
    104 200 PORT command successful. Consider using PASV.
    105 150 Opening BINARY mode data connection for med.100M (104857600 bytes).
    106 226 Transfer complete.
    107 104857600 bytes received in 8.91 secs (11491.9 kB/s)
    108 }}}
    109 
    110  * You can perform additional transfers with additional get commands. When you're done, exit the ftp client with the quit command.
     158 * Use the dataplane interface. Up to this point we have used the public interface of the webserver. As you are testing your environment, you should use the dataplane connections between the clients and the server. These are the private connections that are represented with a lines between the machines in Flack. To do that you first need to figure out the IP address of the server on each of these links. In the above example, the line that connects the Server with Client1 has a box that is called `lan0`. Press on the (i) button of that box and see the IP server that is assigned on the server. Use this IP to run the wget command :
     159  {{{
     160  [inki@Client1 ~]$ wget -m -p http://10.10.1.1
     161  }}}
    111162
    112163=== Viewing and Adjusting link characteristics ===