[ns] Fwd: Regarding tora implementation in ns 2.34

2013-03-28 Thread Tarunpreet Bhatia

-- Forwarded message --
From:  dae...@isi.edu
Date: Thu, Mar 28, 2013 at 2:33 PM
Subject: Re: Regarding tora implementation in ns 2.34
To: tarunpreetbha...@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-users@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 

Re: [ns] OLSR code in ns2

2013-03-28 Thread tarun

I have applied same patch to olsr but getting these errors in ns 2.34 after
applying patch. Can you please tell what changes i have to make.

patching file Makefile.in
patching file common/packet.h
Hunk #1 FAILED at 182.
Hunk #2 succeeded at 390 with fuzz 2 (offset 7 lines).
1 out of 2 hunks FAILED -- saving rejects to file common/packet.h.rej
patching file queue/priqueue.cc
Hunk #1 succeeded at 97 with fuzz 1 (offset 5 lines).
patching file tcl/lib/ns-agent.tcl
Hunk #1 FAILED at 197.
1 out of 1 hunk FAILED -- saving rejects to file tcl/lib/ns-agent.tcl.rej
patching file tcl/lib/ns-default.tcl
patching file tcl/lib/ns-lib.tcl
Hunk #1 succeeded at 639 (offset 6 lines).
Hunk #2 succeeded at 887 (offset 23 lines).
patching file tcl/lib/ns-packet.tcl
Hunk #1 FAILED at 169.
1 out of 1 hunk FAILED -- saving rejects to file tcl/lib/ns-packet.tcl.rej
patching file trace/cmu-trace.cc
patching file trace/cmu-trace.h




--
View this message in context: 
http://network-simulator-ns-2.7690.n7.nabble.com/OLSR-code-in-ns2-tp5144p26509.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Computing RxThreshold for long distances

2013-03-28 Thread Saravanan Kandasamy

Dear Wben Jab (If thats your name),

Looking at your operating frequency your cross over distance is around 86m.
Thus when you experiment communication above this distance, the TwoRay
propagation takes place anything below though you are using TwoRay only
FreeSpace takes into effect.

From the both RxThreshold, you will reach 300m and 1000m transmit range
respectively. Nothing would be wrong in the RF point of view unless you
changed your transmission power or RXThreshold in between.

I am not sure where you are reading to confirm your packet receive. This
should be done at the physical layer. If you are reading from the MAC
layer, if there is a mechanism to define a packet error rate this could be
the reason the received packet is discarded due to the failed integrity
test of the content of the received packet.

Do check on this.

Good Luck.

Saravanan K

On Wed, Mar 27, 2013 at 2:03 PM, wben-...@labri.fr wrote:


 Dear All,

 I want to ask about the receving RxThreshold. I compute it for two
 distances, one with 300m and the other with 1000m, using TwoRayGround
 propagation model.
 I have for 300m , the following output:
 distance = 300
 propagation model: TwoRayGround

 Selected parameters:
 transmit power: 0.281838
 frequency: 9.14e+08
 transmit antenna gain: 1
 receive antenna gain: 1
 system loss: 1
 transmit antenna height: 1.5
 receive antenna height: 1.5

 Receiving threshold RXThresh_ is: 1.76149e-10


 Then, I applied with the same parameters for distance 1000m, and I
 have the following output.
 distance = 1000
 propagation model: TwoRayGround

 Selected parameters:
 transmit power: 0.281838
 frequency: 9.14e+08
 transmit antenna gain: 1
 receive antenna gain: 1
 system loss: 1
 transmit antenna height: 1.5
 receive antenna height: 1.5

 Receiving threshold RXThresh_ is: 1.42681e-12

 I used the first receiving threshold 1.76149e-10 with distance of 300m
 of communication range. And I find that the communication is close to
 300m.

 However, when I increased the distance with 1000m of communication
 range (RXThresh_ is: 1.42681e-12), then I found that the maximum
 communication range between nodes is 550m.
 It seems strange to me, that's why I want to ask, if I had to change
 the initialization parameters (Frequency, Transmission Power,..),
 because I didn't change them (I used them as their default parameters
 in threshold.cc file).

 Could you please, give me a hand, and if I have to modify some other
 parameters in WirelessPhy.

 Thank you, and
 Best regards.