From kamal.nsuser at gmail.com Thu Dec 1 00:01:32 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Thu, 1 Dec 2005 09:01:32 +0100 Subject: [ns] Problem witn 802.11e In-Reply-To: <20051130152029.38092.qmail@web26606.mail.ukl.yahoo.com> References: <20051130152029.38092.qmail@web26606.mail.ukl.yahoo.com> Message-ID: For The first warning: Either you can avoid it OR see referenced file " mitf.tcl", understand the way channel is defined. Second warning could have various reasons: a) error in code (most likely after you did the modification) b) error in path (unlikely but probable) -- kamal On 11/30/05, Wassim BHS wrote: > > > Hi all the world > I'm using 802.11e EDCF of TKN in ns-2.26, Linux mandrake 10.0, so i done > i done a modification on it (802.11e source code) after executing it no > errors there but it show me these warnings bellow : > > Strong:~/ns-allinone-2.26/ns-2.26 # ns wassim.tcl > num_nodes is set 5 > warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl > warning: no class variable Mac/802_11e::limit_ > > see tcl-object.tcl in tclcl for info about this warning. > > warning: no class variable Mac/802_11e::util_weight_ > > warning: no class variable Mac/802_11e::blocked_ > > warning: no class variable Mac/802_11e::unblock_on_resume_ > > warning: no class variable Mac/802_11e::drop_front_ > > warning: no class variable Mac/802_11e::summarystats_ > > warning: no class variable Mac/802_11e::queue_in_bytes_ > > warning: no class variable Mac/802_11e::mean_pktsize_ > > warning: no class variable Mac/802_11e::Prefer_Routing_Protocols > > warning: no class variable Mac/802_11e::Max_Levels > > warning: no class variable Mac/802_11e::Levels > > warning: no class variable Mac/802_11e::limit_ > > see tcl-object.tcl in tclcl for info about this warning. > > warning: no class variable Mac/802_11e::util_weight_ > > warning: no class variable Mac/802_11e::blocked_ > > warning: no class variable Mac/802_11e::unblock_on_resume_ > > warning: no class variable Mac/802_11e::drop_front_ > > warning: no class variable Mac/802_11e::summarystats_ > > warning: no class variable Mac/802_11e::queue_in_bytes_ > > warning: no class variable Mac/802_11e::mean_pktsize_ > > warning: no class variable Mac/802_11e::Prefer_Routing_Protocols > > warning: no class variable Mac/802_11e::Max_Levels > > warning: no class variable Mac/802_11e::Levels > > warning: no class variable Mac/802_11e::limit_ > > see tcl-object.tcl in tclcl for info about this warning. > > warning: no class variable Mac/802_11e::util_weight_ > > warning: no class variable Mac/802_11e::blocked_ > > warning: no class variable Mac/802_11e::unblock_on_resume_ > > warning: no class variable Mac/802_11e::drop_front_ > > warning: no class variable Mac/802_11e::summarystats_ > > warning: no class variable Mac/802_11e::queue_in_bytes_ > > warning: no class variable Mac/802_11e::mean_pktsize_ > > warning: no class variable Mac/802_11e::Prefer_Routing_Protocols > > warning: no class variable Mac/802_11e::Max_Levels > > warning: no class variable Mac/802_11e::Levels > > warning: no class variable Mac/802_11e::limit_ > > see tcl-object.tcl in tclcl for info about this warning. > > warning: no class variable Mac/802_11e::util_weight_ > > warning: no class variable Mac/802_11e::blocked_ > > warning: no class variable Mac/802_11e::unblock_on_resume_ > > warning: no class variable Mac/802_11e::drop_front_ > > warning: no class variable Mac/802_11e::summarystats_ > > warning: no class variable Mac/802_11e::queue_in_bytes_ > > warning: no class variable Mac/802_11e::mean_pktsize_ > > warning: no class variable Mac/802_11e::Prefer_Routing_Protocols > > warning: no class variable Mac/802_11e::Max_Levels > > warning: no class variable Mac/802_11e::Levels > > > After it show the message : Segmentation fault. > Whats the problem then? > Thank you for response > > > > ----------------------------------------------------------------------------------------- > Wassim BEN HADJ SGHAIER > Laboratoire PRISM > Tel : 0033 01 39 25 43 27 > Mail : wassimbhs at gmail.com > > > > > > > > --------------------------------- > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > T?l?chargez le ici ! > From f.hajer at gmail.com Thu Dec 1 00:23:17 2005 From: f.hajer at gmail.com (Hajer FERJANI) Date: Thu, 1 Dec 2005 09:23:17 +0100 Subject: [ns] router packet processing delays In-Reply-To: <3032cfcd0511301837p3f27dfabga9a7f23dc2af2f56@mail.gmail.com> References: <3032cfcd0511301837p3f27dfabga9a7f23dc2af2f56@mail.gmail.com> Message-ID: <947619e70512010023y339d964ai5dcf58f89ce28923@mail.gmail.com> Hi Peter, One way to introduce delay in routing could be to schedule outgoing packets with some delay, exemple: Scheduler::instance().schedule(target_, packet, delay); instead of Scheduler::instance().schedule(target_, packet, 0.); which is done now in routing components (aodv.cc for example). Hope it helps. Bye. Hajer. On 12/1/05, Peter Djalaliev wrote: > > > Hello, > > Does anybody know what the best way would be to implement a processing > delay > in a router node in NS? > > In the NS source code, Queue directory, I found this DelayModel object, > which uses a Scheduler to delay scheduling some kind of event after it is > being received. However, I wasn't able to find much info online about > what > exactly this is doing. > > Is there a way to use this to implement router processing delays? Is > there > another way? > > Thank you, > Peter > From lertnitiwong at csupomona.edu Thu Dec 1 01:20:22 2005 From: lertnitiwong at csupomona.edu (lertnitiwong) Date: Thu, 1 Dec 2005 01:20:22 -0800 Subject: [ns] how to measure data transfer time? Message-ID: <4392D3B7@iitwebmail.win.csupomona.edu> Hi all, I'm trying to simulate multiple TCP agents that transfer data simultaneously. However, i want each one to transfer certain amount of data, How do i specify that? and also how can I measure the time it takes for all agents to completely transfer the specified amount of data (and also time for each agent?)? Thank you in advance Bee From pnimonkar at gmail.com Thu Dec 1 02:20:23 2005 From: pnimonkar at gmail.com (preeti nimonkar) Date: Thu, 1 Dec 2005 15:50:23 +0530 Subject: [ns] no effect by changing buffer size in droptail queue Message-ID: <3792d16c0512010220w2b408ea1qfcc1fae5a70dd21b@mail.gmail.com> hi , can any body tell me why changing buffer size will not affect simulation , I have simulate wired & wireless topology. In wired I have define buffer size as $ns queue-limit $n10 $n8 256 & in wireless I have define set val(ifqlen) 50 in both cases I have changed queue limit ,it should affect packet drop,but in both cases I got same trace file ,without any change. please help me out From acuevasrumin at gmail.com Thu Dec 1 02:26:30 2005 From: acuevasrumin at gmail.com (angel cuevas rumin) Date: Thu, 1 Dec 2005 11:26:30 +0100 Subject: [ns] DELAY PACKET IN AP Message-ID: <58c1ea0512010226k36b7717eq691dee597fb4274a@mail.gmail.com> Hello, I am working with a Wireless Network in infrastrucuture mode. I am simulating VoIP calls. I want control the delay of the packet in the AP, for example add a fixed delay off 30ms, in addition the delay of processing or the delay in the queue. I would appreciate any idea about this. Thanks in advance. Kind regards. From wiethoel at tkn.tu-berlin.de Thu Dec 1 02:14:42 2005 From: wiethoel at tkn.tu-berlin.de (Sven Wiethoelter) Date: Thu, 1 Dec 2005 11:14:42 +0100 Subject: [ns] Problem witn 802.11e Message-ID: <5338E5B2-7E4D-4800-B4B8-38287087B85E@tkn.tu-berlin.de> On Dec 1, 2005, at 9:01 AM, Kamal Gakhar wrote: > > For The first warning: Either you can avoid it OR see referenced > file " > mitf.tcl", understand the way channel is defined. > Second warning could have various reasons: > a) error in code (most likely after you did the modification) > b) error in path (unlikely but probable) c) a binding in the code of C++ variables to (undefined) TCL variables. Please check all parameter settings in the corresponding files, e.g. ns-default.tcl and ns-mac.tcl. Kind regards, Sven > -- > kamal > > On 11/30/05, Wassim BHS wrote: >> >> >> Hi all the world >> I'm using 802.11e EDCF of TKN in ns-2.26, Linux mandrake 10.0, >> so i done >> i done a modification on it (802.11e source code) after executing >> it no >> errors there but it show me these warnings bellow : >> >> Strong:~/ns-allinone-2.26/ns-2.26 # ns wassim.tcl >> num_nodes is set 5 >> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl >> warning: no class variable Mac/802_11e::limit_ >> >> see tcl-object.tcl in tclcl for info about this warning. >> >> warning: no class variable Mac/802_11e::util_weight_ >> >> warning: no class variable Mac/802_11e::blocked_ >> >> warning: no class variable Mac/802_11e::unblock_on_resume_ >> >> warning: no class variable Mac/802_11e::drop_front_ >> >> warning: no class variable Mac/802_11e::summarystats_ >> >> warning: no class variable Mac/802_11e::queue_in_bytes_ >> >> warning: no class variable Mac/802_11e::mean_pktsize_ >> >> warning: no class variable Mac/802_11e::Prefer_Routing_Protocols >> >> warning: no class variable Mac/802_11e::Max_Levels >> >> warning: no class variable Mac/802_11e::Levels >> >> warning: no class variable Mac/802_11e::limit_ >> >> see tcl-object.tcl in tclcl for info about this warning. >> >> warning: no class variable Mac/802_11e::util_weight_ >> >> warning: no class variable Mac/802_11e::blocked_ >> >> warning: no class variable Mac/802_11e::unblock_on_resume_ >> >> warning: no class variable Mac/802_11e::drop_front_ >> >> warning: no class variable Mac/802_11e::summarystats_ >> >> warning: no class variable Mac/802_11e::queue_in_bytes_ >> >> warning: no class variable Mac/802_11e::mean_pktsize_ >> >> warning: no class variable Mac/802_11e::Prefer_Routing_Protocols >> >> warning: no class variable Mac/802_11e::Max_Levels >> >> warning: no class variable Mac/802_11e::Levels >> >> warning: no class variable Mac/802_11e::limit_ >> >> see tcl-object.tcl in tclcl for info about this warning. >> >> warning: no class variable Mac/802_11e::util_weight_ >> >> warning: no class variable Mac/802_11e::blocked_ >> >> warning: no class variable Mac/802_11e::unblock_on_resume_ >> >> warning: no class variable Mac/802_11e::drop_front_ >> >> warning: no class variable Mac/802_11e::summarystats_ >> >> warning: no class variable Mac/802_11e::queue_in_bytes_ >> >> warning: no class variable Mac/802_11e::mean_pktsize_ >> >> warning: no class variable Mac/802_11e::Prefer_Routing_Protocols >> >> warning: no class variable Mac/802_11e::Max_Levels >> >> warning: no class variable Mac/802_11e::Levels >> >> warning: no class variable Mac/802_11e::limit_ >> >> see tcl-object.tcl in tclcl for info about this warning. >> >> warning: no class variable Mac/802_11e::util_weight_ >> >> warning: no class variable Mac/802_11e::blocked_ >> >> warning: no class variable Mac/802_11e::unblock_on_resume_ >> >> warning: no class variable Mac/802_11e::drop_front_ >> >> warning: no class variable Mac/802_11e::summarystats_ >> >> warning: no class variable Mac/802_11e::queue_in_bytes_ >> >> warning: no class variable Mac/802_11e::mean_pktsize_ >> >> warning: no class variable Mac/802_11e::Prefer_Routing_Protocols >> >> warning: no class variable Mac/802_11e::Max_Levels >> >> warning: no class variable Mac/802_11e::Levels >> >> >> After it show the message : Segmentation fault. >> Whats the problem then? >> Thank you for response >> >> >> >> >> --------------------------------------------------------------------- >> -------------------- >> Wassim BEN HADJ SGHAIER >> Laboratoire PRISM >> Tel : 0033 01 39 25 43 27 >> Mail : wassimbhs at gmail.com >> >> >> >> >> >> >> >> --------------------------------- >> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! >> Messenger >> T?l?chargez le ici ! >> > From quanle at tk.uni-linz.ac.at Thu Dec 1 02:54:11 2005 From: quanle at tk.uni-linz.ac.at (Quan Le Trung) Date: Thu, 01 Dec 2005 11:54:11 +0100 Subject: [ns] Bug: "Scheduler: Event UID not valid!" Message-ID: <438ED653.2030505@tk.uni-linz.ac.at> Hi! I am writing a new routing protocol for MANETs! When I run a simple test for 50 mobile nodes, it generates error: "Scheduler: Event UID not valid"! I have read some discusses on mailing-list achieve [Jan 2005, http://mailman.isi.edu/pipermail/ns-users/2005-January/subject.html] and test for alternative proposed there. Here are results: My computer: Suse Linux 9.3, test for NS-2.28, NS-2.27, NS-2.26 1. Original NS-2.26-28 (ad-hoc routing/MAC-802.11) It stops at 267sec/total 900 secs simulation 2. Modified MAC-802.11 using fixed bug from Maguolo Federico: http://mailman.isi.edu/pipermail/ns-users/2005-January/047000.html http://www.dei.unipd.it/wdyn/?IDsezione=2435 Still got the same error, but at longer time 3. Modified MAC-802.11 using package WLAN802.11a/b/g from Mike Moreton's http://cvs.sourceforge.net/viewcvs.py/ns2-wlan-patch/#dirlist Still got the same error, but sooner. Note that the speed becomes slowly! >From these discussions, I know the problem is from scheduling at the MAC layer, which will be partly affected by how events are scheduled in the ad-hoc routing layer. This is why in AODV, a random time is used to schedule the packets, esp. in broadcasting! I try to schedule packets randomly, e.g. schedule(this, packet, 0.01*Random::uniform()) instead of schedule(this, packet,0.) and it runs successfully! Another point is broadcast periodically, also randomly: e.g. schedule(this, &intr, a*BCAST_INTERVAL+2*(1-a)*BCAST_INTERVAL*Random::uniform()) with 0 References: <4597b4d00511282143mcea236cs@mail.gmail.com> Message-ID: You can output the trace info for each node to seperate files. On Tue, 29 Nov 2005, yu lei wrote: > > hello everyone,I have this problem that the trace file size exceed > windowsFAT32 file system limit 4G,and subsequent trace data lost! so > how to deal with this problem? > From vincent.nauwelaers at student.kuleuven.ac.be Thu Dec 1 04:17:29 2005 From: vincent.nauwelaers at student.kuleuven.ac.be (Vincent Nauwelaers) Date: Thu, 1 Dec 2005 13:17:29 +0100 Subject: [ns] no effect by changing buffer size in droptail queue References: <3792d16c0512010220w2b408ea1qfcc1fae5a70dd21b@mail.gmail.com> Message-ID: <004601c5f671$33006b50$a836000a@ronny> Are you sure some nodes have more than 50 packets in their queue at one moment in time ? Try it by decreasing the queue-limit even further, 50 still is a lot, it's the default value if not mistaking. sincerely, --Vincent ----- Original Message ----- From: "preeti nimonkar" To: Sent: Thursday, December 01, 2005 11:20 AM Subject: [ns] no effect by changing buffer size in droptail queue > > hi , > can any body tell me why changing buffer size will not affect simulation , > I have simulate wired & wireless topology. > In wired I have define buffer size as > $ns queue-limit $n10 $n8 256 > & in wireless I have define > set val(ifqlen) 50 > in both cases I have changed queue limit ,it should affect packet > drop,but in both cases I got same trace file ,without any change. > please help me out > > From msidi79 at yahoo.com Thu Dec 1 04:47:48 2005 From: msidi79 at yahoo.com (mix si) Date: Thu, 1 Dec 2005 04:47:48 -0800 (PST) Subject: [ns] Bug: "Scheduler: Event UID not valid!" In-Reply-To: <438ED653.2030505@tk.uni-linz.ac.at> Message-ID: <20051201124748.56613.qmail@web36308.mail.mud.yahoo.com> Hello Quan, this link might help you: http://www.dei.unipd.it/wdyn/?IDsezione=2435 sorry if you are already aware of that, Michael Quan Le Trung wrote: Hi! I am writing a new routing protocol for MANETs! When I run a simple test for 50 mobile nodes, it generates error: "Scheduler: Event UID not valid"! I have read some discusses on mailing-list achieve [Jan 2005, http://mailman.isi.edu/pipermail/ns-users/2005-January/subject.html] and test for alternative proposed there. Here are results: My computer: Suse Linux 9.3, test for NS-2.28, NS-2.27, NS-2.26 1. Original NS-2.26-28 (ad-hoc routing/MAC-802.11) It stops at 267sec/total 900 secs simulation 2. Modified MAC-802.11 using fixed bug from Maguolo Federico: http://mailman.isi.edu/pipermail/ns-users/2005-January/047000.html http://www.dei.unipd.it/wdyn/?IDsezione=2435 Still got the same error, but at longer time 3. Modified MAC-802.11 using package WLAN802.11a/b/g from Mike Moreton's http://cvs.sourceforge.net/viewcvs.py/ns2-wlan-patch/#dirlist Still got the same error, but sooner. Note that the speed becomes slowly! >From these discussions, I know the problem is from scheduling at the MAC layer, which will be partly affected by how events are scheduled in the ad-hoc routing layer. This is why in AODV, a random time is used to schedule the packets, esp. in broadcasting! I try to schedule packets randomly, e.g. schedule(this, packet, 0.01*Random::uniform()) instead of schedule(this, packet,0.) and it runs successfully! Another point is broadcast periodically, also randomly: e.g. schedule(this, &intr, a*BCAST_INTERVAL+2*(1-a)*BCAST_INTERVAL*Random::uniform()) with 0<1, instead of schedule(this, &intr, BCAST_INTERVAL) I test another senario with 100 nodes and it is OK! But still getting same error when I change the radius (number of hops) of broadcasting for building cluster! I just run some tests and not sure the results! Any discussion and helping are welcome! Quan Le Trung --------------------------------- Yahoo! Personals Single? There's someone we'd like you to meet. Lots of someones, actually. Yahoo! Personals From fl0wer at virgilio.it Thu Dec 1 05:07:19 2005 From: fl0wer at virgilio.it (Marco Fiore) Date: Thu, 1 Dec 2005 14:07:19 +0100 (GMT+01:00) Subject: [ns] R: doubt regarding TCP throughput caluculation Message-ID: <31970178.1133442439145.JavaMail.root@pswm3.cp.tin.it> Anand, the two formulas you are using are not the same. Roughly, the first one gives you the goodput (amount of data actually received), the second one gives you the throughput (amount of data transmitted). The difference should be given by lost packets which are retransmitted. However, you got two very different values, which means that: 1) TCP suffers from heavy losses, or 2) there's something wrong in the way received packets or average congestion window size or average RTT are calculated. I also assumed that the badwidth is sufficient for the whole congestion window to be transmitted within a RTT, otherwise the second formula cannot be used. Regards, Marco Fiore ----Messaggio originale---- Da: anandk at ece.iisc.ernet.in Data: 1-dic-2005 6.56 AM A: Ogg: [ns] doubt regarding TCP throughput caluculation Hello everybody, I have one doubt... I'm simulating a scenario like: one TCP connection running between two mobiles in wireless network(UMTS). I calculated the throughput as =total no of pkts rx/simulation time. And we also no that mean throghput=mean window size/mean RTT.. from simulation i got mean window size,mean RTT. from this farmula if i compute the throughput,it is not matching with the one computed from simulation(total no. of pkts rx/simu. time). I think it should match becoz I'm using both values which i got using simulation(mean RTT,mean Window size). what i mean is like the below one throughput =total no of pkts rx/simulation time=mean window size/mean RTT but i got throughput =total no of pkts rx/simulation time=3790/50=75.8 throughput =mean window size/mean RTT=61.55/.149=412.75 so both values r no mathching. Regards Anand Kunde Research Student(MSc(Engg)) Performance Analysis Lab Department Of Electrical Communications Indian Institute Of Science Bangalore-560 012 India Email Id:anandk at ece.iisc.ernet.in anand.kunde at gmail.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From tomh at tomh.org Thu Dec 1 06:39:30 2005 From: tomh at tomh.org (Tom Henderson) Date: Thu, 01 Dec 2005 06:39:30 -0800 Subject: [ns] ns-2 FAQ Message-ID: <438F0B22.9070705@tomh.org> The Network Simulator ns-2: Frequently Asked Questions (This FAQ is also on the web at http://www.isi.edu/nsnam/ns/ns-faq.html.) _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 ahmedm9 at lsbu.ac.uk Thu Dec 1 06:47:59 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Thu, 1 Dec 2005 14:47:59 -0000 Subject: [ns] adhocrouting error Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062A0@CSD-EXBE-VS1.lsbu.ac.uk> Hi ,ALL i am trying to run this tcl script and i am receiving the following error any body can understand this error plz help me out...... num_nodes is set 3 invalid command name "-adhocRouting" while executing ""-adhocRouting $opt(adhocRouting) \ " (file "help1.tcl" line 133) #Here is the TCL script: # simulation of a wired-wireless topology running with mobileIP # MH, HA, FA, and 2 wired nodes ######################### # WLAN network interface# ######################### Mac/802_11 set basicRate_ 1Mb Mac/802_11 set dataRate_ 11Mb set val(WLAN_netif) Phy/WirelessPhy ; set val(WLAN_802.11) Mac/802_11 ; ######################### # UMTS network interface# ######################### Phy/WirelessPhy set freq_ 2.4e+9 Phy/WirelessPhy set Pt_ 3.3962527e-2 Phy/WirelessPhy set RXThresh_ 6.309573e-11 Phy/WirelessPhy set CSThresh_ 6.309573e-11 Phy/WirelessPhy set delay_ 100ms ############################################################## Mac/802_11 set basicRate_ 0.1Mb Mac/802_11 set dataRate_ 0.384Mb set val(UMTS_netif) Phy/WirelessPhy ; set val(UMTS_802.11) Mac/802_11 ; set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# link layer type set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 1 ;# number of mobilenodes set opt(adhocRouting) DSDV ;# routing protocol set opt(x) 400 ;# x coordinate of topology set opt(y) 400 ;# y coordinate of topology set opt(seed) 0.0 ;# random seed set opt(stop) 80.0 ;# time to stop simulation set opt(propu) Propagation/UmtsTdd ; set opt(ftp1-start) 10.0 set num_wired_nodes 2 # create simulator instance set ns_ [new Simulator] # set up for hierarchical routing $ns_ node-config -addressType hierarchical $ns_ color 2 red AddrParams set domain_num_ 3 ;# number of domains lappend cluster_num 2 1 1 ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 2 1 ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain set tracefd [open test9.tr w] set f1 [open tes9.tr w] set namtrace [open test9.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) # Create topography object set topo [new Topography] # define topology $topo load_flatgrid $opt(x) $opt(y) # create God # 2 for HA and FA create-god [expr $opt(nn) + 2] #create wired nodes set temp {0.0.0 0.1.0} ;# hierarchical addresses for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } ############# # Create HA # ############# set chan1 [new $opt(chan)] $ns_ node-config -mobileIP ON \ -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $val(WLAN_802.11) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $val(WLAN_netif) \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace OFF \ -routerTrace OFF \ -macTrace OFF \ -channel $chan1 set HA [$ns_ node 1.0.0] ############# # Create FA # ############# #set chan2 [new $opt(chan)] $ns_ node-config -mobileIP ON \ -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $val(UMTS_802.11) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(propu) \ -phyType $val(UMTS_netif) \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace OFF \ -routerTrace OFF \ -macTrace OFF \ -channel $chan1 set FA [$ns_ node 2.0.0] $HA random-motion 0 $FA random-motion 0 # Position (fixed) for base-station nodes (HA & FA). $HA set X_ 50.000000000000 $HA set Y_ 100.000000000000 $HA set Z_ 0.000000000000 $FA set X_ 300.000000000000 $FA set Y_ 300.000000000000 $FA set Z_ 0.000000000000 #################################################### # create a mobile node moving between HA and FA. #################################################### $ns_ node-config -phyType $val(UMTS_netif) \ -phyType $val(WLAN_netif) \ -macType $val(UMTS_802.11) \ -macType $val(WLAN_802.11) \ -wiredRouting OFF \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -channel $chan1 set MH [$ns_ node 1.0.1] set node_(0) $MH set HAaddress [AddrParams addr2id [$HA node-addr]] [$MH set regagent_] set home_agent_ $HAaddress $MH set Z_ 0.000000000000 $MH set Y_ 70.000000000000 $MH set X_ 60.000000000000 ###################### # Movement Scenarios # ###################### # MH starts to move towards FA $ns_ at 20.0000000000000 "$MH setdest 310.000000000000 290.000000000000 10.000000000000" # goes back to HA $ns_ at 60.0000000000000 "$MH setdest 55.000000000000 55.000000000000 20.000000000000" # create links between wired and BaseStation nodes $ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail $ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail $ns_ duplex-link $W(1) $FA 5Mb 2ms DropTail $ns_ duplex-link-op $W(1) $W(0) orient left-up $ns_ duplex-link-op $W(1) $HA orient left-down $ns_ duplex-link-op $W(1) $FA orient right-up ######################## # Setup traffic # ######################## set tcp1 [new Agent/TCP] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns_ attach-agent $W(0) $tcp1 $ns_ attach-agent $MH $sink1 $ns_ connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns_ at $opt(ftp1-start) "$ftp1 start" for {set i 0} {$i < $opt(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 10 } # Tell all nodes when the simulation ends for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop).0 "$node_($i) reset"; } $ns_ at $opt(stop).0 "$HA reset"; $ns_ at $opt(stop).0 "$FA reset"; $ns_ at $opt(stop).0002 "puts \"NS FINISHED...\" ; $ns_ halt" $ns_ at $opt(stop).0001 "stop" proc stop {} { global ns_ tracefd namtrace close $tracefd close $namtrace exit 0 } puts "Simulating Please wait..." $ns_ run From fl0wer at virgilio.it Thu Dec 1 05:12:13 2005 From: fl0wer at virgilio.it (Marco Fiore) Date: Thu, 1 Dec 2005 14:12:13 +0100 (GMT+01:00) Subject: [ns] R: Problem with trace file Message-ID: <32212428.1133442733811.JavaMail.root@pswm3.cp.tin.it> Try adding the follwing command $ns_ flush-trace at the end of the simulation (right before the '$ns_ halt' command. Regards, Marco Fiore ----Messaggio originale---- Da: giudp at libero.it Data: 30-nov- 2005 2.09 PM A: "ns-users" Ogg: [ns] Problem with trace file Hi NS-users... I have a problem with tracefile.When i execute my network topology i have messages like "Warning:tracefiles are not sorted by time..." What's the problem exactly? Thank you for suggestions Giuseppe From ahmedm9 at lsbu.ac.uk Thu Dec 1 07:29:14 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Thu, 1 Dec 2005 15:29:14 -0000 Subject: [ns] UMTS Error Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062A1@CSD-EXBE-VS1.lsbu.ac.uk> Hi ,All i am trying to install umts extension develpoed by Pablo Martin and Paula Ballester i tried to install the software according to readme file i run this command ./install then i got following error checking for XOpenDisplay in -lX11... no can't find X library Makefile.in is newer than Makefile. You need to re-run configure. false make: *** [Makefile] Error 1 then i chek to run the exapmles scripts i got following error $ns example1.tcl invalid command name "Phy/UMTS" while executing "Phy/UMTS set verbose_0" (file "example1.tcl line 24) if any body knows about these error..please help me out from this problem... Thnaks Masroor From laerciopericles at gmail.com Thu Dec 1 06:57:19 2005 From: laerciopericles at gmail.com (=?ISO-8859-1?Q?Laercio_J=FAnior?=) Date: Thu, 1 Dec 2005 10:57:19 -0400 Subject: [ns] Error: Wrong node routing agent! Message-ID: <395e46db0512010657u15558659i82de246e7ae1d7e1@mail.gmail.com> Hello everybody, I am trying to do the routing protocol CHAMP work in ns-2.28. I set the parameter value "adhocRouting" of wireless node as "CHAMP" in the simulation script, but when running the script, it is reported the following message: "Wrong node routing agent!". Could anybody help me to solve this problem? Thanks in advance, La?rcio From kamal.nsuser at gmail.com Thu Dec 1 00:04:51 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Thu, 1 Dec 2005 09:04:51 +0100 Subject: [ns] how it is possible to trasfer a video trace on wireless network In-Reply-To: <3792d16c0511292343s7882daa6n7e50390ccf6941b8@mail.gmail.com> References: <3792d16c0511292343s7882daa6n7e50390ccf6941b8@mail.gmail.com> Message-ID: Can you give more details on what you are trying to do..?? A naive answer is just "connect" source and destination and send "traffic" type. On 11/30/05, preeti nimonkar wrote: > > > hi ,can any body tell me how it is possible to trasfer a video trace > on wireless network. > > -- Kamal From esseleme at yahoo.fr Thu Dec 1 09:57:59 2005 From: esseleme at yahoo.fr (wassim) Date: Thu, 1 Dec 2005 09:57:59 -0800 (PST) Subject: [ns] [bug] warnings Message-ID: <200512011757.jB1HvxK08196@www.isi.edu> [Bug Report] ----------------------------- Category: Other Package: ns 2.26 OS: linux mandrake 10.0 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: warning: no class variable Mac/802_11e::limit_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Mac/802_11e::util_weight_ warning: no class variable Mac/802_11e::blocked_ warning: no class variable Mac/802_11e::unblock_on_resume_ warning: no class variable Mac/802_11e::drop_front_ warning: no class variable Mac/802_11e::summarystats_ warning: no class variable Mac/802_11e::queue_in_bytes_ warning: no class variable Mac/802_11e::mean_pktsize_ warning: no class variable Mac/802_11e::Prefer_Routing_Protocols warning: no class variable Mac/802_11e::Max_Levels warning: no class variable Mac/802_11e::Levels From mumer at cs.mu.OZ.AU Thu Dec 1 17:32:38 2005 From: mumer at cs.mu.OZ.AU (Muhammad UMER) Date: Fri, 2 Dec 2005 11:32:38 +1000 Subject: [ns] Trouble with Agent Up-calls to Application In-Reply-To: <20051202002908.M58301@cs.mu.OZ.AU> References: <20051201080048.M38779@cs.mu.OZ.AU> <20051201085334.M42836@cs.mu.OZ.AU> <20051202002908.M58301@cs.mu.OZ.AU> Message-ID: <20051202011351.M35392@cs.mu.OZ.AU> Hi Everyone Im implementing routing algorithms for sensor networks and this problem is primarily concerned with interaction between Application and Agent in ns-2 ver 2.29. In fact I did find some questions of very similar nature in the archives of the list but there are no definite answers. It'll be great help if someone can help. Background: ----------- My prime objective is to simulate an evoironment where applications are running on each of the sensor nodes, application data is passed to the agent which disseminate it to the network using a particular strategy. Moreover, on reciviving data, agent forward it to the attached application. For this purpose I implemented a new routing agent, T-Agg, and was able to run simulations succesfuly using this routing agent. Later I developed an application (inheriting from Class Application) and in the Tcl script created multiple application instances and attach each of these to unique T- Agg agent instances (using "attach-agent") which are in turn connected to nodes. The Question: ------------- For agent up-calls to the application I plan to use app_ pointer provided by the class Agent which is set in the attach-agent command handler. The main trouble is that even though I do attach-agent in the Tcl correctly, app_ pointer of T-Agg objects soon become void. When I check the app_ of any T-Agg object before starting packet dissemination it give me correct reference. But as soon as the packet dissemination is started app_ pointers of all the T-Agg objects seem to reset or become void and hence as soon as agent up-call is reached program exits with a Segmentation Fault. I will be looking forward to any suggestions/comments/feedback regarding this unpredictable behavior of app_ pointers. Or any other comments regarding a better/alternate way of reaching the same objective. Thanks a lot Regards Umer -- NICTA - Victoria Lab U of Melbourne From anup.ns at gmail.com Fri Dec 2 01:49:31 2005 From: anup.ns at gmail.com (A Anupama) Date: Fri, 2 Dec 2005 15:19:31 +0530 Subject: [ns] Urgent: ns.exe not found Message-ID: <252d6e1c0512020149p3c2c8c83mdb4b59e559ccb813@mail.gmail.com> Hi I want to implement a new adhoc routing protocol in ns2. So, i made some new .cc and .h files and started compiling. I made necessaray changes to make file and i issued the make command. I received some errors in the process of compilation. After when I tried to run a simple tcl file (simple-wireless.tcl) which i successfully run previously... it is giving an error bash: ns: command not found. So I tried to locate ns.exe file. But I am not able to find it... one short cut is there in bin directory, but its target is not specified... How can I get ns.exe file back ? Is it happened due to the compiler error I received ? Thanks in advance Regds Anupama From vincent.nauwelaers at student.kuleuven.ac.be Fri Dec 2 05:25:57 2005 From: vincent.nauwelaers at student.kuleuven.ac.be (Vincent Nauwelaers) Date: Fri, 2 Dec 2005 14:25:57 +0100 Subject: [ns] Urgent: ns.exe not found References: <252d6e1c0512020149p3c2c8c83mdb4b59e559ccb813@mail.gmail.com> Message-ID: <001201c5f743$edbbbb20$a836000a@ronny> It should be in the ns-allineone-2.28/bin ... if not, you might have deleted it, like I did once. Reinstall or restore from a copy/back-up, which I recommend to everybody ! ----- Original Message ----- From: "A Anupama" To: Sent: Friday, December 02, 2005 10:49 AM Subject: [ns] Urgent: ns.exe not found > > Hi > > I want to implement a new adhoc routing protocol in ns2. So, i made > some new .cc and .h files and started compiling. I made necessaray changes > to make file and i issued the make command. I received some errors in the > process of compilation. > > After when I tried to run a simple tcl file (simple-wireless.tcl) which i > successfully run previously... it is giving an error > > bash: ns: command not found. > > So I tried to locate ns.exe file. But I am not able to find it... one short > cut is there in bin directory, but its target is not specified... How can I > get ns.exe file back ? Is it happened due to the compiler error I received ? > > Thanks in advance > > Regds > Anupama > > From pedro.estrela at gmail.com Fri Dec 2 05:44:38 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 2 Dec 2005 13:44:38 -0000 Subject: [ns] FW: UMTS Error Message-ID: <006a01c5f746$89f17000$172914ac@Estrela> > i am trying to install umts extension develpoed by Pablo Martin and > Paula Ballester > > i tried to install the software according to readme file i run this > command ./install > > then i got following error > > checking for XOpenDisplay in -lX11... no > can't find X library > Makefile.in is newer than Makefile. > You need to re-run configure. <<<<<<<<<<<<< > false > make: *** [Makefile] Error 1 do: ./configure --help then: ./configure --enable_debug > then i chek to run the exapmles scripts i got following error > > $ns example1.tcl > > invalid command name "Phy/UMTS" > > while executing > > "Phy/UMTS set verbose_0" This will only work when you install that extension correctly Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 From pedro.estrela at gmail.com Fri Dec 2 06:01:35 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 2 Dec 2005 14:01:35 -0000 Subject: [ns] Problem with tracefile In-Reply-To: Message-ID: <009901c5f748$e8515f00$172914ac@Estrela> a) use better descriptive subjects. Example: "receiving 'tracefiles are not sorted by time' notice in NAM" > Hi NS-users... > I have a problem with tracefile.When i > execute my network topology i have messages like "Warning:tracefiles > are not sorted by time..." > What's the problem exactly? That happens a lot in NAM traces. Basically, some parts of the NAM trace code output the time values with different float precisions, eg: (just examples) fprintf(file, "%f", time); fprintf(file, "%7.7df, time); this results in trace events that seem to be not ordered in time for NAM. However, these only slightly affect the visualization of the simulation. If you take the time to find which fprintfs suffer from this problem, please send this info to the developers. Pedro Vale Estrela From ddwa03 at kom.aau.dk Fri Dec 2 06:53:06 2005 From: ddwa03 at kom.aau.dk (ddwa03@kom.aau.dk) Date: Fri, 2 Dec 2005 15:53:06 +0100 Subject: [ns] New user - help needed Message-ID: <1133535186.43905fd23b7a4@webmail.kom.aau.dk> Hej everybody, I am a new user and I need some clarification. I have a dumb-bell topology with an input traffic as CBR on UDP, defined by a packet size of, say 50. I know the 50 bytes packet is concerned only to the payload and I presume that NS2 attaches the headers IP/UDP by default. Now I have two questions; 1. How do we confirm if the headers are attached? Is there any place where I need to activate the operation of attaching the specific headers? 2. What about RTP header, how to attach it? Is it true when UDP is specified, RTP header is assumed by default in NS2. Your response would be greatly appreciated. Thank you. Best regards, Deepak ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From vindya.amaradasa at elec.qmul.ac.uk Fri Dec 2 04:52:59 2005 From: vindya.amaradasa at elec.qmul.ac.uk (Vindya Amaradasa) Date: Fri, 2 Dec 2005 12:52:59 -0000 Subject: [ns] Urgent: ns.exe not found References: <252d6e1c0512020149p3c2c8c83mdb4b59e559ccb813@mail.gmail.com> Message-ID: <000a01c5f73f$535cacf0$6121258a@vpn.elec.qmul.ac.uk> Yes, if you got compile erros, it wouldn't create ns.exe - hence the error. The solution is to get rid of the erros, (worst case - undo your changes) & compile successfully! In my experience, it has always been a good idea to back up the entire ns-2.28 folder prior to making any major changes. Vindya ----- Original Message ----- From: "A Anupama" To: Sent: Friday, December 02, 2005 9:49 AM Subject: [ns] Urgent: ns.exe not found > > Hi > > I want to implement a new adhoc routing protocol in ns2. So, i made > some new .cc and .h files and started compiling. I made necessaray changes > to make file and i issued the make command. I received some errors in the > process of compilation. > > After when I tried to run a simple tcl file (simple-wireless.tcl) which i > successfully run previously... it is giving an error > > bash: ns: command not found. > > So I tried to locate ns.exe file. But I am not able to find it... one > short > cut is there in bin directory, but its target is not specified... How can > I > get ns.exe file back ? Is it happened due to the compiler error I received > ? > > Thanks in advance > > Regds > Anupama > From vindya.amaradasa at elec.qmul.ac.uk Fri Dec 2 06:11:06 2005 From: vindya.amaradasa at elec.qmul.ac.uk (Vindya Amaradasa) Date: Fri, 2 Dec 2005 14:11:06 -0000 Subject: [ns] Urgent: ns.exe not found References: <252d6e1c0512020149p3c2c8c83mdb4b59e559ccb813@mail.gmail.com> Message-ID: <022e01c5f74a$4017f680$6121258a@vpn.elec.qmul.ac.uk> Yes, if you got compile erros, it wouldn't create ns.exe - hence the error. The solution is to get rid of the erros, (worst case - undo your changes) & compile successfully! In my experience, it has always been a good idea to back up the entire ns-2.28 folder prior to making any major changes. Vindya ----- Original Message ----- From: "A Anupama" To: Sent: Friday, December 02, 2005 9:49 AM Subject: [ns] Urgent: ns.exe not found > > Hi > > I want to implement a new adhoc routing protocol in ns2. So, i made > some new .cc and .h files and started compiling. I made necessaray changes > to make file and i issued the make command. I received some errors in the > process of compilation. > > After when I tried to run a simple tcl file (simple-wireless.tcl) which i > successfully run previously... it is giving an error > > bash: ns: command not found. > > So I tried to locate ns.exe file. But I am not able to find it... one > short > cut is there in bin directory, but its target is not specified... How can > I > get ns.exe file back ? Is it happened due to the compiler error I received > ? > > Thanks in advance > > Regds > Anupama > From okjaeouk at mlab.t.u-tokyo.ac.jp Fri Dec 2 07:27:52 2005 From: okjaeouk at mlab.t.u-tokyo.ac.jp (okjaeouk) Date: Sat, 3 Dec 2005 00:27:52 +0900 Subject: [ns] Desperate cry for help: beacon interval configuration in 802.11b infrastructure mode In-Reply-To: <20051202151752.E97762CEA4E@saffron.mlab.t.u-tokyo.ac.jp> Message-ID: <20051202152753.E3A362CEA41@saffron.mlab.t.u-tokyo.ac.jp> Hi all, I am sorry if my question has already been answered. Though I saw many similar questions in the archive, I could not find any clear answer... My question is how to configure beacon interval in IEEE 802.11b infrastructure mode. Currently I am trying to simulate how much traffic load affects beacon transmission in a negative way in the same channel. I want to check beacon behavior, e.g. tx time, rx time, collision, etc...in a MAC trace file, but I could not find out how to set up access points which broadcast beacons with configurable interval. Reading NS change log, it seems that IEEE802.11 infrastructure mode has been implemented since ns-2.27. http://www.isi.edu/nsnam/ns/CHANGES.html I tried test-suite-wireless-lan-ap.tcl under /ns-allinone-2.29/ns-2.29/tcl/test, but I could not see any beacon traces in trace file. I checked ns-2.29/tcl/lib/ns-default.tcl, but I could not find any default value regarding beacon interval... I also have seen three clues in the below source codes, but unfortunately my poor knowledge was not enough to figure it out. In ns-2.29/tcl/lib/ns-mobilenode.tcl Node/MobileNode instproc CFP { beacon_period cfp_duration } { if {$mactype == "Mac/802_11"} { $self instvar mac_ set ns_ [Simulator instance] set beacon_period [$ns_ delay_parse $beacon_period] set cfp_duration [$ns_ delay_parse $cfp_duration] $mac_(0) cfp $beacon_period $cfp_duration } } In ns-2.29/tcl/ex/miptest.tcl # 6. For configurable parameters, see the constructors of these modules # for the "bind" statements; beacon period can be set by the statement # " beacon-period ". # some changes are made by Ya 2/99 In ns-2.29/tcl/lib/ns-mip.tcl Agent/MIPBS instproc init { node args } { eval $self next $args # if mobilenode, donot use bcasttarget; use target_ instead; if {[$node info class] != "MobileNode/MIPBS" && \ [$node info class] != "Node/MobileNode"} { $self instvar BcastTarget_ set BcastTarget_ [new Classifier/Replicator] $self bcast-target $BcastTarget_ } $self beacon-period 1.0 ;# default value } In fact, I tried to replace beacon with CBR, but in vain because of replied ACKs. When I modified mac-80211.cc so that node does not reply ACK, I failed to emulate beacon because of ARP packets... Is there anybody here who knows how to configure beacon interval and see the beacon frame in the trace file? Please help me. I am using ns-2.29 on FreeBSD 5.3 Thank you very much for your time and attention. Best Regards, Jaeouk From pedro.estrela at gmail.com Fri Dec 2 07:31:41 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 2 Dec 2005 15:31:41 -0000 Subject: [ns] New user - help needed In-Reply-To: <1133535186.43905fd23b7a4@webmail.kom.aau.dk> Message-ID: <000001c5f755$7e3cc5c0$172914ac@Estrela> a) use better subjects: http://www.catb.org/~esr/faqs/smart-questions.html#bespecific -------- You must use the right agent. Use Agent/RTP. It should produce RTP + UDP headers To know which agents exist, check this FAQ http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html > Is it true when UDP is specified, > RTP header is assumed by default in NS2. No -------------- > Hej everybody, > > I am a new user and I need some clarification. > > I have a dumb-bell topology with an input traffic as CBR on UDP, defined > by a > packet size of, say 50. I know the 50 bytes packet is concerned only to > the > payload and I presume that NS2 attaches the headers IP/UDP by default. Now > I > have two questions; > > 1. How do we confirm if the headers are attached? Is there any place where > I > need to activate the operation of attaching the specific headers? > 2. What about RTP header, how to attach it? Is it true when UDP is > specified, > RTP header is assumed by default in NS2. > > Your response would be greatly appreciated. > > Thank you. > > Best regards, > Deepak > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. From rolozadag at mail.udistrital.edu.co Fri Dec 2 07:35:46 2005 From: rolozadag at mail.udistrital.edu.co (=?iso-8859-1?Q?Ren=E9_Orlando_Lozada_Guti=E9rrez?=) Date: Fri, 2 Dec 2005 10:35:46 -0500 Subject: [ns] Error: Wrong node routing agent! In-Reply-To: <395e46db0512010657u15558659i82de246e7ae1d7e1@mail.gmail.com> Message-ID: <000001c5f756$10caa010$3764140a@udistrital.edu.co> Hi I has this error when I create a protocol and it was why I don't make the touch command to the files packet.h and packet.cc, after I recompile. Bye Ren? Lozada -----Mensaje original----- De: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] En nombre de Laercio J?nior Enviado el: Jueves, 01 de Diciembre de 2005 09:57 a.m. Para: ns-users at ISI.EDU Asunto: [ns] Error: Wrong node routing agent! Hello everybody, I am trying to do the routing protocol CHAMP work in ns-2.28. I set the parameter value "adhocRouting" of wireless node as "CHAMP" in the simulation script, but when running the script, it is reported the following message: "Wrong node routing agent!". Could anybody help me to solve this problem? Thanks in advance, La?rcio From jun.uog at gmail.com Fri Dec 2 08:16:03 2005 From: jun.uog at gmail.com (j t) Date: Fri, 2 Dec 2005 08:16:03 -0800 Subject: [ns] Broadcasting problem in MANET Message-ID: My application is derived from the Class Application. In my application, one mobile node will periodically broadcast to whole networks. One way is to send message to all nodes in a for loop because the node addresses are from 0 and increased by 1. The other way is to use the IP_BROADCAST as the destionation address. However, the second way doesn't work. Does someone know how to solve this problem? Sometimes, a node needs to send message to its neighbors(one hop distance). Can I use the broadcast and set TTL in IP header as 1 to get it? In addition, is there a method from which I can get a list of node's neighbors? I have read the AODV source code and I know how to realize the above functions in AODV. However, my code is on the application level and the above functions seem difficult for me. Could someone help me? Thanks a lot in advance. From pedro.estrela at gmail.com Fri Dec 2 09:35:35 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 2 Dec 2005 17:35:35 -0000 Subject: [ns] FAQ: How to known which Agents are implemented in NS2 / which protocols are implemented in NS2 Message-ID: <000301c5f766$cdbd7e80$172914ac@Estrela> Check this FAQ in http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html How to known which Agents are implemented in NS2 / which protocols are implemented in NS2 A very common question is to know what protocols are implemented in NS2. For example, NS2 is well respected by having very good implementations of the different flavors/options of TCP. However, to know exactly what agents implement said protocols, one has two options: a) look into the NS2 manual - AFAIK, it does not have the description of every single thing implemented; b) search directly into the source code, using "grep -d recurse "Agent"" and related methods. Alternative 1 Using the otcl MASH object inspector (installation described here), this task is made trivial; one just has to check the otcl classes under "Agent". For this, simply create a MashInspector object, and check the class named "Class". On the instances column you'll check all the NS2 classes, which in my version of NS are 595 of them. Thus, for the TCP variants are present in Agent/TCP/*. (screenshot) Alternative 2 An alternative would be to simply use the "info" introspection functions of NS2. Eg, Agent info subclass However, note that this will only give you the first level of subclasses under Agent/*. Thus, Agent/TCP/NewReno and its other friends will NOT appear. Alternative 3 For addressing this, one can use the "subclass" method that I propose in ns2_shared_procs.tcl, and is explained below. Eg. Agent subclass This results in this complete list of Agent subclasses. From wangbo.ns at gmail.com Fri Dec 2 10:47:02 2005 From: wangbo.ns at gmail.com (Bo Wang) Date: Fri, 2 Dec 2005 13:47:02 -0500 Subject: [ns] How to Get Instance of Routing Agent (Solution) Message-ID: <9b2415140512021047m184f22f3xddb61f893c7bb254@mail.gmail.com> Hi, all Hope this be useful for you. The link for this http://www.cse.msu.edu/~wangbo1/nshowto5.html This simple example shows how to access the AODV routing agent of other nodes. Use the following code in aodv.cc. This method can also be used to access other objects such as mobilenode, etc. AODV* aodvagent; // set i to be the node id char command[256]; sprintf(command, "foreach aodvagent [Agent/AODV info instances]\ {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i); Tcl& tcl = Tcl::instance(); tcl.eval(command); const char* ref = tcl.result(); aodvagent = (AODV*)tcl.lookup(ref); From pedro.estrela at gmail.com Fri Dec 2 11:46:04 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 2 Dec 2005 19:46:04 -0000 Subject: [ns] How to Get Instance of Routing Agent (Solution) In-Reply-To: <9b2415140512021047m184f22f3xddb61f893c7bb254@mail.gmail.com> Message-ID: <001201c5f779$090dccd0$172914ac@Estrela> > Hope this be useful for you. > The link for this > http://www.cse.msu.edu/~wangbo1/nshowto5.html Hi there, These are some nice how-tos! > This simple example shows how to access the AODV routing agent of other > nodes. Use the following code in aodv.cc. This method can also be used to > access other objects such as mobilenode, etc. > > AODV* aodvagent; > > // set i to be the node id > > char command[256]; > sprintf(command, "foreach aodvagent [Agent/AODV info instances]\ > {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i); > > Tcl& tcl = Tcl::instance(); > tcl.eval(command); > const char* ref = tcl.result(); > > aodvagent = (AODV*)tcl.lookup(ref); For tutorial purposes, let me explain what this code does, as it is a common example of C++ / oTCL integration: - suppose i == 99 - in C++, a script is prepared to run, where the c++ variable id is inserted in the "%d". Thus, the script results as this (comments are mine): // cycle through all AODV nodes foreach aodvagent [Agent/AODV info instances] // if the current node has the id we want, save it if { [$aodvagent id] == 99 } { set i $aodvagent} } // dummy set, to make the function return the value $i. // could also been just "return $i" set t $i } - in C++, the tcl.eval command executes the script - the result of it saved in tcl.result() (eg, the otcl object _oXX that we're looking for) - converts the _oXX otcl object to c++ object with tcl.lookup() Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ From ahmedm9 at lsbu.ac.uk Fri Dec 2 13:53:17 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Fri, 2 Dec 2005 21:53:17 -0000 Subject: [ns] FW: UMTS Error References: <006a01c5f746$89f17000$172914ac@Estrela> Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062A2@CSD-EXBE-VS1.lsbu.ac.uk> Thnaks friend can you please tell me where i had made the mistake in installation or can you provide me the details of how to install the umts ns extension MASROOR ________________________________ From: ns-users-bounces at ISI.EDU on behalf of Pedro Vale Estrela Sent: Fri 12/2/2005 1:44 PM To: ns-users at ISI.EDU Subject: [ns] FW: UMTS Error > i am trying to install umts extension develpoed by Pablo Martin and > Paula Ballester > > i tried to install the software according to readme file i run this > command ./install > > then i got following error > > checking for XOpenDisplay in -lX11... no > can't find X library > Makefile.in is newer than Makefile. > You need to re-run configure. <<<<<<<<<<<<< > false > make: *** [Makefile] Error 1 do: ./configure --help then: ./configure --enable_debug > then i chek to run the exapmles scripts i got following error > > $ns example1.tcl > > invalid command name "Phy/UMTS" > > while executing > > "Phy/UMTS set verbose_0" This will only work when you install that extension correctly Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 From opensource.gnu at gmail.com Fri Dec 2 23:22:04 2005 From: opensource.gnu at gmail.com (open source) Date: Sat, 3 Dec 2005 13:07:04 +0545 Subject: [ns] CBQ problem Message-ID: <835e01960512022322q72d3a3edm646bc7407d0bb8ef@mail.gmail.com> Hi everyone! i am trying to simulate CBQ for two class, everything looks fine but when i try to run it i got error message like: unknown-flow from $node to $sink with $flow-id. The exact error message is as: ns: _o74 unknown-flow 0 3 1: (_o74 cmd line 1) invoked from within "_o74 cmd unknown-flow 0 3 1" 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 "_o74" line 2) (SplitObject unknown line 2) invoked from within "_o74 unknown-flow 0 3 1" My tcl code is as: proc create-topology {} { global ns node for {set i 0} {$i < 4} {incr i} { set node($i) [$ns node] } $ns duplex-link $node(0) $node(2) 5Mb 10ms DropTail $ns duplex-link $node(1) $node(2) 5Mb 10ms DropTail $ns duplex-link $node(3) $node(2) 1Mb 10ms CBQ $ns duplex-link-op $node(0) $node(2) orient right-down $ns duplex-link-op $node(1) $node(2) orient right-up $ns duplex-link-op $node(2) $node(3) orient right $ns duplex-link-op $node(2) $node(3) queuePos 0.5 } proc create-class {} { global ns node set cbqlink [$ns link $node(3) $node(2)] set topclass [new CBQClass] set Staffs [new CBQClass] set Students [new CBQClass] # set Graduates [new CBQClass] # set Under_grad [new CBQClass] $Staffs install-queue [new Queue/DropTail] $Students install-queue [new Queue/DropTail] # $Graduates install-queue [new Queue/DropTail] # $Under_grad install-queue [new Queue/DropTail] $topclass setparams none 0 0.98 auto 8 2 0 $Staffs setparams $topclass True 0.3 auto 0 1 0 $Students setparams $topclass True 0.7 auto 1 1 0 # $Graduates setparams $Students True 0.3 auto 2 1 0 # $Under_grad setparams $Students True 0.7 auto 3 1 0 $cbqlink insert $topclass $cbqlink insert $Staffs $cbqlink insert $Students # $cbqlink insert $Graduates # $cbqlink insert $Under_grad $cbqlink bind $Staffs 1 $cbqlink bind $Students 2 # $cbqlink bind $Graduates 2 # $cbqlink bind $Under_grad 3 } proc create-traffic {} { global ns node ftp tcp sink set sink(0) [new Agent/TCPSink] set sink(1) [new Agent/TCPSink] $ns attach-agent $node(3) $sink(0) $ns attach-agent $node(3) $sink(1) for {set i 0} {$i < 2} {incr i} { set tcp($i) [new Agent/TCP] $ns attach-agent $node($i) $tcp($i) # $tcp($i) set class_ [expr $i+1] $tcp($i) set fid_ [expr $i+1] set ftp($i) [new Application/FTP] $ftp($i) attach-agent $tcp($i) } } proc record {} { global ns sink f0 f1 set time 0.5 set bw0 [$sink(0) set bytes_] set bw1 [$sink(1) set bytes_] set now [$ns now] puts $f0 "$now [expr $bw0/$time*8/1000000]" puts $f1 "$now [expr $bw1/$time*8/1000000]" $sink(0) set bytes_ 0 $sink(1) set bytes_ 0 $ns at [expr $now+$time] "record" } proc finish {} { global ns nf f0 f1 $ns flush-trace close $f0 close $f1 close $nf puts "running nam..." exec nam 3node_TCP_DropTail_CBQ.nam & exec xgraph 3node_TCP_DropTail_CBQ0.tr 3node_TCP_DropTail_CBQ1.tr -geometry 800x400 & exit 0 } ## MAIN## set ns [new Simulator] $ns color 1 Red $ns color 2 Green set f0 [open 3node_TCP_DropTail_CBQ0.tr w] set f1 [open 3node_TCP_DropTail_CBQ1.tr w] #$ns trace-all $f set nf [open 3node_TCP_DropTail_CBQ.nam w] $ns namtrace-all $nf create-topology create-class create-traffic $ns at 0.0 "record" $ns at 0.5 "$ftp(0) start" $ns connect $tcp(0) $sink(0) $ns at 1.0 "$ftp(1) start" $ns connect $tcp(1) $sink(1) $ns at 4.0 "$ns detach-agent $node(0) $tcp(0); $ns detach-agent $node(3) $sink(0)" $ns at 4.5 "$ns detach-agent $node(1) $tcp(1); $ns detach-agent $node(3) $sink(1)" $ns at 5.0 "finish" $ns run Can anyone help, it's urgent Thanks in advance From imkidder at msn.com Sat Dec 3 12:06:29 2005 From: imkidder at msn.com (Huang Longbo) Date: Sat, 03 Dec 2005 20:06:29 +0000 Subject: [ns] CBQ problem In-Reply-To: <835e01960512022322q72d3a3edm646bc7407d0bb8ef@mail.gmail.com> Message-ID: Hi,there, Maybe you can try to make those classes,Stuffs,Graduate etc. to be global and see if it works.The error usually happens when the classes are not well binded with fid_. Hope it helps. Thanks Longbo Huang >From: open source >To: ns-users at ISI.EDU >Subject: [ns] CBQ problem >Date: Sat, 3 Dec 2005 13:07:04 +0545 > > >Hi everyone! > >i am trying to simulate CBQ for two class, everything looks fine but when i >try to run it i got error message like: unknown-flow from $node to $sink >with $flow-id. The exact error message is as: > >ns: _o74 unknown-flow 0 3 1: > (_o74 cmd line 1) > invoked from within >"_o74 cmd unknown-flow 0 3 1" > 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 "_o74" line 2) > (SplitObject unknown line 2) > invoked from within >"_o74 unknown-flow 0 3 1" > >My tcl code is as: > >proc create-topology {} { > > > global ns node > > > for {set i 0} {$i < 4} {incr i} { > set node($i) [$ns node] > } > > > $ns duplex-link $node(0) $node(2) 5Mb 10ms DropTail > $ns duplex-link $node(1) $node(2) 5Mb 10ms DropTail > $ns duplex-link $node(3) $node(2) 1Mb 10ms CBQ > > > $ns duplex-link-op $node(0) $node(2) orient right-down > $ns duplex-link-op $node(1) $node(2) orient right-up > $ns duplex-link-op $node(2) $node(3) orient right > $ns duplex-link-op $node(2) $node(3) queuePos 0.5 >} > > >proc create-class {} { > global ns node > > > set cbqlink [$ns link $node(3) $node(2)] > > > set topclass [new CBQClass] > set Staffs [new CBQClass] > set Students [new CBQClass] > > ># set Graduates [new CBQClass] ># set Under_grad [new CBQClass] > > > $Staffs install-queue [new Queue/DropTail] > $Students install-queue [new Queue/DropTail] > > ># $Graduates install-queue [new Queue/DropTail] ># $Under_grad install-queue [new Queue/DropTail] > > > $topclass setparams none 0 0.98 >auto 8 2 0 > $Staffs setparams $topclass True 0.3 >auto 0 1 0 > $Students setparams $topclass True 0.7 >auto 1 1 0 > > ># $Graduates setparams $Students True 0.3 >auto 2 1 0 ># $Under_grad setparams $Students True 0.7 >auto 3 1 0 > > > $cbqlink insert $topclass > $cbqlink insert $Staffs > $cbqlink insert $Students > > ># $cbqlink insert $Graduates ># $cbqlink insert $Under_grad > > > $cbqlink bind $Staffs 1 > $cbqlink bind $Students 2 > > ># $cbqlink bind $Graduates 2 ># $cbqlink bind $Under_grad 3 > > > > >} > > >proc create-traffic {} { > > > global ns node ftp tcp sink > > > set sink(0) [new Agent/TCPSink] > set sink(1) [new Agent/TCPSink] > > > $ns attach-agent $node(3) $sink(0) > $ns attach-agent $node(3) $sink(1) > > > for {set i 0} {$i < 2} {incr i} { > set tcp($i) [new Agent/TCP] > $ns attach-agent $node($i) $tcp($i) ># $tcp($i) set class_ [expr $i+1] > $tcp($i) set fid_ [expr $i+1] > > > set ftp($i) [new Application/FTP] > $ftp($i) attach-agent $tcp($i) > > > } >} > > >proc record {} { > global ns sink f0 f1 > > > set time 0.5 > > > set bw0 [$sink(0) set bytes_] > set bw1 [$sink(1) set bytes_] > > > set now [$ns now] > > > puts $f0 "$now [expr $bw0/$time*8/1000000]" > puts $f1 "$now [expr $bw1/$time*8/1000000]" > > > $sink(0) set bytes_ 0 > $sink(1) set bytes_ 0 > > > > > > $ns at [expr $now+$time] "record" >} >proc finish {} { > global ns nf f0 f1 > > > $ns flush-trace > close $f0 > close $f1 > close $nf > > > puts "running nam..." > exec nam 3node_TCP_DropTail_CBQ.nam & > exec xgraph 3node_TCP_DropTail_CBQ0.tr 3node_TCP_DropTail_CBQ1.tr >-geometry 800x400 & > exit 0 >} > > >## MAIN## > > >set ns [new Simulator] > > >$ns color 1 Red >$ns color 2 Green > > >set f0 [open 3node_TCP_DropTail_CBQ0.tr w] >set f1 [open 3node_TCP_DropTail_CBQ1.tr w] >#$ns trace-all $f > > >set nf [open 3node_TCP_DropTail_CBQ.nam w] >$ns namtrace-all $nf > > >create-topology > > >create-class > > >create-traffic > > >$ns at 0.0 "record" >$ns at 0.5 "$ftp(0) start" >$ns connect $tcp(0) $sink(0) >$ns at 1.0 "$ftp(1) start" >$ns connect $tcp(1) $sink(1) >$ns at 4.0 "$ns detach-agent $node(0) $tcp(0); $ns detach-agent $node(3) >$sink(0)" >$ns at 4.5 "$ns detach-agent $node(1) $tcp(1); $ns detach-agent $node(3) >$sink(1)" > > >$ns at 5.0 "finish" > > >$ns run > > > > >Can anyone help, it's urgent > >Thanks in advance From amit.malani at gmail.com Sat Dec 3 13:21:39 2005 From: amit.malani at gmail.com (amit malani) Date: Sat, 3 Dec 2005 16:21:39 -0500 Subject: [ns] Num of RTS sent less than num of CTS sent? Message-ID: <2b2e0d2c0512031321k9f1454fkc3e33507b3ab6a3e@mail.gmail.com> the number of CTS comes out to be higher than RTS with multiple retransmission of CTS several times. any idea? i am just maintaining different counts for all packet types in a simple 10 node scenario. with shadowing propagation model. thanks, amit From charu.kannan at gmail.com Sat Dec 3 13:42:55 2005 From: charu.kannan at gmail.com (Charulatha Kannan) Date: Sat, 3 Dec 2005 16:42:55 -0500 Subject: [ns] binding flows for cbr traffic Message-ID: <4ebe78a30512031342h2a319feaqb67f0d3747bddb24@mail.gmail.com> Hi ns-users I am using mns for binding traffic from two different sources in two different paths There is a very simple network with only 3 LSR nodes and hence only two different paths...i set up one each for the two different traffic sources the code runs fine with no errors...the ldp mapping etc messages are exchanged properly for the two different routes and the confirmation of the setup of the two LSps is also displayed in the shell terminal but the traffic never floes in the 2nd lspid...that is the circuitous route... 1)lspid 1500 is LSR6_LSR7 and flowid 100---the shorter route through whihc traffic always keeps flowing--this er-lsp was set up at 0.2s 2)the other LSP is 6_8_7 with lspid 1600 and flowid 200---the longer route through which traffic never flows--this er-lsp was setup at 0.3 s the flows were bounded at 0.4s ...both the traffic sources were sstarted and stopped at 1s and 5s respectively cbr0 was meant to use the shorter path and cbr1 the longer path...I ma not able to figure out the reason y no traffic would flow through lsp 1600.....do we haver to specifically bind a traffic source with each of the lspids....but while binding flows,i have specified a different destanation for each of the lsps....isnt that enuf....what shud i do to bind the traffic source to a particular er-lsp the code does not give me an error but the traffic doesnot get bound to two different paths...plz help me out in this... any pointers wud be greatly appreciated THE CODE IS: #Create a simulator object set ns [new Simulator] puts "line 4" #Define different colors for data flows $ns color 1 Blue $ns color 2 Red $ns color 3 Yellow $ns color 4 Green puts "line 10" #Open the nam trace file set f1 [open out1.tr w] set f2 [open out2.tr w] set nf [open out.nam w] $ns namtrace-all $nf #$ns create-trace Drp $nf src dest set MAX_QUEUE_LMT 50 set QUEUE_DELAY 1e-6 puts "line 18" #Define a 'finish' procedure proc finish {} { global ns nf f1 f2 $ns flush-trace #Close the trace file puts "line 25" close $nf close $f1 close $f2 #Execute nam on the trace file puts "line 30" exec nam out.nam & exec xgraph out1.tr out2.tr -geometry 800x400 & exit 0 } #$ns rtproto Session Node set multiPath_ 1 puts "line35" #Create nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] puts "line 40" set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] set LSR6 [$ns mpls-node] puts "line 45" set LSR7 [$ns mpls-node] set LSR8 [$ns mpls-node] puts "okie1???" puts "line 50" #Create links between the nodes $ns duplex-link $n2 $LSR6 10Mb 2ms DropTail $ns duplex-link $n0 $n2 100Mb 1ms DropTail $ns duplex-link $n1 $n2 100Mb 1ms DropTail puts "line 55" $ns duplex-link $n3 $LSR7 10Mb 2ms DropTail $ns duplex-link $n4 $n3 100Mb 1ms DropTail $ns duplex-link $n5 $n3 100Mb 1ms DropTail puts "line 60" #LSRs -interconnections of the MPLS tunnel $ns duplex-link $LSR6 $LSR7 1.5Mb 10ms CBQ $ns duplex-link $LSR6 $LSR8 1.5Mb 10ms CBQ $ns duplex-link $LSR7 $LSR8 2Mb 6.5ms CBQ puts "line 65" # ldp configuration $ns configure-ldp-on-all-mpls-nodes # classes we want to support $ns cfg-cbq-for-SBTS $MAX_QUEUE_LMT DropTail 1 0.98 $QUEUE_DELAY 0 $ns cfg-cbq-for-RTS $MAX_QUEUE_LMT DropTail 0 0.01 $QUEUE_DELAY 0 $ns cfg-cbq-for-STS $MAX_QUEUE_LMT DropTail 0 0.01 $QUEUE_DELAY 0 # enables rerouting in case of link failure ( we would want it in case of a failure to be drop ) #$ns enable-reroute drop #but for now $ns bind-flowid-to-SBTS 0 4400 # ldp is on $ns bind-ldp-to-STS # set the colors so that we can see clearly $ns ldp-request-color blue $ns ldp-mapping-color red $ns ldp-withdraw-color magenta $ns ldp-release-color orange $ns ldp-notification-color yellow # control driven.... $ns enable-control-driven puts "line 70" proc AllNodeExecute { _command } { global Node0 LSR1 LSR2 Node3 set nodes { Node0 LSR1 LSR2 LSR3 LSR4 LSR5 LSR6 LSR7 Node8 Node9 Node10 Node11 Node12 Node13 } foreach i $nodes { [eval $$i $_command] } SendingNodeExecute $_command RecvNodeExecute $_command } proc SendingNodeExecute { _command } { global Node14 Node15 Node16 Node17 Node18 Node19 Node20 Node21 set nodes { Node14 Node15 Node16 Node17 Node18 Node19 Node20 Node21 } foreach i $nodes { [eval $$i $_command] } } proc RecvNodeExecute { _command } { global Node22 Node23 Node24 Node25 Node26 Node27 Node28 Node29 set nodes { Node22 Node23 Node24 Node25 Node26 Node27 Node28 Node29 } foreach i $nodes { [eval $$i $_command] } } proc notify-erlsp-setup {node lspid} { set ns [Simulator instance] puts "line 73" puts "[$ns now] nodeid=[$node id] : lspid=$lspid" } puts "line 76" proc notify-erlsp-fail {node status lspid tr} { puts "nodeid=[$node id] : status=$status lspid=$lspid tr=$tr" puts "line 79" } for {set i 6 } { $i <= 8 } {incr i} { set a LSR$i set m [eval $$a get-module "MPLS"] puts "line 85" eval set LSRmpls$i $m } puts "line 89" # Attach the FECS and the routes together ..... $ns at 0.20 "$LSRmpls6 make-explicit-route 7 6_7 1500 -1" $ns at 0.25 "$LSRmpls6 make-explicit-route 7 6_8_7 1600 -1" puts "line 94" proc bindflows { } { global LSRmpls6 LSRmpls2 LSRmpls3 ns set tim 0.4 $ns at $tim "$LSRmpls6 flow-erlsp-install 4 -1 1500" $ns at $tim "$LSRmpls6 flow-erlsp-install 5 -1 1600" puts "line 100" } bindflows puts "line 104" #Create a UDP agent and attach it to node n0 set udp0 [new Agent/UDP] $udp0 set fid_ 1 $ns attach-agent $n0 $udp0 set udp1 [new Agent/UDP] $udp1 set fid_ 2 $ns attach-agent $n1 $udp1 puts "line 113" # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 50 $cbr0 set interval_ 0.0005 $cbr0 attach-agent $udp0 set cbr1 [new Application/Traffic/CBR] $cbr1 set packetSize_ 500 $cbr1 set interval_ 0.05 $cbr1 attach-agent $udp1 #Create a Null agent (a traffic sink) and attach it to node n3 set null0 [new Agent/Null] set null1 [new Agent/Null] $ns attach-agent $n4 $null0 $ns attach-agent $n5 $null1 #Connect the traffic sources with the traffic sink $ns connect $udp0 $null0 $ns connect $udp1 $null1 #Schedule events for the CBR agents $ns at 1.0 "$cbr0 start" $ns at 1.0 "$cbr1 start" $ns at 5.0 "$cbr0 stop" $ns at 5.0 "$cbr1 stop" #Call the finish procedure after 5 seconds of simulation time #$ns at 0.0 "qpktdrp" $ns at 6.0 "finish" puts "okie7???" #Run the simulation $ns run THE OUTPUT IS: 1.024292 nodeid=6 : lspid=1500 1.024292 nodeid=6 : lspid=1500 THOUGH THE LSP IS CREATED,THE TRAFFIC NEVER FLOWS IN THE LONGER PATH....Y IS THIS? thanks a lot in advance Charu From a-mondal at northwestern.edu Sat Dec 3 20:39:30 2005 From: a-mondal at northwestern.edu (Amit Mondal) Date: Sat, 03 Dec 2005 22:39:30 -0600 Subject: [ns] Full Tcp Agent doubt? Message-ID: <6.2.1.2.2.20051203223852.06c8f238@merle.it.northwestern.edu> Hi, Does anyone has any idea whether FullTcpAgent works properly in Ns-2.29. I am using Agent/TCP/FullTcp/Sack but it seems to be not working. Anyone has any experience with working with FullTcpAgent in Ns-2. Any suggestion or advice will be well appreciated. Rgds -Amit From f.hajer at gmail.com Sun Dec 4 01:33:40 2005 From: f.hajer at gmail.com (Hajer FERJANI) Date: Sun, 4 Dec 2005 10:33:40 +0100 Subject: [ns] Broadcasting problem in MANET In-Reply-To: References: Message-ID: <947619e70512040133m4afde19fp146f3daf4450570f@mail.gmail.com> Hi, It seems there's a problem with broadcasting in ns. There's a thread about this topic and a solution in the mailing list archives. For me, broadcast works correctly if I set the ttl_ value as (2*nb_hop). nb_hop being the number of hop I want to broadcast to. So for your case, if you want broadcasts to be received by jsut 1 hop neighbors, you can try putting ttl as 2. Hope this helps. Bye. On 12/2/05, j t wrote: > > My application is derived from the Class Application. > In my application, one mobile node will periodically broadcast to whole > networks. One way is to send message to all nodes in a for loop because the > node addresses are from 0 and increased by 1. The other way is to use the > IP_BROADCAST as the destionation address. However, the second way doesn't > work. Does someone know how to solve this problem? > > Sometimes, a node needs to send message to its neighbors(one hop distance). > Can I use the broadcast and set TTL in IP header as 1 to get it? In > addition, is there a method from which I can get a list of node's > neighbors? > > I have read the AODV source code and I know how to realize the above > functions in AODV. However, my code is on the application level and the > above functions seem difficult for me. > > Could someone help me? > > Thanks a lot in advance. > From jagadish_kranti at yahoo.com Sun Dec 4 07:57:59 2005 From: jagadish_kranti at yahoo.com (jagadish kranti) Date: Sun, 4 Dec 2005 07:57:59 -0800 (PST) Subject: [ns] subnets in MANETS Message-ID: <20051204155759.28778.qmail@web52605.mail.yahoo.com> Hi all, Anybody who has an idea of sunetting in MANETS and its implementation please help me. Thanking you. Jagadish --------------------------------- Yahoo! Personals Let fate take it's course directly to your email. See who's waiting for you Yahoo! Personals From olivier.berho at gmail.com Sun Dec 4 08:43:01 2005 From: olivier.berho at gmail.com (Olivier Berho) Date: Sun, 04 Dec 2005 17:43:01 +0100 Subject: [ns] [NS2 problems] communication in wireless lan Message-ID: <43931C95.7060204@gmail.com> Hello, I am working on a simulation of wireless lan. The subject of my project is about the communication between a node and his neighbors. The problem is that I don't know how to send a message (for example a char* "Hello") to a node and then make this node answer by an other message (char* "ACK" for example). The only thing I have seen in the simulation of communication is just about sending packets and not about "messages" and the way to react when a node receive a message. Thanks for your attention, Olivier. From opensource.gnu at gmail.com Sun Dec 4 09:43:41 2005 From: opensource.gnu at gmail.com (open source) Date: Sun, 4 Dec 2005 23:28:41 +0545 Subject: [ns] CBQ problem In-Reply-To: References: <835e01960512022322q72d3a3edm646bc7407d0bb8ef@mail.gmail.com> Message-ID: <835e01960512040943j7e799ca9mb6464ffd456f0698@mail.gmail.com> Thanks Huang for your reply I tried by declaring all the cbq class as global but the problem is not solve. I'm getting same messages. I've gone through list, i found that for tcp connection reverse link also need to define flow id so that the acknowledge packets from tcp sink reaches the appropriate souce. But i'm not getting how to do that ? Thanks Open On 12/4/05, Huang Longbo wrote: > > Hi,there, > Maybe you can try to make those classes,Stuffs,Graduate etc. to be global > and see if it works.The error usually happens when the classes are not > well > binded with fid_. > Hope it helps. > > > Thanks > Longbo Huang > > > >From: open source > >To: ns-users at ISI.EDU > >Subject: [ns] CBQ problem > >Date: Sat, 3 Dec 2005 13:07:04 +0545 > > > > > >Hi everyone! > > > >i am trying to simulate CBQ for two class, everything looks fine but when > i > >try to run it i got error message like: unknown-flow from $node to $sink > >with $flow-id. The exact error message is as: > > > >ns: _o74 unknown-flow 0 3 1: > > (_o74 cmd line 1) > > invoked from within > >"_o74 cmd unknown-flow 0 3 1" > > 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 "_o74" line 2) > > (SplitObject unknown line 2) > > invoked from within > >"_o74 unknown-flow 0 3 1" > > > >My tcl code is as: > > > >proc create-topology {} { > > > > > > global ns node > > > > > > for {set i 0} {$i < 4} {incr i} { > > set node($i) [$ns node] > > } > > > > > > $ns duplex-link $node(0) $node(2) 5Mb 10ms DropTail > > $ns duplex-link $node(1) $node(2) 5Mb 10ms DropTail > > $ns duplex-link $node(3) $node(2) 1Mb 10ms CBQ > > > > > > $ns duplex-link-op $node(0) $node(2) orient right-down > > $ns duplex-link-op $node(1) $node(2) orient right-up > > $ns duplex-link-op $node(2) $node(3) orient right > > $ns duplex-link-op $node(2) $node(3) queuePos 0.5 > >} > > > > > >proc create-class {} { > > global ns node > > > > > > set cbqlink [$ns link $node(3) $node(2)] > > > > > > set topclass [new CBQClass] > > set Staffs [new CBQClass] > > set Students [new CBQClass] > > > > > ># set Graduates [new CBQClass] > ># set Under_grad [new CBQClass] > > > > > > $Staffs install-queue [new Queue/DropTail] > > $Students install-queue [new Queue/DropTail] > > > > > ># $Graduates install-queue [new Queue/DropTail] > ># $Under_grad install-queue [new Queue/DropTail] > > > > > > $topclass setparams none 0 0.98 > >auto 8 2 0 > > $Staffs setparams $topclass True 0.3 > >auto 0 1 0 > > $Students setparams $topclass True 0.7 > >auto 1 1 0 > > > > > ># $Graduates setparams $Students True 0.3 > >auto 2 1 0 > ># $Under_grad setparams $Students True 0.7 > >auto 3 1 0 > > > > > > $cbqlink insert $topclass > > $cbqlink insert $Staffs > > $cbqlink insert $Students > > > > > ># $cbqlink insert $Graduates > ># $cbqlink insert $Under_grad > > > > > > $cbqlink bind $Staffs 1 > > $cbqlink bind $Students 2 > > > > > ># $cbqlink bind $Graduates 2 > ># $cbqlink bind $Under_grad 3 > > > > > > > > > >} > > > > > >proc create-traffic {} { > > > > > > global ns node ftp tcp sink > > > > > > set sink(0) [new Agent/TCPSink] > > set sink(1) [new Agent/TCPSink] > > > > > > $ns attach-agent $node(3) $sink(0) > > $ns attach-agent $node(3) $sink(1) > > > > > > for {set i 0} {$i < 2} {incr i} { > > set tcp($i) [new Agent/TCP] > > $ns attach-agent $node($i) $tcp($i) > ># $tcp($i) set class_ [expr $i+1] > > $tcp($i) set fid_ [expr $i+1] > > > > > > set ftp($i) [new Application/FTP] > > $ftp($i) attach-agent $tcp($i) > > > > > > } > >} > > > > > >proc record {} { > > global ns sink f0 f1 > > > > > > set time 0.5 > > > > > > set bw0 [$sink(0) set bytes_] > > set bw1 [$sink(1) set bytes_] > > > > > > set now [$ns now] > > > > > > puts $f0 "$now [expr $bw0/$time*8/1000000]" > > puts $f1 "$now [expr $bw1/$time*8/1000000]" > > > > > > $sink(0) set bytes_ 0 > > $sink(1) set bytes_ 0 > > > > > > > > > > > > $ns at [expr $now+$time] "record" > >} > >proc finish {} { > > global ns nf f0 f1 > > > > > > $ns flush-trace > > close $f0 > > close $f1 > > close $nf > > > > > > puts "running nam..." > > exec nam 3node_TCP_DropTail_CBQ.nam & > > exec xgraph 3node_TCP_DropTail_CBQ0.tr > 3node_TCP_DropTail_CBQ1.tr > >-geometry 800x400 & > > exit 0 > >} > > > > > >## MAIN## > > > > > >set ns [new Simulator] > > > > > >$ns color 1 Red > >$ns color 2 Green > > > > > >set f0 [open 3node_TCP_DropTail_CBQ0.tr w] > >set f1 [open 3node_TCP_DropTail_CBQ1.tr w] > >#$ns trace-all $f > > > > > >set nf [open 3node_TCP_DropTail_CBQ.nam w] > >$ns namtrace-all $nf > > > > > >create-topology > > > > > >create-class > > > > > >create-traffic > > > > > >$ns at 0.0 "record" > >$ns at 0.5 "$ftp(0) start" > >$ns connect $tcp(0) $sink(0) > >$ns at 1.0 "$ftp(1) start" > >$ns connect $tcp(1) $sink(1) > >$ns at 4.0 "$ns detach-agent $node(0) $tcp(0); $ns detach-agent $node(3) > >$sink(0)" > >$ns at 4.5 "$ns detach-agent $node(1) $tcp(1); $ns detach-agent $node(3) > >$sink(1)" > > > > > >$ns at 5.0 "finish" > > > > > >$ns run > > > > > > > > > >Can anyone help, it's urgent > > > >Thanks in advance > > > From u971392 at daimi.au.dk Sun Dec 4 12:46:40 2005 From: u971392 at daimi.au.dk (Henrik Pedersen) Date: Sun, 04 Dec 2005 21:46:40 +0100 Subject: [ns] zrp and ns-2 Message-ID: <439355B0.4090407@daimi.au.dk> I would like to do some simulation with ns-2 and the zrp-protocol, but I can not find a implementation of zrp that works. I have found to different implementations. The first implementation is from this home: http://www.geocities.com/robin_poss/zrp.html. I have compiled with ns-2 2.1b6, but the simulations end with this error message : "Scheduler: Event UID not valid". The other implementation I got from: http://people.ece.cornell.edu/~haas/wnl/Software/zrp/ns2/ I have compiled it with ns-2 2.1b9, and I get a segmentation fault in Packet::access everytime I run an simulation with zrp. Is it possible to do simulations with ns-2 and zrp? Henrik Pedersen From ahmedm9 at lsbu.ac.uk Sun Dec 4 14:36:07 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Sun, 4 Dec 2005 22:36:07 -0000 Subject: [ns] Define options Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062A3@CSD-EXBE-VS1.lsbu.ac.uk> Hi all, Can any body explain me ...what is the difference between two commands... set opt(chan) Channel/WirelessChannel ;# channel type set val(chan) Channel/WirelessChannel ;# channel type Thanks MASROOR AHMED From vaibhave at cs.utah.edu Sun Dec 4 14:52:14 2005 From: vaibhave at cs.utah.edu (Vaibhave Agarwal) Date: Sun, 4 Dec 2005 15:52:14 -0700 (MST) Subject: [ns] Define options In-Reply-To: <9FFEE39DADA4A442B06FB5673765F410D062A3@CSD-EXBE-VS1.lsbu.ac.uk> References: <9FFEE39DADA4A442B06FB5673765F410D062A3@CSD-EXBE-VS1.lsbu.ac.uk> Message-ID: There is no difference, it's just a variable. Whichever you choose, just use that one when you define the channel set chan_1_ [new $val(chan)] or set chan_1_ [new $opt(chan)] -vaibhave On Sun, 4 Dec 2005, Ahmed, Masroor 9 wrote: > > Hi all, > > Can any body explain me ...what is the difference between two > commands... > > > > set opt(chan) Channel/WirelessChannel ;# channel type > > > set val(chan) Channel/WirelessChannel ;# channel type > > Thanks > > MASROOR AHMED > > From vince.van at gmail.com Sun Dec 4 18:33:41 2005 From: vince.van at gmail.com (Vince Van) Date: Mon, 5 Dec 2005 03:33:41 +0100 Subject: [ns] how to connect a wpan node to a wlan node Message-ID: Hi, all, I have made a script that contains 2 wlan nodes and 2 wpan nodes (one PAN coordinator and one device) . I need connect the wpan node to wlan node somehow, so packets can be forwarded amound nodes. I tried TCP connection, but it doesn't work...I know this is silly. What is the correct way of doing this? Can anybody give me some advice? Thanks! Vince My code is attached here, I am running NS2.28 on Debian Linux #======================================================================= # # WPAN_TO_WLAN_4_Nodes_AODV_TCP # #======================================================================= # ====================================================================== # Define options for WLAN NODES # ====================================================================== set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(netif) Phy/WirelessPhy ;# network interface type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# link layer type set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 2 ;# number of mobilenodes set opt(rp) AODV ;# routing protocol set opt(x) 500 ;# X dimention of topology set opt(y) 500 ;# Y dimention of topology # ====================================================================== # Main Program # ====================================================================== # ====================================================================== # Initialize Global Variables # ====================================================================== set ns_ [new Simulator] set tracefd [open wpan2wlan.tr w] $ns_ trace-all $tracefd set namtracefd [open wpan2wlan.nam w] $ns_ namtrace-all-wireless $namtracefd $opt(x) $opt(y) $ns_ puts-nam-traceall {# nam4wpan #} ;# for WPAN NODEs proc finish {} { global ns_ tracefd namtracefd val $ns_ flush-trace # Close the opened files close $tracefd close $namtracefd # Starting NAM and Xgraph displaying wpan2wlan.nam exec nam wpan2wlan.nam & exit 0 } # set up topography object set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) # # Create God # #create-god $opt(nn) create-god 4 # Channel for WLAN nodes, the new define method... set chan_1_ [new $opt(chan)] # ====================================================================== # # Configure WLAN NODEs # # Create the specified number of mobilenodes [$opt(nn)] # and "attach" them to the channel. # Here two nodes are created : node_wlan_(0) and node_wlan_(1) # ====================================================================== $ns_ node-config -adhocRouting $opt(rp) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF \ -channel $chan_1_ for {set i 0} {$i < $opt(nn) } {incr i} { set node_wlan_($i) [$ns_ node] $node_wlan_($i) random-motion 0 ;# disable random motion } # # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # $node_wlan_(0) set X_ 5.0 $node_wlan_(0) set Y_ 2.0 $node_wlan_(0) set Z_ 0.0 $node_wlan_(1) set X_ 390.0 $node_wlan_(1) set Y_ 385.0 $node_wlan_(1) set Z_ 0.0 # # Now produce some simple node movements # node_wlan_(1) starts to move towards node_wlan_(0) # $ns_ at 50.0 "$node_wlan_(1) setdest 25.0 20.0 15.0" $ns_ at 10.0 "$node_wlan_(0) setdest 20.0 18.0 1.0" # node_wlan_(1) then starts to move away from node_wlan_(0) $ns_ at 100.0 "$node_wlan_(1) setdest 490.0 480.0 15.0" # ====================================================================== # # # Defines some topology variables for WPAN # # # ====================================================================== set val(nn) 2 ;# number of WPAN mobilenodes # Define start and stop time for the simulation set startTime 10.0 set stopTime 150.0 # For propagation model 'TwoRayGround' set dist(30m) 2.13643e-07 set dist(35m) 1.56962e-07 set dist(40m) 1.20174e-07 Phy/WirelessPhy set CSThresh_ $dist(40m) Phy/WirelessPhy set RXThresh_ $dist(40m) # Create God # set god_ [create-god $val(nn)] # Channel for WPAN set chan_2_ [new Channel/WirelessChannel] # ====================================================================== # # Configure WPAN NODEs # # ====================================================================== $ns_ node-config -adhocRouting AODV \ -llType LL \ -macType Mac/802_15_4 \ -ifqType Queue/DropTail/PriQueue \ -ifqLen 50 \ -antType Antenna/OmniAntenna \ -propType Propagation/TwoRayGround \ -phyType Phy/WirelessPhy/802_15_4 \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF \ -channel $chan_2_ \ -energyModel "EnergyModel" \ -initialEnergy 100.0 \ -rxPower 0.105 \ -txPower 0.090 \ -idlePower 0.00003 \ # Create the specified number of nodes for {set i 0} {$i < $val(nn) } {incr i} { set node_wpan_($i) [$ns_ node] $node_wpan_($i) random-motion 0 ;# disable random motion } # Placing the nodes in the topology $node_wpan_(0) set X_ 20 $node_wpan_(0) set Y_ 10 $node_wpan_(0) set Z_ 0.000000000000 $node_wpan_(1) set X_ 35 $node_wpan_(1) set Y_ 10 $node_wpan_(1) set Z_ 0.000000000000 # Start node 0 as a wpan PAN Coordinator, non-beacon enabled $ns_ at 0.0 "$node_wpan_(0) sscs startPANCoord 0" ;#non-beacon # Start node 1 as a wpan device, non-beacon enabled $ns_ at 1.0 "$node_wpan_(1) sscs startDevice 0" ;# startCTPANCoord # ====================================================================== # # Setup Traffic Flows # # ====================================================================== # Setup traffic flow between WLAN nodes # TCP connections between node_wlan_(0) and node_wlan_(1) set tcp1 [new Agent/TCP] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns_ attach-agent $node_wlan_(0) $tcp1 $ns_ attach-agent $node_wlan_(1) $sink1 $ns_ connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns_ at 10.0 "$ftp1 start" # Setup traffic flow between WPAN nodes # TCP connections between node_wpan_(0) and node_wpan_(1) set tcp2 [new Agent/TCP] $tcp2 set class_ 2 set sink2 [new Agent/TCPSink] $ns_ attach-agent $node_wpan_(1) $tcp2 $ns_ attach-agent $node_wpan_(0) $sink2 $ns_ connect $tcp2 $sink2 set ftp2 [new Application/FTP] $ftp2 attach-agent $tcp2 $ns_ at 11.0 "$ftp2 start" # Defines the node size in nam for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_wlan_($i) 2 $ns_ initial_node_pos $node_wpan_($i) 2 } # # Tell WLAN and WPAN nodes when the simulation ends # for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at 150.0 "$node_wlan_($i) reset"; $ns_ at 150.0 "$node_wpan_($i) reset"; } $ns_ at 150.0 "finish" $ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" puts "Starting Simulation..." $ns_ run From uldasom at netian.com Sun Dec 4 19:18:11 2005 From: uldasom at netian.com (=?EUC-KR?B?vue8usH4?=) Date: Mon, 5 Dec 2005 12:18:11 +0900 (added by postmaster@mail02.netian.com) Subject: [ns] re-question. about simple-mipv6.tcl Message-ID: <43937549000362CD@mail02.netian.com> (added by postmaster@mail02.netian.com) hello, sorry, I had question, but I have not answer. so, I have Re-question. This is result for simple-mipv6.tcl after intall mobiwan. ###################################################################### [root at ns scripts]# ns simple-mipv6.tcl * Command Line is: >-------------------- NS Addressing --------------------< Domains (domain_num) : 2 Clusters (cluster_num) : 1 5 Nodes (nodes_num) : 1 1 2 1 1 1 >-------------------------------------------------------< using backward compatible Agent/CBR; use Application/Traffic/CBR instead 167.901 get_coa for BS 1.2.0:4198400 500.088 get_coa for BS 1.2.0:4198400 542.683 get_coa for BS 1.2.0:4198400 664.701 get_coa for BS 1.3.0:4200448 688.701 get_coa for BS 1.2.0:4198400 738.001 get_coa for BS 1.4.0:4202496 740.038 get_coa for BS 1.3.0:4200448 |Binding Cache for node 1.1.0 at 1000 --------------------------------------- | |Node COA Type Info Flag Last Time Life Expire Nb| |1.1.1 1.1.1 7 MN 1 158 901.564 10 0 82 | |Binding Cache for node 0.0.0 at 1000 --------------------------------------- | |Node COA Type Info Flag Last Time Life Expire Nb| |1.1.1 1.1.1 7 MN 1 159 901.569 10 0 73 | |Binding Update List for node 1.1.1 at 1000 --------------------------------------- | |Node COA Type Info Flag Last Time Life Expire Nb| |1.3.0 1.1.1 4 BS 1 -1 901.563 10 911.563 1 | |0.0.0 1.1.1 5 CN 1 159 901.563 10 911.56 75 | |1.1.0 1.1.1 3 HA 1 158 901.563 10 2.68435e 08 89 | |Base Station List for node 1.1.1 at 1000 --------------------------------------- | |Node COA Type Info Flag Last Time Life Expire Nb| |1.1.0 1.1.1 8 BS 1 -1 999.759 1 0 192 | |History List for node 1.1.1 at 1000 --------------------------------------- | |Node COA Type Info Flag Last Time Life Expire Nb| |1.3.0 1.1.1 4 BS 1 -1 803.072 10 813.072 1 | |1.4.0 1.3.6 4 BS 1 -1 740.038 10 750.038 1 | |1.2.0 1.4.6 4 BS 1 -1 738.001 10 748.001 1 | |1.3.0 1.2.6 4 BS 1 -1 688.701 10 698.701 1 | |1.2.0 1.1.1 4 BS 1 -1 605.901 10 615.901 1 | |1.2.0 1.1.1 4 BS 1 -1 531.3 10 541.3 1 | |1.2.0 1.1.1 4 BS 1 -1 340.031 10 350.031 1 | running nam with out.nam ... ###################################################################### Q1. Domains (domain_num) : 2 Clusters (cluster_num) : 1 5 Nodes (nodes_num) : 1 1 2 1 1 1 What is the mean? ??? ????????????? ????????????? ????????????? ????????????? is that right? ###################################################################### Q2. 167.901 get_coa for BS 1.2.0:4198400 1.2.0 is addr. but, I don't konw other =_=; ###################################################################### Q3. Node, COA, Type, Info, Flag, Last, Time, Life, Expire, Nb I know Node, CoA But I don't know another field. please answer to me From imkidder at msn.com Sun Dec 4 19:34:37 2005 From: imkidder at msn.com (Huang Longbo) Date: Mon, 05 Dec 2005 03:34:37 +0000 Subject: [ns] CBQ problem In-Reply-To: <835e01960512040943j7e799ca9mb6464ffd456f0698@mail.gmail.com> Message-ID: If you dont care about the performance of the reverse link,you can simply declear the link node(3)-->node(2) as simplex-link CBQ while the reverse link as simplex-link DropTail.Or you can also declear the reverse link as simplex-link CBQ and repeat the cbq link construction. Hope this helps. Longbo Huang >From: open source >To: Huang Longbo >CC: ns-users at isi.edu >Subject: Re: [ns] CBQ problem >Date: Sun, 4 Dec 2005 23:28:41 +0545 > >Thanks Huang for your reply > >I tried by declaring all the cbq class as global but the problem is not >solve. >I'm getting same messages. I've gone through list, i found that for tcp >connection >reverse link also need to define flow id so that the acknowledge packets >from tcp sink >reaches the appropriate souce. But i'm not getting how to do that ? > > >Thanks Open > >On 12/4/05, Huang Longbo wrote: > > > > Hi,there, > > Maybe you can try to make those classes,Stuffs,Graduate etc. to be global > > and see if it works.The error usually happens when the classes are not > > well > > binded with fid_. > > Hope it helps. > > > > > > Thanks > > Longbo Huang > > > > > > >From: open source > > >To: ns-users at ISI.EDU > > >Subject: [ns] CBQ problem > > >Date: Sat, 3 Dec 2005 13:07:04 +0545 > > > > > > > > >Hi everyone! > > > > > >i am trying to simulate CBQ for two class, everything looks fine but when > > i > > >try to run it i got error message like: unknown-flow from $node to $sink > > >with $flow-id. The exact error message is as: > > > > > >ns: _o74 unknown-flow 0 3 1: > > > (_o74 cmd line 1) > > > invoked from within > > >"_o74 cmd unknown-flow 0 3 1" > > > 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 "_o74" line 2) > > > (SplitObject unknown line 2) > > > invoked from within > > >"_o74 unknown-flow 0 3 1" > > > > > >My tcl code is as: > > > > > >proc create-topology {} { > > > > > > > > > global ns node > > > > > > > > > for {set i 0} {$i < 4} {incr i} { > > > set node($i) [$ns node] > > > } > > > > > > > > > $ns duplex-link $node(0) $node(2) 5Mb 10ms DropTail > > > $ns duplex-link $node(1) $node(2) 5Mb 10ms DropTail > > > $ns duplex-link $node(3) $node(2) 1Mb 10ms CBQ > > > > > > > > > $ns duplex-link-op $node(0) $node(2) orient right-down > > > $ns duplex-link-op $node(1) $node(2) orient right-up > > > $ns duplex-link-op $node(2) $node(3) orient right > > > $ns duplex-link-op $node(2) $node(3) queuePos 0.5 > > >} > > > > > > > > >proc create-class {} { > > > global ns node > > > > > > > > > set cbqlink [$ns link $node(3) $node(2)] > > > > > > > > > set topclass [new CBQClass] > > > set Staffs [new CBQClass] > > > set Students [new CBQClass] > > > > > > > > ># set Graduates [new CBQClass] > > ># set Under_grad [new CBQClass] > > > > > > > > > $Staffs install-queue [new Queue/DropTail] > > > $Students install-queue [new Queue/DropTail] > > > > > > > > ># $Graduates install-queue [new Queue/DropTail] > > ># $Under_grad install-queue [new Queue/DropTail] > > > > > > > > > $topclass setparams none 0 0.98 > > >auto 8 2 0 > > > $Staffs setparams $topclass True 0.3 > > >auto 0 1 0 > > > $Students setparams $topclass True 0.7 > > >auto 1 1 0 > > > > > > > > ># $Graduates setparams $Students True 0.3 > > >auto 2 1 0 > > ># $Under_grad setparams $Students True 0.7 > > >auto 3 1 0 > > > > > > > > > $cbqlink insert $topclass > > > $cbqlink insert $Staffs > > > $cbqlink insert $Students > > > > > > > > ># $cbqlink insert $Graduates > > ># $cbqlink insert $Under_grad > > > > > > > > > $cbqlink bind $Staffs 1 > > > $cbqlink bind $Students 2 > > > > > > > > ># $cbqlink bind $Graduates 2 > > ># $cbqlink bind $Under_grad 3 > > > > > > > > > > > > > > >} > > > > > > > > >proc create-traffic {} { > > > > > > > > > global ns node ftp tcp sink > > > > > > > > > set sink(0) [new Agent/TCPSink] > > > set sink(1) [new Agent/TCPSink] > > > > > > > > > $ns attach-agent $node(3) $sink(0) > > > $ns attach-agent $node(3) $sink(1) > > > > > > > > > for {set i 0} {$i < 2} {incr i} { > > > set tcp($i) [new Agent/TCP] > > > $ns attach-agent $node($i) $tcp($i) > > ># $tcp($i) set class_ [expr $i+1] > > > $tcp($i) set fid_ [expr $i+1] > > > > > > > > > set ftp($i) [new Application/FTP] > > > $ftp($i) attach-agent $tcp($i) > > > > > > > > > } > > >} > > > > > > > > >proc record {} { > > > global ns sink f0 f1 > > > > > > > > > set time 0.5 > > > > > > > > > set bw0 [$sink(0) set bytes_] > > > set bw1 [$sink(1) set bytes_] > > > > > > > > > set now [$ns now] > > > > > > > > > puts $f0 "$now [expr $bw0/$time*8/1000000]" > > > puts $f1 "$now [expr $bw1/$time*8/1000000]" > > > > > > > > > $sink(0) set bytes_ 0 > > > $sink(1) set bytes_ 0 > > > > > > > > > > > > > > > > > > $ns at [expr $now+$time] "record" > > >} > > >proc finish {} { > > > global ns nf f0 f1 > > > > > > > > > $ns flush-trace > > > close $f0 > > > close $f1 > > > close $nf > > > > > > > > > puts "running nam..." > > > exec nam 3node_TCP_DropTail_CBQ.nam & > > > exec xgraph 3node_TCP_DropTail_CBQ0.tr > > 3node_TCP_DropTail_CBQ1.tr > > >-geometry 800x400 & > > > exit 0 > > >} > > > > > > > > >## MAIN## > > > > > > > > >set ns [new Simulator] > > > > > > > > >$ns color 1 Red > > >$ns color 2 Green > > > > > > > > >set f0 [open 3node_TCP_DropTail_CBQ0.tr w] > > >set f1 [open 3node_TCP_DropTail_CBQ1.tr w] > > >#$ns trace-all $f > > > > > > > > >set nf [open 3node_TCP_DropTail_CBQ.nam w] > > >$ns namtrace-all $nf > > > > > > > > >create-topology > > > > > > > > >create-class > > > > > > > > >create-traffic > > > > > > > > >$ns at 0.0 "record" > > >$ns at 0.5 "$ftp(0) start" > > >$ns connect $tcp(0) $sink(0) > > >$ns at 1.0 "$ftp(1) start" > > >$ns connect $tcp(1) $sink(1) > > >$ns at 4.0 "$ns detach-agent $node(0) $tcp(0); $ns detach-agent $node(3) > > >$sink(0)" > > >$ns at 4.5 "$ns detach-agent $node(1) $tcp(1); $ns detach-agent $node(3) > > >$sink(1)" > > > > > > > > >$ns at 5.0 "finish" > > > > > > > > >$ns run > > > > > > > > > > > > > > >Can anyone help, it's urgent > > > > > >Thanks in advance > > > > > > From bali at ant.uni-hannover.de Mon Dec 5 00:07:25 2005 From: bali at ant.uni-hannover.de (Samer Bali) Date: Mon, 5 Dec 2005 09:07:25 +0100 Subject: [ns] ZigBee Routing (ZBR)/IEEE 802.15.4 Message-ID: <001201c5f972$ed6e6470$9f1417ac@at23> Hello everybody, I found that PHY and MAC layers of IEEE 802.15.4 is implemented in ns-2 (v.28 and above). However, it is not documented in the ns-manual. I found it under this link (ZigBee Routing): http://ees2cy.engr.ccny.cuny.edu/zheng/pub/ Does anyone know any other documentation or examples on how to use ZigBee Routing and 802.15.4 MAC / PHY layers in ns-2? I appreciate any help in advance. Yours, Samer Bali ****************************************************** M.Sc.-EE. Samer Bali Institut f?r Kommunikationstechnik (ehemals: Institut f?r Allgemeine Nachrichtentechnik) Universit?t Hannover Appelstrasse 9A D-30167 Hannover Tel: +49-511-762-2841 Fax: +49-511-762-3030 Email: bali at ant.uni-hannover.de From bali at ant.uni-hannover.de Mon Dec 5 00:30:49 2005 From: bali at ant.uni-hannover.de (Samer Bali) Date: Mon, 5 Dec 2005 09:30:49 +0100 Subject: [ns] ZigBee Routing (ZBR)/IEEE 802.15.4 Message-ID: <008b01c5f976$32a7c4c0$9f1417ac@at23> Hello everybody, I found that PHY and MAC layers of IEEE 802.15.4 is implemented in ns-2 (v.28 and above). However, it is not documented in the ns-manual. I found it under this link (ZigBee Routing): http://www-ee.ccny.cuny.edu/zheng/pub Does anyone know any other documentation or examples on how to use ZigBee Routing and 802.15.4 MAC / PHY layers in ns-2? I appreciate any help in advance. Yours, Samer Bali ****************************************************** M.Sc.-EE. Samer Bali Institut f?r Kommunikationstechnik (ehemals: Institut f?r Allgemeine Nachrichtentechnik) Universit?t Hannover Appelstrasse 9A D-30167 Hannover Tel: +49-511-762-2841 Fax: +49-511-762-3030 Email: bali at ant.uni-hannover.de From pedro.estrela at gmail.com Mon Dec 5 04:31:58 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Mon, 5 Dec 2005 12:31:58 -0000 Subject: [ns] re-question. about simple-mipv6.tcl In-Reply-To: <43937549000362CD@mail02.netian.com> (added bypostmaster@mail02.netian.com) Message-ID: <003001c5f997$e28349c0$172914ac@Estrela> > Q1. > > Domains (domain_num) : 2 > Clusters (cluster_num) : 1 5 > Nodes (nodes_num) : 1 1 2 1 1 1 > > What is the mean? > > ??? > ????????????? > ????????????? > ????????????? > ????????????? > > is that right? Yes, that?s exactly that. However, recently I've discovered that you can do it in a much simpler way. Just check my page http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_haddr_tips.html And use "choose_simple_hier_parameters 5 5 5" > ###################################################################### > > Q2. > 167.901 get_coa for BS 1.2.0:4198400 > > 1.2.0 is addr. but, I don't konw other =_=; > > > ###################################################################### COA = care of address provided by BS From pedro.estrela at gmail.com Mon Dec 5 04:35:49 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Mon, 5 Dec 2005 12:35:49 -0000 Subject: [ns] zrp and ns-2 In-Reply-To: <439355B0.4090407@daimi.au.dk> Message-ID: <005401c5f998$6c593ce0$172914ac@Estrela> As with every contributed module, these will only work "out of the box" without any modifications if you use the exact same version of NS2 that the original author used. Go and ask the author which was the exact version he used, and if it was a CVS snapshot, then request a complete .tar.gz of its NS tree. > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Henrik Pedersen > Sent: domingo, 4 de Dezembro de 2005 20:47 > To: ns-2 mailingsliste > Subject: [ns] zrp and ns-2 > > > I would like to do some simulation with ns-2 and the zrp-protocol, but I > can not find a implementation of zrp that works. I have found to > different implementations. > > The first implementation is from this home: > http://www.geocities.com/robin_poss/zrp.html. > > I have compiled with ns-2 2.1b6, but the simulations end with this error > message : "Scheduler: Event UID not valid". > > The other implementation I got from: > http://people.ece.cornell.edu/~haas/wnl/Software/zrp/ns2/ > > I have compiled it with ns-2 2.1b9, and I get a segmentation fault in > Packet::access everytime I run an simulation with zrp. > > Is it possible to do simulations with ns-2 and zrp? > > > Henrik Pedersen > From pedro.estrela at gmail.com Mon Dec 5 04:39:36 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Mon, 5 Dec 2005 12:39:36 -0000 Subject: [ns] [NS2 problems] communication in wireless lan In-Reply-To: <43931C95.7060204@gmail.com> Message-ID: <006e01c5f998$f350c830$172914ac@Estrela> Things just don't work that way in networking protocols. You have to define a header of your own , with a certain integer code in it. Code = 1 === hello Code = 2 === ack Etc For and study this part of the tutorial some times over before trying to do your work. http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Olivier Berho > Sent: domingo, 4 de Dezembro de 2005 16:43 > To: ns-users at ISI.EDU > Subject: [ns] [NS2 problems] communication in wireless lan > > > Hello, > > I am working on a simulation of wireless lan. The subject of my project > is about the communication between a node and his neighbors. > The problem is that I don't know how to send a message (for example a > char* "Hello") to a node and then make this node answer by an other > message (char* "ACK" for example). > > The only thing I have seen in the simulation of communication is just > about sending packets and not about "messages" and the way to react when > a node receive a message. > > Thanks for your attention, > > Olivier. From ahmedm9 at lsbu.ac.uk Mon Dec 5 04:56:41 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Mon, 5 Dec 2005 12:56:41 -0000 Subject: [ns] umts extension Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062A7@CSD-EXBE-VS1.lsbu.ac.uk> Hi, again i am trying to install Pablo Martin and Paula Ballester umts extension on NS-2.27 all in one package...i am receiving the following error... please ..why is it.... help me checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... no can't find X library Makefile.in is newer than Makefile. You need to re-run configure. false make: *** [Makefile] Error 1 help me regard masroor From ramya.desai at gmail.com Mon Dec 5 06:22:39 2005 From: ramya.desai at gmail.com (Ramya Desai) Date: Mon, 5 Dec 2005 19:52:39 +0530 Subject: [ns] NS-2 C/C++ API for ZIGBEE Network layer Message-ID: <3e7aae30512050622p2900da80l90a06cd06a2940c9@mail.gmail.com> Dear all, I am developing a Zigbee NW layer over 802.15.4 MAC. I want to use the NS-2 simulator to test my code. Does NS-2 provides any C/C++ API to call MAC layer primitives from my NW layer?. Can any one know any reference source code for Zigbee NW layer? Thanks in advance, Regards, Ranya From C.A.Harding at staffs.ac.uk Mon Dec 5 07:21:15 2005 From: C.A.Harding at staffs.ac.uk (HARDING Christopher) Date: Mon, 5 Dec 2005 15:21:15 -0000 Subject: [ns] Delay timing in NS2 sending of wireless packets Message-ID: <06E6AD23C0344E4897FB663C0786A77A61C520@crwnmail3.staff.staffs.ac.uk> Hello, Can someone tell me where NS2 works out delays when transmitting wireless packets. I'm looking for propagation delay, transmission delay and receive delay. Thank you for any help Chris Harding C.A.Harding at staffs.ac.uk http://www.soc.staffs.ac.uk/cah1 Tel: +44(0)1785 353255 Staffordshire University PO Box 334 Faculty of Computing, Engineering & Technology Beaconside Stafford ST16 9DG The information in this email is confidential and is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, except for the purpose of delivery to the addressee, is prohibited and may be unlawful. Kindly notify the sender and delete the message and any attachment from your computer. From dario_bodj at hotmail.com Mon Dec 5 09:24:20 2005 From: dario_bodj at hotmail.com (Dario Borriello) Date: Mon, 05 Dec 2005 17:24:20 +0000 Subject: [ns] packets collision at mac level Message-ID: Hi, I have to count the number of packets collision at mac level and the number of drop collision. can anyone suggest me how to analize the traces file to reach this purpose? thanks _________________________________________________________________ 250MB per la tua casella di posta http://www.msn.it/hotmail/minisite_10 Trova immediatamente qualsiasi tipo di file. From charu.kannan at gmail.com Mon Dec 5 15:05:30 2005 From: charu.kannan at gmail.com (Charulatha Kannan) Date: Mon, 5 Dec 2005 18:05:30 -0500 Subject: [ns] binding flows for cbr traffic--please help Message-ID: <4ebe78a30512051505v1601a06cn3779cbf81964af76@mail.gmail.com> Hi ns-users I have posted this mail so many times without any reply.I really need help with this.So if someone knows the answer,please respond I am using mns for binding traffic from two different sources in two different paths There is a very simple network with only 3 LSR nodes and hence only two different paths...i set up one each for the two different traffic sources the code runs fine with no errors...the ldp mapping etc messages are exchanged properly for the two different routes and the confirmation of the setup of the two LSps is also displayed in the shell terminal but the traffic never floes in the 2nd lspid which is the circuitous route... 1)lspid 1500 is LSR6_LSR7 and flowid 100---the shorter route through whihc traffic always keeps flowing--this er-lsp was set up at 0.2s 2)the other LSP is 6_8_7 with lspid 1600 and flowid 200---the longer route through which traffic never flows--this er-lsp was setup at 0.3 s the flows were bounded at 0.4s ...both the traffic sources were sstarted and stopped at 1s and 5s respectively cbr0 was meant to use the shorter path and cbr1 the longer path...I ma not able to figure out the reason y no traffic would flow through lsp 1600.....do we haver to specifically bind a traffic source with each of the lspids....but while binding flows,i have specified a different destanation for each of the lsps....isnt that enuf....what shud i do to bind the traffic source to a particular er-lsp the code does not give me an error but the traffic doesnot get bound to two different paths...plz help me out in this... any pointers wud be greatly appreciated THE CODE IS: #Create a simulator object set ns [new Simulator] puts "line 4" #Define different colors for data flows $ns color 1 Blue $ns color 2 Red $ns color 3 Yellow $ns color 4 Green puts "line 10" #Open the nam trace file set f1 [open out1.tr w] set f2 [open out2.tr w] set nf [open out.nam w] $ns namtrace-all $nf #$ns create-trace Drp $nf src dest set MAX_QUEUE_LMT 50 set QUEUE_DELAY 1e-6 puts "line 18" #Define a 'finish' procedure proc finish {} { global ns nf f1 f2 $ns flush-trace #Close the trace file puts "line 25" close $nf close $f1 close $f2 #Execute nam on the trace file puts "line 30" exec nam out.nam & exec xgraph out1.tr out2.tr -geometry 800x400 & exit 0 } #$ns rtproto Session Node set multiPath_ 1 puts "line35" #Create nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] puts "line 40" set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] set LSR6 [$ns mpls-node] puts "line 45" set LSR7 [$ns mpls-node] set LSR8 [$ns mpls-node] puts "okie1???" puts "line 50" #Create links between the nodes $ns duplex-link $n2 $LSR6 10Mb 2ms DropTail $ns duplex-link $n0 $n2 100Mb 1ms DropTail $ns duplex-link $n1 $n2 100Mb 1ms DropTail puts "line 55" $ns duplex-link $n3 $LSR7 10Mb 2ms DropTail $ns duplex-link $n4 $n3 100Mb 1ms DropTail $ns duplex-link $n5 $n3 100Mb 1ms DropTail puts "line 60" #LSRs -interconnections of the MPLS tunnel $ns duplex-link $LSR6 $LSR7 1.5Mb 10ms CBQ $ns duplex-link $LSR6 $LSR8 1.5Mb 10ms CBQ $ns duplex-link $LSR7 $LSR8 2Mb 6.5ms CBQ puts "line 65" # ldp configuration $ns configure-ldp-on-all-mpls-nodes # classes we want to support $ns cfg-cbq-for-SBTS $MAX_QUEUE_LMT DropTail 1 0.98 $QUEUE_DELAY 0 $ns cfg-cbq-for-RTS $MAX_QUEUE_LMT DropTail 0 0.01 $QUEUE_DELAY 0 $ns cfg-cbq-for-STS $MAX_QUEUE_LMT DropTail 0 0.01 $QUEUE_DELAY 0 # enables rerouting in case of link failure ( we would want it in case of a failure to be drop ) #$ns enable-reroute drop #but for now $ns bind-flowid-to-SBTS 0 4400 # ldp is on $ns bind-ldp-to-STS # set the colors so that we can see clearly $ns ldp-request-color blue $ns ldp-mapping-color red $ns ldp-withdraw-color magenta $ns ldp-release-color orange $ns ldp-notification-color yellow # control driven.... $ns enable-control-driven puts "line 70" proc AllNodeExecute { _command } { global Node0 LSR1 LSR2 Node3 set nodes { Node0 LSR1 LSR2 LSR3 LSR4 LSR5 LSR6 LSR7 Node8 Node9 Node10 Node11 Node12 Node13 } foreach i $nodes { [eval $$i $_command] } SendingNodeExecute $_command RecvNodeExecute $_command } proc SendingNodeExecute { _command } { global Node14 Node15 Node16 Node17 Node18 Node19 Node20 Node21 set nodes { Node14 Node15 Node16 Node17 Node18 Node19 Node20 Node21 } foreach i $nodes { [eval $$i $_command] } } proc RecvNodeExecute { _command } { global Node22 Node23 Node24 Node25 Node26 Node27 Node28 Node29 set nodes { Node22 Node23 Node24 Node25 Node26 Node27 Node28 Node29 } foreach i $nodes { [eval $$i $_command] } } proc notify-erlsp-setup {node lspid} { set ns [Simulator instance] puts "line 73" puts "[$ns now] nodeid=[$node id] : lspid=$lspid" } puts "line 76" proc notify-erlsp-fail {node status lspid tr} { puts "nodeid=[$node id] : status=$status lspid=$lspid tr=$tr" puts "line 79" } for {set i 6 } { $i <= 8 } {incr i} { set a LSR$i set m [eval $$a get-module "MPLS"] puts "line 85" eval set LSRmpls$i $m } puts "line 89" # Attach the FECS and the routes together ..... $ns at 0.20 "$LSRmpls6 make-explicit-route 7 6_7 1500 -1" $ns at 0.25 "$LSRmpls6 make-explicit-route 7 6_8_7 1600 -1" puts "line 94" proc bindflows { } { global LSRmpls6 LSRmpls2 LSRmpls3 ns set tim 0.4 $ns at $tim "$LSRmpls6 flow-erlsp-install 4 -1 1500" $ns at $tim "$LSRmpls6 flow-erlsp-install 5 -1 1600" puts "line 100" } bindflows puts "line 104" #Create a UDP agent and attach it to node n0 set udp0 [new Agent/UDP] $udp0 set fid_ 1 $ns attach-agent $n0 $udp0 set udp1 [new Agent/UDP] $udp1 set fid_ 2 $ns attach-agent $n1 $udp1 puts "line 113" # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 50 $cbr0 set interval_ 0.0005 $cbr0 attach-agent $udp0 set cbr1 [new Application/Traffic/CBR] $cbr1 set packetSize_ 500 $cbr1 set interval_ 0.05 $cbr1 attach-agent $udp1 #Create a Null agent (a traffic sink) and attach it to node n3 set null0 [new Agent/Null] set null1 [new Agent/Null] $ns attach-agent $n4 $null0 $ns attach-agent $n5 $null1 #Connect the traffic sources with the traffic sink $ns connect $udp0 $null0 $ns connect $udp1 $null1 #Schedule events for the CBR agents $ns at 1.0 "$cbr0 start" $ns at 1.0 "$cbr1 start" $ns at 5.0 "$cbr0 stop" $ns at 5.0 "$cbr1 stop" #Call the finish procedure after 5 seconds of simulation time #$ns at 0.0 "qpktdrp" $ns at 6.0 "finish" puts "okie7???" #Run the simulation $ns run THE OUTPUT IS: 1.024292 nodeid=6 : lspid=1500 1.024292 nodeid=6 : lspid=1500 THOUGH THE LSP IS CREATED,THE TRAFFIC NEVER FLOWS IN THE LONGER PATH....Y IS THIS? thanks a lot in advance Charu On 12/3/05, Charulatha Kannan wrote: > Hi ns-users > > I am using mns for binding traffic from two different sources in two > different paths > There is a very simple network with only 3 LSR nodes and hence only > two different paths...i set up one each for the two different traffic > sources > the code runs fine with no errors...the ldp mapping etc messages are > exchanged properly for the two different routes and the confirmation > of the setup of the two LSps is also displayed in the shell terminal > but the traffic never floes in the 2nd lspid...that is the circuitous > route... > > 1)lspid 1500 is LSR6_LSR7 and flowid 100---the shorter route through > whihc traffic always keeps flowing--this er-lsp was set up at 0.2s > 2)the other LSP is 6_8_7 with lspid 1600 and flowid 200---the longer > route through which traffic never flows--this er-lsp was setup at 0.3 > s > the flows were bounded at 0.4s ...both the traffic sources were > sstarted and stopped at 1s and 5s respectively > > cbr0 was meant to use the shorter path and cbr1 the longer path...I ma > not able to figure out the reason y no traffic would flow through lsp > 1600.....do we haver to specifically bind a traffic source with each > of the lspids....but while binding flows,i have specified a different > destanation for each of the lsps....isnt that enuf....what shud i do > to bind the traffic source to a particular er-lsp > > the code does not give me an error but the traffic doesnot get bound > to two different paths...plz help me out in this... > > any pointers wud be greatly appreciated > > THE CODE IS: > #Create a simulator object > set ns [new Simulator] > puts "line 4" > #Define different colors for data flows > $ns color 1 Blue > $ns color 2 Red > $ns color 3 Yellow > $ns color 4 Green > puts "line 10" > #Open the nam trace file > set f1 [open out1.tr w] > set f2 [open out2.tr w] > set nf [open out.nam w] > $ns namtrace-all $nf > #$ns create-trace Drp $nf src dest > > set MAX_QUEUE_LMT 50 > set QUEUE_DELAY 1e-6 > > puts "line 18" > #Define a 'finish' procedure > proc finish {} { > global ns nf f1 f2 > $ns flush-trace > #Close the trace file > puts "line 25" > close $nf > close $f1 > close $f2 > #Execute nam on the trace file > puts "line 30" > exec nam out.nam & > exec xgraph out1.tr out2.tr -geometry 800x400 & > exit 0 > } > > #$ns rtproto Session > Node set multiPath_ 1 > > puts "line35" > #Create nodes > set n0 [$ns node] > set n1 [$ns node] > set n2 [$ns node] > puts "line 40" > set n3 [$ns node] > set n4 [$ns node] > set n5 [$ns node] > set LSR6 [$ns mpls-node] > puts "line 45" > set LSR7 [$ns mpls-node] > set LSR8 [$ns mpls-node] > puts "okie1???" > > puts "line 50" > #Create links between the nodes > $ns duplex-link $n2 $LSR6 10Mb 2ms DropTail > $ns duplex-link $n0 $n2 100Mb 1ms DropTail > $ns duplex-link $n1 $n2 100Mb 1ms DropTail > puts "line 55" > $ns duplex-link $n3 $LSR7 10Mb 2ms DropTail > $ns duplex-link $n4 $n3 100Mb 1ms DropTail > $ns duplex-link $n5 $n3 100Mb 1ms DropTail > > puts "line 60" > #LSRs -interconnections of the MPLS tunnel > $ns duplex-link $LSR6 $LSR7 1.5Mb 10ms CBQ > $ns duplex-link $LSR6 $LSR8 1.5Mb 10ms CBQ > $ns duplex-link $LSR7 $LSR8 2Mb 6.5ms CBQ > puts "line 65" > > # ldp configuration > > $ns configure-ldp-on-all-mpls-nodes > > # classes we want to support > > $ns cfg-cbq-for-SBTS $MAX_QUEUE_LMT DropTail 1 0.98 > $QUEUE_DELAY 0 > $ns cfg-cbq-for-RTS $MAX_QUEUE_LMT DropTail 0 0.01 > $QUEUE_DELAY 0 > $ns cfg-cbq-for-STS $MAX_QUEUE_LMT DropTail 0 0.01 > $QUEUE_DELAY 0 > > # enables rerouting in case of link failure ( we would want it in case > of a failure to be drop ) > #$ns enable-reroute drop > #but for now > > $ns bind-flowid-to-SBTS 0 4400 > > # ldp is on > > $ns bind-ldp-to-STS > > # set the colors so that we can see clearly > > $ns ldp-request-color blue > $ns ldp-mapping-color red > $ns ldp-withdraw-color magenta > $ns ldp-release-color orange > $ns ldp-notification-color yellow > > # control driven.... > > $ns enable-control-driven > > puts "line 70" > proc AllNodeExecute { _command } { > global Node0 LSR1 LSR2 Node3 > set nodes { Node0 LSR1 LSR2 LSR3 LSR4 LSR5 LSR6 LSR7 Node8 Node9 > Node10 Node11 Node12 Node13 } > foreach i $nodes { > [eval $$i $_command] > } > SendingNodeExecute $_command > RecvNodeExecute $_command > } > > proc SendingNodeExecute { _command } { > global Node14 Node15 Node16 Node17 Node18 Node19 Node20 Node21 > set nodes { Node14 Node15 Node16 Node17 Node18 Node19 Node20 Node21 } > foreach i $nodes { > [eval $$i $_command] > } > } > > proc RecvNodeExecute { _command } { > global Node22 Node23 Node24 Node25 Node26 Node27 Node28 Node29 > set nodes { Node22 Node23 Node24 Node25 Node26 Node27 Node28 Node29 } > foreach i $nodes { > [eval $$i $_command] > } > } > proc notify-erlsp-setup {node lspid} { > set ns [Simulator instance] > puts "line 73" > puts "[$ns now] nodeid=[$node id] : lspid=$lspid" > } > puts "line 76" > proc notify-erlsp-fail {node status lspid tr} { > puts "nodeid=[$node id] : status=$status lspid=$lspid tr=$tr" > puts "line 79" > } > > for {set i 6 } { $i <= 8 } {incr i} { > set a LSR$i > set m [eval $$a get-module "MPLS"] > puts "line 85" > eval set LSRmpls$i $m > } > > puts "line 89" > # Attach the FECS and the routes together ..... > $ns at 0.20 "$LSRmpls6 make-explicit-route 7 6_7 1500 -1" > $ns at 0.25 "$LSRmpls6 make-explicit-route 7 6_8_7 1600 -1" > > puts "line 94" > proc bindflows { } { > global LSRmpls6 LSRmpls2 LSRmpls3 ns > set tim 0.4 > $ns at $tim "$LSRmpls6 flow-erlsp-install 4 -1 1500" > $ns at $tim "$LSRmpls6 flow-erlsp-install 5 -1 1600" > puts "line 100" > } > > bindflows > puts "line 104" > > #Create a UDP agent and attach it to node n0 > set udp0 [new Agent/UDP] > $udp0 set fid_ 1 > $ns attach-agent $n0 $udp0 > set udp1 [new Agent/UDP] > $udp1 set fid_ 2 > $ns attach-agent $n1 $udp1 > puts "line 113" > > # Create a CBR traffic source and attach it to udp0 > set cbr0 [new Application/Traffic/CBR] > $cbr0 set packetSize_ 50 > $cbr0 set interval_ 0.0005 > $cbr0 attach-agent $udp0 > set cbr1 [new Application/Traffic/CBR] > $cbr1 set packetSize_ 500 > $cbr1 set interval_ 0.05 > $cbr1 attach-agent $udp1 > > #Create a Null agent (a traffic sink) and attach it to node n3 > set null0 [new Agent/Null] > set null1 [new Agent/Null] > $ns attach-agent $n4 $null0 > $ns attach-agent $n5 $null1 > > #Connect the traffic sources with the traffic sink > $ns connect $udp0 $null0 > $ns connect $udp1 $null1 > > #Schedule events for the CBR agents > $ns at 1.0 "$cbr0 start" > $ns at 1.0 "$cbr1 start" > > $ns at 5.0 "$cbr0 stop" > $ns at 5.0 "$cbr1 stop" > > #Call the finish procedure after 5 seconds of simulation time > #$ns at 0.0 "qpktdrp" > $ns at 6.0 "finish" > puts "okie7???" > #Run the simulation > $ns run > > THE OUTPUT IS: > 1.024292 nodeid=6 : lspid=1500 > 1.024292 nodeid=6 : lspid=1500 > > THOUGH THE LSP IS CREATED,THE TRAFFIC NEVER FLOWS IN THE LONGER > PATH....Y IS THIS? > > thanks a lot in advance > Charu > From kacah03 at yahoo.com Mon Dec 5 16:21:32 2005 From: kacah03 at yahoo.com (ben) Date: Tue, 6 Dec 2005 00:21:32 +0000 (GMT) Subject: [ns] How much bandwidth to simulate bottleneck Message-ID: <20051206002132.73183.qmail@web30803.mail.mud.yahoo.com> Hi ns users, I would like to how much bandwidth should i allocate to create a bottle neck between nodes. Is it correct to allocate bandwidth less than the total bytes transmitted? For example: 1. CBR - UDP source = 50bytes per second 2. Exponential - UDP soruce = 40 bytes per second So I should allocate 50 bytes of bandwidth to create the bottleneck in the link. Please advise. Thank you very much, > ben Send instant messages to your online friends http://uk.messenger.yahoo.com From opensource.gnu at gmail.com Mon Dec 5 19:14:28 2005 From: opensource.gnu at gmail.com (open source) Date: Tue, 6 Dec 2005 08:59:28 +0545 Subject: [ns] CBQ problem In-Reply-To: References: <835e01960512040943j7e799ca9mb6464ffd456f0698@mail.gmail.com> Message-ID: <835e01960512051914w6c0f1ba8s399ab2c6142313e8@mail.gmail.com> Thanks Huang, It solved my porblem. On 12/5/05, Huang Longbo wrote: > > If you dont care about the performance of the reverse link,you can simply > declear the link node(3)-->node(2) as simplex-link CBQ while the reverse > link as simplex-link DropTail.Or you can also declear the reverse link as > simplex-link CBQ and repeat the cbq link construction. > Hope this helps. > > > Longbo Huang > > >From: open source > >To: Huang Longbo > >CC: ns-users at isi.edu > >Subject: Re: [ns] CBQ problem > >Date: Sun, 4 Dec 2005 23:28:41 +0545 > > > >Thanks Huang for your reply > > > >I tried by declaring all the cbq class as global but the problem is not > >solve. > >I'm getting same messages. I've gone through list, i found that for tcp > >connection > >reverse link also need to define flow id so that the acknowledge packets > >from tcp sink > >reaches the appropriate souce. But i'm not getting how to do that ? > > > > > >Thanks Open > > > >On 12/4/05, Huang Longbo wrote: > > > > > > Hi,there, > > > Maybe you can try to make those classes,Stuffs,Graduate etc. to be > global > > > and see if it works.The error usually happens when the classes are not > > > well > > > binded with fid_. > > > Hope it helps. > > > > > > > > > Thanks > > > Longbo Huang > > > > > > > > > >From: open source > > > >To: ns-users at ISI.EDU > > > >Subject: [ns] CBQ problem > > > >Date: Sat, 3 Dec 2005 13:07:04 +0545 > > > > > > > > > > > >Hi everyone! > > > > > > > >i am trying to simulate CBQ for two class, everything looks fine but > when > > > i > > > >try to run it i got error message like: unknown-flow from $node to > $sink > > > >with $flow-id. The exact error message is as: > > > > > > > >ns: _o74 unknown-flow 0 3 1: > > > > (_o74 cmd line 1) > > > > invoked from within > > > >"_o74 cmd unknown-flow 0 3 1" > > > > 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 "_o74" line 2) > > > > (SplitObject unknown line 2) > > > > invoked from within > > > >"_o74 unknown-flow 0 3 1" > > > > > > > >My tcl code is as: > > > > > > > >proc create-topology {} { > > > > > > > > > > > > global ns node > > > > > > > > > > > > for {set i 0} {$i < 4} {incr i} { > > > > set node($i) [$ns node] > > > > } > > > > > > > > > > > > $ns duplex-link $node(0) $node(2) 5Mb 10ms DropTail > > > > $ns duplex-link $node(1) $node(2) 5Mb 10ms DropTail > > > > $ns duplex-link $node(3) $node(2) 1Mb 10ms CBQ > > > > > > > > > > > > $ns duplex-link-op $node(0) $node(2) orient right-down > > > > $ns duplex-link-op $node(1) $node(2) orient right-up > > > > $ns duplex-link-op $node(2) $node(3) orient right > > > > $ns duplex-link-op $node(2) $node(3) queuePos 0.5 > > > >} > > > > > > > > > > > >proc create-class {} { > > > > global ns node > > > > > > > > > > > > set cbqlink [$ns link $node(3) $node(2)] > > > > > > > > > > > > set topclass [new CBQClass] > > > > set Staffs [new CBQClass] > > > > set Students [new CBQClass] > > > > > > > > > > > ># set Graduates [new CBQClass] > > > ># set Under_grad [new CBQClass] > > > > > > > > > > > > $Staffs install-queue [new Queue/DropTail] > > > > $Students install-queue [new Queue/DropTail] > > > > > > > > > > > ># $Graduates install-queue [new Queue/DropTail] > > > ># $Under_grad install-queue [new Queue/DropTail] > > > > > > > > > > > > $topclass setparams none 0 0.98 > > > >auto 8 2 0 > > > > $Staffs setparams $topclass True 0.3 > > > >auto 0 1 0 > > > > $Students setparams $topclass True 0.7 > > > >auto 1 1 0 > > > > > > > > > > > ># $Graduates setparams $Students True 0.3 > > > >auto 2 1 0 > > > ># $Under_grad setparams $Students True 0.7 > > > >auto 3 1 0 > > > > > > > > > > > > $cbqlink insert $topclass > > > > $cbqlink insert $Staffs > > > > $cbqlink insert $Students > > > > > > > > > > > ># $cbqlink insert $Graduates > > > ># $cbqlink insert $Under_grad > > > > > > > > > > > > $cbqlink bind $Staffs 1 > > > > $cbqlink bind $Students 2 > > > > > > > > > > > ># $cbqlink bind $Graduates 2 > > > ># $cbqlink bind $Under_grad 3 > > > > > > > > > > > > > > > > > > > >} > > > > > > > > > > > >proc create-traffic {} { > > > > > > > > > > > > global ns node ftp tcp sink > > > > > > > > > > > > set sink(0) [new Agent/TCPSink] > > > > set sink(1) [new Agent/TCPSink] > > > > > > > > > > > > $ns attach-agent $node(3) $sink(0) > > > > $ns attach-agent $node(3) $sink(1) > > > > > > > > > > > > for {set i 0} {$i < 2} {incr i} { > > > > set tcp($i) [new Agent/TCP] > > > > $ns attach-agent $node($i) $tcp($i) > > > ># $tcp($i) set class_ [expr $i+1] > > > > $tcp($i) set fid_ [expr $i+1] > > > > > > > > > > > > set ftp($i) [new Application/FTP] > > > > $ftp($i) attach-agent $tcp($i) > > > > > > > > > > > > } > > > >} > > > > > > > > > > > >proc record {} { > > > > global ns sink f0 f1 > > > > > > > > > > > > set time 0.5 > > > > > > > > > > > > set bw0 [$sink(0) set bytes_] > > > > set bw1 [$sink(1) set bytes_] > > > > > > > > > > > > set now [$ns now] > > > > > > > > > > > > puts $f0 "$now [expr $bw0/$time*8/1000000]" > > > > puts $f1 "$now [expr $bw1/$time*8/1000000]" > > > > > > > > > > > > $sink(0) set bytes_ 0 > > > > $sink(1) set bytes_ 0 > > > > > > > > > > > > > > > > > > > > > > > > $ns at [expr $now+$time] "record" > > > >} > > > >proc finish {} { > > > > global ns nf f0 f1 > > > > > > > > > > > > $ns flush-trace > > > > close $f0 > > > > close $f1 > > > > close $nf > > > > > > > > > > > > puts "running nam..." > > > > exec nam 3node_TCP_DropTail_CBQ.nam & > > > > exec xgraph 3node_TCP_DropTail_CBQ0.tr > > > 3node_TCP_DropTail_CBQ1.tr > > > >-geometry 800x400 & > > > > exit 0 > > > >} > > > > > > > > > > > >## MAIN## > > > > > > > > > > > >set ns [new Simulator] > > > > > > > > > > > >$ns color 1 Red > > > >$ns color 2 Green > > > > > > > > > > > >set f0 [open 3node_TCP_DropTail_CBQ0.tr w] > > > >set f1 [open 3node_TCP_DropTail_CBQ1.tr w] > > > >#$ns trace-all $f > > > > > > > > > > > >set nf [open 3node_TCP_DropTail_CBQ.nam w] > > > >$ns namtrace-all $nf > > > > > > > > > > > >create-topology > > > > > > > > > > > >create-class > > > > > > > > > > > >create-traffic > > > > > > > > > > > >$ns at 0.0 "record" > > > >$ns at 0.5 "$ftp(0) start" > > > >$ns connect $tcp(0) $sink(0) > > > >$ns at 1.0 "$ftp(1) start" > > > >$ns connect $tcp(1) $sink(1) > > > >$ns at 4.0 "$ns detach-agent $node(0) $tcp(0); $ns detach-agent > $node(3) > > > >$sink(0)" > > > >$ns at 4.5 "$ns detach-agent $node(1) $tcp(1); $ns detach-agent > $node(3) > > > >$sink(1)" > > > > > > > > > > > >$ns at 5.0 "finish" > > > > > > > > > > > >$ns run > > > > > > > > > > > > > > > > > > > >Can anyone help, it's urgent > > > > > > > >Thanks in advance > > > > > > > > > > > > From bali at ant.uni-hannover.de Tue Dec 6 00:13:24 2005 From: bali at ant.uni-hannover.de (Samer Bali) Date: Tue, 6 Dec 2005 09:13:24 +0100 Subject: [ns] NS-2 C/C++ API for ZIGBEE Network layer References: <3e7aae30512050622p2900da80l90a06cd06a2940c9@mail.gmail.com> Message-ID: <001601c5fa3c$eeac2cd0$9f1417ac@at23> check the following link for ns2 code on ZigBee routing (the only link I found): http://www-ee.ccny.cuny.edu/zheng/pub ****************************************************** M.Sc.-EE. Samer Bali Institut f?r Kommunikationstechnik (ehemals: Institut f?r Allgemeine Nachrichtentechnik) Universit?t Hannover Appelstrasse 9A D-30167 Hannover Tel: +49-511-762-2841 Fax: +49-511-762-3030 Email: bali at ant.uni-hannover.de ----- Original Message ----- From: "Ramya Desai" To: Sent: Monday, December 05, 2005 3:22 PM Subject: [ns] NS-2 C/C++ API for ZIGBEE Network layer > > Dear all, > > I am developing a Zigbee NW layer over 802.15.4 MAC. > I want to use the NS-2 simulator to test my code. > Does NS-2 provides any C/C++ API to call MAC layer primitives from my NW > layer?. > > Can any one know any reference source code for Zigbee NW layer? > > Thanks in advance, > Regards, > Ranya From lijing3 at ustc.edu.cn Tue Dec 6 00:24:56 2005 From: lijing3 at ustc.edu.cn (Jing Li) Date: Tue, 06 Dec 2005 16:24:56 +0800 Subject: [ns] simple agent problem Message-ID: <333857496.11936@ustc.edu.cn> set n0 [$ns node] set n1 [$ns node] $ns duplex-link $n0 $n1 5MB 5ms Droptail set tcp1 [new Agent/TCP] $tcp1 set class_ 1 $tcp1 set window_ 50 set sink1 [new Agent/TCPSink] $ns attach-agent $n0 $tcp1 $ns attach-agent $n1 $sink1 $ns connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ftp1 produce 1000 $ns at 0.0 "$ftp1 start" $ns at 20.00 "finish" $ns run classfier::no-slot{} default handler _o12: no target for slot -1 _o12 type: Classifier/Hash/Dest what's the problem? From ziedbt at yahoo.fr Tue Dec 6 01:25:26 2005 From: ziedbt at yahoo.fr (Zied Ben terdayet) Date: Tue, 6 Dec 2005 10:25:26 +0100 (CET) Subject: [ns] help on mns Message-ID: <20051206092526.166.qmail@web26806.mail.ukl.yahoo.com> Hi everyone I have problem on using mns_v2.0 (mpls for network simulator ns 2.26) after installing mns when i test mpls (./test-all-mpls) some test failed any suggestion is welcome thanks --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez le ici ! From rathodprachi23 at yahoo.com Tue Dec 6 02:58:31 2005 From: rathodprachi23 at yahoo.com (prachi rathod) Date: Tue, 6 Dec 2005 02:58:31 -0800 (PST) Subject: [ns] Extending OTcl Message-ID: <20051206105831.71896.qmail@web90203.mail.scd.yahoo.com> Hi to all, I m New to ns2 and wants to extend otcl code. I searched ns-manual but didnt find solution. Would u plz tell what r the steps to be done if wants to extend otcl code. What i have done is summerized below : 1)Listed source file in tcl/ns-lib.tcl 2)Added modification in Makefile under NS_TCL_LIB 3)then after configuring i compiled the whole ns. But this is not working. The error which i get is: cannot acccess ns:permission denied. So is there any thing wrong which i had done or may be there is error in my script. I also attached my script. It will be very kind of u if go through this and solve my prob. Thanks for reading my prob. With regards, Prachi Rathod Mtech student (computer science). --------------------------------- Yahoo! Personals Single? There's someone we'd like you to meet. Lots of someones, actually. Try Yahoo! Personals From sunyi at ict.ac.cn Tue Dec 6 05:33:34 2005 From: sunyi at ict.ac.cn (=?gb2312?B?y+/S4w==?=) Date: Tue, 6 Dec 2005 21:33:34 +0800 Subject: [ns] Does anyone has MRSVP module? Message-ID: <007d01c5fa69$a7d2fe60$fe00000a@sy> Dear all£¬ please contact me if you do have the module. Thanks From pedro.estrela at gmail.com Tue Dec 6 05:35:45 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Tue, 6 Dec 2005 13:35:45 -0000 Subject: [ns] Extending OTcl In-Reply-To: <20051206105831.71896.qmail@web90203.mail.scd.yahoo.com> Message-ID: <001b01c5fa69$f6571760$172914ac@Estrela> a) http://www.catb.org/~esr/faqs/smart-questions.html#formats b) http://www.catb.org/~esr/faqs/smart-questions.html#writewell what is the otcl code that you want to extend? You can check here an working example on how to extend NS2 woth TK support (window capabilities) http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging2.html > cannot acccess ns:permission denied. Do "chmod +x ns" Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ ------------- Hi to all, I m New to ns2 and wants to extend otcl code. I searched ns-manual but didnt find solution. Would u plz tell what r the steps to be done if wants to extend otcl code. What i have done is summerized below : 1)Listed source file in tcl/ns-lib.tcl 2)Added modification in Makefile under NS_TCL_LIB 3)then after configuring i compiled the whole ns. But this is not working. The error which i get is: cannot acccess ns:permission denied. So is there any thing wrong which i had done or may be there is error in my script. I also attached my script. It will be very kind of u if go through this and solve my prob. Thanks for reading my prob. With regards, Prachi Rathod Mtech student (computer science). --------------------------------- Yahoo! Personals Single? There's someone we'd like you to meet. Lots of someones, actually. Try Yahoo! Perso From pedro.estrela at gmail.com Tue Dec 6 05:40:30 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Tue, 6 Dec 2005 13:40:30 -0000 Subject: [ns] How much bandwidth to simulate bottleneck In-Reply-To: <20051206002132.73183.qmail@web30803.mail.mud.yahoo.com> Message-ID: <002901c5fa6a$9fc8edf0$172914ac@Estrela> yes > Hi ns users, > > I would like to how much bandwidth should i allocate > to create a bottle neck between nodes. Is it correct > to allocate bandwidth less than the total bytes > transmitted? > > For example: > > 1. CBR - UDP source = 50bytes per second > 2. Exponential - UDP soruce = 40 bytes per second > > So I should allocate 50 bytes of bandwidth to create > the bottleneck in the link. > > Please advise. > > Thank you very much, > > > ben > > > Send instant messages to your online friends http://uk.messenger.yahoo.com From pedro.estrela at gmail.com Tue Dec 6 05:44:44 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Tue, 6 Dec 2005 13:44:44 -0000 Subject: [ns] simple agent problem In-Reply-To: <333857496.11936@ustc.edu.cn> Message-ID: <002a01c5fa6b$3711b840$172914ac@Estrela> Don't call the produce method in the simulation init. Use "ns at XXX "$ftp1 produce"" Or just "ftp1 start" -------- set ns [new Simulator] set n0 [$ns node] set n1 [$ns node] $ns duplex-link $n0 $n1 5MB 5ms DropTail set tcp1 [new Agent/TCP] $tcp1 set class_ 1 $tcp1 set window_ 50 set sink1 [new Agent/TCPSink] $ns attach-agent $n0 $tcp1 $ns attach-agent $n1 $sink1 $ns connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 #$ns at 3.0 "$ftp1 produce 1000" $ns at 0.0 "$ftp1 start" $ns at 20.00 "finish" $ns run > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Jing Li > Sent: ter?a-feira, 6 de Dezembro de 2005 8:25 > To: ns-users at ISI.EDU > Subject: [ns] simple agent problem > > > set n0 [$ns node] > set n1 [$ns node] > $ns duplex-link $n0 $n1 5MB 5ms Droptail > > set tcp1 [new Agent/TCP] > $tcp1 set class_ 1 > $tcp1 set window_ 50 > set sink1 [new Agent/TCPSink] > $ns attach-agent $n0 $tcp1 > $ns attach-agent $n1 $sink1 > $ns connect $tcp1 $sink1 > set ftp1 [new Application/FTP] > $ftp1 attach-agent $tcp1 > $ftp1 produce 1000 > $ns at 0.0 "$ftp1 start" > > $ns at 20.00 "finish" > $ns run > > classfier::no-slot{} default handler > _o12: no target for slot -1 > _o12 type: Classifier/Hash/Dest > > what's the problem? > From bzafiris at aueb.gr Tue Dec 6 05:55:57 2005 From: bzafiris at aueb.gr (bzafiris@aueb.gr) Date: Tue, 06 Dec 2005 15:55:57 +0200 Subject: [ns] Change simulation parameters in real time Message-ID: Sorry for sending twice... > > Hello to everyone, > I am quite new to ns (in fact I am using it about one week) and I would > like your help in the following topic: > > Is it possible to change simulation parameters such as dynamically create > links between nodes or data transfer flows while the simulator is running? > In fact I would like to incorporate a handover decision mechanism in a > mobile node that roams in a topology of wireless base stations. > > Does anybody know an efficient solution to this problem? In the first > place I thought that I could call an appropriate method of the simulator > object but I don't know if a multi-threaded simulation is possible. > > Do I have to extend the MobileNode otcl class instead? > > I would be grateful if anyone could help me with this as soon as possible! > > Thank you in advance, > Vassilis > > From feulif at interfree.it Tue Dec 6 06:25:32 2005 From: feulif at interfree.it (feulif@interfree.it) Date: 6 Dec 2005 14:25:32 -0000 Subject: [ns] HTTP traffic Message-ID: <20051206142532.32385.qmail@community1.interfree.it> Hi all! How can I create HTTP traffic sources in ns? Thanks in advance, Fabio Feuli ------------------------------------------------------------------------- Visita http://domini.interfree.it, il sito di Interfree dove trovare soluzioni semplici e complete che soddisfano le tue esigenze in Internet, ecco due esempi di offerte: - Registrazione Dominio: un dominio con 1 MB di spazio disco + 2 caselle email a soli 18,59 euro - MioDominio: un dominio con 20 MB di spazio disco + 5 caselle email a soli 51,13 euro Vieni a trovarci! Lo Staff di Interfree ------------------------------------------------------------------------- From lchen at enst.fr Tue Dec 6 07:26:43 2005 From: lchen at enst.fr (CHEN Lin) Date: Tue, 6 Dec 2005 16:26:43 +0100 Subject: [ns] beacon frame in NS-2 Message-ID: <007601c5fa79$88653c90$52a4c289@getpret1> Hi, Can any one give me some hints on the beacon frame in NS-2 (where can I find docs on it, in which file (.cc, .h) can I find its implementation)? Thanks Bests Chen Lin lchen at enst.fr From rvm at CBORD.com Tue Dec 6 07:28:58 2005 From: rvm at CBORD.com (Bob McConnell) Date: Tue, 6 Dec 2005 10:28:58 -0500 Subject: [ns] HTTP traffic Message-ID: <46C585E0E5F612479F6916AFA8B7143B0AD6AFF5@MX1.cbord.com> Fabio, Start by trying the examples in ns-allinone-2.28/ns-2.28/tcl/http/. Bob McConnell > -----Original Message----- > From: ns-users-bounces at ISI.EDU > [mailto:ns-users-bounces at ISI.EDU] On Behalf Of feulif at interfree.it > Sent: Tuesday, December 06, 2005 9:26 AM > To: ns-users at ISI.EDU > Subject: [ns] HTTP traffic > > > > Hi all! > How can I create HTTP traffic sources in ns? > Thanks in advance, > Fabio Feuli > > -------------------------------------------------------------- > ----------- > Visita http://domini.interfree.it, il sito di Interfree dove trovare > soluzioni semplici e complete che soddisfano le tue esigenze > in Internet, > ecco due esempi di offerte: > > - Registrazione Dominio: un dominio con 1 MB di spazio disco > + 2 caselle > email a soli 18,59 euro > - MioDominio: un dominio con 20 MB di spazio disco + 5 caselle email > a soli 51,13 euro > > Vieni a trovarci! > > Lo Staff di Interfree > -------------------------------------------------------------- > ----------- > > From arinib at cs.wisc.edu Tue Dec 6 08:15:25 2005 From: arinib at cs.wisc.edu (Arini Balakrishnan) Date: Tue, 06 Dec 2005 10:15:25 -0600 Subject: [ns] Help!!! Urgent!!! regarding broadcast Message-ID: <4395B91D.5050202@cs.wisc.edu> Hi, I am trying to implement a RFID protocol on NS2. I want to make a wireless node broadcast packets are regular intervals of time. How do i achieve this? Also i would like to disable the routing. So I am using a Dumb Agent for routing and to disable RTS/CTS i set the RTS Threshold to 3000. When i do this and run my TCL script, i get into a infinite loop(probably a recursive call) at classifier::recv. I set the ip address to the IP_BROADCAST and the ip source and destination port to 255. (I am doing all this in an Agent which lies at the same layer as UDP). Can u help me in this regard. Any help would be appreciated. Please reply as soon as possible. Thanks, Arini Balakrishnan From pedro.estrela at gmail.com Tue Dec 6 08:46:17 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Tue, 6 Dec 2005 16:46:17 -0000 Subject: [ns] Help!!! Urgent!!! regarding broadcast In-Reply-To: <4395B91D.5050202@cs.wisc.edu> Message-ID: <000601c5fa84$943426c0$172914ac@Estrela> http://www.catb.org/~esr/faqs/smart-questions.html#urgent a) setup a periodic timer b) send a broadcast message as a beacon check mip.cc for doing this. The Mobile Agents functionality do just that. > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Arini Balakrishnan > Sent: ter?a-feira, 6 de Dezembro de 2005 16:15 > To: ns-users at ISI.EDU > Subject: [ns] Help!!! Urgent!!! regarding broadcast > > > Hi, > I am trying to implement a RFID protocol on NS2. I want to make a > wireless node broadcast packets are regular intervals of time. How do i > achieve > this? Also i would like to disable the routing. So I am using a Dumb > Agent for routing and to disable RTS/CTS i set the RTS Threshold to 3000. > When > i do this and run my TCL script, i get into a infinite loop(probably a > recursive call) at classifier::recv. I set the ip address to the > IP_BROADCAST and the ip source and destination port to 255. (I am doing > all this in an Agent which lies at the same layer as UDP). Can u help me > in this regard. Any help would be appreciated. Please reply as soon as > possible. > Thanks, > Arini Balakrishnan From pycheng at smileyfish.co.uk Tue Dec 6 09:02:24 2005 From: pycheng at smileyfish.co.uk (PoCheng) Date: Tue, 06 Dec 2005 17:02:24 +0000 Subject: [ns] use of dmux_->recv(p, 0.0) Message-ID: <4395C420.7060005@smileyfish.co.uk> Hi All, I apologise if my query has already been posted before, but could somebody please help me to understand how the PortClassifier works? I have recently found the following tutorials on how to compile customised Routing Agent. http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf http://www.cs.mtu.edu/~spark/mobile/mobile05/SkeletonForImplementingRAlg.pdf As I try to compile the example codes in NS2 ver2.29 (after correct lots of syntax errors), there is only one last compilation error which I could not solve. It's shown below, and a suggestion was given. routing/routing.cc:241: error: no matching function for call to ?PortClassifier::recv(Packet*&, double)? ./classifier/classifier.h:60: note: candidates are: virtual void Classifier::recv(Packet*, Handler*) So I went back to check both tutorials, and line 241 of routing.cc is written as dmux_->recv(p, 0.0); After looking through classifer/classfier-port.h, classifier/classifier-port.cc, classifier/classifier.h, and classifier/classifier.cc, I couldn't understand why the tutorials were written as what them were (though these tutorials were done in ns2 ver2.27). I have also digged up NS2 ver2.27 to check on the classifiers, but they are the same as the ones in ver2.29. If anyone knows the answer to this, please let me know. Thanks very much in advance. Po Cheng CNTR/Salford University 06/Dec/05 From fdiniz at ctc.puc-rio.br Tue Dec 6 12:27:14 2005 From: fdiniz at ctc.puc-rio.br (Fernando Diniz) Date: Tue, 6 Dec 2005 18:27:14 -0200 (BRST) Subject: [ns] Simulate flow control Message-ID: <33152.139.82.74.185.1133900834.squirrel@139.82.74.185> Hi, I`m trying to simulate a network flow control, like 802.3x. Is there an implementation of it on ns? Also, I`ve tryied to set the `blocked_` flag of a queue to false, but I got an "Scheduler: Event UID not valid!" error. Is this the correct way to pause dequeing? If not, is the there another way to do this? Thanks in advance, Fernando. From ghyan at hotmail.com Tue Dec 6 16:45:56 2005 From: ghyan at hotmail.com (Guanhua Yan) Date: Tue, 06 Dec 2005 19:45:56 -0500 Subject: [ns] strange bind! Message-ID: Hi all -- I had problems with binding variables in ns-2. It seems that after binding the variable always becomes 0, no matter what values I set the variable in the tcl file. Anyone has such experience before? thanks, Guanhua From alex.mufatti at gmail.com Tue Dec 6 17:03:05 2005 From: alex.mufatti at gmail.com (Alex Mufatti) Date: Wed, 7 Dec 2005 02:03:05 +0100 Subject: [ns] Problem compiling 2.28 on debian unstable In-Reply-To: <20051126101827.GA12465@serverinux> References: <20051126101827.GA12465@serverinux> Message-ID: <20051207010305.GB18109@serverinux> ** Alex Mufatti [261105, 11:18] ha scritto: > > Hi all, > I've succesfully compiled ns-2.28 on ubuntu hoary(default compiler gcc 3.3) and breezy > (default compiler gcc 4.0 but using gcc3-3 with CC,CXX,CPP variables). Now > I'm trying to compile it on Debian unstable but I can't get it work. The > default compiler is gcc-4.0.3 so I use /like in ubuntu): > > CC=/usr/bin/gcc-3.3 CXX=/usr/bin/g++-3.3 CPP=/usr/bin/cpp-3.3 make > > but i recive an error: > > `.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced in section > `.rodata' of wpan/p802_15_4mac.o: defined in discarded section > `.gnu.linkonce.t._ZN11taskPending10taskStatusEh' of wpan/p802_15_4mac.o > collect2: ld returned 1 exit status > make: *** [ns] Error 1 > > > Can someone help me? > > thank you I've foud the solution to this problem: it can be solved downgrading binutils from the cvs version (default in sid) to 2.16.1-2. I hope this can help someone with the same problem. bye -- *aLeX* ICQ# 75096847 -- Linux user# 203979 From muhammadumar at gmail.com Tue Dec 6 23:56:36 2005 From: muhammadumar at gmail.com (Muhammad Umar) Date: Wed, 7 Dec 2005 12:56:36 +0500 Subject: [ns] why 0.66 W, 0.395W and 0.035W ??? Message-ID: <6617065e0512062356w7d24054doa4fb2f97128f5c46@mail.gmail.com> Hello everyone, Most of the wireless sensor network papers that I have studied have used 0.66 W for transmission .0395W for reception and 0.035 W for idle energy consumtion >From where did these values came from and What if I want to change them, what other parameters I will have to change.... Are these values related to the Pt and Pr parameters ????? Any comments, help umer. From bali at ant.uni-hannover.de Wed Dec 7 00:49:53 2005 From: bali at ant.uni-hannover.de (Samer Bali) Date: Wed, 7 Dec 2005 09:49:53 +0100 Subject: [ns] 802.15.4a propagation model References: Message-ID: <002201c5fb0b$31717ba0$9f1417ac@at23> Dear Vince, Dear Ramya, Thanks for your reply. In fact I am interested in the implementation of 802.15.4a in ns-2. Since Zigbee routing are based on 802.15.4, I thought that their code may be useful for me, especially that in the physical layer. I want to implement a new propagation model for the alternative PHY layer of 802.15.4a based on ultra wide band (UWB) in ns-2, since the radio propagation models implemented in ns2 sofar do not reflect the effects of UWB in the PHY layer. To do so, I will use the following papers: "IEEE 802.15.4a channel model - final report" and " Conditional Bit Error Rate for Impulse Radio UWB channel with interfering Users." However, until now I do not know which files should I change and modify to add this new propagation model. I welcome any suggestions and hints!!!! Yours, samer Bali ****************************************************** M.Sc.-EE. Samer Bali Institut f?r Kommunikationstechnik (ehemals: Institut f?r Allgemeine Nachrichtentechnik) Universit?t Hannover Appelstrasse 9A D-30167 Hannover Tel: +49-511-762-2841 Fax: +49-511-762-3030 Email: bali at ant.uni-hannover.de ----- Original Message ----- From: Vince Van To: bali at ant.uni-hannover.de Sent: Tuesday, December 06, 2005 12:18 PM Subject: Zigbee in NS2 Hi, You can find the example codes under ./wpan/demo/ directory. And the introductory pdf file in the package is the manual... I am a ms student, and I am also working on the Zigbee NS2 simulation, so we may exchage ideas on it. I have just made a tcl script, I believe you have seen it in the same digest mail. Best regards, Vince Van From sergey.semionov at gmail.com Wed Dec 7 04:01:46 2005 From: sergey.semionov at gmail.com (Sergey Semenov) Date: Wed, 7 Dec 2005 15:01:46 +0300 Subject: [ns] Real-time emulation using NS-2 Message-ID: <836f3f380512070401o1459fcbcjcc087052497f7a8a@mail.gmail.com> Hi Has anybody tried to use a ns-2 simulator for Real-Time Network Emulation with real-world IP-packets? Are there some extensions for ns-2 to do that? It's very interesting to see the perfomance test results. I know, that there are some extension for RT Simulation, but i have never seen even tries to make an Emulation using ns-2. Thank you From ghost at mail.nsysu.edu.tw Wed Dec 7 04:20:08 2005 From: ghost at mail.nsysu.edu.tw (Scott) Date: Wed, 7 Dec 2005 20:20:08 +0800 Subject: [ns] do anyone research about 802.16 Message-ID: <20051207122029.36BBA2C41F0@ms7.cc.ncku.edu.tw> Hi NS user,, I'm studying in 802.16 all. Does anyone do the same thing with this?? That's because I manna run simulation on ns2 but no correct code for verification. If possible, please allow me to search for your support . Scott Liu Best regards! From mahrenho at ivs.cs.uni-magdeburg.de Wed Dec 7 06:04:49 2005 From: mahrenho at ivs.cs.uni-magdeburg.de (Daniel Mahrenholz) Date: Wed, 7 Dec 2005 15:04:49 +0100 Subject: [ns] Real-time emulation using NS-2 In-Reply-To: <836f3f380512070401o1459fcbcjcc087052497f7a8a@mail.gmail.com> References: <836f3f380512070401o1459fcbcjcc087052497f7a8a@mail.gmail.com> Message-ID: <200512071504.51910.mahrenho@ivs.cs.uni-magdeburg.de> Hi, On Wednesday 07 December 2005 13:01, Sergey Semenov wrote: > Has anybody tried to use a ns-2 simulator for Real-Time Network > Emulation with real-world IP-packets? Are there some extensions for > ns-2 to do that? > It's very interesting to see the perfomance test results. > > I know, that there are some extension for RT Simulation, but i have > never seen even tries to make an Emulation using ns-2. ns-2 already incluses an emulation facility and you can find an improved version on our website at http://www-ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/nse/index.shtml We used the emulation for different real-life experiments including audio-streaming and it worked. Regards, Daniel. -- Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho From ahmedm9 at lsbu.ac.uk Wed Dec 7 07:47:18 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Wed, 7 Dec 2005 15:47:18 -0000 Subject: [ns] wirless3.tcl help Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062A9@CSD-EXBE-VS1.lsbu.ac.uk> Hi, all i want to calculate packet loss and end-to-end through put delay between mobile node and w(0) and want to see the result on xgraph please any one can help me..regarding this http://www.isi.edu/nsnam/ns/tutorial/nsscript6.html#second Thnaks From ahmedm9 at lsbu.ac.uk Wed Dec 7 08:18:00 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Wed, 7 Dec 2005 16:18:00 -0000 Subject: [ns] help on wireless3.tcl Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062AB@CSD-EXBE-VS1.lsbu.ac.uk> Hi, all i want to calculate packet loss and end-to-end through put delay between mobile node and w(0) and want to see the result on xgraph please any one can help me..regarding this http://www.isi.edu/nsnam/ns/tutorial/nsscript6.html#second Thnaks From dario_bodj at hotmail.com Wed Dec 7 08:49:49 2005 From: dario_bodj at hotmail.com (Dario Borriello) Date: Wed, 07 Dec 2005 16:49:49 +0000 Subject: [ns] How analyze trace file NS.EXE.stackdump? Message-ID: Hi, could someone explain me how i can analyze the trace file NS.EXE.stackdump to identificate the tcl instruction which caused the exception? The file appears this way: Exception: STATUS_FLOAT_DIVIDE_BY_ZERO at eip=004C08AD eax=00E0BCD0 ebx=00000003 ecx=610E3038 edx=00E58610 esi=00B3D4C0 edi=00B3D520 ebp=00B3D238 esp=00B3D1C0 program=C:\CYGWIN\HOME\DM\NS-ALLINONE-2.29\NS-2.29\NS.EXE, pid 89804839, thread main cs=018F ds=0197 es=0197 fs=591F gs=0000 ss=0197 Stack trace: Frame Function Args 00B3D238 004C08AD (00E58610, 00E0BCD0, 00000000, 00E0BCD0) 00B3D258 004B604A (00E059B8, 00E0BCD0, 00000000, 00407752) 00B3D278 00408525 (00E059B8, 00E0BCD0, 00000000, 00E0BCD0) 00B3D298 004060A9 (00DF8270, 00E0BCD0, B01E85AB, 3FC4D834) 00B3D2B8 0040601A (00DF8270, 00782E9A, 00000000, 00000009) 00B3D328 00406192 (00DF8270, 00000002, 00B3D4CC, 00000003) 00B3D348 005A1156 (00DF8270, 00D711C0, 00000005, 00B3D4C0) 00B3D4F8 005A4892 (00DF8050, 00D711C0, 00000003, 00B3D520) 00B3D588 005B0250 (00DF8130, 00D711C0, 00000003, 00D734D4) 00B3D5C8 005B1211 (00D711C0, 00000003, 00D734D4, 00000000) 00B3D798 005D7A78 (00D711C0, 00E0B8E0, 00B3D7C8, 005BFC37) 00B3D7C8 005D715C (00D711C0, 013E4C50, 00000003, 00000000) 00B3D998 005D7B51 (00D711C0, 00E9DD18, 00B3D9C8, 005C5CD6) 00B3D9C8 005D715C (00D711C0, 00D79AF8, 00D7ABA0, 00000001) 00B3DCF8 005C4363 (00D86C48, 00D711C0, 00000005, 00B3DD20) 00B3DD88 005C3E7D (00D86C48, 00D711C0, 00000005, 00B3DE40) End of stack trace (more stack frames may be present) Regards, Dario _________________________________________________________________ 250MB per la tua casella di posta http://www.msn.it/hotmail/minisite_10 Trova immediatamente qualsiasi tipo di file. From pedro.estrela at gmail.com Wed Dec 7 08:58:41 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 7 Dec 2005 16:58:41 -0000 Subject: [ns] wirless3.tcl help In-Reply-To: <9FFEE39DADA4A442B06FB5673765F410D062A9@CSD-EXBE-VS1.lsbu.ac.uk> Message-ID: <000001c5fb4f$7a513e20$172914ac@Estrela> http://www.isi.edu/nsnam/archive/ns-users/webarch/1999/msg02093.html > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Ahmed, Masroor 9 > Sent: quarta-feira, 7 de Dezembro de 2005 15:47 > To: ns-users at ISI.EDU > Cc: greis at cs.uni-bonn.de > Subject: [ns] wirless3.tcl help > > > Hi, > all > i want to calculate packet loss and end-to-end through put delay > between mobile node and w(0) and want to see the result on xgraph > please any one can help me..regarding this > > > http://www.isi.edu/nsnam/ns/tutorial/nsscript6.html#second > > Thnaks From vaibhave at cs.utah.edu Wed Dec 7 12:03:09 2005 From: vaibhave at cs.utah.edu (Vaibhave Agarwal) Date: Wed, 7 Dec 2005 13:03:09 -0700 (MST) Subject: [ns] packets collision at mac level In-Reply-To: References: Message-ID: If you see the trace file, the lines that start with "D" (for drop) as the event tells you the packet that has been dropped. The fifth field contains the reason for drop. If it is "COL" it means that it was a collision. Count all of them. -vaibhave On Mon, 5 Dec 2005, Dario Borriello wrote: > > Hi, > > I have to count the number of packets collision at mac level and the number > of drop collision. > can anyone suggest me how to analize the traces file to reach this purpose? > > thanks > > _________________________________________________________________ > 250MB per la tua casella di posta http://www.msn.it/hotmail/minisite_10 > Trova immediatamente qualsiasi tipo di file. > > From chris_schroth at gmx.de Wed Dec 7 11:01:25 2005 From: chris_schroth at gmx.de (Christoph Schroth) Date: Wed, 7 Dec 2005 20:01:25 +0100 Subject: [ns] Question: Packet order in Interface queue perturbed Message-ID: <000e01c5fb60$9f98ca70$16dea8c0@Ketzer> Hi all, I have an important request to all of you: When broadcasting 6 or 7 packets at a time, all of these packets are passed down the layers One after another. Unfortunately, their order is perturbed somewhere..... Can anybody help me? I am using a Queue/DropTail-Queue and AODV routing, but I only want to broadcast Packets to one-hop neighbors anyway. Thanks a lot in advance, Christoph From amit.malani at gmail.com Wed Dec 7 23:53:29 2005 From: amit.malani at gmail.com (amit malani) Date: Thu, 8 Dec 2005 02:53:29 -0500 Subject: [ns] manual routing on Wireless? Message-ID: <2b2e0d2c0512072353qbc293c6tf2c211cb34dfbfc3@mail.gmail.com> does anyone knows example of manual routing for wireless networks. i am doing $ns_ rtproto "Manual" $node_(1) $node_(2) $node_(0) *[*$node_(1) get-module "Manual"*]* add-route $node_(2) $node_(0)*[*$node_(2) get-module "Manual"*]* add-route $node_(1) $node_(0) it gives me this error: invalid command name "" while executing "[$node_(1) get-module "Manual"] add-route $node_(2) $node_(0)" (file "3n.tcl" line 151) in archive found similar entry but no reply for it. is it that stupid mistake? thanks Amit From ekularn.d at egat.co.th Thu Dec 8 00:22:56 2005 From: ekularn.d at egat.co.th (Ekularn Dhavarudha) Date: Thu, 8 Dec 2005 15:22:56 +0700 Subject: [ns] Please Help! Problem on installation ns-allinone- 2.28 Message-ID: <2071E84D92C11B49BE067B63C1CCC30A4884A7@ntb-5ito-exc01.egat.local> Dear all, I use linux Redhat8.0. When I use the cmd "./install" and "./configure". I came up with many errors. How should I solve this problem. Please help. Thanks in advance. Best regards, Ekularn Dhavarudha Ekularn.d at egat.co.th From bhaskar.sardar at gmail.com Thu Dec 8 03:12:28 2005 From: bhaskar.sardar at gmail.com (bhaskar sardar) Date: Thu, 8 Dec 2005 16:42:28 +0530 Subject: [ns] controlling communication range of Base Station Message-ID: <15cb5eac0512080312m749b7a78q95b4f478c3e5016@mail.gmail.com> I have stuck in a serious problem...I need to control the communication range of base station in the wireless interface...I tried with RXTHRESH but it did not work...Is there any other way...please reply quickly... From FabianWolff at gmx.de Thu Dec 8 12:27:36 2005 From: FabianWolff at gmx.de (FabianWolff) Date: Thu, 08 Dec 2005 21:27:36 +0100 Subject: [ns] Getting information about every reachable node Message-ID: <43989738.3070204@gmx.de> Hi, I am a new user of ns-2 (version 2.29) and hope you can help me. Actually I am implementing (C++) a new application which should use dsdv as rounting agent. As usual my application derives from Application and the used protocol is derived from UDP (it was necessary to extend UDP to send some data in the payload). It is necessary that this application (this application is running on every node) gets access to information about every node (who is reachable in the partitioned network, next hop, position information, routing table,...). Furthermore it is necessary that connections between nodes (sender and receiver) were set up dynamically (in the C++ Implementation) and not previously because the decision for the destination node, which node shall get the data depends on the node-movement and is done during simualtion time. I have some problems to find the classes/objects I have to use to get these information (including GOD). If I am using god (God::instance()), I am able to get access to every node in the network and can get position information of them. But if I am trying to call ComputeRoute() or other functions (floyd_warshall, ..) using the god instance I get a segfault. Calling IsReachable (i,j) returns for every node true and the NextHop(i,j) is always 0 (I guess because the array is initialized with 0). Using Simulator::instance() I was not able to get access to infomation I needed (but perhaps I have overseen some attributes). I was already searching (but unfortunately not successfull) in other classes for RountingLists*, attributes or anything to which I can get access and which can provide me with the needed information therefore I am able to make routing decision. Even I don't really understand the "bridge" between dsdv and the routing table that has to be used, because I could neither find a "general object (like a global RountingModule)" which I would be able to cast, nor the routingTable which will be created by the chosen routing protocol. I hope somebody can help me, because I tried already for several hours to take a look in the source-code of the ns-core, but I was not able to get my needed information. Best regards, Fabian From ahmedm9 at lsbu.ac.uk Thu Dec 8 06:44:43 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Thu, 8 Dec 2005 14:44:43 -0000 Subject: [ns] umts extension for NS2.27 Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062AC@CSD-EXBE-VS1.lsbu.ac.uk> Hi all any body knows which umts extension for NS 2.27 MASROOR 07904609355 From airy at ti.com Thu Dec 8 07:41:38 2005 From: airy at ti.com (Airy, Manish) Date: Thu, 8 Dec 2005 09:41:38 -0600 Subject: [ns] Real-time emulation using NS-2 Message-ID: Hi, We are modeling a MAC protocol for a wireless base station (BS) communicating with numerous mobile stations (MS). The wireless physical layer is abstracted by the Ethernet physical layer (i.e. all over the air transmissions are modeled encapsulated in Ethernet frames). The BS application acts as a router/gateway: picks up IP packets, decides if each packet is meant for a MS or the internet. The BS application schedules, fragments/re-assembles packets as necessary (based on the MAC protocol we model) before sending (over Ethernet) in the downlink direction to the MS or in the upstream direction to the internet. Our purpose is quick/cheap initial testing/debugging of the real-world MS implementation (FPGA-based, embedded OS etc) with the emulated BS as accurately as possible. We use the real time scheduler in ns-2.29 over a linux 2.6.11 (Fedora Core 4) kernel and a standard 2.4 GHz Pentium 4 desktop. With this setup, we see a (95%-ile) +-1 ms error in the timing for data that arrives (from the BS) at the lab-test MS. Since the events we are interested in are on the order of 5 or 10 ms, for our application we can tolerate occasional +-1 ms timing errors. Over linux 2.4.20-6 (Red Hat 9) we measured this timing error to be on the order of 10 ms. 2.6.11 did a great job of reducing the kernel time-slice duration along with major changes to the kernel scheduler and that is very clearly visible in our work. One thing I have not been able to get a clear understanding for, is the usage of the "slop-factor" that ns provides. I can't seem to play with it to improve the real-time accuracy any better than +-1 ms. Makes sense if the kernel time-slice is 2 ms (500 HZ jiffy), I think. Perhaps someone on this list has better experience with this. Regards, Manish. Hi, On Wednesday 07 December 2005 13:01, Sergey Semenov wrote: > Has anybody tried to use a ns-2 simulator for Real-Time Network > Emulation with real-world IP-packets? Are there some extensions for > ns-2 to do that? > It's very interesting to see the perfomance test results. > > I know, that there are some extension for RT Simulation, but i have > never seen even tries to make an Emulation using ns-2. ns-2 already incluses an emulation facility and you can find an improved version on our website at http://www-ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/nse/index.shtm l We used the emulation for different real-life experiments including audio-streaming and it worked. Regards, Daniel. -- Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho From sebaguazzini at hotmail.com Thu Dec 8 10:41:04 2005 From: sebaguazzini at hotmail.com (Sebastian Guazzini) Date: Thu, 08 Dec 2005 18:41:04 +0000 Subject: [ns] controlling communication range of Base Station In-Reply-To: <15cb5eac0512080312m749b7a78q95b4f478c3e5016@mail.gmail.com> Message-ID: You can probe with $nodo($i) radius 180 Where $nodo($i) is the variable of base station and 180 is the range in meters I hope this help you S.G. >From: bhaskar sardar >To: ns-users at ISI.EDU >Subject: [ns] controlling communication range of Base Station >Date: Thu, 8 Dec 2005 16:42:28 +0530 > > >I have stuck in a serious problem...I need to control the communication >range of base station in the wireless interface...I tried with RXTHRESH but >it did not work...Is there any other way...please reply quickly... From sana.tmar at gmail.com Thu Dec 8 12:40:19 2005 From: sana.tmar at gmail.com (sana) Date: Thu, 08 Dec 2005 21:40:19 +0100 Subject: [ns] Drop packets Message-ID: <43989A33.5000402@gmail.com> Hello I am working on a simulation of wireless lan. The subject of my project is about the communication between a node and his neighbors. I want to simulate droping packets. How a peer can drop data packets on ad hoc networks i use AODV routing protocol and TCP trafic thanks From itcz at tom.com Thu Dec 8 17:04:47 2005 From: itcz at tom.com (=?GB2312?B?1PjT7tDY?=) Date: Fri, 9 Dec 2005 09:04:47 +0800 Subject: [ns] About XML Message-ID: <200512090102.jB912VW22321@vapor.isi.edu> Hello, I want to convert nam trace file to XML format easily. Would you give me some help on it? Thank you very much! John ¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡itcz at tom.com ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-12-08 From zh.wei at sjtu.edu.cn Thu Dec 8 17:49:15 2005 From: zh.wei at sjtu.edu.cn (zh.wei@sjtu.edu.cn) Date: Fri, 09 Dec 2005 09:49:15 +0800 Subject: [ns] validate or debug a protocol Message-ID: <20051209094915.67xo5xrqm6840s48@webmail1.sjtu.edu.cn> Dear all, 1. I wonder how to validate a protocol in ns2, should I analysis the trace results? If I use debug tools, how can I know the result is the one I wanted? 2. In one-hop network, the DumbAgent is used to simulate the ideal routing, based oon which we analyze the MAC performance. I wonder in multi-hop network, what should I do to analyze the MAC performance. 3. I found that in most paper analyzing the multi-hop ad hoc MAC performance, the authors assumed "each sending node chooses any one of its neighbors with equeal probability". How can I realize this? Thanks for any help and suggestions. Wei Zhang From lijing3 at ustc.edu.cn Thu Dec 8 18:17:13 2005 From: lijing3 at ustc.edu.cn (Jing Li) Date: Fri, 09 Dec 2005 10:17:13 +0800 Subject: [ns] hierarchical address allocation problem,help! Message-ID: <334094633.18207@ustc.edu.cn> the problem codes: set temp {1.0.0 1.1.0 1.2.0} for {set i 0} {$i<$num_wired_nodes} {incr i} { set n($i) [$ns node [lindex $temp $i]] } the error information is like: synatx error in expression "1.0.0 & 2147483647<<0": extra tokens at end of expression while executing "expr $addrstr &......." what's my problem? Can anyone help me? From jondeandres at terra.es Thu Dec 8 18:23:18 2005 From: jondeandres at terra.es (Jon de =?iso-8859-1?q?Andr=E9s?=) Date: Fri, 9 Dec 2005 03:23:18 +0100 Subject: [ns] Drop packets In-Reply-To: <43989A33.5000402@gmail.com> References: <43989A33.5000402@gmail.com> Message-ID: <200512090323.18231.jondeandres@terra.es> Hi sana, you should read the section about error model in the ns2 manual. However, here is an example of how you can simulate frame errors in ns2: ?$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 OFF \ ? ? ? ? ? ? ? ? ? ? ? ? ?-routerTrace ON \ ? ? ? ? ? ? ? ? ? ? ? ? ?-macTrace ON \ ? ? ? ? ? ? ? ? ? ? ? ? ?-movementTrace ON \ ? ? ? ? ? ? ? ? ? ? ? ? ?-IncomingErrProc UniformErr proc UniformErr {} { set err [new ErrorModel] $err unit packet $err set rate_ 0.02 return $err } I'm also interesed in the error simulation, so if you find some other way to make it, write to the mailing list please :). bye El Jueves 08 Diciembre 2005 21:40, sana escribi?: > Hello > I am working on a simulation of wireless lan. The subject of my project > is about the communication between a node and his neighbors. > I want to simulate droping packets. > How a peer can drop data packets on ad hoc networks i use AODV routing > protocol and TCP trafic > thanks -- Jon de Andr?s Fr?as GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From arraliby at yahoo.com Thu Dec 8 20:43:25 2005 From: arraliby at yahoo.com (Z.A.L.D.I) Date: Thu, 8 Dec 2005 20:43:25 -0800 (PST) Subject: [ns] Multicast over MANETs (Need Suggestion) In-Reply-To: <200512090323.18231.jondeandres@terra.es> Message-ID: <20051209044325.24024.qmail@web33014.mail.mud.yahoo.com> Hi All, I'd like to simulate three ad hoc multicast protocols : MAODV, ODMRP and ADMRP I found NS-2.1b8 support ODMRP and ADMRP and also MAODV have already implemented on NS-2.26 ... any suggestion, which version of NS2 is better to simulate all these three protocols? should i use different version of NS2 then ? thanks Zaldi --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping From lertnitiwong at csupomona.edu Thu Dec 8 21:57:57 2005 From: lertnitiwong at csupomona.edu (lertnitiwong) Date: Thu, 8 Dec 2005 21:57:57 -0800 Subject: [ns] xgraph to show data transfer in time Message-ID: <43A5D703@iitwebmail.win.csupomona.edu> HI all, I need help using xgraph. How can I show the data transfer in time graph? I'm using ftp to send 1Mb of data, and I want the graph to show the data transfer amount versus time. Anyone know?? Please help. Thank you in advance. K.L. From jondeandres at terra.es Fri Dec 9 01:31:52 2005 From: jondeandres at terra.es (Jon de =?utf-8?q?Andr=C3=A9s?=) Date: Fri, 9 Dec 2005 10:31:52 +0100 Subject: [ns] About XML In-Reply-To: <200512090102.jB912VW22321@vapor.isi.edu> References: <200512090102.jB912VW22321@vapor.isi.edu> Message-ID: <200512091031.57630.jondeandres@terra.es> Now, I don't know the way to do it, but it is a very good work. If you find something about it tell us :) bye El Viernes 09 Diciembre 2005 02:04, ??? escribi?: -- Jon de Andr?s Fr?as GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From florrie at eee.strath.ac.uk Fri Dec 9 02:05:48 2005 From: florrie at eee.strath.ac.uk (Florence Touvet) Date: Fri, 9 Dec 2005 10:05:48 -0000 Subject: [ns] 802_15_3 Tcl script Message-ID: <000801c5fca8$20acfbc0$75769f82@eee.strath.ac.uk> Hi, I am using the 802_15_3 MAC developed by Intel in 2002. I am trying to write a script to establish transactions between nodes using the 802_15_3 mac, but in vain. I don't understand something in the mac::command method: why when there are 6 arguments (argc=6), the last argument in the list is not parsed; there is no argv[5]? Thank you for any help. Flo --------------------------------------------------------------- Dr Florence Touvet Research Fellow EEE, Communications Division University of Strathclyde, Glasgow, UK R.3.02C Tel: 2521 http://www.comms.eee.strath.ac.uk/~florrie --------------------------------------------------------------- From dario_bodj at hotmail.com Fri Dec 9 02:59:36 2005 From: dario_bodj at hotmail.com (Dario Borriello) Date: Fri, 09 Dec 2005 10:59:36 +0000 Subject: [ns] Problem with protocol NOAH for static multihop Message-ID: Hi, I'm using the protocol Noah to simulate a wireless scenario composed by a singol line of nodes (called "hop_(i)" ) and other nodes that are not involved in the static routing... The total number of nodes of the topology is $val(nn) = #hop_(i) + #nodes I uses the following code to implement the multihop routing between the nodes "hop_(i)" without involved the others nodes: #Noah static multihop for {set j 0} {$j < $num_hop } {incr j} { set cmd "[$hop_($j) set ragent_] routing $num_hop" for {set to 0} {$to < $num_hop} {incr to} { if {$to < $j} { set hop [expr $j - 1] } elseif {$to > $j} { set hop [expr $j + 1] } else { set hop $j } set cmd "$cmd $to $hop" } eval $cmd } where $num_hop is the number of $hop_(i) and i uses it instead of $val(nn) Unfortunately the simulation fails due to the following error : " no route known" Can someone explain me why?? Thanks, Dario _________________________________________________________________ Scarica gratuitamente MSN Toolbar! http://toolbar.msn.it/ From pedro.estrela at gmail.com Fri Dec 9 04:43:52 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 12:43:52 -0000 Subject: [ns] Problem with protocol NOAH for static multihop In-Reply-To: Message-ID: <003401c5fcbe$3632c590$172914ac@Estrela> Looks a good starting point, but: a) I think NOAH doesn't support multihop routing; its only a way of moving the packets to/from Mobile nodes / basestations. For that your need to change C++ noah.cc b) give examples of the TCL commands this code generates; c) where is the "routing" command? Its not in NOAH. Is it inherited? If yes, is it considered in NOAH? I think not. d) use DDD to debug what happens in the first packet transmission. Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Dario Borriello > Sent: sexta-feira, 9 de Dezembro de 2005 11:00 > To: ns-users at ISI.EDU > Subject: [ns] Problem with protocol NOAH for static multihop > > > Hi, > > I'm using the protocol Noah to simulate a wireless scenario composed by a > singol line of nodes (called "hop_(i)" ) and other nodes that are not > involved in the static routing... > The total number of nodes of the topology is $val(nn) = #hop_(i) + #nodes > > I uses the following code to implement the multihop routing between the > nodes "hop_(i)" without involved the others nodes: > > #Noah static multihop > for {set j 0} {$j < $num_hop } {incr j} { > set cmd "[$hop_($j) set ragent_] routing $num_hop" > for {set to 0} {$to < $num_hop} {incr to} { > if {$to < $j} { set hop [expr $j - 1] > } elseif {$to > $j} { set hop [expr $j + 1] > } else { > set hop $j > } > set cmd "$cmd $to $hop" > } > eval $cmd > } > > where $num_hop is the number of $hop_(i) and i uses it instead of $val(nn) > > Unfortunately the simulation fails due to the following error : > " no route known" > > Can someone explain me why?? > > Thanks, > > Dario > > _________________________________________________________________ > Scarica gratuitamente MSN Toolbar! http://toolbar.msn.it/ From pedro.estrela at gmail.com Fri Dec 9 04:45:04 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 12:45:04 -0000 Subject: [ns] 802_15_3 Tcl script In-Reply-To: <000801c5fca8$20acfbc0$75769f82@eee.strath.ac.uk> Message-ID: <003501c5fcbe$609069f0$172914ac@Estrela> Maybe a bug or leftover from previous code or previous, deleted functionality. The question is: does it work? > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Florence Touvet > Sent: sexta-feira, 9 de Dezembro de 2005 10:06 > To: ns-users at ISI.EDU > Subject: [ns] 802_15_3 Tcl script > > > > Hi, > > I am using the 802_15_3 MAC developed by Intel in 2002. > I am trying to write a script to establish transactions between nodes > using > the 802_15_3 mac, but in vain. > I don't understand something in the mac::command method: why when there > are > 6 arguments (argc=6), the last argument in the list is not parsed; there > is > no argv[5]? > > Thank you for any help. > Flo > > --------------------------------------------------------------- > Dr Florence Touvet > Research Fellow > EEE, Communications Division > University of Strathclyde, Glasgow, UK > R.3.02C Tel: 2521 > http://www.comms.eee.strath.ac.uk/~florrie > --------------------------------------------------------------- > From pedro.estrela at gmail.com Fri Dec 9 04:46:36 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 12:46:36 -0000 Subject: [ns] xgraph to show data transfer in time In-Reply-To: <43A5D703@iitwebmail.win.csupomona.edu> Message-ID: <003601c5fcbe$978a5ba0$172914ac@Estrela> Combine and variate these 2: http://www.isi.edu/nsnam/archive/ns-users/webarch/1999/msg02093.html http://www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg00059.html > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of lertnitiwong > Sent: sexta-feira, 9 de Dezembro de 2005 5:58 > To: ns-users at ISI.EDU > Subject: [ns] xgraph to show data transfer in time > > > HI all, > I need help using xgraph. How can I show the data transfer in time graph? > I'm using ftp to send 1Mb of data, and I want the graph to show the data > transfer amount versus time. Anyone know?? Please help. > Thank you in advance. > K.L. From pedro.estrela at gmail.com Fri Dec 9 04:47:50 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 12:47:50 -0000 Subject: [ns] Multicast over MANETs (Need Suggestion) In-Reply-To: <20051209044325.24024.qmail@web33014.mail.mud.yahoo.com> Message-ID: <003701c5fcbe$c39eb0b0$172914ac@Estrela> The latest the better > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Z.A.L.D.I > Sent: sexta-feira, 9 de Dezembro de 2005 4:43 > To: ns-users at ISI.EDU > Subject: [ns] Multicast over MANETs (Need Suggestion) > > > Hi All, > > I'd like to simulate three ad hoc multicast protocols : MAODV, ODMRP > and ADMRP > > I found NS-2.1b8 support ODMRP and ADMRP and also MAODV have already > implemented on NS-2.26 ... > any suggestion, which version of NS2 is better to simulate all these > three protocols? > > should i use different version of NS2 then ? > > thanks > > Zaldi > > > > > --------------------------------- > Yahoo! Shopping > Find Great Deals on Holiday Gifts at Yahoo! Shopping From pedro.estrela at gmail.com Fri Dec 9 04:49:39 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 12:49:39 -0000 Subject: [ns] hierarchical address allocation problem,help! In-Reply-To: <334094633.18207@ustc.edu.cn> Message-ID: <003801c5fcbf$04b82fe0$172914ac@Estrela> Use my code: "choose_simple_hier_parameters 5 5 5" complete info in http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_haddr_tips.html Pedro Vale Estrela > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Jing Li > Sent: sexta-feira, 9 de Dezembro de 2005 2:17 > To: ns-users at ISI.EDU > Subject: [ns] hierarchical address allocation problem,help! > > > the problem codes: > > set temp {1.0.0 1.1.0 1.2.0} > for {set i 0} {$i<$num_wired_nodes} {incr i} { > set n($i) [$ns node [lindex $temp $i]] > } > > the error information is like: > synatx error in expression "1.0.0 & 2147483647<<0": extra tokens at end of > expression while executing "expr $addrstr &......." > > what's my problem? Can anyone help me? > From pedro.estrela at gmail.com Fri Dec 9 04:54:41 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 12:54:41 -0000 Subject: [ns] validate or debug a protocol In-Reply-To: <20051209094915.67xo5xrqm6840s48@webmail1.sjtu.edu.cn> Message-ID: <003f01c5fcbf$b876e580$172914ac@Estrela> http://www.catb.org/~esr/faqs/smart-questions.html#formats 1) from http://www.isi.edu/nsnam/ns/ Read this first: While we have considerable confidence in ns, ns is not a polished and finished product, but the result of an on-going effort of research and development. In particular, bugs in the software are still being discovered and corrected. Users of ns are responsible for verifying for themselves that their simulations are not invalidated by bugs. We are working to help the user with this by significantly expanding and automating the validation tests and demos. Similarly, users are responsible for verifying for themselves that their simulations are not invalidated because the model implemented in the simulator is not the model that they were expecting. The ongoing Ns Manual should help in this process. Thus: a) check that core components are OK by running validation tests b) auto-validate your own work by careful, step by step verifications of trace files and at run time with DDD http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging.html > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of zh.wei at sjtu.edu.cn > Sent: sexta-feira, 9 de Dezembro de 2005 1:49 > To: ns-users at ISI.EDU > Subject: [ns] validate or debug a protocol > Dear all, 1. I wonder how to validate a protocol in ns2, should I analysis the trace results? If I use debug tools, how can I know the result is the one I wanted? 2. In one-hop network, the DumbAgent is used to simulate the ideal routing, based oon which we analyze the MAC performance. I wonder in multi-hop network, what should I do to analyze the MAC performance. 3. I found that in most paper analyzing the multi-hop ad hoc MAC performance, the authors assumed "each sending node chooses any one of its neighbors with equeal probability". How can I realize this? Thanks for any help and suggestions. Wei Zhang From pedro.estrela at gmail.com Fri Dec 9 05:02:38 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 13:02:38 -0000 Subject: [ns] controlling communication range of Base Station In-Reply-To: Message-ID: <004001c5fcc0$d52b6b00$172914ac@Estrela> You can limit the transmission power of the MNs and BS. These functions were derived from CIMS code, on the CIP example. Basically, calculate the power for an encompassing rectangle with a certain overlap with HalfCellCoverage { x1 y1 x2 y2 overlap } { then use the value here $ns node-config -rxPower $power -txPower $power PS: don't ask too many questions about this one :-) - its old code, but it works! Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ ---------- ################################################################### ################################################################### ### generic POWER functions # unity gain, omni-directional antennas # set up the antennas to be centered in the node and 1.5 meters above it Antenna/OmniAntenna set X_ 0 Antenna/OmniAntenna set Y_ 0 Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 0.2 Antenna/OmniAntenna set Gr_ 0.2 # 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 ;# minimum receive power Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.28183815 ;# Transmit Power (to be recalculated) Phy/WirelessPhy set freq_ 914e+6 ;# frquency Phy/WirelessPhy set L_ 1.0 ;# Loss Ratio # # Given overlaping area, calculate the desired coverage # expects a BOUNDING BOX for the cell, with the mobile in the center # proc CellCoverage { x1 y1 x2 y2 overlap} { set d2 [expr ($x2-$x1)*($x2-$x1) + ($y2-$y1)*($y2-$y1)] set d [expr sqrt($d2)] ;# Hipotenusa set ret [expr ($overlap + $d) / 2] puts "D2: $d2 D: $d RET: $ret" return $ret } # # Given overlaping area, calculate the desired coverage # expects a QUARTER BOUNDING BOX for the cell, with the mobile in the 0,0 position (lower left corner) # proc HalfCellCoverage { x1 y1 x2 y2 overlap } { return [expr [CellCoverage $x1 $y1 $x2 $y2 $overlap] * 2] } # # Calculate Necessary Transmission Power Pt for given coverage # # See /mobile/tworayground.cc # proc SetPt { coverage } { set Gt [Antenna/OmniAntenna set Gt_] set Gr [Antenna/OmniAntenna set Gr_] set ht [Antenna/OmniAntenna set Z_] set hr [Antenna/OmniAntenna set Z_] set RXThresh [Phy/WirelessPhy set RXThresh_] set L [Phy/WirelessPhy set L_] set Pt_ [Phy/WirelessPhy set Pt_] set freq_ [Phy/WirelessPhy set freq_] set lambda [expr 300000000 / $freq_] set crossover_dist [expr (4 * 3.1415926535897 * $ht * $hr) / $lambda ]; puts "old pt: $Pt_ RXThresh: $RXThresh lambda: $lambda \t\t crosshover: $crossover_dist coverage: $coverage" if { [expr $coverage < $crossover_dist] } { puts ">>> Using Friis formula <<<" set M [expr $lambda / (4.0 * 3.1415926535897 * $coverage)] set Pt [expr $RXThresh * ($L / ($Gt*$Gr*$M*$M))] puts " RET: $Pt" } else { puts ">>> Using TwoRay formula <<<" #Calculate input power necessary to have, at dist $coverage, output power = $RXThresh set d4 [expr pow($coverage,4)] set Pt [expr $RXThresh * (($L*$d4) / ($Gt*$Gr*$ht*$ht*$hr*$hr))] puts "D4: $d4 RET: $Pt" } #debug 1 return $Pt } # /* # * Friis free space equation: # * # * Pt * Gt * Gr * (lambda^2) # * P = -------------------------- # * (4 * pi * d)^2 * L # */ # from /mobile/tworayground.cc: # # TwoRayGround formula # power = Pt * Gt * Gr * (hr * hr * ht * ht) / (d * d * d * d * L); # # Test instproc set_power_values {} { dputs "" global opt ns $self instvar ns_ ############################################# # # Power calculation & initialization # # HAWAII example: power FIXED = 0.29, no coverage calculated (equals coverage(140, 140)), dist = 140, diagonal, overlap = 30 # # set coverage [CellCoverage 1 1 140 140 $opt(overlap)] # set power [SetPt $coverage] # set power 0.29705643626340894 ;# FIXED IN HAWAII # CIP example: power CALCULATED = 0.29, coverage calculated with (140, 140), dist = 140, diagonal, overlap 30 # # set coverage [CellCoverage 1 1 140 140 $opt(overlap)] # set power [SetPt $coverage] # set power 0.29705643626340894 ;# CALCULATED IN HAWAII #set coverage [CellCoverage 1 1 140 140 $opt(overlap)] #########################3 if { $opt(original_CIMS_example) == "1" } { #diagonal set coverage [CellCoverage 1 1 $opt(dist_BS) $opt(dist_BS) $opt(overlap)] set power [SetPt $coverage] ### run time check... #assert ( [expr abs($power - 0.29705643626340894) < 0.1e-7 ] ) } else { #horizontal #set coverage [CellCoverage 0 0 $opt(dist_BS) [expr $opt(MH_Y) - $opt(BS_Y)] $opt(overlap)] #set coverage [HalfCellCoverage 0 0 $opt(dist_BS) 0 $opt(overlap)] # working 02/11/03 set coverage [HalfCellCoverage 0 0 $opt(dist_BS) 0 $opt(overlap)] set power [SetPt $coverage] } set power [expr $power * 10] puts "power calculated: $power" puts "power normal CIMS: 0.29705643626340894" ;## value from CIP & HAWAII examples (dist=XXX, diagonal) #debug 1 #Power value MUST be entered into node-config, and possibily in phy/wirelessphy Phy/WirelessPhy set Pt_ $power $ns node-config -rxPower $power -txPower $power # ############################################# } > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Sebastian Guazzini > Sent: quinta-feira, 8 de Dezembro de 2005 18:41 > To: bhaskar.sardar at gmail.com; ns-users at ISI.EDU > Subject: Re: [ns] controlling communication range of Base Station > > > You can probe with > > $nodo($i) radius 180 > > Where $nodo($i) is the variable of base station and 180 is the range in > meters > > I hope this help you > S.G. > > >From: bhaskar sardar > >To: ns-users at ISI.EDU > >Subject: [ns] controlling communication range of Base Station > >Date: Thu, 8 Dec 2005 16:42:28 +0530 > > > > > >I have stuck in a serious problem...I need to control the communication > >range of base station in the wireless interface...I tried with RXTHRESH > but > >it did not work...Is there any other way...please reply quickly... > From pedro.estrela at gmail.com Fri Dec 9 05:05:56 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 13:05:56 -0000 Subject: [ns] tracing WL wireless events in .tr file In-Reply-To: <7f7cdc120512080813r40e458d3l13ca8cb28dff255c@mail.gmail.com> Message-ID: <004301c5fcc1$4af90a90$172914ac@Estrela> Try $ns node-config \ -agentTrace $opt(agentTrace) \ -routerTrace $opt(routerTrace) \ -macTrace $opt(macTrace) \ -movementTrace $opt(movementTrace) with all flags with "ON" -----Original Message----- From: Kamal Gakhar [mailto:kamal.ns2 at gmail.com] Sent: quinta-feira, 8 de Dezembro de 2005 16:14 To: pedro.estrela at inesc.pt I am running a Wired-cum-Wireless script from Marc Greis examples and trying to analyse ".tr" file. As he mentioned in his notes (for file: ~ns-2.28/ns-tutorial/examples/wireless2.tcl ) I should be able to see "WL" for a wireless traces. But when I analyze ".tr" I dont see any. I wonder if the option was disabled in ns2 or the wireless transmission is analyzed by diectly looking at nodes in trace files. What's the situation actually..? :-( -- regards, Kamal (http://www-info.enst-bretagne.fr/~kgakhar) From pedro.estrela at gmail.com Fri Dec 9 05:07:46 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 13:07:46 -0000 Subject: [ns] Please Help! Problem on installation ns-allinone- 2.28 In-Reply-To: <2071E84D92C11B49BE067B63C1CCC30A4884A7@ntb-5ito-exc01.egat.local> Message-ID: <005001c5fcc1$8c9a5760$172914ac@Estrela> http://www.catb.org/~esr/faqs/smart-questions.html#formats try a regular debian distribution > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Ekularn Dhavarudha > Sent: quinta-feira, 8 de Dezembro de 2005 8:23 > To: ns-users at ISI.EDU > Subject: [ns] Please Help! Problem on installation ns-allinone- 2.28 > Importance: High > Dear all, I use linux Redhat8.0. When I use the cmd "./install" and "./configure". I came up with many errors. How should I solve this problem. Please help. Thanks in advance. Best regards, Ekularn Dhavarudha Ekularn.d at egat.co.th From pedro.estrela at gmail.com Fri Dec 9 05:20:16 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 13:20:16 -0000 Subject: [ns] 802_15_3 Tcl script In-Reply-To: <9C2F284131C9394081261B2AEF82C26E047E48@helios.eee.strath.ac.uk> Message-ID: <005301c5fcc3$4bcbd900$172914ac@Estrela> a) These type things are normal in NS - things are so large that its very difficult to have everything tidy. Also, persons who make modules doesn't take care to maintain them b) I don't use 802.15.3. c) best place to learn TCL scripts is to check the simplest in /tcl/test - validation tests - 100% guaranteed to work. /tcl/ex - examples - might be outdated > -----Original Message----- > From: Florence Touvet [mailto:florrie at eee.strath.ac.uk] > Sent: sexta-feira, 9 de Dezembro de 2005 13:13 > To: pedro.estrela at gmail.com > Subject: RE: [ns] 802_15_3 Tcl script > > > Hi, > > I don't know if it works yet, but I am puzzled because I wonder how other > people made it work before? > Do you use it yourself? > If yes, could you send me the Mac802_15_3.cc file, where the command > method is > defined. Also, if you have any Tcl scripts, I am welcoming them with open > arms. > > Cheers > Florence > > -----Original Message----- > From: Pedro Vale Estrela [mailto:pedro.estrela at gmail.com] > Sent: Fri 12/9/2005 12:45 PM > To: Florence Touvet > Cc: ns-users at ISI.EDU > Subject: RE: [ns] 802_15_3 Tcl script > > Maybe a bug or leftover from previous code or previous, deleted > functionality. > > > The question is: does it work? > > > -----Original Message----- > > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On > Behalf > > Of Florence Touvet > > Sent: sexta-feira, 9 de Dezembro de 2005 10:06 > > To: ns-users at ISI.EDU > > Subject: [ns] 802_15_3 Tcl script > > > > > > > > Hi, > > > > I am using the 802_15_3 MAC developed by Intel in 2002. > > I am trying to write a script to establish transactions between nodes > > using > > the 802_15_3 mac, but in vain. > > I don't understand something in the mac::command method: why when there > > are > > 6 arguments (argc=6), the last argument in the list is not parsed; there > > is > > no argv[5]? > > > > Thank you for any help. > > Flo > > > > --------------------------------------------------------------- > > Dr Florence Touvet > > Research Fellow > > EEE, Communications Division > > University of Strathclyde, Glasgow, UK > > R.3.02C Tel: 2521 > > http://www.comms.eee.strath.ac.uk/~florrie > > --------------------------------------------------------------- > > > > From mahrenho at ivs.cs.uni-magdeburg.de Fri Dec 9 06:50:33 2005 From: mahrenho at ivs.cs.uni-magdeburg.de (Daniel Mahrenholz) Date: Fri, 9 Dec 2005 15:50:33 +0100 Subject: [ns] Real-time emulation using NS-2 In-Reply-To: References: Message-ID: <200512091550.34136.mahrenho@ivs.cs.uni-magdeburg.de> Hi, On Thursday 08 December 2005 16:41, Airy, Manish wrote: > With this setup, we see a (95%-ile) +-1 ms error in the timing for data > that arrives (from the BS) at the lab-test MS. Since the events we are > interested in are on the order of 5 or 10 ms, for our application we can > tolerate occasional +-1 ms timing errors. > > Over linux 2.4.20-6 (Red Hat 9) we measured this timing error to be on > the order of 10 ms. 2.6.11 did a great job of reducing the kernel > time-slice duration along with major changes to the kernel scheduler and > that is very clearly visible in our work. > > One thing I have not been able to get a clear understanding for, is the > usage of the "slop-factor" that ns provides. I can't seem to play with > it to improve the real-time accuracy any better than +-1 ms. Makes > sense if the kernel time-slice is 2 ms (500 HZ jiffy), I think. Perhaps > someone on this list has better experience with this. The standard ns-2 2.29 does not contain our own improvements. These will highly increase the timing accuracy at the cost of a higher CPU load. You will get the best results by using a 2-CPU or dual-core-CPU as we devide the ns-2 into a low and a high priority process (one for the simulation and one for logging, disk access etc.). A detailed description of the improvements can be found in the papers on our web page. The patch should work with ns-2 2.29. If you try it, please give us a short feedback about the accuracy that you experience. Best regards, Daniel. -- Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho From pedro.estrela at gmail.com Fri Dec 9 08:25:57 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 16:25:57 -0000 Subject: [ns] use of dmux_->recv(p, 0.0) In-Reply-To: <4395C420.7060005@smileyfish.co.uk> Message-ID: <000101c5fcdd$3bfc9c70$172914ac@Estrela> Short Notice to NS2 beginners: ------------------------------ Congratulations! This an excellent post, written exactly as it is suggested in http://www.catb.org/~esr/faqs/smart-questions.html ------- Try dmux_->recv(p, 0); or, the same thing but more clear, dmux_->recv(p, NULL); or, if the current function has an "handler" parameter, just pass it away dmux_->recv(p, h); This will call you the recv function with a null handler (eg, "0"). I've seen this kind of function callings with absent callback handlers many times before. (It looks to me as a simple typo, which forced the compiler to search for a corresponding function with a floating number argument) Finally, you are welcome to post the corrected examples to NS2.29 in somewhere like a web page, or send it to the original author. ------ Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of PoCheng > Sent: ter?a-feira, 6 de Dezembro de 2005 17:02 > To: ns-users at ISI.EDU > Subject: [ns] use of dmux_->recv(p, 0.0) > > > Hi All, > > I apologise if my query has already been posted before, but could > somebody please help me to understand how the PortClassifier works? > > I have recently found the following tutorials on how to compile > customised Routing Agent. > > http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf > http://www.cs.mtu.edu/~spark/mobile/mobile05/SkeletonForImplementingRAlg.p > df > > As I try to compile the example codes in NS2 ver2.29 (after correct lots > of syntax errors), there is only one last compilation error which I > could not solve. It's shown below, and a suggestion was given. > > routing/routing.cc:241: error: no matching function for call to > ?PortClassifier::recv(Packet*&, double)? > ./classifier/classifier.h:60: note: candidates are: virtual void > Classifier::recv(Packet*, Handler*) > > So I went back to check both tutorials, and line 241 of routing.cc is > written as > dmux_->recv(p, 0.0); > > After looking through classifer/classfier-port.h, > classifier/classifier-port.cc, classifier/classifier.h, and > classifier/classifier.cc, I couldn't understand why the tutorials were > written as what them were (though these tutorials were done in ns2 > ver2.27). > > I have also digged up NS2 ver2.27 to check on the classifiers, but they > are the same as the ones in ver2.29. > > If anyone knows the answer to this, please let me know. Thanks very much > in advance. > > > Po Cheng > CNTR/Salford University > 06/Dec/05 > > > From dario_bodj at hotmail.com Fri Dec 9 08:26:09 2005 From: dario_bodj at hotmail.com (Dario Borriello) Date: Fri, 09 Dec 2005 16:26:09 +0000 Subject: [ns] Problem with protocol NOAH for static multihop In-Reply-To: <003401c5fcbe$3632c590$172914ac@Estrela> Message-ID: I read at the site http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/ that Noah supports multihop routing and i apply the example code to my simulation according to the necessity of only 1 comunication between the first node of the line and the last. but the source node (the first of the line) fails to send all packets to the last node of the line because it don't known the route for the destination... Unfortunately even this new code don't work for {set j 0} {$j < $num_hop } {incr j} { set cmd "[$hop_($j) set ragent_] routing 1" if {$j==($num_hop-1)} { set hop $j } else { set hop [expr $j + 1] } set cmd "$cmd $num_hop-1 $hop" eval $cmd } I hope that you can give me another advice. Thanks >From: "Pedro Vale Estrela" >Reply-To: >To: "'Dario Borriello'" , >Subject: RE: [ns] Problem with protocol NOAH for static multihop >Date: Fri, 9 Dec 2005 12:43:52 -0000 > > >Looks a good starting point, but: > >a) I think NOAH doesn't support multihop routing; its only a way of moving >the packets to/from Mobile nodes / basestations. >For that your need to change C++ noah.cc > >b) give examples of the TCL commands this code generates; >c) where is the "routing" command? Its not in NOAH. Is it inherited? If >yes, >is it considered in NOAH? I think not. > >d) use DDD to debug what happens in the first packet transmission. > >Pedro Vale Estrela >http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 > > > > > > > -----Original Message----- > > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On >Behalf > > Of Dario Borriello > > Sent: sexta-feira, 9 de Dezembro de 2005 11:00 > > To: ns-users at ISI.EDU > > Subject: [ns] Problem with protocol NOAH for static multihop > > > > > > Hi, > > > > I'm using the protocol Noah to simulate a wireless scenario composed by >a > > singol line of nodes (called "hop_(i)" ) and other nodes that are not > > involved in the static routing... > > The total number of nodes of the topology is $val(nn) = #hop_(i) + >#nodes > > > > I uses the following code to implement the multihop routing between the > > nodes "hop_(i)" without involved the others nodes: > > > > #Noah static multihop > > for {set j 0} {$j < $num_hop } {incr j} { > > set cmd "[$hop_($j) set ragent_] routing $num_hop" > > for {set to 0} {$to < $num_hop} {incr to} { > > if {$to < $j} { > set hop [expr $j - 1] > > } elseif {$to > $j} { > set hop [expr $j + 1] > > } else { > > set hop $j > > } > > set cmd "$cmd $to $hop" > > } > > eval $cmd > > } > > > > where $num_hop is the number of $hop_(i) and i uses it instead of >$val(nn) > > > > Unfortunately the simulation fails due to the following error : > > " no route known" > > > > Can someone explain me why?? > > > > Thanks, > > > > Dario > > > > _________________________________________________________________ > > Scarica gratuitamente MSN Toolbar! http://toolbar.msn.it/ > > _________________________________________________________________ Personalizza MSN Messenger con sfondi e fotografie! http://www.ilovemessenger.msn.it/ From pedro.estrela at gmail.com Fri Dec 9 08:53:42 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 9 Dec 2005 16:53:42 -0000 Subject: [ns] Problem with protocol NOAH for static multihop In-Reply-To: Message-ID: <000201c5fce1$1c7f40b0$172914ac@Estrela> OK, this new version of NOAH is supposed to have multihop functionality (I'm using the original, older version) You I'll have to check the noah.cc and check what the "routing" command located there in the "command()" function does, and figure out the proper way to call this functionality. > -----Original Message----- > From: Dario Borriello [mailto:dario_bodj at hotmail.com] > Sent: sexta-feira, 9 de Dezembro de 2005 16:26 > To: pedro.estrela at gmail.com; ns-users at isi.edu > Subject: RE: [ns] Problem with protocol NOAH for static multihop > > I read at the site http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/ > that Noah supports multihop routing and i apply the example code to my > simulation according to the necessity of only 1 comunication between the > first node of the line and the last. > > but the source node (the first of the line) fails to send all packets to > the > last node of the line because it don't known the route for the > destination... > > Unfortunately even this new code don't work > > for {set j 0} {$j < $num_hop } {incr j} { > set cmd "[$hop_($j) set ragent_] routing 1" > if {$j==($num_hop-1)} { > set hop $j > } else { > set hop [expr $j + 1] > } > set cmd "$cmd $num_hop-1 $hop" > eval $cmd > } > > I hope that you can give me another advice. > Thanks > > >From: "Pedro Vale Estrela" > >Reply-To: > >To: "'Dario Borriello'" , > >Subject: RE: [ns] Problem with protocol NOAH for static multihop > >Date: Fri, 9 Dec 2005 12:43:52 -0000 > > > > > >Looks a good starting point, but: > > > >a) I think NOAH doesn't support multihop routing; its only a way of > moving > >the packets to/from Mobile nodes / basestations. > >For that your need to change C++ noah.cc > > > >b) give examples of the TCL commands this code generates; > >c) where is the "routing" command? Its not in NOAH. Is it inherited? If > >yes, > >is it considered in NOAH? I think not. > > > >d) use DDD to debug what happens in the first packet transmission. > > > >Pedro Vale Estrela > >http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 > > > > > > > > > > > > > -----Original Message----- > > > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On > >Behalf > > > Of Dario Borriello > > > Sent: sexta-feira, 9 de Dezembro de 2005 11:00 > > > To: ns-users at ISI.EDU > > > Subject: [ns] Problem with protocol NOAH for static multihop > > > > > > > > > Hi, > > > > > > I'm using the protocol Noah to simulate a wireless scenario composed > by > >a > > > singol line of nodes (called "hop_(i)" ) and other nodes that are not > > > involved in the static routing... > > > The total number of nodes of the topology is $val(nn) = #hop_(i) + > >#nodes > > > > > > I uses the following code to implement the multihop routing between > the > > > nodes "hop_(i)" without involved the others nodes: > > > > > > #Noah static multihop > > > for {set j 0} {$j < $num_hop } {incr j} { > > > set cmd "[$hop_($j) set ragent_] routing $num_hop" > > > for {set to 0} {$to < $num_hop} {incr to} { > > > if {$to < $j} { > > set hop [expr $j - 1] > > > } elseif {$to > $j} { > > set hop [expr $j + 1] > > > } else { > > > set hop $j > > > } > > > set cmd "$cmd $to $hop" > > > } > > > eval $cmd > > > } > > > > > > where $num_hop is the number of $hop_(i) and i uses it instead of > >$val(nn) > > > > > > Unfortunately the simulation fails due to the following error : > > > " no route known" > > > > > > Can someone explain me why?? > > > > > > Thanks, > > > > > > Dario > > > > > > _________________________________________________________________ > > > Scarica gratuitamente MSN Toolbar! http://toolbar.msn.it/ > > > > > > _________________________________________________________________ > Personalizza MSN Messenger con sfondi e fotografie! > http://www.ilovemessenger.msn.it/ From boonkean at tm.net.my Sat Dec 10 01:15:20 2005 From: boonkean at tm.net.my (yap) Date: Sat, 10 Dec 2005 17:15:20 +0800 Subject: [ns] Mobiwan Problem Message-ID: <20051210091542.CBAA8D0132CE@bar11.tm.net.my> Hi,everyone, I had installed ns-2.1b6 successfully, but after i typed "make mobiwan" to install it, I got the following error as shown below.., can any mobiwan experts here give me some advice? Thank you very much.. The screen output is shown below: APP=mobiwan ; export APP ; gmake target gmake[1]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' mkdir: cannot create directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work': File exists mkdir: cannot create directory `gen': File exists gmake[1]: [subdirs] Error 1 (ignored) rm: cannot remove `/root/NS-Work/MobiWan/distrib-mobiwan/.work/.newobj': No such file or directory gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src and /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6 gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src/tcl and /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6/tcl gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src/tcl/lib and /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6/tcl/lib gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Including local tcl-lib **** Building Makefile rm: cannot remove `Makefile': No such file or directory rm: cannot remove `config.status': No such file or directory Create Configure file for ns-2.1b6 using prefix ---------------------------------------------------------------------------- -- Working directory is /root/NS-Work/MobiWan/distrib-mobiwan/.work Configuration of ns-2.1b6 Using prefix ---------------------------------------------------------------------------- -- creating cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that c++ can handle -O2... yes checking for tcl.h... -I/usr/include checking for libtcl8.0... -L/usr/lib -ltcl checking for init.tcl... /usr/lib/tcl d is checking for tclsh8.0.4... no checking for tclsh8.0... no checking for tclsh... /usr/bin/tclsh checking for tk.h... -I/usr/include checking for libtk8.0... -L/usr/lib -ltk checking for tk.tcl... no configure: error: Installation of tk seems incomplete. Please correct the problem or re-run with --with-tk=no. ns-2.1b6 configuration failed! Exiting ... gmake[1]: [/root/NS-Work/MobiWan/distrib-mobiwan/.work/Makefile] Error 1 (ignored) ***************************** Building mobiwan gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work' gmake[2]: *** No targets specified and no makefile found. Stop. gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work' gmake[1]: *** [target] Error 2 gmake[1]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' gmake: *** [mobiwan] Error 2 From f.kolovos at gmail.com Sat Dec 10 01:42:39 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Sat, 10 Dec 2005 11:42:39 +0200 Subject: [ns] Please Help! Problem on installation ns-allinone- 2.28 In-Reply-To: <005001c5fcc1$8c9a5760$172914ac@Estrela> References: <2071E84D92C11B49BE067B63C1CCC30A4884A7@ntb-5ito-exc01.egat.local> <005001c5fcc1$8c9a5760$172914ac@Estrela> Message-ID: <8372803c0512100142r29c32df5h93351a33dddf9e08@mail.gmail.com> What kind of gcc compiler do you use? For ns-2.28 you might have a problem with gcc-3.4 >From your mail, since you issue ./install, you're using NS-Allinone 2.28, not plain NS-2.28. Did you check the NS-Allinone 2.28 bug fixes ? There is one that may cause build failing of your code. Also, you can always build it from the pieces, installing NS-2.29. I have Debian 3.1 and it runs smoothly (but I think that a change in OS might be out of the question for you right now :-) ). Hope that helped -Fk > -----Original Message----- > > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On > Behalf > > Of Ekularn Dhavarudha > > Sent: quinta-feira, 8 de Dezembro de 2005 8:23 > > To: ns-users at ISI.EDU > > Subject: [ns] Please Help! Problem on installation ns-allinone- 2.28 > > Importance: High > > > > Dear all, > I use linux Redhat8.0. When I use the cmd "./install" and > "./configure". I came up with many errors. > How should I solve this problem. Please help. > Thanks in advance. > Best regards, > Ekularn Dhavarudha > Ekularn.d at egat.co.th > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr Web: http://ermhs.tripod.com ---------------------------------------------- From lboukantar at yahoo.fr Sat Dec 10 03:04:55 2005 From: lboukantar at yahoo.fr (boukantar lynda) Date: Sat, 10 Dec 2005 12:04:55 +0100 (CET) Subject: [ns] how to configure disconnection duration in mobility scenario In-Reply-To: <200512101057.jBAAvCf22383@gamma.isi.edu> Message-ID: <20051210110455.57463.qmail@web26909.mail.ukl.yahoo.com> hello I want to simulate disconnetion time in mobility senario, How to do? thanks ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com From mohrehkesh at gmail.com Sat Dec 10 03:29:06 2005 From: mohrehkesh at gmail.com (shahram mohrehkesh) Date: Sat, 10 Dec 2005 14:59:06 +0330 Subject: [ns] speed of a mobile node Message-ID: <3fb281ef0512100329p7f6223b6o96f0a8c3bc6f22a5@mail.gmail.com> Dear all, I want to know the speed of a mobile node when in its routing protocol such as AODV. I know that in "MobileNode" class, the "speed()" member method is defined to access a node speed. But, I don't know exactly how should I call it. I have included #include , but I could not access to the ""speed" method. what should I do more? Regards,Shahram Mohrehkesh From vincent.nauwelaers at student.kuleuven.ac.be Sat Dec 10 03:30:30 2005 From: vincent.nauwelaers at student.kuleuven.ac.be (Vincent Nauwelaers) Date: Sat, 10 Dec 2005 12:30:30 +0100 Subject: [ns] LAN : one node part of two different LANs Message-ID: <002401c5fd7d$208343e0$a836000a@ronny> I'm attempting to create the following simple topology, while using hierarchical addressing : LAN 1 ("0.0.0") ---------- NODE ---------- LAN 2 ("0.1.0") The node in the middle can be seen as a Router/Switch in real life. But in ns, as far as I am aware, you can only give one address to a node. Because if you attempt to join node ("0.1.1") to LAN2 this will be fine, but ("0.0.1") will refuse, giving the next error message : Segmentation Fault (core dumped) So how do you solve this ? Can anyone help me, or tell me this is impossible ? I think the solution might be found in "Node instproc add-neighbor{}". Thank you very much for the trouble !! Sincerely, -- Vincent ( KULeuven, Belgium ) From f.kolovos at gmail.com Sat Dec 10 03:32:30 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Sat, 10 Dec 2005 13:32:30 +0200 Subject: [ns] Please Help! Problem on installation ns-allinone- 2.28 In-Reply-To: <8372803c0512100136o71d9399dn29389704f16f348e@mail.gmail.com> References: <2071E84D92C11B49BE067B63C1CCC30A4884A7@ntb-5ito-exc01.egat.local> <005001c5fcc1$8c9a5760$172914ac@Estrela> <8372803c0512100136o71d9399dn29389704f16f348e@mail.gmail.com> Message-ID: <8372803c0512100332w39d499a7u8ea207c841ca95ee@mail.gmail.com> What kind of gcc compiler do you use? For ns-2.28 you might have a problem with gcc-3.4 >From your mail, since you issue ./install, you're using NS-Allinone 2.28, not plain NS-2.28. Did you check the NS-Allinone 2.28 bug fixes ? There is one that may cause build failing of your code. Also, you can always build it from the pieces, installing NS-2.29. I have Debian 3.1 and it runs smoothly (but I think that a change in OS might be out of the question for you right now :-) ). Hope that helped -Fk > > > Dear all, > I use linux Redhat8.0. When I use the cmd "./install" and > "./configure". I came up with many errors. > How should I solve this problem. Please help. > Thanks in advance. > Best regards, > Ekularn Dhavarudha > Ekularn.d at egat.co.th -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr Web: http://ermhs.tripod.com ---------------------------------------------- From vincent.nauwelaers at student.kuleuven.ac.be Sat Dec 10 04:11:57 2005 From: vincent.nauwelaers at student.kuleuven.ac.be (Vincent Nauwelaers) Date: Sat, 10 Dec 2005 13:11:57 +0100 Subject: [ns] LAN : positioning in NAM Message-ID: <001301c5fd82$ea8381f0$a836000a@ronny> Has anyone ever tried this topology (see my last question) LAN ---------- NODE ---------- LAN 2 I used the command "Simulator instproc newLan" to create both lans. When looking at this topology in NAM, the 2 lans are positioned one on top of the other. This is very confusing to look at. How can I position a lan in nam ? Is there something like "duplex-link-op" for layout ? Why is there sometimes a "re-layout" button in NAM and sometimes not, in my case NOT ? Thank you very much for your time!! Sincerely, -- Vincent ( KULeuven, Belgium ) From chuahn_2 at hotmail.com Sat Dec 10 04:37:27 2005 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Sat, 10 Dec 2005 12:37:27 +0000 Subject: [ns] Anyone successfully used $em unit byte of Errormodel Message-ID: Hi, I want to set a lossy link with byte as the unit, I use the commands below. However, the trace data showed all packets were dropped at the link. Anyone please help. set em [new ErrorModel] $em unit byte $em set rate_ 0.05 $em drop-target [new Agent/Null] set lossylink_ [$ns link $node(150) $node(151)] $lossylink_ install-error $em Thank you Chua Hung Nung _________________________________________________________________ The new MSN Search Toolbar now includes Desktop search! http://toolbar.msn.co.uk/ From lboukantar at yahoo.fr Sat Dec 10 04:57:53 2005 From: lboukantar at yahoo.fr (boukantar lynda) Date: Sat, 10 Dec 2005 13:57:53 +0100 (CET) Subject: [ns] speed of a mobile node Message-ID: <20051210125753.88231.qmail@web26914.mail.ukl.yahoo.com> allo; you can configure mobile speed in mobility scenario. see this page; this tutoriel will help you to do it: http://www.isi.edu/nsnam/ns/tutorial/nsscript7.html ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez cette version sur http://fr.messenger.yahoo.com From ziedbt at yahoo.fr Sat Dec 10 05:33:01 2005 From: ziedbt at yahoo.fr (Zied Ben terdayet) Date: Sat, 10 Dec 2005 14:33:01 +0100 (CET) Subject: [ns] ns problem : code omitted Message-ID: <20051210133301.22963.qmail@web26815.mail.ukl.yahoo.com> Hi evreyone i everyone I have problem on using ns 2.26 after installing installing ns But after recompilation when I try to run ns i get the following error and ns quits ns: [code omitted because of length] : invalid command name "}" while executing "}" --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez le ici ! From ziedbt at yahoo.fr Sat Dec 10 05:33:18 2005 From: ziedbt at yahoo.fr (Zied Ben terdayet) Date: Sat, 10 Dec 2005 14:33:18 +0100 (CET) Subject: [ns] ns problem : code omitted Message-ID: <20051210133318.77802.qmail@web26801.mail.ukl.yahoo.com> Hi evreyone i everyone I have problem on using ns 2.26 after installing installing ns But after recompilation when I try to run ns i get the following error and ns quits ns: [code omitted because of length] : invalid command name "}" while executing "}" thanks --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez le ici ! From chuahn_2 at hotmail.com Sat Dec 10 06:36:06 2005 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Sat, 10 Dec 2005 14:36:06 +0000 Subject: [ns] Anyone able to use "$em unit byte" of Errormodel Message-ID: Hi, I want to set a lossy link with byte as the unit, I use the commands below. However, the trace data showed all packets were dropped at the link. Anyone please help. set em [new ErrorModel] $em unit byte $em set rate_ 0.05 $em drop-target [new Agent/Null] set lossylink_ [$ns link $node(150) $node(151)] $lossylink_ install-error $em Thank you Chua Hung Nung _________________________________________________________________ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.uk From olivier.berho at gmail.com Sat Dec 10 08:57:38 2005 From: olivier.berho at gmail.com (Olivier Berho) Date: Sat, 10 Dec 2005 17:57:38 +0100 Subject: [ns] [NS] Problem to access the neighbors list of mobile nodes Message-ID: <439B0902.6070403@gmail.com> Hello, I am working on a project about communication between mobile nodes and I am nooby in tcl and NS2. My first part is about sending packets to each nearly neighbors of a node. I know that there is a variable "neighbors_" which contains the neighbors of each node but I cannot access these informations. First because I have some problems to access the list using tcl and second because The list seems to be empty when the topology of my network is created. I am using the AODV routing protocol which should update itself the variable of the neighbors but I don't know how access it. Thanks a lot for help, Olivier. P.S : I am a French student,and I apologize for the mistakes in my English. From iqbalqr at aston.ac.uk Sat Dec 10 10:11:15 2005 From: iqbalqr at aston.ac.uk (Qasim Raza Iqbal) Date: Sat, 10 Dec 2005 18:11:15 -0000 (GMT) Subject: [ns] Please let me know if that is how it should be Message-ID: <49749.81.208.163.46.1134238275.squirrel@81.208.163.46> Hi everyone I hope you could help.I have installed NS-allinone-2.29 on suse 10. When I run the validate-wireless test in the ns-2.29 directory I get the following message, " I have only included the begining of the test. Is this what it is supposed to do, or do I need to install something. Please help thanks , Qasim Running test lan-broadcast: ../../ns test-suite-lan.tcl lan-broadcast QUIET warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. Test output agrees with reference output Running test lan-abstract: ../../ns test-suite-lan.tcl lan-abstract QUIET warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. Test output agrees with reference output Running test lan-mactrace: ../../ns test-suite-lan.tcl lan-mactrace QUIET warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. Test output agrees with reference output All test output agrees with reference output. *** ./test-all-wireless-lan OBSOLETE TEST. From iqbalqr at aston.ac.uk Sat Dec 10 10:23:09 2005 From: iqbalqr at aston.ac.uk (Qasim Raza Iqbal) Date: Sat, 10 Dec 2005 18:23:09 -0000 (GMT) Subject: [ns] [Fwd: Please let me know if that is how it should be] Message-ID: <52657.81.208.163.46.1134238989.squirrel@81.208.163.46> ---------------------------- Original Message ---------------------------- Subject: Please let me know if that is how it should be From: "Qasim Raza Iqbal" Date: Sat, December 10, 2005 6:11 pm To: ns-users at isi.edu -------------------------------------------------------------------------- Hi everyone I hope you could help.I have installed NS-allinone-2.29 on suse 10. When I run the validate-wireless test in the ns-2.29 directory I get the following message, " I have only included the begining of the test. Is this what it is supposed to do, or do I need to install something. Please help thanks , Qasim Running test lan-broadcast: ../../ns test-suite-lan.tcl lan-broadcast QUIET warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. Test output agrees with reference output Running test lan-abstract: ../../ns test-suite-lan.tcl lan-abstract QUIET warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. Test output agrees with reference output Running test lan-mactrace: ../../ns test-suite-lan.tcl lan-mactrace QUIET warning: no class variable LanRouter::debug_ see tcl-object.tcl in tclcl for info about this warning. Test output agrees with reference output All test output agrees with reference output. *** ./test-all-wireless-lan OBSOLETE TEST. From vaibhave at cs.utah.edu Sat Dec 10 13:29:41 2005 From: vaibhave at cs.utah.edu (Vaibhave Agarwal) Date: Sat, 10 Dec 2005 14:29:41 -0700 (MST) Subject: [ns] Please let me know if that is how it should be In-Reply-To: <49749.81.208.163.46.1134238275.squirrel@81.208.163.46> References: <49749.81.208.163.46.1134238275.squirrel@81.208.163.46> Message-ID: If you will see tcl-object.tcl in tclcl you will see this # In ns, this error happens for several possible reasons: # # 1. you bound a variable in C but didn't initialize it in tcl # To fix: put initialization code in tcl/lib/ns-default.tcl # (and make sure that this code ends up compiled into your # version of ns!) # This is the most common reason. Just see that LanRouter::debug_ is defined in the ns-default.tcl. -vaibhave On Sat, 10 Dec 2005, Qasim Raza Iqbal wrote: > > Hi everyone > > I hope you could help.I have installed NS-allinone-2.29 on suse 10. When I > run the validate-wireless test in the ns-2.29 directory I get the > following message, " I have only included the begining of the test. Is > this what it is supposed to do, or do I need to install something. > > Please help thanks , Qasim > > Running test lan-broadcast: > ../../ns test-suite-lan.tcl lan-broadcast QUIET > warning: no class variable LanRouter::debug_ > > see tcl-object.tcl in tclcl for info about this warning. > > Test output agrees with reference output > Running test lan-abstract: > ../../ns test-suite-lan.tcl lan-abstract QUIET > warning: no class variable LanRouter::debug_ > > see tcl-object.tcl in tclcl for info about this warning. > > Test output agrees with reference output > Running test lan-mactrace: > ../../ns test-suite-lan.tcl lan-mactrace QUIET > warning: no class variable LanRouter::debug_ > > see tcl-object.tcl in tclcl for info about this warning. > > Test output agrees with reference output > All test output agrees with reference output. > *** ./test-all-wireless-lan > OBSOLETE TEST. > > > > > From jondeandres at terra.es Sat Dec 10 17:32:45 2005 From: jondeandres at terra.es (Jon de =?iso-8859-1?q?Andr=E9s?=) Date: Sun, 11 Dec 2005 02:32:45 +0100 Subject: [ns] [NS] Problem to access the neighbors list of mobile nodes In-Reply-To: <439B0902.6070403@gmail.com> References: <439B0902.6070403@gmail.com> Message-ID: <200512110232.45198.jondeandres@terra.es> Hi Oliver, by default, in AODV, no Hello messages are sent, so it's probably that the neighbour list is not refresh. You can enable the use of Hello messages uncoment the MAC_LAYER, or something like that, define. I'm using AODV in some project and I can acces to the nb_list withouth problems. If you still cannot acces to it, send us details about your code or something. Bye. El S?bado 10 Diciembre 2005 17:57, Olivier Berho escribi?: > here is a variable "neigh -- Jon de Andr?s Fr?as GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From boonkean at tm.net.my Sat Dec 10 23:31:09 2005 From: boonkean at tm.net.my (yap) Date: Sun, 11 Dec 2005 15:31:09 +0800 Subject: [ns] Please Help!!! Urgently Need Help, Mobiwan Installation, Anyone Please Help me!! Message-ID: <20051211073118.B8438D013CF5@bar11.tm.net.my> Hello, Its been a long time since I started to install mobiwan, but I have failed, and I hope the ns-2 users here who had installed mobiwan before can help me, I just want to install, please help me,!! I had installed ns-2.1b6 successfully, but after i typed "make mobiwan" to install it, I got the following error as shown below.., can anybody here give me some advice? Thank you very much.. The screen output is shown below: APP=mobiwan ; export APP ; gmake target gmake[1]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' mkdir: cannot create directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work': File exists mkdir: cannot create directory `gen': File exists gmake[1]: [subdirs] Error 1 (ignored) rm: cannot remove `/root/NS-Work/MobiWan/distrib-mobiwan/.work/.newobj': No such file or directory gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src and /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6 gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src/tcl and /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6/tcl gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src/tcl/lib and /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6/tcl/lib gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' **** Including local tcl-lib **** Building Makefile rm: cannot remove `Makefile': No such file or directory rm: cannot remove `config.status': No such file or directory Create Configure file for ns-2.1b6 using prefix ---------------------------------------------------------------------------- -- Working directory is /root/NS-Work/MobiWan/distrib-mobiwan/.work Configuration of ns-2.1b6 Using prefix ---------------------------------------------------------------------------- -- creating cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that c++ can handle -O2... yes checking for tcl.h... -I/usr/include checking for libtcl8.0... -L/usr/lib -ltcl checking for init.tcl... /usr/lib/tcl d is checking for tclsh8.0.4... no checking for tclsh8.0... no checking for tclsh... /usr/bin/tclsh checking for tk.h... -I/usr/include checking for libtk8.0... -L/usr/lib -ltk checking for tk.tcl... no configure: error: Installation of tk seems incomplete. Please correct the problem or re-run with --with-tk=no. ns-2.1b6 configuration failed! Exiting ... gmake[1]: [/root/NS-Work/MobiWan/distrib-mobiwan/.work/Makefile] Error 1 (ignored) ***************************** Building mobiwan gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work' gmake[2]: *** No targets specified and no makefile found. Stop. gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work' gmake[1]: *** [target] Error 2 gmake[1]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' gmake: *** [mobiwan] Error 2 From mohrehkesh at gmail.com Sun Dec 11 03:14:55 2005 From: mohrehkesh at gmail.com (shahram mohrehkesh) Date: Sun, 11 Dec 2005 14:44:55 +0330 Subject: [ns] Mobile node SNR Message-ID: <3fb281ef0512110314g7d4db4c0o88267a8c51030cd@mail.gmail.com> Dear All, First, I want to have the (signal to noise ratio) SNR of a mobile node. Is it calculated in NS? How it could be acceseed? Second, what is the default value for the antenna range of mobile node? (I think it is 250 meter, but I did not find it). Where is it set? And, Where could I set it to another value? Regards,Shahram Mohrehkesh From f.kolovos at gmail.com Sun Dec 11 04:57:59 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Sun, 11 Dec 2005 14:57:59 +0200 Subject: [ns] ns problem : code omitted In-Reply-To: <20051210133318.77802.qmail@web26801.mail.ukl.yahoo.com> References: <20051210133318.77802.qmail@web26801.mail.ukl.yahoo.com> Message-ID: <8372803c0512110457i1fafe634pae969c6932565049@mail.gmail.com> You say after recompilation... Did you make any changes to the main ns files? So, that every time you try to execute ns with its command it terminates with a runtime error? Why did you need to recompile? What changes did you make, or in any case, did you tamper with the ns files? -Fk On 12/10/05, Zied Ben terdayet wrote: > > > Hi evreyone > > i everyone > I have problem on using ns 2.26 > after installing installing ns > > But after recompilation when I try to run ns i get the following error and > ns quits > ns: > [code omitted because of length] > : invalid command name "}" > while executing > "}" > > thanks > > > > > --------------------------------- > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > T?l?chargez le ici ! > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr Web: http://ermhs.tripod.com ---------------------------------------------- From dario_bodj at hotmail.com Sun Dec 11 10:49:40 2005 From: dario_bodj at hotmail.com (Dario Borriello) Date: Sun, 11 Dec 2005 18:49:40 +0000 Subject: [ns] How to create a new mac protocol Message-ID: Hi, Can someone explain me the general steps to create a new mac protocol? Or,on the other hand,where i can found the correct documentation? Thanks, Dario _________________________________________________________________ Comunica in tempo reale http://messenger.msn.com/beta From Bob at Blakely.com Sun Dec 11 16:18:40 2005 From: Bob at Blakely.com (Bob Blakely) Date: Sun, 11 Dec 2005 16:18:40 -0800 Subject: [ns] How Do I Unsubscribe? Message-ID: <200512120019.jBC0J1W23121@vapor.isi.edu> How Do I Unsubscribe? TKS. Regards, Bob... From max.unger at n2nsoft.com Mon Dec 12 01:46:05 2005 From: max.unger at n2nsoft.com (max) Date: Mon, 12 Dec 2005 10:46:05 +0100 Subject: [ns] srtt_ problem ! Message-ID: <439D46DD.9020609@n2nsoft.com> I have a problem using srtt_ parameter in ns2. Here is a fragment of my tcl code : /proc srtt {} { global NUM_TCP tcp total_srtt_sim srtt_flow set ns [Simulator instance] set time 1.0 set now [$ns now] set total_srtt_inst 0 # srtt computation : for { set i 0 } { $i < $NUM_TCP } { incr i } { set smoothrtt [$tcp($i) set srtt_] #puts "srtt inst : $smoothrtt" set srtt_flow($i) [expr $srtt_flow($i) + $smoothrtt] set total_srtt_inst [expr $total_srtt_inst + $smoothrtt] } set total_srtt_sim [expr $total_srtt_sim + $total_srtt_inst] #puts "total srtt : $total_srtt_sim" $ns at [expr $now+$time] "srtt" }/ I set the delays over links while creating it to 200ms, so with the delay in the buffer, it should be at least 200ms. when i compute rtt using srtt_ as above, the mean is LESS than 200ms. How is this possible ? Thanks a lot for any help. Max From f-wpu at msrchina.research.microsoft.com Mon Dec 12 02:54:47 2005 From: f-wpu at msrchina.research.microsoft.com (Wei Pu) Date: Mon, 12 Dec 2005 18:54:47 +0800 Subject: [ns] why can't I add new class Message-ID: <0C8CC26C1E124B43A27450F828035F3699D12C@msrcnx.msrchina.research.microsoft.com> Hi, all: When I executing the example otcl linkage in "ns by example", I found the following errors: $ns ex-linkage.tcl Invalid command name "Agent/MyAgentOtcl" While executing "Agent/MyAgentOtcl create _o3" Invoked from within ... I have recompiled ns, but the problem still exists. Somebody had asked this problem before. There is not a good solution. Could anyone help me? Thanks. /pu wei From max.unger at n2nsoft.com Mon Dec 12 03:00:58 2005 From: max.unger at n2nsoft.com (max) Date: Mon, 12 Dec 2005 12:00:58 +0100 Subject: [ns] srtt_ problem ! In-Reply-To: <439D46DD.9020609@n2nsoft.com> References: <439D46DD.9020609@n2nsoft.com> Message-ID: <439D586A.5000606@n2nsoft.com> the problem was that the tcpTick_ was not set by default at 0.1 it's strange, i had to set it manually, and put a granularity of 0.01 for my srtt_ computation. max max wrote: >I have a problem using srtt_ parameter in ns2. >Here is a fragment of my tcl code : > >/proc srtt {} { > global NUM_TCP tcp total_srtt_sim srtt_flow > set ns [Simulator instance] > set time 1.0 > set now [$ns now] > set total_srtt_inst 0 ># srtt computation : > for { set i 0 } { $i < $NUM_TCP } { incr i } { > set smoothrtt [$tcp($i) set srtt_] > #puts "srtt inst : $smoothrtt" > set srtt_flow($i) [expr $srtt_flow($i) + $smoothrtt] > set total_srtt_inst [expr $total_srtt_inst + $smoothrtt] > > } > set total_srtt_sim [expr $total_srtt_sim + $total_srtt_inst] > #puts "total srtt : $total_srtt_sim" > > $ns at [expr $now+$time] "srtt" >}/ > > > >I set the delays over links while creating it to 200ms, so with the >delay in the buffer, it should be at least 200ms. when i compute rtt >using srtt_ as above, the mean is LESS than 200ms. How is this possible ? > >Thanks a lot for any help. > >Max > > > > -- Max UNGER ========= N2NSOFT, 11 blvd Sebastopol 75001 Paris Tel : +33 1 4432 2966 http://www.n2nsoft.com From lixin at bupt.edu.cn Mon Dec 12 05:58:41 2005 From: lixin at bupt.edu.cn (=?gb2312?B?wO7qvw==?=) Date: Mon, 12 Dec 2005 21:58:41 +0800 Subject: [ns] why packets are dropped without reason? Message-ID: <200512121400.jBCE0Jc3028426@noya.bupt.edu.cn> hi, everyone. when i ran the 802.11 based woreless scenarios i found there were always lots of dropped packets with no reason in the trace file. the number of such item sometimes was tremendous. does anyone know why this happens? i have also tried the following scenarios: 3 node A, B and C lie linearly with distance 100 meters and transmission range 250 meters. A and C send packets to B at the same time. B recieved both packets and soon drop them without any reason. no collision occurs. it is so strange! i do not know whether this is a bug of NS-2. does anyone know why this happens? ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡lixin at bupt.edu.cn ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-12-12 From e.huard at ibelgique.com Mon Dec 12 06:02:33 2005 From: e.huard at ibelgique.com (=?iso-8859-1?Q?Elise Huard?=) Date: Mon, 12 Dec 2005 15:02:33 +0100 (CET) Subject: [ns] =?iso-8859-1?q?change_routing_tables_from_application?= Message-ID: <20051212140233.2C38147966@ifrance00.ifrance.com> Hello, i'm working on the following problem : i'd like to simulate an application (middleware for mobile add-hoc networks) on ns, and this application changes the routing table dynamically. Is it possible to modify the routing table 'from above' from the application ? Does an agent have access to the routing tables of the nodes ? Thanks, Elise ________________________________________________________________________ iBELGIQUE, exprimez-vous ! http://web.ibelgique.com/ From jondeandres at terra.es Mon Dec 12 07:41:43 2005 From: jondeandres at terra.es (Jon de =?iso-8859-1?q?Andr=E9s?=) Date: Mon, 12 Dec 2005 16:41:43 +0100 Subject: [ns] change routing tables from application In-Reply-To: <20051212140233.2C38147966@ifrance00.ifrance.com> References: <20051212140233.2C38147966@ifrance00.ifrance.com> Message-ID: <200512121641.43902.jondeandres@terra.es> All the sent packets by a node are piped to the routing agent, wich is the layer that decides if it's neccesary discovering a route or not, or only route the packet by the correct node. So, the app agent should be able to comunicate with the routing agent using messages. In the other hand, you can execute routing agent Tcl commands from the app agent. El Lunes 12 Diciembre 2005 15:02, Elise Huard escribi?: > Hello, > > i'm working on the following problem : i'd like to simulate an application > (middleware for mobile add-hoc networks) on ns, and this application > changes the routing table dynamically. Is it possible to modify the > routing table 'from above' from the application ? Does an agent have > access to the routing tables of the nodes ? Thanks, > > Elise > > > > ________________________________________________________________________ > iBELGIQUE, exprimez-vous ! > http://web.ibelgique.com/ -- Jon de Andr?s Fr?as GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From kamal.nsuser at gmail.com Mon Dec 12 08:40:44 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Mon, 12 Dec 2005 17:40:44 +0100 Subject: [ns] URGENT: help..any CBQ example...??? Message-ID: Does anyone know where to find an example showing how to use CBQ? I trird in ns2 but could n't anything except test/test-suite-cbq... which is rather detailed and complex to understand. thanks. -- Kamal From alcoverp at gmail.com Mon Dec 12 10:31:16 2005 From: alcoverp at gmail.com (Pedro Alcover) Date: Mon, 12 Dec 2005 16:31:16 -0200 Subject: [ns] declaration os matrix error Message-ID: <34c93c750512121031j2a38b80y@mail.gmail.com> I've got an error like that: can't read "n(0,0)": no such element in array while executing "$grade duplex-link $n($i,$j) $n($i,expr $j+1) 2Mb 10ms DropTail " ("for" body line 3) invoked from within "for {set i 0} {$i<=3} {incr i} { for {set j 0} {$j<=2} {incr j} { $grade duplex-link $n($i,$j) $n($i,expr $j+1) 2Mb 10ms DropTail While executing: for {set i 0} {$i<=3} {incr i} { for {set j 0} {$j<=3} {incr j} { set n(4,4) [$grade node] } } for {set i 0} {$i<=3} {incr i} { for {set j 0} {$j<=2} {incr j} { $grade duplex-link $n($i,$j) $n($i,expr $j+1) 2Mb 10ms DropTail $grade duples-link-op $n($i,$j) $n($i,expr $j+1) orient right } } for {set i 0} {$i<=3} {incr i} { for {set j 0} {$j<=2} {incr j} { $grade duplex-link $n($j,$i) $n(expr $j+1,$i) 2Mb 10ms DropTail $grade duplex-link-op $n($j,$i) $n(expr $j+1,$i) orient down } } I'm a beginner. Please help me!!! Greetings From dav_carb at hotmail.com Mon Dec 12 11:19:18 2005 From: dav_carb at hotmail.com (David Carballat Vazquez) Date: Mon, 12 Dec 2005 20:19:18 +0100 Subject: [ns] A question about TCP Vegas... Message-ID: I have a question about simulations af TCP Vegas under ns: What kind of Sink I must use with TCP Vegas?Normal Sink (like Reno and Tahoe)? Thanks a lot for any help you can give me.. See You _________________________________________________________________ Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos From shahronak_m at yahoo.com Mon Dec 12 13:28:03 2005 From: shahronak_m at yahoo.com (ronak shah) Date: Mon, 12 Dec 2005 13:28:03 -0800 (PST) Subject: [ns] tcl-debugger installation problem Message-ID: <20051212212803.3352.qmail@web30813.mail.mud.yahoo.com> Dear All: This is Ronak Shah. I am working on Master Thesis at California State University, Los Angeles. I am working on Link State algorithm. I have tried really hard to install tcl-debugger to debug ns-2. I am using Red Hat Linux 9.0 and ns-2.29. I have succeffully install ns2 and also enable the debug information in ns2. I have place tcl-debug parrallel to ns-2.29. (1) cd ns2.29 (2) ./configure --enable-debug --with-tcldebug (3) make clean (4) make (5) make install (6) Add breakpoint "debug 1" into example3.tcl script file. Here is the output. [root at localhost examples]# gdb ns GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (gdb) set args example3.tcl (gdb) run Starting program: /usr/local/bin/ns example3.tcl invalid command name "debug 1" while executing ""debug 1"" (file "example3.tcl" line 58) Program exited with code 01. Please let me know what i have to do so that I can debug Link State to understand it throughly? Please see attached document for above results. Thank you very much. Sincerely, Ronak Shah --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping From d0kond01 at louisville.edu Mon Dec 12 14:53:17 2005 From: d0kond01 at louisville.edu (Kondapalli,Deepthi) Date: Mon, 12 Dec 2005 17:53:17 -0500 Subject: [ns] Transmission range Message-ID: <1134427997.4866f824d0kond01@netmail.louisville.edu> Can someone tell me how to set the transmission range for AODV in ns2.28? Thanks From kamal.nsuser at gmail.com Mon Dec 12 15:12:09 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Tue, 13 Dec 2005 00:12:09 +0100 Subject: [ns] why packets are dropped without reason? In-Reply-To: <200512121400.jBCE0Jc3028426@noya.bupt.edu.cn> References: <200512121400.jBCE0Jc3028426@noya.bupt.edu.cn> Message-ID: packets are never dropped without reason. could you give ur output? Also check the range and topology could be interferece due to hidden node..?? good luck On 12/12/05, Àîê¿ wrote: > > > > > hi, everyone. when i ran the 802.11 based woreless scenarios i found there > were always lots of dropped packets with no reason in the trace file. the > number of such item sometimes was tremendous. does anyone know why this > happens? > > i have also tried the following scenarios: 3 node A, B and C lie linearly > with distance 100 meters and transmission range 250 meters. A and C send > packets to B at the same time. B recieved both packets and soon drop them > without any reason. no collision occurs. it is so strange! i do not know > whether this is a bug of NS-2. > > does anyone know why this happens? > > lixin at bupt.edu.cn > 2005-12-12 > > > > -- Kamal From FabianWolff at gmx.de Mon Dec 12 17:36:40 2005 From: FabianWolff at gmx.de (Fabian Wolff) Date: Tue, 13 Dec 2005 02:36:40 +0100 (MET) Subject: [ns] routing table References: <1134427997.4866f824d0kond01@netmail.louisville.edu> Message-ID: <10885.1134437800@www16.gmx.net> hi, I am trying to get information of the routing table of each node (neighbor_ or (MobileNode) link_), but I always just get an empty list. Actually I am using DSDV, and even if I set the position of the nodes manually very close to each other or at the same place, these lists are still empty. Below a part of my otcl script set opt(nn) 5 ;# number of mobilenodes set opt(rp) DSDV ;# routing protocol $ns_ node-config -adhocRouting $opt(rp) \ ........ set god_ [create-god $opt(nn)] for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion $node_($i) radius 200 $god_ new_node $node_($i) } $god_ on $node_(0) set X_ 380.0 $node_(0) set Y_ 390.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 390.0 $node_(1) set Y_ 385.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 400.0 $node_(2) set Y_ 400.0 $node_(2) set Z_ 0.0 The only information I can get about the network is via god, so the current position of each node. if ((num_nodes = God::instance()->getNum_nodes()) && (list_mobile_nodes = God::instance()->getList())) { But God tells me that every node in the network is reachable (even if I set position far away ((0,0) and (500,500)) and tells me, that the next hop to the destination will be done via node 0. if (God::instance()->IsReachable(agent_->addr(), best_node->address())){ God::instance()->NextHop(best_node->address(),4) I get for every node the message that there is no neighbor available. Here is a part of my code. MobileNode *best_node; best_node = list_mobile_nodes[i]; //best_node is MobileNode != NULL and I am able to get position information here if (best_node != NULL) { if (best_node->neighbor_list_ == NULL) std::cout << "**************There is no neighbor available for node "<< best_node->address() <<"**************\n"; ...... Please can anybody help and tell me what I am doing wrong, therefore I can get access to the routing table of each node, because I need to know which nodes are currently available in which partitioned network. Thank you very much for help. Fabian -- Lieber ein faules Genie als ein flei?iger Idiot Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie From zh.wei at sjtu.edu.cn Mon Dec 12 18:08:25 2005 From: zh.wei at sjtu.edu.cn (zhang wei) Date: Tue, 13 Dec 2005 10:08:25 +0800 Subject: [ns] tcl-debugger installation problem References: <20051212212803.3352.qmail@web30813.mail.mud.yahoo.com> Message-ID: <003701c5ff8a$1a1d8880$15bfc1da@commonor77d01c> Hi, I recently installed tcl-debug2.0 on my system. Maybe you should process as following: 1. install tcl , tk, and tcl-debug individually a)./configure, when you install tk and tcl-debug run ./configure --with-tcl= b) make distclean c) make d) make install 2. in the directory of ns-2.29 a)make clean b)./configure --enable-debug --with-tcl= --with-tk= --with-tcldebug= c)make I think uou need not type make install here. If you suffer any problem, refer to the README or configure files in the corresponding directories. Good Luck Wei Zhang ----- Original Message ----- From: "ronak shah" To: Sent: Tuesday, December 13, 2005 5:28 AM Subject: [ns] tcl-debugger installation problem > > Dear All: > > This is Ronak Shah. I am working on Master Thesis at California State University, Los Angeles. I am working on Link State algorithm. I have tried really hard to install tcl-debugger to debug ns-2. I am using Red Hat Linux 9.0 and ns-2.29. > > I have succeffully install ns2 and also enable the debug information in ns2. > > I have place tcl-debug parrallel to ns-2.29. > (1) cd ns2.29 > (2) ./configure --enable-debug --with-tcldebug > (3) make clean > (4) make > (5) make install > (6) Add breakpoint "debug 1" into example3.tcl script file. > > Here is the output. > > [root at localhost examples]# gdb ns > GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) > Copyright 2003 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-redhat-linux-gnu"... > (gdb) set args example3.tcl > (gdb) run > Starting program: /usr/local/bin/ns example3.tcl > invalid command name "debug 1" > while executing > ""debug 1"" > (file "example3.tcl" line 58) > > Program exited with code 01. > > Please let me know what i have to do so that I can debug Link State to understand it throughly? > > Please see attached document for above results. > > Thank you very much. > > Sincerely, > Ronak Shah > > > > > > --------------------------------- > Yahoo! Shopping > Find Great Deals on Holiday Gifts at Yahoo! Shopping > From zh.wei at sjtu.edu.cn Mon Dec 12 21:05:22 2005 From: zh.wei at sjtu.edu.cn (zh.wei@sjtu.edu.cn) Date: Tue, 13 Dec 2005 13:05:22 +0800 Subject: [ns] senario and traffic generation Message-ID: <20051213130522.8zi61ddyqlwgko4k@webmail1.sjtu.edu.cn> Dear all, I use cbrgen.tcl to generate the traffic senario of wireless LAN simulation. I found that if I set the number of mobile nodes to N, the node number would be from 1 to N. I prefer a number sequence from 0 to N-1. I looked the source code of cbrgen.tcl. I did understand the usage of random variable x. It is compared with 50 and 75, why? I set two type of traffic cbr and tcp, and applied both senario in wireless1.tcl (in ns-tutorial/examples). When I use cbr generation file, the simulation is ok. while when I use tcp generation file, the segment fault message displayed. Would you like to explain me the reason? Can I use cbrgen.tcl to generate simulation senario for ad hoc or wireless sensor network simulation? and use setdest to generate the topology structure for these simulation? Thanks! Wei From sandoche2k at gmail.com Tue Dec 13 05:17:28 2005 From: sandoche2k at gmail.com (sandoche balakrichenan) Date: Tue, 13 Dec 2005 14:17:28 +0100 Subject: [ns] Set address to ns node Message-ID: Hello to all Is it possible to set an address to a node in NS. I did try like this "$n0 set addr_ 10". But when i print the address i get the address of the node as "0" and not "10". I know that the node address at the beginning is "0" and for every node created it increases sequentially. But is it possible to override this address with a new address that we set. Cordialement, Sandoche BALAKRICHENAN. From marco.bonetti at gmail.com Tue Dec 13 06:07:07 2005 From: marco.bonetti at gmail.com (Marco Bonetti) Date: Tue, 13 Dec 2005 15:07:07 +0100 Subject: [ns] Referencing TCL variables from C++ code. Message-ID: <18479b20512130607x6fe59de8h6d770f23aa044435@mail.gmail.com> Hello everybody, I'm writing some applications on udp and tcp and I need to reference TCL variables from C++ code, right now I'm using something like this: tcl.evalf("[Simulator instance] connect $agent(%d) $agent(%d)", myaddr_, dstaddr_); it works but, as you can see, it's a bittle ugly as it forces to write tcl script files using a specific syntax, so, is there a way to reference agents, nodes and other applications as it is done with [Simulator instance]? Thanks a lot for any help ciao -- Marco Bonetti Slackintosh Linux Project Developer http://slackintosh.workaround.ch/ My GnuPG key id: 86A91047 From guy.israeli at gmail.com Tue Dec 13 06:32:31 2005 From: guy.israeli at gmail.com (Guy Israeli) Date: Tue, 13 Dec 2005 16:32:31 +0200 Subject: [ns] ns-2.1b7 installation errors Message-ID: <9cd959f70512130632v2bdd275dpb37ecbfbc7245bce@mail.gmail.com> Hi I am trying to install ns-2.1b7 (allinone), but I get the following error: AVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/guy/Documents/ns-allinone-2.1b7/tclcl-1.0b10 -I/home/guy/Documents/ns-allinone-2.1b7/otcl-1.0a6 -I/home/guy/Documents/ns-allinone-2.1b7/tk8.3.2/generic -I/home/guy/Documents/ns-allinone-2.1b7/tcl8.3.2/generic -o ttl.o ttl.cc c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/guy/Documents/ns-allinone-2.1b7/tclcl-1.0b10 -I/home/guy/Documents/ns-allinone-2.1b7/otcl-1.0a6 -I/home/guy/Documents/ns-allinone-2.1b7/tk8.3.2/generic -I/home/guy/Documents/ns-allinone-2.1b7/tcl8.3.2/generic -o trace.o trace.cc In file included from trace.cc:44: tfrc.h:116: error: friend declaration requires class-key, i.e. `friend class TfrcSendTimer' tfrc.h:117: error: friend declaration requires class-key, i.e. `friend class TfrcNoFeedbackTimer' make: *** [trace.o] Error 1 Ns make failed! See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.htmlfor problems I've tried applying the patches from the site (where applicable) but the error keeps returning Can anyone help me and diagnose this problem, and how to fix it? Thank you very much, Guy From dunigan at cs.utk.edu Tue Dec 13 07:37:25 2005 From: dunigan at cs.utk.edu (Tom Dunigan) Date: Tue, 13 Dec 2005 10:37:25 -0500 Subject: [ns] [bug] tcp-fack.cc violates flow control window Message-ID: <20051213103725.A8574@cs.utk.edu> [Bug Report] ----------------------------- Category: Other Package: ns 2.28 OS: linux Environment Variables: LD_LIBRARY_PATH=ns-allinone-2.28/otcl-1.9:/home/dunigan/linux/ns-allinone-2.28/ +lib TCL_LIBRARY=ns-allinone-2.28/tcl8.4.5/library TK_LIBRARY=ns-allinone-2.28/tcl8.4.5/library ----------------------------- Description: Description of Problem: with multiple drops in a window, Agent/TCP/Fack sends new data that exceeds the +receiver's (or wnd_ or window_) buffer How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) every time Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. 2. 3. Actual Results: (describe what the application did after performing the above steps) sends more new segments than receiver is ready to accept Expected Results: (describe what the application should have done, were the bug not present) should not send new segments (see tcp-sack3.cc tests) Additional Information: (the following infomation is helpful to debug: 1. simulation script, detailed output files, packet trace 2. patch file if you modify some source code 3. a backtrace from gdb if you get a segment fault If they are big files, PLEASE put them in your web space and include the URL here.) I have the script at http://www.cs.utk.edu/~dunigan/fack3.tcl and a plot of the offending behavior at http://www.cs.utk.edu/~dunigan/fack3.png here is some trace info i added to tcp-fack.cc thd recover 0 highest 98 wnd 20 tmit 118 thd recover 0 highest 99 wnd 20 tmit 119 thd recover 1 highest 99 wnd 20 tmit 120 thd recover 1 highest 99 wnd 20 tmit 121 thd recover 1 highest 99 wnd 20 tmit 122 thd recover 1 highest 99 wnd 20 tmit 123 thd recover 1 highest 99 wnd 20 tmit 124 thd recover 1 highest 99 wnd 20 tmit 125 thd recover 1 highest 99 wnd 20 tmit 126 thd recover 1 highest 101 wnd 20 tmit 127 thd recover 1 highest 103 wnd 20 tmit 128 thd recover 1 highest 119 wnd 20 tmit 129 thd recover 0 highest 120 wnd 20 tmit 130 tcp-fack.cc is sending data where snd.nxt is > highest_ack + wnd the tcp-sack1.cc code has an if test to prevent this happening if (xmit_seqno == -1) { if ((!fastrecov_ && t_seqno_<=highest_ack_+win)|| (fastrecov_ && t_seqno_<=highest_ack_+int(wnd_))) { i argue that tcp-fack.cc needs such a test tom dunigan dunigan at cs.utk.edu -- Tom Dunigan dunigan at cs.utk.edu http://www.cs.utk.edu/~dunigan From sy197610 at 163.com Mon Dec 12 17:34:16 2005 From: sy197610 at 163.com (shen) Date: Tue, 13 Dec 2005 09:34:16 +0800 Subject: [ns] Urgent:help me slove the plot circle in ns2! Message-ID: hi, Can someone explain me how I plot a circle in ns2,for example x^2+y^2=1? Thanks very much! Yang shen From f.kolovos at gmail.com Tue Dec 13 08:40:49 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Tue, 13 Dec 2005 18:40:49 +0200 Subject: [ns] A question about TCP Vegas... Message-ID: <8372803c0512130840q7c3cf437r4fd04e7f9977cb3e@mail.gmail.com> Since TCP Vegas builds on top of TCP Reno's congestion and retransmission mechanisms and since TCPSink Object is valid as a receiver for TCP Reno and TCP Tahoe (NS-2 Manual page 97), I think it could be "safe" to use a TCPSink Object as a receiver for TCP/Vegas. I've tried it in one simple simulation and it worked fine. It did not return any errors nor I noticed something odd with the results Hope to have helped... -Fk On 12/12/05, ns-users-request at isi.edu wrote: > > ---------- Forwarded message ---------- > From: "David Carballat Vazquez" > To: ns-users at ISI.EDU > Date: Mon, 12 Dec 2005 20:19:18 +0100 > Subject: [ns] A question about TCP Vegas... > I have a question about simulations af TCP Vegas under ns: > What kind of Sink I must use with TCP Vegas?Normal Sink (like Reno and > Tahoe)? > > Thanks a lot for any help you can give me.. > See You > > > -Fk -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr Web: http://ermhs.tripod.com ---------------------------------------------- From Hailun.Tan at nicta.com.au Tue Dec 13 19:21:21 2005 From: Hailun.Tan at nicta.com.au (Hailun Tan) Date: Wed, 14 Dec 2005 14:21:21 +1100 (EST) Subject: [ns] Referencing TCL variables from C++ code. In-Reply-To: <18479b20512130607x6fe59de8h6d770f23aa044435@mail.gmail.com> References: <18479b20512130607x6fe59de8h6d770f23aa044435@mail.gmail.com> Message-ID: <4169.203.143.168.90.1134530481.squirrel@mailbag.nicta.com.au> Use the bind method in C++ to bind the variables between C++ and TCL. > > Hello everybody, > I'm writing some applications on udp and tcp and I need to reference > TCL variables from C++ code, right now I'm using something like this: > > tcl.evalf("[Simulator instance] connect $agent(%d) $agent(%d)", > myaddr_, dstaddr_); > > it works but, as you can see, it's a bittle ugly as it forces to write > tcl script files using a specific syntax, so, is there a way to > reference agents, nodes and other applications as it is done with > [Simulator instance]? > > Thanks a lot for any help > ciao > > -- > Marco Bonetti > Slackintosh Linux Project Developer > http://slackintosh.workaround.ch/ > > My GnuPG key id: 86A91047 > > ---------------------------- Hailun Tan tel:02 8374 5456 email:Hailun.Tan at nicta.com.au Research Assistant ATP,Sydney -------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. From utente_ns2 at hotmail.com Wed Dec 14 02:03:13 2005 From: utente_ns2 at hotmail.com (Utente ns2) Date: Wed, 14 Dec 2005 11:03:13 +0100 Subject: [ns] HELP - URGENT: monitoring queues in wireless nodes Message-ID: Hi everybody. I am working with multihop wireless networks and I need to monitor the length of the queue in each node. I wrote an awk script (below, i.e. for monitoring the queue in node _2_): BEGIN {ingresso=0;uscita=0;coda=0} { if ($1=="r"&&$3=="_2_"&&$4="RTR"&&$6="180"&&$7=="cbr") {ingresso=ingresso+1} if ($1=="f"&&$3=="_2_"&&$4="RTR"&&$6="180"&&$7=="cbr") {uscita=uscita+1;coda=ingresso-uscita;print "ingresso = ",ingresso, "uscita =", uscita, "coda = ",coda} } END {print "stop"} but I am afraid I should change the approach. In fact, although at a certain point of the simulation I experience an increasement of the average delay, the output of the scripts - applied to each node - always give me the same result: 0. Can anybody suggest me a different approach to achieve my goal? Thank you in advance... _________________________________________________________________ Charla con tus amigos en l?nea mediante MSN Messenger: http://messenger.latam.msn.com/ From utente_ns2 at hotmail.com Wed Dec 14 02:27:42 2005 From: utente_ns2 at hotmail.com (Utente ns2) Date: Wed, 14 Dec 2005 11:27:42 +0100 Subject: [ns] HELP - URGENT: monitoring queues in wireless nodes - script in English Message-ID: Sorry, I send again my mail ... I cut and pasted the original awk code without translating the names of the variables. I am working with multihop wireless networks and I need to monitor the length of the queue in each node. I wrote an awk script (below, i.e. for monitoring the queue in node _2_): BEGIN {pk_entering_node=0;pk_leaving_node=0;pk_in_queue=0} { if ($1=="r"&&$3=="_2_"&&$4="RTR"&&$6="180"&&$7=="cbr") {pk_entering_node=pk_entering_node+1} if ($1=="f"&&$3=="_2_"&&$4="RTR"&&$6="180"&&$7=="cbr") {pk_leaving_node=pk_leaving_node+1;pk_in_queue=pk_entering_node-pk_leaving_node;print "ingresso = ",ingresso, "pk_in_queue =", uscita, "pk_in_queue = ",pk_in_queue} } END {print "stop"} but I am afraid I should change the approach. In fact, although at a certain point of the simulation I experience an increasement of the average delay, the output of the scripts - applied to each node - always give me the same result: 0. Can anybody suggest me a different approach to achieve my goal? Thank you in advance... _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ From kamal.nsuser at gmail.com Wed Dec 14 02:33:01 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Wed, 14 Dec 2005 11:33:01 +0100 Subject: [ns] to generate VBR traffic ?? Message-ID: Hi Can anyone advice on how exactly to create VBR traffic in ns2 and use it in a script?? Thank you. -- Kamal From rafael at gta.ufrj.br Wed Dec 14 04:36:49 2005 From: rafael at gta.ufrj.br (rafael@gta.ufrj.br) Date: Wed, 14 Dec 2005 10:36:49 -0200 (BRST) Subject: [ns] Acessing AODV from MAC (cross-layer) In-Reply-To: References: Message-ID: <46727.161.148.39.127.1134563809.squirrel@recreio.gta.ufrj.br> Hi, I am trying to acess AODV variables from within the MAC code. I am working on a MAC protocol and need the route lenght for optmization. Any help? Regards, Rafael. From sayenko at cc.jyu.fi Wed Dec 14 05:16:16 2005 From: sayenko at cc.jyu.fi (Alexander Sayenko) Date: Wed, 14 Dec 2005 15:16:16 +0200 Subject: [ns] New version of WFQ Message-ID: <003101c600b0$90a0cfe0$62a9ea82@it.jyu.fi> Dear NS users I am pleased to announce a new version of WFQ. Basically, it provides the same functionality comparing to the previous version, but now it can applied easily to several versions NS-2. It has been tested with v2.27, v2.28, and v2.29. http://www.cc.jyu.fi/~sayenko/src/wfq-1.2.4.tar.gz Sincerely, Sayenko Alexander Assistant Telecommunication laboratory, MIT department University of Jyvaskyla, Finland From dahis_michael at hotmail.com Wed Dec 14 05:45:12 2005 From: dahis_michael at hotmail.com (michael dahis) Date: Wed, 14 Dec 2005 13:45:12 +0000 Subject: [ns] help edcf implementation Message-ID: Hello to everybody!!! I am looking for edcf implementation code ,as i understood there is such implementation in Dr. Qiang site but i could not find it ,can anybody give me the dirct link? Best regards to everyone Michael _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From pedro.estrela at gmail.com Wed Dec 14 05:58:07 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 13:58:07 -0000 Subject: [ns] ns-2.1b7 installation errors In-Reply-To: <9cd959f70512130632v2bdd275dpb37ecbfbc7245bce@mail.gmail.com> Message-ID: <001e01c600b6$6932c2a0$172914ac@Estrela> Try gcc-2.95 Check http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html#_Toc121320480 PS: on a related note, this idea also works backwards; If you are trying to compile old code for old versions of NS (NS-1b6 and friends), You'll get a much better chance if you use earlier versions of GCC, like gcc-2.95. > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Guy Israeli > Sent: ter?a-feira, 13 de Dezembro de 2005 14:33 > To: ns-users at ISI.EDU > Subject: [ns] ns-2.1b7 installation errors > > > Hi > > I am trying to install ns-2.1b7 (allinone), but I get the following error: > > AVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H > -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H > -DHAVE_CONFIG_H -I. > -I/home/guy/Documents/ns-allinone-2.1b7/tclcl-1.0b10 > -I/home/guy/Documents/ns-allinone-2.1b7/otcl-1.0a6 > -I/home/guy/Documents/ns-allinone-2.1b7/tk8.3.2/generic > -I/home/guy/Documents/ns-allinone-2.1b7/tcl8.3.2/generic -o ttl.o > ttl.cc > c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG > -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 > -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 > -DHAVE_TCL_H -DHAVE_CONFIG_H -I. > -I/home/guy/Documents/ns-allinone-2.1b7/tclcl-1.0b10 > -I/home/guy/Documents/ns-allinone-2.1b7/otcl-1.0a6 > -I/home/guy/Documents/ns-allinone-2.1b7/tk8.3.2/generic > -I/home/guy/Documents/ns-allinone-2.1b7/tcl8.3.2/generic -o trace.o > trace.cc > In file included from trace.cc:44: > tfrc.h:116: error: friend declaration requires class-key, i.e. `friend > class > TfrcSendTimer' > tfrc.h:117: error: friend declaration requires class-key, i.e. `friend > class > TfrcNoFeedbackTimer' > make: *** [trace.o] Error 1 > Ns make failed! > See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html mash.cs.berkeley.edu/ns/ns-problems.html>for > problems > > I've tried applying the patches from the site (where applicable) but > the error keeps returning > > Can anyone help me and diagnose this problem, and how to fix it? > > Thank you very much, > > Guy From pedro.estrela at gmail.com Wed Dec 14 06:21:50 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:21:50 -0000 Subject: [ns] Set address to ns node In-Reply-To: Message-ID: <002501c600b9$b97266f0$172914ac@Estrela> http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_haddr_tips.html Using hierarchical addressing, one sets the address of the nodes at the node creation > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of sandoche balakrichenan > Sent: ter?a-feira, 13 de Dezembro de 2005 13:17 > To: ns-users at ISI.EDU > Subject: [ns] Set address to ns node > > > Hello to all > Is it possible to set an address to a node in NS. I did try like this > "$n0 set addr_ 10". But when i print the address i get the address of the > node as "0" and not "10". I know that the node address at the beginning is > "0" and for every node created it increases sequentially. But is it > possible > to override this address with a new address that we set. > > Cordialement, > Sandoche BALAKRICHENAN. From pedro.estrela at gmail.com Wed Dec 14 06:31:34 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:31:34 -0000 Subject: [ns] ns-2 routing (how to upgrade a module for a old version of NS2 to lastest NS2) In-Reply-To: Message-ID: <002c01c600bb$1571ed30$172914ac@Estrela> I've done steps like that previously, on the CIMS micro-mobility suite. Thus I suggest: a) start using the module on the proper ns2 version until you can use all parts of it b) make modifications on C++ and TCL parts to learn the inside of the code; c) learn to use diff and patch d) make a diff between "original old ns verion" and "old ns version with that module" e) try to apply that patch to ns-2.29, and solve the inconsistencies that appear warning: this is a fairly amount of work! http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_beginners.html > -----Original Message----- > From: Aicha Said(ACES) [mailto:Aicha.Said at student.shu.ac.uk] > Sent: ter?a-feira, 13 de Dezembro de 2005 12:04 > To: pedro.estrela at inesc.pt > Subject: ns-2 routing > > Hello, > > I am currently doing some research in QoS routing in ad-hoc network. Using > ns-2 > I would like to test the performance of a multipath routing protocol and > extend > it to provide QoS. I have come across AOMDV , however that protocol was > implemented as part as an old version of ns-2. I have been trying to build > AOMDV in ns-2.27, but I have some difficulties, did you ever come across > it and > have you got any tips for me on how to install it successfully. > > Regards > Aicha From pedro.estrela at gmail.com Wed Dec 14 06:40:59 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:40:59 -0000 Subject: [ns] declaration os matrix error In-Reply-To: <34c93c750512121031j2a38b80y@mail.gmail.com> Message-ID: <003d01c600bc$666a9330$172914ac@Estrela> Arrays are very tricky in tcl. Try " $grade duplex-link $n($i,$j) $n($i,[expr $j+1]) 2Mb 10ms" (note the added [] on the exprs) > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Pedro Alcover > Sent: segunda-feira, 12 de Dezembro de 2005 18:31 > To: ns; ns-users-request at ISI.EDU > Subject: [ns] declaration os matrix error > > > I've got an error like that: > > can't read "n(0,0)": no such element in array > while executing > "$grade duplex-link $n($i,$j) $n($i,expr $j+1) 2Mb 10ms DropTail " > ("for" body line 3) > invoked from within > "for {set i 0} {$i<=3} {incr i} { > for {set j 0} {$j<=2} {incr j} { > $grade duplex-link $n($i,$j) $n($i,expr $j+1) 2Mb 10ms > DropTail > > While executing: > > for {set i 0} {$i<=3} {incr i} { > for {set j 0} {$j<=3} {incr j} { > set n(4,4) [$grade node] > } > } > > for {set i 0} {$i<=3} {incr i} { > for {set j 0} {$j<=2} {incr j} { > $grade duplex-link $n($i,$j) $n($i,expr $j+1) 2Mb 10ms > DropTail > $grade duples-link-op $n($i,$j) $n($i,expr $j+1) orient > right > } > } > > > for {set i 0} {$i<=3} {incr i} { > for {set j 0} {$j<=2} {incr j} { > $grade duplex-link $n($j,$i) $n(expr $j+1,$i) 2Mb 10ms > DropTail > $grade duplex-link-op $n($j,$i) $n(expr $j+1,$i) orient > down > } > } > > I'm a beginner. Please help me!!! > Greetings From pedro.estrela at gmail.com Wed Dec 14 06:43:46 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:43:46 -0000 Subject: [ns] ns problem : code omitted In-Reply-To: <8372803c0512110457i1fafe634pae969c6932565049@mail.gmail.com> Message-ID: <004701c600bc$c9d0e500$172914ac@Estrela> a) Check also this http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html#_Toc121320478 b) try to revert back the modifications you did > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Filippos Kolovos > Sent: domingo, 11 de Dezembro de 2005 12:58 > To: ns-users at ISI.EDU > Subject: Re: [ns] ns problem : code omitted > > > You say after recompilation... > Did you make any changes to the main ns files? > So, that every time you try to execute ns with its > command it terminates with a runtime error? > > Why did you need to recompile? What changes did you make, > or in any case, did you tamper with the ns files? > > > -Fk > > > On 12/10/05, Zied Ben terdayet wrote: > > > > > > Hi evreyone > > > > i everyone > > I have problem on using ns 2.26 > > after installing installing ns > > > > But after recompilation when I try to run ns i get the following error > and > > ns quits > > ns: > > [code omitted because of length] > > : invalid command name "}" > > while executing > > "}" > > > > thanks > > > > > > > > > > --------------------------------- > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! > Messenger > > T?l?chargez le ici ! > > > > > > -- > Filippos N Kolovos > > Software Systems Analyst & Engineer > M.Sc. (Eng.) in Data Communications > > E-Mail: f.kolovos at ieee.org, > f.kolovos at computer.org, > filippos at uom.gr > Web: http://ermhs.tripod.com > ---------------------------------------------- From pedro.estrela at gmail.com Wed Dec 14 06:42:49 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:42:49 -0000 Subject: [ns] How to create a new mac protocol In-Reply-To: Message-ID: <004601c600bc$a7c6c0b0$172914ac@Estrela> http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_beginners.html#_Toc122185718 5: The above, but modifying the NS2 simulator yourself. When you are doing cutting edge research, that nobody did before, the only solution is to model your own additions to NS2. The first thing you should do is to locate a similar module that does something that you want to do also. perhaps another ad-hoc routing protocol, another QoS queue discipline, etc etc. Then you should clone the code, and change ALL names of variables, TCL bindings (*), C++ classes, packet headers, etc etc, to YOUR component name. When you do this you'll get a working component that you can start to SLOWLY modify to make YOUR algorithms and operations. If you do this way, instead of simply start coding from scratch, you'll be able to work with a working component, step by step, that you are able to validate every day. The alternative way, you spend be months, or even more, before the component worked for the first time. > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Dario Borriello > Sent: domingo, 11 de Dezembro de 2005 18:50 > To: ns-users at ISI.EDU > Subject: [ns] How to create a new mac protocol > > > Hi, > > Can someone explain me the general steps to create a new mac protocol? > Or,on the other hand,where i can found the correct documentation? > > Thanks, > > Dario > > _________________________________________________________________ > Comunica in tempo reale http://messenger.msn.com/beta From pedro.estrela at gmail.com Wed Dec 14 06:45:06 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:45:06 -0000 Subject: [ns] Please Help!!! Urgently Need Help, Mobiwan Installation, Anyone Please Help me!! In-Reply-To: <20051211073118.B8438D013CF5@bar11.tm.net.my> Message-ID: <004801c600bc$f960f350$172914ac@Estrela> ./configure --help ./configure --with-tk="your path to tk" > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of yap > Sent: domingo, 11 de Dezembro de 2005 7:31 > To: ns-users at ISI.EDU > Subject: [ns] Please Help!!! Urgently Need Help, Mobiwan Installation, > Anyone Please Help me!! > > > Hello, > > Its been a long time since I started to install mobiwan, but I have > failed, > and I hope the ns-2 users here who had installed mobiwan before can help > me, > I just want to install, please help me,!! > > I had installed ns-2.1b6 successfully, but after i typed "make > mobiwan" to install it, I got the following error as shown below.., can > anybody here give me some advice? > > Thank you very much.. > > > The screen output is shown below: > > > APP=mobiwan ; export APP ; gmake target > gmake[1]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' > mkdir: cannot create directory > `/root/NS-Work/MobiWan/distrib-mobiwan/.work': File exists > mkdir: cannot create directory `gen': File exists > gmake[1]: [subdirs] Error 1 (ignored) > rm: cannot remove `/root/NS-Work/MobiWan/distrib-mobiwan/.work/.newobj': > No > such file or directory > gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' > **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src and > /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6 > gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' > gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' > **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src/tcl and > /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6/tcl > gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' > gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan' > **** Merging /root/NS-Work/MobiWan/distrib-mobiwan/src/tcl/lib and > /root/NS-Work/NS-2.1b6/ns-allinone-2.1b6/ns-2.1b6/tcl/lib > gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' > **** Including local tcl-lib > **** Building Makefile > rm: cannot remove `Makefile': No such file or directory > rm: cannot remove `config.status': No such file or directory Create > Configure file for ns-2.1b6 using prefix > -------------------------------------------------------------------------- > -- > -- > Working directory is /root/NS-Work/MobiWan/distrib-mobiwan/.work > Configuration of ns-2.1b6 > Using prefix > -------------------------------------------------------------------------- > -- > -- > creating cache ./config.cache > No .configure file found in current directory Continuing with default > options... > checking host system type... i686-pc-linux-gnu checking target system > type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu > checking for gcc... gcc checking whether the C compiler (gcc ) works... > yes > checking whether the C compiler (gcc ) is a cross-compiler... no checking > whether we are using GNU C... yes checking whether gcc accepts -g... yes > checking for c++... c++ checking whether the C++ compiler (c++ ) works... > yes checking whether the C++ compiler (c++ ) is a cross-compiler... no > checking whether we are using GNU C++... yes checking whether c++ accepts > -g... yes checking how to run the C preprocessor... gcc -E checking for > ANSI > C header files... yes checking for string.h... yes checking for main in > -lXbsd... no checking for socket in -lsocket... no checking for > gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no > checking for getnodebyname in -ldnet_stub... no checking that c++ can > handle > -O2... yes checking for tcl.h... -I/usr/include checking for libtcl8.0... > -L/usr/lib -ltcl checking for init.tcl... /usr/lib/tcl d is checking for > tclsh8.0.4... no checking for tclsh8.0... no checking for tclsh... > /usr/bin/tclsh checking for tk.h... -I/usr/include checking for > libtk8.0... > -L/usr/lib -ltk checking for tk.tcl... no > configure: error: Installation of tk seems incomplete. > Please correct the problem or re-run with --with-tk=no. > ns-2.1b6 configuration failed! Exiting ... > gmake[1]: [/root/NS-Work/MobiWan/distrib-mobiwan/.work/Makefile] Error 1 > (ignored) > > > > > ***************************** > Building mobiwan > > gmake[2]: Entering directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work' > gmake[2]: *** No targets specified and no makefile found. Stop. > gmake[2]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan/.work' > gmake[1]: *** [target] Error 2 > gmake[1]: Leaving directory `/root/NS-Work/MobiWan/distrib-mobiwan' > gmake: *** [mobiwan] Error 2 > > > > > > From pedro.estrela at gmail.com Wed Dec 14 06:01:31 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:01:31 -0000 Subject: [ns] how we can generate one common tr file for different protocols for wireless networks In-Reply-To: <20051214122319.14876.qmail@web8604.mail.in.yahoo.com> Message-ID: <002101c600b6$e316fbe0$172914ac@Estrela> a) Manually run the simulation and give different names to the .tr files b) process the .tr files with AWK or tracegraph (with scrtiping ) and collect the results per protocol c) compare the protocols in a common graph (use "xgraph proto1 proto2 ...", or gnuplot with "multiplot") d) later, make all these steps automatic > -----Original Message----- > From: tracegraph at yahoogroups.com [mailto:tracegraph at yahoogroups.com] On > Behalf Of Gururaj Rao > Sent: quarta-feira, 14 de Dezembro de 2005 12:23 > To: tracegraph at yahoogroups.com > Subject: [tracegraph] (unknown) > > Please help me, how we can generate one common tr file > for different protocols for wireless networks. > > With regards, > > > Gururaj Rao > > > > __________________________________________________________ > Yahoo! India Matrimony: Find your partner now. Go to > http://yahoo.shaadi.com > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> > Most low income homes are not online. Make a difference this holiday > season! > http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/b7EolB/TM > --------------------------------------------------------------------~-> > > > Yahoo! Groups Links > > <*> To visit your group on the web, go to: > http://groups.yahoo.com/group/tracegraph/ > > <*> To unsubscribe from this group, send an email to: > tracegraph-unsubscribe at yahoogroups.com > > <*> Your use of Yahoo! Groups is subject to: > http://docs.yahoo.com/info/terms/ > > From pedro.estrela at gmail.com Wed Dec 14 06:06:50 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 14 Dec 2005 14:06:50 -0000 Subject: [ns] Urgent:help me slove the plot circle in ns2! In-Reply-To: Message-ID: <002401c600b7$a12c2d80$172914ac@Estrela> Hi You pretty much managed to cover almost all topics of this guide with your question :-) http://www.catb.org/~esr/faqs/smart-questions.html > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of shen > Sent: ter?a-feira, 13 de Dezembro de 2005 1:34 > To: ns-users???????? > Subject: [ns] Urgent:help me slove the plot circle in ns2! > From guy.israeli at gmail.com Wed Dec 14 11:32:27 2005 From: guy.israeli at gmail.com (Guy Israeli) Date: Wed, 14 Dec 2005 21:32:27 +0200 Subject: [ns] tclcl error in ns installation Message-ID: <9cd959f70512141132v5eec22a9xcc5f644d4cea1bf6@mail.gmail.com> Hi all, after trying several patchs this is what came up: c++ -o tcl2c++ tcl2c++.o c++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_3=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_3=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A6=1 -I. -I/home/guy/ns-allinone-2.1b7/otcl-1.0a6-I/home/guy/ns- allinone-2.1b7/tk8.3.2/generic -I/home/guy/ns-allinone-2.1b7/tcl8.3.2/generic -o Tcl.o Tcl.cc tclcl-mappings.h: In static member function 'static int TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)': tclcl-mappings.h:51: error: incomplete type 'Tcl' used in nested name specifier tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl' tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl' tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' make: *** [Tcl.o] Error 1 tclcl-1.0b10 make failed! Exiting ... See http://www.isi.edu/nsnam/ns/ns-problems.html for problems any ideas? using suse10, ns is allinone version 2.1b7 (not 2.1b7a) Thanks a lot, Guy From chris_schroth at gmx.de Wed Dec 14 13:27:24 2005 From: chris_schroth at gmx.de (christoph schroth) Date: Wed, 14 Dec 2005 22:27:24 +0100 (MET) Subject: [ns] How can I determine the node id from a queue Message-ID: <15382.1134595644@www51.gmx.net> Hi all, my problem is the following: I am conducting some adaptions within the Droptail-Queue-algorithm. Doe anyone know how to find out the id of the node the queue is attached to? Thanks a lot, Christoph -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie From ec04m001 at nitc.ac.in Wed Dec 14 21:44:30 2005 From: ec04m001 at nitc.ac.in (Tema Teresa Johnson) Date: Thu, 15 Dec 2005 11:14:30 +0530 (IST) Subject: [ns] Query regarding queuing delay and poisson patch Message-ID: <1504.210.212.228.103.1134625470.webmail@ebox.nitc.ac.in> Hello everyone, I want to find out the total delay of the packet frome the time it is generated to the time it is received correctly. We have an option to find the mac delay. But is there an option for fing the queuing delay? Can we find the time when the packet is generated? One more question.. I compiled poisson patch. I got some messages that some test results are not matching with the reference output. Will there be any ambiguity in the delay obtained in that case? Or is there any solution for that? Any help is appreciated.Thanks in advance.. Regards Teena. From Hailun.Tan at nicta.com.au Wed Dec 14 23:14:56 2005 From: Hailun.Tan at nicta.com.au (Hailun Tan) Date: Thu, 15 Dec 2005 18:14:56 +1100 (EST) Subject: [ns] Query regarding queuing delay and poisson patch In-Reply-To: <1504.210.212.228.103.1134625470.webmail@ebox.nitc.ac.in> References: <1504.210.212.228.103.1134625470.webmail@ebox.nitc.ac.in> Message-ID: <1314.203.143.168.216.1134630896.squirrel@mailbag.nicta.com.au> > > Hello everyone, > I want to find out the total delay of the packet frome the time > it is generated to the time it is received correctly. We have an > option to find the mac delay. But is there an option for fing > the queuing delay? Can we find the time when the packet is > generated? use grep to extract the necessary information from trace file....Usually when the packet is generated, it will be sent from the application layer: In the trace file, it would be something like: s time _nodeid_ AGT ....... I think "time" field is what you need!!! > One more question.. I compiled poisson patch. I got some > messages that some test results are not matching with the > reference output. Will there be any ambiguity in the delay > obtained in that case? Or is there any solution for that? > Any help is appreciated.Thanks in advance.. Sorry I don't know... > Regards > Teena. > > > > > > ---------------------------- Hailun Tan tel:02 8374 5456 email:Hailun.Tan at nicta.com.au Research Assistant ATP,Sydney -------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. From zalshaae at connect.carleton.ca Wed Dec 14 23:49:03 2005 From: zalshaae at connect.carleton.ca (Zuhair Alshaaer) Date: Thu, 15 Dec 2005 02:49:03 -0500 (EST) Subject: [ns] Wirelss AD HOC NAM Message-ID: <7710946.1134632943768.JavaMail.zalshaae@connect.carleton.ca> Hello everyone; when I tried to run TCl file for wireless ad hoc channel, I have thefollowing message: num_nodes is set 15 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading scenario file... Starting Simulation... SORTING LISTS ...DONE! running nam... I know that its running, but I'm looking to see the NAM file, also If Iwould like to use xgraph, if its possible ? I'm looking for help soon.Thank you very much for all. Best Regards;Zuhair From amol_pise2002 at yahoo.co.in Thu Dec 15 01:44:34 2005 From: amol_pise2002 at yahoo.co.in (amol pise) Date: Thu, 15 Dec 2005 01:44:34 -0800 (PST) Subject: [ns] [bug] problem with video trace file in ns2 Message-ID: <200512150944.jBF9iYR24456@www.isi.edu> [Bug Report] ----------------------------- Category: Run Time - Segmentation Fault Package: ns 2.1b8 OS: Linux-redhat 8 Environment Variables: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ns-allinon-2.28/ns-2.28.........:/usr/local/.... TCL_LIBRARY=/usr/local/.........../library TK_LIBRARY= ----------------------------- Description: Description of Problem: when I was trying to insert video trace in network (using Video-trace.tcl script).And after ns video-trace.tcl I got following type of error. Warning: No class variable Tracefile::debug tcl-object.tcl in tclcl for information about this Warning segmentation error. bad file size ns script file is given below video-trace.tcl : # video_trace.tcl set ns [new Simulator] $ns color 1 Blue set nf [open out.nam w] $ns namtrace-all $nf # define the trace format: Agent/UDP set nam_tracevar_ true Agent/UDP set tracevar_ true # generate the sending node: set send_node [$ns node] # generate the routers: set router_node_1 [$ns node] $router_node_1 shape "box" set router_node_2 [$ns node] $router_node_2 shape "box" # generate the receiving node: set recv_node [$ns node] # define the links between the nodes: $ns duplex-link $send_node $router_node_1 1Mb 10ms DropTail $ns duplex-link $router_node_1 $router_node_2 1Mb 10ms DropTail $ns duplex-link $router_node_2 $recv_node 1Mb 10ms DropTail # orientation of the links: $ns duplex-link-op $send_node $router_node_1 orient down $ns duplex-link-op $router_node_1 $router_node_2 orient right $ns duplex-link-op $router_node_2 $recv_node orient up $ns duplex-link-op $router_node_1 $router_node_2 queuePos 0.5 $ns duplex-link-op $router_node_2 $recv_node queuePos 0.5 # set the maximal queue lengths of the routers: $ns queue-limit $router_node_1 $router_node_2 10 42 $ns queue-limit $router_node_2 $recv_node 10 # define the source and the source model: set udp [new Agent/UDP] $udp set fid_ 1 $ns attach-agent $send_node $udp #$ns add-agent-trace $udp udp #$ns monitor-agent-trace $udp # define the destination: set snk [new Agent/Null] $snk set fid_ 1 $ns attach-agent $recv_node $snk $ns connect $udp $snk # generate the video trace file ("Verbose_Jurassic_64.dat" is only an example): set original_file_name Verbose_Jurassic_64.dat set trace_file_name video.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set last_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line if {[string length $current_line] == 0 || [string compare [string index $current_line 0] "#"] == 0} { continue } scan $current_line "%d%s%d" next_time type length set time [expr 1000*($next_time-$last_time)] set last_time $next_time puts -nonewline $trace_file_id [binary format "II" $time $length] } close $original_file_id close $trace_file_id # set the simulation end time: set end_sim_time [expr 1.0*$last_time/1000+0.001] # read the video trace file: set trace_file [new Tracefile] $trace_file filename $trace_file_name set video [new Application/Traffic/Trace] $video attach-agent $udp 43 $video attach-tracefile $trace_file # start the simulation: $ns at 0.0 { $send_node label "VIDEO-SERVER" $router_node_1 label "IP-ROUTER 1" $router_node_2 label "IP-ROUTER 2" $recv_node label "VIDEO-CLIENT" $video start } # stop the simulation: $ns at $end_sim_time { finish } proc finish {} { global ns nf $ns flush-trace close $nf exec nam out.nam & exit 0 } $ns run How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. 2. 3. Actual Results: (describe what the application did after performing the above steps) Expected Results: (describe what the application should have done, were the bug not present) Additional Information: (the following infomation is helpful to debug: 1. simulation script, detailed output files, packet trace 2. patch file if you modify some source code 3. a backtrace from gdb if you get a segment fault If they are big files, PLEASE put them in your web space and include the URL here.) From amol_pise2002 at yahoo.co.in Thu Dec 15 01:46:13 2005 From: amol_pise2002 at yahoo.co.in (amol pise) Date: Thu, 15 Dec 2005 01:46:13 -0800 (PST) Subject: [ns] problem with video trace file in ns2 Message-ID: <20051215094613.61655.qmail@web8205.mail.in.yahoo.com> hi sir, I am new user of ns, Using ns-2.28 on linux platform I found difficuly in ns2 simulation.Sir can u plz solve my problem? Sir, when I was trying to insert video trace in network (using following script). I got following type of error. Warning: No class variable Tracefile::debug tcl-object.tcl in tclcl for information about this warning segmentation error. bad file size I searched this error on internet as well as on ns user mailing list but still I didnt get solution. Sir ,plz try to understand my problem and solve , its very urgent and necessary for me without that I cant proceed forward. I am very much thankfull to you........... regards, amol pise, india ns script file is given below video-trace.tcl : # video_trace.tcl set ns [new Simulator] $ns color 1 Blue set nf [open out.nam w] $ns namtrace-all $nf # define the trace format: Agent/UDP set nam_tracevar_ true Agent/UDP set tracevar_ true # generate the sending node: set send_node [$ns node] # generate the routers: set router_node_1 [$ns node] $router_node_1 shape "box" set router_node_2 [$ns node] $router_node_2 shape "box" # generate the receiving node: set recv_node [$ns node] # define the links between the nodes: $ns duplex-link $send_node $router_node_1 1Mb 10ms DropTail $ns duplex-link $router_node_1 $router_node_2 1Mb 10ms DropTail $ns duplex-link $router_node_2 $recv_node 1Mb 10ms DropTail # orientation of the links: $ns duplex-link-op $send_node $router_node_1 orient down $ns duplex-link-op $router_node_1 $router_node_2 orient right $ns duplex-link-op $router_node_2 $recv_node orient up $ns duplex-link-op $router_node_1 $router_node_2 queuePos 0.5 $ns duplex-link-op $router_node_2 $recv_node queuePos 0.5 # set the maximal queue lengths of the routers: $ns queue-limit $router_node_1 $router_node_2 10 42 $ns queue-limit $router_node_2 $recv_node 10 # define the source and the source model: set udp [new Agent/UDP] $udp set fid_ 1 $ns attach-agent $send_node $udp #$ns add-agent-trace $udp udp #$ns monitor-agent-trace $udp # define the destination: set snk [new Agent/Null] $snk set fid_ 1 $ns attach-agent $recv_node $snk $ns connect $udp $snk # generate the video trace file ("Verbose_Jurassic_64.dat" is only an example): set original_file_name Verbose_Jurassic_64.dat set trace_file_name video.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set last_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line if {[string length $current_line] == 0 || [string compare [string index $current_line 0] "#"] == 0} { continue } scan $current_line "%d%s%d" next_time type length set time [expr 1000*($next_time-$last_time)] set last_time $next_time puts -nonewline $trace_file_id [binary format "II" $time $length] } close $original_file_id close $trace_file_id # set the simulation end time: set end_sim_time [expr 1.0*$last_time/1000+0.001] # read the video trace file: set trace_file [new Tracefile] $trace_file filename $trace_file_name set video [new Application/Traffic/Trace] $video attach-agent $udp 43 $video attach-tracefile $trace_file # start the simulation: $ns at 0.0 { $send_node label "VIDEO-SERVER" $router_node_1 label "IP-ROUTER 1" $router_node_2 label "IP-ROUTER 2" $recv_node label "VIDEO-CLIENT" $video start } # stop the simulation: $ns at $end_sim_time { finish } proc finish {} { global ns nf $ns flush-trace close $nf exec nam out.nam & exit 0 } $ns run --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping From amol_pise2002 at yahoo.co.in Thu Dec 15 02:08:08 2005 From: amol_pise2002 at yahoo.co.in (amol pise) Date: Thu, 15 Dec 2005 02:08:08 -0800 (PST) Subject: [ns] problem with video trace file in ns2 Message-ID: <20051215100808.79786.qmail@web8217.mail.in.yahoo.com> hi sir, I am new user of ns, Using ns-2.28 on linux platform I found difficuly in ns2 simulation.Sir can u plz solve my problem? Sir, when I was trying to insert video trace in network (using following script). I got following type of error. Warning: No class variable Tracefile::debug tcl-object.tcl in tclcl for information about this warning segmentation error. bad file size I searched this error on internet as well as on ns user mailing list but still I didnt get solution. Sir ,plz try to understand my problem and solve , its very urgent and necessary for me without that I cant proceed forward. I am very much thankfull to you........... regards, amol pise, india ns script file is given below video-trace.tcl : # video_trace.tcl set ns [new Simulator] $ns color 1 Blue set nf [open out.nam w] $ns namtrace-all $nf # define the trace format: Agent/UDP set nam_tracevar_ true Agent/UDP set tracevar_ true # generate the sending node: set send_node [$ns node] # generate the routers: set router_node_1 [$ns node] $router_node_1 shape "box" set router_node_2 [$ns node] $router_node_2 shape "box" # generate the receiving node: set recv_node [$ns node] # define the links between the nodes: $ns duplex-link $send_node $router_node_1 1Mb 10ms DropTail $ns duplex-link $router_node_1 $router_node_2 1Mb 10ms DropTail $ns duplex-link $router_node_2 $recv_node 1Mb 10ms DropTail # orientation of the links: $ns duplex-link-op $send_node $router_node_1 orient down $ns duplex-link-op $router_node_1 $router_node_2 orient right $ns duplex-link-op $router_node_2 $recv_node orient up $ns duplex-link-op $router_node_1 $router_node_2 queuePos 0.5 $ns duplex-link-op $router_node_2 $recv_node queuePos 0.5 # set the maximal queue lengths of the routers: $ns queue-limit $router_node_1 $router_node_2 10 42 $ns queue-limit $router_node_2 $recv_node 10 # define the source and the source model: set udp [new Agent/UDP] $udp set fid_ 1 $ns attach-agent $send_node $udp #$ns add-agent-trace $udp udp #$ns monitor-agent-trace $udp # define the destination: set snk [new Agent/Null] $snk set fid_ 1 $ns attach-agent $recv_node $snk $ns connect $udp $snk # generate the video trace file ("Verbose_Jurassic_64.dat" is only an example): set original_file_name Verbose_Jurassic_64.dat set trace_file_name video.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set last_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line if {[string length $current_line] == 0 || [string compare [string index $current_line 0] "#"] == 0} { continue } scan $current_line "%d%s%d" next_time type length set time [expr 1000*($next_time-$last_time)] set last_time $next_time puts -nonewline $trace_file_id [binary format "II" $time $length] } close $original_file_id close $trace_file_id # set the simulation end time: set end_sim_time [expr 1.0*$last_time/1000+0.001] # read the video trace file: set trace_file [new Tracefile] $trace_file filename $trace_file_name set video [new Application/Traffic/Trace] $video attach-agent $udp 43 $video attach-tracefile $trace_file # start the simulation: $ns at 0.0 { $send_node label "VIDEO-SERVER" $router_node_1 label "IP-ROUTER 1" $router_node_2 label "IP-ROUTER 2" $recv_node label "VIDEO-CLIENT" $video start } # stop the simulation: $ns at $end_sim_time { finish } proc finish {} { global ns nf $ns flush-trace close $nf exec nam out.nam & exit 0 } $ns run --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping From fl0wer at virgilio.it Thu Dec 15 02:32:51 2005 From: fl0wer at virgilio.it (Marco Fiore) Date: Thu, 15 Dec 2005 11:32:51 +0100 (GMT+01:00) Subject: [ns] Classifier/Hier 'no target for slot 0' problem Message-ID: <10924119.1134642771774.JavaMail.root@pswm4.cp.tin.it> Hi, we are trying to extend SCTP multihoming support to wireless channels, so that a wireless node can have multiple interfaces and use SCTP as a wired one. Changes to the code are needed, since there is no support for multiple interfaces in mobilenodes right now. We added such support by adding a couple of methods to ns-lib.tcl and sctp.cc, but then we got the following error at the beginning of the simulation: SORTING LISTS ...DONE! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o201: no target for slot 0 _o201 type: Classifier/Hier content dump: classifier _o201 0 offset 0 shift 2147483647 mask 0 slots ---------- Finished standard no-slot{} default handler ---------- I read several mails on the archive about the 'no tartget for slot X' problem, but *none* referred to the *Classifier/Hier* class. If I got it right from such mails, the problem should stay in the wired nodes (W0, the intermediate router or one of the BSs) of our topology (depicted next) # BS0 # ----0 )))) 0 # / \ # W0 O--------O | O WN # \ / # ----0 )))) 0 # BS1 since mobilenodes do not use Classifiers. Does anynoe has a clue on the possible cause of this error? Thanks, Marco Fiore From P.Behbahani at city.ac.uk Thu Dec 15 04:02:01 2005 From: P.Behbahani at city.ac.uk (Peyman Behbahani) Date: Thu, 15 Dec 2005 12:02:01 -0000 Subject: [ns] Multi-Interface Mobile Node Message-ID: Hello Ns Users, I need a mobile node with more than one interface in my simulation's scenario. I am going to connect one MN via different interfaces to different Base stations. Is there such a node or something like Mobile Router in NS-2? Or do you have any idea to impalement a mobile node with this feature? Thanks in advance for your answers, Peyman From jm.listas at fly.ath.cx Thu Dec 15 05:15:33 2005 From: jm.listas at fly.ath.cx (Julian Monteiro) Date: Thu, 15 Dec 2005 13:15:33 +0000 Subject: [ns] Mobile agent - error in on/off command Message-ID: <43A16C75.5090707@fly.ath.cx> Hello all, I'm simulating mobile ad hoc routing protocols, and I want to turn node radio transmission 'on' and 'off' in my mobility scenery. To do that I'm using the on/off command of mobile nodes... But, in my first try, the NS-2 (version 2.28 or 2.29) exited with this message: Starting Simulation... ns: _o18 reset-state: (_o18 cmd line 1) invoked from within "_o18 cmd reset-state" invoked from within "catch "$self cmd $args" ret" invoked from within ... Then, I removed the line 'tcl.evalf("%s reset-state", str);' in the mobilenode.cc file, and the simulation worked great. I've searched for reset-state command, but and I found nothing. Is this a bug, or I'm doing something wrong? Does anybody knows a better way to put a node to sleep (turn radio off)? Thanks for your attention, Julian From dkp at ece.iisc.ernet.in Thu Dec 15 06:59:27 2005 From: dkp at ece.iisc.ernet.in (dharmendra) Date: Thu, 15 Dec 2005 20:29:27 +0530 Subject: [ns] TCP flow control in NS Message-ID: <43A184CF.2030906@ece.iisc.ernet.in> HI all, I have one doubt that can i control TCP traffic flow according to my choice at each instant. Please respond me. Dharmendra -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From dkp at ece.iisc.ernet.in Thu Dec 15 07:05:11 2005 From: dkp at ece.iisc.ernet.in (dharmendra) Date: Thu, 15 Dec 2005 20:35:11 +0530 Subject: [ns] How to control usable window in TCP traffic Message-ID: <43A18627.1040106@ece.iisc.ernet.in> Hi all, I want to control the usable window according to my choice at each time instant.How to do this? Please give some sugestions for this. Dharmendra -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From zubair666 at rediffmail.com Thu Dec 15 07:58:50 2005 From: zubair666 at rediffmail.com (Mohammad Zubair Ahmad) Date: 15 Dec 2005 15:58:50 -0000 Subject: [ns] How to control usable window in TCP traffic Message-ID: <20051215155850.27962.qmail@webmail28.rediffmail.com> You can control the congestion window (the number of packets sent out for each RTT) using the opencwnd() function. Standard AIMD is defined in case 1 while case 7 is empty for experimental purposes. You can define your increase algorithm here. Zubair ? On Thu, 15 Dec 2005 dharmendra wrote : > >Hi all, > >I want to control the usable window according to my choice at each time >instant.How to do this? >Please give some sugestions for this. > >Dharmendra > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. > From alcoverp at gmail.com Thu Dec 15 08:20:32 2005 From: alcoverp at gmail.com (Pedro Alcover) Date: Thu, 15 Dec 2005 14:20:32 -0200 Subject: [ns] matrix error Message-ID: <34c93c750512150820l2e3214fs@mail.gmail.com> The program do not run the matrix links and gives this messenge: --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o12: no target for slot -1 _o12 type: Classifier/Hash/Dest content dump: classifier _o12 0 offset 0 shift 2147483647 mask 1 slots slot 0: _o539 (Classifier/Port) -1 default ---------- Finished standard no-slot{} default handler ---------- OBS: The orient links (nam) run normally in the same for: for {set i 0} {$i<4} {incr i} { for {set j 0} {$j<4} {incr j} { set n($i,$j) [$grade node] } } for {set i 0} {$i<3} {incr i} { for {set j 0} {$j<4} {incr j} { if {$j==3} { $grade duplex-link $n($i,$j) $n([expr $i+1],$j) 2Mb 10ms DropTail $grade duplex-link-op $n($i,$j) $n([expr $i+1],$j) orient down } else { $grade duplex-link $n($i,$j) $n($i,[expr $j+1]) 2Mb 10ms DropTail $grade duplex-link $n($i,$j) $n([expr $i+1],$j) 2Mb 10ms DropTail $grade duplex-link-op $n($i,$j) $n($i,[expr $j+1]) orient right $grade duplex-link-op $n($i,$j) $n([expr $i+1],$j) orient down } } } the prgram continues like this: set tcp [new Agent/TCP] $grade attach-agent $n(0,0) $tcp set sink [new Agent/TCPSink] $grade attach-agent $n(3,3) $sink $tcp set fid_ 1 $tcp set packetSize_ 500 set ftp [new Application/FTP] $ftp attach-agent $tcp $grade at 0.5 "$ftp start" $grade at 5.0 "$ftp stop" $grade at 6.0 "finish" $grade run It's so strange. I could not find the "error". Please help me!! Thanks From ziedbt at yahoo.fr Thu Dec 15 07:37:22 2005 From: ziedbt at yahoo.fr (Zied Ben terdayet) Date: Thu, 15 Dec 2005 16:37:22 +0100 (CET) Subject: [ns] NS: probem with "tools/random.cc" Message-ID: <20051215153722.93934.qmail@web26811.mail.ukl.yahoo.com> Hi evryone I am new user of network simulateur my problem consist when i add MPLS model for network simulateur mns-2.26 i have problem on using ns 2.26 after installing installing ns But after recompilation when I try to run ns i get the following error and ns quits make: *** Pas de r?gle pour fabriquer la cible ? tools/random.cc ?, n?cessaire pour ? tools/random.o ?. Arr?t. Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems NB : Steps used for install ******************************************************************************************************** download the ns-allinone-2.6.tar.gz download the mns-for-2.26.tar.gz untar ns-allinone-2.26.tar.gz copy mns-for-2.26.tar.gz inside the ns-allinone-2.26 directory and untar it Apply RSVP-TE\ns patch: rename /ns-allinone-2.26/ns-2.26 to ns-allinone-2.26/ns-2.26_old copy /ns-allinone-2.26/ns-2.26_old to ns-allinone-2.26/ns-2.26_mod inside /ns-allinone-2.26/ patch -p0< rsvp_te_ns.patch rename /ns-allinone-2.26/ns-2.26_mod to /ns-allinone-2.26/ns-2.26 inside /ns-allinone-2.26/ ./install P.S. Use gcc version 2.95 and not version 3.3 ********************************************************************* Any suggestion Thanks an advance --------------------------------- Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.T?l?chargez la version beta. From ahmedm9 at lsbu.ac.uk Thu Dec 15 10:29:11 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Thu, 15 Dec 2005 18:29:11 -0000 Subject: [ns] nam 1.11 problem Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062AE@CSD-EXBE-VS1.lsbu.ac.uk> Hi,all i am using NS2.28 all in one package...every thing is working fine...i have fix the nam 1.11 problem...but i cannot nam....nam.exe is present in nam1.11 directory.... when i run ./nam.exe i have following eroor nam: no display name and no $DISPLAY environment variable plz sort out for me MASROOR From iinan at eecs.uci.edu Thu Dec 15 11:06:22 2005 From: iinan at eecs.uci.edu (inanc inan) Date: Thu, 15 Dec 2005 11:06:22 -0800 Subject: [ns] Classifier/Hier 'no target for slot 0' problem Message-ID: <002b01c601aa$b530a510$d4b1c380@kumquat> Hi Marco, I got the same problem a few days ago. My topology was wired source nodes directly connected to a base station which links the traffic to some wireless destination nodes. I read in the mailing list as this was a topology problem. The error disappeared when I connected the wired source nodes first to another wired node and than this wired node to the base station. Maybe you can figure out something from this behavior, and apply to your problem. Inanc Inan PS. Your topology figure is corrupted in the e-mail I received, that's why I cannot comment on it. -----Original Message----- From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of Marco Fiore Sent: Thursday, December 15, 2005 2:33 AM To: ns-users at ISI.EDU Subject: [ns] Classifier/Hier 'no target for slot 0' problem Hi, we are trying to extend SCTP multihoming support to wireless channels, so that a wireless node can have multiple interfaces and use SCTP as a wired one. Changes to the code are needed, since there is no support for multiple interfaces in mobilenodes right now. We added such support by adding a couple of methods to ns-lib.tcl and sctp.cc, but then we got the following error at the beginning of the simulation: SORTING LISTS ...DONE! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o201: no target for slot 0 _o201 type: Classifier/Hier content dump: classifier _o201 0 offset 0 shift 2147483647 mask 0 slots ---------- Finished standard no-slot{} default handler ---------- I read several mails on the archive about the 'no tartget for slot X' problem, but *none* referred to the *Classifier/Hier* class. If I got it right from such mails, the problem should stay in the wired nodes (W0, the intermediate router or one of the BSs) of our topology (depicted next) # BS0 # ----0 )))) 0 # / \ # W0 O--------O | O WN # \ / # ----0 )))) 0 # BS1 since mobilenodes do not use Classifiers. Does anynoe has a clue on the possible cause of this error? Thanks, Marco Fiore From pedro.estrela at gmail.com Thu Dec 15 11:31:15 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Thu, 15 Dec 2005 19:31:15 -0000 Subject: [ns] tclcl error in ns installation In-Reply-To: <9cd959f70512141132v5eec22a9xcc5f644d4cea1bf6@mail.gmail.com> Message-ID: <002e01c601ae$1d6344a0$172914ac@Estrela> You should use an older version of GCC and/or distribution Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Guy Israeli > Sent: quarta-feira, 14 de Dezembro de 2005 19:32 > To: ns-users at ISI.EDU > Subject: [ns] tclcl error in ns installation > > > Hi all, > > after trying several patchs this is what came up: > > > c++ -o tcl2c++ tcl2c++.o > c++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H > -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H - > DSTDC_HEADERS=1 > -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_STRTOQ=1 > -DHAVE_STRTOLL=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 -DHAVE_TCL_H=1 > -DHAVE_LIBTCL8_3=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_3=1 -DHAVE_OTCL_H=1 > -DHAVE_LIBOTCL1_0A6=1 -I. > -I/home/guy/ns-allinone-2.1b7/otcl-1.0a6-I/home/guy/ns- > allinone-2.1b7/tk8.3.2/generic -I/home/guy/ns-allinone- > 2.1b7/tcl8.3.2/generic > -o Tcl.o Tcl.cc > tclcl-mappings.h: In static member function 'static int > TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)': > tclcl-mappings.h:51: error: incomplete type 'Tcl' used in nested name > specifier > tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl' > tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' > tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl' > tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' > make: *** [Tcl.o] Error 1 > tclcl-1.0b10 make failed! Exiting ... > See http://www.isi.edu/nsnam/ns/ns-problems.html for problems > > > > any ideas? > > using suse10, ns is allinone version 2.1b7 (not 2.1b7a) > > > Thanks a lot, > > Guy From pedro.estrela at gmail.com Thu Dec 15 11:35:59 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Thu, 15 Dec 2005 19:35:59 -0000 Subject: [ns] Query regarding queuing delay and poisson patch In-Reply-To: <1314.203.143.168.216.1134630896.squirrel@mailbag.nicta.com.au> Message-ID: <003101c601ae$c704ddc0$172914ac@Estrela> > > One more question.. I compiled poisson patch. I got some > > messages that some test results are not matching with the > > reference output. Will there be any ambiguity in the delay > > obtained in that case? Or is there any solution for that? > > Any help is appreciated.Thanks in advance.. > the patch you've used has modified the NS2 core modules, and the standard tests do not give the tried-and-tested results. This means that results from that NS2-version ___MAY___ not be accurate in comparisation with unmodified NS2. You should: - validate all steps that on work work; - try to understand why / what test results have changed, and - either correct the new module for these results to be maintained OR - prove that the new results are "more accurate" Pedro Vale Estrela http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 From pedro.estrela at gmail.com Thu Dec 15 11:40:36 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Thu, 15 Dec 2005 19:40:36 -0000 Subject: [ns] Mobile agent - error in on/off command In-Reply-To: <43A16C75.5090707@fly.ath.cx> Message-ID: <003401c601af$6c00bc90$172914ac@Estrela> > Hello all, > > I'm simulating mobile ad hoc routing protocols, and I want > to turn node radio transmission 'on' and 'off' in my mobility scenery. > To do that I'm using the on/off command of mobile nodes... > > But, in my first try, the NS-2 (version 2.28 or 2.29) exited with this > message: > > > Starting Simulation... > ns: _o18 reset-state: > (_o18 cmd line 1) > invoked from within > "_o18 cmd reset-state" > invoked from within > "catch "$self cmd $args" ret" > invoked from within > ... > > > > Then, I removed the line 'tcl.evalf("%s reset-state", str);' in the > mobilenode.cc file, and the simulation worked great. > I've searched for reset-state command, but and I found nothing. Have you searched on the C++ implementation? Check this: http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging.html#_Toc122255044 and do "grep -d recurse reset-state *" > Is this a bug, or I'm doing something wrong? It seems that you are skipping a step, but the NS2 modules are robust engouh to not need such reset > Does anybody knows a better way to put a node to sleep (turn radio off)? > > Thanks for your attention, > Julian From ahmedm9 at lsbu.ac.uk Thu Dec 15 11:48:02 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Thu, 15 Dec 2005 19:48:02 -0000 Subject: [ns] nam execution problem Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062AF@CSD-EXBE-VS1.lsbu.ac.uk> Hi... i have problem with nam 1.11 on NS 2.28 ....i can only run nam when i go /ns-allinone-2.28/nam1.11 by this command ./nam when i try to run any example it's giving me this error...need help ahmed at home /examples $ ns example2.tcl ns: finish: couldn't execute "nam": no such file or directory while executing "exec nam out.nam &" (procedure "finish" line 7) invoked from within "finish" MASROOR From pedro.estrela at gmail.com Thu Dec 15 12:15:51 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Thu, 15 Dec 2005 20:15:51 -0000 Subject: [ns] Classifier/Hier 'no target for slot 0' problem In-Reply-To: <002b01c601aa$b530a510$d4b1c380@kumquat> Message-ID: <003701c601b4$58614ab0$172914ac@Estrela> The topology and the addresses must use special rules. Check this page: http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_haddr_tips.html#_Toc12154886 8 and its the figure Pedro > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of inanc inan > Sent: quinta-feira, 15 de Dezembro de 2005 19:06 > To: 'Marco Fiore'; ns-users at ISI.EDU > Subject: Re: [ns] Classifier/Hier 'no target for slot 0' problem > > > > Hi Marco, > > I got the same problem a few days ago. My topology was wired source > nodes directly connected to a base station which links the traffic to > some wireless destination nodes. I read in the mailing list as this was > a topology problem. The error disappeared when I connected the wired > source nodes first to another wired node and than this wired node to the > base station. Maybe you can figure out something from this behavior, and > apply to your problem. > > Inanc Inan > > PS. Your topology figure is corrupted in the e-mail I received, that's > why I cannot comment on it. > > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On > Behalf Of Marco Fiore > Sent: Thursday, December 15, 2005 2:33 AM > To: ns-users at ISI.EDU > Subject: [ns] Classifier/Hier 'no target for slot 0' problem > > > Hi, > > we are trying to extend SCTP multihoming support to wireless > channels, > so that a wireless node can have multiple interfaces and use > SCTP as > a wired one. Changes to the code are needed, since there is no > support > for multiple interfaces in mobilenodes right now. > We added such > support by adding a couple of methods to ns-lib.tcl and > sctp.cc, but > then we got the following error at the beginning of the simulation: > > SORTING LISTS ...DONE! > --- Classfier::no-slot{} default handler > (tcl/lib/ns-lib.tcl) --- > _o201: no target for slot 0 > > _o201 type: Classifier/Hier > content dump: > classifier _o201 > 0 > offset > 0 shift > 2147483647 mask > 0 slots > ---------- Finished standard no-slot{} default handler ---------- > > I > read several mails on the archive about the 'no tartget for slot X' > problem, > but *none* referred to the *Classifier/Hier* class. If I got > it right from such mails, > the problem should stay in the wired nodes > (W0, the intermediate router or > one of the BSs) of our topology > (depicted next) > > # BS0 > # > ----0 )))) 0 > # / \ > # > W0 O--------O | O WN > # \ / > # > ----0 )))) 0 > # BS1 > > since > mobilenodes do not use Classifiers. > > Does anynoe has a clue on the > possible cause of this error? > > Thanks, > > Marco Fiore From dkp at ece.iisc.ernet.in Thu Dec 15 12:49:38 2005 From: dkp at ece.iisc.ernet.in (dharmendra) Date: Fri, 16 Dec 2005 02:19:38 +0530 Subject: [ns] How to get instantaneous queue length for TCP traffic in NS Message-ID: <43A1D6E2.6040107@ece.iisc.ernet.in> Hi all, I want plot instanteneuos queue length for TCP traffic in NS. Any suggestion Thanks in advance Dharmendra kumar -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From sita at ece.gatech.edu Thu Dec 15 19:10:36 2005 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Thu, 15 Dec 2005 22:10:36 -0500 (EST) Subject: [ns] tclcl error in ns installation In-Reply-To: <002e01c601ae$1d6344a0$172914ac@Estrela> References: <9cd959f70512141132v5eec22a9xcc5f644d4cea1bf6@mail.gmail.com> <002e01c601ae$1d6344a0$172914ac@Estrela> Message-ID: <51956.68.85.51.3.1134702636.squirrel@secure2.ece.gatech.edu> or try to apply the patch as described in URL below: http://zzlinux.blogspot.com/2004/12/ns2-building-experiences.html -Sita > > > You should use an older version of GCC and/or distribution > > Pedro Vale Estrela > http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2 > > >> -----Original Message----- >> From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On >> Behalf >> Of Guy Israeli >> Sent: quarta-feira, 14 de Dezembro de 2005 19:32 >> To: ns-users at ISI.EDU >> Subject: [ns] tclcl error in ns installation >> >> >> Hi all, >> >> after trying several patchs this is what came up: >> >> >> c++ -o tcl2c++ tcl2c++.o >> c++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H >> -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H - >> DSTDC_HEADERS=1 >> -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_STRTOQ=1 >> -DHAVE_STRTOLL=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 -DHAVE_TCL_H=1 >> -DHAVE_LIBTCL8_3=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_3=1 -DHAVE_OTCL_H=1 >> -DHAVE_LIBOTCL1_0A6=1 -I. >> -I/home/guy/ns-allinone-2.1b7/otcl-1.0a6-I/home/guy/ns- >> allinone-2.1b7/tk8.3.2/generic -I/home/guy/ns-allinone- >> 2.1b7/tcl8.3.2/generic >> -o Tcl.o Tcl.cc >> tclcl-mappings.h: In static member function 'static int >> TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)': >> tclcl-mappings.h:51: error: incomplete type 'Tcl' used in nested name >> specifier >> tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl' >> tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' >> tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl' >> tclcl-mappings.h:41: error: forward declaration of 'struct Tcl' >> make: *** [Tcl.o] Error 1 >> tclcl-1.0b10 make failed! Exiting ... >> See http://www.isi.edu/nsnam/ns/ns-problems.html for problems >> >> >> >> any ideas? >> >> using suse10, ns is allinone version 2.1b7 (not 2.1b7a) >> >> >> Thanks a lot, >> >> Guy > > From venuzian at hotmail.com Thu Dec 15 22:03:48 2005 From: venuzian at hotmail.com (venusian .) Date: Fri, 16 Dec 2005 11:03:48 +0500 Subject: [ns] mac layer problem Message-ID: hi, i'm designing (coding + simulation) a new routing protocol for MANETs and the protocol i want to design, needs to store the power values of the neighbouring nodes in the mac-layer. To do so it needs to maintain a table of these values at MAC-layer.These values will be retrieved by the Network layer as and when reguired. i don't know much about MAC and how to create a table, store values in it and later on retrieve those values. If anyone can guide me how to deal with MAC layer or provide a link to an online resource with the help of which i can learn this, i'll be very thankfull. Thanking in advance and looking forward to your response. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From imkidder at msn.com Thu Dec 15 23:18:14 2005 From: imkidder at msn.com (Huang Longbo) Date: Fri, 16 Dec 2005 07:18:14 +0000 Subject: [ns] NS2.27 patch problem In-Reply-To: Message-ID: Hi,everyone, I am patching ns-2.27 using the patch given on the ns website.But I keep getting the msg "saving rejects to indep-utiles..." Does anyone have any ideas? Thanks a million. Longbo Huang From M.Shariat at surrey.ac.uk Fri Dec 16 02:57:51 2005 From: M.Shariat at surrey.ac.uk (Mehrdad Shariat) Date: Fri, 16 Dec 2005 10:57:51 +0000 Subject: [ns] Turning off the carrier sensing? Message-ID: <1134730671.710.5.camel@ccsrlt25.ee.surrey.ac.uk> Hi all, I have a question IEEE 802.11 mac/phy layer. Does anyone know that how we can turn off carrier sensing? Cheers Mehrdad From ahmedm9 at lsbu.ac.uk Fri Dec 16 04:09:13 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Fri, 16 Dec 2005 12:09:13 -0000 Subject: [ns] EURANE for NS-2.28(urgent) Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062B4@CSD-EXBE-VS1.lsbu.ac.uk> Hi,,, if any body has experience to run EURANE Patchfile for ns-2.28 plz forward me the complete procedure...... plz help me MASROOR From d.duda at wil.waw.pl Fri Dec 16 05:23:58 2005 From: d.duda at wil.waw.pl (Damian Duda) Date: Fri, 16 Dec 2005 13:23:58 +0000 Subject: [ns] Support for Static Priority Queuing Scheduling in NS-2 Message-ID: <43A2BFEE.30103@wil.waw.pl> Hi all, I am new in NS-2. Until now I used C++ and self-made event driven simulators for my simulations. My question is probably silly, but I am very interested whether there is any implementation of ordinary Static Priority Queue in NS-2 simulator (the best is more than two level of priorities)? Do you know any clues? Or, do I have to write my own PQ class and include it to NS-2? I appreciate any information very much. Best Regards, Damian Duda Warsaw, Poland From sayenko at cc.jyu.fi Fri Dec 16 04:48:43 2005 From: sayenko at cc.jyu.fi (Alexander Sayenko) Date: Fri, 16 Dec 2005 14:48:43 +0200 Subject: [ns] Support for Static Priority Queuing Scheduling in NS-2 References: <43A2BFEE.30103@wil.waw.pl> Message-ID: <00c501c6023f$0c1648a0$62a9ea82@it.jyu.fi> Hi It seems that the basic scheduling framework of the NS-2 simulator does not support it. However, this scheduling disciplines is available in the DiffServ framework. Sincerely, Sayenko Alexander (PhD) Assistant Telecommunication laboratory, MIT department University of Jyvaskyla, Finland > > Hi all, > > I am new in NS-2. > Until now I used C++ and self-made event driven simulators for my > simulations. > > My question is probably silly, but I am very interested whether there is > any implementation of ordinary Static Priority Queue in NS-2 simulator > (the best is more than two level of priorities)? > > Do you know any clues? > > Or, do I have to write my own PQ class and include it to NS-2? > > I appreciate any information very much. > > Best Regards, > > Damian Duda > Warsaw, Poland > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 15.12.2005 > > From yuleihit at gmail.com Fri Dec 16 05:32:13 2005 From: yuleihit at gmail.com (yu lei) Date: Fri, 16 Dec 2005 21:32:13 +0800 Subject: [ns] how to generate Taffic from Tcpdump dump file and transport packet as what dump file tells in Ns2? Message-ID: <4597b4d00512160532s55a9f20bu@mail.gmail.com> Hi,all I want generate Traffic from Tcpdump dump file.I have extracted two items: time and packet length from Tcpdump dumpfile; I have used Application/Traffic/Trace and UDP,I found UDP wasn't suitable, because UDP agent didn't generate traffic in packet level just as Tcpdump dumpfile record.The packet length changed,and sendtime was not the same as Tcpdump dumpfile record. now I want to simulate traffic in packet level just as the content of TCPDUMP dumpfile. how ? can you give me a tip? thanks! From chuckovski12 at hotmail.com Fri Dec 16 07:54:30 2005 From: chuckovski12 at hotmail.com (Adam Hunt) Date: Fri, 16 Dec 2005 15:54:30 +0000 Subject: [ns] Unexpected Wireless Throughput Message-ID: Dear all, I have a question regarding the throughput of wireless networks. I have made a simple wireless network (one wireless node connected to a base station) and then analysed it using Tracegraph. However, I seem to be observing lower throughputs than I was expecting (for example about 750Kbits/s when the distance is 2 metres). As most wireless cards are 11 or 54 Mbits/s I was expecting a higher throughput than this - especially for such a small distance. Do people think this is an accurate figure or have I overlooked something? I would be most grateful for your advice. Adam _________________________________________________________________ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.uk From berka at feec.vutbr.cz Fri Dec 16 09:07:03 2005 From: berka at feec.vutbr.cz (Petr Berka) Date: Fri, 16 Dec 2005 18:07:03 +0100 Subject: [ns] ns-2.1b8a instllation problems Message-ID: <43A2F437.6000809@feec.vutbr.cz> Hi all, have somebody solved the problem below? I received the same report but didn't find solution anywhere. Thanks for help in advance. Petr Hi, ns-users I downloaded ns-2.1b8a and tarred it and but installation does not complete i got this error messages: tclcl-mappings.h:51: error: incomplete type `Tcl' used in nested name specifier tclcl-mappings.h:52: error: invalid use of undefined type `struct Tcl' tclcl-mappings.h:41: error: forward declaration of `struct Tcl' tclcl-mappings.h:57: error: invalid use of undefined type `struct Tcl' tclcl-mappings.h:41: error: forward declaration of `struct Tcl' make: *** [Tcl.o] Error 1 tclcl-1.0b11 make failed! Exiting ... please any one help From ahmedm9 at lsbu.ac.uk Fri Dec 16 09:21:30 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Fri, 16 Dec 2005 17:21:30 -0000 Subject: [ns] Thanks for reply on nam1.11 Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062B7@CSD-EXBE-VS1.lsbu.ac.uk> Hi, ALL i have solved the nam problem ....according to you people advise.... i need help on Enhanced UMTS radio access network extensions for ns-2.28 i applied a patch which is given for 2.28 but no tcl script is running can any body tell me ...what mean by clean version of NS-2.28 the version in allinone package is not clean... i have NS2.28-allinone package Thnaks to ALL From hamdi_benmessaoud at yahoo.fr Fri Dec 16 12:14:17 2005 From: hamdi_benmessaoud at yahoo.fr (hamdi benmessaoud) Date: Fri, 16 Dec 2005 21:14:17 +0100 (CET) Subject: [ns] how to compile ns2.28 Message-ID: <20051216201417.6658.qmail@web25814.mail.ukl.yahoo.com> Hi every body, We have a problem with ns2.First,we have installed the windows version ,we installed cygwin ,and the ns2.28 version,but we don?t know how to compil the ns programs? under ns2. Please if any one knows how help us!!!!!!!!!!. Then we are going to install the linux version ,but we have no idea ????? Also,in linux (mandrack 9.0) the cd ,flach disk don?t work ,and we have no idea how to configure the internet under linux????? So ,please help us because we can not advance . Thanks . --------------------------------- Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.T?l?chargez la version beta. From kamal.nsuser at gmail.com Fri Dec 16 13:32:50 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Fri, 16 Dec 2005 22:32:50 +0100 Subject: [ns] how to compile ns2.28 In-Reply-To: <20051216201417.6658.qmail@web25814.mail.ukl.yahoo.com> References: <20051216201417.6658.qmail@web25814.mail.ukl.yahoo.com> Message-ID: Ho HO HO..Merry Christmas..!! Did you look at ns2 installation page at all sir..?? Good luck. On 12/16/05, hamdi benmessaoud wrote: > > > Hi every body, > We have a problem with ns2.First,we have installed the windows version > ,we installed cygwin ,and the ns2.28 version,but we don't know how to > compil the ns programs' under ns2. Please if any one knows how help > us!!!!!!!!!!. > Then we are going to install the linux version ,but we have no idea > ????? > Also,in linux (mandrack 9.0) the cd ,flach disk don't work ,and we have > no idea how to configure the internet under linux????? > So ,please help us because we can not advance . > Thanks . > > > > > > > --------------------------------- > Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les > tarifs exceptionnels pour appeler la France et l'international.T?l?chargezla version beta. > -- Kamal From pedro.estrela at gmail.com Fri Dec 16 14:11:02 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Fri, 16 Dec 2005 22:11:02 -0000 Subject: [ns] how to compile ns2.28 In-Reply-To: Message-ID: <000701c6028d$9a146530$172914ac@Estrela> > Ho HO HO..Merry Christmas..!! Did you look at ns2 installation page at all > sir..?? :))))))))) Merry Christmas to all!!! > Good luck. > > On 12/16/05, hamdi benmessaoud wrote: > > > > > > Hi every body, > > We have a problem with ns2.First,we have installed the windows > version > > ,we installed cygwin ,and the ns2.28 version,but we don't know how to > > compil the ns programs' under ns2. Please if any one knows how help > > us!!!!!!!!!!. > > Then we are going to install the linux version ,but we have no idea > > ????? > > Also,in linux (mandrack 9.0) the cd ,flach disk don't work ,and we > have > > no idea how to configure the internet under linux????? > > So ,please help us because we can not advance . > > Thanks . > > From mohrehkesh at gmail.com Fri Dec 16 21:59:38 2005 From: mohrehkesh at gmail.com (shahram mohrehkesh) Date: Sat, 17 Dec 2005 09:29:38 +0330 Subject: [ns] mobile node communication range Message-ID: <3fb281ef0512162159g38341db0y34f2d070e03f62f7@mail.gmail.com> Dear All, I want to know how I could the communication range of a mobile node? what is its default value? Regards, Shahram Mohrehkesh From amol_pise2002 at yahoo.co.in Fri Dec 16 23:59:38 2005 From: amol_pise2002 at yahoo.co.in (amol pise) Date: Fri, 16 Dec 2005 23:59:38 -0800 (PST) Subject: [ns] problem with "How to evaluate MPEG video in ns2" Message-ID: <20051217075938.20277.qmail@web8211.mail.in.yahoo.com> dear freinds, I Amol Pise doing project over the topic " improving QoS of MPEG video over packet switched network" .For that I need to insert MPEG video into ns2 simulator and evaluate it . I found a great refrence of paper on"How to evaluate MPEG video in ns2" by Henry Smallko,I did the same procedure(also seen video demo and download files) ,But when I go for simulation of "be.tcl "or "qos.tcl"(these files are also downloaded from same site) I got following error. Can you please guide me regarding same....its very important for me ,without it I cant go for further work. (I am using ns-2.28 simulator on linux platform) Following is error code after executing " ns be.tcl" : invalid command name "Agent/myUDP" while executing"Agent/myUDP create _o58 " 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/myUDP" invoked from within "set udp1 [new Agent/myUDP]" (file "be.tcl" line 27) Thank You very much................. regards, AMOL __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From hamdi_benmessaoud at yahoo.fr Sat Dec 17 01:01:43 2005 From: hamdi_benmessaoud at yahoo.fr (hamdi benmessaoud) Date: Sat, 17 Dec 2005 10:01:43 +0100 (CET) Subject: [ns] problem with compilation ns2.28 under windosws Message-ID: <20051217090143.54511.qmail@web25810.mail.ukl.yahoo.com> Hi all, I was succesfully installed ns2.28 in the windows xp platform.But in the the ns installation page they say that whe must start nam like that "nam.exe" ,but it gives me the error "command not found" ???? Then when I tryed to execute a simple script tcl whith the command ns it gives me the error: "bach:syntax error near unexpected token 'newline' " So I tryed with : ns exemple.tcl But it gives me the error "bach :ns:command not found" Where is the problem ,please help me !!!!!!!!!!! I found in the documentation that after installing ns2 we must : 1)put the path to my ns executable into my path environnement 2)put the path to my ocl in my LD8LYBRARY8PATH environnement 3)put the path to my tcl library into my tcl_library environnement. But I don't know how I put the path to my ns executable into my path environnement , and also the second and the third point. Please help me !!!!!!!!!!!! thanks . --------------------------------- Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.T?l?chargez la version beta. From emajid at lycos.com Sat Dec 17 01:13:33 2005 From: emajid at lycos.com (azri Abdul Majid) Date: Sat, 17 Dec 2005 17:13:33 +0800 Subject: [ns] malicious node Message-ID: <20051217091333.BDD23E5BC7@ws7-2.us4.outblaze.com> hi guys, anyone out there ever simulate malicious node using ns-2? how to simulate malicious node in ns-2? - azri abdul majid -- _______________________________________________ Search for businesses by name, location, or phone number. -Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From david.carter at wadh.ox.ac.uk Sat Dec 17 04:13:56 2005 From: david.carter at wadh.ox.ac.uk (David Carter) Date: Sat, 17 Dec 2005 12:13:56 +0000 Subject: [ns] Problems using DSR Message-ID: <779DD7B0-6577-4DA7-8460-9F2631AF7BD7@wadh.ox.ac.uk> Dear all, I am comparing the performance of different ad hoc routing protocols in ns-2. Simulations I have made work wine with AODV and DSDV protocols however DSR seems to start ok and then at a strange time will halt the simulation and display 'child killed: bus error'. This is the error that I got using Mac OS X, when a friend tried the same simulation using Windows it gave a "Segmentation fault (core dumped)" error. Any help would be very gratefully received, Many thanks, David From msidi79 at yahoo.com Sat Dec 17 04:46:13 2005 From: msidi79 at yahoo.com (mix si) Date: Sat, 17 Dec 2005 04:46:13 -0800 (PST) Subject: [ns] Problems using DSR In-Reply-To: <779DD7B0-6577-4DA7-8460-9F2631AF7BD7@wadh.ox.ac.uk> Message-ID: <20051217124613.5083.qmail@web36411.mail.mud.yahoo.com> Hello David, Try putting in your tcl script instead of set val(ifq) Queue/DropTail/PriQueue set val(ifq) CMUPriQueue I think this will solve your problem, Have a nice weekend, Michael Sidiropoulos David Carter wrote: Dear all, I am comparing the performance of different ad hoc routing protocols in ns-2. Simulations I have made work wine with AODV and DSDV protocols however DSR seems to start ok and then at a strange time will halt the simulation and display 'child killed: bus error'. This is the error that I got using Mac OS X, when a friend tried the same simulation using Windows it gave a "Segmentation fault (core dumped)" error. Any help would be very gratefully received, Many thanks, David __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From hamdi_benmessaoud at yahoo.fr Sat Dec 17 09:04:28 2005 From: hamdi_benmessaoud at yahoo.fr (hamdi benmessaoud) Date: Sat, 17 Dec 2005 18:04:28 +0100 (CET) Subject: [ns] problems in compiling ns2.28 under windows Message-ID: <20051217170428.67462.qmail@web25811.mail.ukl.yahoo.com> hi, To compile a program in ns2.28 I follow the steps below : 1)First I open the Cygwith .Then I type the command "startx" to start a terminal . After that ,it open a windows named X. 2)Then I type in the windows named X the command :"ns exemple.tcl" then he gives me the error "command not found " or when I type "ns " I get the error :sytax error near unexpected token newline. I don't know what to do!!!!!!!!!!! Thanks for your help. --------------------------------- Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.T?l?chargez la version beta. From f.hajer at gmail.com Sat Dec 17 10:48:43 2005 From: f.hajer at gmail.com (Hajer FERJANI) Date: Sat, 17 Dec 2005 19:48:43 +0100 Subject: [ns] mobile node communication range In-Reply-To: <3fb281ef0512162159g38341db0y34f2d070e03f62f7@mail.gmail.com> References: <3fb281ef0512162159g38341db0y34f2d070e03f62f7@mail.gmail.com> Message-ID: <947619e70512171048g5c5232dfv8c956252ce7b662@mail.gmail.com> Hi, To specify the communication range of wireless nodes, you should set an appropriate value of the receiving threshold in the network interface (in your tcl script), i.e Phy/WirelessPhy set RXThresh_ A separate C program is provided at ~ns/indep-utils/propagation/threshold.cc to compute the receiving threshold. You have to compile it, then you can use the executable to compute the threshold as follows: threshold -m [other-options] distance Ex: threshold -m Shadowing -r 0.95 50. Here the propagation model is Shadowing, the communication range is set to 50m, and 0.95 is the rate of correctly received packets. More details can be found in ns_manual. I think the default value is 250m (ns 2.28) Hope this helps. Bye. On 12/17/05, shahram mohrehkesh wrote: > > Dear All, > > I want to know how I could the communication range of a mobile node? > > what is its default value? > > Regards, Shahram Mohrehkesh > From jm.listas at fly.ath.cx Sat Dec 17 10:47:08 2005 From: jm.listas at fly.ath.cx (Julian Monteiro) Date: Sat, 17 Dec 2005 18:47:08 +0000 Subject: [ns] Mobile agent - error in on/off command In-Reply-To: <003401c601af$6c00bc90$172914ac@Estrela> References: <003401c601af$6c00bc90$172914ac@Estrela> Message-ID: <43A45D2C.5070105@fly.ath.cx> Hello Pedro, I will try your debuging hints.Thanks. I asked about the 'reset-state' command because I did not found anything about it in C++ source code, only a few calls to the inexistent command. best regards, Julian Pedro Vale Estrela wrote: >> Hello all, >> >> I'm simulating mobile ad hoc routing protocols, and I want >> to turn node radio transmission 'on' and 'off' in my mobility scenery. >> To do that I'm using the on/off command of mobile nodes... >> >> But, in my first try, the NS-2 (version 2.28 or 2.29) exited with this >> message: >> >> >> Starting Simulation... >> ns: _o18 reset-state: >> (_o18 cmd line 1) >> invoked from within >> "_o18 cmd reset-state" >> invoked from within >> "catch "$self cmd $args" ret" >> invoked from within >> ... >> >> >> >> Then, I removed the line 'tcl.evalf("%s reset-state", str);' in the >> mobilenode.cc file, and the simulation worked great. >> I've searched for reset-state command, but and I found nothing. >> > > Have you searched on the C++ implementation? > Check this: > http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging.html#_Toc122255044 > > and do "grep -d recurse reset-state *" > > > >> Is this a bug, or I'm doing something wrong? >> > It seems that you are skipping a step, but the NS2 modules are robust engouh > to not need such reset > > > > >> Does anybody knows a better way to put a node to sleep (turn radio off)? >> >> Thanks for your attention, >> Julian >> > > From ahmedm9 at lsbu.ac.uk Sat Dec 17 14:30:53 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Sat, 17 Dec 2005 22:30:53 -0000 Subject: [ns] help on packet loss Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062B9@CSD-EXBE-VS1.lsbu.ac.uk> Hi... here is the simple-wireless.tcl from http://www.isi.edu/nsnam/ns/tutorial/ in this Script i want to calculate TCP pakcet lost..in define this record procedure...but it's giving me following error... SORTING LISTS ...DONE! ns: stop: Problems found with input data. while executing "exec xgraph simple-out1.tr " (procedure "stop" line 6) invoked from within "stop" proc record {} { global ns_ sink 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.05 #How Many Bytes Have Been Received By The Traffic Sinks? set bw0 [$sink set npkts_] set bw1 [$sink set nlost_] #Get The Current Time set now [$ns now] #Save Data To The Files puts $f0 "$now [expr $bw0]" puts $f0 "$now [expr $bw1]" #Re-Schedule The Procedure $ns at [expr $now+$time] "record" } From j3aewoo at yahoo.com Sat Dec 17 19:08:51 2005 From: j3aewoo at yahoo.com (Jaewoo Park) Date: Sat, 17 Dec 2005 19:08:51 -0800 (PST) Subject: [ns] Segmentation fault regarding RED Message-ID: <20051218030851.79906.qmail@web32614.mail.mud.yahoo.com> Dear ns-users I've succesfully installed ns-allinone-2.28 on a recent version of Red Hat linux. An example script with a Drop-tail link runs fine. But when I replace it with RED I get a segmentation fault. Could someone explain? I appreciate your help in advance. Sincerely Jae __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From haibo_xie at bj1860.net Sat Dec 17 21:20:34 2005 From: haibo_xie at bj1860.net (Haibo XIE) Date: Sun, 18 Dec 2005 13:20:34 +0800 Subject: [ns] How does 802.11 RxTxTurnaroundTime work? Message-ID: <20051218051339.EKVA3033.fep2.bj1860.net@buptc154154636> Hello everyone! I want to simulate how 802.11 RxTxTurnaroundTime affects the performance of ad hoc networks. I notice the code with ns-2.26 as follow class PHY_MIB { public: u_int32_t CWMin; u_int32_t CWMax; double SlotTime; double CCATime; double RxTxTurnaroundTime; double SIFSTime; u_int32_t PreambleLength; u_int32_t PLCPHeaderLength; double PLCPDataRate; }; but in ns-2.28, the code of PHY_MIB class is changed and no RxTxTurnaroundTime is defined. And I can not see any usage of RxTxTurnaroundTime both in ns-2.26 and ns-2.28 THere's code with ns-2.26 where RxTxTurnaroundTime appears, but tx_sifs , tx_pifs_ and tx_difs_ seems do not appear somewhere else. tx_sifs_ = sifs_ - phymib_->RxTxTurnaroundTime; tx_pifs_ = tx_sifs_ + phymib_->SlotTime; tx_difs_ = tx_sifs_ + 2 * phymib_->SlotTime; can anyone tell me how I make RxTxTurnaroundTime to work? From imkidder at msn.com Sat Dec 17 22:01:29 2005 From: imkidder at msn.com (Huang Longbo) Date: Sun, 18 Dec 2005 06:01:29 +0000 Subject: [ns] Segmentation fault regarding RED In-Reply-To: <20051218030851.79906.qmail@web32614.mail.mud.yahoo.com> Message-ID: Hi,there Maybe you can add "Queue/RED set q_weight xxx" at the beginning.Or try to avoid using "set sth [new Queue/RED]", in which case NS doesn't call the initialize_params() in RED to initialize the q_weight value,so it will be -1 by default.Thus a seg fault will happen. Hope this helps. Longbo Huang >From: Jaewoo Park >To: ns-users at ISI.EDU >Subject: [ns] Segmentation fault regarding RED >Date: Sat, 17 Dec 2005 19:08:51 -0800 (PST) > > > Dear ns-users > I've succesfully installed ns-allinone-2.28 on a recent version of > Red Hat linux. > An example script with a Drop-tail link runs fine. > But when I replace it with RED > I get a segmentation fault. > Could someone explain? > I appreciate your help in advance. > Sincerely > Jae > > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com From eduq at grad.icmc.usp.br Sun Dec 18 03:19:44 2005 From: eduq at grad.icmc.usp.br (=?ISO-8859-1?Q?Eduardo_Martinelli_Galv=E3o_de_Queiroz?=) Date: Sun, 18 Dec 2005 09:19:44 -0200 Subject: [ns] Using Ns2 for Voip In-Reply-To: <43A41575.6050604@grad.icmc.usp.br> References: <43A41575.6050604@grad.icmc.usp.br> Message-ID: <43A545D0.6000506@grad.icmc.usp.br> Hello People, I intend to work with VoIP and MPLS next year im my MSc Project. The project is the simulation of some scenarios of the utilization of VoIP, like common use at home and companies uses. Do you think I?ll have some big problems working on it? Thanks very much! Eduardo From chuckovski12 at hotmail.com Sun Dec 18 07:21:38 2005 From: chuckovski12 at hotmail.com (Adam Hunt) Date: Sun, 18 Dec 2005 15:21:38 +0000 Subject: [ns] 802.11 throughput doesn't vary with distance? Message-ID: Dear all, I am building a simple wireless network model using 802.11. However, I seem to be observing the same throughputs whether the separation between a wireless node and base station is 2m or 100m. I have found how to set the transmission range, but there is still no reduction in throughput as the receiver moves away from the base station. I would be very grateful if somebody could tell me how to implement this. Best wishes, Adam _________________________________________________________________ The new MSN Search Toolbar now includes Desktop search! http://toolbar.msn.co.uk/ From olivier.berho at gmail.com Sun Dec 18 07:24:54 2005 From: olivier.berho at gmail.com (olivier berho) Date: Sun, 18 Dec 2005 16:24:54 +0100 Subject: [ns] [NS] Problem to access the neighbors list of mobile nodes In-Reply-To: <439B0902.6070403@gmail.com> References: <439B0902.6070403@gmail.com> Message-ID: <58f035250512180724o1d5c395bu1afd939e12a08cc1@mail.gmail.com> Hi, I tried the following code in order to access the neighbords list of a node using AODV. /**********************************************************************************************/ Code I used : Olivier, really i don't see anywhere the link between the neighbour list in C++ and the variable neighbour_ you say. I'm making a job with AODV and QoS routing, and i've made a Tcl command for AODV agent to show its neighbour list and their delays between the agent. I post it for you: if(strcmp(argv[1], "show-table")) { AODV_Neighbor *nb = nbhead.lh_first; tcl.evalf("puts \"\nDelay Table of Node: %d \"", index); tcl.evalf("puts \"\tNode\tDelay\""); for(;nb;nb=nb->nb_link.le_next ){ tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); } return TCL_OK; } You must paste it or something similar in the command function in the AODV agent. However, the nb_delay attribute you can see should be deleted or implemented in the aodv_rtable. I hope this could help you. Bye Olivier. /******************************************************************************************/ Then when I tried to recompile ns, I made "make depend" and then "make" in the ns directory and I got the following error : /******************************************************************************************/ error I got : In file included from ../../../config.h:54, from logparse.h:7, from tr-stat.cc:24: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared /******************************************************************************************/ Is it because of this : "However, the nb_delay attribute you can see should be deleted or implemented in the aodv_rtable" that I did not understand ? I really wish someone could explain me why I got that error and what I should do to correct it. Thanks a lot, Olivier. On 12/10/05, Olivier Berho wrote: > > Hello, > > I am working on a project about communication between mobile nodes and > I am nooby in tcl and NS2. > My first part is about sending packets to each nearly neighbors of a node. > > I know that there is a variable "neighbors_" which contains the > neighbors of each node but I cannot access these informations. First > because I have some problems to access the list using tcl and second > because The list seems to be empty when the topology of my network is > created. > > I am using the AODV routing protocol which should update itself the > variable of the neighbors but I don't know how access it. > > Thanks a lot for help, > > Olivier. > > > P.S : I am a French student,and I apologize for the mistakes in my > English. > From atiemele at ulb.ac.be Sun Dec 18 07:50:01 2005 From: atiemele at ulb.ac.be (Bruno Tiemele) Date: Sun, 18 Dec 2005 16:50:01 +0100 Subject: [ns] help on packet loss In-Reply-To: <9FFEE39DADA4A442B06FB5673765F410D062B9@CSD-EXBE-VS1.lsbu.ac.uk> Message-ID: <000d01c603ea$b528d320$0502a8c0@msce.be> Try this: 1.Open two files at the beginning of your script set fo [open simple-out1.tr w] set f1 [open simple-out2.tr w] 2.in your record procedure, save data in the files like this puts $f0 "$now [expr $bw0]" puts $f1 "$now [expr $bw1]" 3.then call xgraph with this command: "exec xgraph simple-out1.tr simple-out2.tr " Don't forget to close the files before calling xgraph Good luck From mahrenho at ivs.cs.uni-magdeburg.de Sun Dec 18 08:31:29 2005 From: mahrenho at ivs.cs.uni-magdeburg.de (Daniel Mahrenholz) Date: Sun, 18 Dec 2005 17:31:29 +0100 Subject: [ns] 802.11 throughput doesn't vary with distance? In-Reply-To: References: Message-ID: <200512181731.29943.mahrenho@ivs.cs.uni-magdeburg.de> Hi, On Sunday 18 December 2005 16:21, Adam Hunt wrote: > I am building a simple wireless network model using 802.11. However, I seem > to be observing the same throughputs whether the separation between a > wireless node and base station is 2m or 100m. I have found how to set the > transmission range, but there is still no reduction in throughput as the > receiver moves away from the base station. I would be very grateful if > somebody could tell me how to implement this. I guess that you are using the default two-ray ground reflection propagation model. In this case you get only 100 or 0% throughput. You should replace it by the shadowing propagation model which is much more realistic. Then you will get a gradual degradation with a growing distance. Best regards, Daniel. -- Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho From airy at ti.com Sun Dec 18 10:49:50 2005 From: airy at ti.com (Airy, Manish) Date: Sun, 18 Dec 2005 12:49:50 -0600 Subject: [ns] [new ns 80211] Install Problem Message-ID: Hi, I am installing the new ns 80211 on Cygwin 1.5.18-1. (No issues with installing on Linux 2.6.11.) Gsl 1.7 is available on my cygwin install, the configure script creates a Makefile that appears to point correctly to the gsl library. I get the following error: 80211/base-transmission-mode.cc:57: error: expected unqualified-id before '(' token 80211/base-transmission-mode.cc:57: error: abstract declarator `double' used as declaration 80211/base-transmission-mode.cc:57: error: expected primary-expression before "double" 80211/base-transmission-mode.cc:58: error: expected `,' or `;' before '{' token make: *** [80211/base-transmission-mode.o] Error 1 Please advise how to proceed. Thanks, Manish. From pedro.estrela at gmail.com Sun Dec 18 12:49:41 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Sun, 18 Dec 2005 20:49:41 -0000 Subject: [ns] ns-2.1b8a instllation problems In-Reply-To: <43A2F437.6000809@feec.vutbr.cz> Message-ID: <004901c60414$918705c0$172914ac@Estrela> Use package ns-allinone-2.1b8a > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Petr Berka > Sent: sexta-feira, 16 de Dezembro de 2005 17:07 > To: ns-users at ISI.EDU > Subject: [ns] ns-2.1b8a instllation problems > > > Hi all, > > have somebody solved the problem below? I received the same report but > didn't find solution anywhere. > > Thanks for help in advance. > > Petr > > > Hi, ns-users > I downloaded ns-2.1b8a and tarred it and but installation does not > complete i got this error messages: > > tclcl-mappings.h:51: error: incomplete type `Tcl' used in nested name > specifier > tclcl-mappings.h:52: error: invalid use of undefined type `struct Tcl' > tclcl-mappings.h:41: error: forward declaration of `struct Tcl' > tclcl-mappings.h:57: error: invalid use of undefined type `struct Tcl' > tclcl-mappings.h:41: error: forward declaration of `struct Tcl' > make: *** [Tcl.o] Error 1 > tclcl-1.0b11 make failed! Exiting ... > > please any one help From Hailun.Tan at nicta.com.au Sun Dec 18 14:14:18 2005 From: Hailun.Tan at nicta.com.au (Hailun Tan) Date: Mon, 19 Dec 2005 09:14:18 +1100 (EST) Subject: [ns] mobile node communication range In-Reply-To: <3fb281ef0512162159g38341db0y34f2d070e03f62f7@mail.gmail.com> References: <3fb281ef0512162159g38341db0y34f2d070e03f62f7@mail.gmail.com> Message-ID: <2830.203.143.168.90.1134944058.squirrel@mailbag.nicta.com.au> It is set in the God.h under the mobile folder... It should be 250 by default (some constant variable called Range) > > Dear All, > > I want to know how I could the communication range of a mobile node? > > what is its default value? > > Regards, Shahram Mohrehkesh > ---------------------------- Hailun Tan tel:02 8374 5456 email:Hailun.Tan at nicta.com.au Research Assistant ATP,Sydney -------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. From Hailun.Tan at nicta.com.au Sun Dec 18 14:15:52 2005 From: Hailun.Tan at nicta.com.au (Hailun Tan) Date: Mon, 19 Dec 2005 09:15:52 +1100 (EST) Subject: [ns] Problems using DSR In-Reply-To: <779DD7B0-6577-4DA7-8460-9F2631AF7BD7@wadh.ox.ac.uk> References: <779DD7B0-6577-4DA7-8460-9F2631AF7BD7@wadh.ox.ac.uk> Message-ID: <2834.203.143.168.90.1134944152.squirrel@mailbag.nicta.com.au> change the queue type in the node-config environment in tcl script from Queue/DropTail/PriQueue ;# interface queue type to PriQueue only and try to run it again > > Dear all, > > I am comparing the performance of different ad hoc routing protocols > in ns-2. Simulations I have made work wine with AODV and DSDV > protocols however DSR seems to start ok and then at a strange time > will halt the simulation and display 'child killed: bus error'. This > is the error that I got using Mac OS X, when a friend tried the same > simulation using Windows it gave a "Segmentation fault (core > dumped)" error. > > Any help would be very gratefully received, > Many thanks, > David > > ---------------------------- Hailun Tan tel:02 8374 5456 email:Hailun.Tan at nicta.com.au Research Assistant ATP,Sydney -------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. From jondeandres at terra.es Sun Dec 18 17:14:54 2005 From: jondeandres at terra.es (Jon de =?iso-8859-1?q?Andr=E9s?=) Date: Mon, 19 Dec 2005 02:14:54 +0100 Subject: [ns] [NS] Problem to access the neighbors list of mobile nodes In-Reply-To: <58f035250512180724o1d5c395bu1afd939e12a08cc1@mail.gmail.com> References: <439B0902.6070403@gmail.com> <58f035250512180724o1d5c395bu1afd939e12a08cc1@mail.gmail.com> Message-ID: <200512190214.55174.jondeandres@terra.es> I've never used 'make depend' in order to compile ns2. The error you paste don't have any relation with aodv or the nb_delay atribute. I used the nb_delay attitrbute (double) in the neighbour class, in the aodv_rtable.h file. Because you don't use it, you must delete this line: tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); or delete 'nb->nb_delay' and '%f' in it. Bye El Domingo 18 Diciembre 2005 16:24, olivier berho escribi?: > Hi, > > I tried the following code in order to access the neighbords list of a node > using AODV. > > > /************************************************************************** >********************/ Code I used : > > Olivier, > > really i don't see anywhere the link between the neighbour list in C++ and > the > variable neighbour_ you say. I'm making a job with AODV and QoS routing, > and i've made a Tcl command for AODV agent to show its neighbour list and > their delays between the agent. > > I post it for you: > > if(strcmp(argv[1], "show-table")) { > AODV_Neighbor *nb = nbhead.lh_first; > > tcl.evalf("puts \"\nDelay Table of Node: %d \"", index); > tcl.evalf("puts \"\tNode\tDelay\""); > for(;nb;nb=nb->nb_link.le_next ){ > tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); > } > return TCL_OK; > } > You must paste it or something similar in the command function in the AODV > agent. However, the nb_delay attribute you can see should be deleted or > implemented in the aodv_rtable. > > I hope this could help you. > > Bye Olivier. > > /************************************************************************** >****************/ > > > Then when I tried to recompile ns, I made "make depend" and then "make" in > the ns directory and I got the following error : > > /************************************************************************** >****************/ error I got : > > In file included from ../../../config.h:54, > from logparse.h:7, > from tr-stat.cc:24: > ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > > /************************************************************************** >****************/ > > > Is it because of this : "However, the nb_delay attribute you can see should > be deleted or > implemented in the aodv_rtable" that I did not understand ? > > I really wish someone could explain me why I got that error and what I > should do to correct it. > > Thanks a lot, > > Olivier. > > On 12/10/05, Olivier Berho wrote: > > Hello, > > > > I am working on a project about communication between mobile nodes and > > I am nooby in tcl and NS2. > > My first part is about sending packets to each nearly neighbors of a > > node. > > > > I know that there is a variable "neighbors_" which contains the > > neighbors of each node but I cannot access these informations. First > > because I have some problems to access the list using tcl and second > > because The list seems to be empty when the topology of my network is > > created. > > > > I am using the AODV routing protocol which should update itself the > > variable of the neighbors but I don't know how access it. > > > > Thanks a lot for help, > > > > Olivier. > > > > > > P.S : I am a French student,and I apologize for the mistakes in my > > English. -- Jon de Andr?s Fr?as GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From sergey.semionov at gmail.com Mon Dec 19 03:50:57 2005 From: sergey.semionov at gmail.com (Sergey Semenov) Date: Mon, 19 Dec 2005 14:50:57 +0300 Subject: [ns] Real-time emulation using NS-2 In-Reply-To: References: Message-ID: <836f3f380512190350k1518bff0m3b1fc155ed89b49a@mail.gmail.com> Hi, > One thing I have not been able to get a clear understanding for, is the > usage of the "slop-factor" that ns provides. I can't seem to play with > it to improve the real-time accuracy any better than +-1 ms. Makes > sense if the kernel time-slice is 2 ms (500 HZ jiffy), I think. Perhaps > someone on this list has better experience with this. I think, that HZ jiffies in kernel doesn't affect on accuracy because it's only a frequency when the schedule() function is called (main schedule procedure in linux kernel). But the 2.6.x kernel has a great improvements in speed if you compare it with 2.4.x family, especially when you speak about the running in high-priority mode (using nice -19 command) Now i'm working on another real-time emulation extension in ns-2. And after i would like to measure performance with basic ns-2 extension and extension of Daniel Mahrenholz's team with their improvements(see it here: ivs.cs.uni-magdeburg.de). I will publish the result later. But in any way we are making the same business =), so i hope my results will be interesting for you also. With best regards, Sergey Semionov From f.kolovos at gmail.com Mon Dec 19 06:35:49 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Mon, 19 Dec 2005 16:35:49 +0200 Subject: [ns] malicious node Message-ID: <8372803c0512190635m214b0c74jd1e5936476ee112a@mail.gmail.com> I think that you should check the NS-2 manual for "Worm Model" simulation in page 353 of the manual. I have never tried it but the manual there describes such kind of simulations, using Worm model propagation characteristics. -Fk > > > ---------- Forwarded message ---------- > From: "azri Abdul Majid" > To: ns-users at ISI.EDU > Date: Sat, 17 Dec 2005 17:13:33 +0800 > Subject: [ns] malicious node > hi guys, > > anyone out there ever simulate malicious node using ns-2? how to simulate > malicious node in ns-2? > > - azri abdul majid > > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr Web: http://ermhs.tripod.com ---------------------------------------------- From vindya.amaradasa at elec.qmul.ac.uk Mon Dec 19 10:02:49 2005 From: vindya.amaradasa at elec.qmul.ac.uk (Vindya Amaradasa) Date: Mon, 19 Dec 2005 18:02:49 -0000 Subject: [ns] RAMP - errors! Message-ID: <018301c604c6$6caa3e90$7221258a@vpn.elec.qmul.ac.uk> Hi, I've been trying to get RAMP (Rapid Model Parameterization) to work but it gives errors. I've done make to get http_connect & http_active & tried to run ramp with a command like this: (as given in the readme file) ./RAMP tracefile 1000 128.9.0.0/255.255.0.0 where tracefile is my tcpdump trace. The first error it gives is that usr/sbin/tcpdump: not found. Fair enough, such a file doesn't exist! I found a tcpd.exe somewhere else & tried with that. That got rid of the error, but it's not doing what it's supposed to do:( The other erros are things like dat2cdf not found. I changed dat2cdf to ./dat2cdf on the RAMP file. That eliminated the error & it created a set of files. However, the files are empty! Also, now it gives a set of errors saying uninitialised values in io.pl & io.www.pl. And it's the same with both ns-2.27 & 2.28. What am I doing wrong? Any tips will be greatly appreciated! Could I be using the wrong file format of tcpdump? If so, can somebody kindly give me a link to where I can get some sample files of the correct format? Thanks in advance! ```````````````````````````````````````````````````````````````````````````````````````````` Vindya Amaradasa Research Student Network & Service Assurance Group Electronic Engineering Department Queen Mary, University of London London E1 4NS Tel : (44) 020 7882 5356 Fax : (44) 020 7882 7997 Email: vindya.amaradasa at elec.qmul.ac.uk ```````````````````````````````````````````````````````````````````````````````````````````` From ahmedm9 at lsbu.ac.uk Mon Dec 19 10:52:14 2005 From: ahmedm9 at lsbu.ac.uk (Ahmed, Masroor 9) Date: Mon, 19 Dec 2005 18:52:14 -0000 Subject: [ns] help on wireless3.tcl Message-ID: <9FFEE39DADA4A442B06FB5673765F410D062BB@CSD-EXBE-VS1.lsbu.ac.uk> Hi, Guys can any body highlight in wireless3-out.tr these lines We see routine beacon broadcast/solicitations sent out by HA/FA and the MH. Initially the TCP pkts are handed down to MH directly by its HA. As MH moves away from HA domain into the domain of the FA, we find the pkts destined for MH, being encapsulated and forwarded to the FA which then strips off or decapsulates the pkt and hands it over to the MH. These paragraph is from http://www.isi.edu/nsnam/ns/tutorial/ actually....i want to know where is routine beacon broadcast/solicitations make the line bold and reply me...thanks While running the script, you may see warnings like "warning: Route to base_stn not known: dropping pkt". This means that as the MH moves from the domain of one base-station into domain of another there may be interim periods when it is not registered to any base-station and thus doesnot know whom to forward pkts destined outside its domain. On completion of the run, ns and nam trace output files "wireless3-out.tr" and "wireless3-out.nam" are created. The nam output shows the movement of the mobilehost and traffic flow in the wired domain. The ns trace output shows traces for both the wired nodes as well as the wireless domain. We see routine beacon broadcast/solicitations sent out by HA/FA and the MH. Initially the TCP pkts are handed down to MH directly by its HA. As MH moves away from HA domain into the domain of the FA, we find the pkts destined for MH, being encapsulated and forwarded to the FA which then strips off or decapsulates the pkt and hands it over to the MH. MASROOR AHMED From vindya.amaradasa at elec.qmul.ac.uk Mon Dec 19 15:56:19 2005 From: vindya.amaradasa at elec.qmul.ac.uk (Vindya Amaradasa) Date: Mon, 19 Dec 2005 23:56:19 -0000 Subject: [ns] RAMP - errors! References: <018301c604c6$6caa3e90$7221258a@vpn.elec.qmul.ac.uk> <43A71522.3080503@wgserve.de> Message-ID: <00ff01c604f7$d0de9880$0400a8c0@MRTECHNO> ----- Original Message ----- From: "Bernd Roemer" To: "Vindya Amaradasa" Sent: Monday, December 19, 2005 8:16 PM Subject: Re: [ns] RAMP - errors! > Vindya Amaradasa wrote: > > Hi, > > > > I've been trying to get RAMP (Rapid Model Parameterization) to work but it gives errors. I've done make to get http_connect & http_active & tried to run ramp with a command like this: (as given in the readme file) > > ./RAMP tracefile 1000 128.9.0.0/255.255.0.0 > > > > where tracefile is my tcpdump trace. > > > > The first error it gives is that usr/sbin/tcpdump: not found. Fair enough, such a file doesn't exist! I found a tcpd.exe somewhere else & tried with that. That got rid of the error, but it's not doing what it's supposed to do:( > > > > The other erros are things like dat2cdf not found. I changed dat2cdf to ./dat2cdf on the RAMP file. That eliminated the error & it created a set of files. However, the files are empty! > > > > Also, now it gives a set of errors saying uninitialised values in io.pl & io.www.pl. > > > > And it's the same with both ns-2.27 & 2.28. > > > > What am I doing wrong? Any tips will be greatly appreciated! > > > > Could I be using the wrong file format of tcpdump? If so, can somebody kindly give me a link to where I can get some sample files of the correct format? > > > > use ramp on a standard linux mashine!! dont use ramp for huge traces.. > it will thereby excessively flood your memory :) > > cu > > ---Bernd Roemer--- > > From vindya.amaradasa at elec.qmul.ac.uk Mon Dec 19 17:11:43 2005 From: vindya.amaradasa at elec.qmul.ac.uk (Vindya Amaradasa) Date: Tue, 20 Dec 2005 01:11:43 -0000 Subject: [ns] RAMP - errors! References: <018301c604c6$6caa3e90$7221258a@vpn.elec.qmul.ac.uk> <43A71522.3080503@wgserve.de> Message-ID: <013c01c60502$575e7740$0400a8c0@MRTECHNO> Thanks a lot for the quick reply! No, I'm not using long traces - so that can't be the problem. I'm running it on cygwin. Don't think that would be an issue either. (ns, nam, xgraph etc. all works in it) Any ideas? Thanks! Vindya ----- Original Message ----- From: "Bernd Roemer" To: "Vindya Amaradasa" Sent: Monday, December 19, 2005 8:16 PM Subject: Re: [ns] RAMP - errors! > Vindya Amaradasa wrote: > > Hi, > > > > I've been trying to get RAMP (Rapid Model Parameterization) to work but it gives errors. I've done make to get http_connect & http_active & tried to run ramp with a command like this: (as given in the readme file) > > ./RAMP tracefile 1000 128.9.0.0/255.255.0.0 > > > > where tracefile is my tcpdump trace. > > > > The first error it gives is that usr/sbin/tcpdump: not found. Fair enough, such a file doesn't exist! I found a tcpd.exe somewhere else & tried with that. That got rid of the error, but it's not doing what it's supposed to do:( > > > > The other erros are things like dat2cdf not found. I changed dat2cdf to ./dat2cdf on the RAMP file. That eliminated the error & it created a set of files. However, the files are empty! > > > > Also, now it gives a set of errors saying uninitialised values in io.pl & io.www.pl. > > > > And it's the same with both ns-2.27 & 2.28. > > > > What am I doing wrong? Any tips will be greatly appreciated! > > > > Could I be using the wrong file format of tcpdump? If so, can somebody kindly give me a link to where I can get some sample files of the correct format? > > > > use ramp on a standard linux mashine!! dont use ramp for huge traces.. > it will thereby excessively flood your memory :) > > cu > > ---Bernd Roemer--- > > From amol_pise2002 at yahoo.co.in Mon Dec 19 22:03:39 2005 From: amol_pise2002 at yahoo.co.in (amol pise) Date: Mon, 19 Dec 2005 22:03:39 -0800 (PST) Subject: [ns] How to convert MPEG trace to binary form for ns Message-ID: <20051220060339.12209.qmail@web8203.mail.in.yahoo.com> hi friends, I searched for various video traces(from mentioned links in ns2 user-mail) and used them in "Video_trace.tcl" script (by Michael Savoric) but it gives me segmentation fault as well bad file size fault. So with refrence to ns-user mail list I got solution that use separate programm for convertion of trace file and then use converted trace file in programm. It works but only shows NAM window and when I go for play, it doesnt run.... Whats problem I couldnt understand. Also I used these converted Video traces in tcl/ex/tg.tcl script , I got same problem....What is this.? Whether trace file gets corruped ? plz give me solution.... Also if anybody having script that converts MPEG video traces into binary form, its great help for me .... So that I can use it directly into my ns2. Thanks in advance........... regards, amol............. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sv_jalali at yahoo.com Mon Dec 19 23:11:20 2005 From: sv_jalali at yahoo.com (ICE MAN) Date: Mon, 19 Dec 2005 23:11:20 -0800 (PST) Subject: [ns] Installation problem with ns2.29 All-in-one On Redhat-13 Fedora Core 4 !!! Message-ID: <20051220071120.84661.qmail@web53704.mail.yahoo.com> Hello, compile result: make:***no rule to make target 'VERSION'. needed by 'gen/version.c'. stop. Ns make failed! see http://www.isi.edu/.../ns-problems.html I did this works before Install: >I decompressed "ns-allinone-2.29.1.tar.gz" with "Power Archiver 8.00.53" Under windows Xp, >and then rebooted into "Linux 13 FedoraCore4" ; copied all the folder in "ns" path in my "home" directory, >under "Terminal" of Linux, in that folder typed "/install" & installation has began. some programs as tcl8 are maked successfully ( containing some warrnings ), >but at the end of the process Upper result was shown and there is no "ns" executable file in "bin" folder. I strongly need your help. sv_jalali at yahoo.com thank's. Regards, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From anup.mayank at gmail.com Mon Dec 19 23:34:24 2005 From: anup.mayank at gmail.com (Anup Mayank) Date: Mon, 19 Dec 2005 23:34:24 -0800 Subject: [ns] changing Pt_ value from C++ code In-Reply-To: <469192b00512192327g50d9136dy19b1bdee76f5a8b7@mail.gmail.com> References: <469192b00512192327g50d9136dy19b1bdee76f5a8b7@mail.gmail.com> Message-ID: <469192b00512192334k3d582cdfuad3e530287bd3cbf@mail.gmail.com> Hi All, > > I am trying to assign different transmission ranges to nodes of a mobile > wireless network. > To do this i have to change the Pt_ value associated with node. > > I have got the the pointer to MobileNode as > > MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_); > > But i am having conusion in changing the default Pt_ value for the node. > If some one can let me know how to do it from the C++ code then it will be > great. > > Thanks > Anup > > -- > I don't know the key to success, but the key to failure is trying to > please everybody. > - Bill Cosby > My mother drew a distinction between achievement and success. She said > that 'achievement is the knowledge that you have studied and worked hard and > done the best that is in you. Success is being praised by others, and that's > nice, too, but not as important or satisfying. Always aim for achievement > and forget about success.' > Helen Hayes (1900 - 1993) From sv_jalali at yahoo.com Mon Dec 19 23:39:57 2005 From: sv_jalali at yahoo.com (ICE MAN) Date: Mon, 19 Dec 2005 23:39:57 -0800 (PST) Subject: [ns] Linux does not allow me copy something in "root" or elsewhere! Message-ID: <20051220073957.29365.qmail@web53709.mail.yahoo.com> Hi, How are you friends? I have a problem with Linux RdHat13 Fedoracore4! It does not allow me to copy any thing into root directory!? and says you are not the "OWNER" !!! Can you help me? Is there any way to configure "Owner" 's Options? Thank's. please write, sv_jalali at yahoo.com Regard, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sayenko at cc.jyu.fi Tue Dec 20 00:21:05 2005 From: sayenko at cc.jyu.fi (Alexander Sayenko) Date: Tue, 20 Dec 2005 10:21:05 +0200 Subject: [ns] New version of WFQ References: <20051219143910.8F6BA1414F@mail.fesurv.br> Message-ID: <001501c6053e$52b20ef0$62a9ea82@it.jyu.fi> Hi This is the WFQ discipline that works in the NS-2 general scheduling framework, not DiffServ. Sincerely, Sayenko Alexander Assistant Telecommunication laboratory, MIT department University of Jyvaskyla, Finland > Hi Alex, this WFQ is for intserv? > Regards, > > Augusto > > > --------- Mensagem Original -------- > De: Alexander Sayenko > Para: ns-users at isi.edu > Assunto: [ns] New version of WFQ > Data: 14/12/05 14:02 > > > > > > > Dear NS users > > > > I am pleased to announce a new version of WFQ. Basically, it provides the > > same functionality comparing to the previous version, but now it can > applied > > easily > > to several versions NS-2. It has been tested with v2.27, v2.28, and v2.29. > > > > http://www.cc.jyu.fi/~sayenko/src/wfq-1.2.4.tar.gz > > > > Sincerely, > > Sayenko Alexander > > Assistant > > Telecommunication laboratory, MIT department > > University of Jyvaskyla, Finland > > > > > > > > > >

> _________________________________________________
> E-mail > enviado pelo Webmail da Fesurv
> www.fesurv.br - (64) 3620.2200 - Rio > Verde - Goi?s

> From anup.ns at gmail.com Tue Dec 20 01:22:59 2005 From: anup.ns at gmail.com (A Anupama) Date: Tue, 20 Dec 2005 14:52:59 +0530 Subject: [ns] How to access location/position of a wireless mobile node ? Message-ID: <252d6e1c0512200122u7a8d99e9o2308ffcd212c16ca@mail.gmail.com> Hi all, I am implementing some security extensions to AODV protocol. I am having some doubts.... 1) How can I know the location information ((x,y,z) co-ordinate form) of a mobile wireless node at protocol design time as i required to use the location information while sending a packet ? 2) How the co-ordinate system in ns/nam ((x,y,z) co-ordinate system) is mapped with actual location ? As the transmission range is described in meters , how can we know depending on the location (x,y,z) information whether two nodes are in transmission range or not ? Thanks in advance... Regards Anupama From jondeandres at terra.es Tue Dec 20 03:52:52 2005 From: jondeandres at terra.es (Jon de =?iso-8859-1?q?Andr=E9s?=) Date: Tue, 20 Dec 2005 12:52:52 +0100 Subject: [ns] Installation problem with ns2.29 All-in-one On Redhat-13 Fedora Core 4 !!! In-Reply-To: <20051220071120.84661.qmail@web53704.mail.yahoo.com> References: <20051220071120.84661.qmail@web53704.mail.yahoo.com> Message-ID: <200512201252.52716.jondeandres@terra.es> Try descompressing the targz in your GNU system, because it could be a problem with the privileges of the files, wich are not considered in your fucking Windows system :). Try this, if not work, send us another message. El Martes 20 Diciembre 2005 08:11, ICE MAN escribi?: > Hello, > > compile result: > make:***no rule to make target 'VERSION'. needed by 'gen/version.c'. > stop. Ns make failed! > see http://www.isi.edu/.../ns-problems.html > > I did this works before Install: > >I decompressed "ns-allinone-2.29.1.tar.gz" with "Power Archiver 8.00.53" > > Under > > windows Xp, > > >and then rebooted into "Linux 13 FedoraCore4" ; copied all the folder in > > "ns" path in > > my "home" directory, > > >under "Terminal" of Linux, in that folder typed "/install" & installation > > has began. > > some programs as tcl8 are maked successfully ( containing some warrnings > ), > > >but at the end of the process Upper result was shown and there is no "ns" > > executable file in "bin" folder. > > I strongly need your help. > sv_jalali at yahoo.com > > thank's. > Regards, > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- Jon de Andr?s Fr?as GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From chenlincl_cl at hotmail.com Tue Dec 20 04:17:46 2005 From: chenlincl_cl at hotmail.com (=?gb2312?B?s8IgwdY=?=) Date: Tue, 20 Dec 2005 20:17:46 +0800 Subject: [ns] how to adjust the communication range and the power of 802.11? Message-ID: Hi How to adjust the communication range and the power of 802.11? Regards lin chen _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn From misdemeanorfr at yahoo.fr Tue Dec 20 04:27:40 2005 From: misdemeanorfr at yahoo.fr (Aysha S) Date: Tue, 20 Dec 2005 13:27:40 +0100 (CET) Subject: [ns] how to install nsallinone-2.1b4a for AOMDV? Message-ID: <20051220122740.88998.qmail@web26008.mail.ukl.yahoo.com> Hi all, I have sent many mails regarding building AOMDV in ns-2.27 but no answer. So the other option is to build ns-allinone-2.1b4a the package for which AOMDV was developed for. However I'm not too sure which platform shall I use for a successful installation. Could anyone advise me on this matter. Thanks Aicha --------------------------------- Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.T?l?chargez la version beta. From xuzy_sun1 at 163.com Tue Dec 20 04:43:29 2005 From: xuzy_sun1 at 163.com (xuzy) Date: Tue, 20 Dec 2005 20:43:29 +0800 Subject: [ns] simulation problem of TDMA and based contention Message-ID: <002201c60562$fd7624b0$671410ac@xuzy> In my simulation, there are some clusters. TDMA is used in the cluster, and MAC based contention is used among cluster. So how to achieve in the simulation? where is the example like? Thanks! xuzy From xuzy_sun1 at 163.com Tue Dec 20 04:43:02 2005 From: xuzy_sun1 at 163.com (xuzy) Date: Tue, 20 Dec 2005 20:43:02 +0800 Subject: [ns] how to realize 'event reliability' of sensor network in ns simulation? Message-ID: <001401c60562$ec77b5c0$671410ac@xuzy> As we know, event infomation generated by sensors around a event always are related. So for a sink, it is enough to be guaranted to get whole infomation of the event--'event reliability', instead of every sensed event infomation. But how to realize it? Any idea is welcomed! xuzy From d.duda at wil.waw.pl Tue Dec 20 05:56:29 2005 From: d.duda at wil.waw.pl (Damian Duda) Date: Tue, 20 Dec 2005 14:56:29 +0100 Subject: [ns] Installation problem with ns2.29 All-in-one On Redhat-13Fedora Core 4 !!! References: <20051220071120.84661.qmail@web53704.mail.yahoo.com> Message-ID: <004b01c6056d$2d934c40$9200010a@ziemia> Hi, The best thing to do is: 1) switch to Linux 2) copy "ns-allinone-2.29.1.tar.gz" from Windows folders to e.g. /home/yourhome/ 3) decompress: I used "ark" under KDE (Slackware 10.2) but "tar -xvf ns-allinone-2.29.1.tar.gz" should bo OK 4) the next you know DD ----- Original Message ----- From: "ICE MAN" To: Sent: Tuesday, December 20, 2005 8:11 AM Subject: [ns] Installation problem with ns2.29 All-in-one On Redhat-13Fedora Core 4 !!! > > Hello, > > compile result: > make:***no rule to make target 'VERSION'. needed by 'gen/version.c'. stop. > Ns make failed! > see http://www.isi.edu/.../ns-problems.html > > I did this works before Install: > >I decompressed "ns-allinone-2.29.1.tar.gz" with "Power Archiver 8.00.53" Under > windows Xp, > >and then rebooted into "Linux 13 FedoraCore4" ; copied all the folder in "ns" path in > my "home" directory, > >under "Terminal" of Linux, in that folder typed "/install" & installation has began. > some programs as tcl8 are maked successfully ( containing some warrnings ), > >but at the end of the process Upper result was shown and there is no "ns" > executable file in "bin" folder. > > I strongly need your help. > sv_jalali at yahoo.com > > thank's. > Regards, > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From vinu_chandar at yahoo.co.in Tue Dec 20 06:48:46 2005 From: vinu_chandar at yahoo.co.in (vInoTh) Date: Tue, 20 Dec 2005 14:48:46 +0000 (GMT) Subject: [ns] multicasting bug.... Message-ID: <20051220144846.96038.qmail@web8411.mail.in.yahoo.com> i got a bug while executing the below procedure. (Myagent is a udp agent created that just functions as a UDP agent that ships with ns) proc ctrlAckDcs {} { global ns ctrler dc set group [Node allocaddr] set p0 [new Agent/Myagent] $ns attach-agent $ctrler $p0 $p0 set dst_addr_ $group $p0 set dst_port_ 0 set rcvr1 [new Agent/Myagent] set rcvr2 [new Agent/Myagent] set rcvr3 [new Agent/Myagent] $ns attach-agent $dc(1) $rcvr1 $ns attach-agent $dc(2) $rcvr2 $ns attach-agent $dc(3) $rcvr3 $ns at 0.6 "$dc(1) join-group $rcvr1 $group" $ns at 1.5 "$dc(1) leave-group $rcvr1 $group" $ns at 0.6 "$dc(2) join-group $rcvr2 $group" $ns at 1.5 "$dc(2) leave-group $rcvr2 $group" $ns at 0.6 "$dc(3) join-group $rcvr3 $group" $ns at 1.5 "$dc(3) leave-group $rcvr3 $group" ##usage :: $agent operation type data senderDesignation #$ns at 0.7 "$p0 send MRDA Ready.. CTLR DCs " } the error said ----------------------------------------------------- : _o29 new-group 2 -2147483648 -1 cache-miss: can't read "protocols_(-1)": no such variable while executing "$protocols_($iface) upcall $code $source $group $iface" (procedure "_o30" line 9) (mrtObject upcall line 9) invoked from within "$mrtObject_ upcall $code $src $group $iface" (procedure "_o24" line 3) (Node new-group line 3) invoked from within "$node_ new-group $src $group $iface $code" (procedure "_o29" line 3) (Classifier/Multicast new-group line 3) invoked from within "_o29 new-group 2 -2147483648 -1 cache-miss" -------------------------- the same code worked in a another procedure of the same type in another tcl script.... Can you help me??? i am having headache for a week now VINU "Fight Till there is some life left in you coz Victory comes only at the end of the Fight!!" Send instant messages to your online friends http://in.messenger.yahoo.com From vinu_chandar at yahoo.co.in Tue Dec 20 06:58:16 2005 From: vinu_chandar at yahoo.co.in (vInoTh) Date: Tue, 20 Dec 2005 14:58:16 +0000 (GMT) Subject: [ns] multicasting bug... help me . i am desperate Message-ID: <20051220145816.51321.qmail@web8410.mail.in.yahoo.com> i got a bug while executing the below procedure. (Myagent is a udp agent created that just functions as a UDP agent that ships with ns) proc ctrlAckDcs {} { global ns ctrler dc set group [Node allocaddr] set p0 [new Agent/Myagent] $ns attach-agent $ctrler $p0 $p0 set dst_addr_ $group $p0 set dst_port_ 0 set rcvr1 [new Agent/Myagent] set rcvr2 [new Agent/Myagent] set rcvr3 [new Agent/Myagent] $ns attach-agent $dc(1) $rcvr1 $ns attach-agent $dc(2) $rcvr2 $ns attach-agent $dc(3) $rcvr3 $ns at 0.6 "$dc(1) join-group $rcvr1 $group" $ns at 1.5 "$dc(1) leave-group $rcvr1 $group" $ns at 0.6 "$dc(2) join-group $rcvr2 $group" $ns at 1.5 "$dc(2) leave-group $rcvr2 $group" $ns at 0.6 "$dc(3) join-group $rcvr3 $group" $ns at 1.5 "$dc(3) leave-group $rcvr3 $group" ##usage :: $agent operation type data senderDesignation #$ns at 0.7 "$p0 send MRDA Ready.. CTLR DCs " } the error said ----------------------------------------------------- : _o29 new-group 2 -2147483648 -1 cache-miss: can't read "protocols_(-1)": no such variable while executing "$protocols_($iface) upcall $code $source $group $iface" (procedure "_o30" line 9) (mrtObject upcall line 9) invoked from within "$mrtObject_ upcall $code $src $group $iface" (procedure "_o24" line 3) (Node new-group line 3) invoked from within "$node_ new-group $src $group $iface $code" (procedure "_o29" line 3) (Classifier/Multicast new-group line 3) invoked from within "_o29 new-group 2 -2147483648 -1 cache-miss" -------------------------- the same code worked in a another procedure of the same type in another tcl script.... Can you help me??? i am having headache for a week now VINU "Fight Till there is some life left in you coz Victory comes only at the end of the Fight!!" Send instant messages to your online friends http://in.messenger.yahoo.com From wido at o2.pl Tue Dec 20 07:23:20 2005 From: wido at o2.pl (Jaroslaw Malek) Date: Tue, 20 Dec 2005 16:23:20 +0100 Subject: [ns] [ANN] Trace converter is up to 400x faster than Trace graph Message-ID: <192429808.20051220162320@o2.pl> Hello, Trace converter converts ns-2 trace files to Trace graph (ns-2 traces analyser) format up to 400x faster than Trace graph! Free demo is available to download. Trace converter web site: http://www.tracegraph.com/traceconverter.html Best regards, Jaroslaw Malek From boonkean at tm.net.my Tue Dec 20 08:14:40 2005 From: boonkean at tm.net.my (boon) Date: Wed, 21 Dec 2005 00:14:40 +0800 Subject: [ns] Change 802.11 Wireless Link from 1Mbps to 54Mbps Message-ID: <20051220161509.EFFE0D0072F7@bar11.tm.net.my> Hi all, I plan to create wireless link 54Mbps for 802.11g. But the default in NS-2 for wireless link is 1Mbps. Does anyone know how to change it to 54Mbps? Thanks in advance. From kamal.nsuser at gmail.com Tue Dec 20 10:12:01 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Tue, 20 Dec 2005 19:12:01 +0100 Subject: [ns] simulation problem of TDMA and based contention In-Reply-To: <002201c60562$fd7624b0$671410ac@xuzy> References: <002201c60562$fd7624b0$671410ac@xuzy> Message-ID: If there is TDMA amonf clusters then there should be "no contest" and hence no contention among clusters. Can you please specify what would you like to do..?? On 12/20/05, xuzy wrote: > > > > > In my simulation, there are some clusters. TDMA is used in the cluster, > and MAC based contention is used among cluster. So how to achieve in the > simulation? where is the example like? > Thanks! > > xuzy > -- Kamal From kamal.nsuser at gmail.com Tue Dec 20 10:15:05 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Tue, 20 Dec 2005 19:15:05 +0100 Subject: [ns] Linux does not allow me copy something in "root" or elsewhere! In-Reply-To: <20051220073957.29365.qmail@web53709.mail.yahoo.com> References: <20051220073957.29365.qmail@web53709.mail.yahoo.com> Message-ID: THIS IS NS-USERS FORUM. plz consult web for linux problems. Clearly if you are NOT the owner then someone else is. ASK HIM. On 12/20/05, ICE MAN wrote: > > > Hi, > How are you friends? > > I have a problem with Linux RdHat13 Fedoracore4! > It does not allow me to copy any thing into root directory!? and says you > are not the "OWNER" !!! > Can you help me? Is there any way to configure "Owner" 's Options? > Thank's. > > please write, sv_jalali at yahoo.com > Regard, > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- Kamal From kamal.nsuser at gmail.com Tue Dec 20 10:19:46 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Tue, 20 Dec 2005 19:19:46 +0100 Subject: [ns] How to convert MPEG trace to binary form for ns In-Reply-To: <20051220060339.12209.qmail@web8203.mail.in.yahoo.com> References: <20051220060339.12209.qmail@web8203.mail.in.yahoo.com> Message-ID: If nam doesn't run that means "perhaps" the format is not supported as nam is not perfect! I have no check at this time though. check out "trace" file for what you want to observe (I think it's graphs which should interest you more than running pkts). On 12/20/05, amol pise wrote: > > > hi friends, > I searched for various video traces(from mentioned links in ns2 > user-mail) and used them in "Video_trace.tcl" script (by Michael Savoric) > but it gives me segmentation fault as well bad file size fault. > So with refrence to ns-user mail list I got solution that use separate > programm for convertion of trace file and then use converted trace file in > programm. > It works but only shows NAM window and when I go for play, it doesnt > run.... > Whats problem I couldnt understand. > Also I used these converted Video traces in tcl/ex/tg.tcl script , I > got same > problem....What is this.? > Whether trace file gets corruped ? plz give me solution.... Also if > anybody having script that converts MPEG video traces into binary form, its > great help for me .... > So that I can use it directly into my ns2. > Thanks in advance........... > regards, > amol............. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- Kamal From anup.mayank at gmail.com Tue Dec 20 18:53:09 2005 From: anup.mayank at gmail.com (Anup Mayank) Date: Tue, 20 Dec 2005 18:53:09 -0800 Subject: [ns] Energy used in transmitting 1KB of data to another peer node Message-ID: <469192b00512201853r74dff3d2ra0d11da838ddd73e@mail.gmail.com> Hi All, I want to know how much energy is used by a wireless mobile node in transmitting 1KB of data from one node to another node in its neighbor. Is there any formula to find out this information. Please help me with it. Thanks Anup -- I don't know the key to success, but the key to failure is trying to please everybody. - Bill Cosby My mother drew a distinction between achievement and success. She said that 'achievement is the knowledge that you have studied and worked hard and done the best that is in you. Success is being praised by others, and that's nice, too, but not as important or satisfying. Always aim for achievement and forget about success.' Helen Hayes (1900 - 1993) From anup.mayank at gmail.com Tue Dec 20 19:02:17 2005 From: anup.mayank at gmail.com (Anup Mayank) Date: Tue, 20 Dec 2005 19:02:17 -0800 Subject: [ns] How to access location/position of a wireless mobile node ? In-Reply-To: <252d6e1c0512200122u7a8d99e9o2308ffcd212c16ca@mail.gmail.com> References: <252d6e1c0512200122u7a8d99e9o2308ffcd212c16ca@mail.gmail.com> Message-ID: <469192b00512201902u23941536w4b3cda81b12edd31@mail.gmail.com> Hi Anupama, Answer to your first question is as follows: MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); // id_ is the id of node double x,y,z; curNode->getLoc(&x,&y,&z); This will assign the X,Y,Z coordinate value to your local variable. I hope this helps. Anup On 12/20/05, A Anupama wrote: > > > Hi all, > > I am implementing some security extensions to AODV protocol. I am having > some doubts.... > 1) How can I know the location information ((x,y,z) co-ordinate > form) of > a mobile wireless node at protocol design time as i required to use the > location information while sending a packet ? > 2) How the co-ordinate system in ns/nam ((x,y,z) co-ordinate system) is > mapped with actual location ? As the transmission range is described in > meters , how can we know depending on the location (x,y,z) information > whether two nodes are in transmission range or not ? > > Thanks in advance... > > Regards > Anupama > -- I don't know the key to success, but the key to failure is trying to please everybody. - Bill Cosby My mother drew a distinction between achievement and success. She said that 'achievement is the knowledge that you have studied and worked hard and done the best that is in you. Success is being praised by others, and that's nice, too, but not as important or satisfying. Always aim for achievement and forget about success.' Helen Hayes (1900 - 1993) From Arun_Sathanur at satyam.com Tue Dec 20 19:12:07 2005 From: Arun_Sathanur at satyam.com (Arun_Sathanur) Date: Wed, 21 Dec 2005 08:42:07 +0530 Subject: [ns] Change 802.11 Wireless Link from 1Mbps to 54Mbps Message-ID: <9E2CF8F41656E247AE8F1612D19E95BF0189EDCF@blamsg001.corp.satyam.ad> Use the following MAC setting. Mac/802_11 set dataRate_ 54Mb Arun -----Original Message----- From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of boon Sent: Tuesday, December 20, 2005 9:45 PM To: ns-users at ISI.EDU Subject: [ns] Change 802.11 Wireless Link from 1Mbps to 54Mbps Hi all, I plan to create wireless link 54Mbps for 802.11g. But the default in NS-2 for wireless link is 1Mbps. Does anyone know how to change it to 54Mbps? Thanks in advance. DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. From FabianWolff at gmx.de Tue Dec 20 21:39:06 2005 From: FabianWolff at gmx.de (Fabian Wolff) Date: Wed, 21 Dec 2005 06:39:06 +0100 (MET) Subject: [ns] How to access to neighbors of a wireless mobile node ? References: <469192b00512201902u23941536w4b3cda81b12edd31@mail.gmail.com> Message-ID: <16067.1135143546@www20.gmx.net> Hi, I have a similar problem (I am able to get the MobileNodes), but I need to get access to a list of the neighbors of this node. In my case, I want to use OLSR, I need to know which nodes are available in the current network, but it would be already enough if I would get information about the neighbors of my current mobilenode. I wanted to use neighbor_list_ (derived attribute from class node), but this attribute is allways 0, thus I can't get any neighbor information for my current node I hope anybody can help me. Best regards, Fabian > Hi Anupama, > > Answer to your first question is as follows: > > MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); // > id_ is the id of node > double x,y,z; > curNode->getLoc(&x,&y,&z); > > This will assign the X,Y,Z coordinate value to your local variable. > > I hope this helps. > -- Lieber ein faules Genie als ein flei?iger Idiot 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse f?r Mail, Message, More +++ From anup.mayank at gmail.com Tue Dec 20 22:21:32 2005 From: anup.mayank at gmail.com (Anup Mayank) Date: Tue, 20 Dec 2005 22:21:32 -0800 Subject: [ns] How to access to neighbors of a wireless mobile node ? In-Reply-To: <16067.1135143546@www20.gmx.net> References: <469192b00512201902u23941536w4b3cda81b12edd31@mail.gmail.com> <16067.1135143546@www20.gmx.net> Message-ID: <469192b00512202221y2a20ee5dra41c7bb385d4c27f@mail.gmail.com> Hi, One of solving this problem can be as follows int findNeighbors(int *neighborList) //returns the total number of neighbors and populates neighborList { MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_)); if(curNode==NULL) { printf("findNeighbors Error: Mobile node object points to NULL\n"); exit(1); } double curX,curY,curZ; curNode->getLoc(&curX,&curY,&curZ); if(curX<0||curY<0) { printf("findNeighbors Error: Coordinate of mobile node out of range\n"); exit(1); } MobileNode * otherNode; double ox,oy,oz; //Location of other mobile nodes int neighborCount=0; //neighborList = new int[numNode]; for(int i=0;igetLoc(&ox,&oy,&oz); if(ox<0||oy<0) { printf("findNeighbors Error: Coordinate of mobile node out of range\n"); exit(1); } double dist=sqrt((curX-ox)*(curX-ox)+(curY-oy)*(curY-oy)); if(dist<=250.0) //Node lies in the transmission line { neighborList[neighborCount]=i; neighborCount++; } } return neighborCount; } This code assumes that mobile nodes have default transmission range of 250 m. It will not be tough to tweak it for heterogeneous mobile nodes. Cheers Anup On 12/20/05, Fabian Wolff wrote: > > Hi, > > I have a similar problem (I am able to get the MobileNodes), but I need to > get access to a list of the neighbors of this node. In my case, I want to > use OLSR, I need to know which nodes are available in the current network, > but it would be already enough if I would get information about the > neighbors of my current mobilenode. > I wanted to use neighbor_list_ (derived attribute from class node), but > this > attribute is allways 0, thus I can't get any neighbor information for my > current node > > I hope anybody can help me. > > Best regards, > Fabian > > > > Hi Anupama, > > > > Answer to your first question is as follows: > > > > MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); > // > > id_ is the id of node > > double x,y,z; > > curNode->getLoc(&x,&y,&z); > > > > This will assign the X,Y,Z coordinate value to your local variable. > > > > I hope this helps. > > > > -- > Lieber ein faules Genie als ein flei?iger Idiot > > 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail > +++ GMX - die erste Adresse f?r Mail, Message, More +++ > -- I don't know the key to success, but the key to failure is trying to please everybody. - Bill Cosby My mother drew a distinction between achievement and success. She said that 'achievement is the knowledge that you have studied and worked hard and done the best that is in you. Success is being praised by others, and that's nice, too, but not as important or satisfying. Always aim for achievement and forget about success.' Helen Hayes (1900 - 1993) From anup.mayank at gmail.com Tue Dec 20 22:28:09 2005 From: anup.mayank at gmail.com (Anup Mayank) Date: Tue, 20 Dec 2005 22:28:09 -0800 Subject: [ns] changing Pt_ value from C++ code In-Reply-To: <469192b00512192334k3d582cdfuad3e530287bd3cbf@mail.gmail.com> References: <469192b00512192327g50d9136dy19b1bdee76f5a8b7@mail.gmail.com> <469192b00512192334k3d582cdfuad3e530287bd3cbf@mail.gmail.com> Message-ID: <469192b00512202228g1b1d667aj8c5c78192f833da3@mail.gmail.com> Hi All, I have found the solution to my problem. MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_)); assert(curNode!=NULL); WirelessPhy * _phy =NULL; _phy = (WirelessPhy *)(curNode->ifhead().lh_first); assert(_phy!=NULL); _phy->Pt_=NewValue; If there is anything wrong with this approach, please let me know about it. Thanks Anup On 12/19/05, Anup Mayank wrote: > > > > Hi All, > > > > I am trying to assign different transmission ranges to nodes of a mobile > > wireless network. > > To do this i have to change the Pt_ value associated with node. > > > > I have got the the pointer to MobileNode as > > > > MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_); > > > > But i am having conusion in changing the default Pt_ value for the node. > > If some one can let me know how to do it from the C++ code then it will be > > great. > > > > Thanks > > Anup > > > > -- > > I don't know the key to success, but the key to failure is trying to > > please everybody. > > - Bill Cosby > > My mother drew a distinction between achievement and success. She said > > that 'achievement is the knowledge that you have studied and worked hard and > > done the best that is in you. Success is being praised by others, and that's > > nice, too, but not as important or satisfying. Always aim for achievement > > and forget about success.' > > Helen Hayes (1900 - 1993) > > > > -- I don't know the key to success, but the key to failure is trying to please everybody. - Bill Cosby My mother drew a distinction between achievement and success. She said that 'achievement is the knowledge that you have studied and worked hard and done the best that is in you. Success is being praised by others, and that's nice, too, but not as important or satisfying. Always aim for achievement and forget about success.' Helen Hayes (1900 - 1993) From FabianWolff at gmx.de Tue Dec 20 22:58:56 2005 From: FabianWolff at gmx.de (Fabian Wolff) Date: Wed, 21 Dec 2005 07:58:56 +0100 (MET) Subject: [ns] How to access to neighbors of a wireless mobile node ? References: <469192b00512202221y2a20ee5dra41c7bb385d4c27f@mail.gmail.com> Message-ID: <12812.1135148336@www41.gmx.net> Thank you very much for your help. Theoretically I didn't want to implement a logic for a spanning tree of neighbors and hops to every destination in a partitioned network, because I think that this should be task of the underlying protocol (OLSR) and provide me with these information (for example the neighbor_list_ from class node), but firstly it seems to me, that it is not possible to use this attribute in a wireless scenario and second it seems to me, that it is not possible to get access to the neighbor information with the current OLSR implementation. I already saw too, that God::instance()->IsNeighbor works very similar to your code, so I think I will use your code and implement the logic by myself. Changing the radius should not be the problem, because I will set a range attribute for the application and bind it to TCL. Thank you really very much for your help and inspiration. Best regards, Fabian > --- Urspr?ngliche Nachricht --- > Von: Anup Mayank > An: Fabian Wolff > Kopie: ns-users at isi.edu > Betreff: Re: How to access to neighbors of a wireless mobile node ? > Datum: Tue, 20 Dec 2005 22:21:32 -0800 > > Hi, > > One of solving this problem can be as follows > > int findNeighbors(int *neighborList) > //returns the total number of neighbors and populates neighborList > { > MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_)); > if(curNode==NULL) > { > printf("findNeighbors Error: Mobile node object points to > NULL\n"); > exit(1); > } > double curX,curY,curZ; > curNode->getLoc(&curX,&curY,&curZ); > if(curX<0||curY<0) > { > printf("findNeighbors Error: Coordinate of mobile node out of > range\n"); > exit(1); > } > MobileNode * otherNode; > double ox,oy,oz; //Location of other mobile nodes > > int neighborCount=0; > //neighborList = new int[numNode]; > for(int i=0;i { > otherNode = (MobileNode *)(Node::get_node_by_address(i)); > if(otherNode==NULL) > { > printf("findNeighbors Error: Mobile node object points to > NULL\n"); > exit(1); > } > otherNode->getLoc(&ox,&oy,&oz); > if(ox<0||oy<0) > { > printf("findNeighbors Error: Coordinate of mobile node out of > range\n"); > exit(1); > } > double dist=sqrt((curX-ox)*(curX-ox)+(curY-oy)*(curY-oy)); > if(dist<=250.0) > //Node lies in the transmission line > { > neighborList[neighborCount]=i; > neighborCount++; > } > } > return neighborCount; > } > > This code assumes that mobile nodes have default transmission range of 250 > m. It will not be tough to tweak it for heterogeneous mobile nodes. > > Cheers > Anup > > On 12/20/05, Fabian Wolff wrote: > > > > Hi, > > > > I have a similar problem (I am able to get the MobileNodes), but I need > to > > get access to a list of the neighbors of this node. In my case, I want > to > > use OLSR, I need to know which nodes are available in the current > network, > > but it would be already enough if I would get information about the > > neighbors of my current mobilenode. > > I wanted to use neighbor_list_ (derived attribute from class node), but > > this > > attribute is allways 0, thus I can't get any neighbor information for my > > current node > > > > I hope anybody can help me. > > > > Best regards, > > Fabian > > > > > > > Hi Anupama, > > > > > > Answer to your first question is as follows: > > > > > > MobileNode * curNode = (MobileNode *) > (Node::get_node_by_address(id_)); > > // > > > id_ is the id of node > > > double x,y,z; > > > curNode->getLoc(&x,&y,&z); > > > > > > This will assign the X,Y,Z coordinate value to your local variable. > > > > > > I hope this helps. > > > > > > > -- > > Lieber ein faules Genie als ein flei?iger Idiot > > > > 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail > > +++ GMX - die erste Adresse f?r Mail, Message, More +++ > > > > > > -- > I don't know the key to success, but the key to failure is trying to > please > everybody. > - Bill Cosby > My mother drew a distinction between achievement and success. She said > that > 'achievement is the knowledge that you have studied and worked hard and > done > the best that is in you. Success is being praised by others, and that's > nice, too, but not as important or satisfying. Always aim for achievement > and forget about success.' > Helen Hayes (1900 - 1993) > -- Lieber ein faules Genie als ein flei?iger Idiot Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie From ns2_group at yahoo.com Wed Dec 21 01:08:59 2005 From: ns2_group at yahoo.com (jaya y) Date: Wed, 21 Dec 2005 01:08:59 -0800 (PST) Subject: [ns] installation problem of ns-2.1b3 Message-ID: <20051221090859.59810.qmail@web35002.mail.mud.yahoo.com> hai, i'm using Fedora core 3 .When installing ns-allinone-2.1b3 it reports following problem. cc -c -O -I./../generic -I. -DHAVE_GETCWD=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/tclPosixStr.c ./../generic/tclPosixStr.c: In function `Tcl_ErrnoId': ./../generic/tclPosixStr.c:340: error: duplicate case value ./../generic/tclPosixStr.c:328: error: previously used here ./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg': ./../generic/tclPosixStr.c:787: error: duplicate case value ./../generic/tclPosixStr.c:775: error: previously used here make: *** [tclPosixStr.o] Error 1 tcl8.0 make failed! Exiting ... If you know solution to this problem, please mail me. bye, Y.Jaya Lakshmi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From chuckovski12 at hotmail.com Wed Dec 21 03:14:40 2005 From: chuckovski12 at hotmail.com (Adam Hunt) Date: Wed, 21 Dec 2005 11:14:40 +0000 Subject: [ns] distCST_ size Message-ID: Dear all, I am working with a simple wireless model and have a query about the distCST_ value that is displayed when the file is run. Using TwoRayGround propagation it is 550. This makes sense. But using shadowing propagation the number is huge (about 300 digits before the decimal point!). However, this doesn't seem to affect the results. Can I just ignore it? Thank you in advace for any advice. Adam _________________________________________________________________ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.uk From iqbalqr at aston.ac.uk Wed Dec 21 03:41:25 2005 From: iqbalqr at aston.ac.uk (Qasim Raza Iqbal) Date: Wed, 21 Dec 2005 11:41:25 -0000 (GMT) Subject: [ns] Problems installing NS2.29.2 all in one on Kubunto linux Message-ID: <32804.134.151.144.68.1135165285.squirrel@134.151.144.68> Dear All I am having a problem installing Ns2 all-in-one-2.29.2 on kubunto linux with KDE destop. I get the following error message home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:674: error: syntax error before "Display" /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:674: warning: no semicolon at end of struct or union /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:675: warning: data definition has no type or storage class /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:679: error: syntax error before '*' token /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:679: warning: data definition has no type or storage class /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:692: error: conflicting types for `parentPtr' /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tk.h:779: error: previous declaration of `parentPtr' ; ; ; ; ...........and so on until it finally stops displaying eclared `static' but never defined /home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tk3d.c:38: warning: `ShiftLine' declared `static' but never defined {standard input}: Assembler messages: {standard input}:699: Error: symbol `dy' is already defined {standard input}:705: Error: symbol `dx' is already defined {standard input}:752: Error: symbol `q' is already defined {standard input}:758: Error: symbol `p' is already defined {standard input}:764: Error: symbol `q' is already defined {standard input}:770: Error: symbol `q' is already defined make: *** [tk3d.o] Error 1 tk8.4.11 make failed! Exiting ... Please help, your help is very much appreciated thanks Iqbal Aston UK From pedro.estrela at gmail.com Wed Dec 21 08:09:31 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 21 Dec 2005 16:09:31 -0000 Subject: [ns] Problems using DSR In-Reply-To: <779DD7B0-6577-4DA7-8460-9F2631AF7BD7@wadh.ox.ac.uk> Message-ID: <005001c60648$ee3b6640$172914ac@Estrela> Use ddd to debug the code and understand what fails http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging.html#_Toc122255042 > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of David Carter > Sent: s?bado, 17 de Dezembro de 2005 12:14 > To: ns-users at ISI.EDU > Subject: [ns] Problems using DSR > > > Dear all, > > I am comparing the performance of different ad hoc routing protocols > in ns-2. Simulations I have made work wine with AODV and DSDV > protocols however DSR seems to start ok and then at a strange time > will halt the simulation and display 'child killed: bus error'. This > is the error that I got using Mac OS X, when a friend tried the same > simulation using Windows it gave a "Segmentation fault (core > dumped)" error. > > Any help would be very gratefully received, > Many thanks, > David From kamal.nsuser at gmail.com Wed Dec 21 08:11:14 2005 From: kamal.nsuser at gmail.com (Kamal Gakhar) Date: Wed, 21 Dec 2005 17:11:14 +0100 Subject: [ns] how to use PriQueue Message-ID: Can anyone provide a link OR an example on how to use PriQueue (Priority Queueing)? What should be done more in addition to specify DropTail/PriQueue while setting up a link? As I suppose I need to set-up some parameters for settiing priorities for different traffic types, Do I..?? How can I do it?? -- Kamal From pedro.estrela at gmail.com Wed Dec 21 08:10:53 2005 From: pedro.estrela at gmail.com (Pedro Vale Estrela) Date: Wed, 21 Dec 2005 16:10:53 -0000 Subject: [ns] [NS] Problem to access the neighbors list of mobile nodes In-Reply-To: <200512190214.55174.jondeandres@terra.es> Message-ID: <005101c60649$1e1eebc0$172914ac@Estrela> When having problems, one should always do "make clean; make depend; make" > -----Original Message----- > From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf > Of Jon de Andr?s > Sent: segunda-feira, 19 de Dezembro de 2005 1:15 > To: ns-users at ISI.EDU > Subject: Re: [ns] [NS] Problem to access the neighbors list of mobile > nodes > > > I've never used 'make depend' in order to compile ns2. The error you paste > don't have any relation with aodv or the nb_delay atribute. > > I used the nb_delay attitrbute (double) in the neighbour class, in the > aodv_rtable.h file. Because you don't use it, you must delete this line: > > tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); > > or delete 'nb->nb_delay' and '%f' in it. > > Bye > > El Domingo 18 Diciembre 2005 16:24, olivier berho escribi?: > > Hi, > > > > I tried the following code in order to access the neighbords list of a > node > > using AODV. > > > > > > > /************************************************************************* > * > >********************/ Code I used : > > > > Olivier, > > > > really i don't see anywhere the link between the neighbour list in C++ > and > > the > > variable neighbour_ you say. I'm making a job with AODV and QoS routing, > > and i've made a Tcl command for AODV agent to show its neighbour list > and > > their delays between the agent. > > > > I post it for you: > > > > if(strcmp(argv[1], "show-table")) { > > AODV_Neighbor *nb = nbhead.lh_first; > > > > tcl.evalf("puts \"\nDelay Table of Node: %d \"", index); > > tcl.evalf("puts \"\tNode\tDelay\""); > > for(;nb;nb=nb->nb_link.le_next ){ > > tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); > > } > > return TCL_OK; > > } > > You must paste it or something similar in the command function in the > AODV > > agent. However, the nb_delay attribute you can see should be deleted or > > implemented in the aodv_rtable. > > > > I hope this could help you. > > > > Bye Olivier. > > > > > /************************************************************************* > * > >****************/ > > > > > > Then when I tried to recompile ns, I made "make depend" and then "make" > in > > the ns directory and I got the following error : > > > > > /************************************************************************* > * > >****************/ error I got : > > > > In file included from ../../../config.h:54, > > from logparse.h:7, > > from tr-stat.cc:24: > > ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > > > > > /************************************************************************* > * > >****************/ > > > > > > Is it because of this : "However, the nb_delay attribute you can see > should > > be deleted or > > implemented in the aodv_rtable" that I did not understand ? > > > > I really wish someone could explain me why I got that error and what I > > should do to correct it. > > > > Thanks a lot, > > > > Olivier. > > > > On 12/10/05, Olivier Berho wrote: > > > Hello, > > > > > > I am working on a project about communication between mobile nodes > and > > > I am nooby in tcl and NS2. > > > My first part is about sending packets to each nearly neighbors of a > > > node. > > > > > > I know that there is a variable "neighbors_" which contains the > > > neighbors of each node but I cannot access these informations. First > > > because I have some problems to access the list using tcl and second > > > because The list seems to be empty when the topology of my network is > > > created. > > > > > > I am using the AODV routing protocol which should update itself the > > > variable of the neighbors but I don't know how access it. > > > > > > Thanks a lot for help, > > > > > > Olivier. > > > > > > > > > P.S : I am a French student,and I apologize for the mistakes in my > > > English. > > -- > Jon de Andr?s Fr?as > GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 From olivier.berho at gmail.com Wed Dec 21 10:26:42 2005 From: olivier.berho at gmail.com (Olivier Berho) Date: Wed, 21 Dec 2005 19:26:42 +0100 Subject: [ns] [NS] Problem to access the neighbors list of mobile nodes In-Reply-To: <005101c60649$1e1eebc0$172914ac@Estrela> References: <005101c60649$1e1eebc0$172914ac@Estrela> Message-ID: <43A99E62.9040305@gmail.com> thanks for your answers, I just have seen that the error I was talking about is not important for the re-compilation of NS, and we don't have to take care about it. Pedro Vale Estrela a ?crit : >When having problems, one should always do > >"make clean; make depend; make" > > > > >>-----Original Message----- >>From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf >>Of Jon de Andr?s >>Sent: segunda-feira, 19 de Dezembro de 2005 1:15 >>To: ns-users at ISI.EDU >>Subject: Re: [ns] [NS] Problem to access the neighbors list of mobile >>nodes >> >> >>I've never used 'make depend' in order to compile ns2. The error you paste >>don't have any relation with aodv or the nb_delay atribute. >> >>I used the nb_delay attitrbute (double) in the neighbour class, in the >>aodv_rtable.h file. Because you don't use it, you must delete this line: >> >> tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); >> >>or delete 'nb->nb_delay' and '%f' in it. >> >>Bye >> >>El Domingo 18 Diciembre 2005 16:24, olivier berho escribi?: >> >> >>>Hi, >>> >>>I tried the following code in order to access the neighbords list of a >>> >>> >>node >> >> >>>using AODV. >>> >>> >>> >>> >>> >>/************************************************************************* >>* >> >> >>>********************/ Code I used : >>> >>>Olivier, >>> >>>really i don't see anywhere the link between the neighbour list in C++ >>> >>> >>and >> >> >>>the >>>variable neighbour_ you say. I'm making a job with AODV and QoS routing, >>>and i've made a Tcl command for AODV agent to show its neighbour list >>> >>> >>and >> >> >>>their delays between the agent. >>> >>>I post it for you: >>> >>>if(strcmp(argv[1], "show-table")) { >>> AODV_Neighbor *nb = nbhead.lh_first; >>> >>> tcl.evalf("puts \"\nDelay Table of Node: %d \"", index); >>> tcl.evalf("puts \"\tNode\tDelay\""); >>> for(;nb;nb=nb->nb_link.le_next ){ >>> tcl.evalf("puts \"\t%d\t%f\"",nb->nb_addr, nb->nb_delay); >>> } >>> return TCL_OK; >>> } >>>You must paste it or something similar in the command function in the >>> >>> >>AODV >> >> >>>agent. However, the nb_delay attribute you can see should be deleted or >>>implemented in the aodv_rtable. >>> >>>I hope this could help you. >>> >>>Bye Olivier. >>> >>> >>> >>> >>/************************************************************************* >>* >> >> >>>****************/ >>> >>> >>>Then when I tried to recompile ns, I made "make depend" and then "make" >>> >>> >>in >> >> >>>the ns directory and I got the following error : >>> >>> >>> >>> >>/************************************************************************* >>* >> >> >>>****************/ error I got : >>> >>>In file included from ../../../config.h:54, >>> from logparse.h:7, >>> from tr-stat.cc:24: >>>../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared >>> >>> >>> >>> >>/************************************************************************* >>* >> >> >>>****************/ >>> >>> >>>Is it because of this : "However, the nb_delay attribute you can see >>> >>> >>should >> >> >>>be deleted or >>>implemented in the aodv_rtable" that I did not understand ? >>> >>>I really wish someone could explain me why I got that error and what I >>>should do to correct it. >>> >>>Thanks a lot, >>> >>>Olivier. >>> >>>On 12/10/05, Olivier Berho wrote: >>> >>> >>>>Hello, >>>> >>>>I am working on a project about communication between mobile nodes >>>> >>>> >>and >> >> >>>>I am nooby in tcl and NS2. >>>>My first part is about sending packets to each nearly neighbors of a >>>>node. >>>> >>>>I know that there is a variable "neighbors_" which contains the >>>>neighbors of each node but I cannot access these informations. First >>>>because I have some problems to access the list using tcl and second >>>>because The list seems to be empty when the topology of my network is >>>>created. >>>> >>>>I am using the AODV routing protocol which should update itself the >>>>variable of the neighbors but I don't know how access it. >>>> >>>>Thanks a lot for help, >>>> >>>>Olivier. >>>> >>>> >>>>P.S : I am a French student,and I apologize for the mistakes in my >>>>English. >>>> >>>> >>-- >>Jon de Andr?s Fr?as >>GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203 >> >> > > > > > From anup.mayank at gmail.com Wed Dec 21 10:56:33 2005 From: anup.mayank at gmail.com (Anup Mayank) Date: Wed, 21 Dec 2005 10:56:33 -0800 Subject: [ns] Energy used in transmitting 1KB of data to another peer node In-Reply-To: <3fb281ef0512210640m49c5ee88gdd6c8209c0b4b7e4@mail.gmail.com> References: <469192b00512201853r74dff3d2ra0d11da838ddd73e@mail.gmail.com> <3fb281ef0512210640m49c5ee88gdd6c8209c0b4b7e4@mail.gmail.com> Message-ID: <469192b00512211056p31269390i41b259e2af3b3260@mail.gmail.com> Hi Shahram, Thanks for the email. However i am more interested in understanding energy issues at application layer. Lets say there are two nodes n1 and n2 in a wireless mobile environment. An FTP agent attache on n1 is sending a file of 1KB to n2. I want to know how much energy was used by n1 in sending that file and how much was used by n2 to recieve that file. We have to keep in mind that there may be retransmissions due to collision of packets. So i was wondering how can i get this information at the application layer. Any inputs on this issue will be highly appreciated. Thanks Anup On 12/21/05, shahram mohrehkesh wrote: > > Dear anup, > every mobile node spend a value for transmission of a packet and a value > for recieving a packet. These value are set by yourself in your TCL code. > normally the value for transmission and reception of a 512B packet is 0.3and > 0.6 joule recpectively. > these value are set in mobile node configuration as like this > > > $ns_ node-config *rxPower * > > > * > > txPower > * > > *Regards,Shahram * > > > > On 12/20/05, Anup Mayank wrote: > > > > > > Hi All, > > I want to know how much energy is used by a wireless mobile node in > > transmitting 1KB of data from one node to another node in its neighbor. > > Is > > there any formula to find out this information. Please help me with it. > > > > Thanks > > Anup > > > > -- > > I don't know the key to success, but the key to failure is trying to > > please > > everybody. > > - Bill Cosby > > My mother drew a distinction between achievement and success. She said > > that > > 'achievement is the knowledge that you have studied and worked hard and > > done > > the best that is in you. Success is being praised by others, and that's > > nice, too, but not as important or satisfying. Always aim for > > achievement > > and forget about success.' > > Helen Hayes (1900 - 1993) > > > > -- I don't know the key to success, but the key to failure is trying to please everybody. - Bill Cosby My mother drew a distinction between achievement and success. She said that 'achievement is the knowledge that you have studied and worked hard and done the best that is in you. Success is being praised by others, and that's nice, too, but not as important or satisfying. Always aim for achievement and forget about success.' Helen Hayes (1900 - 1993) From laerciopericles at gmail.com Wed Dec 21 14:36:29 2005 From: laerciopericles at gmail.com (=?ISO-8859-1?Q?Laercio_J=FAnior?=) Date: Wed, 21 Dec 2005 18:36:29 -0400 Subject: [ns] Dropping packets in the queue Message-ID: <395e46db0512211436w7bcb9460w8200968651076054@mail.gmail.com> Hello, I am changing link layer, implemented in ~ns/mac/ll.{h, cc}, to give support for header compression. It occurs a strange thing as I change the code to drop packets that doesn't have any context saved in the node. Instead of dropping just the packet passed by parameter into the link layer, all other packets that weren't specified are dropped in the queue(IFQ). -------------- --------- Link Layer => IFQ <-- here it happens the losses! -------------- --------- It follows a part of sendDown() method of LL class( in ll.cc): ************************************************************************************* #ifdef HEADER_COMPRESSION_VOIP if (ch->ptype() == PT_CBR) { if( (ih->id() % 10) == 0 ) { // if it is a uncompressed packet if ( ! (bkp_fields->existe_item(ih->flowid())) ) // if there is no saved context with given "flowid" // save the identification of context bkp_fields->inserir(ih->flowid()); } else { if( bkp_fields->existe_item(ih->flowid()) ) printf("Compressed packet\n"); // goes to the queue else { printf("Loss packet\n); drop(p); // it is dropped here, doesn't go to the queue <-- Here is the problem!!! } } } #endif Scheduler& s = Scheduler::instance(); // let mac decide when to take a new packet from the queue. s.schedule(downtarget_, p, delay_); } // end of the method ******************************************************************************************* Can anybody help me to solve this problem? Any suggestion is welcome. Thank you very much in advance, La?rcio Jr. Manaus-Amazonas-Brazil From Hailun.Tan at nicta.com.au Wed Dec 21 20:36:42 2005 From: Hailun.Tan at nicta.com.au (Hailun Tan) Date: Thu, 22 Dec 2005 15:36:42 +1100 (EST) Subject: [ns] some problem about the packet arrivals in NS-2 In-Reply-To: <469192b00512211056p31269390i41b259e2af3b3260@mail.gmail.com> References: <469192b00512201853r74dff3d2ra0d11da838ddd73e@mail.gmail.com> <3fb281ef0512210640m49c5ee88gdd6c8209c0b4b7e4@mail.gmail.com> <469192b00512211056p31269390i41b259e2af3b3260@mail.gmail.com> Message-ID: <4353.203.143.168.90.1135226202.squirrel@mailbag.nicta.com.au> Hi, All: I am implementing some routing protocol in network layer. I check the source code and find out that when the packet arrives the desired destination, it was received "immediately" by the application layer of the destination. it did not invoke the recv method in the routing agent, which can be also verified through the trace file (see the below section from AODV simulation): s 7.738382465 _7_ RTR --- 6 cbr 532 [0 0 0 0] ------- [7:2 9:0 30 14] [0] 0 0 r 7.744176352 _14_ RTR --- 6 cbr 532 [13a e 7 800] ------- [7:2 9:0 30 14] [0] 1 0 f 7.744176352 _14_ RTR --- 6 cbr 532 [13a e 7 800] ------- [7:2 9:0 29 1] [0] 1 0 r 7.750370321 _1_ RTR --- 6 cbr 532 [13a 1 e 800] ------- [7:2 9:0 29 1] [0] 2 0 f 7.750370321 _1_ RTR --- 6 cbr 532 [13a 1 e 800] ------- [7:2 9:0 28 9] [0] 2 0 (is it supposed to have something like: r 7.******** _9_ RTR ---- ************************ here??? ) r 7.756424481 _9_ AGT --- 6 cbr 532 [13a 9 1 800] ------- [7:2 9:0 28 9] [0] 3 0 ????? My question is how can it happen? If it is specified by NS-2 by default. Doe it mean that I cannot do anything in netlayer when the packet received its destination???? Please advise!!!!! -------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. From Hailun.Tan at nicta.com.au Wed Dec 21 22:42:42 2005 From: Hailun.Tan at nicta.com.au (Hailun Tan) Date: Thu, 22 Dec 2005 17:42:42 +1100 (EST) Subject: [ns] some problem about the packet arrivals in NS-2 Message-ID: <4463.203.143.168.90.1135233762.squirrel@mailbag.nicta.com.au> Hi, All: I am implementing some routing protocol in network layer. I check the source code and find out that when the packet arrives the desired destination, it was received "immediately" by the application layer of the destination. it did not invoke the recv method in the routing agent, which can be also verified through the trace file (see the below section from AODV simulation): s 7.738382465 _7_ RTR --- 6 cbr 532 [0 0 0 0] ------- [7:2 9:0 30 14] [0] 0 0 r 7.744176352 _14_ RTR --- 6 cbr 532 [13a e 7 800] ------- [7:2 9:0 30 14] [0] 1 0 f 7.744176352 _14_ RTR --- 6 cbr 532 [13a e 7 800] ------- [7:2 9:0 29 1] [0] 1 0 r 7.750370321 _1_ RTR --- 6 cbr 532 [13a 1 e 800] ------- [7:2 9:0 29 1] [0] 2 0 f 7.750370321 _1_ RTR --- 6 cbr 532 [13a 1 e 800] ------- [7:2 9:0 28 9] [0] 2 0 (is it supposed to have something like: r 7.******** _9_ RTR ---- ************************ here??? ) r 7.756424481 _9_ AGT --- 6 cbr 532 [13a 9 1 800] ------- [7:2 9:0 28 9] [0] 3 0 ????? My question is how can it happen? If it is specified by NS-2 by default. Doe it mean that I cannot do anything in netlayer when the packet received its destination???? Please advise!!!!! -------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. From deepak_cran at yahoo.com Wed Dec 21 23:18:36 2005 From: deepak_cran at yahoo.com (deepak) Date: Wed, 21 Dec 2005 23:18:36 -0800 (PST) Subject: [ns] simple qtn on bind function Message-ID: <20051222071836.23498.qmail@web52207.mail.yahoo.com> Hi all, Here's a qtn on bind method in ns2. I have a baseclass & 2 derived classes( different type of nodes : edgenode & corenode ). Baseclass has a instance variable (ptime) that both the subclasses use. But there is a bind function in the subclass as well as in the base class(?). I can see in an example (tclexample1.tcl) the stmts as shwn below : baseclass/edgenode ptime 1 baseclass/corenode ptime 2 But cant find any : baseclass ptime ????? Why would you guys think to have a bind function in the base class too ? ( I know that it works without having a bind function in the base class !) Any thoughts??? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From cpkothari at rediffmail.com Wed Dec 21 23:29:17 2005 From: cpkothari at rediffmail.com (cp kothari) Date: 22 Dec 2005 07:29:17 -0000 Subject: [ns] lost pkts and installation of gt-itm Message-ID: <20051222072917.14153.qmail@webmail46.rediffmail.com> I ahve following doubts regarding ns2 1. while simulating manet in ns2.28, what coulbd be the reasons for heave lost pkts i.e of the order ~1000 pkts out of total ~5000 pkts sent? 2. how to install gt-itm and sgb2ns . i have tried all the possible ways given on the net and help files of gt-itm and sgb2ns but failed.i cant see any exe file in bin folder of gt-itm. CAN SOMEONE HELP ME? ...kothari... From lszymcza at elka.pw.edu.pl Wed Dec 21 22:52:45 2005 From: lszymcza at elka.pw.edu.pl (Lukasz Szymczak - PW) Date: Thu, 22 Dec 2005 07:52:45 +0100 Subject: [ns] Fw: question about exponentially and Pareto distribution Message-ID: <001d01c606c4$cbbee5c0$6501a8c0@szymczak> ----- Original Message ----- From: "Lukasz Szymczak - PW" To: Sent: Wednesday, December 21, 2005 8:38 AM Subject: question about exponentially and Pareto distribution > Dear All, > > I?m trying to test an architecture, but I have problems with source > settings in .tcl file: > > ?Streaming flows use UDP and consist of a succession of exponentially > distributed on-and off ?periods, all of mean 500ms. The rate when on is > 64Kbit/s, packets are length 190 bytes and flows last for 1 minute on > average. Elastic flows use TCP Reno and emit packets of 1000 bytes. Their > size has a truncated Pareto distribution with shape parameter 1.5, mean 25 > packets, minimum 8 and maximum 1000 packets. Elastic flows count for 80% > of overall traffic? > > What I have to do to set sources like this? > > Any help would be very gratefully received, > > Best Regards, > Lukasz Szymczak > Warsaw University of Technology > Poland From xuzy_sun1 at 163.com Thu Dec 22 04:37:12 2005 From: xuzy_sun1 at 163.com (xuzy) Date: Thu, 22 Dec 2005 20:37:12 +0800 Subject: [ns] simulation problem of TDMA and based contention References: <002201c60562$fd7624b0$671410ac@xuzy> Message-ID: <001401c606f4$7056ee50$671410ac@xuzy> There are many clusters in a wireless network. Sensors in every cluster collect information and delivery to their cluster head node. Then each cluster head aggregates info, and transmit data to a sink via other nodes(include cluster and non-cluster head nodes).In each cluster, TDMA is used. Mac based contention is used among clusters. How to simulate this network with two MAC coexistence? and how to set TDMA status when writing a routing agent? Thanks!! xuzy ----- Original Message ----- From: Kamal Gakhar To: xuzy Cc: ns-users at isi.edu Sent: Wednesday, December 21, 2005 2:12 AM Subject: Re: [ns] simulation problem of TDMA and based contention If there is TDMA amonf clusters then there should be "no contest" and hence no contention among clusters. Can you please specify what would you like to do..?? On 12/20/05, xuzy wrote: In my simulation, there are some clusters. TDMA is used in the cluster, and MAC based contention is used among cluster. So how to achieve in the simulation? where is the example like? Thanks! xuzy -- Kamal From mohammed_azam123 at yahoo.co.in Thu Dec 22 04:51:47 2005 From: mohammed_azam123 at yahoo.co.in (mohammad azam) Date: Thu, 22 Dec 2005 12:51:47 +0000 (GMT) Subject: [ns] Ns support for GSM/GPRS Message-ID: <20051222125147.85832.qmail@web8414.mail.in.yahoo.com> Respected sir, I am working in GSM/GPRS how can i implement in ns, is there any support builtin in ns for this and how can mobile nodes have gprs/gsm interfaces. Waiting for reply thank you Send instant messages to your online friends http://in.messenger.yahoo.com From fl0wer at virgilio.it Thu Dec 22 05:54:10 2005 From: fl0wer at virgilio.it (Marco Fiore) Date: Thu, 22 Dec 2005 14:54:10 +0100 (GMT+01:00) Subject: [ns] Loading a large movement trace file Message-ID: <32584626.1135259650709.JavaMail.root@pswm12.cp.tin.it> Hi all, I am experienceing the following problem: I have a large movement trace file (around 200 nodes whose speed is updated every 0.5s for 2000s of simulation), which is 40Mb in size (evry line of the file is a setdest command). When I run the simulation, it takes a very long time (I do not know how much, I stopped it after 30 mins) after the "INITIALIZE THE LISTHEAD xListHead" message is displayed and before the actual start of simulation (i.e. simulatied time 0 is not reached). I think this is due to the large movement trace file, but I am not sure, and I do not know what to do to avoid that. Does anyone have any idea about how to get rid of such a problem, or any experience with similar issues? Thanks, Marco Fiore From zalshaae at connect.carleton.ca Thu Dec 22 10:33:57 2005 From: zalshaae at connect.carleton.ca (Zuhair Alshaaer) Date: Thu, 22 Dec 2005 13:33:57 -0500 (EST) Subject: [ns] MPEG4 GENERATION Message-ID: <4591263.1135276437511.JavaMail.zalshaae@connect.carleton.ca> Hello everyone ; I tried to generate actuall video and I used video_trace.tcl file; when I tried to run the tcl file I have the the following message: warning: no class variable Tracefile::debug_ see tcl-object.tcl in tclcl for info about this warning. bad file size in video.dat If there is any help will be approcite; Best regards; Zuhair From boonkean at tm.net.my Thu Dec 22 18:00:53 2005 From: boonkean at tm.net.my (boon) Date: Fri, 23 Dec 2005 10:00:53 +0800 Subject: [ns] Can 802.11g in NS-2.1b6? Or 802.11b? Message-ID: <20051223020108.0E3EDD025B6E@bar11.tm.net.my> Hi all, Has anyone tried 802.11b or 802.11g in NS-2.1b6? Did it work? Can you teach me where and how to make the changes? Thanks in advance From huangms at gmail.com Thu Dec 22 18:50:00 2005 From: huangms at gmail.com (=?GB2312?B?u8bD8cvg?=) Date: Fri, 23 Dec 2005 10:50:00 +0800 Subject: [ns] how to output a node's energy in ns2 Message-ID: Dear someone I was using ns2, how to output some node's energy in a moment? thanks From airy at ti.com Thu Dec 22 19:49:28 2005 From: airy at ti.com (Airy, Manish) Date: Thu, 22 Dec 2005 21:49:28 -0600 Subject: [ns] [ns new 80211 model] Packet delay question Message-ID: Hi, I have been experimenting with the new 80211 model available from http://spoutnik.inria.fr/ns-2-80211/. The model is quite accurate and easy to use (especially because of the sample scripts provided in ns-2-snapshot-20050907-14.1.tar.gz ). However, as I understand (and because of my lack of overall ns expertise), the ns-2 trace mechanism does not work with the new 80211 model. Hence, I am unable to gather per-packet delay statistics from the new ns 80211 simulation. There are numerous examples (a tcl snippet is attached below) on the ns-users mailing list archives that allow me to collect throughput values from the various traffic sink agents that I connect in my wireless simulations. Also, there are numerous examples in the ns-users archives that show how to parse trace files generated by ns-2. But, without ns-2 styled trace support in the new 80211 model, I can't (am unable to) extract end-to-end per-packet delay from the new 80211 model i.e. from injection into the simulation by the traffic source till ejection of each packet into the traffic sink. Any suggestions and pointers will help me. Thanks in advance, Manish. PS: Heres a tcl script snippet that allows me to get throughput between the CBR source and the sink/LossMonitor (also works for Null and TCPSink agents). I am interested in also being able to capture per-packet delay from the CBR source, through the WLAN simulation, and into the sink/LossMonitor. ... set sink5 [new Agent/LossMonitor] $nodes(0) attach-agent $sink5 set source5 [new Agent/UDP] $nodes(1) attach-agent $source5 set cbr5 [new Application/Traffic/CBR] $cbr5 attach-agent $source5 $cbr5 set packetSize_ 60 $cbr5 set interval_ 0.0066 $source5 set prio_ 5 $source5 set packetSize_ 60 ip-connect $source5 $sink5 $ns at 1.0 "$cbr5 start" set f0 [open sink1.tr w] proc record {} { global sink5 f0 set ns [Simulator instance] set time 1 set bw0 [$sink5 set bytes_] set now [$ns now] puts $f0 "$now [expr $bw0/$time*8]" $sink5 set bytes_ 0 $ns at [expr $now+$time] "record" } From smallko at hpds.ee.ncku.edu.tw Thu Dec 22 20:34:51 2005 From: smallko at hpds.ee.ncku.edu.tw (=?utf-8?Q?Chih-Heng=2C_Ke_=28=E6=9F=AF=E5=BF=97=E4=BA=A8=29?=) Date: Fri, 23 Dec 2005 12:34:51 +0800 Subject: [ns] MPEG4 GENERATION References: <4591263.1135276437511.JavaMail.zalshaae@connect.carleton.ca> Message-ID: <007b01c6077a$3c625680$9356fea9@smallkonb> Try to use my new work http://140.116.72.80/~smallko/ns2/myevalvid2.htm ----- Original Message ----- From: "Zuhair Alshaaer" To: Sent: Friday, December 23, 2005 2:33 AM Subject: [ns] MPEG4 GENERATION > > Hello everyone ; > > I tried to generate actuall video and I used video_trace.tcl file; when > I tried to run the tcl file I have the the following message: > > warning: no class variable Tracefile::debug_ > > see tcl-object.tcl in tclcl for info about this warning. > > bad file size in video.dat > > > If there is any help will be approcite; > > Best regards; > Zuhair > From jagadish_kranti at yahoo.com Thu Dec 22 21:39:39 2005 From: jagadish_kranti at yahoo.com (jagadish kranti) Date: Thu, 22 Dec 2005 21:39:39 -0800 (PST) Subject: [ns] loss of energy without any reason in mobile node Message-ID: <20051223053939.64195.qmail@web52612.mail.yahoo.com> Hi everybody, I have simulated a wireless mobile adhoc network. In the trace files it was found that node_(2) is not sending any kind of packets to other nodes between 41 th second and 51 th second. But I found loss of energy from 98.8 to 98.2. I am confused why this loss of energy is happenning. Is there any hidden thing which we are not getting in the trace files or is it because of RTS, CTS packets. If it is because of RTS and CTS packets, please tell me how to see them in trace files. Thanks in advance, Jagadish --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less From Arun_Sathanur at satyam.com Thu Dec 22 22:16:19 2005 From: Arun_Sathanur at satyam.com (Arun_Sathanur) Date: Fri, 23 Dec 2005 11:46:19 +0530 Subject: [ns] loss of energy without any reason in mobile node Message-ID: <9E2CF8F41656E247AE8F1612D19E95BF018D177B@blamsg001.corp.satyam.ad> Hi, To see the RTS/CTS packets, turn the MAC trace ON in your tcl script. Regards Arun -----Original Message----- From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of jagadish kranti Sent: Friday, December 23, 2005 11:10 AM To: ns-users at ISI.EDU Subject: [ns] loss of energy without any reason in mobile node Hi everybody, I have simulated a wireless mobile adhoc network. In the trace files it was found that node_(2) is not sending any kind of packets to other nodes between 41 th second and 51 th second. But I found loss of energy from 98.8 to 98.2. I am confused why this loss of energy is happenning. Is there any hidden thing which we are not getting in the trace files or is it because of RTS, CTS packets. If it is because of RTS and CTS packets, please tell me how to see them in trace files. Thanks in advance, Jagadish --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. From miaoqingyu at gmail.com Fri Dec 23 00:21:50 2005 From: miaoqingyu at gmail.com (Qingyu Miao) Date: Fri, 23 Dec 2005 16:21:50 +0800 Subject: [ns] what is problem with my tcl In-Reply-To: <48d19d280512222306r7d48f5e5na4f1ab8768e37280@mail.gmail.com> References: <48d19d280512222306r7d48f5e5na4f1ab8768e37280@mail.gmail.com> Message-ID: <48d19d280512230021g36d82633q1f80944a33e6055b@mail.gmail.com> Hi I am a green hand on NS. when I configure NS in my LINUX(redhat), there is a problem. I have installed tcl8.4.5 and tk8.4.5 in my Linux. Does anyone know what could be the problem and what should I do? Thanks. Below is the error message when configure. BR-Miao Qingyu --------------------------------------------- sky:/home/emiaoqy/mesh/software/ns-2.1b9a> ./configure No .configure file found in current directory Continuing with default options... checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that g++ can handle -O2... no checking standard STL is available... no checking for tcl.h... -I/usr/local/include checking for libtcl8.3... -L/usr/lib -ltcl checking for init.tcl... no checking for tclsh8.3.2... no checking for tclsh8.3... no checking for tclsh... /usr/bin/tclsh configure: error: Installation of tcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where tcl is using the argument --with-tcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-tcl=no. From d.duda at wil.waw.pl Fri Dec 23 01:52:47 2005 From: d.duda at wil.waw.pl (Damian Duda) Date: Fri, 23 Dec 2005 10:52:47 +0100 Subject: [ns] Support for Static Priority Queuing Scheduling in NS-2 References: <43A2BFEE.30103@wil.waw.pl> <00c501c6023f$0c1648a0$62a9ea82@it.jyu.fi> Message-ID: <002701c607a6$a1232b40$9200010a@ziemia> Hi, Thank you for your response. DiffServ seems to be too "heavy" for my application. For now I started to implement own SPQ general scheduler. Damian ----- Original Message ----- From: "Alexander Sayenko" To: "Damian Duda" ; Sent: Friday, December 16, 2005 1:48 PM Subject: Re: [ns] Support for Static Priority Queuing Scheduling in NS-2 > Hi > > It seems that the basic scheduling framework of the NS-2 simulator does not > support it. However, this scheduling disciplines is available in the > DiffServ framework. > > Sincerely, > Sayenko Alexander (PhD) > Assistant > Telecommunication laboratory, MIT department > University of Jyvaskyla, Finland > > > > > > Hi all, > > > > I am new in NS-2. > > Until now I used C++ and self-made event driven simulators for my > > simulations. > > > > My question is probably silly, but I am very interested whether there is > > any implementation of ordinary Static Priority Queue in NS-2 simulator > > (the best is more than two level of priorities)? > > > > Do you know any clues? > > > > Or, do I have to write my own PQ class and include it to NS-2? > > > > I appreciate any information very much. > > > > Best Regards, > > > > Damian Duda > > Warsaw, Poland > > > > > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 15.12.2005 > > > > > From boonkean at tm.net.my Fri Dec 23 01:57:38 2005 From: boonkean at tm.net.my (boon) Date: Fri, 23 Dec 2005 17:57:38 +0800 Subject: [ns] installation problem of ns-2.1b3 In-Reply-To: <20051221090859.59810.qmail@web35002.mail.mud.yahoo.com> Message-ID: <20051223095745.17644D006C10@bar11.tm.net.my> ns-allinone-2.1b3 is an old version and I think it is not compatible with Fedora Core 3 because of the gcc version. Like my case, I use ns-allinone-2.1b6 and I CANNOT use RedHat 9.0 because its gcc version is above 2.95. I suggest that you use RedHat version 7.0, 7.1, 7.2 or 7.3. Their gcc version is less than 2.95. -----Original Message----- From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of jaya y Sent: Wednesday, December 21, 2005 5:09 PM To: ns-users at ISI.EDU Subject: [Norton AntiSpam] [ns] installation problem of ns-2.1b3 hai, i'm using Fedora core 3 .When installing ns-allinone-2.1b3 it reports following problem. cc -c -O -I./../generic -I. -DHAVE_GETCWD=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/tclPosixStr.c ./../generic/tclPosixStr.c: In function `Tcl_ErrnoId': ./../generic/tclPosixStr.c:340: error: duplicate case value ./../generic/tclPosixStr.c:328: error: previously used here ./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg': ./../generic/tclPosixStr.c:787: error: duplicate case value ./../generic/tclPosixStr.c:775: error: previously used here make: *** [tclPosixStr.o] Error 1 tcl8.0 make failed! Exiting ... If you know solution to this problem, please mail me. bye, Y.Jaya Lakshmi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From FabianWolff at gmx.de Fri Dec 23 10:45:56 2005 From: FabianWolff at gmx.de (FabianWolff) Date: Fri, 23 Dec 2005 19:45:56 +0100 Subject: [ns] what is problem with my tcl In-Reply-To: <48d19d280512230021g36d82633q1f80944a33e6055b@mail.gmail.com> References: <48d19d280512222306r7d48f5e5na4f1ab8768e37280@mail.gmail.com> <48d19d280512230021g36d82633q1f80944a33e6055b@mail.gmail.com> Message-ID: <43AC45E4.6000606@gmx.de> As far as I know requires ns2.1b9a tcl8.3.2 and tk8.3.2 (and config file is trying to find these libs). Install these two version (if you use the allinone packet these are inside of this packet) and try once again. I hope this helps Best regards, Fabian Qingyu Miao schrieb: > Hi >I am a green hand on NS. when I configure NS in my LINUX(redhat), there is a >problem. >I have installed tcl8.4.5 and tk8.4.5 in my Linux. >Does anyone know what could be the problem and what should I do? Thanks. >Below is the error message when configure. >BR-Miao Qingyu > >--------------------------------------------- >sky:/home/emiaoqy/mesh/software/ns-2.1b9a> ./configure >No .configure file found in current directory >Continuing with default options... >checking build system type... i686-pc-linux-gnu >checking host system type... i686-pc-linux-gnu >checking target system type... i686-pc-linux-gnu >checking for gcc... gcc >checking for C compiler default output... a.out >checking whether the C compiler works... yes >checking whether we are cross compiling... no >checking for executable suffix... >checking for object suffix... o >checking whether we are using the GNU C compiler... yes >checking whether gcc accepts -g... yes >checking for g++... g++ >checking whether we are using the GNU C++ compiler... yes >checking whether g++ accepts -g... yes >checking how to run the C preprocessor... gcc -E >checking for ANSI C header files... yes >checking for string.h... yes >checking for main in -lXbsd... no >checking for socket in -lsocket... no >checking for gethostbyname in -lnsl... yes >checking for dcgettext in -lintl... no >checking for getnodebyname in -ldnet_stub... no >checking that g++ can handle -O2... no >checking standard STL is available... no >checking for tcl.h... -I/usr/local/include >checking for libtcl8.3... -L/usr/lib -ltcl >checking for init.tcl... no >checking for tclsh8.3.2... no >checking for tclsh8.3... no >checking for tclsh... /usr/bin/tclsh >configure: error: Installation of tcl seems incomplete or can't be found >automatically. >Please correct the problem by telling configure where tcl is >using the argument --with-tcl=/path/to/package >(perhaps after installing it), >or the package is not required, disable it with --with-tcl=no. > > > > From ns2_group at yahoo.com Fri Dec 23 02:50:32 2005 From: ns2_group at yahoo.com (jaya y) Date: Fri, 23 Dec 2005 02:50:32 -0800 (PST) Subject: [ns] why node 3 is not define? In-Reply-To: <20051115024155.A42CA86B24@ws7-1.us4.outblaze.com> Message-ID: <20051223105032.59717.qmail@web35015.mail.mud.yahoo.com> hi , i don't know exactly, why it worked by making single change. But i made the change by guessing it as hidden terminal problem. Exact reason is most welcome. The modified line is highlighted with yellow and i have changed 20.0 to 10.0 in that line which is highlighted with blue. # ====================================================================== # 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) CMUPriQueue ;# 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) 5 ;# number of mobile nodes set val(rp) DSR ;# routing protocol # ====================================================================== # Main Program # ====================================================================== #----------- # Initialize Global Variables #----------- set ns_ [new Simulator] $ns_ use-newtrace set tracefd [open simTest.tr w] set namtrace [open simple-wireless.nam w] $ns_ trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid 500 500 $ns_ namtrace-all-wireless $namtrace 500 500 #-------------- # Create God #-------------- create-god $val(nn) #-------------- # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # Here two nodes are created : node(0), node(1), node(2), node(3), node(4) # 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) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } #----------- # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes #----------- $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 390.0 $node_(1) set Y_ 385.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 132.0 $node_(2) set Y_ 423.0 $node_(2) set Z_ 0.0 $node_(3) set X_ 245.0 $node_(3) set Y_ 150.0 $node_(3) set Z_ 0.0 $node_(4) set X_ 350.0 $node_(4) set Y_ 85.0 $node_(4) set Z_ 0.0 #------------- # Now produce some simple node movements #------------- $ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" $ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" $ns_ at 60.0 "$node_(2) setdest 10.0 18.0 1.0" $ns_ at 10.0 "$node_(3) setdest 30.0 28.0 10.0" $ns_ at 10.0 "$node_(4) setdest 25.0 38.0 1.0" # Node_(1) then starts to move away from node_(0) $ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0" # Setup traffic flow between nodes # TCP connections between node_(0) and node_(1) set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns_ attach-agent $node_(0) $tcp $ns_ attach-agent $node_(1) $sink $ns_ attach-agent $node_(2) $tcp $ns_ attach-agent $node_(3) $sink $ns_ attach-agent $node_(4) $tcp $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns_ at 10.0 "$ftp start" #---------- # Tell nodes when the simulation ends #---------- for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 150.0 "$node_($i) reset"; } $ns_ at 150.0001 "stop" $ns_ at 150.0002 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd exec nam simple-wireless.nam & exit 0 } puts "Starting Simulation..." $ns_ run bye, Y.Jaya Lakshmi. Azri Abdul Majid wrote: Hi guys, I need your help. I successfully run this code. But I keep on receiving message "node 3 is not define". However, I can run NAM. What's wrong with this code guys? #begin of code # simple-wireless.tcl # A simple example for wireless simulation (five nodes) # ====================================================================== # 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) CMUPriQueue ;# 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) 5 ;# number of mobile nodes set val(rp) DSR ;# routing protocol # ====================================================================== # Main Program # ====================================================================== #----------- # Initialize Global Variables #----------- set ns_ [new Simulator] $ns_ use-newtrace set tracefd [open simTest.tr w] set namtrace [open simple-wireless.nam w] $ns_ trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid 500 500 $ns_ namtrace-all-wireless $namtrace 500 500 #-------------- # Create God #-------------- create-god $val(nn) #-------------- # Create the specified number of mobilenodes [$val(nn)] and "attach" them # to the channel. # Here two nodes are created : node(0), node(1), node(2), node(3), node(4) # 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) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } #----------- # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes #----------- $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 390.0 $node_(1) set Y_ 385.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 132.0 $node_(2) set Y_ 423.0 $node_(2) set Z_ 0.0 $node_(3) set X_ 245.0 $node_(3) set Y_ 150.0 $node_(3) set Z_ 0.0 $node_(4) set X_ 350.0 $node_(4) set Y_ 85.0 $node_(4) set Z_ 0.0 #------------- # Now produce some simple node movements #------------- $ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" $ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" $ns_ at 60.0 "$node_(2) setdest 10.0 18.0 1.0" $ns_ at 20.0 "$node_(3) setdest 30.0 28.0 10.0" $ns_ at 10.0 "$node_(4) setdest 25.0 38.0 1.0" # Node_(1) then starts to move away from node_(0) $ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0" # Setup traffic flow between nodes # TCP connections between node_(0) and node_(1) set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns_ attach-agent $node_(0) $tcp $ns_ attach-agent $node_(1) $sink $ns_ attach-agent $node_(2) $tcp $ns_ attach-agent $node_(3) $sink $ns_ attach-agent $node_(4) $tcp $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns_ at 10.0 "$ftp start" #---------- # Tell nodes when the simulation ends #---------- for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 150.0 "$node_($i) reset"; } $ns_ at 150.0001 "stop" $ns_ at 150.0002 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd exec nam simple-wireless.nam & exit 0 } puts "Starting Simulation..." $ns_ run #end of code - azri abdul majid -- _______________________________________________ Search for businesses by name, location, or phone number. -Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 --------------------------------- Yahoo! for Good - Make a difference this year. From iqbalqr at aston.ac.uk Fri Dec 23 04:34:56 2005 From: iqbalqr at aston.ac.uk (Qasim Raza Iqbal) Date: Fri, 23 Dec 2005 12:34:56 -0000 (GMT) Subject: [ns] why node 3 is not define? In-Reply-To: <20051223105032.59717.qmail@web35015.mail.mud.yahoo.com> References: <20051115024155.A42CA86B24@ws7-1.us4.outblaze.com> <20051223105032.59717.qmail@web35015.mail.mud.yahoo.com> Message-ID: <32822.134.151.144.68.1135341296.squirrel@134.151.144.68> Hi, I also have that problem, infact in my case when running nam for a similar scenario, it shows me node 0,1,2 and 3 a not defined until they actually start the movement. Another think which I need to ask you is that why have you attached the same tcp to node 0 2 and 4 and sink to node 1 and 3. Can you use the same agent on different nodes? Is that a requirement for the channel to work properly or your just testing to see it works Please let me know regards Qasim Iqbal > > hi , > i don't know exactly, why it worked by making single change. But i made > the change by guessing it as hidden terminal problem. > > Exact reason is most welcome. > > The modified line is highlighted with yellow and i have changed 20.0 to > 10.0 in that line which is highlighted with blue. > > # ====================================================================== > # 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) CMUPriQueue ;# 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) 5 ;# number of mobile > nodes > set val(rp) DSR ;# routing protocol > > # ====================================================================== > # Main Program > # ====================================================================== > > #----------- > # Initialize Global Variables > #----------- > set ns_ [new Simulator] > $ns_ use-newtrace > set tracefd [open simTest.tr w] > set namtrace [open simple-wireless.nam w] > $ns_ trace-all $tracefd > > # set up topography object > set topo [new Topography] > > $topo load_flatgrid 500 500 > $ns_ namtrace-all-wireless $namtrace 500 500 > > #-------------- > # Create God > #-------------- > create-god $val(nn) > > #-------------- > # Create the specified number of mobilenodes [$val(nn)] and "attach" > them > # to the channel. > # Here two nodes are created : node(0), node(1), node(2), node(3), > node(4) > > # 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) \ > -channelType $val(chan) \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace OFF \ > -movementTrace OFF > > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 ;# disable random > motion > } > > #----------- > # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes > #----------- > $node_(0) set X_ 5.0 > $node_(0) set Y_ 2.0 > $node_(0) set Z_ 0.0 > > $node_(1) set X_ 390.0 > $node_(1) set Y_ 385.0 > $node_(1) set Z_ 0.0 > > $node_(2) set X_ 132.0 > $node_(2) set Y_ 423.0 > $node_(2) set Z_ 0.0 > > $node_(3) set X_ 245.0 > $node_(3) set Y_ 150.0 > $node_(3) set Z_ 0.0 > > $node_(4) set X_ 350.0 > $node_(4) set Y_ 85.0 > $node_(4) set Z_ 0.0 > > #------------- > # Now produce some simple node movements > #------------- > $ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" > $ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" > > $ns_ at 60.0 "$node_(2) setdest 10.0 18.0 1.0" > > $ns_ at 10.0 "$node_(3) setdest 30.0 28.0 10.0" > > $ns_ at 10.0 "$node_(4) setdest 25.0 38.0 1.0" > > # Node_(1) then starts to move away from node_(0) > $ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0" > > # Setup traffic flow between nodes > # TCP connections between node_(0) and node_(1) > > set tcp [new Agent/TCP] > $tcp set class_ 2 > > set sink [new Agent/TCPSink] > $ns_ attach-agent $node_(0) $tcp > $ns_ attach-agent $node_(1) $sink > $ns_ attach-agent $node_(2) $tcp > $ns_ attach-agent $node_(3) $sink > $ns_ attach-agent $node_(4) $tcp > $ns_ connect $tcp $sink > > set ftp [new Application/FTP] > $ftp attach-agent $tcp > $ns_ at 10.0 "$ftp start" > > #---------- > # Tell nodes when the simulation ends > #---------- > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at 150.0 "$node_($i) reset"; > } > > $ns_ at 150.0001 "stop" > $ns_ at 150.0002 "puts \"NS EXITING...\" ; $ns_ halt" > proc stop {} { > global ns_ tracefd > $ns_ flush-trace > close $tracefd > > exec nam simple-wireless.nam & > exit 0 > } > > > puts "Starting Simulation..." > $ns_ run > > bye, > Y.Jaya Lakshmi. > > Azri Abdul Majid wrote: > Hi guys, > > I need your help. I successfully run this code. But I keep on receiving > message "node 3 is not define". However, I can run NAM. What's wrong with > this code guys? > > > #begin of code > # simple-wireless.tcl > # A simple example for wireless simulation (five nodes) > > # ====================================================================== > # 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) CMUPriQueue ;# 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) 5 ;# number of mobile > nodes > set val(rp) DSR ;# routing protocol > > # ====================================================================== > # Main Program > # ====================================================================== > > #----------- > # Initialize Global Variables > #----------- > set ns_ [new Simulator] > $ns_ use-newtrace > set tracefd [open simTest.tr w] > set namtrace [open simple-wireless.nam w] > $ns_ trace-all $tracefd > > # set up topography object > set topo [new Topography] > > $topo load_flatgrid 500 500 > $ns_ namtrace-all-wireless $namtrace 500 500 > > #-------------- > # Create God > #-------------- > create-god $val(nn) > > #-------------- > # Create the specified number of mobilenodes [$val(nn)] and "attach" them > # to the channel. > # Here two nodes are created : node(0), node(1), node(2), node(3), > node(4) > > # 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) \ > -channelType $val(chan) \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace OFF \ > -movementTrace OFF > > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 ;# disable random motion > } > > #----------- > # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes > #----------- > $node_(0) set X_ 5.0 > $node_(0) set Y_ 2.0 > $node_(0) set Z_ 0.0 > > $node_(1) set X_ 390.0 > $node_(1) set Y_ 385.0 > $node_(1) set Z_ 0.0 > > $node_(2) set X_ 132.0 > $node_(2) set Y_ 423.0 > $node_(2) set Z_ 0.0 > > $node_(3) set X_ 245.0 > $node_(3) set Y_ 150.0 > $node_(3) set Z_ 0.0 > > $node_(4) set X_ 350.0 > $node_(4) set Y_ 85.0 > $node_(4) set Z_ 0.0 > > #------------- > # Now produce some simple node movements > #------------- > $ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" > $ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" > > $ns_ at 60.0 "$node_(2) setdest 10.0 18.0 1.0" > $ns_ at 20.0 "$node_(3) setdest 30.0 28.0 10.0" > $ns_ at 10.0 "$node_(4) setdest 25.0 38.0 1.0" > > # Node_(1) then starts to move away from node_(0) > $ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0" > > # Setup traffic flow between nodes > # TCP connections between node_(0) and node_(1) > > set tcp [new Agent/TCP] > $tcp set class_ 2 > > set sink [new Agent/TCPSink] > $ns_ attach-agent $node_(0) $tcp > $ns_ attach-agent $node_(1) $sink > $ns_ attach-agent $node_(2) $tcp > $ns_ attach-agent $node_(3) $sink > $ns_ attach-agent $node_(4) $tcp > $ns_ connect $tcp $sink > > set ftp [new Application/FTP] > $ftp attach-agent $tcp > $ns_ at 10.0 "$ftp start" > > #---------- > # Tell nodes when the simulation ends > #---------- > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at 150.0 "$node_($i) reset"; > } > > $ns_ at 150.0001 "stop" > $ns_ at 150.0002 "puts \"NS EXITING...\" ; $ns_ halt" > proc stop {} { > global ns_ tracefd > $ns_ flush-trace > close $tracefd > > exec nam simple-wireless.nam & > exit 0 > } > > > puts "Starting Simulation..." > $ns_ run > #end of code > > - azri abdul majid > > > -- > _______________________________________________ > > Search for businesses by name, location, or phone number. -Lycos Yellow > Pages > > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 > > > > > > --------------------------------- > Yahoo! for Good - Make a difference this year. > From f.kolovos at gmail.com Fri Dec 23 05:46:05 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Fri, 23 Dec 2005 15:46:05 +0200 Subject: [ns] lost pkts and installation of gt-itm Message-ID: <8372803c0512230546h753ecaack40deb5aeaf23c5c0@mail.gmail.com> Could you please specify the OS you're using and also the error message that is returned to you? You say that you have tried ./configure and make but it fails to build. Please specify, in general, the (any) error messages that you are receiving. I had some problems with gt-itm and I might be able to help you. -Fk On 12/22/05, ns-users-request at isi.edu wrote: > > > ---------- Forwarded message ---------- > From: "cp kothari" > To: "ns_users" > Date: 22 Dec 2005 07:29:17 -0000 > Subject: [ns] lost pkts and installation of gt-itm > I ahve following doubts regarding ns2 > 1. while simulating manet in ns2.28, what coulbd be the reasons for heave > lost pkts i.e of the order ~1000 pkts out of total ~5000 pkts sent? > > 2. how to install gt-itm and sgb2ns . i have tried all the possible ways > given on the net and help files of gt-itm and sgb2ns but failed.i cant see > any exe file in bin folder of gt-itm. > > CAN SOMEONE HELP ME? > > > ...kothari... > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr Web: http://ermhs.tripod.com ---------------------------------------------- From dario_bodj at hotmail.com Fri Dec 23 07:56:46 2005 From: dario_bodj at hotmail.com (Dario Borriello) Date: Fri, 23 Dec 2005 15:56:46 +0000 Subject: [ns] multihop through AODV Message-ID: Hi all, I'm using a simple topology of one line of nodes, but AODV seems to not recognize the linear path to the destination. Does AODV automatically built up the routing table from the source to the destination or it is necessary to set up some parameters and call some functions? Thanks a lot Dario _________________________________________________________________ Natale 2005. Scarica il pacchetto gratuito di Natale per MSN Messenger! http://www.msn.it/natale2005/messenger From boonkean at tm.net.my Fri Dec 23 09:08:20 2005 From: boonkean at tm.net.my (boon) Date: Sat, 24 Dec 2005 01:08:20 +0800 Subject: [ns] installation problem of ns-2.1b3 In-Reply-To: <20051223113114.65873.qmail@web35010.mail.mud.yahoo.com> Message-ID: <20051223170826.57163D4CD98E@bar10.tm.net.my> You?re welcome, as ns-users we should help each other whenever we could. About your first question, because I have tried to install it on RedHat 9, that?s why I know ? And for your second question, before you install Linux, you can actually browse your Linux CD to read its README or RELEASE-NOTES, there usually will mention its gcc version. Have a nice day!! ________________________________________ From: jaya y [mailto:ns2_group at yahoo.com] Sent: Friday, December 23, 2005 7:31 PM To: boon Subject: RE: [ns] installation problem of ns-2.1b3 hai, Thanks for your valuble suggestion. But, i have two questions to you. How do you know that ns-allinone-2.1b6 can not use RedHat 9.0? How do you know about supporting gcc versions? bye, Y.Jaya Lakshmi. boon wrote: ns-allinone-2.1b3 is an old version and I think it is not compatible with Fedora Core 3 because of the gcc version. Like my case, I use ns-allinone-2.1b6 and I CANNOT use RedHat 9.0 because its gcc version is above 2.95. I suggest that you use RedHat version 7.0, 7.1, 7.2 or 7.3. Their gcc version is less than 2.95. -----Original Message----- From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of jaya y Sent: Wednesday, December 21, 2005 5:09 PM To: ns-users at ISI.EDU Subject: [Norton AntiSpam] [ns] installation problem of ns-2.1b3 hai, i'm using Fedora core 3 .When installing ns-allinone-2.1b3 it reports following problem. cc -c -O -I./../generic -I. -DHAVE_GETCWD=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/tclPosixStr.c ./../generic/tclPosixStr.c: In function `Tcl_ErrnoId': ./../generic/tclPosixStr.c:340: error: duplicate case value ./../generic/tclPosixStr.c:328: error: previously used here ./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg': ./../generic/tclPosixStr.c:787: error: duplicate case value ./../generic/tclPosixStr.c:775: error: previously used here make: *** [tclPosixStr.o] Error 1 tcl8.0 make failed! Exitin g ... If you know solution to this problem, please mail me. bye, Y.Jaya Lakshmi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ________________________________________ Yahoo! for Good - Make a difference this year. From zh.wei at sjtu.edu.cn Fri Dec 23 19:58:52 2005 From: zh.wei at sjtu.edu.cn (zh.wei@sjtu.edu.cn) Date: Sat, 24 Dec 2005 11:58:52 +0800 Subject: [ns] ns install problem Message-ID: <20051224115852.pzxw5heoyqoks0k0@webmail1.sjtu.edu.cn> Dear all, can anybody tell me whether gcc4.0 suit for ns0all-inone installation. I try to use ubuntu linux system install ns. but now failed. I should install gcc, x windows and some other utilities myself. could you show me a tip? thanks! Wei From samqazi1 at yahoo.com Sat Dec 24 00:34:39 2005 From: samqazi1 at yahoo.com (Sameer Qazi) Date: Sat, 24 Dec 2005 00:34:39 -0800 (PST) Subject: [ns] Installation on AMD-64 with Fedore Core-4! Message-ID: <20051224083439.26467.qmail@web34306.mail.mud.yahoo.com> Hi, I've tried everything to install ns-2 on an AMD-64 Opteron based server --(running Fedora Core 4) ->including using the all-in-one and build-from-individual-sources but all in vain. OTCL configuration fails even when I specify TCL path using the --with-tcl=/path to tcl/ option. While, going through the ns mailing archives I found some people have been engaged in making a patch to resolve this issue, but the question nagging my mind is - Is it only because it is unable to find required libraries or something even more deeper? If not then is the patch already ready? Regards, Sameer. __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/ From f.kolovos at gmail.com Sat Dec 24 00:58:37 2005 From: f.kolovos at gmail.com (Filippos Kolovos) Date: Sat, 24 Dec 2005 10:58:37 +0200 Subject: [ns] what is problem with my tcl Message-ID: <8372803c0512240058j743ec88am76f13646f770cb1a@mail.gmail.com> You have no specific problem with your Tcl. Since you have installed it, you only have to provide the path to it during configure with the following parameter: ./configure --with-tcl={your tcl8.4.5 path} --with-tcl-ver=8.4.5--with-tk={your tk8.4.5 path} --with-tk-ver=8.4.5 What is meant with "path" is i.e. /usr/bin/tcl8.4.5, or whereever is your Tcl, Tk, etc I also attach a page that might be useful to you when you will install the other packages for NS-2. Try the instructions found here: http://nslab.ee.ntu.edu.tw/courses/ns-tutorial/labs/lab1.html I have used this method and I installed, with user priviledges, Tcl8.4.5, Tk8.4.5, otcl, tclcl, ns-2.29, nam-1.11, etc in my home directory under Debian Linux 3.1 where I'm working. I also got the same error as you when I did not specify the path to the Tcl, Tk, etc. Try the page above and I think that you will have no problems -Fk On 12/23/05, ns-users-request at isi.edu wrote: > > > ---------- Forwarded message ---------- > From: Qingyu Miao > To: ns-users at ISI.EDU > Date: Fri, 23 Dec 2005 16:21:50 +0800 > Subject: [ns] what is problem with my tcl > Hi > I am a green hand on NS. when I configure NS in my LINUX(redhat), there is > a > problem. > I have installed tcl8.4.5 and tk8.4.5 in my Linux. > Does anyone know what could be the problem and what should I do? Thanks. > Below is the error message when configure. > BR-Miao Qingyu > > --------------------------------------------- > sky:/home/emiaoqy/mesh/software/ns-2.1b9a> ./configure > No .configure file found in current directory > Continuing with default options... > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking target system type... i686-pc-linux-gnu > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for executable suffix... > checking for object suffix... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking how to run the C preprocessor... gcc -E > checking for ANSI C header files... yes > checking for string.h... yes > checking for main in -lXbsd... no > checking for socket in -lsocket... no > checking for gethostbyname in -lnsl... yes > checking for dcgettext in -lintl... no > checking for getnodebyname in -ldnet_stub... no > checking that g++ can handle -O2... no > checking standard STL is available... no > checking for tcl.h... -I/usr/local/include > checking for libtcl8.3... -L/usr/lib -ltcl > checking for init.tcl... no > checking for tclsh8.3.2... no > checking for tclsh8.3... no > checking for tclsh... /usr/bin/tclsh > configure: error: Installation of tcl seems incomplete or can't be found > automatically. > Please correct the problem by telling configure where tcl is > using the argument --with-tcl=/path/to/package > (perhaps after installing it), > or the package is not required, disable it with --with-tcl=no. > > > > > > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications E-Mail: f.kolovos at ieee.org, f.kolovos at computer.org, filippos at uom.gr ---------------------------------------------- From moh1_hammad at yahoo.com Sat Dec 24 01:05:24 2005 From: moh1_hammad at yahoo.com (mohd hammad) Date: Sat, 24 Dec 2005 01:05:24 -0800 (PST) Subject: [ns] run Dijkstr on Ns2 Message-ID: <20051224090525.70041.qmail@web42404.mail.yahoo.com> Hi All, I am new to ns2 (i.e: a student) and currently doing some research work using NS2...my focus is on Dijkstra algorithm at the moment...but the problem is that I don't know how to run dijkstra.cc...As far as I understand, this is a standalone file which can be directly called...but I doesn't seem to work...can some one please help me by teaching how to run this file... My another question is, does NS2 implement Widest-Shortest Path or Shortest-Widest Path?...If either one is implmented, how do I find how it is implemente? Thank you, mohammad hammad __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/ From tandre at dei.uc.pt Sat Dec 24 01:48:52 2005 From: tandre at dei.uc.pt (Tiago Camilo) Date: Sat, 24 Dec 2005 09:48:52 -0000 Subject: [ns] ns install problem In-Reply-To: <20051224115852.pzxw5heoyqoks0k0@webmail1.sjtu.edu.cn> Message-ID: <200512240949.jBO9mxQ12982@vapor.isi.edu> This how to covers the Ubuntu installation. http://www.ics.mq.edu.au/~phillipl/documents/NS-2.28AllInOne_HOWTO.html Tiago Camilo -----Original Message----- From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of zh.wei at sjtu.edu.cn Sent: s?bado, 24 de Dezembro de 2005 3:59 To: ns-users at ISI.EDU Subject: [ns] ns install problem From mirzarezaee at gmail.com Sun Dec 25 04:08:53 2005 From: mirzarezaee at gmail.com (Mitra Mirzarezaee) Date: Sun, 25 Dec 2005 15:38:53 +0330 Subject: [ns] a Problem in attaching 2 nodes In-Reply-To: <9ca896280512250400x267a8b32mb9ec87321637551f@mail.gmail.com> References: <9ca896280512250400x267a8b32mb9ec87321637551f@mail.gmail.com> Message-ID: <9ca896280512250408s30b6ff5cwe97aadb45766c498@mail.gmail.com> ---------- Forwarded message ---------- From: Mitra Mirzarezaee Date: Dec 25, 2005 3:30 PM Subject: a Problem in attaching 2 nodes To: ns-users at isi.edu Dear all, I want to make a ring between some source and distinations. but the following code do not work and makes an error. $ns connect $udp(k) $null(k-1) can any one help me? ------------------------------------------------------------ I have attached the source code of the program to this email. Regards, Mirzarezaee From fumi at wgserve.de Sun Dec 25 05:22:54 2005 From: fumi at wgserve.de (Bernd Roemer) Date: Sun, 25 Dec 2005 14:22:54 +0100 Subject: [ns] Announcing BonnTraffic 1.0 Message-ID: <43AE9D2E.40509@wgserve.de> Hi ns community... We are happy to announce the first release of our new traffic generator BonnTraffic. It is a simulator and scenario independent, highly flexible, stand-alone traffic generator for linux/unix-platforms. It is designed for flexibility regarding the utilized simulators, the focused scenarios as well as the traffic-type and its -characteristics. BonnTraffic therefore offers a comfortable framework consisting of four major steps: 1. scenario definition, 2. traffic definition, 3. traffic generation, 4. traffic export. BonnTraffic provides, analog to ns2, an embedded OTcl interpreter to realize these tasks. There are currently a well evaluated HTTP-model as well as a rudimentary SIP-module (VoIP) integrated. BonnTraffic is licensed under the GPL and obtainable from its web-page. Just visit the BoMoNet page for further information: http://www.cs.uni-bonn.de/IV/BoMoNet/ Best wishes... ---Bernd Roemer--- From iqbalqr at aston.ac.uk Sun Dec 25 07:44:11 2005 From: iqbalqr at aston.ac.uk (Qasim Raza Iqbal) Date: Sun, 25 Dec 2005 15:44:11 -0000 (GMT) Subject: [ns] Energy output Message-ID: <1766.81.208.167.126.1135525451.squirrel@81.208.167.126> Dear all I would be grateful if you could help me on how to get energy displayed as shown in the article about energy model update in NS2. e.g [energy 979.917000 ei 20.074 es 0.000 et 0.003 er 0.006] The meaning of each item is as follows: energy: total remaining energy ei: energy consumption in IDLE state es: energy consumption in SLEEP state et: energy consumed in transmitting packets er: energy consumed in receiving packets at the moment i am getting something like this by running the MyTest.tcl script s 17.221000000 _0_ MAC --- 0 SYNC 9 [0.12 0 0] [energy 1000.000000] N -t 17.221000 -n 1 -e 982.776000 s 18.639000000 _1_ MAC --- 0 SYNC 9 [0.13 1 0] [energy 982.776000] N -t 18.639000 -n 0 -e 981.358000 s 20.080000000 _0_ MAC --- 0 SYNC 9 [0.12 0 1] [energy 981.358000] N -t 20.080000 -n 1 -e 979.917000 s 21.704249539 _0_ AGT --- 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 r 21.704249539 _0_ RTR --- 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 s 21.704249539 _0_ RTR --- 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 D 21.704249539 _0_ IFQ ARP 2 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [2] 0 0 D 21.704249539 _0_ IFQ ARP 3 cbr 512 [0.00 0 0] [energy 979.917000] ------- [0:0 1:0 32 0] [3] 0 0 s 32.981000000 _1_ MAC --- 0 SYNC 9 [0.12 1 0] [energy 979.917000] I cannot see the complete energy breakdown. Your help is very much appreciated Merry Christmas to all and Happy New Year regar