Thursday, August 20, 2009

Default Values in ns2

All the default values in ns2 are located in a file name
"ns-default.tcl"
You can fine this file in directory
"/home/uesrname/ns-allinone-2.xx/ns-2.xx/tcl/lib"

This file actually set up all the default paramters. Each default parameter is stored in the OTcl class template and copied from the class into the instance when the object is created.

1 comment:

  1. hi... can u help me out... am using ns2 for my simulations... i wanted to change the default value of advertInterval from 2 to 10. I changed it in the ns-default.tcl file. but after performing simulations, i feel the value has not changed. Is changing the parameter value in ns-default.tcl all that is required ? do i need to run any compilation before performing my simulation to bring an effect of the changed value... Any help would be of great use... Thanks

    ReplyDelete