Re: [ns] tcl: read parameters form file
Nesher, here the code, please let me know if i did any mistake set fid [open input.txt r] while {[gets $fid lineInfo] != -1} { regexp {.+: (\d+)} $lineInfo match one set tcpFallowUDP [lappend tcpFallowUDP $one] } puts $tcpFallowUDP On 8 May 2011 14:32, Tami Nesher vessely...@gmail.com wrote: here I attached the file. I need to read the numbers in tcl. On Sun, May 8, 2011 at 1:47 AM, ÞÕÇÏ Úíäì Ýì ßá ãßÇä mohammed teto...@yahoo.com wrote: send the file to show and try to help you --- On *Sun, 5/8/11, Tami Nesher vessely...@gmail.com* wrote: From: Tami Nesher vessely...@gmail.com Subject: [ns] tcl: read parameters form file To: ns-users@ISI.EDU Date: Sunday, May 8, 2011, 4:19 AM Hi, I need to read two parameters from file and save them as two variables in tcl script. the file needs look like this (for example): _: 10 _: 20 each line is one word, and I need to save the numbers. How can I do this? Thanks a lot if you have an answer. -- רבי משה בן מכיר זצל, מגדולי הראשונים כתב: מי שאומר את ברכת אשר יצר בכוונה, ומוציא כל מילה מפיו בקול רם וברור, לא יבוא עליו שום חולי שבעולם, ולא יזדקק כלל לרופאים או לתרופות! -- Thanks, The box said Requires Windows 95, NT, or better, so I installed Linux. Mallikarjun [:)] [image: YouTube] http://in.youtube.com/mallikv [image: Blogger]http://basicnetworktipsntricks.blogspot.com/ [image: LinkedIn] http://www.linkedin.com/in/mallikarjunaraok
Re: [ns] Fw: ns2 installation error
Ehsan, I think you try to give execution permission nam, try to change chmod +x to nam (find location of nam) On 8 May 2011 15:26, Ehsan Chaudhary ehsanchaudh...@ymail.com wrote: - Forwarded Message From: Ehsan Chaudhary ehsanchaudh...@ymail.com To: ns-users@isi.edu Sent: Sunday, May 8, 2011 12:19:11 Subject: ns2 installation error hi everybody. i just installed ns2.34 on fedora 14, validation was perfect, and when i try to simulate a tcl file by % ns example.tcl i get following error Filtering ... running nam... ns: finish: couldn't execute nam: permission denied while executing exec nam out.nam (procedure finish line 13) invoked from within finish please help me how to remove this error thanks -- Thanks, The box said Requires Windows 95, NT, or better, so I installed Linux. Mallikarjun [:)] [image: YouTube] http://in.youtube.com/mallikv [image: Blogger]http://basicnetworktipsntricks.blogspot.com/ [image: LinkedIn] http://www.linkedin.com/in/mallikarjunaraok
[ns] a simple question about the format of a trace file : Thank you
Hi friends, i'm simulating the GPSR protocol combined with the location service HLS . the trace file that i obtainde has this format : HLS_CUpd 5.472465613941 3 [0 5.4500 351.95 35.23] RTE: 5.472465613941 _3_: RouteInfo 10 (0-3) : 1 1r 5.472465614 _3_ MAC --- 10 cbr 189 [13a 3 0 800] --- [0:0 3:0 128 3] [6] 1 0 s 5.472475614 _3_ MAC --- 0 ACK 38 [0 0 0 0] r 5.472490614 _3_ AGT --- 10 cbr 189 [13a 3 0 800] --- [0:0 3:0 128 3] [6] 1 0 r 5.472779711 _0_ MAC --- 0 ACK 38 [0 0 0 0] s 5.473109711 _0_ MAC --- 0 RTS 44 [a36 3 0 0] r 5.473461808 _3_ MAC --- 0 RTS 44 [a36 3 0 0] s 5.473471808 _3_ MAC --- 0 CTS 38 [8fc 0 0 0] r 5.473775905 _0_ MAC --- 0 CTS 38 [8fc 0 0 0] I don't know which numbre refers to the packet id because it's not shown as the standard format of NS trace file like s -t 0.293822201 -Hs 0 -Hd -2 -Ni 0 -Nx 100.00 -Ny 400.00 -Nz 0.00 -Ne -1.00 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 1.0 -It cbr -Il 512 -If 0 etc... So, how can i know where is the packet id and also for other informations . In other words, how can i know what every information refers to than you and goog luck zak,
[ns] OLSR/ETX is compatible with the multiradio
Helle everyone, i istalled the following path: http://www.inf.ufrgs.br/ wlccordeiro ~ / resources / OLSR / index.php but I found some problems with the multiradio. I wanted to know if anyone cantell me if this path is compatible with the multiradio. Thanks in advance.
[ns] error model in wirelees scenario
hi everybody i want to add error model to my script file for simulating the packet loss in wireless scenario but the instruction of ns manual for adding error model for wireless scenario does not work and actually does not have any effect in the simulation. these command which are said in ns manual as are follows : $ns_ node-config -incomingErrProc $em or $ns_ node-config -outgoingErrProc $em that $em is a procedure : #Create the error model set em [new ErrorModel] $em unit pkt $em set rate_ 0.03;# PER = 3% $em ranvar [new RandomVariable/Uniform] $em drop-target [new Agent/Null] Does anybody about adding error model which is supported in wireless scenario ? thanks for attention.
[ns] how do i change the node color for animations
Hie all. When I run my simulation the animation nodes are being displayed with a green color rather than a default color black. I have tried to use the $node_(0) color blue/red/black but still nothing is changing. The node_(0) is my node name. Can anyone assist me please I have tried many option but to no avail. Your help will be greatly appreciated. Its urgent -- Regards Panganai Mbira
[ns] FW: how do i change the node color for animations in smac
Hie all. When I run my simulation the animation nodes are being displayed with a green color rather than a default color black. I have tried to use the $node_(0) color blue/red/black but still nothing is changing. The node_(0) is my node name. Can anyone assist me please I have tried many option but to no avail. Your help will be greatly appreciated. Its urgent -- Regards Panganai Mbira
[ns] Needed awk script for throughput in wireless scenario
Hello, Does anyone have the awk script to calculate delay,throughput, packet loss, end to end delay in wireless scenario? I will really appreciate it. Regards. Urgent