Adding New Protocol

Step 1: Create new header and source files for new proposed algorithm.

Step 2: Put these files inside respective folder /home/user/ns-allinone-2.–/ns-2.–/

Step 3: Need to place that information in Makefile.in (in ns-allinone-2.–/ns-2.–/). Open Makefile.in using any editor (usually vi or gedit) and add the folder information to the OBJ_CC variable)

Step 5: Put new proposed algorithm information anywhere inside the OBJ_CC variable

For example: “propalgo/propalgo.o \”

Step 6: After editing the file entry, follow these steps:

1. Go to /home/user/ns-allinone-2.–/ns-2.–/

2. ./configure // replace Makefile with modified one.)

3. make clean //(*optional) use this, If you want to recompile the whole ns2.

4. make //this will make all object files which are missing

Compilation will be success if there are no errors in the modified code and NS will be created.

Step 7: Run TCL script for the new protocol.

Leave a Reply

Your email address will not be published. Required fields are marked *