[ns] ns-2 FAQ

2008-05-01 Thread tomhend

The Network Simulator ns-2: Frequently Asked Questions

Note:  This FAQ is now available at the project wiki:
http://nsnam.isi.edu/nsnam/index.php/Ns_Users_FAQ

   _The mailing is is now subscriber only---please see the FAQ entry on
   How do I post to the mailing list? Why was my post rejected? for
   details._

 * _Where do I get ns?_

   From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and
   the download page http://www.isi.edu/nsnam/ns/ns-tests.html.

 * _What platforms does ns run on and what kind of hardware do I
   need?_

   Please see where to start on the building ns web page:
   http://www.isi.edu/nsnam/ns/ns-build.html#start.

 * _What should I do if I have trouble downloading/extracting ns?_

   This question is answered in detail at
   http://www.isi.edu/nsnam/ns/ns-problems.html#downloading.

 * _What should I do if I encounter problems building ns?_

   Check:
 1. the README that comes in the distribution (very brief),
 2. the installation problems, bug fixes and help web page
http://www.isi.edu/nsnam/ns/ns-problems.html,
 3. the archives of the ns-users mailing list
http://www.isi.edu/nsnam/ns/ns-lists.html,
 4. post a bug report (see below)
http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi.

 * _What do I do after I successfully build ns?_

  + Put the path to your ns executable into your PATH environment
  + Put the path to your otcl into your LD_LIBRARY_PATH
environment
  + Put the path to your tcl library into your TCL_LIBRARY
environment

 * _Where can I find documentation for ns?_

   All documentation is linked from the main ns web page
   http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial
   (originally from Marc Greis) and a reference manual (ns notes and
   documentation).

 * _Words, words, words... that documentation is nice, but where are
   some sample scripts I can start from?_

   Many sample scripts can be found in the ns distribution in
   ~ns-2/tcl/ex and ~ns-2/tcl/test.

 * _What protocols does ns support?_

   A lot! Almost all variants of TCP, several forms of multicast,
   wired networking, several ad hoc routing protocols and propagation
   models (but not cellular phones), data diffusion, satellite, and
   other stuff. See the documentation (described above) for details,
   or download ns and look.

 * _How do I know that ns correctly implements these protocols?_

   Ns has validation tests that cover many protocols, see
   http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately
   users are responsible for verifying that ns is accurate for their
   purposes---since we cannot foresee all the ways ns may be used, we
   cannot test all cases with all inputs.

 * _Are there any contributed/additional protocols not in the main
   distribution?_

   Yes, please see the contributed code web page
   http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list
   archives can also be helpful (see below).

 * _How should I get started doing something (like implementing a new
   protocol or trying an experiment)?_

   We recommend that you look through the tutorial (see
   documentation, above), then start with an example program that is
   most similar to yours (in the tutorial, or in tcl/ex or tcl/test
   in the distribution), and then start changing things.

 * _What should I do to compile ns to reflect my changes if I've
   modified some .cc or .h files?_

   go to ns directory and run make or make depend; make

 * _How do I subscribe to the ns-users mailing list? How do I search
   old list archives? I can't take any more---how do I get off this
   list?_

   To subscribe or unsubscribe, see
   http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at
   http://www.isi.edu/nsnam/ns/ns-lists.html.

 * _How do I post to the mailing list? Why was my post rejected?_

   As of June 2004 the ns-users lists allow posts from _subscriber
   only_. If you're not a subscriber, your posts to the list will be
   rejected. (This is unfortunately necessary to dispose efficiently
   of spam; manual filtering is too expensive.) We realize that the
   list is high traffic, so if you wish to post to the list without
   receiving messages on it, please subscribe and select the _no-mail_
   option for your subscription.

   For details about the mailing list including mailing-list specific
   FAQ (for example, what if you're subscribed but still can't post),
   please see http://www.isi.edu/nsnam/ns/ns-lists.html.

 * _Did my post appear on the mailing list? (Or, why didn't my post
   appear on the mailing list?)_

   See the 

[ns] RTT(please help me)

2008-05-01 Thread d d

Hello,
 I am new in ns. I simulate a simple topology with tcl. I want to calculate rtt 
of each packet that send with one of it's node, But I don't know how? Could you 
please help me? Should I use c++ or there is another way?
 Thank yo

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


Re: [ns] RTT(please help me)

2008-05-01 Thread Arturo Servin


You could get the rtt by c++ and by tcl. Tcl might be easier.

This is an example in tcl where $tcp0 is a tcp agent.

set rtt [$tcp0 set rtt_]

Regards,
-as


On 1 May 2008, at 17:59, d d wrote:


 Hello,
 I am new in ns. I simulate a simple topology with tcl. I want to  
 calculate rtt of each packet that send with one of it's node, But I  
 don't know how? Could you please help me? Should I use c++ or there  
 is another way?
 Thank yo


 -
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile.   
 Try it now.



[ns] node transmission radius

2008-05-01 Thread abdullah qawasmeh

Hi all,

I am trying to set the transmission radius of individual wireless nodes to a 
specific distance. To do that I have adjusted the threshold.cc code under 
/indep-utils/propagation, so that it returns the Pt_ power for the desired 
distance instead of RXthresh_. the program gives the right answer for distances 
greater than 100 m. However, it gives an incorrect answer for distances less 
than 100 ( I have tried 50m and it didin't work). The code in the program 
calculated the power using different equations depending on what is called the 
crossover distance. If the program is provided with a distance who's 
transmission range is greater than the crossover distance the TwoRay equation 
is used, which provides correct answers, however when the distance's crossover 
distance is less than the crossover distance the Free space equation is used, 
which provides incorrect answers. 

Thank you for helping...


Abdulla

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


[ns] setting speed of the nodes

2008-05-01 Thread Semra YILMAZ

Deal all,
I want to set the speed of the nodes for random movement scenario. I use the 
following lines in tcl, but it does not change the speed of the nodes. If you 
have any idea, I will appreciate.
 
$node_($i) random-motion 1
$node_($i) start
$node_($i) set speed_ 30

 
Regards,
Semra
##
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. 
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, 
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki 
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi 
gorusu olmak zorunda degildir.

##
Attention: 

This e-mail message is privileged and confidential. If you are 
not the intended recipient please delete the message and notify 
the sender. E-mails to and from the company are monitored for 
operational reasons and in accordance with lawful business practices. 
Any views or opinions presented are solely those of the author and 
do not necessarily represent the views of the company.

##