[ns] Getting error when running a tcl script after adding a new routing protocol
Good afternoon Ns-users! I am trying to implement ETX (Expected Transmission Count) and IBETX (Interference Bandwidth adjusted ETX) as routing metric into the AODV routing protocol and DSDV routing protocol respectively in NS-2.34. I created another identical AODV and DSVD ad hoc routing protocols file and I made some changes into AODV and DSDV file in order to incorporate ETX and IBETX as routing metric respectively. After that i renamed all AODV and DSDV files (.cc & .h) to AODVETX and DSDVIBETX files (.cc & .h). I have changed all the words where the aodv and dsdv words appear by aodvetx and dsdvibetx words (c++ Classes, Packets headers, variables, TCL bindings,..). After run "Make clean and "Make" it compiles fine. But during execution of tcl file with new protocol code I am getting following errors. I have carefully implemented code step by step by thoroughly reading ns material on internet and ebooks. I shall be highly thankful to you (_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 1} {$i <= $val(nn) } { incr i } { set node_($i) [$ns node] }" -- View this message in context: http://old.nabble.com/Getting-error-when-running-a-tcl-script-after-adding-a-new-routing-protocol-tp34647085p34647085.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] How to uninstall NS-2.34 on Ubuntu
Good day all, Please someone can help me to uninstall Ns-2.34. Please give me the different steps i have to do. Regards! -- View this message in context: http://old.nabble.com/How-to-uninstall-NS-2.34-on-Ubuntu-tp34652534p34652534.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Getting error after re-installing ns-2.34
Good day all, I uninstalled and re-installed ns-2.34 but when i try to run some basic tcl scripts it gives an error as " segmentation fault" I did google it on the internet and i didn't find the answer. any one has an idea what is going wrong? Thanks in advance! -- View this message in context: http://old.nabble.com/Getting-error-after-re-installing-ns-2.34-tp34655766p34655766.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Getting error when increasing the number of nodes im y tcl script
Good afternoon all, I am doing a performance evaluation of the ETX and IBETX routing metrics for different routing protocols (AODV and DSDV). everything is working fine when i do simulations up to 50 nodes but when i try to go above 50 nodes in my tcl scripts i am getting the following error: anyone who knows what's going wrong? Thanks in adavance *** glibc detected *** ns: free(): invalid next size (fast): 0x0ade0c30 *** === Backtrace: = /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb74c9ee2] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb76c551f] ns(_ZN10PacketDataD0Ev+0x1c)[0x81ddd38] ns(_ZN6Packet4freeEPS_+0x47)[0x81c607d] ns(_ZN9Mac802_117discardEP6PacketPKc+0x43)[0x8275f41] ns(_ZN9Mac802_1110recv_timerEv+0x124)[0x82790e4] ns(_ZN9Mac802_recvHandlerEv+0x11)[0x8276d8d] ns(_ZN7RxTimer6handleEP5Event+0x38)[0x829eca6] ns(_ZN9Scheduler8dispatchEP5Eventd+0x94)[0x81c314c] ns(_ZN9Scheduler3runEv+0x2c)[0x81c3080] ns(_ZN9Scheduler7commandEiPKPKc+0x6b)[0x81c322d] ns(_ZN8TclClass12dispatch_cmdEPvP10Tcl_InterpiPPKc+0x32)[0x83b874a] ns[0x83bc321] ns(TclInvokeStringCommand+0x7e)[0x83c035e] ns(TclEvalObjvInternal+0x39d)[0x83c29bd] ns[0x83ecee2] ns(TclCompEvalObj+0xed)[0x83f0c9d] ns[0x83ed371] ns(TclCompEvalObj+0xed)[0x83f0c9d] ns(TclObjInterpProc+0x267)[0x841b137] ns(TclProcInterpProc+0x88)[0x841b568] ns[0x83bc459] ns(TclInvokeStringCommand+0x7e)[0x83c035e] ns(TclEvalObjvInternal+0x39d)[0x83c29bd] ns[0x83ecee2] ns(TclCompEvalObj+0xed)[0x83f0c9d] ns(TclObjInterpProc+0x267)[0x841b137] ns(TclProcInterpProc+0x88)[0x841b568] ns[0x83bc321] ns(TclInvokeStringCommand+0x7e)[0x83c035e] ns(TclEvalObjvInternal+0x39d)[0x83c29bd] ns(Tcl_EvalEx+0x390)[0x83c4840] ns(Tcl_FSEvalFile+0x22e)[0x840982e] ns(Tcl_Main+0x36d)[0x840d2ed] ns(nslibmain+0x20)[0x83b79bc] ns(main+0x1b)[0x83b7b17] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb746d4d3] ns[0x81bd7a1] === Memory map: 08048000-0857c000 r-xp 08:06 8136423 /home/maxime/ns-allinone-2.34/ns-2.34/ns 0857c000-0857d000 r--p 00533000 08:06 8136423 /home/maxime/ns-allinone-2.34/ns-2.34/ns 0857d000-08618000 rw-p 00534000 08:06 8136423 /home/maxime/ns-allinone-2.34/ns-2.34/ns 08618000-0862 rw-p 00:00 0 0a3d7000-0b254000 rw-p 00:00 0 [heap] b724f000-b7251000 rw-p 00:00 0 b7251000-b7451000 r--p 08:06 11541507 /usr/lib/locale/locale-archive b7451000-b7454000 rw-p 00:00 0 b7454000-b75f7000 r-xp 08:06 10227583 /lib/i386-linux-gnu/libc-2.15.so b75f7000-b75f8000 ---p 001a3000 08:06 10227583 /lib/i386-linux-gnu/libc-2.15.so b75f8000-b75fa000 r--p 001a3000 08:06 10227583 /lib/i386-linux-gnu/libc-2.15.so b75fa000-b75fb000 rw-p 001a5000 08:06 10227583 /lib/i386-linux-gnu/libc-2.15.so b75fb000-b75fe000 rw-p 00:00 0 b75fe000-b761a000 r-xp 08:06 10224564 /lib/i386-linux-gnu/libgcc_s.so.1 b761a000-b761b000 r--p 0001b000 08:06 10224564 /lib/i386-linux-gnu/libgcc_s.so.1 b761b000-b761c000 rw-p 0001c000 08:06 10224564 /lib/i386-linux-gnu/libgcc_s.so.1 b761c000-b76f4000 r-xp 08:06 11539413 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 b76f4000-b76f5000 ---p 000d8000 08:06 11539413 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 b76f5000-b76f9000 r--p 000d8000 08:06 11539413 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 b76f9000-b76fa000 rw-p 000dc000 08:06 11539413 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 b76fa000-b7702000 rw-p 00:00 0 b7702000-b772c000 r-xp 08:06 10227594 /lib/i386-linux-gnu/libm-2.15.so b772c000-b772d000 r--p 00029000 08:06 10227594 /lib/i386-linux-gnu/libm-2.15.so b772d000-b772e000 rw-p 0002a000 08:06 10227594 /lib/i386-linux-gnu/libm-2.15.so b772e000-b7731000 r-xp 08:06 10227598 /lib/i386-linux-gnu/libdl-2.15.so b7731000-b7732000 r--p 2000 08:06 10227598 /lib/i386-linux-gnu/libdl-2.15.so b7732000-b7733000 rw-p 3000 08:06 10227598 /lib/i386-linux-gnu/libdl-2.15.so b773b000-b7742000 r--s 08:06 11536289 /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache b7742000-b7743000 r--p 005e1000 08:06 11541507 /usr/lib/locale/locale-archive b7743000-b7745000 rw-p 00:00 0 b7745000-b7746000 r-xp 00:00 0 [vdso] b7746000-b7766000 r-xp 08:06 10227595 /lib/i386-linux-gnu/ld-2.15.so b7766000-b7767000 r--p 0001f000 08:06 10227595 /lib/i386-linux-gnu/ld-2.15.so b7767000-b7768000 rw-p 0002 08:06 10227595 /lib/i386-linux-gnu/ld-2.15.so bfe27000-bfe48000 rw-p 00:00 0 [stack] Aborted (core dumped) -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/Getting-error-when-increasing-the-number-of-nodes-im-y-tcl-script-tp25826.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] how to add random noise in node's channel in ns2
Good day all, I am trying to evaluate the robustness of a quality link metric by adding some random noise to some selected nodes channel communication in wireless networks but i don't have any clue how i can do it. someone who did it before? Thanks in advance! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/how-to-add-random-noise-in-node-s-channel-in-ns2-tp26449.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] how to generate a noisy environment in ns-2.34?
Good day all, I am trying to evaluate the robustness of a quality link metric over a routing protocol, for that purpose i would like to generate a noisy environment network in ns-2.34. any one who has done before? Thanks in advance! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/how-to-generate-a-noisy-environment-in-ns-2-34-tp26451.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] SINR and SNR Computation in ns2
Good day all,I am trying to get the Signal to Interference and Noise Ratio (SINR) and the Signal to Noise Ratio (SNR) at the Physical layer and using a cross layer i will use them at the routing layer. any one who has an idea how i can Compute the SINR and the SNR in NS2. I am using the routing protocol AODV.Regards! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/SINR-and-SNR-Computation-in-ns2-tp27149.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Piggyback in NS2
Good day all, I am trying to piggyback or combine two packets at a time and then send those packets to avoid extra routing overhead that can be caused by sending them on by one. I am using NS2.34 Regards! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/Piggyback-in-NS2-tp27179.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] How to get the transmission rate or the bandwidth of a wireless link
Good evening Ns-users! I just want to ask you how can i measure the transmission rate or the bandwidth of a wireless link between two nodes in NS-2.34 I am using AODV routing protocol. I read that it's possible to get it by using Packet pair But this technique introduces an overhead in the network and i am trying to avoid it. Do anyone have any idea how i can get it? Regards! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/How-to-get-the-transmission-rate-or-the-bandwidth-of-a-wireless-link-tp27264.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] help- AODV protocol
Hey! I think this link can be useful http://mailman.isi.edu/pipermail/ns-users/2011-September/071004.html Hope it will help! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/help-AODV-protocol-tp27095p27265.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] How to add a new packet header to AODV routing protocol in NS2.34
Good day all, I am trying to implement a new routing metric on AODV routing protocol using ns-2.34. For this purpose i have to add a new packet header for all data packets. Going through to aodv_packet.h i noticed there are 5 packet headers (RREQ, HELLO, ERR, RREP_ACK). How can i add my packet header so that i can trace it as well in the trace file? Regards! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/How-to-add-a-new-packet-header-to-AODV-routing-protocol-in-NS2-34-tp27349.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] CROSS LAYER IN NS2.34: accessing the MAC layer from Routing layer
Good day Dear, I am trying to access the Mac Layer from the Routing layer of AODV routing protocol using the following document (see link below). I followed all the steps but I think i have a problem with the last one, when i try to add the last step to my tcl script in order to get the right pointer, I am getting the following error can't read "rt(0)_o17": no such variable while executing "set rt($i)[$node_($i) agent 255]" ("for" body line 5) .. My question is what rt stands for? is it the AODVagent? Please see below the link where it is explained http://wmnatupdiliman.blogspot.com/2011/02/exchanging-cross-layer-information-in.html Regards! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/CROSS-LAYER-IN-NS2-34-accessing-the-MAC-layer-from-Routing-layer-tp27390.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] How to Cross Layer AODV?
The following can be useful, http://wmnatupdiliman.blogspot.com/2011/02/exchanging-cross-layer-information-in.html Regards! -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/How-to-Cross-Layer-AODV-tp13084p27459.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] Request for help
Thanks for your reply. I followed your advice but I just include the file wireless-phyExt.h inside the file aodv.h without adding anything else and after recompiling ns2 i am getting the same error. I don't understand what is going on. -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/Request-for-help-tp27717p27751.html Sent from the ns-users mailing list archive at Nabble.com.