Search This Blog

Application Layer Simulations on NS-2

Labels: , ,

A framework named "ns2-app" is developed and maintained by Xizhi Zhu to simplify the application layer simulations on NS-2.

This framework has been tested on ns-2.33.

The source code can be downloaded from the following link:

Download ns2-app-0.02.tar.bz2

After downloading, untar the downloaded folder in  ~/ns-2.33 directory and recompile NS-2.

For more details on installation and the possible errors, please visit the official website of ns2-app here.

Hope it helps.

Regards,
Mohit P. Tahiliani

Comments (37)

Hello Sir, i am working on SIP protocol's performance evaluation in NS2, do you have any idea or suggestion about it..? Its an application layer protocol, i have patched it in ns2 with patch given in RUI PRIOR's homepage(www.dcc.fc.up.pt/~rprior/ns/index-en.html)

the sip patch contains an example tcl file, but it is very simple and i dont know how to modify it or to make it complex. I just want to evaluate certain QoS parameters like, delay, thoughput, control overhead, for SIP protocol. please suggest if anything else i can add.

any kind of help will be highly appreciated, thanks in advance. My email-id is vaibhavmishra07@gmail.com

To carry out a performance evaluation, you need to consider and design a standard topology (may be from IEEE Transactions or any other reputed technical bodies). The TCL scripts provided with patches are generally meant for testing the working of the patch. Rather than modifying it, I would recommend you to design the entire script from scratch as per your requirements.

Hope it helps.

Regards,
Mohit P. Tahiliani

Dear sir. This is basappa kodada, was a m.tech student of nitk cs dept. I wanted to learn ns2 for research work. Could u please suggest me the way to learn.

@Basu - You may refer "Useful Links" page of this blog to get started with NS-2.

Hope it helps.

Regards,
Mohit P. Tahiliani

Hello Sir ,
I want to implement an encryption/decryption algorithm in application layer of ns2. could you please help me regarding this.Thank You for your help in advance

Regards
kishore

@Kishore - I have not worked with that. But if I get any useful links related to it, I will post it here.

Regards,
Mohit P. Tahiliani

sir,
i am dinesh shirsath persuing my M.E.(E&tc)at D.Y.Patil college of engg.Kolhapur.sir my project title is performance analysis of optimized MAC protocol for wireless sensor Network.in which i am comparing Optimized MAC protocol with SMAC,TMAC,DSMAC.and performance parameters are energy consumption,Avg pkt delivery ratio,and Latency.I have to get 3 graphs for above said parameters.and also i have got it for 16 nodes but the results are always varying and are not according to research paper that i am implementing .in the research paper the results are for 100 nodes.but if i increase the nodes above 50 i am geeting an error called as SEGMENTATION FAULT.so sir pls help in this matter.hope u will do this .
Dinesh Shirsath

@Dinesh - There are a few things you may try to get rid of the error.

1. Use Heap scheduler instead of calendar.

2. Ensure you havent misconfigured your connections between the nodes.

3. Check for errors in your C++ modifications to ns-2

Hope it helps.

Regards,
Mohit P. Tahiliani

okk thank u sir .i am just trying with that.

HELLO SIR.....
I am chidambar from D.Y.PATIL college of engg.
I have attended your STTP programs at the same college .currently i am working on LEACH and LEACH-C protocol . please give me idea about which version of LINUX and which version of NS can be used for this implementation

hello sir .

I am dinesh.as u told to use heap scheduler i used it but it is showing some errors.can,t read ns_use.one more error is regarding NS-2.35.once itype ns it is giving % sign which means succes installation of ns-2.35 but it is giving one statement probably Tcl wasn't installed properly.is any problem with that thats why it ishowing errors when we use Heap schedular.pls give me direction sir

@Chidambar - ns-2.33, 2.34 and 2.35 are the stable versions of ns-2 and Leach is available for ns-2.34. You can use the one with which you are more comfortable. These versions of ns-2 work well with Ubuntu 10.04, 10.10, 11.04, 11.10 and latest versions of Fedora from Fedora 12 onwards.

@Dinesh - You have not given space after "ns_" and before "use". Reinstall ns-2 once again to remove "probably Tcl wasnt installed properly". After re-installation, go in ns-allinone-2.35/ns-2.35 and give

make install (you must be in root mode for executing this command)

Hope it helps.

Regards,
Mohit P. Tahiliani

thanks sir i will just look that and let u know

Dear sir,
I'm Faizal, and I want to compare SMAC and DSMAC for my project.
Do you have any implementation of DSMAC in ns-2.34?
Thank you very much for your cooperation

Best Regards
Faizal Eko Nugroho

@Dinesh - Hello sir, my name Arulla Ryandiza an undergraduate telecommunication engineering from Telkom Institute of Technology, Bandung Indonesia.

I have a big interest of Wireless Sensor Network especially a contention based mac protocol such as SMAC,TMAC and DSMAC

please email me at arulla.ryandiza@yahoo.com to share your knowledge and correspond of this kind of topic.

and also i tried to run with ns.allinone 3.34

thanks a lot mr. dinesh and mr. mohit
Regards,
Arulla Ryandiza

sir.as u told me to reinstal ns-2.35 .as i have installed prevoiusly ns-2.35.shd i uninstall the prevoous or rename the package ns-2.35 as ns-2.351 and istall it.can i apply the steps of ns-2.34.pls help me sir.

dinesh shirsath

@Arulla - Take a look at the NRLSensorsim patch available on this blog. May be of some help to you!

@Dinesh - You can install more than one ns-2s in your PC. Install them in separate directories. However, only one will be active at a time. Whichever you want to be active, go in its ns-allinone-2.xx/ns-2.xx directory and give

make install (remember you must be in root mode to execute this command)

Hope it helps.

Regards,
Mohit P. Tahiliani

okk thanks sir. but there is one more error in my project code i.e."global error info class $.invalid command 'CMU Priqeue".could nt find/open font.what it is pls look into it and tell me the solution.will heap schedular will be suitable for less no of nodes.as by using hschedular heap for no of nodes the graphs are not comming correctly.sir pls look int it and tell me the solution.

dinesh

Dear sir,

we have a project in which we have to use ns 2.35, ubuntu 11.10 and SIP module developed b Rui Prior. How can we patch this module on ns 2.35? It's very urgent, please help us.

@Dinesh - It is misspelled. It must be CMUPriQueue and this interface queue must be used only if you are configuring your routing protocol as DSR.

Yes, Heap scheduler works for less as well as more number of nodes.

@Elma - The SIP patch which you mentioned is designed for which ns-2 version. If it is not designed for ns-2.35, then you will have to manually apply the patch on ns-2.35. Open the patch and follow the replacements line by line.

Hope it helps.

Regards,
Mohit P. Tahiliani

@Faizal - No, I have not come across any implementation of DSMAC for ns-2.34. If I find it, I will post it here.

Regards,
Mohit P. Tahiliani

sir can u tell me regarding codet on ODMRP protocol

@Dinesh - Following links will be useful to you:

http://www.monarch.cs.rice.edu/ftp/multicast/

http://www.monarch.cs.rice.edu/ftp/multicast/README

http://en.pudn.com/downloads138/sourcecode/comm/wireless/detail592043_en.html#

Hope it helps.

Regards,
Mohit P. Tahiliani

okkey thanks sir .iwill surely look after that.sir one more thing is that the graphs which we get for eg.packet delivery ratio ,energy consumption per bit etc.how we get and what actually the logic is used for getting the above performance parmeters.sir pls guide me for this problem.dinesh

hello sir,after running the code there is statement "could not find/open font when opening font arial using internal non scalable font" sir what it is the meaning of it.sir pls help me in this matter.

dinesh shirsat

@ Dinesh Shirsat
I have source code (.awk) of performance parameters such as throughput, latency,packet delivery ratio, and energy consumption.
Do you have the source code (.tcl) 0f DSMAC and TMAC ?
Please help me with this matter

Dear sir,
can you give me steps to install ODMRP & ADMR in NS-2.34
i tried to install but i have lot of errors

Dear Sir
I am getting following errors at the time of creating a new copy of AODV when I run the TCL scritp

Can I have your mail ID plese???
viral_ccet@yahoo.co.in



num_nodes is set 50

(_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 node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
(file "example2.tcl" line 70)

Sir This is barath doing my ms 5th year can u help how to implement ddos attack in ns2. basically i have a idea of creatin a network but dono to create a network of client server model in ns2 so pls post ur comment

sir, what is energy model.what is importance of it and how to add to it.pls help me sir in that matter

Dinesh shirsath

@Dinesh ... Energy Model: http://www.isi.edu/ilense/software/smac/ns2_energy.html

Hi Mohit, I am trying to send packets with user data & have created a new agent & application class to do the same. However I need a queue to store the packets as multiple packets are being sent at the same time

eg. $ns_ at 20 "$agent_(8) sendTo 3 abcdefghijkl"
#$ns_ at 20 "$agent_(4) sendTo 3 abcdefghi"

Without implementing a queue, all except the last packet are getting dropped. Can u let me know how to create a queue for user defined packet structures??

i am working project in ns2 about VoIP analisis that using SCTP (Stream Control Transmission Protocol). I am trying to passing data from application (ns2voip++) to sctp, but get this error

voip/voip_header.cc:75: error: cannot convert ‘VoipPayload*’ to ‘AppData_S*’ in assignment

how can i convert appData* to char*?, because ns2voip++ payload's type is appData and sctp protocol receive char* in its sendmsg's function.

thank's for your help.

Sir, I am installing ns-2.35 on Ubuntu 10.04.
Facing error
tk8.5.10 make failed.
Same for ns-2.34.
Tried a lot.
Kindly help

sir can u tell me regarding code on Reliable Anchor-Based Sensor
Localization in Irregular Areas

Hello,
Can you please tell me how to apply encryption/decryption in NS2.35 ??

Kar@ubuntu:~$ ns audiodccp.tcl
invalid command name "Agent/DCCP/TCPlike"
while executing
"Agent/DCCP/TCPlike create _o726 "
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/DCCP/TCPlike"
invoked from within
"set dccp1 [new Agent/DCCP/TCPlike]"
(file "audiodccp.tcl" line 50)

What is this error solve it please sir...i am using ns2 2.34 allinone.urgently sir please....

Kar@ubuntu:~$ ns audiodccp.tcl
invalid command name "Agent/DCCP/TCPlike"
while executing
"Agent/DCCP/TCPlike create _o726 "
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/DCCP/TCPlike"
invoked from within
"set dccp1 [new Agent/DCCP/TCPlike]"
(file "audiodccp.tcl" line 50)

What is this error solve it please sir...i am using ns2 2.34 allinone.urgently sir please....