[ns] Urgent reply needed

2006-09-29 Thread Bhoi Maheshbhai Mohanbhai
I run my protocol of spbm, which uses greedy perimeter routing, I can compile my code,but got the error missing close-brace: possible unbalanced brace in comment while executing proc create-spbm-mobile-node { id args } { global ns ns_ chan prop topo tracefd opt node_ set

Re: [ns] Urgent reply needed

2006-09-29 Thread Pedro Vale Estrela
Check Why can I not place unmatched braces in Tcl comments? http://wiki.tcl.tk/462 And http://phaseit.net/claird/comp.lang.tcl/fmm.html And http://mini.net/tcl/1669.html If this helps you, contribute and put this info in the ns2 wiki Regards Pedro Vale etsrela -Original Message-

Re: [ns] A router (gateway) between two ad hoc networks

2006-09-29 Thread Pedro Vale Estrela
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: quinta-feira, 28 de Setembro de 2006 9:44 To: ns-users@ISI.EDU Subject: [ns] A router (gateway) between two ad hoc networks Hello, I am trying to implement a router

Re: [ns] Filtering Columns from output trace file

2006-09-29 Thread Renata Vidal
cat file | awk '{ print $1 $2 }' and so on On 9/29/06, Aleksandar Smolovic [EMAIL PROTECTED] wrote: Hi all, I have a basic NS2 question. After executing tcl script, I have result files on my HDD. I have output trace file, let's say out.tr. Now I want to draw some graphics. My out.tr

Re: [ns] Filtering Columns from output trace file

2006-09-29 Thread Pedro Vale Estrela
Try cat trace.tr | awk ' { print $2 $6 $8 } ' PS: Good subjects, as in this case, will get you the answers! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aleksandar Smolovic Sent: sexta-feira, 29 de Setembro de 2006 16:11 To: NS-Users

Re: [ns] generating topology

2006-09-29 Thread Sita S. Krishnakumar
Hi, I want to thank the many people who replied to my query. setdest with M=.001 did not give me the required topology. It does seem to have motion even when the speed is miniscule, dont know why. I decided to try brite and did generate a topology. nedase is a dos tool and i tried to convert

Re: [ns] Filtering Columns from output trace file

2006-09-29 Thread Salvador Alcaraz Carrasco
another way: cat trace.tr | perl column 1 5 7 /salva On Fri, 29 Sep 2006, Pedro Vale Estrela wrote: Try cat trace.tr | awk ' { print $2 $6 $8 } ' PS: Good subjects, as in this case, will get you the answers! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [ns] Filtering Columns from output trace file

2006-09-29 Thread Pedro Vale Estrela
cat trace.tr | awk ' { print $2\t\t$8 } ' hint: check this small doc and associated tools to answer a lot of questions ns-2 for the impatient: http://icapeople.epfl.ch/aad/teaching/ns/ -Original Message- From: Aleksandar Smolovic [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 29 de

[ns] LossMonitor - can't read, no such variable

2006-09-29 Thread Renata Vidal
Why I can't set a variable like this: SinkCBR($i) ? Its got me crazy! If I set each variable like SinkCBR0, SinkCBR1 and so on, its be OK, but if I try SinkCBR($i) or SinkCBR$i I see the message no such variable. Whats is wrong? -- Forwarded message -- From: Renata Vidal [EMAIL

Re: [ns] LossMonitor - can't read, no such variable

2006-09-29 Thread Pedro Vale Estrela
Ahh, the ever challenging TCL syntax... a) Check Frequently Made Mistakes™ in Tcl http://phaseit.net/claird/comp.lang.tcl/fmm.html b) try like this: proc record {} { puts stderr recording global sink f0 ;# changed line set ns [Simulator instance] set

Re: [ns] trouble with error model over wired links

2006-09-29 Thread Pedro Vale Estrela
Hi there, This is another fine post to the ns-users mailing list. Good subject, good question overall == totally in line with http://www.catb.org/~esr/faqs/smart-questions.html the problem is that you are putting the loss-model in all 3 links; I report exactly the same tracea and NAM

Re: [ns] LossMonitor - can't read, no such variable

2006-09-29 Thread Renata Vidal
My variables are called sink($i), the () is in the name of them. I tried scape it but it not solve the problem. If I change for something like sink$i I have errors on attach-agent command. This example below don't works for me... Any clue? On 9/29/06, Pedro Vale Estrela [EMAIL PROTECTED] wrote:

Re: [ns] LossMonitor - can't read, no such variable

2006-09-29 Thread Pedro Vale Estrela
Instead of that, define the sink as an array variable and use it as normal http://wiki.tcl.tk/1032 set sink(1) [new Agent/TCPSink] ... Proc something { } { global sink ... set bw0 [$sink(1) set bytes_] } -Original Message- From: Renata

Re: [ns] trouble with error model over wired links

2006-09-29 Thread Abdul Jabbar
I was able to solve this problem. I would like to thank both Pedro and Alam for their response. The solution provided by Pedro: that is to apply the error to just one link does work. However, my intention was to simulate a network where every link has a certain error rate. The solution

[ns] queuing enque/deque calls

2006-09-29 Thread Larry Brigman
I have built a version of taildrop from the ns-by-example that allows me to check to see how many copies of the class have been created. If I use this class on a duplex-link I get two classes created, as expected. When passing traffic in both directions, only one of the two created classes gets

[ns] how to patch a new file to NS

2006-09-29 Thread Agila Rajendran
hi all Iam new to NS,LINUX and this user group. somebody plz tell me how to patch a new file to NS and run it path is set in Usr ,but iam currently working in ROOT. i tried ./patch directory path it showed some error in the directory path. plz tell me should i go to usr