From tomhend at u.washington.edu Thu Jan 1 00:30:03 2009 From: tomhend at u.washington.edu (tomhend@u.washington.edu) Date: Thu, 1 Jan 2009 00:30:03 -0800 Subject: [ns] ns-2 FAQ Message-ID: <200901010830.n018U3V5003187@ns-regression.ee.washington.edu> 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 http://www.isi.edu/nsnam/ns/ns-lists.html web page for help debugging mailing list problems. * _What if I have a question that's not answered here?_ If you've checked the installation problems and bug fixes web page (http://www.isi.edu/nsnam/ns/ns-problems.html) and there's no answer to your question, you may want to file a bug report or post a question to the ns-user's mailing list. First, you should check the archive of the list at http://www.isi.edu/nsnam/ns/ns-lists.html. Your question may already be answered there. If not, you can post a bug report using the web form at http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. If your question is NOT about ns implementation bugs, you may wish to post to the list. First you should subscribe. Subscription instructions are at http://www.isi.edu/nsnam/ns/ns-lists.html. _Please note that mail sent to the list is publicly distributed and archived. _If you have concerns about your message being made public (spam harvesting of your address), please consider that _before_ posting. We cannot remove messages from reciepient's mailboxes or the public archive after they're posted. When posting bug reports, please _always_ include information including at least (the bug report form includes spaces for these): + what version of ns you're using, + what operating system you're running on (not just Linux or Solaris, but RedHat version 7.0 or Solaris 2.4---send us the output of "uname -a"), + what specific behavior you see (if ns doesn't compile, what's the specific error; if TCP does something strange, what exactly did it do [send a pointer to a packet trace]), + what behavior you expected to see (if ns doesn't compile this is obvious, but if TCP does something strange, why is it strange, where is the TCP spec violated?), + pointers to your script detailed output files, + a statement that "yes, I've read the FAQ, ns-problems page, and manual and I couldn't find the answer there" (or a statement about why you didn't do that yet :-) Soo-Hyun Choi observed from posts to the list: _Sometimes, I see this list is filled with the questions with: 1) asked many times before 2) hardly understandable what this guy is asking 3) too easy to find an answer over a few clicks over the Internet 4) soliciting to do their homework in a simple way by asking in this list 5) easily seekable an answer by contributing a couple of hours of reading the ns-manual 6) etc, etc. _ _As many of us in this list are doing an advanced degree, it would be suggested to read the following article in order to raise a useful/meaningful question in a smart way. http://www.catb.org/~esr/faqs/smart-questions.html _ This is _very_ good advice, since asking the Right Question is very likely to get a good/helpful answer, while asking a question poorly. For example, think about how you would answer these two questions: _"Ns doesn't work for me, it crashes. Help."_ as compared to _"I get a segmentation fault when running test script test-suite-webcache on Mandrake 10 Linux. The backtrace is on my web page at www.someu.edu/~someone. It looks like it passes in the on-line test suites, but it fails for me. Am I doing something wrong?_ A reminder about mailing list etiquette: + Please check the web pages and list archives before posting your question. + Please keep the body of your post to simple ASCII, not HTML. + Please do _not_ send large attachments (if what you have is bigger than a few kilobytes, put it on a web page and send a URL) + Before posting a question like "did people see my post" or "the list seems down", please check the archives (you can answer this question more accurately by checking yourself rather than asking). + Please don't post subscribe/unsubscribe requests directly to the list, use the lists' information page. (see the web page mentioned above for details). From obaidabbasi at gmail.com Thu Jan 1 02:16:27 2009 From: obaidabbasi at gmail.com (obaid abbasi) Date: Thu, 1 Jan 2009 11:16:27 +0100 Subject: [ns] Adding your own header Type Message-ID: <26a7b1700901010216q35183946x6df04e7da0dde17e@mail.gmail.com> Hello I have added my own header type namely "myHeader". Althought I made the necessary changes in file "ns-packet.tcl" , packet.h. But still when I want to access the header of my packet (hdr_myHeader* my= hdr_myHeader::access(p);), following error occurs apps/rtp.o: In function `hdr_myHeader::access(Packet const*)': rtp.cc:(.gnu.linkonce.t._ZN12hdr_myHeader6accessEPK6Packet+0xb): undefined reference to `hdr_myHeader::offset_ Anyone having idea about this problem and solution. Thanks From pankajavallipb at gmail.com Thu Jan 1 02:22:46 2009 From: pankajavallipb at gmail.com (Panks PB) Date: Thu, 1 Jan 2009 15:52:46 +0530 Subject: [ns] how to chang the shape of the nodes Message-ID: <99f02ad70901010222s25a7543dtb18bca8cfb7a250@mail.gmail.com> hi, i'm working in ns2.33. I executed the wireless1.tcl which is available in Marc Greis' tutorial.In my nam window the nodes look very small.I tried to change the shape of the node by giving $node_(0) shape "box" but no change in my nodes.plz help me how to change and enlarge its size. Thank you From tuffaha at gmail.com Thu Jan 1 07:26:15 2009 From: tuffaha at gmail.com (Waleed Tuffaha) Date: Thu, 1 Jan 2009 17:26:15 +0200 Subject: [ns] Adding your own header Type In-Reply-To: <26a7b1700901010216q35183946x6df04e7da0dde17e@mail.gmail.com> References: <26a7b1700901010216q35183946x6df04e7da0dde17e@mail.gmail.com> Message-ID: <141cb92a0901010726y1d593df4q274db7310346e14f@mail.gmail.com> Hello Obaid, did you modify the Makefile to add your .cc files ? On Thu, Jan 1, 2009 at 12:16 PM, obaid abbasi wrote: > > Hello > > > I have added my own header type namely "myHeader". Althought I made the > necessary changes in file "ns-packet.tcl" , packet.h. But still when I want > to access the header of my packet (hdr_myHeader* my= > hdr_myHeader::access(p);), following error occurs > > apps/rtp.o: In function `hdr_myHeader::access(Packet const*)': > rtp.cc:(.gnu.linkonce.t._ZN12hdr_myHeader6accessEPK6Packet+0xb): undefined > reference to `hdr_myHeader::offset_ > > > Anyone having idea about this problem and solution. > > > Thanks > -- Waleed Tuffaha. From illidan.modeler at gmail.com Thu Jan 1 07:52:50 2009 From: illidan.modeler at gmail.com (Illidan) Date: Thu, 1 Jan 2009 23:52:50 +0800 Subject: [ns] nam won't display In-Reply-To: <002301c960ca$05cb7550$161d0e98@itre3.ad.ncsu.edu> References: <002301c960ca$05cb7550$161d0e98@itre3.ad.ncsu.edu> Message-ID: <6ff0dd0a0901010752o4a43af08ud282387cf0f841a4@mail.gmail.com> Hi, I'm using ns2.33 too. But I use piece-by-piece installation rather than all-in-one. And I'm running ns2 on ubuntu Linux, with nam 1.13, the latest release. I'm lucky enough to generate proper nam trace for wire-linked scenarios as well as for some wireless scenarios, including those adopted from Geris' tutorials some of which need slight modification for new ns2 releases. Below I'll paste a snippet from the trace file, generated by exampl1b.tcl, for your reference. -t * -v 1.0a5 -a 0 A -t * -n 1 -p 0 -o 0xffffffff -c 31 -a 1 A -t * -h 1 -m 2147483647 -s 0 n -t * -a 0 -s 0 -S UP -v circle -c black -i black n -t * -a 1 -s 1 -S UP -v circle -c black -i black l -t * -s 0 -d 1 -S UP -r 1000000 -D 0.01 -c black + -t 0.5 -s 0 -d 1 -p cbr -e 500 -c 0 -i 0 -a 0 -x {0.0 1.0 0 ------- null} - -t 0.5 -s 0 -d 1 -p cbr -e 500 -c 0 -i 0 -a 0 -x {0.0 1.0 0 ------- null} h -t 0.5 -s 0 -d 1 -p cbr -e 500 -c 0 -i 0 -a 0 -x {0.0 1.0 -1 ------- null} + -t 0.505 -s 0 -d 1 -p cbr -e 500 -c 0 -i 1 -a 0 -x {0.0 1.0 1 ------- null} - -t 0.505 -s 0 -d 1 -p cbr -e 500 -c 0 -i 1 -a 0 -x {0.0 1.0 1 ------- null} h -t 0.505 -s 0 -d 1 -p cbr -e 500 -c 0 -i 1 -a 0 -x {0.0 1.0 -1 ------- null} + -t 0.51 -s 0 -d 1 -p cbr -e 500 -c 0 -i 2 -a 0 -x {0.0 1.0 2 ------- null} - -t 0.51 -s 0 -d 1 -p cbr -e 500 -c 0 -i 2 -a 0 -x {0.0 1.0 2 ------- null} h -t 0.51 -s 0 -d 1 -p cbr -e 500 -c 0 -i 2 -a 0 -x {0.0 1.0 -1 ------- null} r -t 0.514 -s 0 -d 1 -p cbr -e 500 -c 0 -i 0 -a 0 -x {0.0 1.0 0 ------- null} + -t 0.515 -s 0 -d 1 -p cbr -e 500 -c 0 -i 3 -a 0 -x {0.0 1.0 3 ------- null} - -t 0.515 -s 0 -d 1 -p cbr -e 500 -c 0 -i 3 -a 0 -x {0.0 1.0 3 ------- null} h -t 0.515 -s 0 -d 1 -p cbr -e 500 -c 0 -i 3 -a 0 -x {0.0 1.0 -1 ------- null} r -t 0.519 -s 0 -d 1 -p cbr -e 500 -c 0 -i 1 -a 0 -x {0.0 1.0 1 ------- null} + -t 0.52 -s 0 -d 1 -p cbr -e 500 -c 0 -i 4 -a 0 -x {0.0 1.0 4 ------- null} - -t 0.52 -s 0 -d 1 -p cbr -e 500 -c 0 -i 4 -a 0 -x {0.0 1.0 4 ------- null} h -t 0.52 -s 0 -d 1 -p cbr -e 500 -c 0 -i 4 -a 0 -x {0.0 1.0 -1 ------- null} r -t 0.524 -s 0 -d 1 -p cbr -e 500 -c 0 -i 2 -a 0 -x {0.0 1.0 2 ------- null} + -t 0.525 -s 0 -d 1 -p cbr -e 500 -c 0 -i 5 -a 0 -x {0.0 1.0 5 ------- null} - -t 0.525 -s 0 -d 1 -p cbr -e 500 -c 0 -i 5 -a 0 -x {0.0 1.0 5 ------- null} h -t 0.525 -s 0 -d 1 -p cbr -e 500 -c 0 -i 5 -a 0 -x {0.0 1.0 -1 ------- null} r -t 0.529 -s 0 -d 1 -p cbr -e 500 -c 0 -i 3 -a 0 -x {0.0 1.0 3 ------- null} + -t 0.53 -s 0 -d 1 -p cbr -e 500 -c 0 -i 6 -a 0 -x {0.0 1.0 6 ------- null} - -t 0.53 -s 0 -d 1 -p cbr -e 500 -c 0 -i 6 -a 0 -x {0.0 1.0 6 ------- null} h -t 0.53 -s 0 -d 1 -p cbr -e 500 -c 0 -i 6 -a 0 -x {0.0 1.0 -1 ------- null} r -t 0.534 -s 0 -d 1 -p cbr -e 500 -c 0 -i 4 -a 0 -x {0.0 1.0 4 ------- null} + -t 0.535 -s 0 -d 1 -p cbr -e 500 -c 0 -i 7 -a 0 -x {0.0 1.0 7 ------- null} - -t 0.535 -s 0 -d 1 -p cbr -e 500 -c 0 -i 7 -a 0 -x {0.0 1.0 7 ------- null} On Thu, Dec 18, 2008 at 12:35 PM, Bing Mei wrote: > > Greetings. > > I am a new ns-2 user and haven't got luck even with my first simple simulation run. After installing ns-allinone-2.33, I tried to run the example1b.tcl (from Marc Greis' tutorial) but got the following message. Can anybody tell me what the problem is and how to fix it? > > BTW, I am using Windows XP. And the nam trace file "out.nam" seemed to be created correctly by the program. > > Many thanks. > > --------------------------------------------------------------------------------------------------------------- > $ nam: > [code omitted because of length] > : no event type or button # or keysym > while executing > "bind Listbox { > %W yview scroll [expr {- <%D / 120> * 4}] units > }" > invoked from within > "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { > %W yview scroll [expr {- <%D>}] units > } > bind Li..." > > --------------------------------------------------------------------------------------------------------------- > > > The source code is as follows (example1b.tcl from Marc Greis' tutorial): > ------------------------------------------------------------------------------------------------- > #Create a simulator object > set ns [new Simulator] > > #Open the nam trace file > set nf [open out.nam w] > $ns namtrace-all $nf > > #Define a 'finish' procedure > proc finish {} { > global ns nf > $ns flush-trace > #Close the trace file > close $nf > #Execute nam on the trace file > exec nam out.nam & > exit 0 > } > > #Create two nodes > set n0 [$ns node] > set n1 [$ns node] > > #Create a duplex link between the nodes > $ns duplex-link $n0 $n1 1Mb 10ms DropTail > > #Create a UDP agent and attach it to node n0 > set udp0 [new Agent/UDP] > $ns attach-agent $n0 $udp0 > > # Create a CBR traffic source and attach it to udp0 > set cbr0 [new Application/Traffic/CBR] > $cbr0 set packetSize_ 500 > $cbr0 set interval_ 0.005 > $cbr0 attach-agent $udp0 > > #Create a Null agent (a traffic sink) and attach it to node n1 > set null0 [new Agent/Null] > $ns attach-agent $n1 $null0 > > #Connect the traffic source with the traffic sink > $ns connect $udp0 $null0 > > #Schedule events for the CBR agent > $ns at 0.5 "$cbr0 start" > $ns at 4.5 "$cbr0 stop" > #Call the finish procedure after 5 seconds of simulation time > $ns at 5.0 "finish" > > #Run the simulation > $ns run > -------------------------------------------------------------------------------------------- > > Thanks very much. > > Bing > -- Illidan Networking System Modeler Northern Capital, Pandaren Empire http://my.opera.com/illidan From akpinars at ug.bilkent.edu.tr Thu Jan 1 09:28:39 2009 From: akpinars at ug.bilkent.edu.tr (Sukru Akpinar) Date: Thu, 1 Jan 2009 19:28:39 +0200 (EET) Subject: [ns] TCP Split Connection mechanism Message-ID: <2926.139.179.206.11.1230830919.squirrel@webmail.ug.bilkent.edu.tr> Hi, I am currently working on a project which is about TCP Split Connection Mechanism. In the project I am simulating this mechanism in NS-2 environment. I checked the mail archive however I could not find an answer to my question: How can I simulate TCP Split Connection Approach firstly without adding any new class, if possible? Thanks in advance Sukru Akpinar Bilkent University, Ankara/TURKEY From siu06btk at reading.ac.uk Thu Jan 1 10:10:34 2009 From: siu06btk at reading.ac.uk (new2ns08) Date: Thu, 1 Jan 2009 10:10:34 -0800 (PST) Subject: [ns] TraceGraph Helpppppp!!! Message-ID: <21243332.post@talk.nabble.com> Dear all, I was trying to use trace graph to plot graph for my simulation. However, it seems like there is something i have not understood about it. Everytime i try to plot the graph say for one of my tracefiles and i do trgrpah on the terminal it does launch the tracegrpah window but it doesn't plot anything. Now what i have done is create a .ip file but what i am not sure about is do i need to write my own awk file to make it plot a graph say for the delay or throughput. I am sure you can tell that i am way losttt so please please any help on tracegraph would be appreciated. I would be more happy if some one can tell me the basics in plotting a trace graph or the things i need to do or don't! Anticipating for your kind cooperation, I would like to thank you very much thank you! Best regards!! -- View this message in context: http://www.nabble.com/TraceGraph-Helpppppp%21%21%21-tp21243332p21243332.html Sent from the ns-users mailing list archive at Nabble.com. From ayed_nesrine at yahoo.fr Thu Jan 1 12:59:23 2009 From: ayed_nesrine at yahoo.fr (ayed nesrine) Date: Thu, 1 Jan 2009 20:59:23 +0000 (GMT) Subject: [ns] mprset in um-olsr Message-ID: <106736.58498.qm@web24402.mail.ird.yahoo.com> Hello I work with um-olsr under NS2 and I need to recover the mpr set and the selector mpr set Thank you for your help Nesrine Hello From phenix_yw at hhu.edu.cn Fri Jan 2 00:04:51 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Fri, 2 Jan 2009 16:04:51 +0800 Subject: [ns] how to set different transmit range for different node Message-ID: <430881430.19092@eyou.net> Hi all, I'd like how to set different transmit range for different node in MANET. eg. Three nodes,N0,N1 and N2 are in a line: (N0) (N1) (N2) |--- 200m -----| ---120m---| The transmit range of N0,N1 and N2 is respectively 250m,150m,200m. So packets can be passed: N0 --> N1 <---> N2 Let me know how to set different transmit range please. Thank you in advance! Regards, Phenix From tuffaha at gmail.com Fri Jan 2 04:46:54 2009 From: tuffaha at gmail.com (Waleed Tuffaha) Date: Fri, 2 Jan 2009 14:46:54 +0200 Subject: [ns] how to chang the shape of the nodes In-Reply-To: <99f02ad70901010222s25a7543dtb18bca8cfb7a250@mail.gmail.com> References: <99f02ad70901010222s25a7543dtb18bca8cfb7a250@mail.gmail.com> Message-ID: <141cb92a0901020446q10e1320dwe0bc4e16911f881a@mail.gmail.com> use the following command to adjust the node size: $ns_ initial_node_pos $node 10 I don't know why it is called initial_node_pos ! if you have an array of nodes ( $nodes_( ) ), then use a for loop: for {set i 0} {$i < $val(nn)} {incr i} { # The function must be called after mobility model is defined $ns_ initial_node_pos $node_($i) 10 } On Thu, Jan 1, 2009 at 12:22 PM, Panks PB wrote: > > hi, > > i'm working in ns2.33. I executed the wireless1.tcl which is available in > Marc Greis' tutorial.In my nam window the nodes look very small.I tried to > change the shape of the node by giving > > $node_(0) shape "box" > > but no change in my nodes.plz help me how to change and enlarge its size. > > Thank you > -- Waleed Tuffaha. From saba717671 at hotmail.com Fri Jan 2 11:49:27 2009 From: saba717671 at hotmail.com (anas) Date: Fri, 2 Jan 2009 22:49:27 +0300 Subject: [ns] rout cach dump >>> could i print out the cache contents Message-ID: Dear all Ns users, could I print out or at least knowing what is inside the route cache of the nodes? thanks in advance From hajsou at gmail.com Sat Jan 3 01:36:18 2009 From: hajsou at gmail.com (souhaj) Date: Sat, 3 Jan 2009 01:36:18 -0800 (PST) Subject: [ns] Segmentation fault Message-ID: <21263300.post@talk.nabble.com> Hello i am using ns2 2.30 and 2.29 under fedora 9.. i am using wireless roouting protocols AODV, DSDV, OLSR... i have an error segmentation when using DSR... i have tried to change Linux version by using Mandrake 9.2.. PLZ can you help me to solve this error.. thanks in advance.. -- View this message in context: http://www.nabble.com/Segmentation-fault-tp21263300p21263300.html Sent from the ns-users mailing list archive at Nabble.com. From hajsou at gmail.com Sat Jan 3 03:03:53 2009 From: hajsou at gmail.com (souhaj) Date: Sat, 3 Jan 2009 03:03:53 -0800 (PST) Subject: [ns] TraceGraph Helpppppp!!! In-Reply-To: <21243252.post@talk.nabble.com> References: <21243252.post@talk.nabble.com> Message-ID: <21263856.post@talk.nabble.com> to use the trace graph you have to do some operations: - get the information taht you need from the trace file (*.tr) exemple delay, loss ratio by using either awk langage or Perl langage. and you will put this results by redirection on a file (*.xgr) - you go under ns-allinone/bin and you put this command : ./xgraph *.xgr (you have to look if there is some needed options)... that is the general principle of using xgraph.. NB : i hope that i help you, because i have just began using ns.. good luck new2ns08 wrote: > > Dear all, > > I was trying to use trace graph to plot graph for my simulation. However, > it seems like there is something i have not understood about it. Everytime > i try to plot the graph say for one of my tracefiles and i do trgrpah > on the terminal it does launch the tracegrpah window but it > doesn't plot anything. Now what i have done is create a .ip file but what > i am not sure about is do i need to write my own awk file to make it plot > a graph say for the delay or throughput. > > I am sure you can tell that i am way losttt so please please any help on > tracegraph would be appreciated. I would be more happy if some one can > tell me the basics in plotting a trace graph or the things i need to do or > don't! > > Anticipating for your kind cooperation, I would like to thank you very > much thank you! > > Best regards!! > -- View this message in context: http://www.nabble.com/TraceGraph-Helpppppp%21%21%21-tp21243252p21263856.html Sent from the ns-users mailing list archive at Nabble.com. From hajsou at gmail.com Sat Jan 3 03:04:56 2009 From: hajsou at gmail.com (souhaj) Date: Sat, 3 Jan 2009 03:04:56 -0800 (PST) Subject: [ns] Segmentation fault In-Reply-To: <21263300.post@talk.nabble.com> References: <21263300.post@talk.nabble.com> Message-ID: <21263863.post@talk.nabble.com> I have resolved the problem Instead of, set opt(ifq) Queue/DropTail/PriQueue; use: set opt(ifq) CMUPriQueue; souhaj wrote: > > Hello i am using ns2 2.30 and 2.29 under fedora 9.. > i am using wireless roouting protocols AODV, DSDV, OLSR... > i have an error segmentation when using DSR... > i have tried to change Linux version by using Mandrake 9.2.. > PLZ can you help me to solve this error.. > thanks in advance.. > > > > -- View this message in context: http://www.nabble.com/Segmentation-fault-tp21263300p21263863.html Sent from the ns-users mailing list archive at Nabble.com. From bilgeyts at gmail.com Sat Jan 3 08:56:15 2009 From: bilgeyts at gmail.com (Bil Geyts) Date: Sat, 3 Jan 2009 18:56:15 +0200 Subject: [ns] Following an alternative path when a link down Message-ID: <973680e60901030856i65f570ddgdbf06419f4a0fd3@mail.gmail.com> Hi, 1 ---- 2 ---- 3 | | | | 4 ---- 5 Above is my topology. 1 is source. 4 is sink. I can send packages from 1 to 4 over 2 ( The Followed Path is 1-2-4 ). But when I down the link between 2-4. All packages dies. When the link between 2-4 goes down, I want all packages to follow the path 1-2-3-5-4. How can I do that? Thanks in advance, Bil From shethkavan at gmail.com Sat Jan 3 11:10:39 2009 From: shethkavan at gmail.com (kavan sheth) Date: Sun, 4 Jan 2009 00:40:39 +0530 Subject: [ns] how to stop a particular node? Message-ID: Hi all, currently I am working on address allocation in MANET. for that I was implementing an addressing agent MANETconf, which works above routing protocol. As part of simulation scenario I need to simulate departure of node so a node does not participate in packet forwarding. I tried $node_(i) reset but it doesn't work. can any one suggest me how to stop a node(or disable routing agent on a node)? From phenix_yw at hhu.edu.cn Sat Jan 3 19:15:03 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Sun, 4 Jan 2009 11:15:03 +0800 Subject: [ns] how to set different transmit range for different node References: <430881430.19092@eyou.net> <430949739.22788@hhu.edu.cn> Message-ID: <431036815.27991@eyou.net> Hi Sidney, After times of trials, I've succeeded in letting different nodes own different Tx Range by configuring different value of Pt_ for each node. I get different values of Pt_ from a script: # The transimssion radio range Pt_ 6.9872e-4 ;# ?m Pt_ 8.5872e-4 ;# 40m Pt_ 1.33826e-3 ;# 50m Pt_ 7.214e-3 ;# 100m Pt_ 0.2818 ;# 250m And in my script, I have test range of 250m and 40m. It really works well. But It's a pity that I don't know how to obtain these values. The tool threshold (~ns/lidep-utils/propagation/threshold.cc) only generate RXThresh_ other than Pt_. Is there somebody knowing how to get value of Pt_? [Here is my test script] # ====================================================================== # Define options # ====================================================================== set val(ifqlen) 50 ;# max packet in ifq set val(nn) 2 ;# number of mobilenodes set val(rp) MFlood ;# routing protocol,DumbAgent set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhy set val(mac) Mac/802_11 set val(ifq) Queue/DropTail/PriQueue set val(ll) LL set val(ant) Antenna/OmniAntenna set val(stop) 150 # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 3.652e-10 Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set freq_ 914e+6 Phy/WirelessPhy set L_ 1.0 # Pt_ set txpower_(0) 0.2818 ;# 250m set txpower_(1) 8.5872e-4 ;# 40m set txpower_(2) 7.214e-3 ;# 100m # ====================================================================== # Main Program # ====================================================================== #ns-random 0 # Initialize Global Variables set ns_ [new Simulator] set tracefd [open mflood_txRange.tr w] $ns_ trace-all $tracefd set namtrace [open mflood_txRange.nam w] $ns_ namtrace-all-wireless $namtrace 1000 500 # set up topography set topo [new Topography] $topo load_flatgrid 1000 500 # Create God create-god $val(nn) # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # configure node set channel [new Channel/WirelessChannel] $channel set errorProbability_ 0.0 $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $channel \ -topoInstance $topo \ -agentTrace ON \ -routerTrace OFF\ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { Phy/WirelessPhy set Pt_ $txpower_($i) set node_($i) [$ns_ node] $node_($i) random-motion 0; } # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # # N_0 <-- d ---> N_2 # src dst $node_(0) set X_ 0.0 $node_(0) set Y_ 200.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 1.0 $node_(1) set Y_ 200.0 $node_(1) set Z_ 0.0 $ns_ at 1.5 "$node_(1) setdest 255.0 200.0 2.0" # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 20 } set udp_(0) [new Agent/UDP] set udp_(1) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) $ns_ attach-agent $node_(1) $udp_(1) set null_(0) [new Agent/Null] set null_(1) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) $ns_ attach-agent $node_(0) $null_(1) $ns_ connect $udp_(0) $null_(0) $ns_ connect $udp_(1) $null_(1) for {set i 0} {$i < $val(nn)} {incr i} { set cbr_($i) [new Application/Traffic/CBR] $cbr_($i) set packetSize_ 512 $cbr_($i) set interval_ 2 $cbr_($i) set random_ 1 $cbr_($i) attach-agent $udp_($i) } $ns_ at 1.0 "$cbr_(0) start" $ns_ at 1.1 "$cbr_(1) start" # Tell nodes when the simulation ends for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $val(stop).0 "$node_($i) reset"; } $ns_ at $val(stop).0 "stop" $ns_ at $val(stop).01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd namtrace $ns_ flush-trace close $tracefd close $namtrace } puts "Starting Simulation..." $ns_ run Regards, Phenix From: Sidney Doria Sent: Saturday, January 03, 2009 12:01 AM To: Phenix Subject: Re: [ns] how to set different transmit range for different node Hi Phenix, In the TCL file, there's a loop for node creation. So, you can break this node in a manual creation, each node with specific characteristics. Sidney Doria UFCG / BRAZIL 2009/1/2 Phenix Hi all, I'd like how to set different transmit range for different node in MANET. eg. Three nodes,N0,N1 and N2 are in a line: (N0) (N1) (N2) |--- 200m -----| ---120m---| The transmit range of N0,N1 and N2 is respectively 250m,150m,200m. So packets can be passed: N0 --> N1 <---> N2 Let me know how to set different transmit range please. Thank you in advance! Regards, Phenix -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From sascsedu at yahoo.com Sat Jan 3 20:06:25 2009 From: sascsedu at yahoo.com (sajeeb saha) Date: Sat, 3 Jan 2009 20:06:25 -0800 (PST) Subject: [ns] Ns 2 installation problem Message-ID: <759364.1156.qm@web111310.mail.gq1.yahoo.com> Hello, I am trying to install the NS 2 (version 2.29) in fedora 8. Then i got the following error: /* g++ -c -Wall? -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR? -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H? -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/ns-allinone-2.29/tclcl-1.17 -I/home/ns-allinone-2.29/otcl-1.11 -I/home/ns-allinone-2.29/include -I/home/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o trace/trace..o trace/trace.cc ../sctp/sctp.h:705: error: extra qualification ?SctpAgent::? on member ?DumpSendBuffer? make: *** [trace/trace.o] Error 1 Ns make failed! */ Please help me to find out the bug. , Sajeeb Saha 10th Batch,CSEDU +8801914754181 ?? Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From contact.joarder at yahoo.com Sun Jan 4 00:08:22 2009 From: contact.joarder at yahoo.com (Mustafa Kamal) Date: Sun, 4 Jan 2009 00:08:22 -0800 (PST) Subject: [ns] how to set different transmit range for different node In-Reply-To: <431036815.27991@eyou.net> Message-ID: <71877.93157.qm@web45601.mail.sp1.yahoo.com> Hi, I think you can get Pt_ value directly from wireless-phy.cc file with getPt() function which definition is given in the wireless-phy.h. its better to check out the value using a separate trace file rather than using the default trace file generated from NS2. we can do as like ../ns example.txt >> MyTrace.txt To get the Pt_ value you need to write down a single line of printf(..) inside the wireless-phy.cc file. Thanks, Joarder --- On Sun, 1/4/09, Phenix wrote: From: Phenix Subject: Re: [ns] how to set different transmit range for different node To: "Sidney Doria" Cc: "ns users" Date: Sunday, January 4, 2009, 9:15 AM Hi Sidney, After times of trials, I've succeeded in letting different nodes own different Tx Range by configuring different value of Pt_ for each node. I get different values of Pt_ from a script: # The transimssion radio range Pt_ 6.9872e-4 ;# ?m Pt_ 8.5872e-4 ;# 40m Pt_ 1.33826e-3 ;# 50m Pt_ 7.214e-3 ;# 100m Pt_ 0.2818 ;# 250m And in my script, I have test range of 250m and 40m. It really works well. But It's a pity that I don't know how to obtain these values. The tool threshold (~ns/lidep-utils/propagation/threshold.cc) only generate RXThresh_ other than Pt_. Is there somebody knowing how to get value of Pt_? [Here is my test script] # ====================================================================== # Define options # ====================================================================== set val(ifqlen) 50 ;# max packet in ifq set val(nn) 2 ;# number of mobilenodes set val(rp) MFlood ;# routing protocol,DumbAgent set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhy set val(mac) Mac/802_11 set val(ifq) Queue/DropTail/PriQueue set val(ll) LL set val(ant) Antenna/OmniAntenna set val(stop) 150 # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 3.652e-10 Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set freq_ 914e+6 Phy/WirelessPhy set L_ 1.0 # Pt_ set txpower_(0) 0.2818 ;# 250m set txpower_(1) 8.5872e-4 ;# 40m set txpower_(2) 7.214e-3 ;# 100m # ====================================================================== # Main Program # ====================================================================== #ns-random 0 # Initialize Global Variables set ns_ [new Simulator] set tracefd [open mflood_txRange.tr w] $ns_ trace-all $tracefd set namtrace [open mflood_txRange.nam w] $ns_ namtrace-all-wireless $namtrace 1000 500 # set up topography set topo [new Topography] $topo load_flatgrid 1000 500 # Create God create-god $val(nn) # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # configure node set channel [new Channel/WirelessChannel] $channel set errorProbability_ 0.0 $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $channel \ -topoInstance $topo \ -agentTrace ON \ -routerTrace OFF\ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { Phy/WirelessPhy set Pt_ $txpower_($i) set node_($i) [$ns_ node] $node_($i) random-motion 0; } # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # # N_0 <-- d ---> N_2 # src dst $node_(0) set X_ 0.0 $node_(0) set Y_ 200.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 1.0 $node_(1) set Y_ 200.0 $node_(1) set Z_ 0.0 $ns_ at 1.5 "$node_(1) setdest 255.0 200.0 2.0" # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 20 } set udp_(0) [new Agent/UDP] set udp_(1) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) $ns_ attach-agent $node_(1) $udp_(1) set null_(0) [new Agent/Null] set null_(1) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) $ns_ attach-agent $node_(0) $null_(1) $ns_ connect $udp_(0) $null_(0) $ns_ connect $udp_(1) $null_(1) for {set i 0} {$i < $val(nn)} {incr i} { set cbr_($i) [new Application/Traffic/CBR] $cbr_($i) set packetSize_ 512 $cbr_($i) set interval_ 2 $cbr_($i) set random_ 1 $cbr_($i) attach-agent $udp_($i) } $ns_ at 1.0 "$cbr_(0) start" $ns_ at 1.1 "$cbr_(1) start" # Tell nodes when the simulation ends for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $val(stop).0 "$node_($i) reset"; } $ns_ at $val(stop).0 "stop" $ns_ at $val(stop).01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd namtrace $ns_ flush-trace close $tracefd close $namtrace } puts "Starting Simulation..." $ns_ run Regards, Phenix From: Sidney Doria Sent: Saturday, January 03, 2009 12:01 AM To: Phenix Subject: Re: [ns] how to set different transmit range for different node Hi Phenix, In the TCL file, there's a loop for node creation. So, you can break this node in a manual creation, each node with specific characteristics. Sidney Doria UFCG / BRAZIL 2009/1/2 Phenix Hi all, I'd like how to set different transmit range for different node in MANET. eg. Three nodes,N0,N1 and N2 are in a line: (N0) (N1) (N2) |--- 200m -----| ---120m---| The transmit range of N0,N1 and N2 is respectively 250m,150m,200m. So packets can be passed: N0 --> N1 <---> N2 Let me know how to set different transmit range please. Thank you in advance! Regards, Phenix -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From heba.elshandidi at gmail.com Sun Jan 4 01:25:03 2009 From: heba.elshandidi at gmail.com (Heba EShandidy) Date: Sun, 04 Jan 2009 11:25:03 +0200 Subject: [ns] Following an alternative path when a link is down In-Reply-To: Message-ID: Hello folks, Hope you all are doing great and enjoying ns2 :) Bel, to choose an alternative path when the shorter route is down, you need to add "$ns rtproto DV" at the beginning of your Tcl script, after the simulator object has been created. For further details, please refer to Marc Greis' tutorial: http://www.isi.edu/nsnam/ns/tutorial/index.html Section VI.2 Good Luck, Heba ElShandidy On 1/4/09 3:00 AM, "ns-users-request at ISI.EDU" wrote: > Send Ns-users mailing list submissions to > ns-users at isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-request at isi.edu > > You can reach the person managing the list at > ns-users-owner at isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Segmentation fault (souhaj) > 2. Re: TraceGraph Helpppppp!!! (souhaj) > 3. Re: Segmentation fault (souhaj) > 4. Following an alternative path when a link down (Bil Geyts) > 5. how to stop a particular node? (kavan sheth) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 3 Jan 2009 01:36:18 -0800 (PST) > From: souhaj > Subject: [ns] Segmentation fault > To: ns-users at ISI.EDU > Message-ID: <21263300.post at talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > Hello i am using ns2 2.30 and 2.29 under fedora 9.. > i am using wireless roouting protocols AODV, DSDV, OLSR... > i have an error segmentation when using DSR... > i have tried to change Linux version by using Mandrake 9.2.. > PLZ can you help me to solve this error.. > thanks in advance.. > > From thierry at 126.com Sun Jan 4 06:17:15 2009 From: thierry at 126.com (thierry) Date: Sun, 4 Jan 2009 22:17:15 +0800 (CST) Subject: [ns] how to use sctp in a wireless scenario Message-ID: <20975262.520441231078635860.JavaMail.coremail@bj126app33.126.com> Hello ns users, I'm trying to do some simulation of sctp over wireless network, but I foud that the original SCTP module of ns2 does not support it. So could anyone tell me how to modify the code for that? Or anyone could send me some examples of using sctp in wireless scenario, it's perfect! Thank you very much and best regards, kang From lawalimoriki at yahoo.com Sun Jan 4 18:28:37 2009 From: lawalimoriki at yahoo.com (Bello Lawal) Date: Sun, 4 Jan 2009 18:28:37 -0800 (PST) Subject: [ns] NS installation (Ubuntu) Message-ID: <99362.7061.qm@web57003.mail.re3.yahoo.com> Hello, Pls. can some one help me i try to install NS2 in Ubuntu during the installation it gives me the following error. tcl8.3.2 configuration failed! Existing ............... Tcl is not part of the ns project. From tansurfing at gmail.com Sun Jan 4 23:23:02 2009 From: tansurfing at gmail.com (tanixmukherzee) Date: Sun, 4 Jan 2009 23:23:02 -0800 (PST) Subject: [ns] how to intall ns-allinone-2.33 and modify all the environment variables on fedora core 9 Message-ID: <21286631.post@talk.nabble.com> how to intall ns-allinone-2.33 and modify all the environment variables on fedora core 9 i m having problems with modifying the environmental vars like TCL_LIBRARY and LD_LIBRARY_PATH... plz helf -- View this message in context: http://www.nabble.com/how-to-intall-ns-allinone-2.33-and-modify-all-the-environment-variables-on-fedora-core-9-tp21286631p21286631.html Sent from the ns-users mailing list archive at Nabble.com. From hajsou at gmail.com Mon Jan 5 04:12:05 2009 From: hajsou at gmail.com (souhaj) Date: Mon, 5 Jan 2009 04:12:05 -0800 (PST) Subject: [ns] add a metric to OLSR Message-ID: <21289966.post@talk.nabble.com> Hello I am working now on OLSR protocol...i want to add a new metric to this protocols.... so i dont know where i do the modification...in which part ??? can you help me PLZ.. thanks.. -- View this message in context: http://www.nabble.com/add-a-metric-to-OLSR-tp21289966p21289966.html Sent from the ns-users mailing list archive at Nabble.com. From hajsou at gmail.com Mon Jan 5 04:31:57 2009 From: hajsou at gmail.com (souhaj) Date: Mon, 5 Jan 2009 04:31:57 -0800 (PST) Subject: [ns] how to intall ns-allinone-2.33 and modify all the environment variables on fedora core 9 In-Reply-To: <21286631.post@talk.nabble.com> References: <21286631.post@talk.nabble.com> Message-ID: <21290207.post@talk.nabble.com> you have to add this paths (LD_LIBRARY_PATH=/home/ns-allinone..../......) to the file .bashsrc this file is on /home/XXX. it is a hidden file... to get it you have to select an option : visualise hidden file from the menu of the window.... tanixmukherzee wrote: > > how to intall ns-allinone-2.33 and modify all the environment variables on > fedora core 9 > i m having problems with modifying the environmental vars like TCL_LIBRARY > and LD_LIBRARY_PATH... > plz helf > -- View this message in context: http://www.nabble.com/how-to-intall-ns-allinone-2.33-and-modify-all-the-environment-variables-on-fedora-core-9-tp21286631p21290207.html Sent from the ns-users mailing list archive at Nabble.com. From withhighprob at gmail.com Mon Jan 5 06:30:10 2009 From: withhighprob at gmail.com (matt Wood) Date: Mon, 5 Jan 2009 23:30:10 +0900 Subject: [ns] How to get the current simulation time in ns2? Or how to know the remaining time of a timer? Message-ID: <7f61906e0901050630g7b9f6c0ej438b117abe677a56@mail.gmail.com> Dear all, I want to know the current time in C++ programs. Is there a function to do this? Or, How can I get the remaining time of a running timer? In OpNet the function simtime( ) can be used to get the current time. But I can't find the corresponding one in the NS2. Thank you in advance. Bests, Matthew Wood From mshrehmani at gmail.com Mon Jan 5 06:55:03 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Mon, 5 Jan 2009 15:55:03 +0100 Subject: [ns] How to get the current simulation time in ns2? Or how to know the remaining time of a timer? In-Reply-To: <7f61906e0901050630g7b9f6c0ej438b117abe677a56@mail.gmail.com> References: <7f61906e0901050630g7b9f6c0ej438b117abe677a56@mail.gmail.com> Message-ID: Dear Matt Wood To know the current time in C++ files of ns2, you can use these commands #define CURRENT_TIME Scheduler::instance().clock() cout< > > Dear all, > I want to know the current time in C++ programs. Is there a > function to do this? Or, How can I get the remaining time of a running > timer? In OpNet the function simtime( ) can be used to get the current > time. But I can't find the corresponding one in the NS2. > > Thank you in advance. > Bests, > Matthew Wood > > -- Mubashir Husain Rehmani From mcsist at yahoo.com Mon Jan 5 11:56:37 2009 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Mon, 5 Jan 2009 11:56:37 -0800 (PST) Subject: [ns] AWK programms References: Message-ID: <591766.77644.qm@web55001.mail.re4.yahoo.com> Hi, About the first point: you need to check your simulation environment and parameters and try to simulate these protocol with simple simulation scenarios. About the second point: because I need to remove the size of the packet header from the received packet, so I need exactly to know how the size of header. All the Successes, Mohammed AbuHajar Palestine Territory, Occupied. ________________________________ From: hajer h To: mcsist at yahoo.com Sent: Monday, January 5, 2009 1:04:41 AM Subject: AWK programms hello i am working with ns2.. and i am loocking for some awk programme that calculate the average throughput, e-2-e delay, NRL and PDF...for all protcol AODV OLSR DSR DSDV... can you help me in this way... i have tried http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html those programme i didn't understand why they gives 0 for such protocol like DSR or DSDV... i have anothers questions : about the avearge thtoughut : why did you subtrain 512 ...did you calcul the average throughput for TCP traffic??? thanks in advance... -- "Somewhere, something incredible is waiting to be known." From paraguayita_69 at hotmail.com Mon Jan 5 18:17:47 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Mon, 5 Jan 2009 21:17:47 -0500 Subject: [ns] FW: FLOATING POINT EXCEPTION Message-ID: From: paraguayita_69 at hotmail.comTo: ns-users at isi.eduSubject: FLOATING POINT EXCEPTIONDate: Mon, 5 Jan 2009 21:13:25 -0500 Hello: I am trying to run a XCP protocol example script as follows: ---------------------------------------------- ### XCP EXAMPLE TCLset lrate 0.0Queue/XCP set tcp_xcp_on 1Agent/TCP set minrto_ 1set ns [new Simulator]$ns color 1 Redset tr_f [open out.tr w]set nam_f [open out.nam w]set record_f1 [open out.data1 w]$ns trace-all $tr_f$ns namtrace-all $nam_f### Finish procproc finish {} { global ns tr_f record_f1 nam_f $ns flush-trace close $tr_f close $record_f1 close $nam_f exec awk { { print $1, $2 } } out.data1 > temp1.cwnd exit 0}set n0 [$ns node]set n1 [$ns node]#### LINK# object from to bandwith delay queue $ns duplex-link $n0 $n1 5Mb 35ms XCP#### BOTTLENECK BUFFERset buffer 43# tamanho del buffer del link n1-n2$ns queue-limit $n0 $n1 [expr $buffer *1]$ns duplex-link-op $n0 $n1 queuePos 0.5#### TCP AGENT 1set tcp1 [new Agent/TCP/Reno/XCP]$ns attach-agent $n0 $tcp1set sink1 [new Agent/TCPSink/XCPSink]$ns attach-agent $n1 $sink1$ns connect $tcp1 $sink1$tcp1 set fid_ 1$tcp1 set window_ 8000$tcp1 set packetSize_ 552set ftp1 [new Application/FTP]$ftp1 attach-agent $tcp1$ftp1 set type_ FTP### Record procproc record {} { global ns tcp1 sink1 record_f1 set now [$ns now] set time 0.15 set cwin1 [$tcp1 set cwnd_] puts $record_f1 "$now [expr $cwin1*1] " $ns at [expr $now+$time] "record "}$ns at 0.0 "record"$ns at 0.0 "$ftp1 start"$ns at 20.0 "$ftp1 stop"$ns at 20.0 "$ns detach-agent $n0 $tcp1 ; $ns detach-agent $n1 $sink1"$ns at 20.0 "finish"$ns run---------------------------------------------- I got the NS2 version 2.33 installed in Fedora 8. I have no problems with others TCP protocols. The exception normally appears when there is a division by zero. However, in the .tcl code there is nothing that can be associated with this error. How Can be this possible? Can someone help me? THANKS in advance DIANA It?s the same Hotmail?. If by ?same? you mean up to 70% faster. Get your account now. _________________________________________________________________ Send e-mail faster without improving your typing skills. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008 From paraguayita_69 at hotmail.com Mon Jan 5 18:26:04 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Mon, 5 Jan 2009 21:26:04 -0500 Subject: [ns] FLOATING POINT EXECPTION Message-ID: Hello: I am trying to run a XCP protocol example script as follows:---------------------------------------------### XCP EXAMPLE TCLset lrate 0.0Queue/XCP set tcp_xcp_on 1Agent/TCP set minrto_ 1set ns [new Simulator]$ns color 1 Redset tr_f [open out.tr w]set nam_f [open out.nam w]set record_f1 [open out.data1 w]$ns trace-all $tr_f$ns namtrace-all $nam_f### Finish procproc finish {} { global ns tr_f record_f1 nam_f $ns flush-trace close $tr_f close $record_f1 close $nam_f exec awk { { print $1, $2 } } out.data1 > temp1.cwnd exit 0}set n0 [$ns node]set n1 [$ns node]#### LINK# object from to bandwith delay queue $ns duplex-link $n0 $n1 5Mb 35ms XCP#### BOTTLENECK BUFFERset buffer 43# tamanho del buffer del link n1-n2$ns queue-limit $n0 $n1 [expr $buffer *1]$ns duplex-link-op $n0 $n1 queuePos 0.5#### TCP AGENT 1set tcp1 [new Agent/TCP/Reno/XCP]$ns attach-agent $n0 $tcp1set sink1 [new Agent/TCPSink/XCPSink]$ns attach-agent $n1 $sink1$ns connect $tcp1 $sink1$tcp1 set fid_ 1$tcp1 set window_ 8000$tcp1 set packetSize_ 552set ftp1 [new Application/FTP]$ftp1 attach-agent $tcp1$ftp1 set type_ FTP### Record procproc record {} { global ns tcp1 sink1 record_f1 set now [$ns now] set time 0.15 set cwin1 [$tcp1 set cwnd_] puts $record_f1 "$now [expr $cwin1*1] " $ns at [expr $now+$time] "record "}$ns at 0.0 "record"$ns at 0.0 "$ftp1 start"$ns at 20.0 "$ftp1 stop"$ns at 20.0 "$ns detach-agent $n0 $tcp1 ; $ns detach-agent $n1 $sink1"$ns at 20.0 "finish"$ns run---------------------------------------------I got the NS2 version 2.33 installed in Fedora 8. I have no problems with others TCP protocols. The exception normally appears when there is a division by zero. However, in the .tcl code there is nothing that can be associated with this error. How Can be this possible? Can someone help me? THANKS in advance DIANA _________________________________________________________________ It?s the same Hotmail?. If by ?same? you mean up to 70% faster. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008 From paraguayita_69 at hotmail.com Mon Jan 5 18:40:46 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Mon, 5 Jan 2009 21:40:46 -0500 Subject: [ns] FLOATING POINT EXECPTION In-Reply-To: References: Message-ID: Hello:I am trying to run a XCP protocol example script as follows: --------------------------------------------- ### XCP EXAMPLE TCLset lrate 0.0 Queue/XCP set tcp_xcp_on 1 Agent/TCP set minrto_ 1 set ns [new Simulator] $ns color 1 Red set tr_f [open out.tr w] set nam_f [open out.nam w] set record_f1 [open out.data1 w] $ns trace-all $tr_f$ns namtrace-all $nam_f ### Finish procproc finish {} { global ns tr_f record_f1 nam_f $ns flush-trace close $tr_f close $record_f1 close $nam_f exec awk { { print $1, $2 } } out.data1 > temp1.cwnd exit 0 } set n0 [$ns node] set n1 [$ns node] #### LINK# object from to bandwith delay queue $ns duplex-link $n0 $n1 5Mb 35ms XCP #### BOTTLENECK BUFFER set buffer 43 $ns queue-limit $n0 $n1 [expr $buffer *1] $ns duplex-link-op $n0 $n1 queuePos 0.5 #### TCP AGENT 1set tcp1 [new Agent/TCP/Reno/XCP] $ns attach-agent $n0 $tcp1 set sink1 [new Agent/TCPSink/XCPSink] $ns attach-agent $n1 $sink1 $ns connect $tcp1 $sink1$tcp1 set fid_ 1 $tcp1 set window_ 8000 $tcp1 set packetSize_ 552 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ftp1 set type_ FTP ### Record procproc record {} { global ns tcp1 sink1 record_f1 set now [$ns now] set time 0.15 set cwin1 [$tcp1 set cwnd_] puts $record_f1 "$now [expr $cwin1*1] " $ns at [expr $now+$time] "record " } $ns at 0.0 "record" $ns at 0.0 "$ftp1 start" $ns at 20.0 "$ftp1 stop" $ns at 20.0 "$ns detach-agent $n0 $tcp1 ; $ns detach-agent $n1 $sink1" $ns at 20.0 "finish" $ns run --------------------------------------------- I got the NS2 version 2.33 installed in Fedora 8. I have no problems with others TCP protocols. The exception normally appears when there is a division by zero. However, in the .tcl code there is nothing that can be associated with this error. How Can be this possible? Can someone help me? THANKS in advance DIANA _________________________________________________________________ Life on your PC is safer, easier, and more enjoyable with Windows Vista?. http://clk.atdmt.com/MRT/go/127032870/direct/01/ From mcsist at yahoo.com Mon Jan 5 19:46:46 2009 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Mon, 5 Jan 2009 21:46:46 -0600 (CST) Subject: [ns] AWK programms References: <591766.77644.qm@web55001.mail.re4.yahoo.com> Message-ID: <43292.70470.qm@web55002.mail.re4.yahoo.com> Salam Alikm, About the first point: there are two type of packets ( Data and Control ) packets. control=request+reply messages. Also I am referring you to see the NS-2 manual about Packets in NS-2. About the second: yes packet_id = $41; 41 column. also try study the output trace file to get more information I advise all the beginner into NS-2 to try simple programs and scenarios. All the best, Mohammed AbuHajar Master of Computer Science ________________________________ From: sarym binome To: mcsist at yahoo.com Sent: Monday, January 5, 2009 1:11:46 PM Subject: RE: [ns] AWK programms hello, salem i prepar a simulation for AODV routing protocol, for E2E delay , i saw your example you work in application layer (AGT), if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } don't we work whith pkt type ( AODV REQUEST and REPLY)??????????(i'm new and i realy don't know ) { if (($1=="s")&&($25=="(REQUEST)")&&($17=="0]")) { time[$23,$21]=$2 ;printf ("le temps d'?mission de requ?te : %f \n",time[$23,$21] );}; an other question about # CALCULATE DELAY ( packet_id = $41;) whay you choose $41???? is the trace file for DRS has a more than 26 column !? thanks, best regards. > Date: Mon, 5 Jan 2009 11:56:37 -0800 > From: mcsist at yahoo.com > To: g.hajer at gmail.com > CC: ns-users at ISI.EDU > Subject: Re: [ns] AWK programms > > > Hi, > > About the first point: you need to check your simulation environment and parameters and try to simulate these protocol with simple simulation scenarios. > About the second point: because I need to remove the size of the packet header from the received packet, so I need exactly to know how the size of header. > > All the Successes, > Mohammed AbuHajar > Palestine Territory, Occupied. > > > > > > ________________________________ > From: hajer h > To: mcsist at yahoo.com > Sent: Monday, January 5, 2009 1:04:41 AM > Subject: AWK programms > > > hello i am working with ns2.. > and i am loocking for some awk programme that calculate the average throughput, e-2-e delay, NRL and PDF...for all protcol AODV OLSR DSR DSDV... > can you help me in this way... > i have tried http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html those programme i didn't understand why they gives 0 for such protocol like DSR or DSDV... > i have anothers questions : about the avearge thtoughut : why did you subtrain 512 ...did you calcul the average throughput for TCP traffic??? > thanks in advance... > > > > > -- > > "Somewhere, something incredible is waiting to be known." > > > ________________________________ T?l?chargez le nouveau Windows Live Messenger ! T?l?chargez Messenger, c'est gratuit ! From phenix_yw at hhu.edu.cn Mon Jan 5 22:19:17 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Tue, 6 Jan 2009 14:19:17 +0800 Subject: [ns] (A naive solution) how to set different transmit range for different node References: <430881430.19092@eyou.net> <430949739.22788@hhu.edu.cn> <431036815.27991@eyou.net> <431211429.13128@hhu.edu.cn> Message-ID: <431220632.19781@eyou.net> Hi All, After hacking threshold.cc, I've known the formula used to calculate receive threshold (ATTENTION: threshold.cc only generates RXThresh_, NOT Pt_). I modified TwoRayGround formula in threshold.cc, as below : Pr * d^4 * L Pt = --------------------------- Gt * Gr * (ht^2 * hr^2) Pr is replace with RXThresh_ whose value is 3.652e-10. If a distance is given, Pt can be calculated by above formula. e.g. Tx Range Pt_ 100m 0.00721383 150m 0.03652 200m 0.115421 250m 0.28179 300m 0.58432 ... ... I attached modified threshold.cc renamed threshold_Pt.cc . After compiling it, you can use like this: ./threshold_Pt -m TwoRayGround But unluckily, if the tx range is smaller than crossover_dist (always should be 86.1425m), the generated Pt_ value is incorrect either using Friis or TwoRay. If you know why, please let me know. I've developed a simple tcl script in order to validate transmit range with different Pt_ value. I attached this script named TxRangeTest.tcl. The routing protocol used in the script is MFlood, which is just a simple flooding algorithm. Trace format has been changed a little, like: s 1.000000000 1 1.00 200.00 AGT --- 0 cbr 512 [0 0 0 0] ------- [1:0 0:0 32 0] [0] 0 0 r 1.004860003 0 0.00 200.00 AGT --- 0 MFlood 532 [mflood 1.000000000 1.00 200.00 ] The trace format of cbr packet can be referred to NS2 manual. The explain of trace format about MFlood packet is below: event = $1; curr_time = $2; curr_node_id = $3; curr_position_x = $4; curr_position_y = $5; trace_type = $6; pkt_seq = $8; pkt_type = $9; pkt_generate_time = $12; prev_hop_position_x = $13; prev_hop_position_y = $14; Finally, a AWT file is used to calculate the transmit range. #======================================================================== BEGIN { RecvNum = 0; final_curr_position_x = 0; final_curr_position_y = 0; final_prev_hop_position_x = 0; final_prev_hop_position_y = 0; } { event = $1; curr_time = $2; curr_node_id = $3; curr_position_x = $4; curr_position_y = $5; trace_type = $6; pkt_seq = $8; pkt_type = $9; pkt_generate_time = $12; prev_hop_position_x = $13; prev_hop_position_y = $14; if ( event == "r" && curr_node_id == 0 && trace_type == "AGT" ) { RecvNum++; # printf(" %3d [Time : %f] N0(%.2f,%.2f) <---- N1(%.2f,%.2f)\n", # RecvNum, # curr_time, # curr_position_x, # curr_position_y, # prev_hop_position_x, # prev_hop_position_y); final_curr_position_x = curr_position_x; final_curr_position_y = curr_position_y; final_prev_hop_position_x = prev_hop_position_x; final_prev_hop_position_y = prev_hop_position_y; } } END{ dx = final_prev_hop_position_x - final_curr_position_x ; dy = final_prev_hop_position_y - final_curr_position_y ; tx_range = sqrt(dx * dx + dy * dy) ; printf(" \nNum of Recv pkts : %d \n", RecvNum); printf(" \nTx Range of Node 1: %f \n", tx_range); } This is just a reference. You should do some changes according to your trace file if you use other routing protocol. Regards, Phenix -------------------------------------------------- From: "kavan sheth" Sent: Sunday, January 04, 2009 1:24 PM To: "Phenix" Subject: Re: [ns] how to set different transmit range for different node > Hi Phenix, > > As far as I know threshold.cc generates particular transmission > power(Pt_) based on the propagation model and distance specified by > you. different propagation model have different equations for > receiving power based on its characteristics. different equations are > given in the threshold.cc. you can know more by studying this > threshold.cc > > Kavan > > On 1/3/09, Phenix wrote: >> >> Hi Sidney, >> >> After times of trials, I've succeeded in letting different nodes own >> different >> Tx Range by configuring different value of Pt_ for each node. I get >> different >> values of Pt_ from a script: >> # The transimssion radio range >> Pt_ 6.9872e-4 ;# ?m >> Pt_ 8.5872e-4 ;# 40m >> Pt_ 1.33826e-3 ;# 50m >> Pt_ 7.214e-3 ;# 100m >> Pt_ 0.2818 ;# 250m >> >> And in my script, I have test range of 250m and 40m. It really works >> well. >> But It's a pity that I don't know how to obtain these values. The tool >> threshold >> (~ns/lidep-utils/propagation/threshold.cc) only generate RXThresh_ other >> than Pt_. >> >> Is there somebody knowing how to get value of Pt_? >> >> >> [Here is my test script] >> >> # ====================================================================== >> # Define options >> # ====================================================================== >> set val(ifqlen) 50 ;# max packet in ifq >> set val(nn) 2 ;# number of >> mobilenodes >> set val(rp) MFlood ;# routing >> protocol,DumbAgent >> set val(chan) Channel/WirelessChannel >> set val(prop) Propagation/TwoRayGround >> set val(netif) Phy/WirelessPhy >> set val(mac) Mac/802_11 >> set val(ifq) Queue/DropTail/PriQueue >> set val(ll) LL >> set val(ant) Antenna/OmniAntenna >> set val(stop) 150 >> >> # Initialize the SharedMedia interface with parameters to make >> # it work like the 914MHz Lucent WaveLAN DSSS radio interface >> Phy/WirelessPhy set CPThresh_ 10.0 >> Phy/WirelessPhy set CSThresh_ 1.559e-11 >> Phy/WirelessPhy set RXThresh_ 3.652e-10 >> Phy/WirelessPhy set Rb_ 2*1e6 >> Phy/WirelessPhy set freq_ 914e+6 >> Phy/WirelessPhy set L_ 1.0 >> >> # Pt_ >> set txpower_(0) 0.2818 ;# 250m >> set txpower_(1) 8.5872e-4 ;# 40m >> set txpower_(2) 7.214e-3 ;# 100m >> >> # ====================================================================== >> # Main Program >> # ====================================================================== >> >> #ns-random 0 >> >> # Initialize Global Variables >> set ns_ [new Simulator] >> set tracefd [open mflood_txRange.tr w] >> $ns_ trace-all $tracefd >> >> set namtrace [open mflood_txRange.nam w] >> $ns_ namtrace-all-wireless $namtrace 1000 500 >> >> # set up topography >> set topo [new Topography] >> $topo load_flatgrid 1000 500 >> >> # Create God >> create-god $val(nn) >> >> >> # Create the specified number of mobilenodes [$val(nn)] and "attach" them >> # to the channel. >> # configure node >> set channel [new Channel/WirelessChannel] >> $channel set errorProbability_ 0.0 >> >> $ns_ node-config -adhocRouting $val(rp) \ >> -llType $val(ll) \ >> -macType $val(mac) \ >> -ifqType $val(ifq) \ >> -ifqLen $val(ifqlen) \ >> -antType $val(ant) \ >> -propType $val(prop) \ >> -phyType $val(netif) \ >> -channel $channel \ >> -topoInstance $topo \ >> -agentTrace ON \ >> -routerTrace OFF\ >> -macTrace OFF \ >> -movementTrace OFF >> >> for {set i 0} {$i < $val(nn) } {incr i} { >> Phy/WirelessPhy set Pt_ $txpower_($i) >> set node_($i) [$ns_ node] >> $node_($i) random-motion 0; >> } >> >> # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes >> # >> # N_0 <-- d ---> N_2 >> # src dst >> >> $node_(0) set X_ 0.0 >> $node_(0) set Y_ 200.0 >> $node_(0) set Z_ 0.0 >> >> $node_(1) set X_ 1.0 >> $node_(1) set Y_ 200.0 >> $node_(1) set Z_ 0.0 >> >> $ns_ at 1.5 "$node_(1) setdest 255.0 200.0 2.0" >> >> # Define node initial position in nam >> for {set i 0} {$i < $val(nn)} {incr i} { >> $ns_ initial_node_pos $node_($i) 20 >> } >> >> set udp_(0) [new Agent/UDP] >> set udp_(1) [new Agent/UDP] >> $ns_ attach-agent $node_(0) $udp_(0) >> $ns_ attach-agent $node_(1) $udp_(1) >> >> set null_(0) [new Agent/Null] >> set null_(1) [new Agent/Null] >> $ns_ attach-agent $node_(1) $null_(0) >> $ns_ attach-agent $node_(0) $null_(1) >> >> $ns_ connect $udp_(0) $null_(0) >> $ns_ connect $udp_(1) $null_(1) >> >> for {set i 0} {$i < $val(nn)} {incr i} { >> set cbr_($i) [new Application/Traffic/CBR] >> $cbr_($i) set packetSize_ 512 >> $cbr_($i) set interval_ 2 >> $cbr_($i) set random_ 1 >> $cbr_($i) attach-agent $udp_($i) >> >> } >> $ns_ at 1.0 "$cbr_(0) start" >> $ns_ at 1.1 "$cbr_(1) start" >> >> # Tell nodes when the simulation ends >> for {set i 0} {$i < $val(nn) } {incr i} { >> $ns_ at $val(stop).0 "$node_($i) reset"; >> } >> $ns_ at $val(stop).0 "stop" >> $ns_ at $val(stop).01 "puts \"NS EXITING...\" ; $ns_ halt" >> proc stop {} { >> global ns_ tracefd namtrace >> $ns_ flush-trace >> close $tracefd >> close $namtrace >> } >> >> puts "Starting Simulation..." >> $ns_ run >> >> >> >> >> Regards, >> Phenix >> >> >> From: Sidney Doria >> Sent: Saturday, January 03, 2009 12:01 AM >> To: Phenix >> Subject: Re: [ns] how to set different transmit range for different node >> >> >> Hi Phenix, >> >> >> In the TCL file, there's a loop for node creation. So, you can break this >> node in a manual creation, each node with specific characteristics. >> >> >> Sidney Doria >> >> >> UFCG / BRAZIL >> >> >> 2009/1/2 Phenix >> >> >> >> Hi all, >> >> I'd like how to set different transmit range for different node in >> MANET. >> >> eg. >> Three nodes,N0,N1 and N2 are in a line: >> (N0) (N1) (N2) >> |--- 200m -----| ---120m---| >> The transmit range of N0,N1 and N2 is respectively 250m,150m,200m. >> So packets can be passed: >> N0 --> N1 <---> N2 >> >> Let me know how to set different transmit range please. >> Thank you in advance! >> >> Regards, >> Phenix >> >> >> >> >> >> -- >> Sidney Doria >> Redes ad hoc m?veis >> Doutorado em Computa??o >> UFCG >> Brasil >> >> "Nessa jornada, o conhecimento ser? o seu escudo..." >> (Mestre dos Magos no epis?dio do grimoire de ouro) >> > From ghada.ahmed at yahoo.com Mon Jan 5 22:43:07 2009 From: ghada.ahmed at yahoo.com (Ghada Khoriba) Date: Mon, 5 Jan 2009 22:43:07 -0800 (PST) Subject: [ns] Simulation parameters Message-ID: <200078.30911.qm@web55104.mail.re4.yahoo.com> Dear All, ? Is there any typical or standard simulation parameters for simulating wireless ad hoc networks in ns2? ? Thanks ? Ghada From tuffaha at gmail.com Mon Jan 5 23:27:12 2009 From: tuffaha at gmail.com (Waleed Tuffaha) Date: Tue, 6 Jan 2009 09:27:12 +0200 Subject: [ns] NS installation (Ubuntu) In-Reply-To: <99362.7061.qm@web57003.mail.re3.yahoo.com> References: <99362.7061.qm@web57003.mail.re3.yahoo.com> Message-ID: <141cb92a0901052327i426bacebgc01392976438f77b@mail.gmail.com> I use ns-2.33 on ubuntu 8.04.1 . i remember that i solved these error by installing some packages Try: sudo apt-get install tcl tk libxt-dev On Mon, Jan 5, 2009 at 4:28 AM, Bello Lawal wrote: > > Hello, > > Pls. can some one help me i try to install NS2 in Ubuntu during the > installation it gives me the following error. > > tcl8.3.2 configuration failed! Existing ............... > Tcl is not part of the ns project. > > > > > -- Waleed Tuffaha. From haideruet at yahoo.com Tue Jan 6 00:21:35 2009 From: haideruet at yahoo.com (HaiderSa) Date: Tue, 6 Jan 2009 00:21:35 -0800 (PST) Subject: [ns] ns2 problems with simulation of lan Message-ID: <21303699.post@talk.nabble.com> this is bcoz of the the nam is reading the previous history of the file. so u must delete the out.tr and out.nam both before re-running the simulation. pingpingping wrote: > > Hello, > recently I use the ns2 simulator to simulate local area network. I > write the tcl code following the manual downloaded from > http://www.isi.edu/nsnam/ns/, but I find that every time I run the > code below, the output is 1.7293548387096773Mb/s,but it shouldn't > be,because I have set the bw of the local area network as 1Mb,how can > it achieve 1.7Mb, I am quite puzzled with it > I don't kown whether there should be some more settings or some > other > > the code below just simulate a lan which transmits data from node n1 > to node n2,the bw between n1 and n2 is set as 1Mb > is there bugs in the code, please point them out and give me some advice, > thanks a lot! > ##########################################code######################## > set ns [new Simulator] > > #Define different colors for data flows (for NAM) > $ns color 1 Blue > $ns color 2 Red > > #Open the Trace files > set file1 [open out.tr w] > set winfile [open WinFile w] > $ns trace-all $file1 > #Define a 'finish' procedure > proc finish {} { > global ns file1 > $ns flush-trace > close $file1 > exec nam out.nam & > exit 0 > } > set n1 [$ns node] > set n2 [$ns node] > set lan [$ns newLan "$n1 $n2" 1Mb 40ms LL Queue/DropTail MAC/Csma/Cd > Channel] > set tcp [new Agent/TCP/Newreno] > $ns attach-agent $n1 $tcp > set sink [new Agent/TCPSink/DelAck] > $ns attach-agent $n2 $sink > $ns connect $tcp $sink > $tcp set fid_ 1 > $tcp set window_ 65536 > $tcp set packetSize_ 1024 > > #Setup a FTP over TCP connection > set ftp [new Application/FTP] > $ftp attach-agent $tcp > $ftp set type_ FTP > > proc get_throughput { tcp } { > #now calculate the average throughtput (in Mb/s) > puts "[expr [$tcp set ndatapack_]*8.0/1000/124]Mb/s" > } > $ns at 1.0 "$ftp start" > $ns at 124.0 "$ftp stop" > $ns at 124 "get_throughput $tcp" > $ns at 125.0 "finish" > $ns run > ######################################################## > -- View this message in context: http://www.nabble.com/ns2-problems-with-simulation-of-lan-tp21140877p21303699.html Sent from the ns-users mailing list archive at Nabble.com. From Faraz_Hasan-S at email.ulster.ac.uk Tue Jan 6 02:12:20 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Tue, 6 Jan 2009 10:12:20 +0000 Subject: [ns] Looking for LAN example in NS2 Message-ID: Hello everyone, I am looking for a simple LAN example in NS 2. I am following the isi tutorial but it seems to have given only the lan command structure. I am looking for a proper syntax to work out at LANs in NS2 environment. Can some one help please? Regards, Faraz From obaidabbasi at gmail.com Tue Jan 6 03:42:26 2009 From: obaidabbasi at gmail.com (obaid abbasi) Date: Tue, 6 Jan 2009 12:42:26 +0100 Subject: [ns] storing packets Message-ID: <26a7b1700901060342w34de5d27y9d9e3709271cf87d@mail.gmail.com> I want to store all packets send by a source node to destination node, so that I can resend the missing packets. How can I store the packets sent by source node. Thanks for your response. BR Ubaid From binome_ini at hotmail.com Tue Jan 6 12:35:11 2009 From: binome_ini at hotmail.com (sarym binome) Date: Tue, 6 Jan 2009 20:35:11 +0000 Subject: [ns] how can i change the pause time parameters? Message-ID: hello how can i change the pause time parameters without creating a lot of scenario file and change the -p (when we use the setdest) ? is it possible (how can i do it ?) how can i set the radio range = 250m , where can i initiate this variable ? best regards _________________________________________________________________ Glissez - d?placez : c'est si simple de partager vos photos sur Windows Live? Photos ! http://www.microsoft.com/windows/windowslive/photos.aspx From binome_ini at hotmail.com Tue Jan 6 12:39:43 2009 From: binome_ini at hotmail.com (sarym binome) Date: Tue, 6 Jan 2009 20:39:43 +0000 Subject: [ns] what the Handoff Attempted error mean Message-ID: hello i have this error when i simulate AODV protocol Client 7: Handoff Attempted best regards sarym _________________________________________________________________ D?couvrez Windows Live Spaces et cr?ez votre site Web perso en quelques clics ! http://spaces.live.com/signup.aspx From ssdoria at gmail.com Tue Jan 6 15:19:16 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Tue, 6 Jan 2009 20:19:16 -0300 Subject: [ns] how can i change the pause time parameters? In-Reply-To: References: <1bc975700901061329h75c79338ud8b833853783fd58@mail.gmail.com> Message-ID: <1bc975700901061519n57129dfdrf049e0adaf53893c@mail.gmail.com> Ok, the answers are here, but I suggest you to google it a bit more! :) http://web.syr.edu/~dchen02/FAQ.txt ------------------------------------------------------ Question 6: How to set up the wireless bandwidth (such as 802.11 a,b,g) in NS2? Answer: In ns2.26 and ns2.27, you can change (basicRate_ and dataRate_ ): Mac/802_11 set basicRate_ 1Mb Mac/802_11 set dataRate_ 11Mb in your tcl script. FHSS (IEEE802.11) Mac/802_11 set SlotTime_ 0.000050 ;# 50us Mac/802_11 set SIFS_ 0.000028 ;# 28us Mac/802_11 set PreambleLength_ 0 ;# no preamble Mac/802_11 set PLCPHeaderLength_ 128 ;# 128 bits Mac/802_11 set PLCPDataRate_ 1.0e6 ;# 1Mbps Mac/802_11 set dataRate_ 1.0e6 ;# 11Mbps Mac/802_11 set basicRate_ 1.0e6 ;# 1Mbps DSSS (IEEE802.11b) Mac/802_11 set SlotTime_ 0.000020 ;# 20us Mac/802_11 set SIFS_ 0.000010 ;# 10us Mac/802_11 set PreambleLength_ 144 ;# 144 bit Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits Mac/802_11 set PLCPDataRate_ 1.0e6 ;# 1Mbps Mac/802_11 set dataRate_ 11.0e6 ;# 11Mbps Mac/802_11 set basicRate_ 1.0e6 ;# 1Mbps Note: -if using the short preamble option: you can change the line as: Mac/802_11 set PreambleLength_ 72 - # frequency is 2.4 GHz Phy/WirelessPhy set freq_ 2.4e+9 # transmit power Phy/WirelessPhy set Pt_ 3.3962527e-2 # Receive sensitivity. Phy/WirelessPhy set RXThresh_ 6.309573e-12 Phy/WirelessPhy set CSThresh_ 6.309573e-12 ( *** HEY SARYM ***, READ THIS) Note that the radio range that results from this configuration may or may not coincide with open field tests. If you want setup a specific range, use the program ~/indep-utils/propagation/threshold.cc to obtain the desired RXThresh_ (rx sensitivity) based on the above frequency, transmit power and your desired range. 802.11g: #define DSSS_CWMin 15 #define DSSS_CWMax 1023 #define DSSS_SlotTime 0.000009 #define DSSS_CCATime 0.000003 #define DSSS_RxTxTurnaroundTime 0.000002 #define DSSS_SIFSTime 0.000016 #define DSSS_PreambleLength 96 #define DSSS_PLCPHeaderLength 40 #define DSSS_PLCPDataRate 6.0e6 // 6Mbps #define DSSS_MaxPropagationDelay 0.0000005 // 0.5us Note: bandwidth is different with achievable throughput. - In NS ACK are always sent at 1Mbps - NS use always the long PLCP preamble format sent at 1Mbps - by default NS uses RTS/CTS handshake - Packet's size has also an impact in the % of overhead. All this factor can bound the achievable throughput --------------------------------------------------------------------------------------------------- Hope to be useful, Sidney Doria UFCG / BRAZIL 2009/1/6 sarym binome : > hi sideny > please show me exactly where can i do that (about radio range ) > set ns_ [new Simulator] > > set topo [new Topography] > > set val(chan) Channel/WirelessChannel > set val(prop) Propagation/TwoRayGround > set val(ant) Antenna/OmniAntenna > set val(ll) LL > set val(ifq) Queue/DropTail/PriQueue > set val(x) 670 ;# X dimension of the topography > set val(y) 670 ;# Y dimension of the topography > set val(ifqlen) 50 > set val(seed) 0.0 > set val(netif) Phy/WirelessPhy > set val(mac) Mac/802_11 > set val(rp) AODV > set val(nn) 20 > set val(cp) "cbr-20-test.cbr" > set val(sc) [lindex $argv 0] > set val(stop) 200.0 > > > for {set i 0} {$i < $val(nn) } { incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 > } > thanks > >> Date: Tue, 6 Jan 2009 18:29:46 -0300 >> From: ssdoria at gmail.com >> To: binome_ini at hotmail.com >> Subject: Re: [ns] how can i change the pause time parameters? >> >> About the pause time I don't know, but about the radio range 250m is >> the default. This value is initiated in the TCL file, in a loop to >> create all nodes (with same parameters). >> >> Sidney Doria >> >> UFCG / BRAZIL >> >> 2009/1/6 sarym binome : >> > >> > >> > hello >> > how can i change the pause time parameters without creating a lot of >> > scenario file and change the -p (when we use the setdest) ? is it possible >> > (how can i do it ?) >> > how can i set the radio range = 250m , where can i initiate this >> > variable ? >> > best regards >> > >> > _________________________________________________________________ >> > Glissez - d?placez : c'est si simple de partager vos photos sur Windows >> > Live? Photos ! >> > http://www.microsoft.com/windows/windowslive/photos.aspx >> > >> >> >> >> -- >> Sidney Doria >> Redes ad hoc m?veis >> Doutorado em Computa??o >> UFCG >> Brasil >> >> "Nessa jornada, o conhecimento ser? o seu escudo..." >> (Mestre dos Magos no epis?dio do grimoire de ouro) > > ________________________________ > Tous vos amis discutent sur Messenger, et vous ? T?l?chargez Messenger, > c'est gratuit ! -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From ssdoria at gmail.com Tue Jan 6 16:21:12 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Tue, 6 Jan 2009 21:21:12 -0300 Subject: [ns] how can i change the pause time parameters? In-Reply-To: <20090106234224.GD6364@nuttenaction> References: <1bc975700901061329h75c79338ud8b833853783fd58@mail.gmail.com> <1bc975700901061519n57129dfdrf049e0adaf53893c@mail.gmail.com> <20090106234224.GD6364@nuttenaction> Message-ID: <1bc975700901061621h4eab8743ha6ebe98d4aa1df16@mail.gmail.com> I was just questioning: Will that guy say: "hey, this is the same answer!"? I tell you: It is not. Read your text and you'll see how rude It was. I helped him. Twice. And I'm here to help him many more times, to answer many more questions (if I know the answer). I will not read your message because probably it doesn't matter. This ends here. You come from a excelent country, with good schools, and have an well known, incredible, knowledge of the inside NS-2 and NS-3. So, you can help people more than anyone. Please, realize that many students in here had a quarter of your opportunities. What they need is incentive. I propose you forget about it, remove the "checking for intelligent life... not found" from your email sign, and help us. Sidney Doria UFCG / BRAZIL 2009/1/6 Hagen Paul Pfeifer : > * Sidney Doria | 2009-01-06 20:19:16 [-0300]: > > >>Ok, the answers are here, but I suggest you to google it a bit more! :) > > ;-) that was that what I told you some months ago! OK, a little bit more > unkindly (but that was not my suggestion). But you see, a lot of questions > here are superfluous and a google search is much more effective as to post > here (this belongs to a big part of all questions here). > > Anyway, I must smile on myself where I read your sentence! ;-) > > > Best regards and have a nice week! > > Hagen > > > -- > [...] > checking for intelligent life... not found > [...] > [aus 'configure' von GIMP-1.2.2] > > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From lochan.verma at gmail.com Tue Jan 6 21:01:38 2009 From: lochan.verma at gmail.com (Lochan Verma) Date: Wed, 7 Jan 2009 14:01:38 +0900 Subject: [ns] 802.11n MIMO support with ns2 In-Reply-To: <2c82f90f0901062057u1a7c15b2qb257fee2b4cea3ff@mail.gmail.com> References: <2c82f90f0901062057u1a7c15b2qb257fee2b4cea3ff@mail.gmail.com> Message-ID: <2c82f90f0901062101x46e029ffuf965848bbdeaf0c6@mail.gmail.com> Dear ns2 users, This is my second post relating to the same topic. I was wondering if there is some exsistent code or hints to write a patch to incorporate MIMO support in ns2. Recently I saw some emails dealing with ns3 and 802.11n implementation by people from Univeristy of Florance. When available, it will be a big contribution according to me. Can somebody please gives some ideas and thoughts. All help is appreciated. Regards, Lochan From Faraz_Hasan-S at email.ulster.ac.uk Wed Jan 7 08:18:00 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Wed, 7 Jan 2009 16:18:00 +0000 Subject: [ns] LAN Layout help Message-ID: Hi Everybody, I enclose the NAM layout of a code given as under. I am trying to simulate a LAN with CSMA/MAC/CD. The resulting diagram of the LAN is not very clear. Is there any way to shape it up properly like a LAN. I know only the orient command use with setting duplex links but here the links between the nodes are already set up. Also, I get a warning the CSMA/MAC/CD is now out of date, what does that mean? Hope you will write back at the earliest. Faraz From Faraz_Hasan-S at email.ulster.ac.uk Thu Jan 8 02:39:22 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Thu, 8 Jan 2009 10:39:22 +0000 Subject: [ns] How to set up mobile nodes? Message-ID: Hi all, I get an error which I have enclosed when I try setting up nodes in wireless scenarios. I have tried a lot of different things as suggested by other tutorials but get the same error everytime. When I delete the lines defining the nodes from the code, there are no error messages. Code that I am using is also enclosed. Please help me out at this, I really need help quickly. Faraz From Faraz_Hasan-S at email.ulster.ac.uk Thu Jan 8 03:11:07 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Thu, 8 Jan 2009 11:11:07 +0000 Subject: [ns] How to set up mobile nodes? In-Reply-To: References: , Message-ID: Thanks a lot Mubashir, heres the code set val(chan) Channel/WirelessChannel ;#Channel Type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 20 ;# number of mobilenodes set val(rp) DumbAgent ;# routing protocol set val(x) 50 set val(y) 50 Mac/802_11 set dataRate_ 11Mb #Create a simulator object set ns_ [new Simulator] #Open the NAM trace file set nf [open out.nam w] $ns_ namtrace-all $nf #Define a 'finish' procedure proc finish {} { global ns_ nf $ns_ flush-trace #Close the NAM trace file close $nf #Execute NAM on the trace file exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam out.nam exit 0 } # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God create-god $val(nn) # Create channel set chan_1_ [new $val(chan)] $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF \ -channel $chan_1_ for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } $ns_ at 0.1 "finish" puts "Starting..." $ns_ run Regards, Faraz ________________________________________ From: Mubashir Rehmani [mshrehmani at gmail.com] Sent: Thursday, January 08, 2009 2:49 AM To: Syed Faraz Hasan Subject: Re: [ns] How to set up mobile nodes? Hi Faraz Can you please write the code in your email, because ns user mailing list drops all the attachments. Regards 2009/1/8 Syed Faraz Hasan > Hi all, I get an error which I have enclosed when I try setting up nodes in wireless scenarios. I have tried a lot of different things as suggested by other tutorials but get the same error everytime. When I delete the lines defining the nodes from the code, there are no error messages. Code that I am using is also enclosed. Please help me out at this, I really need help quickly. Faraz -- Mubashir Husain Rehmani From Faraz_Hasan-S at email.ulster.ac.uk Thu Jan 8 06:31:32 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Thu, 8 Jan 2009 14:31:32 +0000 Subject: [ns] NAM does not run wireless simulation over ns 2 Message-ID: Hello ALL, I am trying to visualize the entire simulation using NAM. I open the .nam file in the finish procedure. I have associated CBR source with one of the nodes to make it send packets to another node. NAM executes properly at the beginning (but does not show nodes at all), as soon as the scheduled time of sending packets arrive NAM exits. Although it generates the trace file. Please write back soon Heres the code... # ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 880 ;# x-axis of grid set val(y) 880 ;# y-axis of grid set opt(energymodel) EnergyModel ; set opt(radiomodel) RadioModel ; set opt(initialenergy) 1000 ;# Initial energy in Joules set num_ms_nodes 10; set opt(nn) 2; # ====================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # #start the simulator set ns [new Simulator] #open the trace file set tracefile1 [open a.tr w] $ns trace-all $tracefile1 #Open NAM file set nf [open attachment.nam w] $ns namtrace-all $nf #define the procedure finish #proc finish {} { #global ns tracefile1 #$ns flush-trace #close $tracefile1 #exit 0 #} proc finish {} { global ns nf $ns flush-trace close $nf exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam attachment.nam & exit 0 } # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God General Operations Director create-god [expr $opt(nn) + $num_ms_nodes] # Create channel #1 and #2 set chan_1_ [new $val(chan)] # # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # Here two nodes are created : node(0) and node(1) # configure node $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF\ -channel $chan_1_ #-energyModel $opt(energymodel) \ -idlePower 1.0 \ -rxPower 1.0 \ -txPower 1.0 \ -sleepPower 0.001 \ -transitionPower 0.2 \ -transitionTime 0.005 \ -initialEnergy $opt(initialenergy) for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns node] $node_($i) random-motion 0 ;# disable random motion } set udp0 [new Agent/UDP] $ns attach-agent $node_(0) $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 1000 $cbr0 set interval_ 0.005 $cbr0 attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $node_(1) $null0 $ns connect $udp0 $null0 $ns at 1 "$cbr0 start" $ns at 4 "$cbr0 stop" $ns at 4.1 "finish" puts "Starting Simulation..." $ns run From dnmrao at yahoo.com Thu Jan 8 07:07:08 2009 From: dnmrao at yahoo.com (dasari mallikarjuna) Date: Thu, 8 Jan 2009 07:07:08 -0800 (PST) Subject: [ns] segmentation fault Message-ID: <385032.99684.qm@web35605.mail.mud.yahoo.com> I am using programs written by Lavina Jain et al (in ns-2). I have made some changes to the program and tried to run it.It is giving Segmentation fault. I removed the changes and again used make, still the problem is persisting. I had to re-install theoperating system (fedora linux) to remove the erro. What could be the problem? From mshrehmani at gmail.com Thu Jan 8 07:25:42 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Thu, 8 Jan 2009 16:25:42 +0100 Subject: [ns] segmentation fault In-Reply-To: <385032.99684.qm@web35605.mail.mud.yahoo.com> References: <385032.99684.qm@web35605.mail.mud.yahoo.com> Message-ID: Hi Dasari Mallikarjuna Look at this link to resolve the problem of segmentation fault. http://article.gmane.org/gmane.network.simulator.isi/2766/match=segmentation+fault Besides this, after making any changes in c++ code of ns2, do this: make clean make sudo make install Regards Mubashir Lip6, UPMC, Paris, France. 2009/1/8 dasari mallikarjuna > > I am using programs written by Lavina Jain et al (in ns-2). I have made > some changes to the program and tried to run it.It is giving Segmentation > fault. I removed the changes and again used make, still the problem is > persisting. I had to re-install theoperating system (fedora linux) to > remove the erro. What could be the problem? > > > > -- Mubashir Husain Rehmani From lmcbarreto at gmail.com Thu Jan 8 10:01:34 2009 From: lmcbarreto at gmail.com (=?UTF-8?Q?Lu=C3=ADs_Barreto?=) Date: Thu, 8 Jan 2009 18:01:34 +0000 Subject: [ns] NAM does not run wireless simulation over ns 2 In-Reply-To: References: Message-ID: <1e9258700901081001w2e340bacqabf3f130449bf2b5@mail.gmail.com> Hi there, In a wireless simulation for nam trace you have to use $ns namtrace-all-wireless $nf $val(x) $val(y) Hope it works, Luis On Thu, Jan 8, 2009 at 2:31 PM, Syed Faraz Hasan < Faraz_Hasan-S at email.ulster.ac.uk> wrote: > > Hello ALL, > > I am trying to visualize the entire simulation using NAM. I open the .nam > file in the finish procedure. I have associated CBR source with one of the > nodes to make it send packets to another node. NAM executes properly at the > beginning (but does not show nodes at all), as soon as the scheduled time of > sending packets arrive NAM exits. Although it generates the trace file. > > Please write back soon > > Heres the code... > > # ====================================================================== > > # Define options > > # ====================================================================== > > set val(chan) Channel/WirelessChannel ;# channel type > > set val(prop) Propagation/TwoRayGround ;# radio-propagation > model > > set val(netif) Phy/WirelessPhy ;# network interface > type > > set val(mac) Mac/802_11 ;# MAC type > > set val(ifq) Queue/DropTail/PriQueue ;# interface queue type > > set val(ll) LL ;# link layer type > > set val(ant) Antenna/OmniAntenna ;# antenna model > > set val(ifqlen) 50 ;# max packet in ifq > > set val(nn) 3 ;# number of mobilenodes > > set val(rp) AODV ;# routing protocol > > set val(x) 880 ;# x-axis of grid > set val(y) 880 ;# y-axis of grid > set opt(energymodel) EnergyModel ; > set opt(radiomodel) RadioModel ; > set opt(initialenergy) 1000 ;# Initial energy in Joules > set num_ms_nodes 10; > set opt(nn) 2; > > # ====================================================================== > > # Main Program > > # ====================================================================== > > > > > > # > > # Initialize Global Variables > > # > > > > #start the simulator > set ns [new Simulator] > > #open the trace file > set tracefile1 [open a.tr w] > $ns trace-all $tracefile1 > > #Open NAM file > set nf [open attachment.nam w] > $ns namtrace-all $nf > > > #define the procedure finish > #proc finish {} { > #global ns tracefile1 > #$ns flush-trace > #close $tracefile1 > #exit 0 > #} > > proc finish {} { > global ns nf > $ns flush-trace > close $nf > exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam > attachment.nam & > exit 0 > } > > > # set up topography object > > set topo [new Topography] > > > $topo load_flatgrid $val(x) $val(y) > > > > # Create God General Operations Director > > > > create-god [expr $opt(nn) + $num_ms_nodes] > > # Create channel #1 and #2 > set chan_1_ [new $val(chan)] > > > > # > > # Create the specified number of mobilenodes [$val(nn)] and "attach" them > > # to the channel. > > # Here two nodes are created : node(0) and node(1) > > > > # configure node > > > > $ns node-config -adhocRouting $val(rp) \ > > -llType $val(ll) \ > > -macType $val(mac) \ > > -ifqType $val(ifq) \ > > -ifqLen $val(ifqlen) \ > > -antType $val(ant) \ > > -propType $val(prop) \ > > -phyType $val(netif) \ > > -topoInstance $topo \ > > -agentTrace OFF \ > > -routerTrace ON \ > > -macTrace OFF \ > > -movementTrace OFF\ > -channel $chan_1_ > > > #-energyModel $opt(energymodel) \ > -idlePower 1.0 \ > -rxPower 1.0 \ > -txPower 1.0 \ > -sleepPower 0.001 \ > -transitionPower 0.2 \ > -transitionTime 0.005 \ > -initialEnergy $opt(initialenergy) > > > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns node] > $node_($i) random-motion 0 ;# disable random motion > } > > > set udp0 [new Agent/UDP] > $ns attach-agent $node_(0) $udp0 > > set cbr0 [new Application/Traffic/CBR] > $cbr0 set packetSize_ 1000 > $cbr0 set interval_ 0.005 > $cbr0 attach-agent $udp0 > > set null0 [new Agent/Null] > $ns attach-agent $node_(1) $null0 > > $ns connect $udp0 $null0 > > $ns at 1 "$cbr0 start" > $ns at 4 "$cbr0 stop" > $ns at 4.1 "finish" > > puts "Starting Simulation..." > $ns run > > From navid.gsaidi at gmail.com Thu Jan 8 12:31:19 2009 From: navid.gsaidi at gmail.com (N. GS) Date: Thu, 8 Jan 2009 15:31:19 -0500 Subject: [ns] IEEE 802.11n simulation model for ns2. Click to flag this post Message-ID: <4ed8feba0901081231g45bebd74icc4599742e9f1162@mail.gmail.com> Hi everybody, I am interested in working on IEEE 802.11n. But I could NOT find any simulation model or package of IEEE 802.11n for ns2. It would be grateful if you could send me the IEEE 802.11n simulation model for ns2 or its URL link that I could download it. Thanks, Navid ** From navid.gsaidi at gmail.com Thu Jan 8 13:41:55 2009 From: navid.gsaidi at gmail.com (Navidgs) Date: Thu, 8 Jan 2009 13:41:55 -0800 (PST) Subject: [ns] IEEE 802.11n simulation model for ns2. Message-ID: <21360180.post@talk.nabble.com> Hi everybody, I am interested in working on IEEE 802.11n. But I could NOT find any simulation model or package of IEEE 802.11n for ns2. It would be grateful if you could send me the IEEE 802.11n simulation model for ns2 or its URL link that I could download it. Thanks, Navid -- View this message in context: http://www.nabble.com/IEEE-802.11n-simulation-model-for-ns2.-tp21360180p21360180.html Sent from the ns-users mailing list archive at Nabble.com. From hajsou at gmail.com Fri Jan 9 00:18:46 2009 From: hajsou at gmail.com (souhaj) Date: Fri, 9 Jan 2009 00:18:46 -0800 (PST) Subject: [ns] e2e delay Message-ID: <21367971.post@talk.nabble.com> hello i am workin with ns...and i am tring to analyse the trace file.. i have found an awk programm that calculate the end to end delay... http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html however i didn't understand, this part of the program (i know that is calculating the end to end delay : but how this is done) : # CALCULATE DELAY if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } .............................. .................................... ................... for ( i in end_time ) { start = start_time[i]; end = end_time[i]; packet_duration = end - start; if ( packet_duration > 0 ) { sum += packet_duration; recvnum++; } } can you help me.. thanks in advance -- View this message in context: http://www.nabble.com/e2e-delay-tp21367971p21367971.html Sent from the ns-users mailing list archive at Nabble.com. From hajsou at gmail.com Fri Jan 9 01:48:16 2009 From: hajsou at gmail.com (souhaj) Date: Fri, 9 Jan 2009 01:48:16 -0800 (PST) Subject: [ns] NAM does not run wireless simulation over ns 2 In-Reply-To: References: Message-ID: <21369180.post@talk.nabble.com> try this command... first as first remark its preferable to work under this directory : /ns-allinone-2.33/bin and put in it the trace file , the nam file and obviously the Tcl file..ok second i will suppose that you have done this.so to run the nam file : exec ./nam /home/faraz/Desktop/ns-allinone-2.33/bin/attachment & i hope that it will work Syed Faraz Hasan wrote: > > > Hello ALL, > > I am trying to visualize the entire simulation using NAM. I open the .nam > file in the finish procedure. I have associated CBR source with one of the > nodes to make it send packets to another node. NAM executes properly at > the beginning (but does not show nodes at all), as soon as the scheduled > time of sending packets arrive NAM exits. Although it generates the trace > file. > > Please write back soon > > Heres the code... > > # ====================================================================== > > # Define options > > # ====================================================================== > > set val(chan) Channel/WirelessChannel ;# channel type > > set val(prop) Propagation/TwoRayGround ;# radio-propagation > model > > set val(netif) Phy/WirelessPhy ;# network interface > type > > set val(mac) Mac/802_11 ;# MAC type > > set val(ifq) Queue/DropTail/PriQueue ;# interface queue type > > set val(ll) LL ;# link layer type > > set val(ant) Antenna/OmniAntenna ;# antenna model > > set val(ifqlen) 50 ;# max packet in ifq > > set val(nn) 3 ;# number of > mobilenodes > > set val(rp) AODV ;# routing protocol > > set val(x) 880 ;# x-axis of grid > set val(y) 880 ;# y-axis of grid > set opt(energymodel) EnergyModel ; > set opt(radiomodel) RadioModel ; > set opt(initialenergy) 1000 ;# Initial energy in Joules > set num_ms_nodes 10; > set opt(nn) 2; > > # ====================================================================== > > # Main Program > > # ====================================================================== > > > > > > # > > # Initialize Global Variables > > # > > > > #start the simulator > set ns [new Simulator] > > #open the trace file > set tracefile1 [open a.tr w] > $ns trace-all $tracefile1 > > #Open NAM file > set nf [open attachment.nam w] > $ns namtrace-all $nf > > > #define the procedure finish > #proc finish {} { > #global ns tracefile1 > #$ns flush-trace > #close $tracefile1 > #exit 0 > #} > > proc finish {} { > global ns nf > $ns flush-trace > close $nf > exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam > attachment.nam & > exit 0 > } > > > # set up topography object > > set topo [new Topography] > > > $topo load_flatgrid $val(x) $val(y) > > > > # Create God General Operations Director > > > > create-god [expr $opt(nn) + $num_ms_nodes] > > # Create channel #1 and #2 > set chan_1_ [new $val(chan)] > > > > # > > # Create the specified number of mobilenodes [$val(nn)] and "attach" them > > # to the channel. > > # Here two nodes are created : node(0) and node(1) > > > > # configure node > > > > $ns node-config -adhocRouting $val(rp) \ > > -llType $val(ll) \ > > -macType $val(mac) \ > > -ifqType $val(ifq) \ > > -ifqLen $val(ifqlen) \ > > -antType $val(ant) \ > > -propType $val(prop) \ > > -phyType $val(netif) \ > > -topoInstance $topo \ > > -agentTrace OFF \ > > -routerTrace ON \ > > -macTrace OFF \ > > -movementTrace OFF\ > -channel $chan_1_ > > > #-energyModel $opt(energymodel) \ > -idlePower 1.0 \ > -rxPower 1.0 \ > -txPower 1.0 \ > -sleepPower 0.001 \ > -transitionPower 0.2 \ > -transitionTime 0.005 \ > -initialEnergy $opt(initialenergy) > > > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns node] > $node_($i) random-motion 0 ;# disable random motion > } > > > set udp0 [new Agent/UDP] > $ns attach-agent $node_(0) $udp0 > > set cbr0 [new Application/Traffic/CBR] > $cbr0 set packetSize_ 1000 > $cbr0 set interval_ 0.005 > $cbr0 attach-agent $udp0 > > set null0 [new Agent/Null] > $ns attach-agent $node_(1) $null0 > > $ns connect $udp0 $null0 > > $ns at 1 "$cbr0 start" > $ns at 4 "$cbr0 stop" > $ns at 4.1 "finish" > > puts "Starting Simulation..." > $ns run > > > -- View this message in context: http://www.nabble.com/NAM-does-not-run-wireless-simulation-over-ns-2-tp21352896p21369180.html Sent from the ns-users mailing list archive at Nabble.com. From tansurfing at gmail.com Fri Jan 9 04:52:45 2009 From: tansurfing at gmail.com (tanixmukherzee) Date: Fri, 9 Jan 2009 04:52:45 -0800 (PST) Subject: [ns] otcl tutorial needed Message-ID: <21371733.post@talk.nabble.com> can ne1 suggest a gud otcl tutorial.i found one.but that seems not enuf...plz do provide useful links -- View this message in context: http://www.nabble.com/otcl-tutorial-needed-tp21371733p21371733.html Sent from the ns-users mailing list archive at Nabble.com. From nadine341 at yahoo.fr Fri Jan 9 12:16:01 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Fri, 9 Jan 2009 20:16:01 +0000 (GMT) Subject: [ns] passing parmeters from .tcl files to .cc Message-ID: <375150.54673.qm@web28306.mail.ukl.yahoo.com> Hi all As you know, in the implementation of routing protocols, for example in aodv we have "AODV::AODV(nsaddr_t id) "; so I want to create a .tcl file in which I have nodes , and each node has an identifier that will be passed as the nsaddr_t id (the argument of AODV) how can I do this please? thank you for your help. From pfe09 at yahoo.de Fri Jan 9 18:15:24 2009 From: pfe09 at yahoo.de (Daniel A) Date: Fri, 9 Jan 2009 21:15:24 -0500 Subject: [ns] Segmentation fault when compiling Message-ID: Hi everybody, I am working on ns2.33 using cygwin. When compiling the attached code, I get the following message: $ ./ns Evaltran.tcl num_nodes is set 1 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Base station is created! wireles node is created! 39.312258 Simulation starts!! Segmentation fault (core dumped) An ns.exe text file appears in my compiling folder with the following content Exception: STATUS_ACCESS_VIOLATION at eip=18F71E50 eax=00000000 ebx=011F762C ecx=011EBDE4 edx=011F6808 esi=00229B00 edi=00229B50 ebp=002294B8 esp=002293E0 program=C:\cygwin\home\KiKoLoCo\ns-allinone-2.33\ns-2.33\ns.exe, pid 8112, thread main cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 002294B8 18F71E50 (011E0998, 00000602, 00000000, 00000000) 002294D8 19226F3E (011E0998, 00000602, 00000000, 1913AFAB) 002294F8 18F8685D (011E1E08, 00000602, 00229518, 18F88603) 00229518 18F86ED0 (011E1E08, 011E1E08, 00229968, 18F86668) 00229528 18F8863A (011E1E08, 19338CEB, 00F72488, FFFFFFFF) 00229968 18F86668 (011E1E08, 00000002, 00229B0C, 00000003) 00229988 1913B9C6 (011E1E08, 00F72370, 00000005, 00229B00) 00229B38 1913F0F2 (011EB1D0, 00F72370, 00000003, 00229B50) 00229BB8 19143F88 (011EB2F0, 00F72370, 00000003, 00F74690) 00229C48 19145650 (00F72370, 00000003, 00F74690, 00000000) 00229EF8 191671D3 (00F72370, 011F29A8, 00000010, 1915C357) 00229F28 1916AC4C (00F72370, 011F29A8, 00000005, 00000000) 0022A1D8 19167463 (00F72370, 0116D2A0, 0022A208, 1916B2FC) 0022A208 1916AC4C (00F72370, 00F7B320, 00F7CF40, 00000001) 0022A5D8 19160E78 (00F861F8, 00F72370, 00000005, 0022A600) 0022A668 191610F5 (00F861F8, 00F72370, 00000005, 0022A720) End of stack trace (more stack frames may be present) I tried to solve this problem by following the instructions in the link listed below and provided by Mr Rehmani. http://article.gmane.org/gmane.network.simulator.isi/2766/match=segmentation +fault but I got the following lines $ gdb -c core GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later References: Message-ID: Dear all, I have installed the ns-allinone-2.33 and patched it with the 80211Ext (updated October 21st, 2008) following the instruction from http://dsn.tm.uni-karlsruhe.de/english/Overhaul_NS-2.php. But when validating, the program reports as following: ------------------------------------------------------------------------------------------- validata overall report: some portable tests failed: ./test-all-wireless-lan-newnode-80211Ext some non-portable tests also failed: ./test-all-smac-multihop ./test-all-simulataneous ./test-all-wireless-tdma to return a specific test, cd tcl/test; ./test-all-TEST-NAME -------------------------------------------------------------------------------------------- when I run a .tcl scripts using the 80211Ext MAC and PHY, such as, set val(netif) Phy/WirelessPhyExt set val(mac) Mac/802_11Ext it reports: ------------------------------------------------------------------------- Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 18883.9 SORTING LISTS ...DONE! L 0.00243737 0 MAC PHYBusyInd L 0.00243757 0 MAC PHYBusyInd L 0.00243761 0 MAC PHYBusyInd L 0.00243858 0 MAC PHYBusyInd L 0.00243943 0 MAC PHYBusyInd L 0.00243944 0 MAC PHYBusyInd L 0.00243989 0 MAC PHYBusyInd L 0.00247737 0 MAC RxStartInd L 0.00247757 0 MAC RxStartInd L 0.00247761 0 MAC RxStartInd L 0.00247858 0 MAC RxStartInd L 0.00247943 0 MAC RxStartInd L 0.00247944 0 MAC RxStartInd L 0.00247989 0 MAC RxStartInd logic error at handleTXTimer L 0.00264537 0 MAC PHYIdleInd L 0.00264537 0 MAC RxEndInd SUCC Segmentation fault (core dumped) -------------------------------------------------------------------------------------- who can help me how to tackle this problem? I am very grateful with tears. CharlieZhang From pankajthepiper at hotmail.com Fri Jan 9 22:44:26 2009 From: pankajthepiper at hotmail.com (pankaj chand) Date: Sat, 10 Jan 2009 12:14:26 +0530 Subject: [ns] Passing arguments when creating a TCPAgent in .tcl file Message-ID: There is an instproc init {} procedure each for Agent and for Agent/TCPAgent. I could not find the instproc init {} procedure of Agent/TCP/Reno or any of the other TCP Agents. Why? Is it because they inherit in a virtual way from class TCPAgent?, and so the instproc init {} procedure of the class TCPAgent is called only once for each of them. Then how do we differentiate between the creation of the different TCPAgents from only one instproc init {} procedure of class TCPAgent. My main objective is to pass arguments to the new Agent/TCP/Reno command which will pass the arguments to its respective init procedure (which I cannot find) and then the arguments will be passed to its static class constructor in the tcp-reno.cc file so i can choose whether or not to pass an argument to the constructor of the actual class RenoTcpAgent. The main idea is to add one more constructor to class RenoTcpAgent and then to be able to choose which constructor to call when creating the object from the tcl script like set tcpreno [new Agent/TCP/Reno]. So i thought i would do it by passing an argument like set tcpreno [new Agent/TCP/Reno arg1]. Any help, advice or suggestions for the above problem, or achieving a solution of some kind will be appreciated. Many thanks in advance. Pankaj _________________________________________________________________ See all the ways you can stay connected to friends and family http://www.microsoft.com/windows/windowslive/default.aspx From PixStaMP at gmx.net Sat Jan 10 00:48:20 2009 From: PixStaMP at gmx.net (Peter Staab) Date: Sat, 10 Jan 2009 09:48:20 +0100 Subject: [ns] File transfer protocol for 802.11 Message-ID: <20090110084820.135470@gmx.net> Hello, This is not a ns-2 specific question but it relates to my work with ns-2: which protocol is best for transfering files in wireless 802.11 networks (in ad-hoc mode)? I already considered pure FTP or UFTP (UDP FTP). Are there alternative protocols out there? Sincerely, Peter -- Sensationsangebot verl?ngert: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a From hajsou at gmail.com Sat Jan 10 04:06:19 2009 From: hajsou at gmail.com (souhaj) Date: Sat, 10 Jan 2009 04:06:19 -0800 (PST) Subject: [ns] otcl tutorial needed In-Reply-To: <21371733.post@talk.nabble.com> References: <21371733.post@talk.nabble.com> Message-ID: <21387410.post@talk.nabble.com> http://www.openmash.org/developers/docs/otcl-doc/ tanixmukherzee wrote: > > can ne1 suggest a gud otcl tutorial.i found one.but that seems not > enuf...plz do provide useful links > -- View this message in context: http://www.nabble.com/otcl-tutorial-needed-tp21371733p21387410.html Sent from the ns-users mailing list archive at Nabble.com. From ssdoria at gmail.com Sat Jan 10 06:52:34 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Sat, 10 Jan 2009 11:52:34 -0300 Subject: [ns] File transfer protocol for 802.11 In-Reply-To: <20090110084820.135470@gmx.net> References: <20090110084820.135470@gmx.net> Message-ID: <1bc975700901100652j113c16e0j8c58e782c6da4fb2@mail.gmail.com> Peter, a lot! Event bittorrent is already an alternative to content distribution in MANETs. In a general way, TCP isn't so good to MANETs because the overhead in handshakes and the well-known problem of delays and packet loss be interpreted by TCP as congestion. So, TCP will reduce the next window to avoid the supposed "congestion". Recently, my work was develop a multicast content distribution protocol to MANETs. I used UDP and the results were good. It'll apear in IEEE WCNC (in April). I'll add It to the contribution section of NS-2 Wiki. Take a look in there to see what is already avaiable. Sidney Doria UFCG / BRAZIL 2009/1/10 Peter Staab : > > Hello, > > This is not a ns-2 specific question but it relates to my work with ns-2: which protocol is best for transfering files in wireless 802.11 networks (in ad-hoc mode)? > I already considered pure FTP or UFTP (UDP FTP). Are there alternative protocols out there? > > Sincerely, > Peter > -- > Sensationsangebot verl?ngert: GMX FreeDSL - Telefonanschluss + DSL > f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a > > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From mohammed2742007 at yahoo.com Sat Jan 10 11:20:22 2009 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Sat, 10 Jan 2009 11:20:22 -0800 (PST) Subject: [ns] Fw: help required urgently please please please Message-ID: <75690.42419.qm@web45413.mail.sp1.yahoo.com> --- On Sat, 12/13/08, mohamed saad wrote: From: mohamed saad Subject: help required urgently To: "nsusers" Date: Saturday, December 13, 2008, 2:07 PM dear friends, ???????? i have problem when i research the source code for SPAAR(secure position aided ad hoc routing) protocol ,ARAN,,ARIADINE AND DCMD protocol i didn't find it in my search ? kindly, send this code to me or any code related to the secure routing protocols for ad hoc network. ?gazak allah khairn ????????????????????????????????????????????????????????????????????????????????????? thanks ????????????????????????????????????????????????????????????????????????????????????? From mohammed2742007 at yahoo.com Sat Jan 10 12:00:03 2009 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Sat, 10 Jan 2009 12:00:03 -0800 (PST) Subject: [ns] Fw: help required urgently please please please help me Message-ID: <467261.7218.qm@web45402.mail.sp1.yahoo.com> --- On Sat, 1/10/09, mohamed saad wrote: From: mohamed saad Subject: Fw: help required urgently please please please To: "nsusers" Date: Saturday, January 10, 2009, 9:20 PM --- On Sat, 12/13/08, mohamed saad wrote: From: mohamed saad Subject: help required urgently To: "nsusers" Date: Saturday, December 13, 2008, 2:07 PM dear friends, ???????? i have problem when i research the source code for SPAAR(secure position aided ad hoc routing) protocol ,ARAN,,ARIADINE AND DCMD protocol i didn't find it in my search ? kindly, send this code to me or any code related to the secure routing protocols for ad hoc network. please help me i,m very need your help ?gazak allah khairn ????????????????????????????????????????????????????????????????????????????????????? thanks ????????????????????????????????????????????????????????????????????????????????????? From mohammed2742007 at yahoo.com Sat Jan 10 12:00:33 2009 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Sat, 10 Jan 2009 12:00:33 -0800 (PST) Subject: [ns] Fw: help required urgently please please please help me Message-ID: <180764.6435.qm@web45414.mail.sp1.yahoo.com> --- On Sat, 1/10/09, mohamed saad wrote: From: mohamed saad Subject: Fw: help required urgently please please please To: "nsusers" Date: Saturday, January 10, 2009, 9:20 PM --- On Sat, 12/13/08, mohamed saad wrote: From: mohamed saad Subject: help required urgently To: "nsusers" Date: Saturday, December 13, 2008, 2:07 PM dear friends, ???????? i have problem when i research the source code for SPAAR(secure position aided ad hoc routing) protocol ,ARAN,,ARIADINE AND DCMD protocol i didn't find it in my search ? kindly, send this code to me or any code related to the secure routing protocols for ad hoc network. please help me i,m very need your help ?gazak allah khairn ????????????????????????????????????????????????????????????????????????????????????? thanks ????????????????????????????????????????????????????????????????????????????????????? From mohammed2742007 at yahoo.com Sat Jan 10 12:04:19 2009 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Sat, 10 Jan 2009 12:04:19 -0800 (PST) Subject: [ns] Fw: help required urgently please please please help me Message-ID: <394332.69736.qm@web45415.mail.sp1.yahoo.com> --- On Sat, 1/10/09, mohamed saad wrote: From: mohamed saad Subject: Fw: help required urgently please please please help me To: "nsusers" Date: Saturday, January 10, 2009, 10:00 PM --- On Sat, 1/10/09, mohamed saad wrote: From: mohamed saad Subject: Fw: help required urgently please please please To: "nsusers" Date: Saturday, January 10, 2009, 9:20 PM --- On Sat, 12/13/08, mohamed saad wrote: From: mohamed saad Subject: help required urgently To: "nsusers" Date: Saturday, December 13, 2008, 2:07 PM dear friends, ???????? i have problem when i research the source code for SPAAR(secure position aided ad hoc routing) protocol ,ARAN,,ARIADINE AND DCMD protocol i didn't find it in my search ? kindly, send this code to me or any code related to the secure routing protocols for ad hoc network. please help me i,m very need your help ?gazak allah khairn ????????????????????????????????????????????????????????????????????????????????????? thanks ????????????????????????????????????????????????????????????????????????????????????? From ikomnios at ee.duth.gr Sat Jan 10 15:21:46 2009 From: ikomnios at ee.duth.gr (Ioannis Komnios) Date: Sun, 11 Jan 2009 01:21:46 +0200 Subject: [ns] ARQ implementation for terrestrial links Message-ID: <20090111012146.49652y8tbo874ryi@webmail.duth.gr> Dear ns-users, I am trying to conduct some experiments using TCP on transport layer and, at the same time, some reliable link layer protocol, like ARQ. I've been trying for days to find an ARQ implementation in ns and I have only found HDLC implementation for satellite links. Is there any ARQ implementation available for terrestrial links? Or any other reliable link layer protocol already implemented in ns2? I would be grateful if you could help me... Thank you in advance, Ioannis Komnios From phenix_yw at hhu.edu.cn Sat Jan 10 21:29:07 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Sun, 11 Jan 2009 13:29:07 +0800 Subject: [ns] otcl script for broadcast Message-ID: <431649540.05542@eyou.net> Hi guys, Can you tell how to write tcl script for broadcast? In unicasti, we can generally do as follows: set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) $ns_ connect $udp_(0) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) attach-agent $udp_(0) However, it's only a point-to-point way. How should I deal with broadcast in which scenario only one node send packets and all of the others receive. Waiting for your help. Thanks ! Regards, Phenix From nadine341 at yahoo.fr Sun Jan 11 01:44:57 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Sun, 11 Jan 2009 09:44:57 +0000 (GMT) Subject: [ns] problem in energy consumption model Message-ID: <633833.36711.qm@web28315.mail.ukl.yahoo.com> Hi I wanted to compare the energy consumption of different routing protocols , so I used this .tcl file and in each time I modify the name of the protocol, aodv, dsdv... But this? .tcl file? generates the same trace file independently of the routing protocol.can you tell me how can I correct this? help me please. ############################################### set opt(chan)??? ??? Channel/WirelessChannel set opt(prop)??? ??? Propagation/TwoRayGround set opt(netif)??? ??? Phy/WirelessPhy #set opt(mac)??????????? Mac/802_11?????????????????? ;# MAC type set opt(mac)??????????? Mac/802_11?????????????????? ;# MAC type set opt(ifq)??? ??? Queue/DropTail/PriQueue set opt(ll)??? ??? LL set opt(ant)??????????? Antenna/OmniAntenna set opt(x)??? ??? 800??? ;# X dimension of the topography set opt(y)??? ??? 800??? ??? ;# Y dimension of the topography set opt(cp)??? ??? "../mobility/scene/cbr-50-10-4-512" set opt(sc)??? ??? "../mobility/scene/scen-670x670-50-600-20-0" set opt(ifqlen)??? ??? 50??? ??? ;# max packet in ifq set opt(nn)??? ??? 50??? ??? ;# number of nodes set opt(seed)??? ??? 0.0 set opt(stop)??? ??? 700.0??? ??? ;# simulation time set opt(tr)??? ??? MyTest.tr??? ;# trace file set opt(nam)??? ??? MyTest.nam??? ;# animation file set opt(rp)???????????? DumbAgent?????? ;# routing protocol script set opt(lm)???????????? "off"?????????? ;# log movement set opt(agent)????????? Agent/DSDV set opt(energymodel)??? EnergyModel???? ; #set opt(energymodel)??? RadioModel???? ; set opt(radiomodel)??? ??? RadioModel???? ; set opt(initialenergy)? 1000??????????? ;# Initial energy in Joules #set opt(logenergy)????? "on"?????????? ;# log energy every 150 seconds Mac/SMAC set syncFlag_ 1 Mac/SMAC set dutyCycle_ 10 set ns_??? ??? [new Simulator] set topo??? [new Topography] set tracefd??? [open $opt(tr) w] set namtrace??? [open $opt(nam) w] set prop??? [new $opt(prop)] $topo load_flatgrid $opt(x) $opt(y) ns-random 1.0 $ns_ trace-all $tracefd #$ns_ namtrace-all-wireless $namtrace 500 500 # # Create god # create-god $opt(nn) #global node setting ??????? $ns_ node-config -adhocRouting DumbAgent \ ??? ??? ??? ?-llType $opt(ll) \ ??? ??? ??? ?-macType $opt(mac) \ ??? ??? ??? ?-ifqType $opt(ifq) \ ??? ??? ??? ?-ifqLen $opt(ifqlen) \ ??? ??? ??? ?-antType $opt(ant) \ ??? ??? ??? ?-propType $opt(prop) \ ??? ??? ??? ?-phyType $opt(netif) \ ??? ??? ??? ?-channelType $opt(chan) \ ??? ??? ??? ?-topoInstance $topo \ ??? ??? ??? ?-agentTrace ON \ ??? ??? ??? ?-routerTrace ON \ ??? ??? ??? ?-macTrace ON \ ??? ??? ??? ?-energyModel $opt(energymodel) \ ??? ??? ??? ?-idlePower 1..0 \ ??? ??? ??? ?-rxPower 1.0 \ ??? ??? ??? ?-txPower 1.0 \ ????????? ??? ??? ?-sleepPower 0.001 \ ????????? ??? ??? ?-transitionPower 0.2 \ ????????? ??? ??? ?-transitionTime 0.005 \ ??? ??? ??? ?-initialEnergy $opt(initialenergy) ??? ??? $ns_ set WirelessNewTrace_ ON #set AgentTrace??? ??? ??? ON #set RouterTrace??? ??? OFF #set MacTrace??? ??? ??? ON ??? for {set i 0} {$i < $opt(nn) } {incr i} { ??? ??? set node_($i) [$ns_ node]??? ??? ??? $node_($i) random-motion 0??? ??? ;# disable random motion ??? } ??? #??? $node_(1) set agentTrace ON??? ? #??? $node_(1) set macTrace ON #??? $node_(1) set routerTrace ON??? ??? ???? #??? $node_(0) set macTrace ON #??? $node_(0) set agentTrace ON??? ? #??? $node_(0) set routerTrace ON set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 10.0 $cbr_(0) set random_ 1 $cbr_(0) set maxpkts_ 50000 $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 1.00 "$cbr_(0) start" #$ns_ at 177.000??? ??? "$node_(0) set ifqLen" # # Tell all the nodes when the simulation ends # for {set i 0} {$i < $opt(nn) } {incr i} { ??? $ns_ at $opt(stop) "$node_($i) reset"; } $ns_ at $opt(stop) "puts \"NS EXITING...\" ; $ns_ halt" set b [$node_(0) set mac_(0)] #set c [$b set freq_] set d [Mac/SMAC set syncFlag_] #set e [$node_(0) set netif_(0)] ? #set c [$e set L_] set c [Mac/SMAC set dutyCycle_] #puts $tracefd "M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp $opt(rp)" #puts $tracefd "M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)" #puts $tracefd "M 0.0 prop $opt(prop) ant $opt(ant)" #puts $tracefd "V $b : $c : $d :" puts "Starting Simulation..." $ns_ run ##############################################? From teerawat at ece.ubc.ca Sun Jan 11 02:49:06 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Sun, 11 Jan 2009 10:49:06 +0000 Subject: [ns] ARQ implementation for terrestrial links In-Reply-To: <20090111012146.49652y8tbo874ryi@webmail.duth.gr> Message-ID: Dear Ioanis, There is an example implementation of ARQ in the following book from Springer useful. T. Issariyakul and E. Hossain , "Introduction to Network Simulator NS2," Springer, Oct. 2008, ISBN: 978-0-387-71759-3 http://www.springer.com/engineering/signals/book/978-0-387-71759-3?detailsPage=otherBooks&CIPageCounter=CI_MORE_BOOKS_BY_AUTHOR0 You may also find the following slides useful http://www.ece.ubc.ca/~teerawat/NS2.htm Best Regards, Teerawat On 1/10/2009, "Ioannis Komnios" wrote: > >Dear ns-users, > >I am trying to conduct some experiments using TCP on transport layer >and, at the same time, some reliable link layer protocol, like ARQ. >I've been trying for days to find an ARQ implementation in ns and I >have only found HDLC implementation for satellite links. Is there any >ARQ implementation available for terrestrial links? Or any other >reliable link layer protocol already implemented in ns2? > >I would be grateful if you could help me... > >Thank you in advance, > >Ioannis Komnios > From naveenprabu32 at gmail.com Sun Jan 11 03:45:31 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Sun, 11 Jan 2009 17:15:31 +0530 Subject: [ns] LEACH Algorithm explanation.... Message-ID: <3eb5e9570901110345o1ba80015sb93250a126563112@mail.gmail.com> hi .... i need LEACH algorithm explanation for implementing in ns2.29 ................... i also need code explanations for that........ please send me.... From nadine341 at yahoo.fr Sun Jan 11 06:18:50 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Sun, 11 Jan 2009 14:18:50 +0000 (GMT) Subject: [ns] how can I measure energy consumption:please help Message-ID: <709381.31180.qm@web28303.mail.ukl.yahoo.com> Hello Please tell me how can I measure the energy consumption? I downloaded tcl samples from the internet like the tcl file below but when? I change the name of routing protocol I have always the same trace file which means the same energy measurement for all the routing protocols which is illogical ! Please help me ,tell me why I have the same values ?or if you have a tcl file to measure energy , send it please to me. I'm waiting for replies. Thanks. ############################################### set opt(chan)??? ??? Channel/WirelessChannel set opt(prop)??? ??? Propagation/TwoRayGround set opt(netif)??? ??? Phy/WirelessPhy #set opt(mac)??????????? Mac/802_11?????????????????? ;# MAC type set opt(mac)??????????? Mac/802_11?????????????????? ;# MAC type set opt(ifq)??? ??? Queue/DropTail/PriQueue set opt(ll)??? ??? LL set opt(ant)??????????? Antenna/OmniAntenna set opt(x)??? ??? 800??? ;# X dimension of the topography set opt(y)??? ??? 800??? ??? ;# Y dimension of the topography set opt(cp)??? ??? "../mobility/scene/cbr-50-10-4-512" set opt(sc)??? ??? "../mobility/scene/scen-670x670-50-600-20-0" set opt(ifqlen)??? ??? 50??? ??? ;# max packet in ifq set opt(nn)??? ??? 50??? ??? ;# number of nodes set opt(seed)??? ??? 0.0 set opt(stop)??? ??? 700.0??? ??? ;# simulation time set opt(tr)??? ??? MyTest.tr??? ;# trace file set opt(nam)??? ??? MyTest.nam??? ;# animation file set opt(rp)???????????? DumbAgent?????? ;# routing protocol script set opt(lm)???????????? "off"?????????? ;# log movement set opt(agent)????????? Agent/DSDV set opt(energymodel)??? EnergyModel???? ; #set opt(energymodel)??? RadioModel???? ; set opt(radiomodel)??? ??? RadioModel???? ; set opt(initialenergy)? 1000??????????? ;# Initial energy in Joules #set opt(logenergy)????? "on"?????????? ;# log energy every 150 seconds Mac/SMAC set syncFlag_ 1 Mac/SMAC set dutyCycle_ 10 set ns_??? ??? [new Simulator] set topo??? [new Topography] set tracefd??? [open $opt(tr) w] set namtrace??? [open $opt(nam) w] set prop??? [new $opt(prop)] $topo load_flatgrid $opt(x) $opt(y) ns-random 1.0 $ns_ trace-all $tracefd #$ns_ namtrace-all-wireless $namtrace 500 500 # # Create god # create-god $opt(nn) #global node setting ??????? $ns_ node-config -adhocRouting DumbAgent \ ??? ??? ??? ?-llType $opt(ll) \ ??? ??? ??? ?-macType $opt(mac) \ ??? ??? ??? ?-ifqType $opt(ifq) \ ??? ??? ??? ?-ifqLen $opt(ifqlen) \ ??? ??? ??? ?-antType $opt(ant) \ ??? ??? ??? ?-propType $opt(prop) \ ??? ??? ??? ?-phyType $opt(netif) \ ??? ??? ??? ?-channelType $opt(chan) \ ??? ??? ??? ?-topoInstance $topo \ ??? ??? ??? ?-agentTrace ON \ ??? ??? ??? ?-routerTrace ON \ ??? ??? ??? ?-macTrace ON \ ??? ??? ??? ?-energyModel $opt(energymodel) \ ??? ??? ??? ?-idlePower 1...0 \ ??? ??? ??? ?-rxPower 1.0 \ ??? ??? ??? ?-txPower 1.0 \ ????????? ??? ??? ?-sleepPower 0.001 \ ????????? ??? ??? ?-transitionPower 0.2 \ ????????? ??? ??? ?-transitionTime 0.005 \ ??? ??? ??? ?-initialEnergy $opt(initialenergy) ??? ??? $ns_ set WirelessNewTrace_ ON #set AgentTrace??? ??? ??? ON #set RouterTrace??? ??? OFF #set MacTrace??? ??? ??? ON ??? for {set i 0} {$i < $opt(nn) } {incr i} { ??? ??? set node_($i) [$ns_ node]??? ??? ??? $node_($i) random-motion 0??? ??? ;# disable random motion ??? } ??? #??? $node_(1) set agentTrace ON??? ? #??? $node_(1) set macTrace ON #??? $node_(1) set routerTrace ON??? ??? ???? #??? $node_(0) set macTrace ON #??? $node_(0) set agentTrace ON??? ? #??? $node_(0) set routerTrace ON set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 10.0 $cbr_(0) set random_ 1 $cbr_(0) set maxpkts_ 50000 $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 1.00 "$cbr_(0) start" #$ns_ at 177.000??? ??? "$node_(0) set ifqLen" # # Tell all the nodes when the simulation ends # for {set i 0} {$i < $opt(nn) } {incr i} { ??? $ns_ at $opt(stop) "$node_($i) reset"; } $ns_ at $opt(stop) "puts \"NS EXITING...\" ; $ns_ halt" set b [$node_(0) set mac_(0)] #set c [$b set freq_] set d [Mac/SMAC set syncFlag_] #set e [$node_(0) set netif_(0)] ? #set c [$e set L_] set c [Mac/SMAC set dutyCycle_] #puts $tracefd "M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp $opt(rp)" #puts $tracefd "M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)" #puts $tracefd "M 0.0 prop $opt(prop) ant $opt(ant)" #puts $tracefd "V $b : $c : $d :" puts "Starting Simulation..." $ns_ run ##############################################? From jermaintz at gmail.com Sun Jan 11 18:56:34 2009 From: jermaintz at gmail.com (Jermain Montella) Date: Sun, 11 Jan 2009 21:56:34 -0500 Subject: [ns] ns-2.26 [tclsh] Error 1 tcl8.3.2 make failed! In-Reply-To: <3f591c70901111852x23c0f6cagd14fb47fd66d9db6@mail.gmail.com> References: <3f591c70901111852x23c0f6cagd14fb47fd66d9db6@mail.gmail.com> Message-ID: <3f591c70901111856w2e722aaft24f810f5f3a0dbc6@mail.gmail.com> Hello Dear Users, Please help me in this problem. I`m trying to install NS-2.26 over cygwin but I obtein the next error: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: au to-importing has been activated without --enable-auto-import specified on the co mmand line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.fu000001.o:(.idata$2+0xc): undefined reference to `_lib c_iname' Info: resolving __timezone by linking to __imp___timezone (auto-import) collect2: ld returned 1 exit status make: *** [tclsh] Error 1 tcl8.3.2 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com To solve this problem I?ve used the patchs that appear in www.isi.edu/nsnam/ns/ns-*cygwin*-old.html, also a patch named "ns-allinone-2.26-cygwin-binaries.zip" ( http://www.isi.edu/nsnam/dist/binary/) but the result is always this error. I haven?t worked with other version of NS because the module obs-0.9a is, according the web source, compatible only with NS-2.26. I hope you can help me.Thanks. From pankajavallipb at gmail.com Sun Jan 11 20:44:22 2009 From: pankajavallipb at gmail.com (Panks PB) Date: Mon, 12 Jan 2009 10:14:22 +0530 Subject: [ns] How to execute graph in wireless environment? Message-ID: <99f02ad70901112044xc452751we9c41754adc8ef2a@mail.gmail.com> hi, I'm working in NS2.33. I'm working in wireless scenario. I don't know how to execute the graph in wireless environment. I have worked in wired environment by using the statement exec xgraph in the finish procedure. Plz help with the statement to work in wireless environment. Thank u From Faraz_Hasan-S at email.ulster.ac.uk Mon Jan 12 03:54:02 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Mon, 12 Jan 2009 11:54:02 +0000 Subject: [ns] Hand over problems... Message-ID: Hello everybody, I am trying to simulate a hand over. Following script shows two nodes (acting as AP) and a node moving within their vicinity. After a certain amount of simulation time, node 0 gets out of range of node 1 (AP) and stops sending packets. This is the point it needs to get associated with node 2 (another AP). I dont know how to do that can some one help? In order to make it work, I have intentionally stopped the previous connection and started a new one (between node 0 and new AP). How can I make hand over take place on its own. Please write back soon, Faraz ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# Phy/WirelessPhy set freq_ 2.472e9 ;# network interface type Phy/WirelessPhy set CPThresh_ 10.0 ;# Collision Threshold Phy/WirelessPhy set CSThresh_ 5.011872e-12 ;# Carrier Sense Threshold Phy/WirelessPhy set RXThresh_ 5.82587e-09 ;# Receiver Threshold Phy/WirelessPhy set bandwidth_ 11Mb ;# BW set val(mac) Mac/802_11 ;# MAC type Mac/802_11 set dataRate_ 11Mb ;# Data Rate Mac/802_11 set basicRate_ 1Mb ;# Control Frame Rate set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 200 ;# x-axis of grid set val(y) 200 ;# y-asix of grid set opt(energymodel) EnergyModel ; set opt(radiomodel) RadioModel ; set opt(initialenergy) 1000 ;# Initial energy in Joules set num_ms_nodes 10; set opt(nn) 3; # ====================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # #start the simulator set ns [new Simulator] #open the trace file set tracefile1 [open a.tr w] $ns trace-all $tracefile1 #Open the NAM trace file set nf [open out.nam w] #$ns namtrace-all $nf $ns namtrace-all-wireless $nf $val(x) $val(y) #Define a 'finish' procedure proc finish {} { global ns nf $ns flush-trace #Close the NAM trace file close $nf #Execute NAM on the trace file exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam out.nam exit 0 } #define the procedure finish #proc finish {} { #global ns tracefile1 #$ns flush-trace #close $tracefile1 #exit 0 #} # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God General Operations Director create-god [expr $opt(nn) + $num_ms_nodes] # Create channel #1 and #2 set chan_1_ [new $val(chan)] # # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # Here two nodes are created : node(0) and node(1) # configure node $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF\ -channel $chan_1_ #-energyModel $opt(energymodel) \ -idlePower 1.0 \ -rxPower 1.0 \ -txPower 1.0 \ -sleepPower 0.001 \ -transitionPower 0.2 \ -transitionTime 0.005 \ -initialEnergy $opt(initialenergy) for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns node] $node_($i) random-motion 0 ;# disable random motion } $node_(0) set X_ 0.001 $node_(0) set Y_ 75.0 #$node_(0) set Z_ 0.0 $node_(1) set X_ 25.0 $node_(1) set Y_ 125.0 #$node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 125.0 #$node_(2) set Z_ 0.0 set udp0 [new Agent/UDP] $ns attach-agent $node_(0) $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 1000 $cbr0 set interval_ 0.05 $cbr0 attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $node_(1) $null0 $ns connect $udp0 $null0 set null1 [new Agent/Null] $ns attach-agent $node_(2) $null1 $ns at 0.1 "$node_(0) setdest 199.0 75.0 100.0" $ns at 0.1 "$node_(1) setdest 25.0 125.0 0.0" $ns at 0.1 "$node_(2) setdest 150.0 125.0 0.0" $ns at 0.2 "$cbr0 start" $ns at 1 "$cbr0 stop" $ns at 1.1 "$ns connect $udp0 $null1" $ns at 1.2 "$cbr0 attach-agent $udp0" $ns at 1.3 "$cbr0 start" $ns at 2.1 "$cbr0 stop" $ns at 2.3 "finish" puts "Starting Simulation..." $ns run From saba717671 at hotmail.com Mon Jan 12 03:50:59 2009 From: saba717671 at hotmail.com (anas) Date: Mon, 12 Jan 2009 14:50:59 +0300 Subject: [ns] how can i purge specific route form the cache of dsr nodes Message-ID: dear all, please help me, how can i purge specific route form the cache of dsr nodes thanks in advanced Anas From ikomnios at ee.duth.gr Mon Jan 12 06:42:10 2009 From: ikomnios at ee.duth.gr (Ioannis Komnios) Date: Mon, 12 Jan 2009 16:42:10 +0200 Subject: [ns] ARQ implementation for terrestrial links In-Reply-To: References: Message-ID: <20090112164210.11847jmcbdll1kg2@webmail.duth.gr> Thank you very much for your help Teerawat, but unfortunately I cannot afford buying this book... Could anyone provide me with some code to implement ARQ or another reliable link layer protocol for wired links in ns2? Best Regards, Ioannis Komnios ----- ?????? ??? teerawat at ece.ubc.ca --------- ??????????: Sun, 11 Jan 2009 10:49:06 +0000 ???: Teerawat Issariyakul ????: Re: [ns] ARQ implementation for terrestrial links ????: ikomnios at ee.duth.gr, ns-users at ISI.EDU > > Dear Ioanis, > > There is an example implementation of ARQ in the following book from > Springer useful. > > T. Issariyakul and E. Hossain , "Introduction to Network Simulator > NS2," Springer, Oct. 2008, ISBN: 978-0-387-71759-3 > > http://www.springer.com/engineering/signals/book/978-0-387-71759-3?detailsPage=otherBooks&CIPageCounter=CI_MORE_BOOKS_BY_AUTHOR0 > > You may also find the following slides useful > > http://www.ece.ubc.ca/~teerawat/NS2.htm > > Best Regards, > Teerawat > > > On 1/10/2009, "Ioannis Komnios" wrote: > >> >> Dear ns-users, >> >> I am trying to conduct some experiments using TCP on transport layer >> and, at the same time, some reliable link layer protocol, like ARQ. >> I've been trying for days to find an ARQ implementation in ns and I >> have only found HDLC implementation for satellite links. Is there any >> ARQ implementation available for terrestrial links? Or any other >> reliable link layer protocol already implemented in ns2? >> >> I would be grateful if you could help me... >> >> Thank you in advance, >> >> Ioannis Komnios >> > ----- End message from teerawat at ece.ubc.ca ----- From tansurfing at gmail.com Mon Jan 12 09:49:46 2009 From: tansurfing at gmail.com (tanixmukherzee) Date: Mon, 12 Jan 2009 09:49:46 -0800 (PST) Subject: [ns] how to run c++ code in ns-2 Message-ID: <21419741.post@talk.nabble.com> how to run c++ code in ns-2,can ne 1 give step by step proc. plz help... -- View this message in context: http://www.nabble.com/how-to-run-c%2B%2B-code-in-ns-2-tp21419741p21419741.html Sent from the ns-users mailing list archive at Nabble.com. From nsstudent at yahoo.com Mon Jan 12 14:55:31 2009 From: nsstudent at yahoo.com (Student Ns) Date: Mon, 12 Jan 2009 14:55:31 -0800 (PST) Subject: [ns] simulating wireless sensor networks under NS2.33 Message-ID: <320734.55707.qm@web111002.mail.gq1.yahoo.com> Hello I want to do wireless sensor networks simulations under NS2.33. Can you please give me a tcl sample code in order to have an idea on simulating wsn under NS2? please help me. thank you. From nsstudent at yahoo.com Mon Jan 12 15:55:00 2009 From: nsstudent at yahoo.com (Student Ns) Date: Mon, 12 Jan 2009 15:55:00 -0800 (PST) Subject: [ns] simulating wireless sensor networks under NS2.33 Message-ID: <849413.77199.qm@web111007.mail.gq1.yahoo.com> Hello I want to do wireless sensor networks simulations under NS2.33. Can you please give me a tcl sample code in order to have an idea on simulating wsn under NS2? please help me. thank you. From rajstha2006 at gmail.com Mon Jan 12 20:41:03 2009 From: rajstha2006 at gmail.com (Rainn) Date: Mon, 12 Jan 2009 20:41:03 -0800 Subject: [ns] VANETs exmaple code Message-ID: <7b8896aa0901122041h48a5502en7d1ce18e9624335f@mail.gmail.com> Dear All, Could anyone plz help me to get vehicular ad hoc networks (VANETs) example codes. Thank you in advance. RAINN From neerajgupta37 at rediffmail.com Mon Jan 12 23:18:44 2009 From: neerajgupta37 at rediffmail.com (neeraj gupta) Date: 13 Jan 2009 07:18:44 -0000 Subject: [ns] access NAv Message-ID: <20090113071844.46291.qmail@f6mail-144-204.rediffmail.com> ? hi all how can i access the NAV of the nodes in 802.11 and the calculate the idle time (or busy time). Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat From spyros_mar at yahoo.gr Tue Jan 13 02:29:55 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Tue, 13 Jan 2009 10:29:55 +0000 (GMT) Subject: [ns] Mobile sctp and MW node (multiple interfaces) Message-ID: <481147.33809.qm@web25508.mail.ukl.yahoo.com> Hi all! I am trying to simulate handover between UMTS/WLAN using sctp. I use ns2.33. I try to modify the standard sctp code to implement the add-ip, delete-ip procedures and I use the MW node patch: http://www.q2s.ntnu.no/~paquerea/ns.php to use multiple interfaces. I installed the patch but there was an error and when i run my tcl script it shows error as: (_o3 cmd line 1) invoked from within "_o3 cmd wireless-config -routing DSDV -mac Mac/802_11 -phy Phy/WirelessPhy -channel _o12 -propagation Propagation/TwoRayGround -topography _o10 -ll LL..." etc.. Does anyone know what may be wrong? Has anyone worked on the same subject (sctp for heterogenous handover)? Is there another way from MW node? Thanks in advance ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From pfe09 at yahoo.de Tue Jan 13 17:36:12 2009 From: pfe09 at yahoo.de (Daniel A) Date: Tue, 13 Jan 2009 20:36:12 -0500 Subject: [ns] Storing data packets in an array/matrix while simulating Message-ID: <97B587ADCB194D688D4CC5B86A5F3A51@mit.edu> Hi everybody, I am about simulating a data transmission over ns2. Within the network (node, link), I would like to store every 4 packets in a matrix/array, manipulate them in the matrix(e.g. by inserting some additional bytes to each packet and multiplying the content of the matrix with an another one) and then forward the manipulated data to the sink. As ns2 is handling single packets, I don't really know where and how to do that! Do you have any idea where I eventually could do that? And which functions I should change? Best, Dan From rajstha2006 at gmail.com Tue Jan 13 18:29:53 2009 From: rajstha2006 at gmail.com (Rainn) Date: Tue, 13 Jan 2009 18:29:53 -0800 Subject: [ns] how to generate mobility model Message-ID: <7b8896aa0901131829t6dac916ajf8dac03462617d33@mail.gmail.com> hello eveyone, how to generate mobility model for routing protocol in vehicular ad hoc networks. thank you in advance. From mohammed2742007 at yahoo.com Wed Jan 14 04:37:30 2009 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Wed, 14 Jan 2009 04:37:30 -0800 (PST) Subject: [ns] c++ file Message-ID: <519446.98067.qm@web45411.mail.sp1.yahoo.com> ?a salam alikom ? dear, how i execute c++ file by using ns2 program or is there away to excute it thank you gazak allah khairn ? ? mohammed saad From withhighprob at gmail.com Wed Jan 14 06:20:51 2009 From: withhighprob at gmail.com (matt Wood) Date: Wed, 14 Jan 2009 23:20:51 +0900 Subject: [ns] May I use 'instvar' to bind an array variable? Message-ID: <7f61906e0901140620n685c2b45i17aed18f17d0e495@mail.gmail.com> Dear all, In the node configuration procedure 'instvar' is used to bind several global variables, e.g., in ns-lib.tcl we have: Simulator instproc create-wireless-node args { $self instvar routingAgent_ wiredRouting_ propInstance_ llType_ \ macType_ ifqType_ ifqlen_ phyType_ chan chan2 chan3 chan4 chan5 antType_ energyModel_ inic_tialEnergy_ txPower_ rxPower_ idlePower_ topoInstance_ level1_ level2_ inerrProc_ outerrProc_ FECProc_ ... (an example to configure multi-interface, from http://greenw.blogspot.com/) I wonder if I may use an array variable to take place of using 'chan chan2 chan3 ...' one by one. If it is allowed please tell me how. If not, is there any other way to create an array variable of global range? Thank you very much. Best regards, Matt Wood From pratiti.bhadra at gmail.com Wed Jan 14 06:36:48 2009 From: pratiti.bhadra at gmail.com (pratiti bhadra) Date: Wed, 14 Jan 2009 20:06:48 +0530 Subject: [ns] [Urgent]How can I calculate number of collision for IEEE802_15_4 in ns-2 Message-ID: <75dca74e0901140636t29d52ca8ld492d31280cb387@mail.gmail.com> Hi All, Please let me know how can I calculate number of collision for ZigBee in ns2. If any one has any code please send me. -- With best regards, Pratiti From loulloudes.n at cs.ucy.ac.cy Wed Jan 14 06:41:10 2009 From: loulloudes.n at cs.ucy.ac.cy (Nicholas Loulloudes) Date: Wed, 14 Jan 2009 16:41:10 +0200 Subject: [ns] ns-2.33 Scheduler loosing events Message-ID: <496DF986.9060106@cs.ucy.ac.cy> Hi all, Is it possible the ns-2.33 scheduler is losing events? I generated aprox. 7000 events in a TCL source file and a lot of those events when given to the scheduler are lost. This is a code snippet: void ProtName::create_Pkt(Packet* p){ /* * Create a packet with source and destination header */ // Schedule it for later Transmission Scheduler::instance().schedule(target_, p2, 0.0); } Using printf's i can see the Scheduler correctly receives the packet, but later on there is no other trace of it. Any suggestions? Is there a limit to the events the scheduler can handle? Thanks in advance. -- _________________________________________________ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy From rania_kamal_ce at yahoo.com Wed Jan 14 09:25:18 2009 From: rania_kamal_ce at yahoo.com (eng Rony) Date: Wed, 14 Jan 2009 09:25:18 -0800 (PST) Subject: [ns] after recompiling Message-ID: <262150.17077.qm@web57406.mail.re1.yahoo.com> Eng Rony ? hi i have to recompile ns2 after i make some changes in ns2 files by typing make in ns2 directory and appear to me some warning msgs and errors: gpsr/gpsr_neighbor.cc:393 : warning: int format, nsaddr_t? arg? .. gpsr/gpsr.h:114: warning: 'GPSRAgent:: query_timer_'? will be initialized after. gpsr/gpsr.h:101: warning: 'nsaddr_t? GPSRAgent:: my_id_'. gpsr/gpsr.h:241: warning:? comparison between sign and unsigned integer expression. proxytrace2any.cc:112: error: 'ISLittleEndian" undeclared . proxytrace2any.cc:112: error: . proxytrace2any.cc:120: error: 'ToOtherEndian" undeclared . make[1]: *** proxeytrace2any.o? [Error1]. ? i wait ur solutions From wagnerfbm at yahoo.com.br Wed Jan 14 19:24:03 2009 From: wagnerfbm at yahoo.com.br (Helber Wagner) Date: Wed, 14 Jan 2009 19:24:03 -0800 (PST) Subject: [ns] IEEE 802.11a PHY parameters Message-ID: <636778.44104.qm@web51408.mail.re2.yahoo.com> Hello, buddies. Who knows which files/parameters need to be changed in order to simulate the IEEE 802.11a PHY? Best regards, --- Helber Wagner da Silva MSc. Student in Applied Informatics University of Fortaleza, Cear?, Brazil URL: http://br.geocities.com/wagnerfbm/ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From withhighprob at gmail.com Wed Jan 14 21:42:14 2009 From: withhighprob at gmail.com (matt Wood) Date: Thu, 15 Jan 2009 14:42:14 +0900 Subject: [ns] A comment, and also a request for comment on multichannel simulations. Message-ID: <7f61906e0901142142s300419ces88d114c04f59aeb2@mail.gmail.com> Dear all, I followed the instructions from R.Aguero et al., "Adding Multiple Interface Support in NS-2" to set up a multichannel simulation model (document, http://personales.unican.es/aguerocr). I think there is a major flaw of this method (or the NS2 is not suitable for multichannel): the multi wireless channels are not properly isolated. When a packet is sent from one node to other nodes, wireless-channel will check the nodes affected and send a copy of the packet to all the network interfaces linked to the affected node. This will block each network interface, which should only listen to the neighboring network interfaces tuned on the same channel. When capture effects are considered, such as in the more accurate mac model mac-802_11Ext and wireless-phyExt, this problem will become more salient. More comments and resolutions are heartily welcome. Best regards matt wood From phenix_yw at hhu.edu.cn Thu Jan 15 00:01:13 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Thu, 15 Jan 2009 16:01:13 +0800 Subject: [ns] after recompiling References: <431953952.19235@hhu.edu.cn> Message-ID: <432004197.04819@eyou.net> Hi, You can add these two statements at the beginning of proxytrace2any.cc: extern int IsLittleEndian(void); extern void ToOtherEndian(TEntry *e); It'll works well. However, I don't know the reason. If you know, please let me know. Regards, Phenix -------------------------------------------------- From: "eng Rony" Sent: Thursday, January 15, 2009 1:25 AM To: Subject: [ns] after recompiling > > > > Eng Rony > > hi > i have to recompile ns2 after i make some changes in ns2 files by typing > make in ns2 directory and appear to me some warning msgs and errors: > > gpsr/gpsr_neighbor.cc:393 : warning: int format, nsaddr_t arg . > gpsr/gpsr.h:114: warning: 'GPSRAgent:: query_timer_' will be initialized > after. > gpsr/gpsr.h:101: warning: 'nsaddr_t GPSRAgent:: my_id_'. > gpsr/gpsr.h:241: warning: comparison between sign and unsigned integer > expression. > proxytrace2any.cc:112: error: 'ISLittleEndian" undeclared function>. > proxytrace2any.cc:112: error: once for each function it appears in.>. > proxytrace2any.cc:120: error: 'ToOtherEndian" undeclared function>. > make[1]: *** proxeytrace2any.o [Error1]. > > i wait ur solutions > > > > > > From madhureev at gmail.com Thu Jan 15 00:21:22 2009 From: madhureev at gmail.com (Madhuri Venkatesh) Date: Thu, 15 Jan 2009 13:51:22 +0530 Subject: [ns] ns2 emulation -Unable to use RealTime Scheduler In-Reply-To: <55e362b20901150002y26e80853w5489fa7f4826f213@mail.gmail.com> References: <55e362b20901150002y26e80853w5489fa7f4826f213@mail.gmail.com> Message-ID: <55e362b20901150021m5f991f0s7b9611ea3a619c15@mail.gmail.com> Hi, im a beginner at ns2 and i need to use the emulator for my project. i downloaded this example from the ns-manual set ns [new Simulator] $ns use-scheduler RealTime set me [exec hostname] set bpf0 [new Network/Pcap/Live] $bpf0 set promisc_ true set ipnet [new Network/IP] set nd0 [$bpf open readonly fxp0] $ipnet open writeonly set filt "(not ip host $me)" $bpf0 filter $filt set a0 [new Agent/Tap] $a0 network $bpf0 set n0 [$ns node] $ns attach-agent $n0 $a0 $ns run but i got the output: warning: no class variable Scheduler/RealTime::adjust_new_width_interval_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Scheduler/RealTime::min_bin_width_ invalid command name "Network/Pcap/Live" while executing "Network/Pcap/Live create _o11 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Network/Pcap/Live" invoked from within "set bpf0 [new Network/Pcap/Live]" (file "rt3.tcl" line 4) the same thing happens for the other emulation examples ive tried.The simulation examples run fine.Ive downloaded and installed ns-allinone-2.33.Please help me out. Thanks -- Fourth Year Undergraduate Student,Computer Science and Engineering,RVCE,Bangalore. -- Fourth Year Undergraduate Student,Computer Science and Engineering,RVCE,Bangalore. Ph:9886336272 From madhureev at gmail.com Thu Jan 15 00:37:49 2009 From: madhureev at gmail.com (Madhuri Venkatesh) Date: Thu, 15 Jan 2009 14:07:49 +0530 Subject: [ns] ns2 emulation -cant use real time scheduler Message-ID: <55e362b20901150037j7d6eec1fw5d111a6694f145af@mail.gmail.com> Hi, im a beginner at ns2 and i need to use the emulator for my project. i downloaded this example from the ns-manual set ns [new Simulator] $ns use-scheduler RealTime set me [exec hostname] set bpf0 [new Network/Pcap/Live] $bpf0 set promisc_ true set ipnet [new Network/IP] set nd0 [$bpf open readonly fxp0] $ipnet open writeonly set filt "(not ip host $me)" $bpf0 filter $filt set a0 [new Agent/Tap] $a0 network $bpf0 set n0 [$ns node] $ns attach-agent $n0 $a0 $ns run but i got the output: warning: no class variable Scheduler/RealTime::adjust_new_width_interval_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Scheduler/RealTime::min_bin_width_ invalid command name "Network/Pcap/Live" while executing "Network/Pcap/Live create _o11 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Network/Pcap/Live" invoked from within "set bpf0 [new Network/Pcap/Live]" (file "rt3.tcl" line 4) the same thing happens for the other emulation examples ive tried.The simulation examples run fine.Ive downloaded and installed ns-allinone-2.33.Please help me out. Thanks From Faraz_Hasan-S at email.ulster.ac.uk Thu Jan 15 01:04:03 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Thu, 15 Jan 2009 09:04:03 +0000 Subject: [ns] LAN Nodes placement Message-ID: Hi Everybody, I am running the following code bu every time I run, nodes appear in different positions and overall visualization is very bad. How can I fix the positions of which node to appear where (while it is still part of LAN!). Also, I send data between two nodes, which goes to the main bus and is distributed to all nodes. How can I restrict the communication between two specific nodes only. Please reply soon. Faraz set ns [new Simulator] set tracefd [open topology.tr w] $ns trace-all $tracefd set nf [open out.nam w] $ns namtrace-all $nf proc finish {} { global ns nf $ns flush-trace close $nf exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam out.nam & exit 0 } set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] $ns make-lan "$n1 $n2 $n3 $n4 $n5" 25Mb 200ms LL Queue/DropTail Mac/Csma/Cd set udp0 [new Agent/UDP] $ns attach-agent $n1 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 1000 $cbr0 set interval_ 0.005 $cbr0 attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $n3 $null0 $ns connect $udp0 $null0 $ns at 0.1 "$cbr0 start" $ns at 4 "$cbr0 stop" $ns at 4.1 "finish" $ns run From faka60 at yahoo.com Thu Jan 15 05:03:55 2009 From: faka60 at yahoo.com (fatemeh kazemeiny) Date: Thu, 15 Jan 2009 05:03:55 -0800 (PST) Subject: [ns] problem during NS-2.27 installation Message-ID: <521197.78633.qm@web51302.mail.re2.yahoo.com> Hi, I need to install ns-2.27 on SuSe Linux, but I get this error during installation: tclcl-1.15 make failed! how can I solve this problem? Thank you in advanced. Fatemeh. ? From Faraz_Hasan-S at email.ulster.ac.uk Wed Jan 14 08:35:02 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Wed, 14 Jan 2009 16:35:02 +0000 Subject: [ns] LAN Nodes not being placed in order Message-ID: Hi. I am running the following code bu every time I run, nodes appear in different positions and overall visualization is very bad. How can I fix the positions of which node to appear where (while it is still part of LAN!). Also, I send data between two nodes, which goes to the main bus and is distributed to all nodes. How can I restrict the communication between two specific nodes only. Please reply soon. Faraz set ns [new Simulator] set tracefd [open topology.tr w] $ns trace-all $tracefd set nf [open out.nam w] $ns namtrace-all $nf proc finish {} { global ns nf $ns flush-trace close $nf exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam out.nam & exit 0 } set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] $ns make-lan "$n1 $n2 $n3 $n4 $n5" 25Mb 200ms LL Queue/DropTail Mac/Csma/Cd set udp0 [new Agent/UDP] $ns attach-agent $n1 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 1000 $cbr0 set interval_ 0.005 $cbr0 attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $n3 $null0 $ns connect $udp0 $null0 $ns at 0.1 "$cbr0 start" $ns at 4 "$cbr0 stop" $ns at 4.1 "finish" $ns run From penguin166 at gmail.com Thu Jan 15 19:45:53 2009 From: penguin166 at gmail.com (Harry P) Date: Fri, 16 Jan 2009 11:45:53 +0800 Subject: [ns] Help: use ns2 emulation --error Message-ID: Hi,everyone: I write a script 5.tcl (use ns2 emulation function),get this error below: TapAgent(_o105): linked sock 5 as READABLE TapAgent(_o108): linked sock 7 as READABLE TapAgent(_o111): linked sock 9 as READABLE TapAgent(_o114): linked sock 11 as READABLE *pcap/live object (_o118) couldn't open packet source lnc4: (no devices found) /dev/bpf4: No such file or directory* (_o118 cmd line 1) invoked from within "_o118 cmd open readonly lnc4" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o118" line 2) (SplitObject unknown line 2) invoked from within "$bpf5 open readonly lnc4" invoked from within "set dev5 [$bpf5 open readonly lnc4]" (file "5.tcl" line 73) ================================= *Here is 5.tcl* # Testing passing real world traffic through the # 1 -->0-->9-->8 # 2 -->0-->9-->8 # 3 -->0-->9-->8 # 4 -->0-->9-->8 # 5 -->0-->9-->8 # # set ns [new Simulator] $ns use-scheduler RealTime set f [open out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf # Create the nodes needed to the transducer set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] set n0 [$ns node] set n9 [$ns node] set n8 [$ns node] # Setup connections between the nodes $ns simplex-link $n1 $n0 10Mb 5ms DropTail $ns simplex-link $n2 $n0 10Mb 5ms DropTail $ns simplex-link $n3 $n0 10Mb 5ms DropTail $ns simplex-link $n4 $n0 10Mb 5ms DropTail $ns simplex-link $n5 $n0 10Mb 5ms DropTail $ns simplex-link $n0 $n9 10Mb 5ms DropTail $ns simplex-link $n9 $n8 10Mb 5ms DropTail # Configure entry node 1 set tap1 [new Agent/Tap]; # Create the TCPTap Agent set bpf1 [new Network/Pcap/Live]; # Create the bpf set dev1 [$bpf1 open readonly lnc0] $bpf1 filter "src 192.168.152.1 and src port 5001 and dst 192.168.184.1 " $tap1 network $bpf1; # Connect bpf to TCPTap Agent $ns attach-agent $n1 $tap1; # Attach TCPTap Agent to the node # Configure entry node 2 set tap2 [new Agent/Tap]; # Create the TCPTap Agent set bpf2 [new Network/Pcap/Live]; # Create the bpf set dev2 [$bpf2 open readonly lnc1] $bpf2 filter "src 192.168.152.1 and src port 5002 and dst 192.168.184.1 " $tap2 network $bpf2; # Connect bpf to TCPTap Agent $ns attach-agent $n2 $tap2; # Attach TCPTap Agent to the node # Configure entry node 3 set tap3 [new Agent/Tap]; # Create the TCPTap Agent set bpf3 [new Network/Pcap/Live]; # Create the bpf set dev3 [$bpf3 open readonly lnc2] $bpf3 filter "src 192.168.152.1 and src port 5003 and dst 192.168.184.1 " $tap3 network $bpf3; # Connect bpf to TCPTap Agent $ns attach-agent $n3 $tap3; # Attach TCPTap Agent to the node # Configure entry node 4 set tap4 [new Agent/Tap]; # Create the TCPTap Agent set bpf4 [new Network/Pcap/Live]; # Create the bpf# Configure entry node set dev4 [$bpf4 open readonly lnc3] $bpf4 filter "src 192.168.152.1 and src port 5004 and dst 192.168.184.1 " $tap4 network $bpf4; # Connect bpf to TCPTap Agent $ns attach-agent $n4 $tap4; # Attach TCPTap Agent to the node # Configure entry node 5 set tap5 [new Agent/Tap]; # Create the TCPTap Agent set bpf5 [new Network/Pcap/Live]; # Create the bpf set dev5 [$bpf5 open readonly lnc4] $bpf5 filter "src 192.168.152.1 and src port 5005 and dst 192.168.184.1 " $tap5 network $bpf5; # Connect bpf to TCPTap Agent $ns attach-agent $n5 $tap5; # Attach TCPTap Agent to the node # Configure the exit node set tap8 [new Agent/Tap]; # Create a TCPTap Agent set ipnet8 [new Network/IP]; # Create a Network agent $ipnet8 open writeonly $tap8 network $ipnet8; # Connect network agent to tap agent $ns attach-agent $n8 $tap8; # Attach agent to the node. # Connect the agents. $ns simplex-connect $tap1 $tap8 $ns simplex-connect $tap2 $tap8 $ns simplex-connect $tap3 $tap8 $ns simplex-connect $tap4 $tap8 $ns simplex-connect $tap5 $tap8 $ns at 600.0 "finish" proc finish {} { global ns f nf $ns flush-trace close $f close $nf exit 0 } $ns run =============== *when i comment "entry node 5" , it is OK , Why?* # Configure entry node 5 # set tap5 [new Agent/Tap]; # Create the TCPTap Agent # set bpf5 [new Network/Pcap/Live]; # Create the bpf # set dev5 [$bpf5 open readonly lnc4] # $bpf5 filter "src 192.168.152.1 and src port 5005 and dst 192.168.184.1 " # $tap5 network $bpf5; # Connect bpf to TCPTap Agent # $ns attach-agent $n5 $tap5; # Attach TCPTap Agent to the node ======================================== My ip setting: lnc0 : flags=8843 mtu 1500 inet 192.168.224.129 netmask 0xffffff00 broadcast 192.168.224.255 inet6 fe80::20c:29ff:fee6:6007%lnc0 prefixlen 64 scopeid 0x1 ether 00:0c:29:e6:60:07 lnc1: flags=8843 mtu 1500 inet 192.168.56.129 netmask 0xffffff00 broadcast 192.168.56.255 inet6 fe80::20c:29ff:fee6:6011%lnc1 prefixlen 64 scopeid 0x2 ether 00:0c:29:e6:60:11 lnc2: flags=8843 mtu 1500 inet 192.168.152.128 netmask 0xffffff00 broadcast 192.168.152.255 inet6 fe80::20c:29ff:fee6:601b%lnc2 prefixlen 64 scopeid 0x3 ether 00:0c:29:e6:60:1b lnc3: flags=8843 mtu 1500 inet 192.168.184.129 netmask 0xffffff00 broadcast 192.168.184.255 inet6 fe80::20c:29ff:fee6:6025%lnc3 prefixlen 64 scopeid 0x4 ether 00:0c:29:e6:60:25 lnc4: flags=8843 mtu 1500 inet 192.168.11.129 netmask 0xffffff00 broadcast 192.168.11.255 inet6 fe80::20c:29ff:fee6:602f%lnc4 prefixlen 64 scopeid 0x5 ether 00:0c:29:e6:60:2f lnc5: flags=8843 mtu 1500 inet 192.168.33.129 netmask 0xffffff00 broadcast 192.168.33.255 inet6 fe80::20c:29ff:fee6:6039%lnc5 prefixlen 64 scopeid 0x6 ether 00:0c:29:e6:60:39 From daltoncezane at gmail.com Thu Jan 15 23:53:50 2009 From: daltoncezane at gmail.com (=?ISO-8859-1?Q?Dalton_C=E9zane?=) Date: Fri, 16 Jan 2009 04:53:50 -0300 Subject: [ns] problem during NS-2.27 installation In-Reply-To: <200901160741.n0G7fIX2005049@gamma.isi.edu> References: <98029fd50901152339y71f1fcc4ra1d0110eac84a285@mail.gmail.com> <200901160741.n0G7fIX2005049@gamma.isi.edu> Message-ID: <98029fd50901152353l322bfc3dsc8530d87df012699@mail.gmail.com> Hi... I already had problems with NS-2.27 intallation too, but a friend helped me, doing the installation. In this case, I was using Ubuntu 8.04 and the most of problems that appeared was because my version of gcc... Now, I'm using another computer, with Ubuntu 8.10, and have to install the NS-2.27 again. In these next days I'm going to install with his help (my friend)... If you don't have solved your problem yet, maybe I can help you! Good luck! -- ======================================================= Dalton C?zane - Voip UFCG: 1075-2005 Mestrando em Ci?ncia da Computa??o Bacharel em Ci?ncia da Computa??o Universidade Federal de Campina Grande - UFCG From lochan.verma at gmail.com Fri Jan 16 02:32:16 2009 From: lochan.verma at gmail.com (Lochan Verma) Date: Fri, 16 Jan 2009 19:32:16 +0900 Subject: [ns] X library not found!!! Message-ID: <2c82f90f0901160232v369c07b6h944fe621361095f4@mail.gmail.com> Dear ns-users, I have been trying to install ns2.26 with Ubuntu 6.10 and I must say it is really a big pain. I downgraded the gcc version and installed some lib. required by googling about the same. However,, I am stuck with the error ""Can't find X library" I followed up the below mentioned link to reach this far. http://www.gidforums.com/t-18769.html Surprisingly, I have already installed libX11-dev, and libxt-dev, and xlibs-dev. I checked the path for libX11 using "whereis libX11" and found it to be present in /usr/lib. Thats where it should be..right!! I am stuck for long at this point.... If nybody could pease help out...I would appreciate. Thanks, Lochan. From Faraz_Hasan-S at email.ulster.ac.uk Fri Jan 16 03:02:26 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Fri, 16 Jan 2009 11:02:26 +0000 Subject: [ns] Xgraph Bad x-value error message Message-ID: Hi everybody, I am trying to use xgraph. It is installed in my machine and running. I modified my code according to available tutorials (as far as I could) to see xgraph results. When the code is run, xgraph starts but displays no results. An error message is "Bad x-value 'r' on line 6153 of file mob.tr" is dislpayed. Same error is repeated several times on Xterm window with dfferent line numbers refering to the same trace file mob.tr. Please help me out at this Faraz #Create a simulator object set ns [new Simulator] #Define different colors for data flows (for NAM) $ns color 1 Blue $ns color 2 Red set tracefd [open mob.tr w] $ns trace-all $tracefd #Open the NAM trace file set nf [open out.nam w] $ns namtrace-all $nf #Define a 'finish' procedure proc finish {} { global ns nf tracefd $ns flush-trace #Close the NAM trace file close $nf close $tracefd #Execute NAM on the trace file exec /home/faraz/Desktop/ns-allinone-2.33/nam-1.13/nam out.nam exec /home/faraz/Desktop/ns-allinone-2.33/ns-2.33/xgraph mob.tr & exit 0 } proc record {} { global tracefd lmsink set ns [Simulator instance] set time 0.5 set bw [$lmsink set bytes_] set now [$ns now] puts $tracefd "$now [expr $bw/$time*8/1000000]" $lmsink set bytes_ 0 $ns at [expr $now+$time] "record" } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 2Mb 10ms DropTail $ns duplex-link $n1 $n2 2Mb 10ms DropTail $ns duplex-link $n2 $n3 1.7Mb 20ms DropTail #Set Queue Size of link (n2-n3) to 10 $ns queue-limit $n2 $n3 10 #Give node position (for NAM) $ns duplex-link-op $n0 $n2 orient right-down $ns duplex-link-op $n1 $n2 orient right-up $ns duplex-link-op $n2 $n3 orient right #Monitor the queue for link (n2-n3). (for NAM) $ns duplex-link-op $n2 $n3 queuePos 0.5 set lmsink [new Agent/LossMonitor] $ns attach-agent $n3 $lmsink #Setup a TCP connection set tcp [new Agent/TCP] $tcp set class_ 2 $ns attach-agent $n0 $tcp set sink [new Agent/TCPSink] $ns attach-agent $n3 $sink $ns connect $tcp $sink $tcp set fid_ 1 #Setup a FTP over TCP connection set ftp [new Application/FTP] $ftp attach-agent $tcp $ftp set type_ FTP #Setup a UDP connection set udp [new Agent/UDP] $ns attach-agent $n1 $udp set null [new Agent/Null] $ns attach-agent $n3 $null $ns connect $udp $null $udp set fid_ 2 #Setup a CBR over UDP connection set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp $cbr set type_ CBR $cbr set packet_size_ 1000 $cbr set rate_ 1mb $cbr set random_ false #Schedule events for the CBR and FTP agents $ns set 0.0 "record" $ns at 0.1 "$cbr start" $ns at 1.0 "$ftp start" $ns at 4.0 "$ftp stop" $ns at 4.5 "$cbr stop" #Detach tcp and sink agents (not really necessary) #$ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" #Call the finish procedure after 5 seconds of simulation time $ns at 5.0 "finish" #Print CBR packet size and interval puts "CBR packet size = [$cbr set packet_size_]" puts "CBR interval = [$cbr set interval_]" #Run the simulation $ns run From avtomatk at yandex.ru Fri Jan 16 04:03:15 2009 From: avtomatk at yandex.ru (=?UTF-8?B?0JjQstCw0L0=?=) Date: Fri, 16 Jan 2009 14:03:15 +0200 Subject: [ns] Throughput and collision measurement in 802.11 AP-mode Message-ID: <005001c977d2$6bf537c0$0301a8c0@Tiger> Hi! I am a beginner in Ns-2, but I managed to alter "infra.tcl" script to my needs - I had to model several independent 802.11 g networks. Now I have to calculate the throughput of each of them and to see how the throughput is affected by collision (because networls affect each other). Can anyone help we with throughpu and collision (bit error rate) measurement? Thanks in advance! This is my script: set val(chan) Channel/WirelessChannel ;#Channel Type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 20 ;# number of mobilenodes set val(rp) DumbAgent ;# routing protocol set val(x) 50 set val(y) 50 Mac/802_11 set dataRate_ 11Mb #Phy/WirelessPhy set CSThresh_ 10.00e-12 #Phy/WirelessPhy set RXThresh_ 10.00e-11 #Phy/WirelessPhy set Pt_ 0.1 #Phy/WirelessPhy set Pt_ 7.214e-3 # Initialize Global Variables set ns_ [new Simulator] set tracefd [open infra.tr w] set namtrace [open infra.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) #Open the output files set f0 [open out0.tr w] #Define a 'finish' procedure proc finish {} { global f0 #Close the output files close $f0 #Call xgraph to display the results exec xgraph out0.tr -geometry 800x400 & exit 0 } # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God create-god $val(nn) # Create channel set chan_1_ [new $val(chan)] $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF \ -channel $chan_1_ for {set i 0} {$i < [expr $val(nn)]} {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion set mac_($i) [$node_($i) getMac 0] $mac_($i) set RTSThreshold_ 3000 } set sizeRNG [new RNG] for {set j 0} {$j < $val(nn) } {incr j} { set randX [$sizeRNG uniform 0 $val(x)]; set randY [$sizeRNG uniform 0 $val(y)]; $node_($j) set X_ $randX $node_($j) set Y_ $randY $node_($j) set Z_ 0.000000000000 } #Set Node 0, Node 10 and Node $val(nn) as the APs. set AP_ADDR1 [$mac_(0) id] $mac_(0) ap $AP_ADDR1 set AP_ADDR2 [$mac_([expr $val(nn) - 1]) id] $mac_([expr $val(nn) - 1]) ap $AP_ADDR2 set AP_ADDR3 [$mac_([expr $val(nn) - 10]) id] $mac_([expr $val(nn) - 10]) ap $AP_ADDR3 #$mac_([expr $val(nn) - 1]) set BeaconInterval_ 0.2 $mac_(1) ScanType Passive ;#??????? ?? Passive, ???? Active for {set i 2} {$i < [expr $val(nn) - 1]} {incr i} { ;# ???? ??? & $i != 10 $mac_($i) ScanType PASSIVE ;#Passive } ;#$ns_ at 1.0 "$mac_(2) ScanType ACTIVE" Application/Traffic/CBR set packetSize_ 1023 Application/Traffic/CBR set rate_ 256Kb # TCP connections between node_(10) and node_{11, 16} set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] for {set i [expr $val(nn) - 10] } {$i < 17 } {incr i} { $ns_ attach-agent $node_($i) $tcp $ns_ attach-agent $node_([expr $val(nn) - 10]) $sink $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp } for {set i 0 } {$i < [expr $val(nn) - 10] } {incr i} { $ns_ attach-agent $node_($i) $tcp $ns_ attach-agent $node_(0) $sink $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp } for {set i [expr $val(nn) - 10]} {$i < [expr $val(nn) - 1] } {incr i} { $ns_ attach-agent $node_($i) $tcp $ns_ attach-agent $node_(10) $sink $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp } #Define a procedure which periodically records the bandwidth received by the #three traffic sinks sink0/1/2 and writes it to the three files f0/1/2. proc record {} { global sink_(0) f0 #Get an instance of the simulator set ns [Simulator instance] #Set the time after which the procedure should be called again set time 0.5 #How many bytes have been received by the traffic sinks? set bw0 [$sink_(0) set bytes_] #Get the current time set now [$ns now] #Calculate the bandwidth (in MBit/s) and write it to the files puts $f0 "$now [expr $bw0/$time*8/1000000]" #Reset the bytes_ values on the traffic sinks $sink(0) set bytes_ 0 #Re-schedule the procedure $ns at [expr $now+$time] "record" } # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { # 2 defines the node size in nam, must adjust it according to your scenario # The function must be called after mobility model is defined $ns_ initial_node_pos $node_($i) 3 } $ns_ at 5.0 "$ftp start" $ns_ at 20.0 "stop" $ns_ at 20.0 "puts \"NS EXITING...\" ; $ns_ halt" $ns_ at 20.0 "finish" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd exit 0 } puts "Starting Simulation..." $ns_ run [/code] From nirbhay at ieee.org Fri Jan 16 04:18:49 2009 From: nirbhay at ieee.org (Nirbhay Chaubey) Date: Fri, 16 Jan 2009 17:48:49 +0530 Subject: [ns] Can anyone guide me how to compare AODV and DSR routing protocol of MANET Message-ID: <34ffb2820901160418u3339e64dhd65466837042c3f6@mail.gmail.com> Hello Friends, I am new in using NS2 simulator, however I have installed NS2allione on fedora9 kernel 2.6. I am research students, I saw that AODV and DSR routing protocol of MANET are there, I want to compare these protocols. Can anyone guide me how to proceed for that step by step. I will really appreciate your kind help for above subject. Awaiting ur reply, Nirbhay Chuabey From ilaone at hotmail.com Fri Jan 16 05:46:49 2009 From: ilaone at hotmail.com (IRFAN LAONE) Date: Fri, 16 Jan 2009 13:46:49 +0000 Subject: [ns] Commercial application of AODV for MANETs Message-ID: Hi everyone, Can anyone please give an example of some practical commercial application of AODV for MANETs. Thanx _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/photos.aspx From mohit.nitte at yahoo.com Fri Jan 16 05:51:15 2009 From: mohit.nitte at yahoo.com (Mohit Tahiliani) Date: Fri, 16 Jan 2009 05:51:15 -0800 (PST) Subject: [ns] Power Consumption of a node Message-ID: <868179.18563.qm@web45408.mail.sp1.yahoo.com> Hello all, In NS-2 we can measure residual Energy easily by looking at the trace file. But how can we measure the total power consumption of a node at a particular point in time. (e.g.: between 1sec and 5sec i.e. within an interval of 5-1=4 sec what is the power consumption of a node) Is there any way to calculate the power consumption in NS-2? Thank you, Mohit P. Tahiliani From peeps35 at gmail.com Fri Jan 16 07:59:43 2009 From: peeps35 at gmail.com (pradeep m) Date: Fri, 16 Jan 2009 07:59:43 -0800 Subject: [ns] REGISTERED NODES Message-ID: Hi all , I need to find the nodes that are registered with a certain base station. How to do this? Also when a mobile node is moving from the home network to the foreign network how to register the node with the foreign Agent? From contact.joarder at yahoo.com Fri Jan 16 08:45:30 2009 From: contact.joarder at yahoo.com (Mustafa Kamal) Date: Fri, 16 Jan 2009 08:45:30 -0800 (PST) Subject: [ns] MAC cache_ array out of range Message-ID: <303949.67861.qm@web45616.mail.sp1.yahoo.com> Hi, Can anyone tell me from which c++ file this message can come out? MAC_802_11: accessing MAC cache_? array out of range Thanks in advance From obaidabbasi at gmail.com Fri Jan 16 12:51:08 2009 From: obaidabbasi at gmail.com (obaid abbasi) Date: Fri, 16 Jan 2009 21:51:08 +0100 Subject: [ns] Deleting node at runtime Message-ID: <26a7b1700901161251y2a7e557ci360ec05c0466be3c@mail.gmail.com> Hi, Is it possible to delete a node at run time.For example I have created a node set node1 [$ns node]. I want to remove this node from topology after 30 seconds of simulation time executed. Do you know any TCL command for deleting a node at runtime. Thanks a lot for your response. BR Ubaid From nadine341 at yahoo.fr Fri Jan 16 14:08:36 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Fri, 16 Jan 2009 22:08:36 +0000 (GMT) Subject: [ns] appearing new nodes during the simulation Message-ID: <132234.8794.qm@web28301.mail.ukl.yahoo.com> Hello Can you please tell me how can I make nodes appear one by one in the simulation ,for example initially I have one node, then, after 10 seconds, I have another one? Please help me. Thank you very much. From lucas_max2002 at yahoo.es Fri Jan 16 16:47:43 2009 From: lucas_max2002 at yahoo.es (Douglas Restrepo) Date: Sat, 17 Jan 2009 00:47:43 +0000 (GMT) Subject: [ns] what is most stable version of NS2 Message-ID: <163927.48626.qm@web23208.mail.ird.yahoo.com> Hi NS2 forum... Can some body tell me what is the most stable version of NS2. I have to do a project with the LEACH protocol and I'd like work with a good version of NS2. Thank you. From phenix_yw at hhu.edu.cn Fri Jan 16 20:21:42 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Sat, 17 Jan 2009 12:21:42 +0800 Subject: [ns] MAC cache_ array out of range References: <432124340.27457@hhu.edu.cn> Message-ID: <432165983.23069@eyou.net> > Hi, > > Can anyone tell me from which c++ file this message can come out? > > MAC_802_11: accessing MAC cache_ array out of range Using a code browser, such as source insight, you'll easily locate where it is! In fact, the information above comes from Mac-802_11.cc, line 1963. > > Thanks in advance > > > > Regards, Phenix From bassem_mokhtar81 at yahoo.com Sat Jan 17 14:15:35 2009 From: bassem_mokhtar81 at yahoo.com (bassem mokhtar) Date: Sat, 17 Jan 2009 22:15:35 +0000 (GMT) Subject: [ns] Installation of tracegraph on a PC (windows XP operating system) Message-ID: <922926.85430.qm@web28613.mail.ukl.yahoo.com> Hello everybody, I have a big problem... I want to install the tracegraph on my PC (Windows XP operating system) .... to test and analysis my results got by the network simulator ns-2 ? The installation process doesn't finish successfully... Any one has ideas or steps to do that correctly.. My regards. From paraguayita_69 at hotmail.com Sat Jan 17 15:40:28 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Sat, 17 Jan 2009 18:40:28 -0500 Subject: [ns] XCP Protocol Message-ID: Dear NS-users: Do someone use the XCP protocol? I need to undestant how it claculates the number of flows. I read a lot, but it is confuse. DIANA _________________________________________________________________ Windows Live? Hotmail?: Chat. Store. Share. Do more with mail. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009 From lmcbarreto at gmail.com Sat Jan 17 15:49:27 2009 From: lmcbarreto at gmail.com (=?UTF-8?Q?Lu=C3=ADs_Barreto?=) Date: Sat, 17 Jan 2009 23:49:27 +0000 Subject: [ns] XCP Protocol In-Reply-To: References: Message-ID: <1e9258700901171549i693c77a1v5d0057fb87a2f0ae@mail.gmail.com> Hi Diana, I?m having the same problem! Could you tell me what are u reading? Thanks, Lu?s On Sat, Jan 17, 2009 at 11:40 PM, Diana Benitez wrote: > > > Dear NS-users: > > Do someone use the XCP protocol? I need to undestant how it claculates the > number of flows. I read a lot, but it is confuse. > > DIANA > > _________________________________________________________________ > Windows Live? Hotmail(R): Chat. Store. Share. Do more with mail. > > http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_explore_012009 > From nithin0423 at gmail.com Sat Jan 17 21:38:17 2009 From: nithin0423 at gmail.com (Nithin Reddy) Date: Sun, 18 Jan 2009 11:08:17 +0530 Subject: [ns] SIMULATION OF COOPMAC PROTOCOLS Message-ID: <8a503aca0901172138u8d09227oa086c3a0f5e74c40@mail.gmail.com> Dear NS users, I want to simulate COOPMAC protocols on NS-2. Can anyone help me by providing the code. Atleast provide me the NS-2 code for IEEE 802.11b MAC protocol and other multihop MAC protocols. Please help me out. Waitinf for your reply. From sekar.bonton at gmail.com Sun Jan 18 03:05:07 2009 From: sekar.bonton at gmail.com (rajasekars3) Date: Sun, 18 Jan 2009 03:05:07 -0800 (PST) Subject: [ns] Byzantine attack Message-ID: <21525852.post@talk.nabble.com> Hi all, I m simulating attackers in MANET , i got Byzantine attack model , but i dont know how to enable these attacks in ns2 TCL script please help me to enable these attacks. Thanks In advance, Rajasekar S -- View this message in context: http://www.nabble.com/Byzantine-attack-tp21525852p21525852.html Sent from the ns-users mailing list archive at Nabble.com. From avtomatk at yandex.ru Sun Jan 18 03:41:46 2009 From: avtomatk at yandex.ru (Ivan_Tiger) Date: Sun, 18 Jan 2009 03:41:46 -0800 (PST) Subject: [ns] Connecting a number of nodes to a one node Message-ID: <21526848.post@talk.nabble.com> Hi everyone! I am modelling 802.11 AP-based wireless network and I need to connect 5 nodes to one Access Point (AP1) via tcp. Does anyone know how to do it quickly without having to connect each of the 5 nodes to the AP separately? Thanks in advance! -- View this message in context: http://www.nabble.com/Connecting-a-number-of-nodes-to-a-one-node-tp21526848p21526848.html Sent from the ns-users mailing list archive at Nabble.com. From dahkim77 at gmail.com Sun Jan 18 11:50:43 2009 From: dahkim77 at gmail.com (Daehee Kim) Date: Sun, 18 Jan 2009 13:50:43 -0600 Subject: [ns] How can I get comutation time at a node ? Message-ID: <1a9612350901181150h3d31ae1ctfc6a669ca91649c8@mail.gmail.com> Hi. I am using NS2.33 in Linux I am trying to measure computation time in each node (for example such as M^3 computation) // Here, measured current time.. (Before computation) for ... (100 loop) for ... (100 loop) for .... (100 loop) // Here, measured current time... (After computation) I expected the time between before computation and after computation will be different (at least hundreds of milliseconds...) I used "Scheduler::instance().clock()" to get the before time and after time However, irrespective of number of loop, the times which were measured at both case (before, after) was same. I don't understand why two time becomes same. I heard NS2 is discrete event mode. Is that the reason of same time ? If so, can you explain what happened in NS2 ? Also, are there any way to compute the difference time between two times in NS2 ? I would very apprecaite any help. Danny. -- DaeHee(Danny) Kim Department of Electrical Engineering and Computer Science(EECS), Wichita State University email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com From mwoldese at ee.ucl.ac.uk Sun Jan 18 12:19:33 2009 From: mwoldese at ee.ucl.ac.uk (moses woldeselassie) Date: Sun, 18 Jan 2009 20:19:33 +0000 Subject: [ns] help with tcpdump and tmix Message-ID: <49738ED5.6000908@ee.ucl.ac.uk> hi all, I would appreciate it if you could help. 1. how do I import a traced (by tcpdump) data into ns-2? 2. is it possible to use tmix for the tcpdump raw data? any example tcl or C++ would be helpful. cheers, moses From dahkim77 at gmail.com Sun Jan 18 13:37:31 2009 From: dahkim77 at gmail.com (Daehee Kim) Date: Sun, 18 Jan 2009 15:37:31 -0600 Subject: [ns] How can I send variable sized packet, and measure the size ? Message-ID: <1a9612350901181337o4d7facf8h9176ddb47fec08ef@mail.gmail.com> Hi everyone. I want to send a packet which has variable size on the way to a destination. That is, the packet size when it starts from a source node will be different from when it is at one of forwarded nodes. ; the packet size is varied. How can I implement variable sized packet ? Also, How can I measure the size of the packet at any time ? Thanks Danny -- DaeHee(Danny) Kim Department of Electrical Engineering and Computer Science(EECS), Wichita State University email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com From safiya.nureen at yahoo.com Sun Jan 18 16:55:48 2009 From: safiya.nureen at yahoo.com (Safiya Nureen) Date: Sun, 18 Jan 2009 16:55:48 -0800 (PST) Subject: [ns] dual mac in ns2 Message-ID: <210627.385.qm@web112221.mail.gq1.yahoo.com> Hi:) I want to implement dual mac , in ns2. do any body have idea to model this ?kind of layer for wired network. i m naive to ns2. thanks in advance Safiya Nureen From rafiza at nav6.org Sun Jan 18 22:49:55 2009 From: rafiza at nav6.org (rafiza@nav6.org) Date: Mon, 19 Jan 2009 14:49:55 +0800 (MYT) Subject: [ns] ESS in NS-2 Message-ID: <60120.10.207.161.158.1232347795.squirrel@www.nav6.org> Hi ns-users, I intent to simulate extended service set(ESS) using NS2. But i don't know how. May be anyone can show me some guidance on how to go about it. Or is there any existing model of ESS in NS2. Thanks in advance! Kind regards, Rafiza. From loulloudes.n at cs.ucy.ac.cy Sun Jan 18 23:51:57 2009 From: loulloudes.n at cs.ucy.ac.cy (Nicholas Loulloudes) Date: Mon, 19 Jan 2009 09:51:57 +0200 Subject: [ns] ns-2.33 Scheduler loosing events Message-ID: <4974311D.9020404@cs.ucy.ac.cy> Hi all, Is it possible the ns-2.33 scheduler is losing events? I generated aprox. 7000 events in a TCL source file and a lot of those events when given to the scheduler are lost. This is a code snippet: void ProtName::create_Pkt(Packet* p){ /* * Create a packet with source and destination header */ // Schedule it for later Transmission Scheduler::instance().schedule(target_, p2, 0.0); } Using printf's i can see the Scheduler correctly receives the packet, but later on there is no other trace of it. Any suggestions? Is there a limit to the events the scheduler can handle? Thanks in advance. -- _________________________________________________ Nicholas Loulloudes High Performance Computing Systems Laboratory (HPCL) University of Cyprus, Nicosia, Cyprus Tel: +357-22892663 Email: loulloudes.n[at]cs.ucy.ac.cy From neerajgupta37 at rediffmail.com Mon Jan 19 00:53:21 2009 From: neerajgupta37 at rediffmail.com (neeraj gupta) Date: 19 Jan 2009 08:53:21 -0000 Subject: [ns] accessing vaiable of c++ Message-ID: <20090119085321.46938.qmail@f6mail-144-154.rediffmail.com> hi all how can i access the variable in c++ in tcl script. Also if change the code in c++ to print the value of variable where that value will be printed. Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat From Eric.Wuensche at rohde-schwarz.com Mon Jan 19 02:05:23 2009 From: Eric.Wuensche at rohde-schwarz.com (Eric.Wuensche@rohde-schwarz.com) Date: Mon, 19 Jan 2009 11:05:23 +0100 Subject: [ns] Energy Management in 802.11Phy Message-ID: I just was curious about why in the routines UpdateSleepEnergy() and UpdateIdleEnergy() the first one reschedules itself and the second one doesn't. So where or which class handles the Idle Energy Management? From avtomatk at yandex.ru Mon Jan 19 05:59:34 2009 From: avtomatk at yandex.ru (Ivan_Tiger) Date: Mon, 19 Jan 2009 05:59:34 -0800 (PST) Subject: [ns] Associating a mobile node with a certain AP in 802.11 Message-ID: <21543495.post@talk.nabble.com> Hi! Who knows how to associate a mobile node with a certain "parent" Access Point AP? Thanks in advance! -- View this message in context: http://www.nabble.com/Associating-a-mobile-node-with-a-certain-AP-in-802.11-tp21543495p21543495.html Sent from the ns-users mailing list archive at Nabble.com. From v_mandhare at yahoo.com Mon Jan 19 07:46:08 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Mon, 19 Jan 2009 21:16:08 +0530 (IST) Subject: [ns] Fw: Cbr traffic use in Tcp or not for MAODV Message-ID: <718774.44910.qm@web94815.mail.in2.yahoo.com> --- On Mon, 19/1/09, vaishali mandhare wrote: From: vaishali mandhare Subject: Cbr traffic use in Tcp or not for MAODV To: "ns user" Date: Monday, 19 January, 2009, 1:24 PM Hello, I am doing performance comparision of tcp and cbr in maodv on ns2.26.Can anybody tell me that cbr traffic is used in tcp script for calculating the parameter packet dilivery ratio and latency.Plz Plz help me!!!! Thanks!!!? Add more friends to your messenger and enjoy! Invite them now. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From ligerk at terra.com.br Mon Jan 19 13:47:23 2009 From: ligerk at terra.com.br (Livia Ferreira Gerk) Date: Mon, 19 Jan 2009 19:47:23 -0200 Subject: [ns] TKN 802.11e - errors running CFB scenarios Message-ID: Hi, all, I've successfully installed TKN 802.11e patch into NS2.31. I'm testing the effects of 802.11e parameters on collision rate, loss rate, throughput and average delay as network load increases. My topology is static with the nodes randomly positioned and a random node starts 1 flow of each priority level (total 4) every 20s of simulation time (total 14x4). I was trying to test topologies with 10, 30 and 50 nodes. With 10 nodes, I've got no problem at all in all scenarios I ran. However, simulations that generate higher throughput in scenarios with 30 and 50 nodes consume so much memory that it can't finish. I get: terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc So, comes one of my doubts: how scalable is this code? What's the maximum number of nodes or flows I can have? What have you tested? I tried removing the headers I'm not using and all that stuff for running large simulations but I still get this error. Besides that, I've got some errors when running the simulations with 30 and 50 nodes with CFB enabled: ns: mac/802_11e/mac-802_11e.cc:80: : Assertion `dh->dh_fc.fc_type == 0x01' failed. This occurs when the packet that is to be transmitted in the function below is a data packet and not a control packet. inline void Mac802_11e::transmit(Packet *p, double t) { /* * If I'm transmitting without doing CS, such as when * sending an ACK, any incoming packet will be "missed" * and hence, must be discarded. */ if(rx_state_ != MAC_IDLE) { struct hdr_mac802_11e *dh = HDR_MAC802_11E(p); assert(dh->dh_fc.fc_type == MAC_Type_Control); assert(dh->dh_fc.fc_subtype == MAC_Subtype_ACK); assert(pktRx_); struct hdr_cmn *ch = HDR_CMN(pktRx_); ch->error() = 1; /* force packet discard */ } . My doubt is: when CFB is enabled, data packets may be transmitted without doing CS too, right? If so, assert shouldn't check just if p is a control packet but if it is a data packet too. I'd really appreciate your advice here. Other error I've got was: ns: mac/802_11e/mac-802_11e.cc:1107: : Assertion `pktTx_[pri]' failed. void Mac802_11e::RetransmitDATA(int pri) { struct hdr_cmn *ch; struct hdr_mac802_11e *mh; u_int32_t *rcount, *thresh; assert(mhBackoff_.backoff(pri) == 0); assert(pktTx_[pri]); assert(pktRTS_[pri] == 0); ch = HDR_CMN(pktTx_[pri]); mh = HDR_MAC802_11E(pktTx_[pri]); ... Does this mean that the packet that should be retransmitted doesn't exist?? Thank you very much for your help. BR Livia From ssdoria at gmail.com Mon Jan 19 15:43:23 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Mon, 19 Jan 2009 20:43:23 -0300 Subject: [ns] ns-2.33 Scheduler loosing events In-Reply-To: <4974311D.9020404@cs.ucy.ac.cy> References: <4974311D.9020404@cs.ucy.ac.cy> Message-ID: <1bc975700901191543m5e572c07oebc2f88b6290f81e@mail.gmail.com> Scheduler uses a simple ordered linked list to store events. You must consider: - memory limits; - invalid pointers (you cannot add an invalid pointer or dealocate it before scheduler remove it from the list); Invalid pointers are the main problem with scheduler. Beyond these concerns, I suggest you debug with eclipse and gbd. Sidney Doria UFCG / BRAZIL 2009/1/19 Nicholas Loulloudes : > > > Hi all, > > Is it possible the ns-2.33 scheduler is losing events? > > I generated aprox. 7000 events in a TCL source file and a lot of those > events when given to the scheduler are lost. > > This is a code snippet: > > void ProtName::create_Pkt(Packet* p){ > /* > * Create a packet with source and destination header > */ > > // Schedule it for later Transmission > Scheduler::instance().schedule(target_, p2, 0.0); > } > > Using printf's i can see the Scheduler correctly receives the packet, > but later on there is no other trace of it. > > Any suggestions? Is there a limit to the events the scheduler can handle? > > Thanks in advance. > > > -- > _________________________________________________ > > Nicholas Loulloudes > High Performance Computing Systems Laboratory (HPCL) > University of Cyprus, > Nicosia, Cyprus > > Tel: +357-22892663 > Email: loulloudes.n[at]cs.ucy.ac.cy > > > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From ssdoria at gmail.com Mon Jan 19 15:45:40 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Mon, 19 Jan 2009 20:45:40 -0300 Subject: [ns] accessing vaiable of c++ In-Reply-To: <20090119085321.46938.qmail@f6mail-144-154.rediffmail.com> References: <20090119085321.46938.qmail@f6mail-144-154.rediffmail.com> Message-ID: <1bc975700901191545y5229e733iaf819a2ff020a633@mail.gmail.com> You must BIND a variable to use it in both "sides". Read the specific chapter for this in the NS-2 manual, or take a look in a real example here: Sidney Doria UFCG / BRAZIL 2009/1/19 neeraj gupta : > > > hi all > > how can i access the variable in c++ in tcl script. Also if change the code in c++ to print the value of variable where that value will be printed. > > > Neeraj Gupta > Assistant Professor > HOD, CSE & IT Department > Hindu College of Engineering > Sonepat > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From ssdoria at gmail.com Mon Jan 19 15:57:28 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Mon, 19 Jan 2009 20:57:28 -0300 Subject: [ns] How can I send variable sized packet, and measure the size ? In-Reply-To: <1bc975700901191537h4a9a3cd3ue57238cbaba6174c@mail.gmail.com> References: <1a9612350901181337o4d7facf8h9176ddb47fec08ef@mail.gmail.com> <1bc975700901182131g54d0adaek45893aa721922c58@mail.gmail.com> <1a9612350901182200x4ba3c909j252e97cad8803ce7@mail.gmail.com> <1bc975700901191537h4a9a3cd3ue57238cbaba6174c@mail.gmail.com> Message-ID: <1bc975700901191557q6a5a64deu4c8a58329ed94bd5@mail.gmail.com> OK, I suppose a wired network (if you want to do this in a wireless net, read this tutorial: ). Any node receives a packet in the network layer by a method called RECV(). recv() decides what to do with the received packet. So the main parameter is the packet pointer itself. It reads the headers and decides discard that packet, forward it or send to upper layers. This is what a routing protocol does. In a choosed protocol, in the code fragment where It decides to forward a packet, change the code and add your packet manipulation. Sidney Doria UFCG / BRAZIL 2009/1/19 Daehee Kim : > Hi, Sidney > > Yes.. > > Danny > > 2009/1/18 Sidney Doria >> >> You mean the packet size (and content) may be increased or decreased >> in a forwarder node? >> >> Sidney Doria >> UFCG / Brazil >> >> 2009/1/18 Daehee Kim : >> > >> > Hi everyone. >> > >> > I want to send a packet which has variable size on the way to a >> > destination. >> > >> > That is, the packet size when it starts from a source node will be >> > different >> > from when it is at one of forwarded nodes. ; >> > the packet size is varied. >> > >> > How can I implement variable sized packet ? Also, How can I measure the >> > size >> > of the packet at any time ? >> > >> > Thanks >> > Danny >> > >> > -- >> > DaeHee(Danny) Kim >> > Department of Electrical Engineering and Computer Science(EECS), Wichita >> > State University >> > email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com >> > >> >> >> >> -- >> Sidney Doria >> Redes ad hoc m?veis >> Doutorado em Computa??o >> UFCG >> Brasil >> >> "Nessa jornada, o conhecimento ser? o seu escudo..." >> (Mestre dos Magos no epis?dio do grimoire de ouro) > > > > -- > DaeHee(Danny) Kim > Department of Electrical Engineering and Computer Science(EECS), Wichita > State University > Cell Phone : 1-607-321-9574 > email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From dlil_346 at students.itb.ac.id Mon Jan 19 17:16:16 2009 From: dlil_346 at students.itb.ac.id (dlil_346@students.itb.ac.id) Date: Tue, 20 Jan 2009 08:16:16 +0700 (WIT) Subject: [ns] script for broadcast message in VANET Message-ID: <10278.125.163.4.38.1232414176.squirrel@s.itb.ac.id> hi there, i need example script tcl for broadcast message in VANET, can anyone help me ? thank you. Regards, don pollo From pankajavallipb at gmail.com Mon Jan 19 22:21:17 2009 From: pankajavallipb at gmail.com (Panks PB) Date: Tue, 20 Jan 2009 11:51:17 +0530 Subject: [ns] how to generate graph in wireless scenario Message-ID: <99f02ad70901192221t59dc5abfk22064148fe015deb@mail.gmail.com> hi , I wanted to know the procedure to get Xgraph or Gnuplot from trace file. Thank u regards pankaj From mshrehmani at gmail.com Tue Jan 20 00:40:18 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 20 Jan 2009 09:40:18 +0100 Subject: [ns] how to generate graph in wireless scenario In-Reply-To: <99f02ad70901192221t59dc5abfk22064148fe015deb@mail.gmail.com> References: <99f02ad70901192221t59dc5abfk22064148fe015deb@mail.gmail.com> Message-ID: Hi As far as gnuplot is concerned, its very easy and there is no need of any language to learn it. I am sending you two very simple files. what you have to do is: 1. Install gnuplot in your linux (ubuntu) distribution. 2. Once you are in the directory of gnuplot, just write gnuplot at the command prompt 3. Then once you are in gnuplot command prompt then write load "Graph.p" 4. and see the graph. Code for file Graph.p =============== set title "Relationship between Two functions" set xlabel "First function" set ylabel "Second function" set xrange [0.0:100] set yrange [0.00:10] set grid set boxwidth 15 plot "Graph.tr" using 1:2 with lines lt 1 lw 2 title ''; replot set term post eps enhan color set out "Graph.eps"; replot Data present in Graph.tr =================== 0 0 10 3.16 20 4.47 30 5.48 40 6.32 50 7.07 60 7.75 70 8.37 80 8.94 90 9.49 100 10 Hope it helps Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France 2009/1/20 Panks PB > > hi , > I wanted to know the procedure to get Xgraph or Gnuplot from trace file. > > Thank u > > regards > pankaj > -- Mubashir Husain Rehmani From mshrehmani at gmail.com Tue Jan 20 00:40:18 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 20 Jan 2009 09:40:18 +0100 Subject: [ns] how to generate graph in wireless scenario In-Reply-To: <99f02ad70901192221t59dc5abfk22064148fe015deb@mail.gmail.com> References: <99f02ad70901192221t59dc5abfk22064148fe015deb@mail.gmail.com> Message-ID: Hi As far as gnuplot is concerned, its very easy and there is no need of any language to learn it. I am sending you two very simple files. what you have to do is: 1. Install gnuplot in your linux (ubuntu) distribution. 2. Once you are in the directory of gnuplot, just write gnuplot at the command prompt 3. Then once you are in gnuplot command prompt then write load "Graph.p" 4. and see the graph. Code for file Graph.p =============== set title "Relationship between Two functions" set xlabel "First function" set ylabel "Second function" set xrange [0.0:100] set yrange [0.00:10] set grid set boxwidth 15 plot "Graph.tr" using 1:2 with lines lt 1 lw 2 title ''; replot set term post eps enhan color set out "Graph.eps"; replot Data present in Graph.tr =================== 0 0 10 3.16 20 4.47 30 5.48 40 6.32 50 7.07 60 7.75 70 8.37 80 8.94 90 9.49 100 10 Hope it helps Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France 2009/1/20 Panks PB > > hi , > I wanted to know the procedure to get Xgraph or Gnuplot from trace file. > > Thank u > > regards > pankaj > -- Mubashir Husain Rehmani From kiran.cabs at gmail.com Tue Jan 20 02:25:54 2009 From: kiran.cabs at gmail.com (Kiran K Chauhan) Date: Tue, 20 Jan 2009 15:55:54 +0530 Subject: [ns] wireless nodes Ns2 Message-ID: <9d53a7ed0901200225w40f93b5eq57b4a99341638b47@mail.gmail.com> Hi All, I need help in simulating around 1000 nodes in 3000X3000 area. But when I run the simulation it works only to a maximum of 300 nodes. If I increase the number of nodes to say 400 , it gives segmentation error. I am using wireless 802.11 module for it. Thanks Regards Kiran From Faraz_Hasan-S at email.ulster.ac.uk Tue Jan 20 03:34:55 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Tue, 20 Jan 2009 11:34:55 +0000 Subject: [ns] Tracing problems... Message-ID: Hi everybody, I am tracing the infrarstructure mode wireless networks in which, a mobile is passing by an AP sending TCP data to it. I have placed the MAC Tracing ON. Consequently, I get a trace file, it is very difficult to read and understand directly. How do I know what messages are sent between the mobile and AP? Also, what is tracing? Suppose I am interested in recording the messages sent between mobile and AP for probing, registration and association, which tracing should I put ON. Please reply soon. Faraz From Faraz_Hasan-S at email.ulster.ac.uk Tue Jan 20 03:48:28 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Tue, 20 Jan 2009 11:48:28 +0000 Subject: [ns] Tracing problems... Message-ID: Hi everybody, I am tracing the infrarstructure mode wireless networks in which, a mobile is passing by an AP sending TCP data to it. I have placed the MAC Tracing ON. Consequently, I get a trace file, it is very difficult to read and understand directly. How do I know what messages are sent between the mobile and AP? Also, what is tracing? Suppose I am interested in recording the messages sent between mobile and AP for probing, registration and association, which tracing should I put ON. Please reply soon. Faraz I am getting a trace like this, how do I understand this. This is a very simple simulation, if more nodes are added, things will get even worse? s -t 0.001070000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 513f r -t 0.001646186 -Hs 0 -Hd -2 -Ni 0 -Nx 0.00 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 513f M 0.10000 0 (0.00, 100.00, 0.00), (199.00, 100.00), 100.00 M 0.10000 1 (25.00, 150.00, 0.00), (25.00, 125.00), 0.00 s -t 0.100810000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt b93f r -t 0.101386186 -Hs 0 -Hd -2 -Ni 0 -Nx 0.14 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt b93f s -t 0.200830000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt c93f r -t 0.201406174 -Hs 0 -Hd -2 -Ni 0 -Nx 10.14 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt c93f s -t 0.300075000 -Hs 0 -Hd -2 -Ni 0 -Nx 20.01 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 0 -Mt 800 -Is 0.255 -Id -1.255 -It AODV -Il 106 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 1 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST r -t 0.300923167 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 0 -Mt 800 -Is 0.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 30 -P aodv -Pt 0x2 -Ph 1 -Pb 1 -Pd 1 -Pds 0 -Ps 0 -Pss 4 -Pc REQUEST s -t 0.301133167 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt d33f r -t 0.301709335 -Hs 0 -Hd -2 -Ni 0 -Nx 20.17 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt d33f s -t 0.301999167 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 806 -P arp -Po REQUEST -Pms 1 -Ps 1 -Pmd 0 -Pd 0 r -t 0.302687335 -Hs 0 -Hd -2 -Ni 0 -Nx 20.27 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 806 -P arp -Po REQUEST -Pms 1 -Ps 1 -Pmd 0 -Pd 0 s -t 0.303002335 -Hs 0 -Hd -2 -Ni 0 -Nx 20.30 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 36b -Md 1 -Ms 0 -Mt 0 r -t 0.303354502 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 36b -Md 1 -Ms 0 -Mt 0 s -t 0.303364502 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 231 -Md 0 -Ms 0 -Mt 0 r -t 0.303668670 -Hs 0 -Hd -2 -Ni 0 -Nx 20.37 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 231 -Md 0 -Ms 0 -Mt 0 s -t 0.303678670 -Hs 0 -Hd -2 -Ni 0 -Nx 20.37 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 13a -Md 1 -Ms 0 -Mt 806 -P arp -Po REPLY -Pms 0 -Ps 0 -Pmd 1 -Pd 1 r -t 0.303915928 -Hs 1 -Hd 0 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 13a -Md 1 -Ms 0 -Mt 806 -P arp -Po REPLY -Pms 0 -Ps 0 -Pmd 1 -Pd 1 s -t 0.303925928 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 r -t 0.304230095 -Hs 0 -Hd -2 -Ni 0 -Nx 20.42 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 s -t 0.304379928 -Hs 1 -Hd 0 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 800 -P arp -Po REPLY -Pms 0 -Ps 0 -Pmd 1 -Pd 1 s -t 0.401050000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt d93f r -t 0.401626168 -Hs 0 -Hd -2 -Ni 0 -Nx 30.16 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt d93f s -t 0.500670000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e03f r -t 0.501246174 -Hs 0 -Hd -2 -Ni 0 -Nx 40.12 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e03f s -t 0.600870000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e33f r -t 0.601446186 -Hs 0 -Hd -2 -Ni 0 -Nx 50.14 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e33f s -t 0.700750000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e63f r -t 0.701326204 -Hs 0 -Hd -2 -Ni 0 -Nx 60.13 -Ny 100.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e63f s -t 0.800670000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt e93f s -t 0.900990000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt ec3f s -t 1.000850000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f03f s -t 1.100830000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f13f s -t 1.200710000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f33f s -t 1.300730000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f43f s -t 1.400530000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f63f s -t 1.500750000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f83f s -t 1.600950000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt f93f s -t 1.700690000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt fb3f s -t 1.801090000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt fc3f s -t 1.900910000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt fe3f s -t 2.001050000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 40 s -t 2.100870000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 40 s -t 2.200550000 -Hs 1 -Hd -2 -Ni 1 -Nx 25.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 1 -Mt 140 From fhg07 at c3sl.ufpr.br Tue Jan 20 04:22:44 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Tue, 20 Jan 2009 10:22:44 -0200 (BRST) Subject: [ns] 'stack smashing detected' - Sending many messages in a row Message-ID: <6137c4f9cc169fd01c1b6a6d21a38e63.squirrel@webmail.c3sl.ufpr.br> It is like the following: There are two kinds of nodes: The sink and the rest. The sink, in a initial phase, will send many broadcast messages, gradually increasing its transmission power, so that every node will be able to determine its necessary TP in order to reach the sink. Thus, I intended to create a loop, where the messages would keep being sent, just increasing the TP. 64 if (strcasecmp(argv[1], "pot_setup")==0) { 65 Packet* pkt = allocpkt(); 66 hdr_myunequal* hdr = (hdr_myunequal*) hdr_myunequal::access(pkt); 67 hdr_cmn *cmh = HDR_CMN(pkt); 68 for (i=0;i<255;i++) { 70 hdr->type=INCR_POT; 72 cmh->addr_type()= NS_AF_INET; 73 cmh->prev_hop_ = myaddr; 74 cmh->direction()= hdr_cmn::UP; 75 cmh->next_hop()= IP_BROADCAST; 76 send(pkt,0); 77 } 78 return TCL_OK; 79 } Something similar to this, but with the increasing TP operations and a possible delay inside it. My doubts: 1 - Why this function, when called from inside the tcl script, results in a stach smashing? The packets must be reallocated in every iteration? 2 - How do I create a delay inside my C++ code, as part of a protocol operation? I had tried previously with the sleep and usleep commands, but in the end the code had been successfully compiled and no delay occured at all. Thanks in Advance, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From fhg07 at c3sl.ufpr.br Tue Jan 20 05:09:05 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Tue, 20 Jan 2009 11:09:05 -0200 (BRST) Subject: [ns] Setting tcl script variables from inside C++ code Message-ID: Well, it is just as the title says: I would like to know how to change the value of my tcl script variables from inside my C++ code. I learned how to change C++ variables from inside the tcl code, but not the tcl variables from inside the C++ code. Is there any easy way? Thanks in advance, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From fhg07 at c3sl.ufpr.br Tue Jan 20 06:07:04 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Tue, 20 Jan 2009 12:07:04 -0200 (BRST) Subject: [ns] Delays in the C++ code Message-ID: <1c26c5409b2218f8b32115c6cde8d1cd.squirrel@webmail.c3sl.ufpr.br> There is a need of waiting a certain time in my C++ code, before continue the execution of an operation. I would like to know how can I "wait" this time. I tried the usleep command, but it did not work at all. I have been said that a time handler could be employed, but I am not sure on how to do so. Could anyone explain it better or maybe give a code example? Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From hajsou at gmail.com Tue Jan 20 08:38:38 2009 From: hajsou at gmail.com (souhaj) Date: Tue, 20 Jan 2009 08:38:38 -0800 (PST) Subject: [ns] Activate CTS/RTS.. Message-ID: <21566783.post@talk.nabble.com> hello i want to know how can i activate the use of CTS/RTS in the tcl file... if i don't mention any thing in the tcl file, their use is activated or disactivated.... PLZ i need help.. -- View this message in context: http://www.nabble.com/Activate-CTS-RTS..-tp21566783p21566783.html Sent from the ns-users mailing list archive at Nabble.com. From ufuktanyeri at yahoo.com Tue Jan 20 13:20:32 2009 From: ufuktanyeri at yahoo.com (utnabble) Date: Tue, 20 Jan 2009 13:20:32 -0800 (PST) Subject: [ns] Activate CTS/RTS.. In-Reply-To: <21566783.post@talk.nabble.com> References: <21566783.post@talk.nabble.com> Message-ID: <21571906.post@talk.nabble.com> Hi, I think Handshake can be turn on by setting the MAC_RTSThreshold in "../ns-allinone-2.33/ns-2.33/mac/mac-802_11.h" to 0 bytes which means that RTS will be send for all data packet transmissions. /** IEEE 802.11 Spec, section 11.4.4.2 ** default values for the MAC Attributes */ #define MAC_RTSThreshold 0 // bytes souhaj wrote: > > hello > > i want to know how can i activate the use of CTS/RTS in the tcl file... > if i don't mention any thing in the tcl file, their use is activated or > disactivated.... > > > PLZ > i need help.. > -- View this message in context: http://www.nabble.com/Activate-CTS-RTS..-tp21566783p21571906.html Sent from the ns-users mailing list archive at Nabble.com. From zizou_inf at hotmail.com Tue Jan 20 13:29:59 2009 From: zizou_inf at hotmail.com (zied naas) Date: Tue, 20 Jan 2009 21:29:59 +0000 Subject: [ns] Wireless Mesh in NS-2 Message-ID: hi I intent to simulate a WMN based 802.11 using NS2. But i don't know how. May be anyone can show me some guidance on how to go about it. Or is there any existing model of WMN in NS2. Thanks in advance! Zied Naas ?tudiant Ma?trise r?seaux de t?l?communication T?l: 514 803-3048 _________________________________________________________________ D?couvrez Windows Live Spaces et cr?ez votre site Web perso en quelques clics ! http://spaces.live.com/signup.aspx From safiya.nureen at yahoo.com Tue Jan 20 18:43:55 2009 From: safiya.nureen at yahoo.com (Safiya Nureen) Date: Tue, 20 Jan 2009 18:43:55 -0800 (PST) Subject: [ns] "node-config" funtion Message-ID: <658372.51059.qm@web112203.mail.gq1.yahoo.com> hi: can I use "node-config" function to configure the wired nodes? , e.g with? ? $ns_ node-config -llType LL \ ??? -macType?Mac/802_3 \ ??? -phyType?Phy/WiredPhy \ ??? -channelType? .... ? safiya From muhammad_usman_ashraf at yahoo.com Tue Jan 20 19:40:14 2009 From: muhammad_usman_ashraf at yahoo.com (Usman Ashraf) Date: Tue, 20 Jan 2009 19:40:14 -0800 (PST) Subject: [ns] Wireless Mesh in NS-2 In-Reply-To: Message-ID: <619014.98961.qm@web52805.mail.re2.yahoo.com> Wireless Mesh Network is an architecture and a subclass of multihop wireless networks. What you can do is simulate a wireless ad hoc network in ns and designate (logically) some of the nodes as gateways. As regards routing protocols, existing ad hoc routing protocols such as DSR and AODV are already available in NS and have been used as protocols for mesh networks. ? For mesh specific routing protocols, you will have to implement them. ? regards. --- On Wed, 1/21/09, zied naas wrote: From: zied naas Subject: [ns] Wireless Mesh in NS-2 To: ns-users at ISI.EDU Date: Wednesday, January 21, 2009, 2:29 AM hi I intent to simulate a WMN based 802.11 using NS2. But i don't know how. May be anyone can show me some guidance on how to go about it. Or is there any existing model of WMN in NS2. Thanks in advance! Zied Naas ?tudiant Ma?trise r?seaux de t?l?communication T?l: From msc.nit at gmail.com Tue Jan 20 21:07:38 2009 From: msc.nit at gmail.com (manish chaturvedi) Date: Wed, 21 Jan 2009 10:37:38 +0530 Subject: [ns] How to determine txpower from Pt_ Message-ID: Hi, I am trying to incorporate energy model in my NS2.33 simulation. I have some confusion between Pt_(used to set transmission range), and txpower(energy model parameter specifying enegy consumption in transmission). I need to know what is the relation between these values, and how can I calculate one(txpower) given the other(Pt_). I looked at some old discussions on this mailing list but could not make it from there. Please give information or point to some source of this information. Thanking you,Manish. From dineshnagare at gmail.com Tue Jan 20 22:19:07 2009 From: dineshnagare at gmail.com (dinesh nagare) Date: Wed, 21 Jan 2009 11:49:07 +0530 Subject: [ns] number of neighbors Message-ID: <928611020901202219q3a5e5022u24ca8a5a0b2c86b6@mail.gmail.com> hello all, I am Dinesh Nagare (India),working on ns2. I want to find the average number of neighbors and average path length. I also wants to include the use MAC protocol in simulation is IEEE 802.11 Distributed Coordination Function. How can i include the Different mobility models in my simulation ? How can i vary the transmission range? What is the Node Density? How can i decide the maximum number of nodes in a network for MANET? please help me as soon as posssible. thank you. From balakannansp at yahoo.com Tue Jan 20 23:04:11 2009 From: balakannansp at yahoo.com (Bala) Date: Tue, 20 Jan 2009 23:04:11 -0800 (PST) Subject: [ns] Fw: Reg: Wire & wireless simulation Message-ID: <230988.53414.qm@web90504.mail.mud.yahoo.com> Dear All, I'm very new to NS2 programming. So i need some sample codes for Wire & wireless network. Actually I need a code with Packet sending and receiving time calculation. So please any one send a code with its details... Thanks & Regards Balakannan From hajsou at gmail.com Tue Jan 20 23:31:26 2009 From: hajsou at gmail.com (souhaj) Date: Tue, 20 Jan 2009 23:31:26 -0800 (PST) Subject: [ns] Activate CTS/RTS.. In-Reply-To: <21571906.post@talk.nabble.com> References: <21566783.post@talk.nabble.com> <21571906.post@talk.nabble.com> Message-ID: <21578287.post@talk.nabble.com> ok thanks.. utnabble wrote: > > Hi, > > I think Handshake can be turn on by setting the MAC_RTSThreshold > in "../ns-allinone-2.33/ns-2.33/mac/mac-802_11.h" to 0 bytes > which means that RTS will be send for all data packet transmissions. > > /** IEEE 802.11 Spec, section 11.4.4.2 > ** default values for the MAC Attributes */ > > #define MAC_RTSThreshold 0 // bytes > > > > souhaj wrote: >> >> hello >> >> i want to know how can i activate the use of CTS/RTS in the tcl file... >> if i don't mention any thing in the tcl file, their use is activated or >> disactivated.... >> >> >> PLZ >> i need help.. >> > > -- View this message in context: http://www.nabble.com/Activate-CTS-RTS..-tp21566783p21578287.html Sent from the ns-users mailing list archive at Nabble.com. From rajstha2006 at gmail.com Wed Jan 21 00:47:51 2009 From: rajstha2006 at gmail.com (Rainn) Date: Wed, 21 Jan 2009 00:47:51 -0800 Subject: [ns] Mobility Model Message-ID: <7b8896aa0901210047n5819718bxf8636582994dee11@mail.gmail.com> Hello Everyone, I am wondering, how can I generate "traffic model" and "mobility model" for VANETs?? Does "cbrgen.tcl" and "setdest'' works in case of VANETs to generate those models??. Thank you in advance! From nithin0423 at gmail.com Wed Jan 21 03:55:56 2009 From: nithin0423 at gmail.com (Nithin Reddy) Date: Wed, 21 Jan 2009 17:25:56 +0530 Subject: [ns] SIMULATION OF COOPERATIVE MAC PROTOCOLS Message-ID: <8a503aca0901210355x2e234b78rbc3411e77a37561f@mail.gmail.com> Dear ns users, I am new to ns-2 simulator. I want to simulate COOPMAC protocols on it. Can anyone please help me out. I want tcl script for IEEE 802.11b CSMA/CA DCF MAC protocol so that I can start my work. Please help me. Waiting for your reply. From fhg07 at c3sl.ufpr.br Wed Jan 21 04:09:03 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Wed, 21 Jan 2009 10:09:03 -0200 (BRST) Subject: [ns] Problem changing node color and shape Message-ID: <0321b67cf3878d3f2f7d0cef2da17c2a.squirrel@webmail.c3sl.ufpr.br> I am trying to change the color and shape of some nodes in order to make it easier to understand what happens when seeing the nam simulation. The ran commands are currently these: 78 $node_(0) color green 79 $node_(0) shape hexagon It seems to be correct, but nothing does change at all in nam. Is there anything missing? A command that should be ran before these? Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From mshrehmani at gmail.com Wed Jan 21 05:08:08 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Wed, 21 Jan 2009 14:08:08 +0100 Subject: [ns] number of neighbors In-Reply-To: <928611020901202219q3a5e5022u24ca8a5a0b2c86b6@mail.gmail.com> References: <928611020901202219q3a5e5022u24ca8a5a0b2c86b6@mail.gmail.com> Message-ID: Hi Dinesh Nagare, - To find the average number of neighbors, first you need to know the neighbors of each and every node, then you will be able to calculate the average number of neighbors. - You can easily include IEEE 802.11 protocol in your simulation by using this command set val(mac) Mac/802_11 ;# MAC type $ns node-config -adhocRouting $val(rp) \ -macType $val(mac) \ - You can generate different mobility models by using java based BonnMotion http://www.cs.uni-bonn.de/IV/BonnMotion/ - For variying the transmission range, you have to play with RXThresh_and Ctx threshold values. - You can declare the maximum number of nodes in your tcl script. Regards Mubashir Husain Rehmani Lip6, UMPC, Paris, France http://www-npa.lip6.fr/~rehmani/ 2009/1/21 dinesh nagare > > hello all, > I am Dinesh Nagare (India),working on ns2. > I want to find the average number of neighbors and average path length. > I also wants to include the use MAC protocol in simulation is IEEE 802.11 > Distributed Coordination Function. > How can i include the Different mobility models in my simulation ? > How can i vary the transmission range? > What is the Node Density? > How can i decide the maximum number of nodes in a network for MANET? > > > please help me as soon as posssible. > > > thank you. > -- Mubashir Husain Rehmani From mwoldese at ee.ucl.ac.uk Wed Jan 21 05:55:06 2009 From: mwoldese at ee.ucl.ac.uk (mosesw) Date: Wed, 21 Jan 2009 05:55:06 -0800 (PST) Subject: [ns] pcap file usage in simulation In-Reply-To: References: Message-ID: <21583592.post@talk.nabble.com> Hi all, I would appreciate it if you could help me. I am having the same problem, which is importing traced traffic (file) into ns2.31. what do I need to make it work Network/File? which ns version do i need to use? Any solution, link, script or code will be helpful. Cheers, moses Larry Brigman wrote: > > > I am needing to run a simulation in NS2 that uses > pcap or tcpdump trace files as the traffic in the test. > > I don't get any errors with this but I also don't get any traffic. > Do I need to explicitly set routing or is there something else I am > missing? > > My no-error-non-working example > #Create a simulator object > set ns [new Simulator] > $ns use-scheduler Heap > > #Open the NAM trace file > set nf [open pcap_ex.nam w] > $ns namtrace-all $nf > > $ns color 400 Green > $ns color 500 Yellow > $ns color 900 Red > > #Define a 'finish' procedure > proc finish {} { > global ns nf > $ns flush-trace > #Close the NAM trace file > close $nf > exit 0 > } > > > ###### Setup the Network ############################ > set r(0) [ $ns node ] > set r(1) [ $ns node ] > > ####### Create the network links between nodes ###### > set BANDWIDTH 80Mb > set DELAY 10us > $ns simplex-link $r(0) $r(1) $BANDWIDTH $DELAY DropTail > > $ns simplex-link-op $r(0) $r(1) orient right > > ######## Setup the traffic types ######## > set pcap0 [new Network/Pcap/File ] > ##### open the trace file > $pcap0 open readonly network.dump > > set null [new Agent/Null] > set tap0 [new Agent/Tap] > $ns attach-agent $r(1) $null > $tap0 network $pcap0 > $ns attach-agent $r(0) $tap0 > > ####### Notify that we are starting the run... > puts "Starting run..." > > ####### Run the above configured simulation > $ns run > > > -- View this message in context: http://www.nabble.com/pcap-file-usage-in-simulation-tp11018312p21583592.html Sent from the ns-users mailing list archive at Nabble.com. From mwoldese at ee.ucl.ac.uk Wed Jan 21 05:58:22 2009 From: mwoldese at ee.ucl.ac.uk (moses woldeselassie) Date: Wed, 21 Jan 2009 13:58:22 +0000 Subject: [ns] import tcpdump trace file (Pcap/File network objects) Message-ID: <497729FE.6010903@ee.ucl.ac.uk> Hi all I would appreciate it if you could help me. I need to import tcpdump trace file into ns2. 1. Which ns2 does support the Pcap/File? set pcap0 [new Network/Pcap/File ] I found the following doc at http://www.isi.edu/nsnam/ns/ns-emulation.html. Pcap/File Network Objects These objects are similar to the Pcap/BPF objects, except that network data is taken from a trace file rather than the live network. As such, the notion of promiscuous mode and the naming of a particular interface (available to the BPF objects) are not available for the file objects. In addition, the ability to create trace files is still under development. This facility will provide the ability to create tcpdump-compatible trace files. Cheers, moses From mwoldese at ee.ucl.ac.uk Wed Jan 21 06:02:39 2009 From: mwoldese at ee.ucl.ac.uk (moses woldeselassie) Date: Wed, 21 Jan 2009 14:02:39 +0000 Subject: [ns] import tcpdump file into ns [new Network/Pcap/File] Message-ID: <49772AFF.5040700@ee.ucl.ac.uk> Hi all, I would appreciate it if you could help me. I am having the same problem, which is importing traced traffic (file) into ns2.31. what do I need to make it work Network/File? which ns version do i need to use? Any solution, link, script or code will be helpful. Cheers, moses From safiya.nureen at yahoo.com Wed Jan 21 18:57:11 2009 From: safiya.nureen at yahoo.com (Safiya Nureen) Date: Wed, 21 Jan 2009 18:57:11 -0800 (PST) Subject: [ns] understanding ns2 ,otcl, c++ linkage Message-ID: <458280.81340.qm@web112206.mail.gq1.yahoo.com> Hi all I am Safiya @ king faisal university trying to understand the ns2. Actually I am new to data communication and C++. I need to know about the ns2 fundamental concept. what is the purpose of C files , H files , tcl files , and their relation??How to understand relation of the above files with each other. help me thanks safiya From vejay99 at gmail.com Wed Jan 21 21:23:12 2009 From: vejay99 at gmail.com (Vijay J) Date: Thu, 22 Jan 2009 10:53:12 +0530 Subject: [ns] PASTRY implementation in NS-2 Message-ID: <495aa1a40901212123m7c7979c4k32a58985d9afc849@mail.gmail.com> Hi, I am Vijay working on Ad-Hoc protocols in NS-2. Is anybody working towards the implementations of Pastry or MADPastry protocols in NS-2? Are there any implementations of these protocols in NS-2 available? I request some guidance and help in this regard. Thanking you in Advance. Regards & Thanks, Vijay From samora at mail2song.com Wed Jan 21 23:19:50 2009 From: samora at mail2song.com (samar asf) Date: Wed, 21 Jan 2009 23:19:50 -0800 Subject: [ns] example on aodv simulation Message-ID: <13d301c97c61$d01419e0$016a010a@mail2world.com> Hi I sent this message previously but no answer please reply me becuase i need it soon. where can i found my question and the replies. (I am beginner in ns2, and i want to learn it quickly because i need it in my project. so i want to guide me what topices must i start reading? and i want to know the steps to run any example in ns2 under windows xp sp2. i want to know how to run aodv example , and show how it work in ns2 ,because my project is to adjust some feauters in aodv protocol. please help me and reply me soon because i need it quickly. thanks very much.)

_______________________________________________________________
Get the Free email that has everyone talking at http://www.mail2world.com
Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!
From mmm59 at aub.edu.lb Wed Jan 21 23:59:39 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Thu, 22 Jan 2009 09:59:39 +0200 Subject: [ns] How to get the Nodes' coordinate from TCL to C++ Message-ID: <20090122095939.fvsdfr82680wkc8g@imail.aub.edu.lb> Dear NS Users, Can someone please tell me how you can retrieve the coordinates of the network nodes from a TCL file into C++. So is their some loop or something that can be written in C++ and traverses all the nodes and gets X, Y, & Z, and how is it written. Hope you can help me. Thanks, Mathiew From akdalim at yahoo.com Thu Jan 22 00:57:38 2009 From: akdalim at yahoo.com (Syed Md. Ashraful Karim) Date: Thu, 22 Jan 2009 00:57:38 -0800 (PST) Subject: [ns] NAM don't update the mobile node movement's starting position Message-ID: <895125.80895.qm@web34407.mail.mud.yahoo.com> Hi I am using NAM to show the mobile node movement in ns2.33. NAM is showing the moving nodes, but another initial image of the node is also kept in the screen. can anybody tell me why? and some of the nodes are sometimes shown in ash color, not in the default color black. If you know why and how can I solve it, please let me know. attached is a snapshot of nam. link - http://folk.ntnu.no/ashraful/file/ns/nam-screen.jpg
many many thanks in advance. - Ashraf From tuffaha at gmail.com Thu Jan 22 01:03:49 2009 From: tuffaha at gmail.com (Waleed Tuffaha) Date: Thu, 22 Jan 2009 11:03:49 +0200 Subject: [ns] Setting tcl script variables from inside C++ code In-Reply-To: References: Message-ID: <141cb92a0901220103l671c53c0p876431a9316937a2@mail.gmail.com> Hello Fernando, You can use the following code: Tcl& tcl = Tcl::instance(); sprintf(tcl.buffer(), "set my_tcl_var %f", 10.123); tcl.eval(); Note that you can use the same method to execute any command on Tcl. You can find more information in chapter 3 of the ns-manual. Good luck Waleed On Tue, Jan 20, 2009 at 3:09 PM, wrote: > > Well, it is just as the title says: I would like to know how to change the > value of my tcl script variables from inside my C++ code. I learned how to > change C++ variables from inside the tcl code, but not the tcl variables > from inside the C++ code. Is there any easy way? > > > Thanks in advance, > -- > Fernando Henrique Gielow - UFPR - NR2 > Computer Science graduation student. > > From mshrehmani at gmail.com Thu Jan 22 01:16:16 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Thu, 22 Jan 2009 10:16:16 +0100 Subject: [ns] example on aodv simulation In-Reply-To: <13d301c97c61$d01419e0$016a010a@mail2world.com> References: <13d301c97c61$d01419e0$016a010a@mail2world.com> Message-ID: Hi Samar asf, You can use the following code to run a simple example of aodv. ======================================================================================== # A 3-node example for ad-hoc simulation with AODV # Define options set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 500 ;# X dimension of topography set val(y) 400 ;# Y dimension of topography set val(stop) 150 ;# time of simulation end set ns [new Simulator] set tracefd [open simple.tr w] set windowVsTime2 [open win.tr w] set namtrace [open simwrls.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namtrace $val(x) $val(y) # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # # Create nn mobilenodes [$val(nn)] and attach them to the channel. # # configure the nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace ON for {set i 0} {$i < $val(nn) } { incr i } { set node_($i) [$ns node] } # Provide initial location of mobilenodes $node_(0) set X_ 5.0 $node_(0) set Y_ 5.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 # Generation of movements $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" $ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0" # Set a TCP connection between node_(0) and node_(1) set tcp [new Agent/TCP/Newreno] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns attach-agent $node_(0) $tcp $ns attach-agent $node_(1) $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 10.0 "$ftp start" # Printing the window size proc plotWindow {tcpSource file} { global ns set time 0.01 set now [$ns now] set cwnd [$tcpSource set cwnd_] puts $file "$now $cwnd" $ns at [expr $now+$time] "plotWindow $tcpSource $file" } $ns at 10.1 "plotWindow $tcp $windowVsTime2" # Define node initial position in nam for {set i 0} {$i < $val(nn)} { incr i } { # 30 defines the node size for nam $ns initial_node_pos $node_($i) 30 } # Telling nodes when the simulation ends for {set i 0} {$i < $val(nn) } { incr i } { $ns at $val(stop) "$node_($i) reset"; } # ending nam and the simulation $ns at $val(stop) "$ns nam-end-wireless $val(stop)" $ns at $val(stop) "stop" $ns at 150.01 "puts \"end simulation\" ; $ns halt" proc stop {} { global ns tracefd namtrace $ns flush-trace close $tracefd close $namtrace } $ns run =========================================================================================== Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France www-npa.lip6.fr/~rehmani 2009/1/22 samar asf > > Hi > I sent this message previously but no answer please reply me becuase i > need it soon. > where can i found my question and the replies. > (I am beginner in ns2, and i want to learn it quickly because i need it > in my project. > so i want to guide me what topices must i start reading? and i want to > know the steps to run any example in ns2 under windows xp sp2. > i want to know how to run aodv example , and show how it work in ns2 > ,because my project is to adjust some feauters in aodv protocol. > please help me and reply me soon because i need it quickly. > thanks very much.) > > >

style="font-size:13.5px">_______________________________________________________________
Get > the Free email that has everyone talking at http://www.mail2world.com target=new>http://www.mail2world.com
> Unlimited Email Storage – POP3 – Calendar > – SMS – Translator – Much More!
> -- Mubashir Husain Rehmani From mmm59 at aub.edu.lb Thu Jan 22 01:48:05 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Thu, 22 Jan 2009 11:48:05 +0200 Subject: [ns] How to get the Nodes' coordinate from TCL to C++ In-Reply-To: <141cb92a0901220139p718701e1n25327957c3571672@mail.gmail.com> References: <20090122095939.fvsdfr82680wkc8g@imail.aub.edu.lb> <141cb92a0901220139p718701e1n25327957c3571672@mail.gmail.com> Message-ID: <20090122114805.o2758cc1cswso0gs@imail.aub.edu.lb> Hello Walid, Thanks for the reply. You said getting the coordinates from the TCL file easier... i have them stored in a topography.tcl file (or so i recall) that has the X Y Z coordinates of each sensor. So what's the way to get them from the TCL file directly to be used in C++ ?? Thanks alot, Mathiew Quoting Waleed Tuffaha : > Hello Mathiew, > > ( Note that I didn't test this ! ) > > The "Node class" uses a "Location class" in which the X,Y,Z variables are > defined. The "mobilenode class" inherits from the node class. > > So, if node_ is a pointer to a mobilenode, then you should be able to get > the coordinates using: > int x,y,z; > node_->location_->getLocation(&x, &y, &z) > > So if you have an array containing pointers to all the nodes then you can > loop on the array and get the coordinates for each node. > > I think that getting the coordinates from Tcl is easier, but I don't know > what exactly you are doing. > > Hope this helps > -- Waleed > > On Thu, Jan 22, 2009 at 9:59 AM, Mathiew Moussa wrote: > >> >> Dear NS Users, >> >> Can someone please tell me how you can retrieve the coordinates of the >> network nodes from a TCL file into C++. >> So is their some loop or something that can be written in C++ and >> traverses all the nodes and gets X, Y, & Z, and how is it written. >> >> >> Hope you can help me. >> Thanks, >> Mathiew >> >> > From v_mandhare at yahoo.com Thu Jan 22 01:50:12 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Thu, 22 Jan 2009 15:20:12 +0530 (IST) Subject: [ns] Fw: Cbr traffic use in Tcp or not for MAODV Message-ID: <395446.33720.qm@web94801.mail.in2.yahoo.com> --- On Mon, 19/1/09, vaishali mandhare wrote: From: vaishali mandhare Subject: Fw: Cbr traffic use in Tcp or not for MAODV To: "ns user" Date: Monday, 19 January, 2009, 9:16 PM --- On Mon, 19/1/09, vaishali mandhare wrote: From: vaishali mandhare Subject: Cbr traffic use in Tcp or not for MAODV To: "ns user" Date: Monday, 19 January, 2009, 1:24 PM Hello, I am doing performance comparision of tcp and cbr in maodv on ns2.26.Can anybody tell me that cbr traffic is used in tcp script for calculating the parameter packet dilivery ratio and latency.Plz Plz help me!!!! Thanks!!!? Add more friends to your messenger and enjoy! Invite them now. Add more friends to your messenger and enjoy! Invite them now. Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/ From tuffaha at gmail.com Thu Jan 22 02:03:16 2009 From: tuffaha at gmail.com (Waleed Tuffaha) Date: Thu, 22 Jan 2009 12:03:16 +0200 Subject: [ns] How to determine txpower from Pt_ In-Reply-To: References: Message-ID: <141cb92a0901220203l2166aa6ex7bd193f04684c477@mail.gmail.com> Hello Manish, My understanding is that the two parameters are not related. Pt_ defines the amount of power transmitted from the antenna (Phy/WirelessPhy), and thus; it defines (together with the RXThresh_ parameter) the range of the mobile-node. And it is not used by the energy model. txpower defines how much power a mobile-node, as a whole, consumes when it is transmitting, and it is the one used by the energy model. For example; the PRO/Wireless 3945ABG card on my laptop can consume a maximum power of 1.8 Watt while transmitting and a maximum of 1.4 Watt while receiving. But the maximum transmitting power is 15 dBm ( ~ 31 mW) ! -- Waleed Tuffaha On Wed, Jan 21, 2009 at 7:07 AM, manish chaturvedi wrote: > > Hi, > > I am trying to incorporate energy model in my NS2.33 simulation. I have > some confusion between Pt_(used to set transmission range), and > txpower(energy model parameter specifying enegy consumption in > transmission). I need to know what is the relation between these values, > and > how can I calculate one(txpower) given the other(Pt_). I looked at some old > discussions on this mailing list but could not make it from there. Please > give information or point to some source of this information. > > Thanking you,Manish. > From fhg07 at c3sl.ufpr.br Thu Jan 22 04:51:45 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Thu, 22 Jan 2009 10:51:45 -0200 (BRST) Subject: [ns] NS transmission powers based in tinyOS Message-ID: In the protocol that I am currently implementing on NS2 the transmission powers does vary a lot. Its initial implemention was done in tinyOS, and that is why I need to simulate its available transmission powers. There is a range of 255 possible ones in tinyOS, and I would like to change the NS variables (Pt_ [Transmit Power], CPThresh_ [Collision Threshold], CSThresh_ [Carrier Sense Power], RXThresh_ [Receive Power Threshold]), so an approximate behavior could be simulated. I do know the power consumption in mA and the Pout in dBm for each one of these 255 possible powers. Is there be any possible way to set the NS variables so that I would manage to reach an approximate behavior to tinyOS? Thanks in advance, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From msc.nit at gmail.com Thu Jan 22 06:48:12 2009 From: msc.nit at gmail.com (manish chaturvedi) Date: Thu, 22 Jan 2009 20:18:12 +0530 Subject: [ns] How to generate energy traces periodically Message-ID: Hi, I am using energy model in my NS simulation. When energy trace is ON, every time the node energy changes, the trace is generated. This makes trace file size larger. Is there any way to generate trace of energy status of all nodes at some fixed time or periodically? Please inform or point me to some source of information. Thanking you, Manish From mshrehmani at gmail.com Thu Jan 22 07:08:09 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Thu, 22 Jan 2009 16:08:09 +0100 Subject: [ns] How to generate energy traces periodically In-Reply-To: References: Message-ID: Hi Manish, Yes, it is possible. What you have to do is that, in the cmu trace file, where energy module is given, just write a condition that if simulator time is 100 secs, then print the trace in the trace file or you can declare a timer over there which will expire as per your desire. Each time when it will expire, it will print the energy values in the trace file. Hope it helps Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France www-npa.lip6.fr/~rehmani 2009/1/22 manish chaturvedi > > Hi, > > I am using energy model in my NS simulation. > > When energy trace is ON, every time the node energy changes, the trace > is generated. This makes trace file size larger. Is there any way to > generate trace of energy status of all nodes at some fixed time or > periodically? > > Please inform or point me to some source of information. > > Thanking you, > Manish > > -- Mubashir Husain Rehmani From nadine341 at yahoo.fr Thu Jan 22 09:41:23 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Thu, 22 Jan 2009 17:41:23 +0000 (GMT) Subject: [ns] print messages describing the simulation from the terminal to a text file Message-ID: <808106.78525.qm@web28304.mail.ukl.yahoo.com> Hi all, Can you tell me please how can I print messages written in the terminal window during the simulation , to a text file? Thank you for your help. From vinioktm at hotmail.com Thu Jan 22 09:47:25 2009 From: vinioktm at hotmail.com (Vinicio Guanochanga) Date: Thu, 22 Jan 2009 12:47:25 -0500 Subject: [ns] HMIP example Message-ID: Hi users,, Anybody can send me an example of HMIP, I'm trying to do it, but My script don't do a handoff..,,, My script is: # Main Program proc main {} { global opt ns namtrace tracefd cn_ node_ wtopo source /home/vinicio/ns-allinone-2.31/ns-2.31/tcl/mobility/timer.tcl # Define options set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy set opt(mac) Mac/802_11 set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(ant) Antenna/OmniAntenna set opt(x) 800 ;# X dimension of the topography set opt(y) 800 ;# Y dimension of the topography set opt(ifqlen) 50 ;# max packet in ifq set opt(seed) 0.0 set opt(tr) out.tr ;# trace file set opt(nam) out.nam ;# nam trace file set opt(adhocRouting) NOAH set opt(nn) 3 ;# how many nodes are simulated set opt(stop) 55.0 ;# simulation time set ns [new Simulator] set tracefd [open $opt(tr) w] $ns trace-all $tracefd set namtrace [open $opt(nam) w] $ns namtrace-all $namtrace $ns color 1 red create-my-topo log-mn-movement_no_topo set-cbr $ns at $opt(stop) "finish" $ns run } #################### Topologia ############################## proc create-my-topo {} { global ns opt wtopo node_ cn_ set wtopo [new Topography] $wtopo load_flatgrid $opt(x) $opt(y) set num_wired_nodes 2 set num_bs_nodes 2 set num_wireless_nodes 1 Agent/MIPMH set reg_rtx_ 1.0 $ns set-address-format hierarchical Simulator set mobile_ip_ 1 set HFA_Routing 1 AddrParams set domain_num_ 2 lappend cluster_num 1 3 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 2 1; AddrParams set nodes_num_ $eilastlevel set cn_ [$ns node 0.0.0] $cn_ set X_ 400.0 $cn_ set Y_ 400.0 $cn_ set Z_ 0.0 $ns initial_node_pos $cn_ 10 set router [$ns node 1.0.0] $router set X_ 400.0 $router set Y_ 300.0 $router set Z_ 0.0 $ns initial_node_pos $router 10 $ns node-config -adhocRouting $opt(adhocRouting) \ -mobileIP ON \ -addressType hierarchical \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $wtopo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF source /home/vinicio/ns-allinone-2.31/ns-2.31/tcl/cims/hfa-lib_ns-2.26.tcl Simulator set node_factory_ MobileNode/GFA Simulator set EnableHierRT_ 1 set god_ [create-god $opt(nn)] set gma1 [$ns node 1.1.0] $gma1 set X_ 200.0 $gma1 set Y_ 200.0 $gma1 set Z_ 0.0 $ns initial_node_pos $gma1 10 makeHfaBS $gma1 set gma2 [$ns node 1.2.0] $gma2 set X_ 600.0 $gma2 set Y_ 200.0 $gma2 set Z_ 0.0 $ns initial_node_pos $gma2 10 makeHfaBS $gma2 createAddrTable $cn_ createAddrTable $router set BS1address [AddrParams set-hieraddr [$gma1 node-addr]] $ns node-config -wiredRouting OFF; set node_(3) [$ns node 1.1.1] $node_(3) set X_ 200.0 $node_(3) set Y_ 100.0 $node_(3) set Z_ 0.0 set GFAaddress [AddrParams set-hieraddr [$node_(3) node-addr]] makeHfaMH $node_(3) $GFAaddress set NumOfHO 110 $ns at 1.0 "$node_(3) setdest 600 100 15" $ns duplex-link $cn_ $router 100Mb 2.0ms DropTail $ns duplex-link $router $gma1 100Mb 2.0ms DropTail $ns duplex-link $router $gma2 100Mb 2.0ms DropTail } ######################### proc log-mn-movement_no_topo { } { Class LogTimer -superclass Timer LogTimer instproc timeout {} { global node_ logtimer $node_(3) log-movement $self sched 1 } set logtimer [new LogTimer] $logtimer sched 1 } ############################### proc finish {} { global ns tracefd namtrace opt cn_ node_ puts "Simulacion terminada" $ns flush-trace flush $tracefd close $tracefd close $namtrace exec nam $opt(nam) & exit 0 } ########################## trafico ###################### #---------------------------< Tr?fico desde el CN hacia el MN >------------------------------ proc set-cbr { } { global ns cn_ node_ udp dst src # CREACI?N DE UN AGENTE UDP # Nodo fuente set udp [new Agent/UDP] $ns attach-agent $cn_ $udp # Nodo destino set dst [new Agent/Null] $ns attach-agent $node_(3) $dst #Conexi?n virtual de los nodos fuente y destino $ns connect $udp $dst # Define el color del flujo de datos UDP $udp set fid_ 1 # Configuraci?n del tr?fico CBR set src [new Application/Traffic/CBR] $src set packetSize_ 256 $src set rate_ 64000 $src attach-agent $udp # Inicio del tr?fico CBR $ns at 3.0 "$src start" } main or if someone can help and debugg my script I'm thankful Vinicio,.. _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From lobmar at voila.fr Thu Jan 22 11:41:21 2009 From: lobmar at voila.fr (lobmar@voila.fr) Date: Thu, 22 Jan 2009 20:41:21 +0100 (CET) Subject: [ns] wireless node Message-ID: <6056160.977271232653281663.JavaMail.www@wwinf4602> Hi ns-users, I need help, I want use two antennas per node. Can anyone help me? Thanks ____________________________________________________Avec Voila, r?alisez en toute simplicit? votre videoblog ! http://video.voila.fr/mktg/?op=videoblog From nadine341 at yahoo.fr Thu Jan 22 14:45:32 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Thu, 22 Jan 2009 22:45:32 +0000 (GMT) Subject: [ns] Re : print messages describing the simulation from the terminal to a text file In-Reply-To: <808106.78525.qm@web28304.mail.ukl.yahoo.com> Message-ID: <811520.22314.qm@web28309.mail.ukl.yahoo.com> Hi, Thank you for Diana , F?lix and moses who gave me the solution of printing messages to a txt file, the solution is: ns name_of_tclFile.tcl? > file.txt Thanks. --- En date de?: Jeu 22.1.09, Nadine Chen a ?crit?: De: Nadine Chen Objet: [ns] print messages describing the simulation from the terminal to a text file ?: ns-users at ISI.EDU Date: Jeudi 22 Janvier 2009, 17h41 Hi all, Can you tell me please how can I print messages written in the terminal window during the simulation , to a text file? Thank you for your help. From nithin0423 at gmail.com Thu Jan 22 22:42:05 2009 From: nithin0423 at gmail.com (Nithin Reddy) Date: Fri, 23 Jan 2009 12:12:05 +0530 Subject: [ns] SIMULATION OF COOPERATIVE MAC PROTOCOLS Message-ID: <8a503aca0901222242g10244167q9aac6d2f0e84a220@mail.gmail.com> Hi . I am beginner in ns2, and I want to learn it quickly because I need it in my project. I have to simulate cooperative mac protocols. Has anyone worked on it. If so, please help me. I want to know how to run simple IEEE 802.11b MAC CSMA/CA DCF protocol on ns-2 so that I can start my work. Can anyone please send tcl script for it.Has anyone worked on rDCF,RBAR, COOPMAC protocols on ns-2. If so,please tell me so that I can take your guidance. please help me and reply me soon because i need it quickly. thanks very much. From kkunagorn at hotmail.com Fri Jan 23 00:09:09 2009 From: kkunagorn at hotmail.com (Kunagorn K.) Date: Fri, 23 Jan 2009 15:09:09 +0700 Subject: [ns] How to get node ID in IFQ? Message-ID: Hi all: I would like to monitor which nodes drop packet in IFQ. Thus, I try to edit drop-tail.cc and priqueue.cc files but I don't know how to access node id in these files. Do anyone know how to get node id in IFQ? Best regards, Kunagorn K. _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/photos.aspx From Eric.Wuensche at rohde-schwarz.com Fri Jan 23 04:02:58 2009 From: Eric.Wuensche at rohde-schwarz.com (Eric.Wuensche@rohde-schwarz.com) Date: Fri, 23 Jan 2009 13:02:58 +0100 Subject: [ns] Antwort: print messages describing the simulation from the terminal to a text file In-Reply-To: <808106.78525.qm@web28304.mail.ukl.yahoo.com> Message-ID: in linux you just use "your command" >> output which redirects the output the commadn creates into the file output :) ns-users-bounces at ISI.EDU schrieb am 22.01.2009 18:41:23: > > Hi all, > Can you tell me please how can I print messages written in the > terminal window during the simulation , to a text file? > Thank you for your help. > > > > From fhg07 at c3sl.ufpr.br Fri Jan 23 04:43:24 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Fri, 23 Jan 2009 10:43:24 -0200 (BRST) Subject: [ns] $node set X_/Y_/Z_ parameter unit - meters? Message-ID: <62a327fb8710333491ea6c05b39ce679.squirrel@webmail.c3sl.ufpr.br> What is the unit of distance of this command? Is it meter? I want to know because the distance between the nodes is extremely relevant in what I am developing. Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From arne.lie at item.ntnu.no Fri Jan 23 12:43:09 2009 From: arne.lie at item.ntnu.no (Arne Lie) Date: Fri, 23 Jan 2009 21:43:09 +0100 Subject: [ns] link_->bandwidth() returns ZERO Message-ID: <5E7F5A054F4141AD9FC8D55554A88726@sintef.no> Hi, I've implemented my own Queue system which worked great under ns-2.28. Now I have moved to ns-2.33 and I notice that I am not longer capable of transfering the link bandwidth correctly from TCL to the C/C++ source running the Queue system. Actually, the link_->bandwidth() call, which should (and used to correctly) return the link bandwidth, now returns zero! Is this a known issue? Or, could I have ported my Queue system incorrectly from ns-2.28? Besides this, the Queuing system works correctly. -Arnie Trondheim, Norway From dahkim77 at gmail.com Fri Jan 23 18:01:02 2009 From: dahkim77 at gmail.com (Daehee Kim) Date: Fri, 23 Jan 2009 20:01:02 -0600 Subject: [ns] Too many open files error. Message-ID: <1a9612350901231801x111bfefycc8848b9568d1264@mail.gmail.com> Hi everyone I got following error message "too many open files" I run simulation by typing " ns test.tcl" cbr1024.tcl is the connection pattern which has steps for simulation processing. It is called by test.tcl could you say possible reason for this ? Thanks. warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead couldn't read file "./cbr1024.tcl": too many open files while executing "source.orig ./cbr1024.tcl" ("uplevel" body line 1) invoked from within "uplevel source.orig [list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ..." (procedure "source" line 8) invoked from within "source $opt(cp)" invoked from within "if { $opt(cp) == "" } { puts "*** NOTE: no connection pattern specified." set opt(cp) "none" } else { puts "Loading connection pattern..." ..." (file "test.tcl" line 289) -- DaeHee(Danny) Kim Department of Electrical Engineering and Computer Science(EECS), Wichita State University email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com From dahkim77 at gmail.com Fri Jan 23 18:05:38 2009 From: dahkim77 at gmail.com (Daehee Kim) Date: Fri, 23 Jan 2009 20:05:38 -0600 Subject: [ns] Too many open files error. In-Reply-To: <1a9612350901231801x111bfefycc8848b9568d1264@mail.gmail.com> References: <1a9612350901231801x111bfefycc8848b9568d1264@mail.gmail.com> Message-ID: <1a9612350901231805k36c6db1fq7b799cb8f94d6ab3@mail.gmail.com> I tried by 1024 nodes for this simulation. Thanks. 2009/1/23 Daehee Kim > > Hi everyone > > I got following error message "too many open files" > > I run simulation by typing " ns test.tcl" > > cbr1024.tcl is the connection pattern which has steps for simulation > processing. It is called by test.tcl > > could you say possible reason for this ? > > Thanks. > > > warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl > INITIALIZE THE LIST xListHead > couldn't read file "./cbr1024.tcl": too many open files > while executing > "source.orig ./cbr1024.tcl" > ("uplevel" body line 1) > invoked from within > "uplevel source.orig [list $fileName]" > invoked from within > "if [$instance_ is_http_url $fileName] { > set buffer [$instance_ read_url $fileName] > uplevel eval $buffer > } else { > uplevel source.orig [list $fileName] > ..." > (procedure "source" line 8) > invoked from within > "source $opt(cp)" > invoked from within > "if { $opt(cp) == "" } { > puts "*** NOTE: no connection pattern specified." > set opt(cp) "none" > } else { > puts "Loading connection pattern..." > ..." > (file "test.tcl" line 289) > > > > -- > DaeHee(Danny) Kim > Department of Electrical Engineering and Computer Science(EECS), Wichita > State University > email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com > -- DaeHee(Danny) Kim Department of Electrical Engineering and Computer Science(EECS), Wichita State University email-address : dxkim3 at wichita.edu, dahkim77 at gmail.com From msc.nit at gmail.com Fri Jan 23 22:53:50 2009 From: msc.nit at gmail.com (manish chaturvedi) Date: Sat, 24 Jan 2009 12:23:50 +0530 Subject: [ns] How to count number of received packets at agent level. Message-ID: Dear all, I am using CBR agent for generating traffic for my wireless simulation. I have used cbrgen.tcl file, which comes with NS to generate connection profile. It attaches CBR source with Agent/NULL as destination. I need to count ratio of number of packets transmitted by the CBr source to number of packets received by the destination. When Agent/Null is as sink, how can I determine number of packets received? Do I need to change the sink to some other agent? I am not getting any receive(r) entry in agent level trace. Please guide. Thanking you, Manish. From lisa.m2008 at yahoo.com Sat Jan 24 00:13:17 2009 From: lisa.m2008 at yahoo.com (Liz Mwaniki) Date: Sat, 24 Jan 2009 00:13:17 -0800 (PST) Subject: [ns] NS2 on Red hat Message-ID: <21638194.post@talk.nabble.com> Hi, Can anyone assist me in installing NS2 on red hat. -- View this message in context: http://www.nabble.com/NS2-on-Red-hat-tp21638194p21638194.html Sent from the ns-users mailing list archive at Nabble.com. From safiya.nureen at yahoo.com Sat Jan 24 01:08:05 2009 From: safiya.nureen at yahoo.com (Safiya Nureen) Date: Sat, 24 Jan 2009 01:08:05 -0800 (PST) Subject: [ns] TclObject Lookup function Message-ID: <103660.74047.qm@web112208.mail.gq1.yahoo.com> I searched pointers but i did not find any help about this kind of statement like below. anybody knows about the what exactly this means. I am new to C pointers. ? mac_ = (Mac*) TclObject::lookup(argv[2]); in these lines ? if (strcmp(argv[1], "mac") == 0) { ???mac_ = (Mac*) TclObject::lookup(argv[2]); ??????????????????????? assert(mac_); ???return (TCL_OK); ??} ? ? Safiya King Faisal Univ. Saudi Arabia From withhighprob at gmail.com Sat Jan 24 21:37:56 2009 From: withhighprob at gmail.com (matt Wood) Date: Sun, 25 Jan 2009 14:37:56 +0900 Subject: [ns] A comment, and also a request for comment on multichannel simulations. Message-ID: <7f61906e0901242137v631f129eua376f49c640c0d96@mail.gmail.com> Sorry, I don't know why this email was rejected automatically. Send again Hello Ram?n, Thank you very much for your reply. I think discussion is good for our works. And I'm sorry to reply late for I'm concentrating on the coding and debugging work recently. I also noticed the "if(rifp->channel() == this) {" , but this appears in "if (GridKeeper::instance()) {}" branch only, in the "else{}" branch (using the list improvement) this decision should be added to make sure the channel is the same. It seems more like a bug when multichannel is adopted. It must be noted that What I used is ns2.33-allinone, and the codes mentioned above appears in ns-2.33/mac/channel.cc, the wirelessChannel Class's sendUp function. This version of 802.11, a great work provided by Qi Chen, Felix Schmidt-Eisenlohr, and Daniel Jiang, is more correct because it considers the wireless channel characteristics: a packet transmitted on one channel will probably block the receiving of another packets when its detected power is large enough. In this sense scheduling each packet onto all the channels without discrimination is not proper. I think you used the gridkeeper, which may be of no problem. But if not, when list-based improvement is used, there is another problem: the mobilenode class, (in /common/Mobilenode.cc\h, can not support multi-channel nodes lists because it has only one set of node list pointers: .... /* For list-keeper */ MobileNode* nextX_; MobileNode* prevX_; ... This will cause the sending of packets from wireless channel to Phy objects incorrect. Perhaps some users have noticed this problem too. I wish to see more comments who are working on multichannel simulations. Thank you very much. Bests, Matt From ilaone at hotmail.com Sat Jan 24 22:38:20 2009 From: ilaone at hotmail.com (IRFAN LAONE) Date: Sun, 25 Jan 2009 06:38:20 +0000 Subject: [ns] Commercial application of MANETs In-Reply-To: References: Message-ID: Hi everyone, Can anyone please give an example of some practical commercial and/or milatary application of MANETs which is practically implemented and being practically used. Secondly what routing protocols are being practically used. Thanx _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From munir.arslan at yahoo.com Sun Jan 25 06:41:42 2009 From: munir.arslan at yahoo.com (Arslan Munir) Date: Sun, 25 Jan 2009 06:41:42 -0800 (PST) Subject: [ns] ns2 environment variables settings in .bashrc file Message-ID: <366531.17368.qm@web45914.mail.sp1.yahoo.com> Hi all, I have installed ns2-allinone-2.33 (the current release). I am running it on Cygwin on Windows Vista. After running Cygwin, we need to set environment variables before ns2 commands can be run. Alternatively, we can set them in ..bashrc file so that the environment variables for ns2 are automatically set each time when Cygwin is run instead of manually entering them on command line. When I add the environment variables path in .bashrc files, it gives an error when Cygwin starts saying that ns2-allinone-2.33-2.33 not fount. The commands work fine on the Cygwin prompt. Also Cygwin appends an extra 2.33 at the end automatically when giving an error. Here is the code for updating the environment variables in .bashrc file. The first line is which is giving error: export NS_HOME=/home/Owner/ns-allinone-2.33/ export PATH=$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:$NS_HOME/bin:$PATH export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:\ $NS_HOME/otcl-1.13:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.4.18/library On the Cygwin command prompt, we enter the same commands except for the first line which is: export NS_HOME=`pwd` Please tell me if any body faced the similar problem and got it fixed. Thanks! From rafiza at nav6.org Sun Jan 25 07:20:48 2009 From: rafiza at nav6.org (rafiza@nav6.org) Date: Sun, 25 Jan 2009 23:20:48 +0800 (MYT) Subject: [ns] Extended Service Set in NS-2 Message-ID: <1422.61.6.123.182.1232896848.squirrel@www.nav6.org> Hi ns-users, I intent to simulate extended service set(ESS) using NS2. But i don't know how. May be anyone can show me some guidance on how to go about it. Or is there any existing model of ESS in NS2. Pls help me... Thanks in advance! Kind regards, Rafiza. From mcsist at yahoo.com Sun Jan 25 11:24:38 2009 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Sun, 25 Jan 2009 11:24:38 -0800 (PST) Subject: [ns] ns2 environment variables settings in .bashrc file References: <366531.17368.qm@web45914.mail.sp1.yahoo.com> Message-ID: <485099.97614.qm@web55008.mail.re4.yahoo.com> I advice you to work in pure linux operating system. Mohammed AbuHajar ________________________________ From: Arslan Munir To: ns-users at ISI.EDU Sent: Sunday, January 25, 2009 4:41:42 PM Subject: [ns] ns2 environment variables settings in .bashrc file Hi all, I have installed ns2-allinone-2.33 (the current release). I am running it on Cygwin on Windows Vista. After running Cygwin, we need to set environment variables before ns2 commands can be run. Alternatively, we can set them in ..bashrc file so that the environment variables for ns2 are automatically set each time when Cygwin is run instead of manually entering them on command line. When I add the environment variables path in .bashrc files, it gives an error when Cygwin starts saying that ns2-allinone-2.33-2.33 not fount. The commands work fine on the Cygwin prompt. Also Cygwin appends an extra 2.33 at the end automatically when giving an error. Here is the code for updating the environment variables in .bashrc file. The first line is which is giving error: export NS_HOME=/home/Owner/ns-allinone-2.33/ export PATH=$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:$NS_HOME/bin:$PATH export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:\ $NS_HOME/otcl-1.13:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.4.18/library On the Cygwin command prompt, we enter the same commands except for the first line which is: export NS_HOME=`pwd` Please tell me if any body faced the similar problem and got it fixed. Thanks! From mmm59 at aub.edu.lb Sun Jan 25 23:58:42 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Mon, 26 Jan 2009 09:58:42 +0200 Subject: [ns] How to get the Nodes' coordinate from TCL to C++ In-Reply-To: <141cb92a0901250030i7f08819fk2c8fb4b61dea29cd@mail.gmail.com> References: <20090122095939.fvsdfr82680wkc8g@imail.aub.edu.lb> <141cb92a0901220139p718701e1n25327957c3571672@mail.gmail.com> <20090122114805.o2758cc1cswso0gs@imail.aub.edu.lb> <141cb92a0901250030i7f08819fk2c8fb4b61dea29cd@mail.gmail.com> Message-ID: <20090126095842.g15froh0g0sw8kk8@imail.aub.edu.lb> Hello Walid, Thanks for replying. Here's the deal : im trying to simulate a WSN with nodes that are not mobile. In a topology.tcl file i have the nodes coordinates stored in the following form: $node_(0) set X_ 60 $node_(0) set Y_ 0 $node_(0) set Z_ 0 $node_(1) set X_ 92 $node_(1) set Y_ 43 $node_(1) set Z_ 0 ... Although i have these coordinates in the tcl files i still need to access them in C++, the reason is because i wanted to find distances between nodes as well as whether some nodes lied in the range of other (so its a couple of loops in C++) so id need something that look like this: for(i=0 ; i: > Hello Mathiew, > > Sorry for the late reply. I guess it would be best if you can explain a > little what you are trying to do. Is every node trying to find its > coordinates only ? > > On Thu, Jan 22, 2009 at 11:48 AM, Mathiew Moussa wrote: > >> Hello Walid, >> >> Thanks for the reply. >> >> You said getting the coordinates from the TCL file easier... i have them >> stored in a topography.tcl file (or so i recall) that has the X Y Z >> coordinates of each sensor. >> >> So what's the way to get them from the TCL file directly to be used in C++ >> ?? >> >> Thanks alot, >> Mathiew >> >> >> >> >> Quoting Waleed Tuffaha : >> >> Hello Mathiew, >>> >>> ( Note that I didn't test this ! ) >>> >>> The "Node class" uses a "Location class" in which the X,Y,Z variables are >>> defined. The "mobilenode class" inherits from the node class. >>> >>> So, if node_ is a pointer to a mobilenode, then you should be able to get >>> the coordinates using: >>> int x,y,z; >>> node_->location_->getLocation(&x, &y, &z) >>> >>> So if you have an array containing pointers to all the nodes then you can >>> loop on the array and get the coordinates for each node. >>> >>> I think that getting the coordinates from Tcl is easier, but I don't know >>> what exactly you are doing. >>> >>> Hope this helps >>> -- Waleed >>> >>> On Thu, Jan 22, 2009 at 9:59 AM, Mathiew Moussa wrote: >>> >>> >>>> Dear NS Users, >>>> >>>> Can someone please tell me how you can retrieve the coordinates of the >>>> network nodes from a TCL file into C++. >>>> So is their some loop or something that can be written in C++ and >>>> traverses all the nodes and gets X, Y, & Z, and how is it written. >>>> >>>> >>>> Hope you can help me. >>>> Thanks, >>>> Mathiew >>>> >>>> >>>> >>> >> >> >> > > > -- > Waleed Tuffaha. > From amita26 at rediffmail.com Mon Jan 26 00:22:49 2009 From: amita26 at rediffmail.com (Amita Singh) Date: 26 Jan 2009 08:22:49 -0000 Subject: [ns] Error while including wireless-phy.h Message-ID: <20090126082249.9726.qmail@f4mail-235-242.rediffmail.com> Hi, I'm using ns-2.29. When I include a file wireless-phy.h in AODV for certain modifications, it results in following error: [root at localhost ns-2.29]# make g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/usr/local/ns-allinone-2.29/tclcl-1.17 -I/usr/local/ns-allinone-2.29/otcl-1.11 -I/usr/local/ns-allinone-2.29/include -I/usr/local/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o mobile/tworayground.o mobile/tworayground.cc g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/usr/local/ns-allinone-2.29/tclcl-1.17 -I/usr/local/ns-allinone-2.29/otcl-1.11 -I/usr/local/ns-allinone-2.29/include -I/usr/local/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o aodv/aodv.o aodv/aodv.cc ./mac/wireless-phy.h:129: error: expected identifier before 'r' ./mac/wireless-phy.h:129: error: expected `}' before 'r' ./mac/wireless-phy.h:129: error: expected unqualified-id before 'r' ./mac/wireless-phy.h: In member function ?bool& WirelessPhy::Is_node_on()?: ./mac/wireless-phy.h:97: error: ?node_on_? was not declared in this scope ./mac/wireless-phy.h: In member function ?bool WirelessPhy::Is_sleeping()?: ./mac/wireless-phy.h:98: error: ?status_? was not declared in this scope ./mac/wireless-phy.h: At global scope: ./mac/wireless-phy.h:131: error: no matching function for call to ?Sleep_Timer::Sleep_Timer()? ./mac/wireless-phy.h:58: note: candidates are: Sleep_Timer::Sleep_Timer(WirelessPhy*) ./mac/wireless-phy.h:56: note: Sleep_Timer::Sleep_Timer(const Sleep_Timer&) ./mac/wireless-phy.h:134: error: expected unqualified-id before ?private? ./mac/wireless-phy.h: In function ?EnergyModel* em()?: ./mac/wireless-phy.h:142: error: ?node? was not declared in this scope ./mac/wireless-phy.h: At global scope: ./mac/wireless-phy.h:144: error: ?friend? can only be specified inside a class ./mac/wireless-phy.h:146: error: expected declaration before ?}? token make: *** [aodv/aodv.o] Error 1 I have checked the code many times but still unable to figure out from where the error creeped in. Kindly help. Regards Amita ? From lisa.m2008 at yahoo.com Mon Jan 26 01:09:00 2009 From: lisa.m2008 at yahoo.com (Liz Mwaniki) Date: Mon, 26 Jan 2009 01:09:00 -0800 (PST) Subject: [ns] NS2 2.33 allinone on Ubuntu Message-ID: <21662320.post@talk.nabble.com> NS users, I have not used NS2 before, tried installing on red hat but gave me problems. How do I install NS2 2.33 allinone on Ubuntu ? thanks. -- View this message in context: http://www.nabble.com/NS2-2.33-allinone-on-Ubuntu-tp21662320p21662320.html Sent from the ns-users mailing list archive at Nabble.com. From safiya.nureen at yahoo.com Mon Jan 26 02:00:30 2009 From: safiya.nureen at yahoo.com (Safiya Nureen) Date: Mon, 26 Jan 2009 02:00:30 -0800 (PST) Subject: [ns] compiling same file names like ll.cc and packet.h Message-ID: <52493.6914.qm@web112203.mail.gq1.yahoo.com> if i have a separate model that already have been done with all necessary files like .cc, .h .tcl , in a new folder . and i need to compile and check. but i am little bit confused , like this model have also varp.cc (modified)?and in ns2 main directory their is also another varp.cc , so if this happens then how to compile with little confusion.? should i replace file or ...? thanks Safiya King Faisal Univ. Saudi Arabia From mazentlais at yahoo.fr Mon Jan 26 02:42:02 2009 From: mazentlais at yahoo.fr (Mazen TLAIS) Date: Mon, 26 Jan 2009 10:42:02 +0000 (GMT) Subject: [ns] mSCTP for ns-2 Message-ID: <327112.30595.qm@web26703.mail.ukl.yahoo.com> hello, I am a new user of ns-2 simulateur. I am working on a new architecture that implements some scenarios using SCTP + mSCTP protocols. So, I am looking for a mSCTP patch. I wonder if somebody in the mailing list has any information about an implementation of mSCTP for NS-2 ? Many thanks for your help Mazen From nadine341 at yahoo.fr Mon Jan 26 03:25:32 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Mon, 26 Jan 2009 11:25:32 +0000 (GMT) Subject: [ns] Re : NS2 2.33 allinone on Ubuntu In-Reply-To: <21662320.post@talk.nabble.com> Message-ID: <781259.60233.qm@web28313.mail.ukl.yahoo.com> Hi This is a very useful link to install NS-2.33 on ubuntu: "http://www.jasonernst.com/2008/06/11/ns-233-and-nam-on-ubuntu-804-hardy-heron/" Hope this helps. --- En date de?: Lun 26.1.09, Liz Mwaniki a ?crit?: De: Liz Mwaniki Objet: [ns] NS2 2.33 allinone on Ubuntu ?: ns-users at ISI.EDU Date: Lundi 26 Janvier 2009, 9h09 NS users, I have not used NS2 before, tried installing on red hat but gave me problems. How do I install NS2 2.33 allinone on Ubuntu ? thanks. -- View this message in context: http://www.nabble.com/NS2-2.33-allinone-on-Ubuntu-tp21662320p21662320.html Sent from the ns-users mailing list archive at Nabble.com. From fhg07 at c3sl.ufpr.br Mon Jan 26 03:56:50 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Mon, 26 Jan 2009 09:56:50 -0200 (BRST) Subject: [ns] Delaying before sending a message Message-ID: I need to send lots of messages in a row, but I want to have a delay between them. I was told to use a timer-handler, but I do not know exactly how to do so. How can I, for example, use a timer-handler to wait 0.3s? Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From msc.nit at gmail.com Mon Jan 26 04:04:21 2009 From: msc.nit at gmail.com (manish chaturvedi) Date: Mon, 26 Jan 2009 17:34:21 +0530 Subject: [ns] Routing traces contains seq num=0 Message-ID: Hi, I am simulating 50 nodes wireless communication using DSR. When a route request is sent, the destination generates route reply with the same sequence number as that of route request and sends it to originator. But the thing is in some f the route replies, I am getting sequence number 0. Any body knows what is the reason behind? I am pasting some part of RTR traces where node 1 tries to find route to node 2(with comments). Sequence numbers are in Bold. Please guide.. Thanking You, Manish. #Ring 0 search Identified by -Pe 0->0 s -t 152.560052013 -Hs 1 -Hd -1 -Ni 1 -Nx 288.49 -Ny 51.88 -Nz 0.00 -Ne 1000.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.255 -Id 2.255 -It DSR -Il 32 -If 0 -Ii 1 -Iv 32 -P dsr -Ph 1 -Pq 1 -Ps 1 -Pp 0 -Pn 1 -Pl 0 -Pe 0->0 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 #Propagating Route request identified by -Pe 0->16 s -t 152.612531581 -Hs 1 -Hd -1 -Ni 1 -Nx 289.00 -Ny 52.11 -Nz 0.00 -Ne 871.390423 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.255 -Id 2.255 -It DSR -Il 32 -If 0 -Ii 4 -Iv 32 -P dsr -Ph 1 -Pq 1 *-Ps 2* -Pp 0 *-Pn 2* -Pl 0 -Pe 0->16 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 #Entries where route reply, has -Pn= seq num= same as that in route request s -t 152.626917355 -Hs 2 -Hd 40 -Ni 2 -Nx 562.16 -Ny 191.47 -Nz 0.00 -Ne 871.330571 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 52 -If 0 -Ii 5 -Iv 254 -P dsr -Ph 3 -Pq 0 -Ps 2 -Pp 1 *-Pn 2* -Pl 3 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.626943266 -Hs 2 -Hd 24 -Ni 2 -Nx 562.16 -Ny 191.47 -Nz 0.00 -Ne 871.330571 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 60 -If 0 -Ii 6 -Iv 254 -P dsr -Ph 4 -Pq 0 -Ps 2 -Pp 1 *-Pn 2* -Pl 4 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.630379742 -Hs 2 -Hd 28 -Ni 2 -Nx 562.17 -Ny 191.48 -Nz 0.00 -Ne 871.325233 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 60 -If 0 -Ii 10 -Iv 254 -P dsr -Ph 4 -Pq 0 -Ps 2 -Pp 1 *-Pn 2* -Pl 4 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.631407825 -Hs 2 -Hd 25 -Ni 2 -Nx 562.17 -Ny 191.48 -Nz 0.00 -Ne 871.325233 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 52 -If 0 -Ii 9 -Iv 254 -P dsr -Ph 3 -Pq 0 -Ps 2 -Pp 1* -Pn 2* -Pl 3 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.640418300 -Hs 2 -Hd 43 -Ni 2 -Nx 562.19 -Ny 191.48 -Nz 0.00 -Ne 871.314626 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 60 -If 0 -Ii 11 -Iv 254 -P dsr -Ph 4 -Pq 0 -Ps 2 -Pp 1 *-Pn 2* -Pl 4 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.667064145 -Hs 2 -Hd 37 -Ni 2 -Nx 562.27 -Ny 191.50 -Nz 0.00 -Ne 871.275637 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 68 -If 0 -Ii 12 -Iv 254 -P dsr -Ph 5 -Pq 0 -Ps 2 -Pp 1 *-Pn 2* -Pl 5 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.668766609 -Hs 2 -Hd 34 -Ni 2 -Nx 562.27 -Ny 191.50 -Nz 0.00 -Ne 871.274148 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 60 -If 0 -Ii 13 -Iv 254 -P dsr -Ph 4 -Pq 0 -Ps 2 -Pp 1* -Pn 2* -Pl 4 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 # and here are the traces where -Pn=0 s -t 152.757056298 -Hs 2 -Hd 40 -Ni 2 -Nx 562.52 -Ny 191.57 -Nz 0.00 -Ne 871.154088 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 52 -If 0 -Ii 17 -Iv 255 -P dsr -Ph 3 -Pq 0 -Ps 0 -Pp 1 *-Pn 0* -Pl 3 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 s -t 152.771144465 -Hs 2 -Hd 40 -Ni 2 -Nx 562.56 -Ny 191.58 -Nz 0.00 -Ne 871.134186 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 2.255 -Id 1.255 -It DSR -Il 52 -If 0 -Ii 19 -Iv 255 -P dsr -Ph 3 -Pq 0 -Ps 0 -Pp 1 *-Pn 0* -Pl 3 -Pe 1->2 -Pw 0 -Pm 0 -Pc 0 -Pb 0->0 From fhg07 at c3sl.ufpr.br Mon Jan 26 06:25:15 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Mon, 26 Jan 2009 12:25:15 -0200 (BRST) Subject: [ns] Phy/WirelessPhy - When can I change the parameters? Message-ID: <29aaeb835afd8ef23177afe55de7e2e1.squirrel@webmail.c3sl.ufpr.br> I would like to know if the Phy/WirelessPhy parameters can be changed only in the initialization on my tcl script. The reason for that question is because I am trying to change the values of Pt_ and Pt_consume_ from inside my C++ code, but the changes do not take effect in the simulation. To change its values from inside C++ I am using: 41 Tcl &tcl = Tcl::instance(); 54 tcl.evalf("Phy/WirelessPhy set Pt_ %f",Pt_array[tt]); Is that ok? I do not know if I can vary Pt_ and Pt_consume_ after setting them once. Furthermore, can I set different Pt_ and Pt_consume_ for different nodes? Thanks in advance, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From armirikar at gmail.com Mon Jan 26 08:23:11 2009 From: armirikar at gmail.com (Abhijeet Mirikar) Date: Mon, 26 Jan 2009 21:53:11 +0530 Subject: [ns] join-group method Message-ID: <9d7beec90901260823l2ede62dci57a8a5ac5de00de@mail.gmail.com> Where can I find definition of join-group method? From a.abfalterer at gmail.com Mon Jan 26 09:40:13 2009 From: a.abfalterer at gmail.com (Abfalterer A.) Date: Mon, 26 Jan 2009 18:40:13 +0100 Subject: [ns] Different page sizes with Web Traffic Message-ID: <1232991613.11039.32.camel@localhost.localdomain> Hi, I've made a Web traffic simulation similar to this from "ns-2.33/tcl/ex/web-traffic.tcl". I take the same parameters (e.g. for page inter-arrival time, object number, etc.) and I want to test it with different protocols (TCP NewReno and CUBIC). First test runs show that the page sizes are not the same for *different* protocols. For instance, a test run with one session and 10 pages with NewReno gives me pages of following size (in packets!!!) NewReno CUBIC 170 170 1 1 9 9 1 1 2 2 4 4 1 5 <-- different 5 1 <-- 2 9 <-- 10 1 <-- Anybody who has experience with Web traffic simulations and can tell me the reason? Unfortunatley there is not a lot of literature... Regards, Armin From munir.arslan at yahoo.com Mon Jan 26 20:07:02 2009 From: munir.arslan at yahoo.com (Arslan Munir) Date: Mon, 26 Jan 2009 20:07:02 -0800 (PST) Subject: [ns] Battery Model and Processing Model for sensor networks in ns2 Message-ID: <369375.52230.qm@web45911.mail.sp1.yahoo.com> Hi all, I want to simulate sensor networks in ns2. Specifically, I want to model sensor nodes with following capabilities: 1. Sensing channel and sensing model 2. Battery model 3. Processing Power model with processor voltage and frequency. Previously, a part of it was available in ns2 by UCLA in SensorSim at: http://nesl.ee.ucla.edu/projects/sensorsim/ But now they have removed the code from there. If any body has the downloaded code from there or have the battery model and processing model etc., please let me know from where I can get it. I really need that to get my sensor network simulations working. Thanks! Regards, Arslan From chum_arun at ymail.com Mon Jan 26 22:29:07 2009 From: chum_arun at ymail.com (Arun Kumar) Date: Tue, 27 Jan 2009 11:59:07 +0530 (IST) Subject: [ns] Please Help ........Error while creating new packet types Message-ID: <996449.58414.qm@web95104.mail.in2.yahoo.com> sir i have to create a new header type so i searched in the net and got the code in the website http://www.isi.edu/nsnam/ns/tutorial/index.html. But in packet.h PT_PING and name_[PT_PING]="ping" is already defined and in ns-default.tcl Agent/Ping set packetSize_ 64 is also defined. which version you have used and while executing make command i got some errors the errors are as follows In file included from ping.h:12, from ping.cc:9: agent.h:41:23: animation.h: No such file or directory agent.h:42:27: trafficsource.h: No such file or directory In file included from ping.h:12, from ping.cc:9: agent.h:56: error: expected class-name before ',' token agent.h:101: error: ISO C++ forbids declaration of `TrafficSource' with no type agent.h:101: error: expected `;' before '*' token agent.h:102: error: ISO C++ forbids declaration of `TrafficSource' with no type agent.h:102: error: expected `;' before '*' token agent.h:126: error: ISO C++ forbids declaration of `TrafficSource' with no type agent.h:126: error: expected `;' before '*' token agent.h:135: error: `View' has not been declared agent.h:135: error: ISO C++ forbids declaration of `parameter' with no type agent.h: In member function `virtual int Agent::classid() const': agent.h:58: error: `ClassAgentID' undeclared (first use this function) agent.h:58: error: (Each undeclared identifier is reported only once for each function it appears in.) agent.h: At global scope: agent.h:171: error: `View' has not been declared agent.h:171: error: ISO C++ forbids declaration of `nv' with no type ping.cc: In member function `virtual TclObject* PingClass::create(int, const char* const*)': ping.cc:23: error: cannot allocate an object of type `PingAgent' ping.cc:23: error: because the following virtual functions are abstract: agent.h:73: error: virtual void Agent::findClosestCornertoPoint(double, double, double&, double&) const ping.cc: In constructor `PingAgent::PingAgent()': ping.cc:29: error: no matching function for call to `Agent::Agent (packet_t)' agent.h:56: note: candidates are: Agent::Agent(const Agent&) agent.h:133: note: Agent::Agent(const char*, double) agent.h:132: note: Agent::Agent(const char*, int, double) ping.cc: In member function `virtual int PingAgent::command(int, const char* const*)': ping.cc:40: error: `allocpkt' undeclared (first use this function) ping.cc:49: error: invalid conversion from `Packet*' to `int' /usr/include/sys/socket.h:136: error: too few arguments to function `ssize_t send(int, const void*, size_t, int)' ping.cc:49: error: at this point in file ping.cc: In member function `void PingAgent::recv(Packet*, Handler*)': ping.cc:64: error: `off_ip_' undeclared (first use this function) ping.cc:74: error: `allocpkt' undeclared (first use this function) ping.cc:82: error: invalid conversion from `Packet*' to `int' /usr/include/sys/socket.h:136: error: too few arguments to function `ssize_t send(int, const void*, size_t, int)' ping.cc:82: error: at this point in file ping.cc:93: error: no match for 'operator>>' in 'hdrip->hdr_ip::src_ >> *(Address::instance()->Address::NodeShift_ + 4u)' make: *** [ping.o] Error 1 so sir please help me.looking for your respose kindly. Thank You With Regards, N.ArunKumar (Final Year B.Tech Information Technology) Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ From ilaone at hotmail.com Tue Jan 27 05:24:01 2009 From: ilaone at hotmail.com (IRFAN LAONE) Date: Tue, 27 Jan 2009 13:24:01 +0000 Subject: [ns] sensor net commercial applications Message-ID: Hi everyone. Can anyone refer me to some practical sensor net commercial apps (as MANET apps) and the routing protocol they use. Thanx. _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From fhg07 at c3sl.ufpr.br Tue Jan 27 05:55:44 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Tue, 27 Jan 2009 11:55:44 -0200 (BRST) Subject: [ns] Changing transmission power too often Message-ID: Well, I want to change my transmission power very constantly, but I am not managing to do so. Aparently, after some changes its value just stop being updated. Here is what I am doing to change it: In my tcl code: 61 set phy_($i) [$node_($i) set netif_(0)] In my C++ code: 52 tcl.evalf("$phy_(%d) set Pt_ %f",a_->myaddr,Pt_array[tt]); Some of the first changes do really occur, but from a point, the rest of them do not take effect at all, and I do not know how to manage to change it often. Anyone have a suggestion? Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From nadine341 at yahoo.fr Tue Jan 27 07:22:34 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Tue, 27 Jan 2009 15:22:34 +0000 (GMT) Subject: [ns] wireless sensor networks model in NS-2.33 Message-ID: <753633.19815.qm@web28308.mail.ukl.yahoo.com> Hi all, Please tell me if it is possible to simulate wireless sensor networks with NS2.33 without adding any extensions like mannasim or semsim? Thank you. From lucas_max2002 at yahoo.es Tue Jan 27 08:47:46 2009 From: lucas_max2002 at yahoo.es (Douglas Restrepo) Date: Tue, 27 Jan 2009 08:47:46 -0800 (PST) Subject: [ns] where i can download NS3 Message-ID: <247250.63945.qm@web24603.mail.ird.yahoo.com> Hi forum... why the size of ns2.29 is 68Mb and the ns3 is only 1.1Mb where i can download the ns3 full version? or what i have to install the ns3 version Thankyou From salcaraz69 at gmail.com Tue Jan 27 13:27:13 2009 From: salcaraz69 at gmail.com (Salvador Alcaraz) Date: Tue, 27 Jan 2009 22:27:13 +0100 Subject: [ns] Different page sizes with Web Traffic In-Reply-To: <1232991613.11039.32.camel@localhost.localdomain> References: <1232991613.11039.32.camel@localhost.localdomain> Message-ID: <558ed4630901271327s5ca51ed3td69779bcf238fe65@mail.gmail.com> Armin, the page sizes don't depend of the TCP version. You can see that at the begining of the simulation, the page sizes are equal, but after a few seconds, maybe, the size pages are different. why?. the NS-2 web traffic module models the web traffic interaction as realistics as it's possible, and it's modeled such Statistical distributions, and some of them depend of the time. So, if you use different TCP protocols (for example, RENO) , with different timers, different handle of packets, maybe, some packets will arrive at web server at different times that if you use the other TCP protocol (for example, CUBIC). So, it's produce different web server responses (maybe with different size), and this page will produce different behaviour at client node, and so on... Conclussion: it's imposible to compare the same trace with both protocols..... at least... I don't know best regards salva 2009/1/26 Abfalterer A. > > Hi, > > I've made a Web traffic simulation similar to this from > "ns-2.33/tcl/ex/web-traffic.tcl". I take the same parameters (e.g. for > page inter-arrival time, object number, etc.) and I want to test it with > different protocols (TCP NewReno and CUBIC). > > First test runs show that the page sizes are not the same for > *different* protocols. For instance, a test run with one session and 10 > pages with NewReno gives me pages of following size (in packets!!!) > > NewReno CUBIC > 170 170 > 1 1 > 9 9 > 1 1 > 2 2 > 4 4 > 1 5 <-- different > 5 1 <-- > 2 9 <-- > 10 1 <-- > > Anybody who has experience with Web traffic simulations and can tell me > the reason? Unfortunatley there is not a lot of literature... > > Regards, Armin > > From munir.arslan at yahoo.com Tue Jan 27 17:07:15 2009 From: munir.arslan at yahoo.com (Arslan Munir) Date: Tue, 27 Jan 2009 17:07:15 -0800 (PST) Subject: [ns] Setting mobile node position for large number of nodes Message-ID: <605751.79692.qm@web45912.mail.sp1.yahoo.com> Hi all, If I have to set the position of mobile nodes for large number of nodes, say 50 or more, is there any easy way to do that. Individual nodes assignment will take too long. Suppose if I want to have my nodes distributed evenly in a topology of 500 x 500. Thanks! Regards, Arslan From kiran.cabs at gmail.com Tue Jan 27 20:06:35 2009 From: kiran.cabs at gmail.com (Kiran K Chauhan) Date: Wed, 28 Jan 2009 09:36:35 +0530 Subject: [ns] Infrastructure 802.11 Message-ID: <9d53a7ed0901272006s223d73afva847087d464eaf53@mail.gmail.com> Hi all, Can anyone help me in simulating a tree like 802.11 infrastructure. Where a leaf node talks through its AP (intermediate node) -> root node -> other AP -> leaf node. Thanks with regards Kiran ...................................................... From chum_arun at ymail.com Tue Jan 27 22:51:39 2009 From: chum_arun at ymail.com (Arun Kumar) Date: Wed, 28 Jan 2009 12:21:39 +0530 (IST) Subject: [ns] how to assign ip address to nodes... Message-ID: <954969.75428.qm@web95106.mail.in2.yahoo.com> I have to assign ip address to nodes in ns-2 and i have to count the number of packets sent to each node,how this can be imlpemented.Please help me.Looking forward for your kindly help. With regards, N.ArunKumar Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From chum_arun at ymail.com Wed Jan 28 00:58:03 2009 From: chum_arun at ymail.com (Arun Kumar) Date: Wed, 28 Jan 2009 14:28:03 +0530 (IST) Subject: [ns] Please help !! Error.. Message-ID: <925367.51943.qm@web95110.mail.in2.yahoo.com> while creating a new protocol(Agent "New") i got this error please help... invalid command name "Agent/New" while executing "Agent/New create _o36 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/New" invoked from within "set p0 [new Agent/New]" (file "newagent.tcl" line 7) with regards N.ArunKumar Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From mshrehmani at gmail.com Wed Jan 28 01:03:32 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Wed, 28 Jan 2009 10:03:32 +0100 Subject: [ns] Setting mobile node position for large number of nodes In-Reply-To: <605751.79692.qm@web45912.mail.sp1.yahoo.com> References: <605751.79692.qm@web45912.mail.sp1.yahoo.com> Message-ID: Hi Arslan Yes, the easy way to set the position of mobile nodes is to load a scenario file. You can generate a scenario file of as many nodes as your want, placed randomly with different node density. Try to use BonnMotion and then convert the file into ns2 format. http://www.cs.uni-bonn.de/IV/BonnMotion/ Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France www-npa.lip6.fr/~rehmani 2009/1/28 Arslan Munir > > Hi all, > > If I have to set the position of mobile nodes for large number of nodes, > say 50 or more, is there any easy way to do that. Individual nodes > assignment will take too long. Suppose if I want to have my nodes > distributed evenly in a topology of 500 x 500. Thanks! > > Regards, > Arslan > > > > > -- Mubashir Husain Rehmani From mmm59 at aub.edu.lb Wed Jan 28 01:51:29 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Wed, 28 Jan 2009 11:51:29 +0200 Subject: [ns] NS2 isn't cleaning the .o files with make clean, why ? Message-ID: <20090128115129.e8kopr968ocoskoc@imail.aub.edu.lb> Hello Guys, This is the weirdest thing that has happened with me till now. I added a piece of code to one of the c files and intentionally added an error to see whether ns2 was registering it or not. After doing "make clean" --> "configure" --> "make", no error appeared, as if i hadn't added anything. Giving it a closer look, it seemed that the .o files weren't being cleaned at all. Although the version was working fine a couple of days ago, no it isnt. Does Anyone know why, and how it could possibly be fixed. Thanks. Mathiew From mmm59 at aub.edu.lb Wed Jan 28 02:11:12 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Wed, 28 Jan 2009 12:11:12 +0200 Subject: [ns] How to get the Nodes' coordinate from TCL to C++ In-Reply-To: References: <20090122095939.fvsdfr82680wkc8g@imail.aub.edu.lb> <141cb92a0901220139p718701e1n25327957c3571672@mail.gmail.com> <20090122114805.o2758cc1cswso0gs@imail.aub.edu.lb> <141cb92a0901250030i7f08819fk2c8fb4b61dea29cd@mail.gmail.com> <20090126095842.g15froh0g0sw8kk8@imail.aub.edu.lb> Message-ID: <20090128121112.8vpbehn944o4w0g0@imail.aub.edu.lb> Hello Kavan, Thanks alot for the reply. I haven't tried it yet because of a complication with NS2 (it aint cleaning any of the .o files). Ill try it soon. One question, in God::IsNeighbor function, a constant called RANGE is used do have any idea where it is being defined !? Thanks alot, Mathiew :D Quoting kavan sheth : > Hi Mathiew > > I needed to the same in my project. > what I did is used god object. > you can study and you can do many more things using it . > here I am just describing what I did: > > I added following function in ns-2.33/mobile/god.cc (you will need to add > declaration in god.h) > > double God::getdistance(int i,int k) > > { > > double x1=mb_node[i]->X(); > > double y1=mb_node[i]->Y(); > > double x2=mb_node[k]->X(); > > double y2=mb_node[k]->Y(); > > double distance; > > distance=sqrt(((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2))); > > return distance; > > } > then I was able to get distance between two nodes by writing following code > in c++ > > > *God::instance()->getdistance(i,k); // i and k are the id of the nodes* > > you will also need to include following statements in your .tcl file > > 1 after creating topography > > set topo [new Topography] > $topo load_flatgrid $val(x) $val(y) > > *set god_ [create-god $val(nn)]* > > 2. when you are dynamically creating nodes > > for { set i 0 } { $i < $val(nn) } { incr i } { > set node_($i) [$ns_ node $i] > $node_($i) random-motion 0 ;# disable random motion > *$god_ new_node $node_($i) > *} > > following is a function of my agent for your reference: > > void Manetconf::neighbors(int i) > { > int nodes=God::instance()->nodes(); > cout<<"neighbors of node "< for(int k=0;k { > if(k!=i) > { > if(God::instance()->IsNeighbor(i,k)) > cout<getdistance(i,k)<<" yes"< else > cout<getdistance(i,k)<<" no"< } > } > cout< } > > > > > > cheers > > Kavan > > On Mon, Jan 26, 2009 at 1:28 PM, Mathiew Moussa wrote: > >> >> >> Hello Walid, >> >> Thanks for replying. >> Here's the deal : im trying to simulate a WSN with nodes that are not >> mobile. >> In a topology.tcl file i have the nodes coordinates stored in the >> following form: >> >> $node_(0) set X_ 60 >> $node_(0) set Y_ 0 >> $node_(0) set Z_ 0 >> $node_(1) set X_ 92 >> $node_(1) set Y_ 43 >> $node_(1) set Z_ 0 ... >> >> Although i have these coordinates in the tcl files i still need to >> access them in C++, the reason is because i wanted to find distances >> between nodes as well as whether some nodes lied in the range of other >> (so its a couple of loops in C++) >> >> so id need something that look like this: >> >> for(i=0 ; i> for (j=0 ; j> if(nodes[i].x == nodes[j].x) //just a stupid example >> (...) >> >> My algorithm is centralized at the base station.. over there i have >> the freedom to access the coordinates of the nodes from topology.tcl, >> the question is how ? >> >> I hope this is enough. >> Thanks again. >> Mathiew >> >> >> >> >> Quoting Waleed Tuffaha : >> > Hello Mathiew, >> > >> > Sorry for the late reply. I guess it would be best if you can explain a >> > little what you are trying to do. Is every node trying to find its >> > coordinates only ? >> > >> > On Thu, Jan 22, 2009 at 11:48 AM, Mathiew Moussa >> wrote: >> > >> >> Hello Walid, >> >> >> >> Thanks for the reply. >> >> >> >> You said getting the coordinates from the TCL file easier... i have them >> >> stored in a topography.tcl file (or so i recall) that has the X Y Z >> >> coordinates of each sensor. >> >> >> >> So what's the way to get them from the TCL file directly to be used in >> C++ >> >> ?? >> >> >> >> Thanks alot, >> >> Mathiew >> >> >> >> >> >> >> >> >> >> Quoting Waleed Tuffaha : >> >> >> >> Hello Mathiew, >> >>> >> >>> ( Note that I didn't test this ! ) >> >>> >> >>> The "Node class" uses a "Location class" in which the X,Y,Z variables >> are >> >>> defined. The "mobilenode class" inherits from the node class. >> >>> >> >>> So, if node_ is a pointer to a mobilenode, then you should be able to >> get >> >>> the coordinates using: >> >>> int x,y,z; >> >>> node_->location_->getLocation(&x, &y, &z) >> >>> >> >>> So if you have an array containing pointers to all the nodes then you >> can >> >>> loop on the array and get the coordinates for each node. >> >>> >> >>> I think that getting the coordinates from Tcl is easier, but I don't >> know >> >>> what exactly you are doing. >> >>> >> >>> Hope this helps >> >>> -- Waleed >> >>> >> >>> On Thu, Jan 22, 2009 at 9:59 AM, Mathiew Moussa >> wrote: >> >>> >> >>> >> >>>> Dear NS Users, >> >>>> >> >>>> Can someone please tell me how you can retrieve the coordinates of the >> >>>> network nodes from a TCL file into C++. >> >>>> So is their some loop or something that can be written in C++ and >> >>>> traverses all the nodes and gets X, Y, & Z, and how is it written. >> >>>> >> >>>> >> >>>> Hope you can help me. >> >>>> Thanks, >> >>>> Mathiew >> >>>> >> >>>> >> >>>> >> >>> >> >> >> >> >> >> >> > >> > >> > -- >> > Waleed Tuffaha. >> > >> >> >> >> >> > From muralikrishna4g at gmail.com Wed Jan 28 06:40:00 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Wed, 28 Jan 2009 20:10:00 +0530 Subject: [ns] Ns-users Digest, Vol 61, Issue 27 In-Reply-To: References: Message-ID: hi.. now i am doing my project over network routers using ns-2 simulation, here now i created the network with nearly 60 nodes, the network topology is like inet topology.. in this i need to send data from a specific sender to specific router with specific path... how to make the tcl script or c code pls help me... if any body have example programs please send me.. it will be more helpful to me.. thanx in advance On 1/28/09, ns-users-request at isi.edu wrote: > Send Ns-users mailing list submissions to > ns-users at isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-request at isi.edu > > You can reach the person managing the list at > ns-users-owner at isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Battery Model and Processing Model for sensor networks in ns2 > (Arslan Munir) > 2. Please Help ........Error while creating new packet types > (Arun Kumar) > 3. sensor net commercial applications (IRFAN LAONE) > 4. Changing transmission power too often (fhg07 at c3sl.ufpr.br) > 5. wireless sensor networks model in NS-2.33 (Nadine Chen) > 6. where i can download NS3 (Douglas Restrepo) > 7. Re: Different page sizes with Web Traffic (Salvador Alcaraz) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 26 Jan 2009 20:07:02 -0800 (PST) > From: Arslan Munir > Subject: [ns] Battery Model and Processing Model for sensor networks > in ns2 > To: ns-users at ISI.EDU > Message-ID: <369375.52230.qm at web45911.mail.sp1.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > Hi all, > > I want to simulate sensor networks in ns2. Specifically, I want to model > sensor nodes with following capabilities: > > 1. Sensing channel and sensing model > 2. Battery model > 3. Processing Power model with processor voltage and frequency. > > Previously, a part of it was available in ns2 by UCLA in SensorSim at: > > http://nesl.ee.ucla.edu/projects/sensorsim/ > > But now they have removed the code from there. If any body has the > downloaded code from there or have the battery model and processing model > etc., please let me know from where I can get it. I really need that to get > my sensor network simulations working. Thanks! > > Regards, > Arslan > > > > > > ------------------------------ > > Message: 2 > Date: Tue, 27 Jan 2009 11:59:07 +0530 (IST) > From: Arun Kumar > Subject: [ns] Please Help ........Error while creating new packet > types > To: ns-users at ISI.EDU > Message-ID: <996449.58414.qm at web95104.mail.in2.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > sir i have to create a new header type so i searched in the net and > got the code in the website > http://www.isi.edu/nsnam/ns/tutorial/index.html. > > But in packet.h PT_PING and name_[PT_PING]="ping" is already defined > and in ns-default.tcl Agent/Ping set packetSize_ 64 is also defined. > which version you have used and while executing make command i got some > errors the errors are as follows > > In file included from ping.h:12, > from ping.cc:9: > agent.h:41:23: animation.h: No such file or directory > agent.h:42:27: trafficsource.h: No such file or directory > In file included from ping.h:12, > from ping.cc:9: > agent.h:56: error: expected class-name before ',' token > agent.h:101: error: ISO C++ forbids declaration of `TrafficSource' with > no type > agent.h:101: error: expected `;' before '*' token > agent.h:102: error: ISO C++ forbids declaration of `TrafficSource' with > no type > agent.h:102: error: expected `;' before '*' token > agent.h:126: error: ISO C++ forbids declaration of `TrafficSource' with > no type > agent.h:126: error: expected `;' before '*' token > agent.h:135: error: `View' has not been declared > agent.h:135: error: ISO C++ forbids declaration of `parameter' with no > type > agent.h: In member function `virtual int Agent::classid() const': > agent.h:58: error: `ClassAgentID' undeclared (first use this function) > agent.h:58: error: (Each undeclared identifier is reported only once for > each function it appears in.) > agent.h: At global scope: > agent.h:171: error: `View' has not been declared > agent.h:171: error: ISO C++ forbids declaration of `nv' with no type > ping.cc: In member function `virtual TclObject* PingClass::create(int, > const char* const*)': > ping.cc:23: error: cannot allocate an object of type `PingAgent' > ping.cc:23: error: because the following virtual functions are > abstract: > agent.h:73: error: virtual void Agent::findClosestCornertoPoint(double, > double, double&, double&) const > ping.cc: In constructor `PingAgent::PingAgent()': > ping.cc:29: error: no matching function for call to `Agent::Agent > (packet_t)' > agent.h:56: note: candidates are: Agent::Agent(const Agent&) > agent.h:133: note: Agent::Agent(const char*, double) > agent.h:132: note: Agent::Agent(const char*, int, > double) > ping.cc: In member function `virtual int PingAgent::command(int, const > char* const*)': > ping.cc:40: error: `allocpkt' undeclared (first use this function) > ping.cc:49: error: invalid conversion from `Packet*' to `int' > /usr/include/sys/socket.h:136: error: too few arguments to function > `ssize_t send(int, const void*, size_t, int)' > ping.cc:49: error: at this point in file > ping.cc: In member function `void PingAgent::recv(Packet*, Handler*)': > ping.cc:64: error: `off_ip_' undeclared (first use this function) > ping.cc:74: error: `allocpkt' undeclared (first use this function) > ping.cc:82: error: invalid conversion from `Packet*' to `int' > /usr/include/sys/socket.h:136: error: too few arguments to function > `ssize_t send(int, const void*, size_t, int)' > ping.cc:82: error: at this point in file > ping.cc:93: error: no match for 'operator>>' in 'hdrip->hdr_ip::src_ >> > *(Address::instance()->Address::NodeShift_ + 4u)' > make: *** [ping.o] Error 1 > > > > > so sir please help me.looking for your respose kindly. > Thank You > With Regards, > N.ArunKumar > (Final Year B.Tech Information Technology) > > > Unlimited freedom, unlimited storage. Get it now, on > http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ > > > > > ------------------------------ > > Message: 3 > Date: Tue, 27 Jan 2009 13:24:01 +0000 > From: IRFAN LAONE > Subject: [ns] sensor net commercial applications > To: > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > Hi everyone. > > Can anyone refer me to some practical sensor net commercial apps (as MANET > apps) and the routing protocol they use. > > Thanx. > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it now! > http://www.live.com/getstarted.aspx > > ------------------------------ > > Message: 4 > Date: Tue, 27 Jan 2009 11:55:44 -0200 (BRST) > From: fhg07 at c3sl.ufpr.br > Subject: [ns] Changing transmission power too often > To: ns-users at ISI.EDU > Message-ID: > > Content-Type: text/plain;charset=iso-8859-1 > > Well, I want to change my transmission power very constantly, but I am not > managing to do so. Aparently, after some changes its value just stop being > updated. Here is what I am doing to change it: > > In my tcl code: > 61 set phy_($i) [$node_($i) set netif_(0)] > In my C++ code: > 52 tcl.evalf("$phy_(%d) set Pt_ %f",a_->myaddr,Pt_array[tt]); > > Some of the first changes do really occur, but from a point, the rest of > them do not take effect at all, and I do not know how to manage to change > it often. > > Anyone have a suggestion? > > > > Thanks, > -- > Fernando Henrique Gielow - UFPR - NR2 > Computer Science graduation student. > > > > ------------------------------ > > Message: 5 > Date: Tue, 27 Jan 2009 15:22:34 +0000 (GMT) > From: Nadine Chen > Subject: [ns] wireless sensor networks model in NS-2.33 > To: ns-users at ISI.EDU > Message-ID: <753633.19815.qm at web28308.mail.ukl.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > Hi all, > Please tell me if it is possible to simulate wireless sensor networks with > NS2.33 without adding any extensions like mannasim or semsim? > Thank you. > > > > > > ------------------------------ > > Message: 6 > Date: Tue, 27 Jan 2009 08:47:46 -0800 (PST) > From: Douglas Restrepo > Subject: [ns] where i can download NS3 > To: ns > Message-ID: <247250.63945.qm at web24603.mail.ird.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > Hi forum... > > why the size of ns2.29 is 68Mb and the ns3 is only 1.1Mb > > where i can download the ns3 full version? or what i have to install the ns3 > version > > Thankyou > > > > > > > > ------------------------------ > > Message: 7 > Date: Tue, 27 Jan 2009 22:27:13 +0100 > From: Salvador Alcaraz > Subject: Re: [ns] Different page sizes with Web Traffic > To: ns-users at ISI.EDU > Message-ID: > <558ed4630901271327s5ca51ed3td69779bcf238fe65 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Armin, > > the page sizes don't depend of the TCP version. You can see that at the > begining of the simulation, the page sizes are equal, but after a few > seconds, maybe, the size pages are different. > > why?. > > the NS-2 web traffic module models the web traffic interaction as realistics > as it's possible, and it's modeled such Statistical distributions, and some > of them depend of the time. > > So, if you use different TCP protocols (for example, RENO) , with different > timers, different handle of packets, maybe, some packets will arrive at web > server at different times that if you use the other TCP protocol (for > example, CUBIC). So, it's produce different web server responses (maybe with > different size), and this page will produce different behaviour at client > node, and so on... > > Conclussion: it's imposible to compare the same trace with both > protocols..... at least... I don't know > > best regards > > salva > > 2009/1/26 Abfalterer A. > >> >> Hi, >> >> I've made a Web traffic simulation similar to this from >> "ns-2.33/tcl/ex/web-traffic.tcl". I take the same parameters (e.g. for >> page inter-arrival time, object number, etc.) and I want to test it with >> different protocols (TCP NewReno and CUBIC). >> >> First test runs show that the page sizes are not the same for >> *different* protocols. For instance, a test run with one session and 10 >> pages with NewReno gives me pages of following size (in packets!!!) >> >> NewReno CUBIC >> 170 170 >> 1 1 >> 9 9 >> 1 1 >> 2 2 >> 4 4 >> 1 5 <-- different >> 5 1 <-- >> 2 9 <-- >> 10 1 <-- >> >> Anybody who has experience with Web traffic simulations and can tell me >> the reason? Unfortunatley there is not a lot of literature... >> >> Regards, Armin >> >> > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > Ns-users at isi.edu > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 61, Issue 27 > **************************************** > From fhg07 at c3sl.ufpr.br Wed Jan 28 07:35:28 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Wed, 28 Jan 2009 13:35:28 -0200 (BRST) Subject: [ns] remaining ammount of energy of a node Message-ID: <51d6cd3b9d586808b3603b804603e20e.squirrel@webmail.c3sl.ufpr.br> Is there a simple way to get the value of available energy of a node in my C++ code? Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student. From zizou_inf at hotmail.com Wed Jan 28 08:40:49 2009 From: zizou_inf at hotmail.com (zied naas) Date: Wed, 28 Jan 2009 16:40:49 +0000 Subject: [ns] Wireless mesh networks in ns-2 Message-ID: hi i want to simulate a wireless mesh networks like 802.11s and i m confused. can someone hlep me. can i use the wired-cum-wireless model to simulate it anf if yes how thank you Zied Naas ?tudiant Ma?trise r?seaux de t?l?communication T?l: 514 803-3048 _________________________________________________________________ D?couvrez toutes les possibilit?s de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx From zizou_inf at hotmail.com Wed Jan 28 10:27:56 2009 From: zizou_inf at hotmail.com (zied naas) Date: Wed, 28 Jan 2009 18:27:56 +0000 Subject: [ns] wired-cum-wireless ns-2 Message-ID: hi i tried to simulate this scenario and topologies 2 bases stations BS1 and BS2 one wired node BS1 is attached to the wired node BS2 is not attached to the wired node i have created 3 domains : wired domain, BS1 domain and BS2 domain my goal is to send trafic from BS2 to the wired node when i simulate there is no trafic which reached the wired node when i tried to send trafic from the wired node to BS2 i have an error message (why the trafic doesn't go througout the BS1) is there someone who can help me please thank you Zied Naas ?tudiant Ma?trise r?seaux de t?l?communication T?l: 514 803-3048 _________________________________________________________________ Sur Windows Live Ideas, d?couvrez en exclusivit? de nouveaux services en ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le march? ! http://ideas.live.com From ta.rainbow at gmail.com Wed Jan 28 12:55:07 2009 From: ta.rainbow at gmail.com (rainbow dd) Date: Thu, 29 Jan 2009 00:25:07 +0330 Subject: [ns] Problem in UMTS patch In-Reply-To: <1504eae60901281249m18275b6en2edc90d7be4adce3@mail.gmail.com> References: <1504eae60901281249m18275b6en2edc90d7be4adce3@mail.gmail.com> Message-ID: <1504eae60901281255q555e2ea6udfabaf79854d6ce8@mail.gmail.com> Hi to All I have problem in running test_tcp.tcl script in ns-allinone-2.32 I Installes ns-allinone-2.32 on UBUNTU 7.10 then I installed UMTS patch :Patch for clean ns-2.30:ns-2.30_eurane-1.12.diff.gz then I copied this file :http://eurane.ti-wmc.nl/eurane/test_tcp.tcl.txt to Ns-2.32 direcory . I received the following problem : root at name:/usr/local/ns-allinone-2.32/ns-2.32# ns test_tcp.tcl (_o3 cmd line 1) invoked from within "_o3 cmd create-Umtsnode" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "$ns create-Umtsnode" invoked from within "set rnc [$ns create-Umtsnode]" (file "test_tcp.tcl" line 42) Please Help me , I am beginner in NS2. How can I configue the input trace files? the SNRBlerMatrix file? Thanks. From bloomingsathya at gmail.com Wed Jan 28 20:46:44 2009 From: bloomingsathya at gmail.com (sathya narayan) Date: Thu, 29 Jan 2009 10:16:44 +0530 Subject: [ns] tcl coding for location aided routing protocol Message-ID: sir, location-aided routing protocol tcl coding i searched in all i wouldn't get it .so please help me for the tcl coding From v_mandhare at yahoo.com Wed Jan 28 21:02:05 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Thu, 29 Jan 2009 10:32:05 +0530 (IST) Subject: [ns] parameters for tcp and cbr in maodv Message-ID: <372153.17726.qm@web94805.mail.in2.yahoo.com> hi all, I am doing my project on ad-hoc routing protocol specially on tcp and cbr in maodv. Plz tell me , which new parameter we are added in this paper"perfomance comparision of tcp and cbr for maodv". Only parameters like end to end delay and packet dilivery ratio are added .I will try to implement this? paper by adding certain new parameter including mentioned parameter.plz suggest me?other parameter.help me plz!!! Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From mohit.nitte at yahoo.com Thu Jan 29 04:12:28 2009 From: mohit.nitte at yahoo.com (Mohit Tahiliani) Date: Thu, 29 Jan 2009 04:12:28 -0800 (PST) Subject: [ns] Dynamic co-ordinates for a node Message-ID: <747524.71265.qm@web45412.mail.sp1.yahoo.com> Hello Everyone, ? Can we dynamically assign the destination co-ordinates for?a mobile node?by using C++ code? ? Thank you ? Sincerely, Mohit P. Tahiliani? From armirikar at gmail.com Thu Jan 29 08:14:49 2009 From: armirikar at gmail.com (Abhijeet Mirikar) Date: Thu, 29 Jan 2009 21:44:49 +0530 Subject: [ns] One way Function Trees Message-ID: <9d7beec90901290814u229de58cq9dff94214cb2c50b@mail.gmail.com> Hello all, can anybody give me hint about how concept of one way function tree can be implemented using NS2? regards, Abhijeet Mirikar From avtomatk at yandex.ru Thu Jan 29 10:08:17 2009 From: avtomatk at yandex.ru (Ivan_Tiger) Date: Thu, 29 Jan 2009 10:08:17 -0800 (PST) Subject: [ns] line colour in xgraph Message-ID: <21732396.post@talk.nabble.com> Hello! I need to change the color of the one data line in xgraph to black (it is green now and it is barely visible when turned into black and white). Does anyone know how to do that? this is the piece of code, referring to xgraph proc graph {} { for {set i 4} {$i<=5} {incr i} { exec rm -f infra$i.xgr exec awk -f fil$i.awk infra.tr > infra$i.xgr } exec xgraph infra4.xgr infra5.xgr -bg white -x time -y throughput -lw 2.0 -t Throughput_of_two_AP's_versus_time -nb -lf helvetica-18 & #exec nam infra.nam & exit 0 } -- View this message in context: http://www.nabble.com/line-colour-in-xgraph-tp21732396p21732396.html Sent from the ns-users mailing list archive at Nabble.com. From nadine341 at yahoo.fr Thu Jan 29 12:05:54 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Thu, 29 Jan 2009 20:05:54 +0000 (GMT) Subject: [ns] limiting the neighboring radius in NS2.33:please help Message-ID: <239518.79120.qm@web28310.mail.ukl.yahoo.com> Hi all, As you know, we can detect neighboring nodes, by sending and receiving hello messages like what is done in AODV example.But when I did this, I noticed that each node has a very large number of neighbors, so I want to limit this number by reducing the neighboring radius, but I didn't know where can I modify it? Please , if any one has an idea to limit automatically this radius, or any other method to reduce the number of neighbours tell me how ? Thank you very much for your help From mshrehmani at gmail.com Thu Jan 29 12:16:44 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Thu, 29 Jan 2009 21:16:44 +0100 Subject: [ns] limiting the neighboring radius in NS2.33:please help In-Reply-To: <239518.79120.qm@web28310.mail.ukl.yahoo.com> References: <239518.79120.qm@web28310.mail.ukl.yahoo.com> Message-ID: Hi Nadine, One way to reduce the number of neighbors is to reduce the average node density. For example, you have a network of 100 nodes, then you can control the number of nodes, let's say each node can have 10 neighbors or each node can have 20 neighbors. To achieve this, you can vary the grid size and random placement of nodes in the grid. Second this is that, have you declared the node location in your tcl script or load any coordinate file for the nodes? If you won't do this, ns2 will consider that each and every node is the neighbor of each other. So, consider this also. Regards Mubashir Husain Rehmani Lip6, UPMC, Paris, France http://www-npa.lip6.fr/~rehmani/ 2009/1/29 Nadine Chen > > Hi all, > As you know, we can detect neighboring nodes, by sending and > receiving hello messages like what is done in AODV example.But when I did > this, I noticed that each node has a very large number of neighbors, so I > want to limit this number by reducing the neighboring radius, but I didn't > know where can I modify it? > Please , if any one has an idea to limit automatically this radius, or any > other method to reduce the number of neighbours tell me how ? > Thank you very much for your help > > > > > -- Mubashir Husain Rehmani From paraguayita_69 at hotmail.com Tue Jan 27 18:12:04 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Tue, 27 Jan 2009 21:12:04 -0500 Subject: [ns] NS Network capacity Message-ID: Dear users: I have a network with capacity of 62 packets (capacity of the link + capacity of the queue). I have 2 users and I trace the size of the windows of each (cwnd_). I think that the sum of this two window size exceeds the capacity there have to be an event of dropping a package. In this case, using TCP, I have an ?dupack_action? or a ?timeout?. However, there are situations where the sum of the size of the windows of the 2 users (cwnd1 + cwnd2) does not exceeds the capacity and I still have an event of dupack_action. Do someone know why happened the following situation? How the NS2 uses the queue to drop a packet even the sum is not over the maximum capacity of the network? DIANA. _________________________________________________________________ Windows Live?: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009 From rizwan.qadeer at gmail.com Thu Jan 29 23:02:40 2009 From: rizwan.qadeer at gmail.com (Rizwan Qadeer) Date: Thu, 29 Jan 2009 23:02:40 -0800 Subject: [ns] Simulating SCTP for WLAN using TCL Message-ID: Could any one tell me that how can i use SCTP in WLAN and in WIMAX in TCL language. -- Engr. Rizwan From rajstha2006 at gmail.com Thu Jan 29 23:43:44 2009 From: rajstha2006 at gmail.com (Rainn) Date: Thu, 29 Jan 2009 23:43:44 -0800 Subject: [ns] eagerly waiting your reply! Message-ID: <7b8896aa0901292343q57d0ca56k996534a36e5a500b@mail.gmail.com> Dear all, I am trying to run wireless_gpsr.tcl code with new mobility model for vehicular ad hoc networks (VANETs). I have used 100 nodes in GPSR routing protocol having other standard parameters. I have encountered the following errors. I needed your help to fix these errors. Loading connection pattern... Loading scenario file... Load complete... Starting Simulation... ns: _o51 setdest 1622.27 2000.41 0.29998553: (_o51 cmd line 1) invoked from within "_o51 cmd setdest 1622.27 2000.41 0.29998553" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o51" line 2) (SplitObject unknown line 2) invoked from within "_o51 setdest 1622.27 2000.41 0.29998553" Thank you in advance! Rainn From mmm59 at aub.edu.lb Fri Jan 30 00:09:27 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Fri, 30 Jan 2009 10:09:27 +0200 Subject: [ns] How to get the Nodes' coordinate from TCL to C++ In-Reply-To: <3872982.2871951233297322016.JavaMail.nabble@isper.nabble.com> References: <3872982.2871951233297322016.JavaMail.nabble@isper.nabble.com> Message-ID: <20090130100927.jeyhxz63cw8ocg8c@imail.aub.edu.lb> Hi Samira, I had the same question and i got the following reply from Mr. Keven Sheth that turned out to be useful. What he answered specifically is how to calculate the distances between to nodes, which uses the coordinates of the nodes by accessing them from struct mb_node in file God.cc (in ./mobile). After retrieving the nodes coordinates i think it becomes an easy task to pass them to the MAC layer. I also found the same solution that Keven proposed at this link: http://www.cse.msu.edu/~wangbo1/ns2/nshowto2.html Below i will paste Keven's original reply. I hope it turns out useful. Cheers, Mathiew ------------KEVIN'S REPLY-------------------- Hi Mathiew I needed to the same in my project. what I did is used god object. you can study and you can do many more things using it . here I am just describing what I did: I added following function in ns-2.33/mobile/god.cc (you will need to add declaration in god.h) double God::getdistance(int i,int k) { double x1=mb_node[i]->X(); double y1=mb_node[i]->Y(); double x2=mb_node[k]->X(); double y2=mb_node[k]->Y(); double distance; distance=sqrt(((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2))); return distance; } then I was able to get distance between two nodes by writing following code in c++ God::instance()->getdistance(i,k); // i and k are the id of the nodes you will also need to include following statements in your .tcl file 1 after creating topography set topo [new Topography] $topo load_flatgrid $val(x) $val(y) set god_ [create-god $val(nn)] 2. when you are dynamically creating nodes for { set i 0 } { $i < $val(nn) } { incr i } { set node_($i) [$ns_ node $i] $node_($i) random-motion 0 ;# disable random motion $god_ new_node $node_($i) } following is a function of my agent for your reference: void Manetconf::neighbors(int i) { int nodes=God::instance()->nodes(); cout<<"neighbors of node "<IsNeighbor(i,k)) cout<getdistance(i,k)<<" yes"<getdistance(i,k)<<" no"< hi Mathiew > > I have exactly same as your problem. I want to send node coordinate > or position to MAC layer and amke some desicion base on this > information. can i ask you which routing and MAC do you use? > anyway i think we have tosend this information through routing layer > and not bye TCL. > my email: samyar.ece at gmail.com > > and my name is SAMIRA . > > thanks a lot > From samyar.ece at gmail.com Fri Jan 30 00:59:36 2009 From: samyar.ece at gmail.com (Samyar) Date: Fri, 30 Jan 2009 00:59:36 -0800 (PST) Subject: [ns] send position of nodes (coordination of nodes) from Routing layer to MAC layer Message-ID: <21742201.post@talk.nabble.com> Dear All If I want to make a decision on MAC layer based on position of nodes (distance to the sink) which routing protocol is preferred? Can I get node?s distance to the sink at MAC layer and make some decision based on this information? My MAC protocol is SMAC. I am good at MAC layer but I have not enough knowledge at routing layer. I have seen at some articles by GPSR routing protocol we can get node positions. But I don?t know neither that I can use this routing protocol with SMAC nor how I send position info from routing agent to smac.cc . any suggestion will help me.:-(( thanks -- View this message in context: http://www.nabble.com/send-position-of-nodes-%28coordination-of-nodes%29-from-Routing-layer-to-MAC-layer-tp21742201p21742201.html Sent from the ns-users mailing list archive at Nabble.com. From naveedpk_2003 at yahoo.com Fri Jan 30 02:26:46 2009 From: naveedpk_2003 at yahoo.com (Mirza Naveed Baig) Date: Fri, 30 Jan 2009 02:26:46 -0800 (PST) Subject: [ns] how to change node color Message-ID: <567218.5661.qm@web110315.mail.gq1.yahoo.com> Dear All ? ? I am using following code but its not working ? $node color Red ? also tried ? $node color red ? both of above?not working and there is no error as well. ? Whats the proper way to change node color,please help. ? Best Regards ? From Faraz_Hasan-S at email.ulster.ac.uk Fri Jan 30 06:21:04 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Fri, 30 Jan 2009 14:21:04 +0000 Subject: [ns] Sending data to a specific port of a node in ns2 Message-ID: Hi everyone! How can I send data to a specific port on a node in ns-2.33? I recently declare nodes and send data among them, is there any way to send data to a certain port of a node? Please reply back soon. Faraz From mail.greentea at yahoo.com Fri Jan 30 06:56:43 2009 From: mail.greentea at yahoo.com (Green Tea) Date: Fri, 30 Jan 2009 06:56:43 -0800 (PST) Subject: [ns] Directional Antenna (smart antenna) Message-ID: <572890.23358.qm@web112220.mail.gq1.yahoo.com> Hi, Is there any Directional Antenna (or smart antenna) implementation publicly available? I read several papers saying that they have implemented their ideas in NS2 but all I could find is a few outdated and broken links. I am trying to implement my ideas on directional antenna (for Mesh or MANET type network). Any information would be highly appreciated. - Greene From munir.arslan at yahoo.com Fri Jan 30 08:01:31 2009 From: munir.arslan at yahoo.com (Arslan Munir) Date: Fri, 30 Jan 2009 08:01:31 -0800 (PST) Subject: [ns] Parsing Trace File Message-ID: <188016.65972.qm@web45906.mail.sp1.yahoo.com> Hi all, I want to parse some of the columns in the trace file i.e. only want some columns from the trace file. Does any body already has a python script written for that? Please share it with me. Thank you very much! Regards, Arslan From rania_kamal_ce at yahoo.com Fri Jan 30 08:34:10 2009 From: rania_kamal_ce at yahoo.com (eng Rony) Date: Fri, 30 Jan 2009 08:34:10 -0800 (PST) Subject: [ns] xgraph cannot open display Message-ID: <930318.2425.qm@web57415.mail.re1.yahoo.com> Eng Rony hi all, I'm having some problems while I'm=A0trying to run the example4(about xgrap= h) in section VIII from Marc Greis' tutorial. when I was trying to=A0run the example by g= iving the command "ns=A0example4.tcl" it's saying that: xgraph: cannot open display i use cygwin,ns2.29. how can i solve this problem? thanks From Faraz_Hasan-S at email.ulster.ac.uk Fri Jan 30 08:40:20 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Fri, 30 Jan 2009 16:40:20 +0000 Subject: [ns] CBR maxpkts and interval Message-ID: Hi, How can I set a limit of maximum no of packets to be sent from a node in CBR traffic. It is $cbr set maxpkts_ 20 (I think) but it is not working. Even after setting a fixed no of packets for transmission, I see more packets flowing from source to destination. Can some one help me please? Faraz From naveenprabu32 at gmail.com Fri Jan 30 08:46:34 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Fri, 30 Jan 2009 22:16:34 +0530 Subject: [ns] sample code for wsn Message-ID: <3eb5e9570901300846j1648e5a2j8cf8481fc1b1cc86@mail.gmail.com> I have pasted sample tcl file and scenario file here... save scn file as wsn1.scn and tcl file as (say)wsn1.tcl and run tcl file... try runnin this....if any bugs then let me know... wsn1.tcl # ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel ;# Channel Type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy/802_15_4 set val(mac) Mac/802_15_4 set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 25 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 50 set val(y) 50 set val(nam) wsn1.nam set val(traffic) ftp ;# cbr/poisson/ftp #read command line arguments proc getCmdArgu {argc argv} { global val for {set i 0} {$i < $argc} {incr i} { set arg [lindex $argv $i] if {[string range $arg 0 0] != "-"} continue set name [string range $arg 1 end] set val($name) [lindex $argv [expr $i+1]] } } getCmdArgu $argc $argv set appTime1 0.0 ;# in seconds set appTime2 0.3 ;# in seconds set appTime3 0.7 ;# in seconds set stopTime 100 ;# in seconds # Initialize Global Variables set ns_ [new Simulator] set tracefd [open ./wsn1.tr w] $ns_ trace-all $tracefd if { "$val(nam)" == "wsn1.nam" } { set namtrace [open ./$val(nam) w] $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) } $ns_ puts-nam-traceall {# nam4wpan #} ;# inform nam that this is a trace file for wpan (special handling needed) Mac/802_15_4 wpanNam namStatus on ;# default = off (should be turned on before other 'wpanNam' commands can work) #Mac/802_15_4 wpanNam ColFlashClr gold ;# default = gold #Mac/802_15_4 wpanNam NodeFailClr grey ;# default = grey # For model 'TwoRayGround' set dist(5m) 7.69113e-06 set dist(9m) 2.37381e-06 set dist(10m) 1.92278e-06 set dist(11m) 1.58908e-06 set dist(12m) 1.33527e-06 set dist(13m) 1.13774e-06 set dist(14m) 9.81011e-07 set dist(15m) 8.54570e-07 set dist(16m) 7.51087e-07 set dist(20m) 4.80696e-07 set dist(25m) 3.07645e-07 set dist(30m) 2.13643e-07 set dist(35m) 1.56962e-07 set dist(40m) 1.20174e-07 Phy/WirelessPhy set CSThresh_ $dist(15m) Phy/WirelessPhy set RXThresh_ $dist(15m) # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God set god_ [create-god $val(nn)] set chan_1_ [new $val(chan)] # configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF \ #-energyModel "EnergyModel" \ #-initialEnergy 1 \ #-rxPower 0.3 \ #-txPower 0.3 \ -channel $chan_1_ for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } source ./wsn1.scn # Setup traffic flow between nodes proc cbrtraffic { src dst interval starttime } { global ns_ node_ set udp($src) [new Agent/UDP] eval $ns_ attach-agent \$node_($src) \$udp($src) set null($dst) [new Agent/Null] eval $ns_ attach-agent \$node_($dst) \$null($dst) set cbr($src) [new Application/Traffic/CBR] eval \$cbr($src) set packetSize_ 70 eval \$cbr($src) set interval_ $interval eval \$cbr($src) set random_ 0 #eval \$cbr($src) set maxpkts_ 10000 eval \$cbr($src) attach-agent \$udp($src) eval $ns_ connect \$udp($src) \$null($dst) $ns_ at $starttime "$cbr($src) start" } proc poissontraffic { src dst interval starttime } { global ns_ node_ set udp($src) [new Agent/UDP] eval $ns_ attach-agent \$node_($src) \$udp($src) set null($dst) [new Agent/Null] eval $ns_ attach-agent \$node_($dst) \$null($dst) set expl($src) [new Application/Traffic/Exponential] eval \$expl($src) set packetSize_ 70 eval \$expl($src) set burst_time_ 0 eval \$expl($src) set idle_time_ [expr $interval*1000.0-70.0*8/250]ms ;# idle_time + pkt_tx_time = interval eval \$expl($src) set rate_ 250k eval \$expl($src) attach-agent \$udp($src) eval $ns_ connect \$udp($src) \$null($dst) $ns_ at $starttime "$expl($src) start" } if { ("$val(traffic)" == "cbr") || ("$val(traffic)" == "poisson") } { puts "\nTraffic: $val(traffic)" #Mac/802_15_4 wpanCmd ack4data on puts [format "Acknowledgement for data: %s" [Mac/802_15_4 wpanCmd ack4data]] set lowSpeed 0.5ms set highSpeed 1.5ms Mac/802_15_4 wpanNam PlaybackRate $lowSpeed $ns_ at [expr $appTime1+0.1] "Mac/802_15_4 wpanNam PlaybackRate $highSpeed" $ns_ at $appTime2 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" $ns_ at [expr $appTime2+0.1] "Mac/802_15_4 wpanNam PlaybackRate $highSpeed" $ns_ at $appTime3 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" $ns_ at [expr $appTime3+0.1] "Mac/802_15_4 wpanNam PlaybackRate $highSpeed" eval $val(traffic)traffic 19 6 0.2 $appTime1 eval $val(traffic)traffic 10 4 0.2 $appTime2 eval $val(traffic)traffic 3 2 0.2 $appTime3 Mac/802_15_4 wpanNam FlowClr -p AODV -c tomato Mac/802_15_4 wpanNam FlowClr -p ARP -c green if { "$val(traffic)" == "cbr" } { set pktType cbr } else { set pktType exp } Mac/802_15_4 wpanNam FlowClr -p $pktType -s 19 -d 6 -c blue Mac/802_15_4 wpanNam FlowClr -p $pktType -s 10 -d 4 -c green4 Mac/802_15_4 wpanNam FlowClr -p $pktType -s 3 -d 2 -c cyan4 $ns_ at $appTime1 "$node_(19) NodeClr blue" $ns_ at $appTime1 "$node_(6) NodeClr blue" $ns_ at $appTime1 "$ns_ trace-annotate \"(at $appTime1) $val(traffic) traffic from node 19 to node 6\"" $ns_ at $appTime2 "$node_(10) NodeClr green4" $ns_ at $appTime2 "$node_(4) NodeClr green4" $ns_ at $appTime2 "$ns_ trace-annotate \"(at $appTime2) $val(traffic) traffic from node 10 to node 4\"" $ns_ at $appTime3 "$node_(3) NodeClr cyan3" $ns_ at $appTime3 "$node_(2) NodeClr cyan3" $ns_ at $appTime3 "$ns_ trace-annotate \"(at $appTime3) $val(traffic) traffic from node 3 to node 2\"" } proc ftptraffic { src dst starttime } { global ns_ node_ set tcp($src) [new Agent/TCP] eval \$tcp($src) set packetSize_ 60 set sink($dst) [new Agent/TCPSink] eval $ns_ attach-agent \$node_($src) \$tcp($src) eval $ns_ attach-agent \$node_($dst) \$sink($dst) eval $ns_ connect \$tcp($src) \$sink($dst) set ftp($src) [new Application/FTP] eval \$ftp($src) attach-agent \$tcp($src) $ns_ at $starttime "$ftp($src) start" } if { "$val(traffic)" == "ftp" } { puts "\nTraffic: ftp" #Mac/802_15_4 wpanCmd ack4data off puts [format "Acknowledgement for data: %s" [Mac/802_15_4 wpanCmd ack4data]] set lowSpeed 0.20ms set highSpeed 1.5ms Mac/802_15_4 wpanNam PlaybackRate $lowSpeed $ns_ at [expr $appTime1+0.2] "Mac/802_15_4 wpanNam PlaybackRate $highSpeed" $ns_ at $appTime2 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" $ns_ at [expr $appTime2+0.2] "Mac/802_15_4 wpanNam PlaybackRate $highSpeed" $ns_ at $appTime3 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" $ns_ at [expr $appTime3+0.2] "Mac/802_15_4 wpanNam PlaybackRate 1ms" ftptraffic 19 6 $appTime1 ftptraffic 10 4 $appTime2 ftptraffic 3 2 $appTime3 Mac/802_15_4 wpanNam FlowClr -p AODV -c tomato Mac/802_15_4 wpanNam FlowClr -p ARP -c green Mac/802_15_4 wpanNam FlowClr -p tcp -s 19 -d 6 -c blue Mac/802_15_4 wpanNam FlowClr -p ack -s 6 -d 19 -c blue Mac/802_15_4 wpanNam FlowClr -p tcp -s 10 -d 4 -c green4 Mac/802_15_4 wpanNam FlowClr -p ack -s 4 -d 10 -c green4 Mac/802_15_4 wpanNam FlowClr -p tcp -s 3 -d 2 -c cyan4 Mac/802_15_4 wpanNam FlowClr -p ack -s 2 -d 3 -c cyan4 $ns_ at $appTime1 "$node_(19) NodeClr blue" $ns_ at $appTime1 "$node_(6) NodeClr blue" $ns_ at $appTime1 "$ns_ trace-annotate \"(at $appTime1) ftp traffic from node 19 to node 6\"" $ns_ at $appTime2 "$node_(10) NodeClr green4" $ns_ at $appTime2 "$node_(4) NodeClr green4" $ns_ at $appTime2 "$ns_ trace-annotate \"(at $appTime2) ftp traffic from node 10 to node 4\"" $ns_ at $appTime3 "$node_(3) NodeClr cyan3" $ns_ at $appTime3 "$node_(2) NodeClr cyan3" $ns_ at $appTime3 "$ns_ trace-annotate \"(at $appTime3) ftp traffic from node 3 to node 2\"" } # defines the node size in nam for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 2 } # Tell nodes when the simulation ends for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $stopTime "$node_($i) reset"; } $ns_ at $stopTime "stop" $ns_ at $stopTime "puts \"\nNS EXITING...\"" $ns_ at $stopTime "$ns_ halt" proc stop {} { global ns_ tracefd val env $ns_ flush-trace close $tracefd set hasDISPLAY 0 foreach index [array names env] { #puts "$index: $env($index)" if { ("$index" == "DISPLAY") && ("$env($index)" != "") } { set hasDISPLAY 1 } } if { ("$val(nam)" == "wsn1.nam") && ("$hasDISPLAY" == "1") } { exec ./nam wsn1.nam & } } puts "\nStarting Simulation..." $ns_ run -------------------------------- wsn1.scn # # nodes: 25, pause: 2.00, max speed: 2.00 max x = 50.00, max y: 50.00 # $node_(0) set X_ 26.608377307314 $node_(0) set Y_ 49.446991827566 $node_(0) set Z_ 0.000000000000 $node_(1) set X_ 49.337311778721 $node_(1) set Y_ 48.582820874924 $node_(1) set Z_ 0.000000000000 $node_(2) set X_ 27.437938215931 $node_(2) set Y_ 30.091658830425 $node_(2) set Z_ 0.000000000000 $node_(3) set X_ 10.568766842667 $node_(3) set Y_ 47.453389414657 $node_(3) set Z_ 0.000000000000 $node_(4) set X_ 32.496269526711 $node_(4) set Y_ 2.257450139045 $node_(4) set Z_ 0.000000000000 $node_(5) set X_ 26.476535726599 $node_(5) set Y_ 38.646396828920 $node_(5) set Z_ 0.000000000000 $node_(6) set X_ 49.430596917301 $node_(6) set Y_ 31.320042376073 $node_(6) set Z_ 0.000000000000 $node_(7) set X_ 20.045665842364 $node_(7) set Y_ 32.537008965783 $node_(7) set Z_ 0.000000000000 $node_(8) set X_ 13.641089465783 $node_(8) set Y_ 28.871428688349 $node_(8) set Z_ 0.000000000000 $node_(9) set X_ 2.125856848941 $node_(9) set Y_ 9.049644538277 $node_(9) set Z_ 0.000000000000 $node_(10) set X_ 0.596871605178 $node_(10) set Y_ 0.816174228621 $node_(10) set Z_ 0.000000000000 $node_(11) set X_ 8.828197591068 $node_(11) set Y_ 34.402175912553 $node_(11) set Z_ 0.000000000000 $node_(12) set X_ 18.759762507870 $node_(12) set Y_ 25.069997591097 $node_(12) set Z_ 0.000000000000 $node_(13) set X_ 13.277017351151 $node_(13) set Y_ 5.522149009306 $node_(13) set Z_ 0.000000000000 $node_(14) set X_ 28.935083056450 $node_(14) set Y_ 37.156742480258 $node_(14) set Z_ 0.000000000000 $node_(15) set X_ 23.507724673396 $node_(15) set Y_ 3.566772846479 $node_(15) set Z_ 0.000000000000 $node_(16) set X_ 20.236128396148 $node_(16) set Y_ 45.484419961171 $node_(16) set Z_ 0.000000000000 $node_(17) set X_ 45.709636471608 $node_(17) set Y_ 48.353113573382 $node_(17) set Z_ 0.000000000000 $node_(18) set X_ 45.610349971557 $node_(18) set Y_ 49.787732692400 $node_(18) set Z_ 0.000000000000 $node_(19) set X_ 24.345058881159 $node_(19) set Y_ 19.614188426582 $node_(19) set Z_ 0.000000000000 $node_(20) set X_ 35.972132273531 $node_(20) set Y_ 10.620805728046 $node_(20) set Z_ 0.000000000000 $node_(21) set X_ 49.626765649851 $node_(21) set Y_ 14.028905860151 $node_(21) set Z_ 0.000000000000 $node_(22) set X_ 14.914806804685 $node_(22) set Y_ 24.094071765795 $node_(22) set Z_ 0.000000000000 $node_(23) set X_ 28.443020411336 $node_(23) set Y_ 24.367299319338 $node_(23) set Z_ 0.000000000000 $node_(24) set X_ 48.102836431793 $node_(24) set Y_ 22.394995544608 $node_(24) set Z_ 0.000000000000 ------------- From naveenprabu32 at gmail.com Fri Jan 30 09:53:05 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Fri, 30 Jan 2009 23:23:05 +0530 Subject: [ns] how to draw xgraph from tae trace file Message-ID: <3eb5e9570901300953y41ece938s863241699ec148f7@mail.gmail.com> please tel me how to draw the xgraph from trace file.........? From mohit.nitte at yahoo.com Sat Jan 31 00:50:59 2009 From: mohit.nitte at yahoo.com (Mohit Tahiliani) Date: Sat, 31 Jan 2009 00:50:59 -0800 (PST) Subject: [ns] C++ code for "setdest" in TCL Message-ID: <56321.84882.qm@web45412.mail.sp1.yahoo.com> Hello Everyone, ? When we manually set the destination of the mobile node by using "setdest" in TCL, which function is called in C++?? ? Is it MobileNode::set_destination(double x, double y, double s) in MobileNode.cc ?? ? Thank you, ? Sincerely, Mohit P. Tahiliani From brainyvishwa at gmail.com Sat Jan 31 01:07:36 2009 From: brainyvishwa at gmail.com (vishwa srikanth) Date: Sat, 31 Jan 2009 14:37:36 +0530 Subject: [ns] how to add parameters to existing aodv code Message-ID: hi users i am tryin to alter the aodv code to implement my paper.i want guidelines in studying the aodv code.could somebody help me or provide documentations for the existing aodv code thanks in advance regards Vishwa From chum_arun at ymail.com Sat Jan 31 02:39:49 2009 From: chum_arun at ymail.com (Arun Kumar) Date: Sat, 31 Jan 2009 16:09:49 +0530 (IST) Subject: [ns] error while compiling c++ code.............. Message-ID: <533558.7205.qm@web95111.mail.in2.yahoo.com> hi,while compiling the following c++ code i got the following error please help me to resolve this error. file: ip1.cc #include #include #include #include struct ipnode /* To Store Node Information */ { char ip[15]; }node[10]; class ip: public TclObject { public: ip(); protected: int command(int argc,const char*const* argv); private: char address[10][15]; void setIP(int i,char a[]); }; static class ipClass : TclClass { public: ipClass(); TclObject* create(int,const char*const*) { return (new ip()); } }class_myip; ip::ip() { bind("ip",&ip); } int ip::command(int argc,const char*const*argv) { Tcl& tcl=Tcl::instance(); if(argc==4) { if(strcmp(argv[1],"setIP")==0){ setIP(argv[2],argv[3]); return(TCL_OK); } } return(ip::command(argc,argv)); } void ip::setIP(int i,char a[]) { strcpy(ip[i],a); } ERROR:::: ip1.cc: In constructor `ip::ip()': ip1.cc:30: error: expected primary-expression before ')' token ip1.cc: In member function `void ip::setIP(int, char*)': ip1.cc:45: error: expected primary-expression before '[' token with regards, N.ArunKumar Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ From shailander_sv at yahoo.com Sat Jan 31 02:43:34 2009 From: shailander_sv at yahoo.com (Shailander Srinivasa V) Date: Sat, 31 Jan 2009 16:13:34 +0530 (IST) Subject: [ns] DART protocol implementation in NS2 Help Needed Message-ID: <374154.41850.qm@web94705.mail.in2.yahoo.com> Hi All, ????????? I would like to know if anybody is working on implementation of DART (Dynamic address RouTing) protocol in NS2. I need some help in implementing the Look Up module for this protocol which uses the concept of DHT and Overlays. It will be very helpful to me if anyone can provide some guidelines and pointers regarding the same. ???????? Thanking you in Advance. Regards, Shailander Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From zealotmat at hotmail.com Sat Jan 31 03:17:04 2009 From: zealotmat at hotmail.com (Tong Mao) Date: Sat, 31 Jan 2009 19:17:04 +0800 Subject: [ns] Problem when simulate the ARQ example in "Introduction to Network Simulator NS2" Message-ID: Hello everyone, When I try the ARQ example in T. Issariyakul and E. Hossain's book "Introduction to Network Simulator NS2" , I met an problem. I add all the code, run make, do the simulation: ns arq.tcl but I got error messages from the system: invalid command name "ARQTx" while executing "ARQTx create _o39 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new ARQTx" (procedure "_o17" line 4) (SimpleLink link-arq line 4) invoked from within "$link link-arq $limit" (procedure "_o3" line 3) (Simulator link-arq line 3) invoked from within "$ns link-arq 3 $n0 $n1" (file "arq.tcl" line 42) I think maybe the definiation of ARQTx is wrong. Dose anybody know what's the problem? Thank you very much. Best Regards, Tong Mao _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ From n.aniruddha at yahoo.com Sat Jan 31 11:41:05 2009 From: n.aniruddha at yahoo.com (Aniruddha Niranjan) Date: Sat, 31 Jan 2009 11:41:05 -0800 (PST) Subject: [ns] Tcl Script Problem. Please help. Message-ID: <17265.77814.qm@web55807.mail.re3.yahoo.com> Hi. I implementing a new application layer protocol over the nsis module on ns- 2.29. I am running the tcl scripts now, and I am having a problem while setting up the nodes in the following manner using for loop: #Nodes for {set i 1} {($i) <= 2} {incr i} { set n($i) [$ns node] set udp($i) [new Agent/UDP] $ns attach-agent $n($i) $udp($i) set tcp($i) [new Agent/TCP/SimpleTcp] $ns attach-agent $n($i) $tcp($i) $tcp($i) set fid_ 0 $tcp($i) listen set app($i) [new Application/TcpApp/GistTcpApp $tcp($i)] set gist($i) [new Application/Gist] $gist($i) attachAgent $udp($i) $app($i) setapp $gist($i) $gist($i) pbs-install } #Links $ns duplex-link $n1 $n2 1Mb 100ms DropTail $ns duplex-link-op $n1 $n2 orient right This is giving the following error when I try to send any packets from node n1 to n2. can't read "n1": no such variable while executing "$ns duplex-link $n1 $n2 1Mb 100ms DropTail" But if I initialize the n1 and n2 separately without use of for loop, the script is running fine. Without for loop the initialization is as follows: set n1 [$ns node] set udp1 [new Agent/UDP] $ns attach-agent $n1 $udp1 set tcp1 [new Agent/TCP/SimpleTcp] $ns attach-agent $n1 $tcp1 $tcp1 set fid_ 0 $tcp1 listen set app1 [new Application/TcpApp/GistTcpApp $tcp1] set gist1 [new Application/Gist] $gist1 attachAgent $udp1 $app1 setapp $gist1 $gist1 pbs-install set n2 [$ns node] set udp2 [new Agent/UDP] $ns attach-agent $n2 $udp2 set tcp2 [new Agent/TCP/SimpleTcp] $ns attach-agent $n2 $tcp2 $tcp2 set fid_ 0 $tcp2 listen set app2 [new Application/TcpApp/GistTcpApp $tcp2] set gist2 [new Application/Gist] $gist2 attachAgent $udp2 $app2 setapp $gist2 $gist2 pbs-install Kindly help me out. What am I doing wrong in case of the for loop? Thanks in anticipation. Regards, Aniruddha From naveenprabu32 at gmail.com Fri Jan 30 09:05:54 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Fri, 30 Jan 2009 22:35:54 +0530 Subject: [ns] error in generation of LEACH tcl file using script generator tool in manasim framework Message-ID: <3eb5e9570901300905x5051a749wd530c320f6bb5cec@mail.gmail.com> I am usin ns2.29 I generated tcl for LEACH protocol in wsn using script generator tool (in manasim framework) and when i run that tcl i am not getting the NAM output...some error in displaying NAM..I am getting errors like NODES NOT DEFINED....may be i would have done wrongly in that script generator tool........... But when i did for AODV protocol i am getting the result.....so ...please let me know wat to do.................