[ns] Fwd: tcl: read parameters form file

2011-05-15 Thread Tami Nesher

Hi, thanks ! it works.
 I just want to know how to save the numbers in *two *variables, instead of
printing them. can you tell me how?

2011/5/9 мαłłi malli@gmail.com

 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




-- 
רבי משה בן מכיר זצל, מגדולי הראשונים כתב:
מי שאומר את ברכת אשר יצר בכוונה, ומוציא כל מילה מפיו בקול רם וברור,  לא
יבוא עליו שום חולי שבעולם, ולא יזדקק כלל לרופאים או לתרופות!







-- 
רבי משה בן מכיר זצל, מגדולי הראשונים כתב:
מי שאומר את ברכת אשר יצר בכוונה, ומוציא כל מילה מפיו בקול רם וברור,  לא
יבוא עליו שום חולי שבעולם, ולא יזדקק כלל לרופאים או לתרופות!

[ns] -An Efficient N-to-1 Multipath Routing Protocol in Wireless Sensor Networks

2011-05-15 Thread chethan kumar

Hello friends
If anybody has written a code for An Efficient N-to-1 Multipath Routing
Protocol in Wireless Sensor Networks could you please send me the source
code to my mail id chethan.at...@gmail.com
i will be very thankful to you if you send me the code


with regards
chethan


[ns] -An Efficient N-to-1 Multipath Routing Protocol in Wireless Sensor Networks

2011-05-15 Thread chethan kumar


 Hello friends
 If anybody has written a code for An Efficient N-to-1 Multipath Routing
 Protocol in Wireless Sensor Networks could you please send me the source
 code to my mail id chethan.at...@gmail.com.

I have attached the paper with this mail
 i will be very thankful to you if you send me the code


 with regards
 chethan




[ns] ffmpeg installation under Linux

2011-05-15 Thread Tami Nesher

Hi,
I need to install ffmpeg on Ubuntu in order to do this: ./ffmpeg -i a01e.mp4
a01e.yuv
I got the error that there is no file called ffmpeg.
it is right. I don't have it. someone can send me the file? or tell me where
can I find it?


Re: [ns] ffmpeg installation under Linux

2011-05-15 Thread Tami Nesher

I know this site, but I didn't find the file I need, do you know something
more specific? thanks.

On Sun, May 15, 2011 at 6:22 AM, nicholas mbonimpa nmboni...@gmail.comwrote:

 http://ffmpeg.org/

 http://ffmpeg.org/I hope that will help.

 Kind regards,

 Nicholas Mbonimpa


 On Sun, May 15, 2011 at 3:07 PM, Tami Nesher vessely...@gmail.com wrote:


 Hi,
 I need to install ffmpeg on Ubuntu in order to do this: ./ffmpeg -i
 a01e.mp4
 a01e.yuv
 I got the error that there is no file called ffmpeg.
 it is right. I don't have it. someone can send me the file? or tell me
 where
 can I find it?





-- 
רבי משה בן מכיר זצל, מגדולי הראשונים כתב:
מי שאומר את ברכת אשר יצר בכוונה, ומוציא כל מילה מפיו בקול רם וברור,  לא
יבוא עליו שום חולי שבעולם, ולא יזדקק כלל לרופאים או לתרופות!

[ns] How hdr_mac802_11 shares the same header space with hdr_mac.

2011-05-15 Thread bikramjit choudhury

Hey all,
   how  *hdr_mac802_11* in file *mac-802_11.h* header works with out
*access()* method and *offset_* field? There is a comment line showing *This
header does not have its header access function because it shares the same
header space with hdr_mac.* Please explain the technique how *hdr_mac802_11
* shares the same header space with *hdr_mac*.
I want to design a header which shares same header space with mac.


Moreover, why in *mac-802_11.cc *after creating RTS, CTS packets (in *
sendRTS()*, *sendCTS()*) *bzero(cf, MAC_HDR_LEN)* is called?

 Bikramjit Choudhury
 Tezpur University


[ns] questions about tcl example.

2011-05-15 Thread Tami Nesher

Hi,
I want to *add some users to the example* (the attached file), in order to
simulate congestion in the network.
 I added one tcp and one udp users like this:

set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]

$ns duplex-link $n0 $n2 2Mb 10ms DropTail
$ns duplex-link $n1 $n2 2Mb 10ms DropTail
$ns duplex-link $n2 $n3 1.7Mb 20ms DropTail

set tcp [new Agent/TCP]
$tcp set class_ 2
$ns attach-agent $n0 $tcp
set sink [new Agent/TCPSink]
$ns attach-agent $n3 $sink
$ns connect $tcp $sink
$tcp set fid_ 1

set udp [new Agent/UDP]
$ns attach-agent $n1 $udp
set null [new Agent/Null]
$ns attach-agent $n3 $null
$ns connect $udp $null
$udp set fid_ 2

$ns at 0.1 $udp start
$ns at 1.0 $tcp start
$ns at 4.0 $tcp stop
$ns at 4.5 $udp stop

1. Is that the way to add users?
2. if I want to add another one, how much nodes I need to add, and how is
the best way to link them?
3. do I need to add queue?


[ns] Fwd: [Re] LEACH Sorce code for NS2

2011-05-15 Thread Sachin Pal

hello...
I am working on the WSN.Please send me LEACH sorce code for ns2.
parameters are those i m working...
a) network deployment areas are 50×50 and100m×100m
b) initial energy of each sensor node is 1 Joule
c) sensor nodes are randomly deployed in the given area
d) each tree is used for 10 rounds
e) each experiment is conducted for 3 simulation scenarios and the average
is used for documentation
f)base station is located at the center of the sensor network
g) MAC layer, 802.11, is used in simulation

thanks
sachin pal


[ns] HOW TO GET THE POSITION OF NODE IN C++ CODE ??

2011-05-15 Thread El hadi Cherkaoui



--- En date de : Dim 15.5.11, El hadi Cherkaoui e_cherka...@yahoo.fr a écrit :

De: El hadi Cherkaoui e_cherka...@yahoo.fr
Objet: HOW TO GET THE POSITION OF NODE IN C++ CODE ??
À: NS user ns-users@ISI.EDU
Date: Dimanche 15 mai 2011, 19h35

dear all 

I can not find the c++ instruction to get the position of a node at a given 
time...

I don't need to extract this information from the trace file because i need to 
get it during the simulation and not after it finish... 

Thanx a lot

B. R


[ns] which command used to run msg for TCL generation in mannasimpatch ns2.34 (ubuntu)

2011-05-15 Thread m ali

Hi
I am using ns-2.34patch in mannasim
Which command need in ubuntu 10.10 to run msg for generation of tcl.

following commands are written in mannasim web site.

To run MSG from a terminal client just changes your prompt to the
application folder and type:

   * In a MS-Windows system
 c:\ msg-win32.bat
   * In a Linux system
 $- ./msg-linux.sh