RCP's patch for NS2 is available on the above link for NS-2.28 and NS-2.30 versions.
Follow the steps given below to apply RCP's patch to NS-2.35:
1. Download ns-allinone-2.35.tar.gz
2. Download rcp-ns2-35.patch
3. Unzip ns-allinone-2.35.tar.gz. You will get a folder named ns-allinone-2.35
4. Paste the downloaded RCP patch in the above mentioned folder.
5. Give the following command:
patch -p1 < rcp-ns2-35.patch
6. Go in ns-allinone-2.35 via terminal and give the following command (It is always recommended to be in root mode while giving the below command):
./install
If you already have an installed copy of ns-allinone-2.35, then follow the steps given below to apply the RCP patch:
1. Paste the downloaded RCP patch in ns-allinone-2.35 directory.
2. Give the following command:
patch -p1 < rcp-ns2-35.patch
3. Go in ns-allinone-2.35/ns-2.35 directory and give the following commands:
./configure
make clean
make
make install
You are done with it!
Sample TCL Scripts:
Use the sample TCL Scripts provided on the official website of RCP. Following is the link:
http://yuba.stanford.edu/rcp/#implementation
rcp-ns-2.30.tar.gz must be downloaded from the above link. It contains a folder named "example-tcl-files" which contains the sample TCL Scripts.
A Note on the installation of ns-allinone-2.35:
You may or may not get installation errors depending on which version of
gcc is used in your OS. With Ubuntu 10.04 (gcc 4.4.3), the installation
procedure did not give any error. However, with later versions of
Ubuntu there are chances that you may get a few errors.