Following this post, I ported the directional antenna and multiple interface support from TeNs to ns-2.33.
You can download my patches, and re-compile ns-2.33 to enable support for directional antennas and multiple interfaces. Don’t forget to set the NS_ANTENNA_FILE environment variable.
Assuming $NS2 points to the directory where you have the ns-2.33 sources, and that you’re using the ns-allinone-2.33 release, here’s what you have to do:
cd $NS2
patch -p1 < dir-antenna.patch
patch -p1 < multi-if.patch
./configure --with-otcl=../otcl-1.13 --with-tclcl=../tclcl-1.19
make
export NS_ANTENNA_FILE=$NS2/mobile/antenna.txt
hi,
I am trying to simulate wireless link with multiple interface, when i use adhocRouting protocol WLSTATIC, i get following error
http://gist.github.com/327076
Could you please tell me what could be the problem ?
Rameshwar on April 3, 2009 at 23:49hi,
thanks so much for sharing this.
do you also have a sample TCL script on how to use the directional antenna & multi-interface module? or a readme me will do as well
hope its not too much trouble
fizi on June 30, 2009 at 19:42fizi, this page has sample code: http://www.cse.iitk.ac.in/users/braman/tens/
cbg on July 7, 2009 at 20:27Mates,
I tried to install it on NS2.33 to experiment it. Interesting to find, in the patch, it is not using static routing as TENS thus the sample coding might not really apply directly.
Wonder how a packet be sent up and front when more than one directional antenna loaded of a particular node. How this can be controlled via flow control.
Hmm..Still half way on installation as have been attacked with numerous bugs when “make” after installing the patch.
Do share if you have your user experience here.
rgds
Saravanan Kandasamy on July 21, 2009 at 18:20Saravanan Kandasamy
svanan77(at)gmail.com
Hi,
Thank you for the 2.33 patch… I have incorporated this patch into my build and it seems to work.
You mentioned that the multi interface functionality currently works only with AODV routing protocol. I was wondering whether it would be possible for you to it to DumbAgent as well? That would be pretty useful.. thanks again!
regards,
Swaroop Sherey on August 19, 2009 at 01:48Swaroop
Swaroop, I don’t remember saying anything like that. multiple interfaces should work regardless of the routing protocol.
cbg on August 21, 2009 at 11:18Hi,
bipula on September 22, 2009 at 07:29Everything is fine after patching.
Now I need some help regarding a TCL script. I have downloaded sample_long.tcl from http://www.cse.iitk.ac.in/users/braman/tens/
I hope to get more support from u in future.
Hi,
Thank you for the 2.33 patch!, When I installed the patches, and executed my file, I have the next error:
http://gist.github.com/327071
Could you please tell me what could be the problem ?
mart8a on October 21, 2009 at 01:04I have a problem the moment the simulation:
http://gist.github.com/327069
Could do you please help me.
Jimmy on December 3, 2009 at 16:43Thanks, Jimmy S. – Ecuador
Hi, I am using ns2.34
Can the patches be used for ns2.34?
Thank you very much.
iCat on February 24, 2010 at 16:41I changed the code to the following.
It is run, but while visualizing the nam file, “node 0 is not defined”.
http://gist.github.com/327083
icat on March 1, 2010 at 09:20I haven’t tested these patches on ns-2.34, and I’m not sure if they will work. If anyone can create updated patches for 2.34, I’d be happy to post them here.
Also, please refrain from posting lengthy code samples directly or asking questions related to ns2, but not my patches.
In the future, I won’t approve comments containing more than a few lines of code. You can use Gist or Pastebin and post a link here.
For other ns2 questions, please use Stack Overflow. I wil take a look at your question if you send me a link. You can find my email address on the About page.
cbg on March 9, 2010 at 22:19