NS2 Scenarios Generator (NSG) is a tcl script generator tool to generate TCL Scripts automatically . . . !!!
It is created and maintained by Peng-Jung Wu, Department of Computer Science and Engineering, National Sun Yat-Sen University, Kaohsiung, Taiwan.
NSG is a Java based tool that runs on any platform and can generate TCL Scripts for Wired as well as Wireless Scenarios for Network Simulator - 2. The procedure to execute these TCL Scripts on NS-2 is same as those of manually written TCL Scripts.
Some of the main features of NS2 Scenarios Generator (NSG) are as mentioned below:
(1) Creating Wired and Wireless nodes just by drag and drop.
(2) Creating Simplex and Duplex links for Wired network.
(3) Creating Grid, Random and Chain topologies.
(4) Creating TCP and UDP agents. Also supports TCP Tahoe, TCP Reno, TCP New-Reno and TCP Vegas.
(5) Supports Ad Hoc routing protocols such as DSDV, AODV, DSR and TORA.
(6) Supports FTP and CBR applications.
(7) Supports node mobility.
(8) Setting the packet size, start time of simulation, end time of simulation, transmission range and interference range in case of wireless networks, etc.
(9) Setting other network parameters such as bandwidth, etc for wireless scenarios.
The Snapshot of NSG is as shown below:
It is created and maintained by Peng-Jung Wu, Department of Computer Science and Engineering, National Sun Yat-Sen University, Kaohsiung, Taiwan.
NSG is a Java based tool that runs on any platform and can generate TCL Scripts for Wired as well as Wireless Scenarios for Network Simulator - 2. The procedure to execute these TCL Scripts on NS-2 is same as those of manually written TCL Scripts.
Some of the main features of NS2 Scenarios Generator (NSG) are as mentioned below:
(1) Creating Wired and Wireless nodes just by drag and drop.
(2) Creating Simplex and Duplex links for Wired network.
(3) Creating Grid, Random and Chain topologies.
(4) Creating TCP and UDP agents. Also supports TCP Tahoe, TCP Reno, TCP New-Reno and TCP Vegas.
(5) Supports Ad Hoc routing protocols such as DSDV, AODV, DSR and TORA.
(6) Supports FTP and CBR applications.
(7) Supports node mobility.
(8) Setting the packet size, start time of simulation, end time of simulation, transmission range and interference range in case of wireless networks, etc.
(9) Setting other network parameters such as bandwidth, etc for wireless scenarios.
The Snapshot of NSG is as shown below:
To execute NSG you need to install Java 6.0. NSG does not require any installation . . . !!! Just double click on the jar file to launch NSG. If it does not work, please see the instructions provided on the homepage of NSG here.
For more information on NSG and its previous versions, please visit the homepage of NSG here.
For more information on Peng-Jung Wu, please visit the homepage here.
It is very Useful.... The Headache of writing TCL script is not there now... In no time we can generate Tcl Scripts... Thanku..
great tool
Hi sir,
This is nice tool..I want to manual about this tool...how to install and how to work with this tool.....
@Hai: You don't have to install it. Just make sure you have Java installed on your machine. Just download this jar file and double click. It will work!
Regarding the Manual - You can download that from the official website of NSG. Link is provided in the above post.
Hope it helps.
Regards,
Mohit P. Tahiliani
how to combine wlan and wired in scenario?
Using NSG you cannot combine Wired and Wireless scenarios. You need to write it by yourself since there NSG does not generate Wired-cum-Wireless Scenarios. Follow the given link to learn how to design wired-cum-wireless scenarios:
http://www.isi.edu/nsnam/ns/tutorial/
See Section X in that tutorial
Hope it helps.
Regards,
Mohit P. Tahiliani
Sir it will be helpful if you can tell the steps for defining the nodes mobility and range in wireless scenario using NSG....Thankyou in advance
@Pavithra - To configure mobility for a node through NSG you need to follow the given steps:
1. Right click on the node.
2. Select "Waypoint" option.
3. Assign a value for start time i.e. the time when node should start moving.
4. Assign a new destination(x, y) to node i.e. destination's X-axis and Y-axis respectively.
5. Assign the value for speed of a node.
6. Click Add button.
Regarding transmission range - You cannot change it through NSG!
Hope it helps.
Regards,
Mohit P. Tahiliani
Sir,my project is about providing Qos in MANETS using swarm based approach..i have a problem in running the antnet algorithm in ns2 which is an existing one...can you help me to make it out..and i ll find it really helpful if u can guide me in my implementation..i'm a beginner in ns2..and thankyou for the info on configuring nodes..
@Pavithra - Which patch of antnet you are using for simulations? What is the error?
Regards,
Mohit P. Tahiliani
I have not used any patch and followed some steps for implementation which i have mailed you..if at all you dont find any difficulty,please can you explain what is the advantage in running a patch rather than making the changes manually..to be honest i came to know about patches only from your blog..and were do we get these patches from...
Thankyou,
Pavithra
Sir,please can you sent me the link for Anthocnet simulation in ns2..Thankyou in advance..i got antnet working in ns2..and can you guide us in implementing our project?
@Pavithra - The patch for AntHocNet was earlier available on the following link:
http://sourceforge.net/projects/anthocnet/
However, it has been removed from there recently. Please check that link regularly for new updates.
Hope it helps.
Regards,
Mohit P. Tahiliani
Hi sir,
where can i get the source code of this NSG2. It'll be helpful in completing my project. Please provide links, if any.
@Parthu - You can try searching for it on the official webpage of NSG.
Recently I came across yet another TCL script generator called "Network Simulation by Mouse (NSBM)". You can download the tool as well as the source code from the following link:
http://heim.ifi.uio.no/michawe/research/tools/ns/index.html
Hope it helps.
Regards,
Mohit P. Tahiliani
Thanks for the reply
sir,
will this tool works in linux version UBUNTU???????
@Guru - Yes it works!
Regards,
Mohit P. Tahiliani
sir,
its in windows directly
i downloaded jar file by I'm unable to work with it in ubuntu..
can u plz help me out
@Guru - Make sure Java 6 or higher version is correctly installed. After installing, download NSG jar file and right click -> Open as Java application.
Hope it helps.
Regards,
Mohit P. Tahiliani
sir......we are doing our project in ns2 to implement an IEEE paper to estimate bandwidth for wireless networks.........can u please help us in doing our project
sir,
Iam doing a project which needs to compare different algorithms(reno,veno,cubic,westwood..etc) and decide which is best for wired network. Can I get the throughput values using NSG2? and I want to even plot graphs. Help me with this..
Thank you!
@Aishu - NSG provided in this blog wont help in getting values for throughput. However there is a new version of NSG which you need to check on its official webpage.
To obtain throughput and plot graphs, read following blogs:
http://mohittahiliani.blogspot.com/2010/02/few-more-awk-scripts-for-ns2.html
http://mohittahiliani.blogspot.com/2010/08/xgraph-and-awk-scripts-in-ns-2_06.html
Hope it helps.
Regards,
Mohit P. Tahiliani
Sir,
We are working on a project "Performance and Simulation comparison of mobile ad hoc routing protocols(AODV,DSR,DSDV)" Can u please help us with the TCL script.
thanks in advance
@Keerthi - Visit the following link to get more details
http://hpds.ee.ncku.edu.tw/~smallko/ns2/adhoc_routing.htm
Hope it helps.
Regards,
Mohit P. Tahiliani
sir ......we have to actually implement a new protocol called NODE BASED AVAILABLE BANdWIDTH" its actually same as.........AODV but slight modifications........
where i should have to do those modifications....and how can i get the output?sir please help us..........
Shilpa,
sir, we have to implement a new protocol against byzantine attacks for manets in adversarial environments and ti run a new protocol what changes we have to do? Can u help me regarding byzantine attacks... and i need to compare with aodv and dsr..please help me sir...
thank you Mohit
I had solve many problems by u r web site with usr coments and wit u r response
thank you very much..........
Sir
As i have already mentioned that i am working on a project "performance Evalution and simulation of mobile ad hoc routing protocols"...Could u please suggest any book which would be helpful for us
Respected Sir,
I am working on project "Security in Mobile Ad Hoc network against Flooding attack"
Can you please suggest me the TCL script for it and necessary changes which i have to made in Routing protocol (I am using AODV).
Thanks in advance.
@Samhitha - To modify AODV you need to make those modifications in aodv.cc available in the following directory:
ns-allinone-2.xx/ns-2.xx/aodv (xx represents your ns-2 version number).
@Shilpa - There is one module available for simulating byzantine attacks in ns-2. You can download it from the following link:
http://web.njit.edu/~crix/software/wormhole.html
@Keerthi - The following paper will be very much useful:
"A Performance Comparison of Multi-hop Wireless Ad Hoc Network Routing Protocols" by J. Broth et al, Carnegie Mellon University.
@Abhishek - You can create flooding attacks (in terms of RREQ packets) by implementing a new timer in aodv.cc that will flood the network with RREQ packets. If you want to create flooding attacks by using Hello packets, you do not have to create a timer because its already available in the code of AODV. You just need to reduce the interval between sending Hello packets to flood the network. More details of implementation of timers in AODV is available on the following link:
http://www-npa.lip6.fr/~rehmani/aodv_v2.pdf
Hope it helps.
Regards,
Mohit P. Tahiliani
Thanks a lot sir for help.
I have to use RREQ packets to flood the network..
Please guide me to add timer in aodv.cc.
Actually Purpose of my project is to make changes in AODV protocol and I have to create the new directory named "FloodAODV" in NS~2.34 directory.
Then I have to show via graph that how performance drops due to flooding attack and then I have to propose a new solution to avoid it and again check it through graph. I am using XGRAPH for analysing via AWK or Perl script.
Kindly help me in that issue.
Thanks in advance
@Abhishek - In AODV a function named "sendRequest" is used to send Request packets. You can re-use the Hello Timer of AODV i.e. at regular intervals call "sendRequest" like Hello Timer calls "sendHello" function. Set the interval of your timer such that it floods the network.
Hope it helps.
Regards,
Mohit P. Tahiliani
sir,
my project is to build a GUI that will generate tcl script for the wireless network,,,,,
plz help me in coding,,,
otherwise ,,i like to see a demo of the project,,,,could u plz help me;;;
Sir, Thanks for help sir..
But i am finding difficulty in modifying the code for AODV.cc
Can you please help me via TCL script for flooding the network.
I have made changes in AODV protocol and after recompiling, it gives error.
Sir, Please reply to my post , as soon as possible.
Any kind of help would be greatly appreciated..
@Chandan - Recently I came across yet another TCL script generator called "Network Simulation by Mouse (NSBM)".
You can download the tool as well as the source code from the following link and try to incorporate more features:
http://heim.ifi.uio.no/michawe/research/tools/ns/index.html
@Abhishek - Look for flooding.tcl in
ns-2/tcl/ex directory.
Hope it helps.
Regards,
Mohit P. Tahiliani
hi... i am implementing wired cum wireless scenario in ns2... but i am unable to send message between a wired and wireless node... i am geting an error.. can u give me any idea...
Hi,
How to make a node malcious in adhoc network environment? As i mam implementing wireless scenarios with mobility, i am not getting how to make a node to drop packets.., Can u please help me regarding this..
@Nirmala - You can try simulating the sample tcl script (for wired cum wireless scenario) given in Marc Greis tutorial.
@Shilpa - You can get the details on the following link. It shows how to add a malicious node to AODV
http://elmurod.net/?p=196
Hope it helps.
Regards,
Mohit P. Tahiliani
Thanks for your useful information. You are really knowledgeable. Could you please help me with resources on how to implement PEGASIS in NS2?
Grace Iga
hello mohit sir,
hw r u??
this tool is good but there is no option to set the destination for the nodes. we can't create node movements. without this, tcl script is uncomplete and of no use. so plz can u help me in this?? i ll be very thankful to you..
@Edward - I havent come across PEGASIS patch for NS-2. If I get that patch, I will definitely inform you. Some of the patches available for Wireless Sensor Networks in NS-2 can be found on this link:
http://140.116.72.80/~smallko/ns2/ns2.htm#wireless_sensor_network
@Yogesh - There is an option to set the destination for nodes and create mobility using NSG. Go through Comment #8 of this post to know more details on how to do it.
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello sir,
I am trying ti implement packet dropping in wireless network which indicates the malcious behaviour.. But i am unable to do it..I already set the malcious behaviour in aodv protocol using Elmourd blog, but still i cant show packet drops. So could u please help me regarding that.. I need a script on the above. Please help me
Hi,
i m doing my project on ant routing algorithm in ns2.33,i could successfully 'make' after installing the antnet patch.
But when i tried to run the any antnet tcl scripts, i get error like this
"invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $sz} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
please tell me what shuold i do?is there any need for changes in makefile or any other files.plz if u have a soln plz mail me at : mongaruchika@gmail.com its urgent!!!!
Hello,
With reference to my earlier post, I saw in one of the previous posts in this series, that Pavithra had mentioned that she was able to run antnet on ns2. Could i have have please have pavithra's email id..??? Pavithra i need help...plzzz...
Regards,
Ruchika
Hello sir,
i m avinash, presently doing my graduation in hubli..i neede ur help regarding ns2...my project is upon video streaming in ns2 with optimization in wirless networks...i have been trying from many months but i m not able to get it..plz help me regrading this sir..
plz mail me at avin.yudi@gmail.com and i vl give u more details abt the project..
plz do reply very soon sir, vl b waiting
Regards,
Avin..
@Shilpa - Is the TCL script executing properly or it is popping any error? Did you re-complie NS-2 after making changes as mentioned in Ed's blog?
@Ruchika - You need to make a small correction if you have used AntNet Manual for installation.
The numbers provided for PT_ANTNET and PT_NTYPE should be swapped. PT_NTYPE should have a larger value than PT_ANTNET.
After swapping the values you need to recompile NS-2:
./configure
make clean
make
make install
@Avinash - You can use CBR traffic or other traffic options available in NS-2 to configure Video Streaming. For more details, download "TCP Evaluation Suite" and study the sample TCL scripts provided in it.
Hope it helps.
Regards,
Mohit P. Tahiliani
thanks for the rplying sir, but i m nt able to understand the concept..can u help me in executng my code..?
i m working on windows+cygwin+ns2 environment...i have the code, can u plz check where is da error bcoz i m getting er on it frm moreror stated "(null)= invalid packet type(video)"..
if u send me ur email id, den vl mail u my code..plz chekc it once and do any modifications necessary..
i have been working from more than two months on it but havent got any results..
help me out on dis sir..
thanks
Hi Mohit,
i m trying to implement anthocnet algorithm in ns2.34,i could successfully 'make' after installing the anthocnet patch.
But when i tried to run the any anthocnet tcl scripts, i get error like this
"invalid command name "Agent/Anthocnet"
while executing
"Agent/Anthocnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Anthocnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $sz} {incr i} {
set nn($i) [ new Agent/Anthocnet $i]
}"
please tell me what shuold i do?is there any need for changes in makefile or any other files.if u have a soln plz mail me at : hpr3929@gmail.com. i tried patching antnet also i got the same error...pl help me
@Avinash - The following link may help you:
http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm
@Rakshith - Anthocnet patch is not complete. There are many functions that are only declared but not defined. Even the Makefile is not modified in that patch. I hope the authors will update it soon.
Hope it helps.
Regards,
Mohit P. Tahiliani
@Mohit - Thank u... But the author have made many revisions on the code present in http://sourceforge.net/projects/anthocnet. they have added few lines in Makefile also. I am not sure if the code is right.I tried going thru that code but i found it little complicated and could not analyze it properly.I kindly request you to check the code once and help me so that i can complete my project..
regards
Rakshith
@Rakshith - The patch on that link has not been updated since September 2010. We are extensively working on implementing AntHocNet in NS-2 and we have been successful in doing that. As of now the document is under Review and we hope to make the patch and document publicly available in May 2011.
Regards,
Mohit P. Tahiliani
@Mohit - Its nice to hear that you have implemented AntHocNet.Can you please share the code and steps followed to implement with us as we have to submit our final year project by the end of this month.My email id is hpr3929@gmail.com. We would be very grateful if you help us out with this.
Regards,
Rakshith
Sir, i am implementing ARQ in wimax with help of NS-2.i have installed ns 2.35 but its not supporting to wimax.so i used patches for installing wimax but it shows error at the time of ./configure; make clean ; make..please give me any idea. Thank you. my email id rohitbukate@gmail.com
@Rakshith - The code is still under review and we need to thoroughly verify it before releasing it. I will upload it on the blog as soon as I get reviews (hopefully positive :)) from the reviewers.
@Rohit - Which patch have you tried to install. You may check the patch available on the following link:
http://www.lrc.ic.unicamp.br/wimax_ns2/
Note that it is designed for ns-2.28.
Hope it helps.
Regards,
Mohit P. Tahiliani
@Mohit- Thanks a lot sir..we will also try to do our best to get it working
Regards
Rakshith
what is the command for showing number of packets for particular node to node in ns2?
Hi sir
I am trying to simulate antnet in ns-2. I got the Antnet-for-ns2.34 from internet and pasted the files in it in the ns directory. Now when i run a tcl script using those, I get the error message
invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < [expr $sz_x * $sz_y]} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
(file "noc.tcl" line 38)
I checked my common/packet.h file. The PT_NTYPE has a larger value than PT_ANTNET(63 and 62).
Kindly help me.
Regards,
Rohit
@Nagamani - You need to find out that from the trace file. However if you are using CBR you can manually count it by using "interval_".
@Rohit - Once again check the code that you have modified using the AntNet manual. The error is coming because AntNet Agent Class is not being properly called from TCL. It is failing to recognize the command. Make sure you have done modifications in ns-default.tcl as well.
Hope it helps.
Regards,
Mohit P. Tahiliani
Hi sir,
avinash here..i m doing proj on video streaming in wireless networks...my simualtion model includes wired cum wireless network..
i have done the video streaming but the prob i m facing now is to optmize at application layer..
i need to optmize at application layer by taking parameters like buffer management n rate control..i dont knw where to include or how to implement those two parameters..
plz kindly help me regarding this sir..
sir I am working in 802.15.4
I downloaded the tcl script generator.but it has option only for 802.11
what do i have to do for generating scripts for 802.15.4?
Hello Sir,
This is Anand
I am working on DSDV, DSR, TORA, AODV, routing protocols. I need an sample for 20 nodes, i need packet drop and node moment and xgrph also..later i will modify..
plz...
@Avinash - Buffer management can be simulated by appropriately setting "ifqlen" parameter and rate control can be achieved by setting "interval_" parameter or "rate_" parameter of CBR.
@Pinu - Just replace Mac/802_11 by Mac/802_15_4 in your TCL script. Sample TCL scripts for 802.15.4 are available in the following directory:
ns-allineone-2.xx/ns-2.xx/tcl/ex/wpan
@Anand - You may get some help from the following link:
http://hpds.ee.ncku.edu.tw/~smallko/ns2/adhoc_routing.htm
Hope it helps.
Regards,
Mohit P. Tahiliani
Dear sir,
I'm trying to implement DSR protocol in NS2 and when i run the script generated by NSG i get the following error...
num_nodes is set 20
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault
I've defined the agents and applications in the code though. The same code works well for AODV protocol but when i try to simulate for DSR i get the above error... Pl suggest me some way to overcome this error...
Thank you..
Deepak.
@Deepak - Change the interface queue (ifq) from
Queue/DropTail/PriQueue or Queue/DropTail
to
CMUPriQueue
Hope it helps.
Regards,
Mohit P. Tahiliani
thank you sir... it worked..
I've one more doubt.. When i execute the code for AODV protocol, the code works fine regardless of the source and destination i fix { i mean the nodes i choose for attaching udp and null} but in case of DSDV protocol packet transmission occurs only if i choose the nodes that are neighbours or at one hop distance... for other cases i don't get any packet transmission in the nam and also i get the packet sent and received as zero if i execute awk script... i've mailed you the code... and i don't understand why this happens sir... can u help me understand this sir?
Regards,
Deepak.
thanks fr the useful information sir..
i have one more doubt sir..i m wrking on 802.11 wireless networks..my simulation model consists of 802.11b..i dnt knw how to make the changes in the TCL script...
is tat wen we write 802_11 in the TCl script it is considered as 802.11b default or any other changes has to be done..?
@Deepak - That happens because DSDV is a proactive routing protocol - means it forms a routing table even when there is no demand from the source to send the packets. You should not start sending packets immediately after starting the simulation because the routing table is not yet formed by then. Instead start sending data after 20 seconds i.e. start your "cbr" or "ftp" at 20 seconds or later so that by then the routing table will be formed.
@Avinash - To configure 802.11a,b,g, etc in NS-2 see Question #6 on the following link:
http://www.cpe.ku.ac.th/~aphirak/myweb/wpress/2009/09/26/%E0%B8%9A%E0%B8%B1%E0%B8%99%E0%B8%97%E0%B8%B6%E0%B8%81-ns2-faq-%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B9%80%E0%B8%A7%E0%B9%87%E0%B8%9A-httpweb-syr-edudchen02faq-txt
Hope it helps.
Regards,
Mohit P. Tahiliani
hi sir... should i start the cbr transmission at 2.0 instead of 1.0? i'm sorry i could not understand the previous post.. even when i simulate the dsdv protocol with cbr start time @ 2.0 i don't see any packets sent and don't get the packets sent and received while executing awk script. am i doing something wrong sir? Pl help me.
hello sir,
i'm trying to implement centralized DNS approach for MANET. I'd like to know how multicasting can be implemented in wireless using NS2.Please help me implement multicasting.
Suresh
@Deepak - 2 Seconds is not enough. Try starting cbr after 20 seconds.
@Suresh - Install ns-allinone-2.35. By default it includes a well known multicast routing protocol called PUMA. A sample TCL script is also provided in
ns-allinone-2.35/ns-2.35/tcl/ex directory
Hope it helps.
Regards,
Mohit P. Tahiliani
Sir,
Can we make hybred scenerio in TCL generator? like proposed scenerio in "Improving TCP Performance overWireless Networks with Collaborative Multi-homed Mobile Hosts".
hello mohit !
I also want to post comment by logging-in your site... But not finding the write criteria to join u...Please help me sir.....
Regards
I am making performance analysis between aodv , dsr and dsdv.....So , I have downloaded .awk script from "Few more AWK Scripts for NS2"... But these scripts are not working fine on my .tcl files... I know little about awk scripts... How to start to measure the performance of network !!!!
Shruti
@TIME GROUPS - No you cannot create a hybrid scenario using NSG since it supports only Wired and Wireless networks. Wired cum Wireless scenarios cannot be generated.
@Shruti - Your trace file format might be a new trace format. You can convert it to old trace format by commenting the following line in your TCL Script:
$ns use-newtrace
Following link may be helpful to analyze the performance of AODV, DSDV and DSR:
hpds.ee.ncku.edu.tw/~smallko/ns2/adhoc_routing.htm
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello Mohit
Can you give some steps for simulating static and mobile WSN in NS2. I want to know whether I am going right or not. I am currently working on routing problem for mobile wSN. I have tried to do some simulation using mannasim. I can get successful trace file but the nam file is not working
Hello Mohit
I am raghav. Can you give some steps for simulating static and mobile WSN in NS2. I want to know whether I am going right or not. I am currently working on routing problem for mobile wSN. I have tried to do some simulation using mannasim. I can get successful trace file but the nam file is not working. My problem lies in proposing a new algorithm probably using geographic routing for mobile wsn
I am at this point in dilemma about whether the tcl script for simulating the base wsn scenario is correct or not. Please put your suggestions. Waiting for reply,
Also please ignore the previous post
Thanks
Raghav
@Raghav - Mannasim does not support NAM files and hence you cannot see the scenario created by the TCL Script generated from Mannasim. You can try to use NRLSensorsim patch which supports NAM as well.
GEAR (Geographic and Energy Aware Routing protocol) is available in the default package of NS-2 but it has limited functionality. For more details on GEAR please see the following link:
http://lecs.cs.ucla.edu/~yanyu/software/gear.html
Hope it helps.
Regards,
Mohit P. Tahiliani
thanks for the suggestions. I will install NRL Sensorsim and simulate a WSN. How do I know that TCL script generated performs likea WSN.
Also I tried yesterday to utilities from NS2 viz setdest and cbrgen.tcl. I created the two files and further simulated a mobile network with 802.11 mac for 16 nodes. It worked fine, but when I run nam file it also runs showing all nodes, mobility etc. but at end say node-- not defined. Can I use Bonnmotion to simulate random mobility in WSN
regards
Raghav
@Raghav - When you install NRLSensorsim, you can use the TCL Scripts provided in the patch designed specifically for WSN. The patch provides around 15 TCL Scritps with different number of nodes (upto 400 nodes) and varying scenarios (e.g. a mobile relay moving across entire network).
To generate random mobility, setdest works well. If you want any other type of mobility such as Manhattan mobility, etc you may opt for Bonnmotion.
Hope it helps.
Regards,
Mohit P. Tahiliani
hello mohit !
what code u have provided at hpds.ee.ncku.edu.tw/~smallko/ns2/adhoc_routing.htm
some error is coming while executing this command :
[root@localhost bin]# ./ns adhoc.tcl DSDV cbr-50-10-2 scene-50-0-20-100-500-500
num_nodes is set 50
invalid command name "-llType"
while executing
"-llType $val(ll) \
"
(file "adhoc.tcl" line 95)
what could be the reason behind it??
Dear Mohit
I have done a small code for OTCL linkage
//my.h
#include"object.h"
class MyObject : public TclObject {
public:
MyObject();
virtual ~MyObject() {};
};
//my.cc
#include"my.h"
#include
static class MyObjectClass : public TclClass {
public:
MyObjectClass() : TclClass("MyOtclObject"){}
TclObject* create(int, const char*const*) {
return (new MyObject);
}
} class_my_object;
MyObject :: MyObject() : TclObject()
{
cout<<"\n hello";
}
I have added the entry in makefile at mytry/my.o
Then i compiled ns again
make clean
make
and then exectued ns but get error
diamond@diamond-laptop:~$ ns
% new MyOtclObject
class MyOtclObject: constructor failed: invalid command name "MyOtclObject"
Can you help me detect the error
Also please ignore the previous post
Dear mohit,
sir i'm new to NS2 i'm doing project on 3-Approximation Algorithm for Joint Routing and Link Scheduling in Wireless Relay Networks can u plz help me how to go thro.
with regards,
chiru
@Shruti - Make sure if "-llType $val(ll) \" is properly declared in the beginning of the TCL script or if it is the last line in node-config, then you must delete "\" symbol.
@Raghav - What is MyOtclObject supposed to do? You can try attaching this object to a node object in TCL script rather than directly running it in interactive mode.
@Chiru - Do you have a sample code for that or you need to design it from scratch? Please visit "Useful Links" page of this blog to get appropriate tutorial.
Hope it helps.
Regards,
Mohit P. Tahiliani
Hi Mr Mohit. I am completely new to NS2. I am in serious trouble. I have produced a trace file from a tcl file. I have already emailed you the trace file. all i need is the procedure to extract data from the trace file. i just need time in one column and throughput in another column and nothing else in the file. Please help me with the problem i am facing now. you can send me email at skhaledreza@yahoo.com
It will be very kind if you please help me. Thank You.
Regards
Khaled
@Khaled - You can refer my another post named "Xgraph and AWK Scripts in NS-2" to know how to extract data from trace file. AWK Script for throughput is provided in this blog. You may use it by modifying as per the guidelines provided in "Xgraph and AWK Scripts in NS-2" post.
Hope it helps.
Regards,
Mohit P. Tahiliani
hi Mohit,
Dear i need to implement hybrid protocols in NS2.34 but i am unable to find patches for SHARP and ZHLS. can u help me in this regard. thanks in advance.
Hi Sir,
I am currently working on implementing different swarm-based algorithms in NS2, I have successfully implemented algorithms such as the Bee-hive and others, I am quite a bit stuck up in AntHocNet algorithm, although, I have been able to round up the error, the code used from the sourceforge webiste, has some implementation problems associated with it in TCL linkage, due to time constraints and deadline of my project coming up soon, It would be very kind of you if you can help me with the AntHocNet algorithm in NS2 or ACO implmentaion in MANETS (Mobile Ad Hoc Networks).
Also, How do I post an algorithm in the blog???
Thanks.
hello mohit !
i want to implement wormhole in my aodv code... how byzantine code i.e. http://web.njit.edu/~crix/software/wormhole.html
can help me to implement wormhole??
@Codeportal - I have not come across NS-2 patches for SHARP and ZHLS. However, HLS patch is available on the following link:
http://www.cn.uni-duesseldorf.de/alumni/kiess/software/hls-ns2-patch
@Haroonj - Our group has implemented AntHocNet in NS-2. The patch is under verification and will be uploaded on the following site soon:
http://wing.nitk.ac.in/downloads/
@Shruti - Wormhole attack implementation is available in the patch given on the following link:
http://apachepersonal.miun.se/~qinwan/resources.htm
Hope it helps.
Regards,
Mohit P. Tahiliani
@Mohit - I implemented the wormhole code by using this link :
http://elmurod.net/?p=196
Now, i want to detect wormhole... Please tell me which site will help me to detect wormhole... Thanx in advance..
hi sir ...i want to do wired cum wireless scenario .. can i use this tool to generate..
@Shruti - If the wormhole attack created by you is such that it starts dropping packets, you can use Packet Delivery Ratio as a means to detect it. Less number of packets will be delivered if there is a wormhole attack.
@Nandhu - No! this tool does not support Wired-cum-Wireless Scenarios!
Hope it helps.
Regards,
Mohit P. Tahiliani
hi sir..iam doing project for transmitting image over WSN(ns2.28) so which patch files i need to install.
thanks
@mohit - how to add mobility using connection pattern and scenario?? Please tell me in details about it......
@Rajshree - See my another post on the following link:
http://mohittahiliani.blogspot.com/2010/02/installing-ns226-with-nrlsensorsim-on.html
@Shruti - Use the TCL Script provided on the following link and follow the steps mentioned on the webpage:
http://140.116.72.80/~smallko/ns2/adhoc_routing.htm
Hope it helps.
Regards,
Mohit P. Tahiliani
@mohit - I have tried this code... but the error is coming..
[root@localhost bin]# ./ns adhoc.tcl DSDV cbr-50-10-2 scene-50-0-20-100-500-500
num_nodes is set 50
invalid command name "-llType"
while executing
"-llType $val(ll) \
I have tried a lot to find this error... But nothing finds..
@Shruti - If you have modified the node-config and if "-llType $val(ll) \" is the last line in node-config, then you must remove "\".
If you have not modified but still you are getting this error, then you need to check for typos in the TCL script, e.g.: a comment from one line might have slipped on the next line, etc.
A similar TCL Script is also available on the following link (last one on the page):
http://mohit.ueuo.com/TCL_Scripts.html
Command to run:
ns adhoc.tcl Routing_Protocol Traffic_Pattern Scen_Pattern
Hope it helps.
Regards,
Mohit P. Tahiliani
@mohit - I have downloaded the code from http://mohit.ueuo.com/TCL_Scripts.html
but some problem occurs ...
[root@localhost bin]# ns adhoc.tcl DSDV cbr-50-10-2 scene-50-0-20-100-500-500
num_nodes is set 50
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Start Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
[root@localhost bin]#
why is NS getting excited ??
@Shruti - This is not an Error. Your simulation has completed successfully!
"NS EXITING..." comes because it is printed from the "adhoc.tcl". See the last few lines of "adhoc.tcl"
Give the following command to see NAM:
nam adhoc.nam
Hope it helps.
Regards,
Mohit P. Tahiliani
@mohit - There is no movement of nodes in the adhoc.nam .... Can i use the same awk files downloaded from your site to calculate the performance of adhoc.tcl ??
hi sir,
As you have given me suggestion to install NRLSensorSim but iam using mannasim patch file in ns2.29. can i know whether it is possible to transmit images by using this in WSN?
Hello sir....
I am working with zigbee network. I tried to use the TCL script generator also by editing 802.11 to 802.15.4 in the TCL script but still getting errors...
Please guide me some manual for information about the commands used in the sample TCL scripts for zigbee as you suggested above.
hello sir i need source code this jar file..i need very urgent i do wsn agent based project pls where i can find source code..
@Shruti - Yes you can use the AWK scripts provided on this blog for post analysis of adhoc.tcl.
@Rajshree - You cannot directly transmit images using any patch i.e. NRLSensorsim or Mannasim. You will have to use additional tools. See the link given below for more details:
http://www.item.ntnu.no/~arnelie/Evalvid-RA.htm
@Nakul - Sample TCL Scripts for 802.15.4 are available in the following directory:
ns-allinone-2.xx/ns-2.xx/tcl/ex/wpan
@Need NSG2 Source Code - Source code of NSG2 is not available. Try looking for it on the official page of NSG.
Recently I came across yet another TCL script generator called "Network Simulation by Mouse (NSBM)".
You can download the tool as well as the source code from the following link:
http://heim.ifi.uio.no/michawe/research/tools/ns/index.html
Hope it helps.
Regards,
Mohit P. Tahiliani
Thank you sir..
I wanted to ask you one more thing that how can we create a .scn file for any wireless network simulation?
@Nakul - .scn file is a scenario file. You may refer Section XI of Marc Greis Tutorial to know the details of to generate scenario files.
http://www.isi.edu/nsnam/ns/tutorial/
Hope it helps.
Regards,
Mohit P. Tahiliani
Dear Sir,
I want to simulate 802.11n frame aggregation. Can we simulate this usning NS2. Is there any kind of patching is required for the same.
please guide me to do this.
Thanks & Regards,
Ninad.
@Ninad - 802.11n is not available in the allinone package of NS-2. You may try applying the MIMO patches provided in this blog and configure 802.11n settings as we configure 802.11b and other versions of 802.11.
Hope it helps.
Regards,
Mohit P. Tahiliani
hello sir,
i want patch file of aomdv for ns2.29.can tell me from which site to download.
thanks ®ards
k.rajshree
@Rajshree - AOMDV is available in ns-allinone-2.34 by default! You may use that. If you want only for ns-2.29, try mailing the author of the following post:
http://mailman.isi.edu/pipermail/ns-users/2007-May/060048.html
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello sir,
how can i add the routing protocol and energy models in NSG2.1
@Subburaj - You cannot do that since the source code of NSG is not available! After generating the TCL Script you can replace the routing protocol name by routing protocol's name and manually add energy model!
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello sir,
how can i write the coding to simulate intrusion and detection system in ns-2.34. i want to develop the IDS for MANET. pls give the guidance for the same.
sir,
how to implement various node mobility models without using bonnmotion.
sir..i want to simulate ZHLS and CEDAR routing protocol using ns2..?how?can or not?i want to simulate this two routing protocols in wireless mesh?plz tell me how?im stucking in my dissertation...!my email marstar14@yahoo.com..thank u.
@Subburaj - IDS has already been implemented in NS-2. Following links may be useful:
http://apachepersonal.miun.se/~qinwan/resources.htm
http://arqos.csc.ncsu.edu/software.htm
@Vani - NS-2 by default provides Random Waypoint Mobility Model. To use other mobility models, Bonnmotion is a nice patch which is regularly updated. For VANETs you may use SUMO/MOVE to generate mobility scenarios.
@Katahatiku - I have not come across NS-2 patches for CEDAR and ZHLS. However, HLS patch is available on the following link:
http://www.cn.uni-duesseldorf.de/alumni/kiess/software/hls-ns2-patch
Hope it helps.
Regards,
Mohit P. Tahiliani
sir how can find tora tcl script and its related traffic file for 10 nodes.i am using ns-2.31 .i am helpless.plz help me.my thesis topic is"performance analysis of AD-HOC routing protocols in wimax environment".
hello,
do you have any idea regarding vanet, i have to do project on this,how to start
Hi sir i'm mohandass doing MCA in VIT university form vellore in Tamil Nadu .I have taken my 5th sem project as Intrusion Detection system in Ns-2 .But i don't know how to create various types of malicious attacks and detect that attacks in ns2. If you know tell me plz sir plz... my mail id is mohandass_09@yahoo.in
@Mithu - To simulate TORA protocol in NS-2, just replace the name of routing protocol from AODV/DSDV/DSR to TORA. However, you need to follow the steps given on the following link to successfully simulate TORA. This is because the code for TORA available in the default package of NS-2 does not compile successfully.
http://erl1.wordpress.com/2010/08/10/running-tora-in-ns-2-34-on-ubuntu-10-04/
@Yash - VANET Simulation in NS-2 can be carried out using some Traffic generation tools such as SUMO, MOVE, etc. See the following link for more details:
http://sourceforge.net/apps/mediawiki/sumo/index.php?title=Main_Page
@Mohandas - IDS is implemented in the patch given on the following link. Also, this patch contains simulation of several attacks such DoS, DDoS, wormhole, Spoofing in NS-2:
http://apachepersonal.miun.se/~qinwan/resources.htm
Hope it helps.
Regards,
Mohit P. Tahiliani
sir, i need implement round robin and weighted round robin in IEEE 802.11 WiFi network, using NS2 and compare the power efficiency of both.
can you please guide me on how to go on with the project and how use C++ code with the TCL script.
Thanks,
Nishanth
@Nishanth - As of now Deficit Round Robin (DRR) is available in the default package in NS-2. For Round Robin and Weighted Round Robin (WRR) you may have to use NIST patch for WiMAX.
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello sir, Im working on optimization of DSR. I have run the DSR with a network of 20 nodes. I want to know how to send RREQ request packet to selected nodes in the network instead of sending it to all the neighbour nodes. So i want to know how to override send methods that are used to send request and data packets.
Sir, Please reply me soon, its very urgent.
@Harish - Following link may be helpful:
http://www.skynet.ie/~bryan/dsr_faq/
Hope it helps.
Regards,
Mohit P. Tahiliani
Thank you very much....
hello sir ,i am working on ns-2 and i need help from your side.because i am trying to modify the AODV with route investigation Scheme but still i could not implement this because i do not know where i need to modify in AODV for implementing this scheme and that is already implemented but i am searching so many on sites for this scheme but not able to find out i have only paper about this title"Route Investigation for secure Routing in MANETs" by Han-shik kim,Byung-seok Kang ,2007 IEEE conference i want to imlement that paper firstly then enhance something in this scheme but i do not have any code for this.so sir if you know something related to tis also then reply me as soon as possible from your side .....
Thank you
@Mukesh - Following link will help you to understand the source code of AODV easily and modify it as per your requirements:
http://www-npa.lip6.fr/~rehmani/aodv_v2.pdf
Hope it helps.
Regards,
Mohit P. Tahiliani
I am a final year Master of Engg. student n I will doing a project on MANET using NS-2. As a part of study phase, I studied many MAC schemes other that the DCF (which is already implemented in NS-2) from IEEE papers. I want to implement one of the new MAC schemes in NS-2. But the problem I am facing is that how should I include this new MAC scheme in the available source file "mac-802_11.cc" as this contains the MAC scheme based on CSMA/CA with backoff algorithm. And the new MAC scheme is not based on backoff, its based on sending jamming signals on the medium. The IEEE paper has also provided an algorithm.
Thank you.
hi mohit,
i need your help, i am handling a project in my company and we have T1 and dsl connection to ths store and there are around 958 stores... so, as T1 is leased lines and if we have problems in dsl line we shut down the tunnels and drive the traffic through T1.
i need a script which will help me to shut down the tunnels of X no of stores...
kindly help me.
Hello Sir,
I am implementing a new MAC scheme for MANET in ns-2, which needs to send a jam signal on the wireless medium for 1 time slot. This jam signal is simple a burst of energy n doesn't need to contain any information. Sir, please help in implementing this jam signal in C++.
Thankyou
thank you sir all you updates abt ns2 are helping for my ph.d work
@Trisha - Following links may be helpful to you:
www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf
140.116.72.80/~smallko/ns2/mac2.pdf
@Zerocool - You need a TCL Script for that?
Hope it helps.
Regards,
Mohit P. Tahiliani
hi thank you mohit for this very useful blog,
i have a probleme when i ecexut the awk script i have this error
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
what can i do ??
hi sir tis blog is of great help to me ,
i am imlementing "preventing flooding attack in manet AODV "
i dont knw t changes to make to flood RREQ .pls can u help me abt t changes to make in :) pls it urgent for my project
sir pls give me t nsg tutorial link i cant able to find
sir pls reply ,its urgent sir, any help of it could be great help
Sir,
i need to flood RREQ packets in MANET via AODV.
i have made the required changes in aodv.cc and aodv.h using this link that u have given before...
http://elmurod.net/?p=196
but i dont know how to use that "hacker" in TCL script to flood nodes.can you please guide me in how to do it
hi sir tis blog is of great help to me
sir i am gobinath ... am working with mobile agent based wireless sensor network ...is it possible to implement this in ns2...if possible means where i can get reference code for this project....
where i get the reference to "mobile agent based sensor network " coding
hello sir,
WE ARE DOING A PROJECT ON "VEHICULAR COLLISION AVOIDANCE SYSTEM"
( http://ieeexplore.ieee.org/search/freesrchabstract.jsp?tp=&arnumber=5382585&openedRefinements%3D*%26filter%3DAND%28NOT%284283010803%29%29%26searchField%3DSearch+All%26queryText%3Dtowards+an+effective+risk-conscious+and+collaborativevehicular+collision+avoidance+system )
WE ARE AMATEURS IN NS2.. WE NEED LITTLE HELP FROM U..
1. HOW TO FIND INTER NODE DISTANCE ?
2. HOW TO ASSIGN RANDOM SPEEDS TO THE NODES ? (A SINGLE NODE MOVING WITH DIFF SPEEDS AT DIFF TIMES) ?
3. HOW TO FIND THE NO OF COLLISIONS OF NODES WHEN THEY MOVE RANDOMLY ?
4. HOW TO DRAW GRAPH ? (EG.INTER NODE DISTANCE Vs SPEED)
5. HOW TO EDIT THE MAC PROTOCOL 802.11 IN NS2 ?
PLS REPLY SIR !!!!
I HAVE SEARCHED MANY SITES BUT COULD NOT GET SUITABLE ANS!!
EVEN THE NS2 MANUAL DID NOT ENLIGHTEN US ON THESE BASICS !
PLS REPLY AS SOON AS POSSIBLE !
SUGGEST SOME RELEVANT USEFUL LINKS IF POSSIBLE..
WAITING FOR UR REPLY.....
PRAJAKTA@@@ : Hello sir , I m trying to implement modification of DSR.. for that i want understand DSR in NS2.. so how should I proceed in NS2? So than i could be able to find out which module i have to change? PleSE REPLY
Hello sir, we are trying introduce attacks and provide security to the existing AODV in ns 2. Where should we make the changes and how? it would be helpful if we can get links to some sample codes that deal with these issues.
hi...I am new in ns2. I am doing my project in "Load Balancing in Wireless Mesh Network". I am trying to create gateway in the network. I shall be very much grateful to you if you suggest me how should I do this.
hello sir
i am new in network simulators, i have NCTUns 6.0 simulator,
i am interested to study this simulator, this simulator is useful for my research work (wireless sensor network)
I am a BSc in CSE student.I need to ns2 code to simulate for "total dominant pruning algorithm".please if this code have anyone help me out.
rony_06cuet@yahoo.com
Thanks in advance.
I am developing a resource congestion control protocol in sensor networks as Masters. Any tcl script tip is highly appreciated. Thank you.
Hi..Sir
We are doing project on "secure neighbor position Discovery in VANET".we are facing some difficulties such as
1)how to measure distance between two mobile nodes moving with different velocities.
2)how to integrate our security algorithms.
pls reply..
thanking you.
SIR please help me with the code for adding malicious nodes sir.pls help me sir
hello sir, i am trying to implement anthocnet in ns2, a new folder of source code has been added on source forge, is it a complete code?
Hi Mohit,
I am trying to implement a unicast proactive protocol which is given in the document available on internet (i.e., Implementing a New Manet Unicast Routing Protocol in NS2, authors:Francisco J. Ros, Pedro M. Ruiz). I have made all the changes as described in the documented and compiled successfully but when i run the tcl script i get a an error:
vishwanath@ubuntu:~/ns2/ns-allinone-2.34/ns-2.34$ ns protoname.tcl num_nodes is set 5
warning: no class variable Agent/Protoname::accesible_var_
see tcl-object.tcl in tclcl for info about this warning.
INITIALIZE THE LIST xListHead
(_o17 cmd line 1)
invoked from within
"_o17 cmd if-queue _o20"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent if-queue [$self set ifq_(0)] "
(procedure "_o14" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 82)
(Simulator create-wireless-node line 82)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
$node_($i) set Y_ 0.0
$n..."
(file "protoname.tcl" line 49)
Can you please help me in running this script successfully.
Hello Sir,
Can you please send me the code for Anthocnet together with the steps to implement it in ns2.34 as i need to submit my project on it.... My mail id is garapatiaparna15@gmail.com.....Plz mail me as soon as possible...Thank you
hello sir,
im getting the folowing error wen i run tcl script using wfrp prrotocol...
num_nodes is set 3
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set mnode_($i) [$ns node]
}"
(file "wfrp.tcl" line 75)
Pl tel me wats wrong with my program ....reply asap sir..its urgent...
hello sir ,
iam doing project on database restoration for mobility management,so can u plz just help me to write scripts for this .......and scripts for exact cell hit ratio(ECHR),adjacent cell hit ratio(ACHR). thanks in advance ..........
Hi
could please tell how to add a malicious behaviour to the node using dsr protocol
hello sir
i'm dng proj in wireless sensor network.i want to know how to select the cluster head for dynamic clustering.can u pls help
I was able to access GUI in windows 7 but is there any way that i can use this same GUI in Linux Ubuntu 11.10
and if yes then how?
If I need to transmit packet from node(i) to node(j) in wireless network by unicast scenario (no broadcast and no multicast), what do you know which commands I should use in TCL script?
good evening sir
sir i need your help.
would please tell me the procedure to transmit video sequences through ns2.sir please tell me.
sir is it possible to implement DOS attack in NSG?
Hi,
I am working on Antagent algorithm, I am running on NS2 with the help of fedora.
I have tcl script with me,When I run the tcl script I get following error:
ns: [Simulator instance] get-drop-queue 0 5:
(_o3 cmd line 1)
invoked from within
"_o3 cmd get-drop-queue 0 5"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"[Simulator instance] get-drop-queue 0 5"
Can you please help me to workout on this???
What I need to do ?
Sir, how can we input video file in NS2?
can u tell how to do clustering .....my project is distributed rouiting using topology database and clustering techniques....please reply with ur valuable commen
how to find out the shortest path in clusters...it may inter cluster or intra clster
Hi,
I am doing a project on Antnet and i am getting the following error. pls help me.
pooja@ubuntu:~/pooja/ns-allinone-2.35/ns-2.35$ ns antnet.tcl
invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $sz} {incr i} {
set nn($i)[new Agent/Antnet $i]
}"
(file "antnet.tcl" line 45)
sir can we create multicasting in this....i want wireless multicasting/....in this i need zone formation,tree construction also....wil u please send me de code?...please do reply...m running out for de code...
Sir can i create multirate scenario using this? please sir reply me as soon as possible.
Sir,
I have the same doubt as many have already asked..
invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < [expr $sz_x * $sz_y]} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
(file "noc.tcl" line 38)
I have also made the changes in ns-default as given in the manual. Even then, the error pertains.. How to fix this? Could you please help me with this.. Thanku
sir is there any NSG for 802.15.4 ...your previous version is jxt for wi-fi ie 802.11.....please help
can i have a manual about this tool in English. bcoz on website it is in Chinese only.
Hi sir,
it is possible to create a wimax scenario using this tool?
Please send me the NS2 Scenarios Generator 2(NSG2) manual
Hello Sir,
Can u give me a TCL Script for SAODV protocol
Hello,
I saw in one of the previous posts in this thread, that Pavithra had mentioned that she was able to run antnet on ns2. Could i have please have pavithra's email id..??? Pavithra i need help in my final year project.
Regards,
archana
sir
Any pls tell me how to run SAODV protocol in ns2. how to create patch files for SAODV protocol. need tcl script for SAODV protocol
Sir Please send me Manual of NSG
sir , when i was simulating anthocnet routing protocol.Using make command,I created object files,but when i start running the tcl script ,I got an error
"floating point exception(core dumped).please tell me how to solve this problem
Radhika
Hello sir,
I am working on a project in I.I.T.Delhi in which I need to simulate a wireless sensor network as described below:
4 nodes transmit data to a 5th node, which is at a distance of 50metres, following IEEE 802.15.4 protocol standard. The 5th node performs certain processing on the data collected from these 4 nodes and transmits it using gsm to a base station several kms away....are these protocols available in ns2.35 version.
Also my data throughput is 8kbps..but the IEEE 802.15.4 transceiver am using has 250 kbps over the air data rate for 2.4 Ghz ISM band..How can i specify such parameters in ns2.35?
I am new to ns2..I hope you would help me.
Faiza
I was able to access GUI in windows 7 but is there any way that i can use this same GUI in Linuxmint Ubuntu 12
and if yes then how? plz help me very urgent...............
Hi,
I want to simulate wsn with mobility in ns-2.29 with mannasim. The network consists of two sensor nodes attached to the AP (located at x=50.0, y=50.0) and AP is connected to the sink located at x=0.0, y=0.0. the nodes are sensing the medium and sensing their data to AP but when give the movement pattern
$ns_ at 10.0 "$node_(0) setdest 55.0 50.0 0.72846706082168"
$ns_ at 70.0 "$node_(1) setdest 85.0 50.0 0.72846706082168"
to the nodes, AP and sink starts moving instead of sensor nodes. Node ID’s are 2 and 3 and Sink ID is 0 and AP ID is 1. Adding lines
$ns_ at 10.0 "$node_(2) setdest 75.0 50.0 0.72846706082168"
$ns_ at 70.0 "$node_(3) setdest 55.0 50.0 0.72846706082168"
Gives and error. Please guide how to resolve this issue
regards,
najma
Hii sir,
I wanted to know how to configure nodes to work as a transreceiver ? How to set a scenario in which there are 2 nodes and 1 access point? Should access point be configured differently?
Hi everybody !
How can I execute NSg on Ubuntu 10.04 ???
I tried to install java6 on ubuntu, but it doesn't work !!!!!!
It is so simple yaar..Initially i also confuse how to start it in ubuntu 10.04. but now i got it
just install java6 by ubuntu software center and then put the nsg2.1.jar folder in home directory. just give these simple commands by terminal.
java -jar NSG2.1.jar
Hello Sir,
Can you give a sample code to do make a Cluster...I'm searching it for months now.Please can anyone help me by providing some codes.
Thanks in advance!!!
Hello Sir,
Can we implement LEACH protocol using NSG2?
If not then how can I get the same?
Pls help me..
hello sir i am a research scholar can u help me out i am trying to find the topology of n nodes(general topology)of aodv protocol
How to calculate energy in aodv
hello sir im doing M.e final year..my project is to obtained QoS by estimating the bandwidth using admission control algorithm...could u help me some codes regarding QoS?
sir please help me give me link for ns2.29 patch file to install ns2.29 also give suggession
Hi,I've tried to enter to the link you give "http://apachepersonal.miun.se/~qinwan/resources.htm"
but it is not working.
I am trying to make a wormhole Connection in ns 2.35, do you have any documentation or code to see an example?
Thanks
Sir
I got the same error as many of the above asked while executing Antnet
invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < [expr $sz_x * $sz_y]} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
(file "noc.tcl" line 38)
how to resolve it?
I have all the settings as per the manual.
Please help.
plzzz sir i want anthocnet scripts in ns2.....help me plzz my email is kaur.shehnoor@gmail.com
hi everyone ,,im working on Antnet on NS2.35 and while modifying NS2 files as mentioned in pdf,, iam encountering with some error related to classifier offset ...Please help me its urgent,...send me scripts if anyone have on ma mail bhavna.dimple@gmail.com
hi i mdoing project on ns2 i want sensorsim 2.35 patch file for simulation of sensor network if u have please mail on this id hemant.bhardwaj66@gmail.com
can i use NSG for simulation of clustering protocol.
sir i want to simulate various attacks in wireless networks such as byzantine,,blackhole,,in ns2 please help me..and also i have to develop an IDS using snort with ns2 please help me on how to use snort along with ns2 to detect an intrusion..thanks in advance
Hello Mohit Sir , I am doing my project " On Reducing Broadcast Redundancy in Ad Hoc Wireless Networks". Tn This , Two algorithm is pulished : 1. Total Dominant Pruning 2. Partial Dominant Pruning .
Please Help me , How can implement this algorithm in NS2 .If you have code please send on my email id kalanig@curaj.ac.in or on that post.Please help sir......
GEET KALANI
Central University of Rajasthan.