hi sir i have installed ns2.26 with nrlsensorism in ubuntu 10.10. when i try to execute sample wireless program i got this message ns: [Simulator instance] puts-nam-traceall {r -t 150.002616396 -s 1 -d -1 -p tcp -e 1040 -c 2 -a 0 -i 4613 -k AGT -R 250.01 -D 0.03}: can not find channel named "file4" while executing "puts $namtraceAllFile_ $str" (procedure "_o3" line 4) (Simulator puts-nam-traceall line 4) invoked from within "[Simulator instance] puts-nam-traceall {r -t 150.002616396 -s 1 -d -1 -p tcp -e 1040 -c 2 -a 0 -i 4613 -k AGT -R 250.01 -D 0.03}"
My name is Nurmayanti Zain, you can call me Maya. I am a student of electrical engineering on Hasanuddin University, Indonesia. I am interested with NS-2 simulation. I want to make Medium Access Control Protocols Using Directional Antennas in Ad Hoc Networks. Now I am trying. But, I don't get it, I am confused, how can I put directional antenna on library of NS-2? I'm trying to get the patch but it doesn't work at all. I am using NS-2 (Network Simulator) version 2.35. If possible, I would like to ask you to give me your tcl script. It will be a great help for me. If you don't mind too, I would like to ask for discussion time too. I am sorry for bothering you. Can I get your email? Thank you very much.
Hello sir, I am chaithanya, in "TCL script to demonstrate message sending" , why you have used procedure "process_data" even there exits no function named "process_data" in udp.cc file.
I am doing "key distribution in MANET" project using NS2. I am using threshold cryptography concept- this divides the key into n keys (n-number of nodes). I have the code for threshold cryptography in c++. It gives the output of n keys. how to get that keys into ns2(tcl) and send to respective nodes.
Please help me, I have been searching this point for one month
Importing c++ code to ns-2 is not so easy, as ns-2 uses network model. You need to identify the layer where your key distribution belongs to. Accordingly you have to select the protocol for communication the key with nodes.
sir, I guess you are speaking about tcp or udp. (sorry, if am wrong) I wish to use udp. sir, in "TCL script to demonstrate message sending",can we get the simulation time at that event ?
and
i downloaded ns-allinone-2.35.tar.gz. and untar it in my /usr/local directory. and executed ./install. where should I set the LD_LIBRARY_PATH and TCL_LIBRARY_PATH ? am using ubuntu 12.04.
Thank you sir, when i enter "make install",it shows the following for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done /usr/bin/install -c -m 755 ns /usr/local/bin /usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
Hello sir, I wrote a new agent and modified the relevant files (makefile,packet.h,ns-default.tcl,ns-packet.tcl) ,then i executed "make clean" and "make". It executed well. But when i want to run any tcl file,I get this error
ns: [code omitted because of length] : invalid command name "Agent/security_packet" while executing "Agent/security_packet set packetSize_ 1000"
Sir, how can I send arguments from simulator to c++ and viceversa ?? I want to send the number of nodes 'n' value to c++ code. And c++ should send an array of arguments to simulator.
I didnt get practical implementation of this concept. Usually node should learn the number of nodes by exchanging the packets. Still if you want to send values from TCL to C++ you can make use of command function to read the TCL values in C++.
Hi sir I am using ns-allinone-2.28 on cygwin (win XP). I added new routing protocol and following these steps but after make install I got these message:user/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin usr/bin/install:invalid user 'bin' make: *** [install-ns] Error 1 Can you help me please thanks
I Created a new agent in ns2.35. While compiling tcl file im getting the following errors
invalid command name "Mac/RRfid" while executing "Mac/RRfid create _o19 " 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 $mactype" (procedure "_o14" line 10) (Node/MobileNode add-interface line 10) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 83) (Simulator create-wireless-node line 83) 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" invoked from within "set n(0) [$ns node]"
I followed all the steps given in that link. While creating a new agent What are the files to be modified. Im oftenly getting the error invalid command name agent/... will u please tell me what are the files to be changed compulsorily.. Thank you sir
In my tcl file i gave the simulation time stops at 100 secs. After running,trace file is generated only for 95 secs. What is the reason for this error?? Thank you sir
Sir, I have a doubt in "TCL script to demonstrate message sending" please help me in this demonstration. In that code,you have used two nodes. if there are 3 nodes, how can 1st node send "{how are you}" to 2nd node and "{where are you}" to 3rd node.
And 2nd node should send "hii" to 1st node and "bye" to 3rd node. And 3rd node gives reply to 1st and 2nd nodes.
Because in, $ns at 50.3 "$udp0 send 500 {how are you}"
$ns at 70.5 "$udp1 send 828 hi"
you haven't mentioned the destination, by default udp0 send to udp1 and viceversa. since you have used "$ns connect $udp0 $udp1".
Hello sir, I wrote a new agent and modified the relevant files (makefile,packet.h,ns-default.tcl,ns-packet.tcl) ,then i executed "make clean" and "make". It executed well. But when i want to run any tcl file,I get this error
ns: [code omitted because of length] : invalid command name "Agent/security_packet" while executing "Agent/security_packet set packetSize_ 64"
you had said that..... You need to use object to set the value for variable.
i dont how to use object to set the value for variable???
can you please suggest?? its somrthing urgent for me ,kondly reply the post as soon as possible.. thank you
I got the similar error before. It was solved by changing the case of "Security_packet" to "security_packet". Make sure that you have "s" rather than "S" in every occurence of "Security_packet" in .cc and .h files. You can use either "S" or "s". But you should use same case in every occurence.
Hi sir... I'm doing my project in MANET routing protocol in that i need to use BSF algorithm to find the shortest path...As I'm new to this NS2 I have no clue where to include the algorithm and how to implement it..please help me to sort out this sir..Thanks in advance sir..
Hello sir, I applied OLSR patch in ns 2.34 but patch was not successful and i ran ./configure and then make command. After that when i run ns i got the error.
ns: [code omitted because of length] : invalid command name "Agent/" I have deleted olsr folder and undo every change but still ns is not giving output. Please help me i am worried how to run my tcl scripts which were running earlier.
I am suffering from same error linux@linux-Aspire-V5-431:~/ns-allinone-2.35/ns-2.35$ ns ns: [code omitted because of length] : invalid command name "Agent/blackholeAODV" while executing "Agent/blackholeAODV instproc init args {$self next $args}"
Hi Sir , I my trying to use new protocol for for security in ns2 ..wen i made necessary changes its showing an error like ""invalid command name Agent/Security_packet"" ..how to solve this issue ..wen i tried to recompile the ns2 aft making changes as given in Marc Greis 'tutorial for a using a new protocol ..wen give make in the terminal its showing ""no target specified and no makefile found"" ...Reply soon Sir
hello sir ,i have to implement the tcp/ip protocol suite in wireless sensor network to show accessing internet by wsn can i implement this in ns2 ,and cna i implement manet in ns2
hi sir, after following all the steps to add a new protocol and at the end when i enter the command "make install " it shows for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done mkdir: cannot create directory '/usr/local/mam/man1':permission denied make: *** [dirs] error 1
hello i want to execute my dymo files but there is error i think i need to give the patch but am using ns2.35 so for this i should install only dymoum_ns-2.35_v0.3.patch file? if so where i can get .so kindly tell me the solution for this. thank u
hello am working in adhoc networks now i have a problem with dymo after the execution the dymo script in the ip trace -it filed is coming as undefined ,its not specify the packet type as either cbr or dymo. this is tcl file
Define Node Configuration paramaters #============================================================================== set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 30 ;# number of mobilenodes set val(rp) DYMOUM ;# routing protocol set val(x) 1000 ;# X dimension of the topography set val(y) 1000 ;# Y dimension of the topography #============================================================================== # Initialize Simulator #============================================================================== set ns_ [new Simulator] $ns_ use-newtrace Agent/DYMOUM set debug_ true Agent/DYMOUM set no_path_acc_ true Agent/DYMOUM set reissue_rreq_ true Agent/DYMOUM set s_bit_ false Agent/DYMOUM set hello_ival_ 1 #============================================================================== # Initialize Trace file #============================================================================== $ns_ use-newtrace set tracefd [open Tcp30.tr w] $ns_ trace-all $tracefd
#============================================================================== # Initialize Network Animator #============================================================================== set namtrace [open NMp30.nam w] $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) #============================================================================== # set up topography object #============================================================================== set topo [new Topography] $topo load_flatgrid 1000 1000 #============================================================================== # set up God object #============================================================================== set god_ [new God] create-god $val(nn) #============================================================================== # configure nodes
error while adding a new MANET Routing protocol in ns2.35
------Error message--------------
(_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" $ 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 < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0
hi sir, my name is ahmed sherif. I am trying to insert blackhole node in ns2, i started to make a new routing protocol (blackholeAODV) and i followed the steps in the following link http://www.btechnos.com/2012/03/adding-new-routing-protocol-in-network.html after doing all the required changes and when running my tcl file this error appear:
num_nodes is set 20 Creating nodes... INITIALIZE THE LIST xListHead
(_o433 cmd line 1) invoked from within "_o433 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 "_o433" line 2) (SplitObject unknown line 2) invoked from within "_o433 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 $val(nnaodv)} {$i < $val(nn)} {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;#disable random motion #..." (file "blackhole.tcl" line 58)
please help me to solve this error my email: abtsherif@yahoo.com
I Created a new agent in ns2.35. While compiling tcl file im getting the following errors
invalid command name "Mac/RRfid" while executing "Mac/RRfid create _o19 " 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 $mactype" (procedure "_o14" line 10) (Node/MobileNode add-interface line 10) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 83) (Simulator create-wireless-node line 83) 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" invoked from within "set n(0) [$ns node]"
Please tell some solution for this error sir.i worked this for two months but i can't solve this pbm.or else tell your mail id i will send my code to you sir. plz help me sir Thanks
Sir, Thank you for being answering my questions. With your help, I have completed my project. I am grateful to you. Sir, I have another query. In MANET, the nodes can join or drop in the middle. I want to show this feature in network animator (through ns2). Is it possible to show ? How ?
I am doing something about wireless Lan handover simulation but yet i donno where to find the example TCL file. your known whr can get it or can yyou provide me one?
i download ns2.34 in ubuntu 12.04 and i want to define anthocnet protocol this link have the code http://anthocnet.svn.sourceforge.net/viewvc/anthocnet/?sortdir=down#dirlist i modify these file as this link modify it (common/packet.h,trace/cmu_trace.h,trace/cmu_trace.cc,tcl/lib/ns_pachet.tcl,tcl/lib/ns_lib.tcl,makefile) , then compile, but when i run your (1-simple.tcl also i get it from the link) file i have this error, does there is any other file i should modify it.
discovery@ubuntu:~/Desktop$ ns 1-simple.tcl num_nodes is set 7 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
INITIALIZE THE LIST xListHead warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
ns: _o131 reset-state: (_o131 cmd line 1) invoked from within "_o131 cmd reset-state" 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 "_o131" line 2) (SplitObject unknown line 2) invoked from within "_o131 reset-state"
Sir, We are not able to run an example Tcl script in Aquasim1.0 namely rmac-example.tcl although it is being installed properly. Please guide accordingly!!
I use the GreenCloud simulator for cloud computing. It allows the calculation of the energy component of the data center. It uses ns-2.35. I installed a new agent for security (Agent/Security_packet) and i changed the different files (Makefile, packet.h, ns-default.tcl, ns-packet.tcl) and run ./configure, make clean and make. Everything works. My problem is that I don't know where i'm going to call this agent and how from my tcl file because the tcl code of GreenCloud does not use nodes.
How can I do sir? Please reply me as soon as possible.
Hello sir, I am facing in running BMAC protocol tcl script file.which showing following error.i am unable to rectify it... kindly help me sir
num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl invalid command name "Mac/BMAC" while executing "Mac/BMAC create _o19 " 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 $mactype" (procedure "_o14" line 10) (Node/MobileNode add-interface line 10) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 83) (Simulator create-wireless-node line 83) 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 < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion # $node_($i) topography $w..." (file "BMAC.tcl" line 176) waiting for your response sir. Thankyou sumita emailid-sumi.nagah@gmail.com
Sir i did... but still no changes.. may i mail you the code so that you could let me know where i am doing mistake. Thankyou sumita emailid-sumi.nagah@gmail.com
num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
(_o15 cmd line 1) invoked from within "_o15 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 "_o15" line 2) (SplitObject unknown line 2) invoked from within "_o15 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 < $opt(Snn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion #done my me to get refer..." (file "smac.tcl" line 115)
Sir the above problem i am facing while running the INS MAC protocol tcl file.i downloaded as it is but unable to understand what kind of problem is this... Sir kindly please solve this problem.I am working on this from past one month.I did step by step installation as per readme file.but still facing problem to run the script.Sir kindly help me out it will be great help to me. Thankyou Looking for positive response. Sonia
I have modified the aodv protocol by adding a malicious node to it.have reffered to the link http://elmurod.net/en/index.php/archives/196 but am still left with this error: ns: _o66 malicious: (_o66 cmd line 1) invoked from within "_o66 cmd malicious" 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 "_o66" line 2) (SplitObject unknown line 2) invoked from within "_o66 malicious" can you help please?
I want to check the energy of a node in TCL and then change its color. How can I do this in ns2. Also I want to do this periodically, so can I add a timer in TCL to check energy? Thanks in advance.
hi sir i am going to implementing energy consumption schemes using MAC protocols ,and i already implemented 20 nodes but m getting struct how to set dynamic duty cycle. i want to use DMAC protocol pls kindly help me get out off from this problem .. thank you .
sir I need to ask something regarding implementing a new protocol which in my case is a modification of AODV. Actually I have not only made changes in some file of AODV files but also in one of the common files which is packet.h. I want to run my tcl simultaneously with both protocols.
kindly guide me.
Furthermore I would like to appreciate the job you are doing for the Ns2 community over here.
Hallo sir! I have two questions 1.when I run a tcl file I get the following errors
[code omitted because of length] : invalid command name "DataGenerator/TemperatureDataGenerator" while executing "DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0" How do I correct this?
2.I have the codes for tinysec as found in: http://www.tinyos.net/tinyos-1.x/tos/lib/TinySec/ Kindly direct me how I can use them to integrate to ns2 and test them for their performance
Dear Sir, i am changing the code of dsr protocol in dsragent.cc for the malicious node. After that i run in cygwin/ns2 make depend make i Get no error.
when i enter "make install",it shows the following for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done /usr/bin/install -c -m 755 ns /usr/local/bin /usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
Yes Sir it's working. Bt after this i Got Other problem when i am run my compare_dsr.tcl with my traffic and scenrio file i got this
ns compare_dsr_proto.tcl -scen mov10_10_10 -tfc cbr10_10_10 -tr tr10_20_10 mov10_10_10 cbr10_10_10 tr10_20_10 DSR num_nodes is set 20 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... Loading traffic file... Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Segmentation fault (core dumped)
i am trying to edit the file of compare_dsr.tcl with this code to solve this error but i got same problem
the code is usr in compare file is::
if { $val(rpr) == "dsr" } { set val(ifq) CMUPriQueue } else { set val(ifq) Queue/DropTail/PriQueue } and also the ns command work on cygwin/usr/local/ns-allinone-2.34/ns-2.34
But Not work anywhere just like if i make cbrgen.tcl in directive cygwin/usr/local/ns-allinone-2.34/ns-2.34/indep-utils/.... there not working this give this error
hi sir, i want to modify the protocol DSR,i am going to detect the selfish node in that selfish node wants to drop all packets while sending the data. so i need files .h and .cc. so can u help me sir?
hello sir i am mandeep singh and i am working on implementation of dymo protocol . sir i am new to ns2.from where i can get the latest implementation of dymo protocol .thanx in advance sir..
Hi, i m trying to simulate leach protocol with Gauss-Markov mobility model, but when i run the tcl script im getting this error. i’ll be grateful if you can guide how to resolve this issue. regards, najma
5 is setting code to 0 4 is setting code to 0 45 is setting code to 0 3 is setting code to 0 ns: _o917 setdest 151.71516968780583 250.0 1.9939683248219735: (_o917 cmd line 1) invoked from within “_o917 cmd setdest 151.71516968780583 250.0 1.9939683248219735″ 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 “_o917″ line 2) (SplitObject unknown line 2) invoked from within “_o917 setdest 151.71516968780583 250.0 1.9939683248219735″
Sir, I want to patch new protocol in ns2.35. for example if i modify ADOV in ns2 and by keeping original AODV as it is how to patch new modified AODV??
Sir I am working in ns-allinone-2.35.I have first install olsr patch um-olsr and olsr is working properly. Now i have done some changes in olsr protocol to implement wormhole attack and created OLSRW protocol.Which file I have to do to patch this new OLSR protocol in ns2. Sir please can you give me sugesgtions.......
The link to the sample code he gave in this example to the tcl script seems to be broken. did anyone ever download this file so we can test it as well?? kidly send us a link to this file
Hello Sir , I want to modify tcp reno protocol to get improved throughput on hybrid network..As suggested i need to modify congestion avoidance , duplicate action and timout based round trip time....
First, i wrote tcl script for creating hybird topology and analysed result for tcp reno...In order to modify reno i did changes in existing files listed as tcp-reno.cc,tcp.cc,tcp.h and ns-default .tcl..
As you suggested in above pots,after modifying i run following commands sudo make clean sudo make sudo make install
there were no error but when i run tcl script it is showing me the same result values for throughput... plz guide me in correcting the code
Dear Sir, I am simulating malicious node in AODV. I have made the changes to aodv.h and aodv.cc as directed in this tutorial http://elmurod.net/en/index.php/archives/196. But i get this error:
ns: _o35 hacker: (_o35 cmd line 1) invoked from within "_o35 cmd hacker" 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 "_o35" line 2) (SplitObject unknown line 2) invoked from within "_o35 hacker"
while giving make clean command , em getting the following error.. Plz help me to resolve this.. Makefile:168: *** commands commence before first target. Stop.
Dear Ramakrishna, I run this statement "sudo apt-get install build-essential autoconf automake libxmu-dev" to compile and it seems to have executed successfully. this is the result of the compilation:
autoconf is already the newest version. automake is already the newest version. build-essential is already the newest version. libxmu-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. jose@B550Jose:~/Documents/ns-allinone-2.26/ns-2.26$
When I run my tcl script, I get the error below.
ns: _o35 hacker: (_o35 cmd line 1) invoked from within "_o35 cmd hacker" 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 "_o35" line 2) (SplitObject unknown line 2) invoked from within "_o35 hacker"
I wrote a cc file and was trying to link with a tc; file.. I've included the object file name under OBJ_CC in makefile and recompiled ns. Bt i am stl getting the foll error.. Plz help me..
invalid command name "Agent/MyAgentOtcl" while executing "Agent/MyAgentOtcl create _o3 " 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/MyAgentOtcl" invoked from within "set MyAgent [new Agent/MyAgentOtcl]" (file "linkage.tcl" line 1)
Hiii..... I am doing my project in adhoc network- implementing a routing protocol.I am entirely new to this area.so can u please tell me what are the steps to be followed when implementing a protocol.How to do coding..
I am a masters student in computer science and technology I want to work on SPIN protocol in wireless sensor networks. I have downloaded the code for SPIN protocol available on Google.But I do not have any idea about integrating SPIN protocol in NS2. I am using UBUNTU 12.04 and NS2.35.
hi sir
ReplyDeletei have installed ns2.26 with nrlsensorism in ubuntu 10.10. when i try to execute sample wireless program i got this message
ns: [Simulator instance] puts-nam-traceall {r -t 150.002616396 -s 1 -d -1 -p tcp -e 1040 -c 2 -a 0 -i 4613 -k AGT -R 250.01 -D 0.03}: can not find channel named "file4"
while executing
"puts $namtraceAllFile_ $str"
(procedure "_o3" line 4)
(Simulator puts-nam-traceall line 4)
invoked from within
"[Simulator instance] puts-nam-traceall {r -t 150.002616396 -s 1 -d -1 -p tcp -e 1040 -c 2 -a 0 -i 4613 -k AGT -R 250.01 -D 0.03}"
can u help me?
thanks in advance
Hi,
DeleteFrom the error you sent, I feel there is error in the TCL script. If you could share the TCL script I can give opinion.
Network Simulator - 2: Using Added New Routing Protocol In Ns2 >>>>> Download Now
Delete>>>>> Download Full
Network Simulator - 2: Using Added New Routing Protocol In Ns2 >>>>> Download LINK
>>>>> Download Now
Network Simulator - 2: Using Added New Routing Protocol In Ns2 >>>>> Download Full
>>>>> Download LINK ZT
Hello Sir,
ReplyDeleteMy name is Nurmayanti Zain, you can call me Maya. I am a student of electrical engineering on Hasanuddin University, Indonesia. I am interested with NS-2 simulation. I want to make Medium Access Control Protocols Using Directional Antennas in Ad Hoc Networks. Now I am trying. But, I don't get it, I am confused, how can I put directional antenna on library of NS-2? I'm trying to get the patch but it doesn't work at all. I am using NS-2 (Network Simulator) version 2.35. If possible, I would like to ask you to give me your tcl script. It will be a great help for me. If you don't mind too, I would like to ask for discussion time too. I am sorry for bothering you. Can I get your email? Thank you very much.
Sincerely,
Nurmayanti Zain
Hi Maya,
DeleteI can try my level best to help you. I didn't get you in TCL script. What exactly you want to simulate?
E-Mail: rkmundugar@gmail.com
Hello sir,
ReplyDeleteI am chaithanya, in "TCL script to demonstrate message sending" , why you have used procedure "process_data" even there exits no function named "process_data" in udp.cc file.
And why not "recv" function ?
Hi,
DeleteWe have used one linking function between TCL script and C++, that is called using process_data.
I am doing "key distribution in MANET" project using NS2.
DeleteI am using threshold cryptography concept- this divides the key into n keys
(n-number of nodes).
I have the code for threshold cryptography in c++.
It gives the output of n keys.
how to get that keys into ns2(tcl) and send to respective nodes.
Please help me, I have been searching this point for one month
Hi,
DeleteImporting c++ code to ns-2 is not so easy, as ns-2 uses network model. You need to identify the layer where your key distribution belongs to. Accordingly you have to select the protocol for communication the key with nodes.
sir,
ReplyDeleteI guess you are speaking about tcp or udp.
(sorry, if am wrong)
I wish to use udp.
sir, in "TCL script to demonstrate message sending",can we get the simulation time at that event ?
and
i downloaded ns-allinone-2.35.tar.gz. and untar it in my /usr/local directory.
and executed ./install. where should I set the LD_LIBRARY_PATH and TCL_LIBRARY_PATH ?
am using ubuntu 12.04.
sorry, if am embarrassing you.
Hi,
Delete1. You wont get the time in that TCL script.
2. You need to set the path.
sir,
ReplyDeletein which file I should set the path?
and where it is located ?
Hi,
DeletePlease follow the steps given in below link:
http://ramakrishnamundugar.blogspot.in/2012/09/ns-234-installation-in-ubuntu-1204.html
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThank you sir,
ReplyDeletewhen i enter "make install",it shows the following
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
is it confirmation or error?
Hello sir,
ReplyDeleteI wrote a new agent and modified the relevant files (makefile,packet.h,ns-default.tcl,ns-packet.tcl) ,then i executed "make clean" and "make".
It executed well. But when i want to run any tcl file,I get this error
ns:
[code omitted because of length]
: invalid command name "Agent/security_packet"
while executing
"Agent/security_packet set packetSize_ 1000"
help me
HI,
DeleteYou need to use object to set the value for variable.
Thank you sir,
ReplyDeleteSir,
how can I send arguments from simulator to c++ and viceversa ??
I want to send the number of nodes 'n' value to c++ code.
And c++ should send an array of arguments to simulator.
Hi,
DeleteI didnt get practical implementation of this concept. Usually node should learn the number of nodes by exchanging the packets. Still if you want to send values from TCL to C++ you can make use of command function to read the TCL values in C++.
first learn c
DeleteThank you Sr
ReplyDeleteI'm very happy.
Thanks, that was what I was looking for several days.
Hi,
DeleteThank you very much for your comments.
Hi sir
ReplyDeleteI am using ns-allinone-2.28 on cygwin (win XP).
I added new routing protocol and following these steps but after make install I got these message:user/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin
usr/bin/install:invalid user 'bin'
make: *** [install-ns] Error 1
Can you help me please
thanks
Thank you sir,
ReplyDelete"command" is used to send data from tcl to c++.
Then how about c++ to tcl ??
please help me....
Hi,
DeleteThere will not be such situation to send values from C++ to TCL.
I Created a new agent in ns2.35. While compiling tcl file im getting the following errors
ReplyDeleteinvalid command name "Mac/RRfid"
while executing
"Mac/RRfid create _o19 "
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 $mactype"
(procedure "_o14" line 10)
(Node/MobileNode add-interface line 10)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
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"
invoked from within
"set n(0) [$ns node]"
Please tell some solution for this error. Thanks
sir
ReplyDeletei am trying this for past 2 months.please help me to come out with output. please respond as soon as possible
Hi,
DeleteDid you follow all the steps given in below link:
http://www.isi.edu/nsnam/ns/tutorial/nsnew.html
I think the error is due to improper declaration of agent.
Sir,
ReplyDeleteI followed all the steps given in that link. While creating a new agent What are the files to be modified. Im oftenly getting the error invalid command name agent/... will u please tell me what are the files to be changed compulsorily.. Thank you sir
Sir,
ReplyDeleteIn my tcl file i gave the simulation time stops at 100 secs. After running,trace file is generated only for 95 secs. What is the reason for this error?? Thank you sir
Hi,
DeleteProblem might be with the agents start and stop time.
Sir,
DeleteHow to clear this error?? How to set agents start and stop time?? Please Help me sir
Sir, I have a doubt in "TCL script to demonstrate message sending"
ReplyDeleteplease help me in this demonstration.
In that code,you have used two nodes.
if there are 3 nodes, how can 1st node send "{how are you}" to 2nd node and "{where are you}" to 3rd node.
And 2nd node should send "hii" to 1st node and "bye" to 3rd node.
And 3rd node gives reply to 1st and 2nd nodes.
Because in,
$ns at 50.3 "$udp0 send 500 {how are you}"
$ns at 70.5 "$udp1 send 828 hi"
you haven't mentioned the destination, by default udp0 send to udp1 and viceversa.
since you have used "$ns connect $udp0 $udp1".
Then how about three nodes.
please help me....
sir, please help me in this senario.
DeleteHello sir,
ReplyDeleteI wrote a new agent and modified the relevant files (makefile,packet.h,ns-default.tcl,ns-packet.tcl) ,then i executed "make clean" and "make".
It executed well. But when i want to run any tcl file,I get this error
ns:
[code omitted because of length]
: invalid command name "Agent/security_packet"
while executing
"Agent/security_packet set packetSize_ 64"
you had said that.....
You need to use object to set the value for variable.
i dont how to use object to set the value for variable???
can you please suggest?? its somrthing urgent for me ,kondly reply the post as soon as possible..
thank you
I got the similar error before.
DeleteIt was solved by changing the case of "Security_packet" to "security_packet".
Make sure that you have "s" rather than "S" in every occurence of "Security_packet" in .cc and .h files.
You can use either "S" or "s". But you should use same case in every occurence.
hai sir,
ReplyDeletei am doing project on selfish node detection. i need to add new protocol. frist shall i add a protocol or selfish node?
HI,
DeleteFirst you need to add protocol, which detects the selfish node. Then node.
Hi sir...
ReplyDeleteI'm doing my project in MANET routing protocol in that i need to use BSF algorithm to find the shortest path...As I'm new to this NS2 I have no clue where to include the algorithm and how to implement it..please help me to sort out this sir..Thanks in advance sir..
Hello sir,
ReplyDeleteI applied OLSR patch in ns 2.34 but patch was not successful and i ran ./configure and then make command. After that when i run ns i got the error.
ns:
[code omitted because of length]
: invalid command name "Agent/"
I have deleted olsr folder and undo every change but still ns is not giving output.
Please help me i am worried how to run my tcl scripts which were running earlier.
HI,
DeleteYou better to install the patch from the beginning. If you are applying patch then you need to install ns2 freshly and repeat the same.
Hello Sir,
DeleteI am suffering from same error
linux@linux-Aspire-V5-431:~/ns-allinone-2.35/ns-2.35$ ns
ns:
[code omitted because of length]
: invalid command name "Agent/blackholeAODV"
while executing
"Agent/blackholeAODV instproc init args {$self next $args}"
kindly tell me how i resolve it
sir,
ReplyDeleteIn "TCL script to demonstrate message sending", how to store the received data into a variable ?
please help me.
HI,
DeleteTo store the values in C++ code you need create a variable.
Hi Sir ,
ReplyDeleteI my trying to use new protocol for for security in ns2 ..wen i made necessary changes its showing an error like ""invalid command name Agent/Security_packet"" ..how to solve this issue ..wen i tried to recompile the ns2 aft making changes as given in Marc Greis 'tutorial for a using a new protocol ..wen give make in the terminal its showing ""no target specified and no makefile found"" ...Reply soon Sir
HI,
DeleteOnce you change makefile.in, you need run ./configure command. Then try to run make command.
hello sir ,i have to implement the tcp/ip protocol suite in wireless sensor network to show accessing internet by wsn can i implement this in ns2 ,and cna i implement manet in ns2
ReplyDeleteHI,
DeleteYou can implement all these and test effectively in NS-2.
hi sir,
ReplyDeleteafter following all the steps to add a new protocol and at the end when i enter the command "make install " it shows
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
mkdir: cannot create directory '/usr/local/mam/man1':permission denied
make: *** [dirs] error 1
HI,
DeleteTry to run make in sudo mode.
Hi Sir...
DeleteI faced the same problem as above. Now it's working fine when run in sudo mode:
sudo make clean
sudo make
sudo make install
THANK YOU.
hello i want to execute my dymo files but there is error i think i need to give the patch but am using ns2.35 so for this i should install only dymoum_ns-2.35_v0.3.patch file? if so where i can get .so kindly tell me the solution for this.
ReplyDeletethank u
Hi,
DeleteIt is freely available for na2.34, as I know for ns2.35 it is not available.
thanks for response i reinstall my ns2
Deletenow i have another problem when am executing the dymo file am getting the error "segmentation fault"
Hi,
DeleteThe error is due to wrong initialization. Please check the code.
how can i implement new protocol in ns2 in ubuntu 12.04
ReplyDeletehello am working in adhoc networks now i have a problem with dymo after the execution the dymo script in the ip trace -it filed is coming as undefined ,its not specify the packet type as either cbr or dymo.
ReplyDeletethis is tcl file
Define Node Configuration paramaters
ReplyDelete#==============================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 30 ;# number of mobilenodes
set val(rp) DYMOUM ;# routing protocol
set val(x) 1000 ;# X dimension of the topography
set val(y) 1000 ;# Y dimension of the topography
#==============================================================================
# Initialize Simulator
#==============================================================================
set ns_ [new Simulator]
$ns_ use-newtrace
Agent/DYMOUM set debug_ true
Agent/DYMOUM set no_path_acc_ true
Agent/DYMOUM set reissue_rreq_ true
Agent/DYMOUM set s_bit_ false
Agent/DYMOUM set hello_ival_ 1
#==============================================================================
# Initialize Trace file
#==============================================================================
$ns_ use-newtrace
set tracefd [open Tcp30.tr w]
$ns_ trace-all $tracefd
#==============================================================================
# Initialize Network Animator
#==============================================================================
set namtrace [open NMp30.nam w]
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)
#==============================================================================
# set up topography object
#==============================================================================
set topo [new Topography]
$topo load_flatgrid 1000 1000
#==============================================================================
# set up God object
#==============================================================================
set god_ [new God]
create-god $val(nn)
#==============================================================================
# configure nodes
#==============================================================================
ReplyDelete$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON\
-macTrace OFF \
-movementTrace OFF
#==============================================================================
# Create Nodes
#==============================================================================
for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
}
#==============================================================================
#disable random motion
#==============================================================================
for {set i 0} {$i < $val(nn) } {incr i} {
$node_($i) random-motion 0 ;# disable random motion
}
#==============================================================================
# Create Random Mobility
#==============================================================================
source "scen-n30-r1"
#==============================================================================
# Create Random Traffic
#==============================================================================
source "cmu-cbr-n30-mc18"
#==============================================================================
# defines the node size in Network Animator
#==============================================================================
for {set i 0} {$i < $val(nn)} {incr i} {
$ns_ initial_node_pos $node_($i) 40
}
#==============================================================================
# Stop Simulation at Time 200 sec
#==============================================================================
$ns_ at 200.0 "stop"
#==============================================================================
# Reset Nodes at time 200 sec
#==============================================================================
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at 200.0 "$node_($i) reset";
}
#==============================================================================
# Exit Simulatoion at Time 200.01 sec
#==============================================================================
$ns_ at 200.01 "puts \"NS EXITING...\" ; $ns_ halt"
#==============================================================================
# Procedure Stop
#==============================================================================
proc stop {} {
global ns_ tracefd
# Reset Trace File
$ns_ flush-trace
close $tracefd
exit 0
}
#==============================================================================
# Start Simulation
#==============================================================================
puts "Starting Simulation..."
$ns_ run
and this is trace file
ReplyDeletes -t 0.000000000 -Hs 0 -Hd -1 -Ni 0 -Nx 227.36 -Ny 670.59 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.255 -Id -1.255 -It undefined -Il 24 -If 0 -Ii 0 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4
s -t 0.000000000 -Hs 1 -Hd -1 -Ni 1 -Nx 443.15 -Ny 719.55 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.255 -Id -1.255 -It undefined -Il 24 -If 0 -Ii 1 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4
s -t 0.000000000 -Hs 2 -Hd -1 -Ni 2 -Nx 578.73 -Ny 638.75 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id -1.255 -It undefined -Il 24 -If 0 -Ii 2 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4
s -t 0.000000000 -Hs 3 -Hd -1 -Ni 3 -Nx 9.34 -Ny 414.99 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 3.255 -Id -1.255 -It undefined -Il 24 -If 0 -Ii 3 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4
s -t 0.000000000 -Hs 4 -Hd -1 -Ni 4 -Nx 323.29 -Ny 139.04 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 4.255 -Id -1.255 -It undefined -Il 24 -If 0 -Ii 4 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4
s -t 0.000000000 -Hs 5 -Hd -1 -Ni 5 -Nx 37.52 -Ny 836.56 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 5.255 -Id -1.255 -It undefined -Il 24 -If 0 -Ii 5 -Iv 1 -P DYMOUM(HELLO) -Pm 0 -Ph 0 -Pl 4
s -t 0.000000000 -Hs 6 -Hd -1 -Ni 6 -Nx 883.94 -Ny 280.50 -Nz 0.00 -Ne -
Any help with this error message?
ReplyDeleteerror while adding a new MANET Routing protocol in ns2.35
------Error message--------------
(_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"
$
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 < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0
}"
(file "protoname1.tcl" line 155)
my email: e.gypsy@live.com or e.gypsy@yahoo.com
hi sir, my name is ahmed sherif. I am trying to insert blackhole node in ns2, i started to make a new routing protocol (blackholeAODV) and i followed the steps in the following link http://www.btechnos.com/2012/03/adding-new-routing-protocol-in-network.html
ReplyDeleteafter doing all the required changes and when running my tcl file this error appear:
num_nodes is set 20
Creating nodes...
INITIALIZE THE LIST xListHead
(_o433 cmd line 1)
invoked from within
"_o433 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 "_o433" line 2)
(SplitObject unknown line 2)
invoked from within
"_o433 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 $val(nnaodv)} {$i < $val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;#disable random motion
#..."
(file "blackhole.tcl" line 58)
please help me to solve this error
my email: abtsherif@yahoo.com
Hi,
DeleteI think the error is due to missing TCL function create node of your protocol.
i tried a lot in this error and it still exist please give me your E-mail to contact with you
DeleteHi sir,
ReplyDeleteCan you give the steps to compile the files after making the new protocol.....?
Hi,
DeleteFollow the steps:
1. ./configure
2. make clean
3. make
I Created a new agent in ns2.35. While compiling tcl file im getting the following errors
ReplyDeleteinvalid command name "Mac/RRfid"
while executing
"Mac/RRfid create _o19 "
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 $mactype"
(procedure "_o14" line 10)
(Node/MobileNode add-interface line 10)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
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"
invoked from within
"set n(0) [$ns node]"
Please tell some solution for this error sir.i worked this for two months but i can't solve this pbm.or else tell your mail id i will send my code to you sir. plz help me sir Thanks
[code omitted because of length]
Delete: invalid command name "Agent/RfidRAgent"
while executing
"Agent/RfidRAgent set packetsize_ 16"
when recompiling my code i got this error due to that previous error which i mentioned above sir
HI,
DeleteHave you created agent class Agent/RfidRAgent.
hellooo can reply to my questions i posted on april 10th
ReplyDeleteHi,
DeletePost your question.
num_nodes is set 2
ReplyDeleteWrong node routing agent!
What is the solution for this warning sir?
Sir, Thank you for being answering my questions. With your help, I have completed my project. I am grateful to you.
ReplyDeleteSir, I have another query.
In MANET, the nodes can join or drop in the middle. I want to show this feature in network animator (through ns2).
Is it possible to show ?
How ?
HI,
DeleteYou can try by modifying the TCL script accordingly.
I am doing something about wireless Lan handover simulation but yet i donno where to find the example TCL file. your known whr can get it or can yyou provide me one?
ReplyDeleteHi,
DeletePlease find the TCL script in tcl/ex directory.
Hi
ReplyDeletei download ns2.34 in ubuntu 12.04
and i want to define anthocnet protocol
this link have the code http://anthocnet.svn.sourceforge.net/viewvc/anthocnet/?sortdir=down#dirlist
i modify these file as this link modify it
(common/packet.h,trace/cmu_trace.h,trace/cmu_trace.cc,tcl/lib/ns_pachet.tcl,tcl/lib/ns_lib.tcl,makefile) ,
then compile, but when i run your (1-simple.tcl also i get it from the link) file i have this error, does there is any other file i should modify it.
discovery@ubuntu:~/Desktop$ ns 1-simple.tcl
num_nodes is set 7
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
INITIALIZE THE LIST xListHead
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
warning: no class variable Agent/AntHocNet::num_nodes_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/AntHocNet::num_nodes_x_
warning: no class variable Agent/AntHocNet::num_nodes_y_
warning: no class variable Agent/AntHocNet::r_factor_
warning: no class variable Agent/AntHocNet::timer_ant_
ns: _o131 reset-state:
(_o131 cmd line 1)
invoked from within
"_o131 cmd reset-state"
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 "_o131" line 2)
(SplitObject unknown line 2)
invoked from within
"_o131 reset-state"
Hi,
DeletePlease check compilation steps. It should be as follows:
./configure
make clean
make
make install
This comment has been removed by the author.
ReplyDeleteSir,
ReplyDeleteWe are not able to run an example Tcl script in Aquasim1.0 namely rmac-example.tcl although it is being installed properly.
Please guide accordingly!!
Thank you!
Harsh
Hi,
DeleteIt is not running properly means what? If you could give the error messages or any output you are getting, it would be better.
Hello Sir,
ReplyDeleteI use the GreenCloud simulator for cloud computing. It allows the calculation of the energy component of the data center.
It uses ns-2.35. I installed a new agent for security (Agent/Security_packet) and i changed the different files (Makefile, packet.h, ns-default.tcl, ns-packet.tcl) and run ./configure, make clean and make. Everything works.
My problem is that I don't know where i'm going to call this agent and how from my tcl file because the tcl code of GreenCloud does not use nodes.
How can I do sir? Please reply me as soon as possible.
Thank you very much.
Hi,
DeleteUsually agents are attached to node and it will call all the related function whenever it come across that event.
Hello sir,
ReplyDeleteI am facing in running BMAC protocol tcl script file.which showing following error.i am unable to rectify it... kindly help me sir
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
invalid command name "Mac/BMAC"
while executing
"Mac/BMAC create _o19 "
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 $mactype"
(procedure "_o14" line 10)
(Node/MobileNode add-interface line 10)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
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 < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
# $node_($i) topography $w..."
(file "BMAC.tcl" line 176)
waiting for your response sir.
Thankyou
sumita
emailid-sumi.nagah@gmail.com
Hi,
DeleteUpdate the Makefile and compile again.
Sir i did... but still no changes.. may i mail you the code so that you could let me know where i am doing mistake.
DeleteThankyou
sumita
emailid-sumi.nagah@gmail.com
num_nodes is set 3
ReplyDeletewarning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
(_o15 cmd line 1)
invoked from within
"_o15 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 "_o15" line 2)
(SplitObject unknown line 2)
invoked from within
"_o15 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 < $opt(Snn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
#done my me to get refer..."
(file "smac.tcl" line 115)
Sir the above problem i am facing while running the INS MAC protocol tcl file.i downloaded as it is but unable to understand what kind of problem is this... Sir kindly please solve this problem.I am working on this from past one month.I did step by step installation as per readme file.but still facing problem to run the script.Sir kindly help me out it will be great help to me.
Thankyou
Looking for positive response.
Sonia
Hi,
DeleteUpdate the Makefile and compile again.
Hello Sir,
ReplyDeleteI have modified the aodv protocol by adding a malicious node to it.have reffered to the link http://elmurod.net/en/index.php/archives/196 but am still left with this error:
ns: _o66 malicious:
(_o66 cmd line 1)
invoked from within
"_o66 cmd malicious"
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 "_o66" line 2)
(SplitObject unknown line 2)
invoked from within
"_o66 malicious"
can you help please?
Hi,
DeleteUpdate the Makefile and compile again.
Please what do you mean with update the Makefile.
DeleteHi,
DeleteUpdating makefile means adding the object file name and path.
I want to check the energy of a node in TCL and then change its color. How can I do this in ns2. Also I want to do this periodically, so can I add a timer in TCL to check energy?
ReplyDeleteThanks in advance.
Hi,
DeleteTimer TCL script will not resolve the problem, you need write function in C++ part.
hi sir i am going to implementing energy consumption schemes using MAC protocols ,and i already implemented 20 nodes but m getting struct how to set dynamic duty cycle. i want to use DMAC protocol pls kindly help me get out off from this problem .. thank you .
ReplyDeleteHi,
DeletePlease give more details.
i am getting the same segmentation fault while calculating e2e-delay for dsr routing protocol using awk script..plz give me solution
ReplyDeleteBEGIN {
seqno = -1;
# droppedPackets = 0;
# receivedPackets = 0;
count = 0;
}
{
if($4 == “AGT” && $1 == “s” && seqno 512){
# droppedPackets++;
# }
#end-to-end delay
if($4 == “AGT” && $1 == “s”) {
start_time[$6] = $2;
} else if(($7 == “cbr”) && ($1 == “r”)) {
end_time[$6] = $2;
} else if($1 == “D” && $7 == “cbr”) {
end_time[$6] = -1;
}
}
END {
for(i=0; i 0) {
delay[i] = end_time[i] – start_time[i];
count++;
}
else
{
delay[i] = -1;
}
}
for(i=0; i 0) {
n_to_n_delay = n_to_n_delay + delay[i];
}
}
n_to_n_delay = n_to_n_delay/count;
print “\n”;
# print “GeneratedPackets = ” seqno+1;
# print “ReceivedPackets = ” receivedPackets;
# print “Packet Delivery Ratio = ” receivedPackets/(seqno+1)*100
#”%”;
# print “Total Dropped Packets = ” droppedPackets;
print “Average End-to-End Delay = ” n_to_n_delay * 1000 ” ms”;
print “\n”;
Hi,
DeleteSegmentation fault is due to the memory allocation problem, that means your trying to store larger value in less space.
Hi!
ReplyDeleteI want to simulate Tinysec protocol and SPIN in ns2.29,Kindly guide me on how to Implement them and simulate for performance.
Thanks
Hi,
DeletePlease check below given link:
http://www.linuxquestions.org/questions/linux-general-1/spin-and-leach-protocol-in-ns-2-a-928523/
Also,
Deletehttp://www.gisum.uma.es/tools/spinns2/
sir I need to ask something regarding implementing a new protocol which in my case is a modification of AODV. Actually I have not only made changes in some file of AODV files but also in one of the common files which is packet.h. I want to run my tcl simultaneously with both protocols.
ReplyDeletekindly guide me.
Furthermore I would like to appreciate the job you are doing for the Ns2 community over here.
Hi,
DeleteYou have create separate protocol of AODV, then only you can simultaneously.
Hello sir,
ReplyDeleteCan you please help me in creating nam files for mesh AODV in ns2?
thanks,
Hi,
DeleteNam file will be generated automatically by the NS-2. But you can customize by adding colors, names, etc.
Hello Sir,
ReplyDeleteI tried to add new protocol in ns2 but it is giving me following error. Please guide me to resolve this error sir it's very urgent.
g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/shashi/ns-allinone-2.34/tclcl-1.19 -I/home/shashi/ns-allinone-2.34/otcl -I/home/shashi/ns-allinone-2.34/include -I/home/shashi/ns-allinone-2.34/include -I/home/shashi/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tmix/tmix_delaybox.o tmix/tmix_delaybox.cc
tmix/tmix_delaybox.cc: In member function ‘void Tmix_DelayBoxClassifier::create_flow_table(const char*, const char*, FILE*)’:
tmix/tmix_delaybox.cc:191:66: warning: ‘linkspd’ may be used uninitialized in this function
rm -f gen/version.c
/home/shashi/ns-allinone-2.34/bin/tclsh8.4 bin/string2c.tcl version_string < VERSION > gen/version.c
/bin/sh: cannot create gen/version.c: Permission denied
make: *** [gen/version.c] Error 2
Hi,
DeleteCan you give the steps followed.
Hallo sir!
ReplyDeleteI have two questions
1.when I run a tcl file I get the following errors
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
How do I correct this?
2.I have the codes for tinysec as found in:
http://www.tinyos.net/tinyos-1.x/tos/lib/TinySec/
Kindly direct me how I can use them to integrate to ns2 and test them for their performance
Kindly respond urgently
Regards
This comment has been removed by the author.
ReplyDeleteDear Sir,
ReplyDeletei am changing the code of dsr protocol in dsragent.cc for the malicious node.
After that i run in cygwin/ns2
make depend
make
i Get no error.
when i enter "make install",it shows the following
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
what i can do???
Hi,
DeleteIt is working fine.
Go ahead.
Thanku So Much Sir
DeleteYes Sir it's working. Bt after this i Got Other problem when i am run my compare_dsr.tcl with my traffic and scenrio file i got this
ReplyDeletens compare_dsr_proto.tcl -scen mov10_10_10 -tfc cbr10_10_10 -tr tr10_20_10
mov10_10_10
cbr10_10_10
tr10_20_10
DSR
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading traffic file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault (core dumped)
i am trying to edit the file of compare_dsr.tcl with this code to solve this error but i got same problem
the code is usr in compare file is::
if { $val(rpr) == "dsr" } {
set val(ifq) CMUPriQueue
} else {
set val(ifq) Queue/DropTail/PriQueue
}
and also the ns command work on cygwin/usr/local/ns-allinone-2.34/ns-2.34
But Not work anywhere just like if i make cbrgen.tcl in directive cygwin/usr/local/ns-allinone-2.34/ns-2.34/indep-utils/....
there not working this give this error
Hi,
DeleteMake sure that the changes you have done are correct in their syntax and semantics.
hi sir,
ReplyDeletei want to modify the protocol DSR,i am going to detect the selfish node in that selfish node wants to drop all packets while sending the data. so i need files .h and .cc. so can u help me sir?
Are tcl scripts for security algorithms like TinySec and SPINS protocol available?
ReplyDeleteIf yes Kindly post for me at ndiajohn@yahoo.com
Thanks
hello sir
ReplyDeletei am mandeep singh and i am working on implementation of dymo protocol . sir i am new to ns2.from where i can get the latest implementation of dymo protocol .thanx in advance sir..
Hi,
ReplyDeletei m trying to simulate leach protocol with Gauss-Markov mobility model, but when i run the tcl script im getting this error. i’ll be grateful if you can guide how to resolve this issue.
regards,
najma
5 is setting code to 0
4 is setting code to 0
45 is setting code to 0
3 is setting code to 0
ns: _o917 setdest 151.71516968780583 250.0 1.9939683248219735:
(_o917 cmd line 1)
invoked from within
“_o917 cmd setdest 151.71516968780583 250.0 1.9939683248219735″
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 “_o917″ line 2)
(SplitObject unknown line 2)
invoked from within
“_o917 setdest 151.71516968780583 250.0 1.9939683248219735″
Sir,
ReplyDeleteI want to patch new protocol in ns2.35. for example if i modify ADOV in ns2 and by keeping original AODV as it is how to patch new modified AODV??
Hi,
DeleteYou have to consider the modified protocol and follow the steps of adding new protocol in ns-2.
Sir I am working in ns-allinone-2.35.I have first install olsr patch um-olsr and olsr is working properly. Now i have done some changes in olsr protocol to implement wormhole attack and created OLSRW protocol.Which file I have to do to patch this new OLSR protocol in ns2.
ReplyDeleteSir please can you give me sugesgtions.......
hi sir
ReplyDeletehow to import route guidance protocol(rgp) in ns2.. where changes made to run this protocol in ns2.
i have attached this link
https://code.google.com/p/route-guidance-protocol/downloads/detail?name=rgp.zip&can=2&q=
i tried many ways but i didnot get output.. pls tell me asap..thank you sir
Hi,
ReplyDeleteYou need follow the steps given in following link:
http://elmurod.net/en/index.php/archives/157
The link to the sample code he gave in this example to the tcl script seems to be broken. did anyone ever download this file so we can test it as well?? kidly send us a link to this file
DeleteHello Sir ,
ReplyDeleteI want to modify tcp reno protocol to get improved throughput on hybrid network..As suggested i need to modify congestion avoidance , duplicate action and timout based round trip time....
First, i wrote tcl script for creating hybird topology and analysed result for tcp reno...In order to modify reno i did changes in existing files listed as tcp-reno.cc,tcp.cc,tcp.h and ns-default .tcl..
As you suggested in above pots,after modifying i run following commands
sudo make clean
sudo make
sudo make install
there were no error but when i run tcl script it is showing me the same result values for throughput...
plz guide me in correcting the code
Thanks and regards
hello sir,
ReplyDeleteCan you plz reply to my query written just above this post... I am trying my best but not getting correct path..
kindly reply
Thanks and regards
What are you trying to plot from this simulation?
DeleteDear Sir, I am simulating malicious node in AODV. I have made the changes to aodv.h and aodv.cc as directed in this tutorial http://elmurod.net/en/index.php/archives/196. But i get this error:
ReplyDeletens: _o35 hacker:
(_o35 cmd line 1)
invoked from within
"_o35 cmd hacker"
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 "_o35" line 2)
(SplitObject unknown line 2)
invoked from within
"_o35 hacker"
Kindly help me how I can solve this error.
Hi,
DeleteCompile again and run TCL.
Dear Ramakrishna, do I need to recompile ns2 again? if so how do I go about this. I am kind of a novice in this area.
DeleteKindly show me how to compile. Thanks
Hi,
Delete./configure
make depend
make clean
make
make install
while giving make clean command , em getting the following error.. Plz help me to resolve this..
ReplyDeleteMakefile:168: *** commands commence before first target. Stop.
Dear Ramakrishna, I run this statement "sudo apt-get install build-essential autoconf automake libxmu-dev" to compile and it seems to have executed successfully. this is the result of the compilation:
ReplyDeleteautoconf is already the newest version.
automake is already the newest version.
build-essential is already the newest version.
libxmu-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jose@B550Jose:~/Documents/ns-allinone-2.26/ns-2.26$
When I run my tcl script, I get the error below.
ns: _o35 hacker:
(_o35 cmd line 1)
invoked from within
"_o35 cmd hacker"
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 "_o35" line 2)
(SplitObject unknown line 2)
invoked from within
"_o35 hacker"
is there any other solution out there??
Hi,
DeleteYou have to compile from the beginning, when you do changes in Makefile and .cc file.
I wrote a cc file and was trying to link with a tc; file.. I've included the object file name under OBJ_CC in makefile and recompiled ns. Bt i am stl getting the foll error.. Plz help me..
ReplyDeleteinvalid command name "Agent/MyAgentOtcl"
while executing
"Agent/MyAgentOtcl create _o3 "
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/MyAgentOtcl"
invoked from within
"set MyAgent [new Agent/MyAgentOtcl]"
(file "linkage.tcl" line 1)
Hi,
DeleteCompile and run the TCL script.
Hiii.....
ReplyDeleteI am doing my project in adhoc network- implementing a routing protocol.I am entirely new to this area.so can u please tell me what are the steps to be followed when implementing a protocol.How to do coding..
Hi,
ReplyDeleteI am a masters student in computer science and technology
I want to work on SPIN protocol in wireless sensor networks. I have downloaded the code for SPIN protocol available on Google.But I do not have any idea about integrating SPIN protocol in NS2.
I am using UBUNTU 12.04 and NS2.35.
Please help me out with this sir.
In anticipation for your reply!!!