doc/source/dce-thttpd.rst
changeset 515 98f8c21e069f
parent 313 256b404c4463
child 578 71461e470024
equal deleted inserted replaced
514:3ad33fe5a5a1 515:98f8c21e069f
       
     1 This scenario use HTTP protocol using a real server and a real client.
       
     2 
       
     3 We use 2 externals software to do this experience:
       
     4 
       
     5  1. thttpd which is a light weight HTTP server
       
     6  
       
     7  2. wget is a well known HTTP client.
       
     8 
       
     9 The topology is simple we use 2 nodes linked by a point to point channel.
       
    10 
       
    11 As you must know to use a real application under NS-3/DCE you need to recompile it. 
       
    12 So below there is the recipes to compile the needed softwares for DCE usage.
       
    13 
       
    14 THTTPD  -------------------------------------------------------------------------------------------------
       
    15 
       
    16 Below there is the commands you may use to build thttpd :
       
    17 
       
    18 wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz
       
    19 tar xf thttpd-2.25b.tar.gz
       
    20 cd thttpd-2.25b
       
    21 ./configure
       
    22 patch -p1 < dce-thttpd.patch
       
    23 CFLAGS=-fPIC LDFLAGS=-pie make
       
    24 cp thttpd $BASEDCE/build/bin_dce
       
    25 
       
    26 WGET ----------------------------------------------------------------------------------------------------
       
    27 
       
    28 Below there is the commands you may use to build wget:
       
    29 
       
    30 echo to get wget sources you need wget binary :)
       
    31 wget http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz
       
    32 tar xf wget-1.14.tar.gz
       
    33 cd wget-1.14/
       
    34 CFLAGS=-fPIC LDFLAGS=-pie ./configure --disable-opie  --disable-digest --disable-ntlm  --disable-largefile --disable-threads --disable-nls  --disable-rpath  --disable-iri --without-ssl --without-zlib  --without-libiconv-prefix --without-libintl-prefix --without-libpth-prefix  --without-included-regex
       
    35 make
       
    36 cp src/wget $BASEDCE/build/bin_dce
       
    37 
       
    38 ---------------------------------------------------------------------------------------------------------
       
    39 
       
    40 Then to run the scenario you must provide some web pages to download at the root of the node 0 
       
    41 at minimum you should provide a file named index.html under files-0
       
    42 then you can launch the simulation by calling:
       
    43 
       
    44 $BASEDCE/build/myscripts/httpd/bin/dce-httpd
       
    45 
       
    46 the downloaded files can be found under files-1/10.1.1.1 directory
       
    47 
       
    48 ---
       
    49 
       
    50