Re: [ns] configure ns problem
hi, [EMAIL PROTECTED] wanted us to know: Dear all, Now I meet a tough problem that I can not configure ns . when I run ns in command line prompt. It gives me that information : When configured, ns found the right version of tclsh in /home/wjw101/ns-allinon e-2.30/bin/tclsh8.4brbut it doesn't seem to be there anymore, so ns will fall back on running the fir st tclsh in your path. The wrong version of tclsh may break the test suites. Re configure and rebuild ns if this is a problem.br% I can also run TCL script, but when i modified the *.cc and *.h file and run make make depend make command, I find that modification does not work , I do not konw why it is. Did you try 2 different ns installations on you pc. I would check for the variables (PATH, LD_LIBRARY etc..) if they are set correctly. If it does not work / or additioally, you can try make clean make Regards, -- Luqman
[ns] problems after tampering with the queue
hello, I like to do some modifications to the ns code (2.30 with eurane) and face some strange problem when I dequeue a packet from the retransmission buffer, change a parameter (a new counter added by myself to hdr_rlc structure) and enque the packet at the original place. Simulation runs normally sometimes and the next time it stops with varying warnings and errors. 1) ns: scheduler going backwards in time from 11.900015 to 11.899000. 2) Scheduler: Event UID not valid! 3) Direction for pkt-flow not specified; Sending pkt up the stack on default. Segmentation fault (core dumped) I just took a packet from the queue, changed the retransmission counter and put that packet back on the queue at the same place. Nothing else was changed. Any ideas? -- Luqman
Re: [ns] How to disable all the trace outputs
Dear All, I'm simulating a wireless network with 500 nodes. I have turned off all the trace options in my tcl file. However, still lines are appending to the output file and after a while the file gets huge. It really make the simulation slow. Does anybody know how can I turn off tracing completely? Maybe you can provide (part of) your code. This would help understand the mistake. Regards, -- Luqman
Re: [ns] random number not really random in my script [SOLVED]
hi all, for the sake of completion. Luqman wanted us to know: Though errors are inserted in the received packets these errors occur at the same place during every run of simulation. I think this is not intended so. Random variable should contain different numbers every time random function is called. After reading up in the ns-manual while searching for random and seed, I found that ns-ransom 0 choses the seed at run time whereas otherwise a static seed was being used. Hope this helps others with same questions. Regards, -- Luqman
Re: [ns] How to exclude the droped packet from trace file
hi Wajid, wajid wanted us to know: I want to exclude the droped packet from trace file because I used traffic source rate equal to channel rate i.e 11Mbps and it creates lot of droped packets which increase the trace file size, and i am running simulation for 1 to 40 stations and it has exceeded the size of the hard disk, Any suggestions ? thanks in advance wajid Chapter 25 in The ns Manual handles with trace issue. Maybe you can use create-trace, drop-trace, trace-queue etc.. instead of trace-all. $ns_ create-trace type file src dst optional:op Here create-trace allows to define src and dst nodes that are to be traces. With type and optional:op you can further reduce the size of trace. I didn't find quickly how to set optional:op value though. Maybe someone on this list can help. Furthermore, NS simulator for beginners describes how to reduce size of trace files with gawk, perl, grep etc. under unix-based operating systems. Good luck. Regards, -- Luqman
[ns] LL implementation in ns-2 RFC conformant?
hi, I was wondering whether LL (link layer) implemented in current version includes timer mechanism. I plan to have two node connected to LAN and have them send data with acknowledgment mode of LL. I could not find a hint in the latest ns-manual whether a retransmission request is abandoned once there is not reply in some predefined time? Example: host1 == host2 (sender)ethernet (receiver) Once host2 detects a missing frame, it requests host1 to resend the concerning frame. However it would not wait forever for retransmission of this frame. After a timer is expired, this frame is marked as missing. This is how standard (RFC) says. I do not know whether something like is enabled in current version of ns2? Your thoughts are much appreciated. Regards, -- Luqman
Re: [ns] Installing ns-2.26 in FC5!
hi, Diana Asnani wanted us to know: Hi folks, Has anyone successfully installed ns-2.26 in FC5? It says tcl8.3.2configuration failed! Is there a way to fix the tcl? Please let me know.Thanks. If you can do without FC5 then have a try with mandriva LE2005 (limited edition 2005). It comes with gcc-3.4.3 and installation of ns2.28 and ns2.30 worked fine on it. Cheers, -- Luqman
Re: [ns] Installation problem Linux x86_64
ivan guardiola wanted us to know: Checking for XOpenDisplay in -X11 . no Can't find X library Please have a look in mailarchives before posting. You probably need x development files. -- Luqman
Re: [ns] installation problem Linux X86_64
Checking for XOpenDisplay in -lX11. no Can't find X library I would install XFree86 development libraries. -- Luqman
Re: [ns] ns 2 allinone installation error in Xgraph and TK
hello When i try to install ns2 allinone under linux, i got the error as xgraph.h:10:21: X11/Xos.h: No such file or directory xgraph.h:11:22: X11/Xlib.h: No such file or directory xgraph.h:12:23: X11/Xutil.h: No such file or directory xgraph.h:13:28: X11/cursorfont.h: No such file or directory In file included from xgraph.c:32: Please install XFree86 development libraries. Cheers, -- Luqman
[ns] validate: some tests in ./test-all-webcache failed
hello, after installing ns-2.28 on Ubuntu6.06 (bash 3.00.16, gcc 2.95.4, g++ 2.95.4), some validation tests did not pass. During the installation everything went smoothly except for gt-itm sgb2ns which are optional components. ./test-all-newreno and ./test-all-webcache both failed ./validate test. Upon seperate execution, test-all-newreno passed completely but test-all-webcache grouses about following 5 parts that failed. (all were called by the script ./test-all-webcache) 1) Mcast-PBtr: 2) Mcast-PBPtr: 3) Mcast-PBUtr: 4) ttl-PBtr: 5) ottl-PBtr: Error message for every failed test is similar to Mcast-PBtr: Running test Mcast-PBtr: ../../ns test-suite-webcache.tcl Mcast-PBtr Test output differs from reference output Diagnose with: diff test-output-webcache/Mcast-PBtr.test test-output-webcache/Mcast-PBtr Or see URL http://www.isi.edu/nsnam/ns/ns-problems.html;. next? I did not find any ideo on http://www.isi.edu/nsnam/ns/ns-problems.html. Can anyone give me a hint whether this is a severe error or can I ignore them and go on with my umts simulation that won't simulate anything webcaching related? It is extemely important for me that simulation result is not tampered by these faults. Thus I would be grateful for any ideas. Cheers, -- Luqman
Re: [ns] validate: some tests in ./test-all-webcache failed
./test-all-newreno and ./test-all-webcache both failed ./validate test. Upon seperate execution, test-all-newreno passed completely but test-all-webcache grouses about following 5 parts that failed. (all were called by the script ./test-all-webcache) 1) Mcast-PBtr: 2) Mcast-PBPtr: 3) Mcast-PBUtr: 4) ttl-PBtr: 5) ottl-PBtr: Some old posting (http://www.isi.edu/nsnam/archive/ns-users/webarch/2001/msg00673.html) suggest to use the -g option to tacle these test validation errors. Though this option is suggested for Solaris users, since I don't know what else to try I would like to have a go with it. But I don't know where to use that option. I used allinone package. Any ideas? -- Luqman
Re: [ns] what I\'m interested in is interface queue
Please adjust maximum line size to less than 70 characters. Regards, Luqman
Re: [ns] Help: ns installation failed
Luqman wanted us to know: hello, I am trying to install ns2.28 on Ubuntu 6.06 with following components: gcc version 3.3.6 GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu) 2.6.15-26-386 Just for the sake of completeness, I did installa ns2 successfull though after seesaw, i.e. hat to try out a lot of gcc, bash versions and combinations of them. Finally, gcc-2.95 and GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu) from Hoary worked for me. Only nam is not installed but I can live with that. cheers, -- Luqman
[ns] Help: ns installation failed
hello, I am trying to install ns2.28 on Ubuntu 6.06 with following components: gcc version 3.3.6 GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu) 2.6.15-26-386 Everything seems to run smoothly until final linking process for ns begins: g++ -o ns \ ... /skipping '.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced in section `.rodata' of wpan/p802_15_4mac.o: defined in discarded section `.gnu.linkonce.t._ZN11taskPending10taskStatusEh' of wpan/p802_15_4mac.o collect2: ld gab 1 als Ende-Status zurück (engl: ld returned 1 as end status) make: *** [ns] Fehler 1 (engl: error 1) Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems I have tried a lot of different combinations of gcc/bash and distros. The above mentioned combination has brought me closest. Can anyone give me a hint, please? Regards, -- Luqman
[ns] A simple umts scenario
hello, I have patched ns-2.28 with EURANE. I wanted to test the UMTS link but my code seem to contain some error. UE, node 2 in my case, is not connected as visible in nam even though I have created a DCH channel. Can anyone give a hint what could be wrong in the following script. Thank you in anticipation. cheers, Luqman . #Create a simulator object set ns [new Simulator] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file exec nam out.nam puts Simulation ended! exit 0 } # Insert your own code for topology creation # and agent definitions, etc. here # Node address is 0 $ns node-config -UmtsNodeType rnc set rnc [$ns create-Umtsnode] # Node address is 1 $ns node-config -UmtsNodeType bs \ -downlinkBW 32kbs \ -downlinkTTI 10ms \ -uplinkBW 32kbs \ -uplinkTTI 10ms \ set bs [$ns create-Umtsnode] #Iub configuration between RNC and BS $ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000 # Node address for ue1 is 2 $ns node-config -UmtsNodeType ue \ -baseStation $bs \ -radioNetworkController $rnc set ue1 [$ns create-Umtsnode] # Node address for sgsn0 and ggsn0 is 3 and 4, respectively set sgsn0 [$ns node] set ggsn0 [$ns node] # Node address for node1 is 5 set node1 [$ns node] $ns duplex-link $node1 $ggsn0 622Mbit 1ms DropTail 1000 $ns duplex-link $ggsn0 $sgsn0 622Mbit 1ms DropTail 1000 $ns duplex-link $sgsn0 $rnc 622Mbit 1ms DropTail 1000 $rnc add-gateway $sgsn0 set rtp_sender [new Agent/RTP] $ns attach-agent $node1 $rtp_sender set rtp_receiver [new Agent/RTP] $ns attach-agent $ue1 $rtp_receiver # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 500 $cbr0 set interval_ 0.005 $cbr0 attach-agent $rtp_sender #creation of DCH channel $ns node-config -llType UMTS/RLC/AM \ -downlinkBW 64kbs \ -uplinkBW 64kbs \ -downlinkTTI 10ms \ -uplinkTTI 10ms set dch0 [$ns create-dch $ue1 $rtp_receiver] #Call the finish procedure after 5 seconds simulation time $ns at 5.0 finish #Run the simulation $ns run