[ns] ns-2 FAQ
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] Router bandwidth utilization Ns2
Hello, I am research student at the King's College of London. I am working on Ns2 to build a wired topology and simulate congestion on certain routers. In fact, I'd like to know the utilization of some routers. By utilization, I mean the current used bandwidth of this router, or the amount of traffic of that router. But I don't want to have it in a graph, but I'd like to use this utilization value in my tcl code for other purposes. Does anybody have a clue of how to do it? It'll be really helpful. Thank you very much. Alexandre Jaron, MSc student.
[ns] Router traffic load ns2
Hello, I am research student at the King's College of London. I am working on Ns2 to build a wired topology and simulate congestion on certain routers. In fact, I'd like to know the utilization of some routers. By utilization, I mean the current used bandwidth of this router, or the amount of traffic of that router. But I don't want to have it in a graph, but I'd like to use this utilization value in my tcl code for other purposes. Does anybody have a clue of how to do it? It'll be really helpful. Thank you very much. Alexandre Jaron, MSc student.
[ns] implement power-efficient mac layer
-- Forwarded message -- From: Yang Song yang.so...@mail.dcu.ie Date: 1 June 2010 16:21 Subject: implement power-efficient mac layer To: ns-users@isi.edu Hi all, I'm trying to do some modifications on the power saving mechanism of wireless protocols, such as 802.11's power saving mode. I may need to change the way, i.e. duration and circumstances, nodes go to sleep or wake up, but don't know from which part of the code to start. It seems that the MAC and Phywireless and energymodel files need to be modified. Could anybody help me with this? Any help or suggestion is appreciated. Best regards, Yang
Re: [ns] Performance of AOMDV
Hi Heni, Can you list ur simulation parameters. Then, we can discuss. Thanks. Cheers, Charley Cheng Heni.K wrote: HI Mr Charley Cheng, Hi everyone I’m a student who have the some probleme and I need to value the facts of multipath routing in mobile ad hoc networks in terms of Packet Loss compared to AODV protocol. I works in ns2.34 . the results found for AOMDV are always worse than AODV protocol. Can you help me in this context? Thank you very much. Héni. Charley Cheng wrote: Hi everyone, I am trying to reproduce the simulations results of AOMDV paper. I followed the same parameters described in the paper, which are listed below: 1. Network size: 1000m*1000m 2. Number of nodes: 100 nodes 3. Radio transmission range: 250m 4. Channel bit rate: 2Mb/s 5. 50 CBR/UDP connections; each connection strats at a random time during the intial 100s of the simulation and stay till the end 6. Packet size: 512 bytes 7. Packet rate: 1 packets/s 8. Simulation time: 1000s with the inital 250s taken as the warmup period Moreover, according to AOMDV paper, I also disabled expanding ring search and local repair, and enabled periodic hello messages for neighborhood information maintenance by disabling link layer detection. Based on the above parameters, I ran simulations for AODV in varying node speed (from 1 m/s to 30 m/s). I got the packet loss from 6.14% to 54%. However, the latency (or end-to-end delay) is very low (below 0.11s). It is not reasonable. So, could anyone tell me what are the problems I encountered? Thanks in advance. Charley Cheng -- View this message in context: http://old.nabble.com/Performance-of-AODV-tp27844400p28724664.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Fwd: Regarding passing array as command line arguments to tcl file
Hi I want to send an array as a command line argument to execute a tcl file.. And how to acess that array variables there.. If anyone know regarding this with an example code.. -- -- With regards Navi
[ns] Is there a module (code) for bridge in NS-2?
I'm a new NS-2 user. Now I have a project for my thesis and I have to build the LAN simulation using NS-2. I have difficulties to simulate a LAN that uses bridge. Is there a module (code) for bridge in NS-2? Thank you for your attention. regards, Richie Patric
[ns] Mobile node shutdown/disable
Is there any way to shut down a node in ns-2? i found one method, but it does not work $ns_ at 50.0 $node_(5) node-down, simulation run, but node keep on receiving/sending packet if anyone can provide me a help, it will be appreciated Thx in advanced 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.'