[ns] RTT: how it works?
Dear NS users, I'd like to understand how ns calculate the rtt in a TCP connection. What the rtt_ variable state trace? It is the delay of the TCP packets + = the delay of the ACK packets? And it is expressed in s, ms Please help me. Thank you very much. Michele Nuti
[ns] code for thefinal tcl script after implementing protoname which will be run as ns a.tcl
Dear ns-user, CAn someone tell me what to do after i have followed the steps of Implementing a new manet protocol for wireless networks Now can one give me the corresponding tcl script so tht I can at least visualize some node movements using this protocol Srirupa
[ns] Can code written in 'C' language be linked to NS2
Hello all, NS2 is written in C++, which is linked to otcl. But I got a work where I have to write a module in C and link it to existing ns2. Can code written in C be linked to otcl (or ns2)? If yes, is there any material or link explaining it. Thank you in advance, regards, Sandeep.
[ns] Callback in TFRC
Hi, Does anyone know of a method to implement a callback with the TFRC protocol, in ns-2? FYI, with TCP, this is done by declaring a done{} procedure in the invocation script. This is called when the agent is done with successfully sending all the application data. Any ideas how this can be done in TFRC? Thanks, Prateek -- Prateek Singhal | mailto:[EMAIL PROTECTED]
[ns] Tracing Variables with TFRC
Hi, I want to trace TFRC state variables like the current sending rate etc. However, using $src trace rate_ in the tcl script ($src is a TFRC agent), gives an error saying rate_ is not a TracedVar. Can anyone tell me how can I trace TFRC state variables? Thanks, Prateek -- Prateek Singhal | mailto:[EMAIL PROTECTED]
[ns] DYMOUM v0.3 released
Please apologize if this email is not of your interest We are pleased to announce the release of DYMOUM v0.3, an implementation of the DYMO routing protocol both for Linux kernels and the ns2 Network Simulator. It is freely available under the terms of the General Public License (GPL). This new version adds support for neighborhood monitoring via HELLO messages, is highly compliant with the latest spec (draft-05) and fixes some little bugs of the previous release. A detailed list of changes can be seen in the CHANGELOG file. We expect the next release to comply with the upcoming draft-06 and to support the packetbb message format. A detailed list of pending tasks can be seen in the CHANGELOG file. DYMOUM Project Website: http://masimum.inf.um.es/?Software:DYMOUM Download it from Sourceforge.net: http://sourceforge.net/projects/dymoum/ Feedback is welcomed. Best regards, Francisco J. Ros Pedro M. Ruiz
[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
[ns] AODV:link layer feadback. help me
Hello everybody, I want to implement a method in the source code AODV (C++ language, simulator NS-2.29) to calculate and at any time the number of the new neighbors and the number of those which left the vicinity of a given noeud.My problem is as follows: I do not know the line of code which allows déclancher and to exploit the link layer feadback to make these calculate. Thank you infinitely to give me of the assistance is by lines of code, example or right of the indications. - Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.
[ns] help! Problem of Timer
Dear NS users: I had a problem on Timer. In ex-linkage.cc, I defined a Timer class MyTimer:public TimerHandler, then I wanto to use this timer in the function of MyPrivateFunction(). the function expire() is very simple, just print some characters like Time Expire But the problem is that I can't find the Time Expire... characters in the result. Why? How to use the Timer? The C++ codes and Tcl codes are as follows: //ex-linkage.cc #include stdio.h #include string.h #include scheduler.h #include agent.h #include timer-handler.h class MyAgent; class MyTimer:public TimerHandler { public: MyTimer(MyAgent* t):TimerHandler(), t_(t){} inline virtual void expire(Event*); protected: MyAgent* t_; }; class MyAgent : public Agent { public: MyAgent(); void MyPrivateFunction(); protected: int command(int argc, const char* const*); int my_var1; double my_var2; MyTimer timer; }; static class MyAgentClass : public TclClass { public: MyAgentClass():TclClass(Agent/MyAgent) {} TclObject *create(int, const char* const*) { return (new MyAgent); } }class_my_agent; void MyTimer::expire(Event* e) { printf(Time Expired...\n); resched(0.05); } MyAgent::MyAgent():Agent(PT_UDP),timer(this) { bind(my_var1, my_var1); bind(my_var2, my_var2); my_var1 = 11; my_var2 = 22.0; } int MyAgent::command(int argc, const char* const* argv) { if(argc == 2) { if((strcmp(call-my-private-function, argv[1])) == 0) { MyPrivateFunction(); return(TCL_OK); } } return(Agent::command(argc, argv)); } void MyAgent::MyPrivateFunction() { printf(Message from MyPrivateFunction:\n); printf(my_var1: %d\n, my_var1); printf(my_var2: %f\n, my_var2); Tcl tcl = Tcl::instance(); tcl.eval(puts \Message from MyPrivateFunction:\n\); tcl.evalf(puts \my_var1 = %d\n\, my_var1); tcl.evalf(puts \my_var2 = %f\n\, my_var2); printf(1\n); timer.sched(0.05); printf(2\n); } #ex-linkage.tcl set ns [new Simulator] set myagent [new Agent/MyAgent] $myagent set my_var1 50 $myagent set my_var2 100.0 $myagent call-my-private-function and the result is that: Message from MyPrivateFunction: my_var1: 50 my_var2: 100.00 Message from MyPrivateFunction: my_var1 = 50 my_var2 = 100.00 1 2 Problem: Where is the character Time Expired...??? Thanks! Yours Sincerely Howie [EMAIL PROTECTED] 2006-09-01