------------------------------------------------------------------
+ How to install the CDNSimulator for ns2 +
+ +
+ Federico II University of Napoli +
+ Dipartimento di Informatica e Sistemistica +
+ email: valerio.formicola@unina.it +
+ folivier@unina.it +
+ spromano@unina.it +
------------------------------------------------------------------
The NS-2 CDN library is supplied in a patch file called
"ns2-cdn.patch". To install the patch make sure you have ns2-2.33
version (note: this is very important because there is an original
code update in this version for some file that have to be modified
with our patch). We tested the patch with the ns-allinone-2.33
package (which includes ns2-2.33 version). The package has been
installed on a Linux Debian 4.0 rc3 distribution. These are the
suggested steps:
- extract the original package files from the original distributed
archive (eg. in "ns-allinone-2.33/" directory);
- go to the this directory (eg. "ns-allinone-2.33/") and put our
"ns2-cdn.patch" file here;
- execute the patch command in this current directory from a shell
with this line:
hostname$ patch –p0 < ns2-cdn.patch
This will add a new directory in ns2-2.33 folder, called "cdn" and
modify the makefile.in and the packet.h file respectively in the
"ns2-2.33" and "ns2-2.33/common/" folder.
Now you can execute the "install" command in ns2-allinone-2.33
folder.
For every future change to the initial "cdn" code, just execute a
make command and a make install.
Note you can install this code also on a yet "installed"
ns-allinone-2.33 package, but it will only work only if it was not
modified.