[ns] turn on and off intermediate wireless nodes/links

2010-05-25 Thread saaidal

Good day,

is there a way to shut down wireless nodes so that it can di route
repair? I want to shut down, let say at time 200 sec, i want to shut
down node 7 so that it will do route repair. Before it being shut
down, node no 7 (intermediate node) is used in as active route to
destionation

if there is a way, appreciate if u guys can provide me a way...

tq


UNIVERSITY OF MALAYA  -  " The Leader in Research & Innovation "

'This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed.  If you have received this email in error, please notify 
the system manager.  Please note that any views or opinions presented 
in this email are solely those of the author and do not necessarily 
represent those of the University.  Finally, the recipient should check 
this email and any attachments for the presence of viruses.  The 
University accepts no liability for any damage caused by any virus 
transmitted by this email.'



[ns] Fwd: How can I through out the node status in trace file?

2010-05-25 Thread Larissa Lucena

-- Forwarded message --
From: 
Date: Tue, May 25, 2010 at 08:39
Subject: Re: How can I through out the node status in trace file?
To: larissaluc...@gmail.com



Welcome to posting to the ns-users mailing list!

We automatically send this message to every new person who sends mail
to the list.  You should only receive it once.  My apologies if the
program contacts you twice, perhaps because you have multiple e-mail
addresses or send mail from multiple machines.

If you are an experienced ns-user who simply has not posted since we
started using this responder, our apologies for inconveniencing you
with this message.  This message is intended to help inform users and
cut down on redundant posts, which benefits everyone.

Please look at the attached list of ns Frequently Asked Questions.
If it answers your question, great!  You're done.
If not, please RE-SEND your original message to ns-us...@isi.edu.
A copy of your original message is included below for reference.

You will NOT have to do re-send your message every time you post, only
the FIRST time you send from a new account.  The goal is to quickly
help new users find the FAQ (hopefully answering their question).

Thanks,
  -the ns development team





   The Network Simulator ns-2: Frequently Asked Questions

  (This FAQ is also on the web at
  http://www.isi.edu/nsnam/ns/ns-faq.html.)

* _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 unsubscri

[ns] Tcl script problems

2010-05-25 Thread Mucktar Pakpahan

hi,

Could you please help me to make the tcl script for this scenario?

O   ---BS MN
|   |   
O---O-- R--O  BS -MN
|   | |O
O-----RO
  |O
  BS -MN

O   --> Wired conencted nodes 
BS  --> Base Station
R   --> Router
MN  --> Mobile Nodes

regards

Mucktar



[ns] Directed Diffusion bug in ns-2?

2010-05-25 Thread Vinh Pham



Description of Problem:

In directed diffusion, the actual diffusion packet size is not set in the 
common header (ch->size). This implies that when the packet is sent to the 
underlying mac layer, which by default is 802.11, the calculation of the 
transmission time would therefore be incorrect, i.e. only the size of the mac 
header is taken into account. Can you please confirm this bug, and if true, in 
my opinion this is a serious bug that should be corrected.

Steps to Reproduce:
1. under tcl/ex/diffusion3 run for example 1pp-5n-1s-1r.tcl. Then examine the 
result trace file. The diffusion packet size is only 58 bytes which is the size 
of the mac-hdr.



Regards

Vinh Pham