Re: [ns] XOR Tcl program required...

2011-05-08 Thread мαłłi
welcome yugesh, Here a list converted into string example, we can many more using tcl set msg1 0010101001010101010101010 set msg2 101010101010100001010 set msg1 [split $msg1 {}] set msg2 [split $msg2 {}] set s 0 for {set i 0} {$i < [llength $msg1]} {incr i} { set temp [lappend temp [ex

[ns] XOR Tcl program required...

2011-05-08 Thread yugesh gowda
Can any one help me with a tcl program that does XOR operation.. For example consider two variables msg1 and msg2... set msg1 0010101001010101010101010 set msg2 101010101010100001010 Urgent

[ns] [NS-ANS]Re: Scheduler::instance().clock() in ns.2.30

2011-05-08 Thread Teerawat@UBC
Hi Molly, This C++ statement > Scheduler::instance().clock() returns the simulation time, i..e., the one you see in the trace file. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http:/

[ns] [NS-ANS]Re: instant awk script old trace format

2011-05-08 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a bit.

Re: [ns] error in arq insertion in tcl code

2011-05-08 Thread Teerawat@UBC
Hi Bibhu, Link-loss model is used in a wired network. In wireless networks, you will have to use other approach (e.g., propagation model) to impose error on the link. Mobile node has different architecture than regular nodes. The ARQ module would still work. But you will have to find another

[ns] [NS2]What is meaning in Ns-default.tcl (tcl\lib):LL set delay_

2011-05-08 Thread ¤終於aware
Hi, What is meaning in Ns-default.tcl (tcl\lib):LL set delay_ 25us? I analyzed the trace file and found that the difference value between the time when a packet is receive on MAC and the time when the packet is forwarded on RTR. Looking forward to your reply,thanks

[ns] Software validation

2011-05-08 Thread salahedin rehan
Hi all, I am trying to validate my simulation using coefficient of variation principles but when I calculate the confidence interval CI, most of the results I get by changing the seed are out from that interval. Are my results wrong?? Need all the result to be within that interval??? Please a

[ns] Flow monitor problem

2011-05-08 Thread Kleanthis Malialis
Hello, I have the following two questions regarding some flow monitor code I got from a tutorial. Please find part of the code at the bottom. 1. I guess that "[$fcla lookup auto 0 0 $i]" takes into account each flow separately. But why the zeros there? 2. When I run my full code, it always prin

[ns] [URGENT] someone knows ? etmp4 & tcl

2011-05-08 Thread Tami Nesher
I am trying to create a video file by the command exec ./etmp4 -p -0 sd_1 rd_1 st_a01 a01.mp4 a01e in a tcl script. but, when I run it- the video files weren't created by the tcl script. When I tried to run it from the console the video files were created,but with the output "aborted" in the end

[ns] wireless_patch_update ns-2.29 | Has anyone ported it to newer versions of ns2 ?

2011-05-08 Thread fivos
If yes can you upload the files somewhere or point me where i can download the patch . Any ns version from ns-2.31 onwards will do. Thanks

[ns] Fw: ns2 installation error

2011-05-08 Thread Ehsan Chaudhary
- Forwarded Message From: Ehsan Chaudhary 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 foll

Re: [ns] tcl: read parameters form file

2011-05-08 Thread Tami Nesher
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 * wrote: > > > From: Tami Nesher > Subject: [ns] tcl: read para

Re: [ns] NS2& EvalVid urgent

2011-05-08 Thread fivos
this means it doesn't accept the input file sd_a01. Either you have it under another name or you don't have it there at all. If you think this is not the case you could try catching the error like this : set exec_call {exec ./etmp4 sd_a01 rd_a01 st_a01 a01.mp4 a01e} set caught [catch {eval exec $

[ns] tcl: read parameters form file

2011-05-08 Thread Tami Nesher
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.

Re: [ns] NS2& EvalVid urgent

2011-05-08 Thread Tami Nesher
thanks, it is right. Now the problem is, that the sd & rd files were created by the tcl script. I wrote this command (exec ./etmp4 sd_a01 rd_a01 st_a01 a01.mp4 a01e) in the proc "finish" of the tcl script. So I got the message: ~/ns-allinone-2.34/ns-2.34/v1$ ns script1.tcl 9.9333 300 r