From johnh at ISI.EDU Sun Aug 1 01:48:18 2004 From: johnh at ISI.EDU (John Heidemann) Date: Sun Aug 1 01:50:32 2004 Subject: [ns] ns-2 FAQ Message-ID: <200408010848.i718mIrL023874@dash.isi.edu> 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 :-) 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 edtyy at hotmail.com Sun Aug 1 02:43:43 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Sun Aug 1 02:46:26 2004 Subject: [ns] Implementation of Wireless Credit-based Fair Queuing (WCFQ) Message-ID: Hello, Has anyone implementes Wireless Credit-based Fair Queuing (WCFQ) in NS2 Thank You Edwin _________________________________________________________________ Preview the new MSN Search with MSN Search Tech Preview. http://techpreview.search.msn.com.sg/ From madmath at gmail.com Sun Aug 1 08:56:33 2004 From: madmath at gmail.com (Halmes Madmath) Date: Sun Aug 1 08:58:55 2004 Subject: [ns] [question] Event ID in trace file Message-ID: <2800a44904080108563e568477@mail.gmail.com> Hi everybody, I have a question regarding the event ID in trace file. I have a very simple simulation with 3 nodes communicating through wireless links, packets are sent from node 0 to node 2 via node 1. The routing protocol is DSR. In my script, I set all trace levels to "ON" like this: $ns_ node-config -adhocRouting $opt(rp) \ -macType $opt(mac) \ -llType $opt(ll) \ -phyType $opt(netif) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propInstance $prop \ -channel $chan \ -topoInstance $topo \ -wiredRouting OFF \ -agentTrace ON \ -routerTrace ON \ -macTrace ON And I also used "trace-all" to track all events. set tracefd [open $opt(tr) w] $ns_ trace-all $tracefd However, in the output trace file, I found event ID "2" is lost. A part of my trace file is attached here: s 2.556838879 _1_ AGT --- 0 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [0] 0 16777215 r 2.556838879 _1_ RTR --- 0 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [0] 0 16777215 s 2.557612852 _1_ RTR --- 1 DSR 32 [0 0 0 0] ------- [1:255 0:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] s 2.558007852 _1_ MAC --- 1 DSR 84 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] r 2.558680627 _2_ MAC --- 1 DSR 32 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] r 2.558705627 _2_ RTR --- 1 DSR 32 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] s 2.606488309 _1_ RTR --- 3 DSR 32 [0 0 0 0] ------- [1:255 0:255 32 0] 1 [1 2] [0 2 0 0->0] [0 0 0 0->0] s 2.606563309 _1_ MAC --- 3 DSR 84 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 2] [0 2 0 0->0] [0 0 0 0->0] r 2.607236084 _2_ MAC --- 3 DSR 32 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 2] [0 2 0 0->0] [0 0 0 0->0] r 2.607261084 _2_ RTR --- 3 DSR 32 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 2] [0 2 0 0->0] [0 0 0 0->0] f 2.612695807 _2_ RTR --- 3 DSR 48 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 2 [1 2] [0 2 0 0->0] [0 0 0 0->0] s 2.613230807 _2_ MAC --- 3 DSR 100 [0 ffffffff 2 800] ------- [1:255 0:255 32 0] 2 [1 2] [0 2 0 0->0] [0 0 0 0->0] r 2.614031582 _1_ MAC --- 3 DSR 48 [0 ffffffff 2 800] ------- [1:255 0:255 32 0] 2 [1 2] [0 2 0 0->0] [0 0 0 0->0] r 2.614031583 _0_ MAC --- 3 DSR 48 [0 ffffffff 2 800] ------- [1:255 0:255 32 0] 2 [1 2] [0 2 0 0->0] [0 0 0 0->0] r 2.614056582 _1_ RTR --- 3 DSR 48 [0 ffffffff 2 800] ------- [1:255 0:255 32 0] 2 [1 2] [0 2 0 0->0] [0 0 0 0->0] r 2.614056583 _0_ RTR --- 3 DSR 48 [0 ffffffff 2 800] ------- [1:255 0:255 32 0] 2 [1 2] [0 2 0 0->0] [0 0 0 0->0] s 2.618226876 _0_ RTR --- 4 DSR 52 [0 0 0 0] ------- [0:255 1:255 254 2] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] s 2.618641876 _0_ MAC --- 0 ARP 80 [0 ffffffff 0 806] ------- [REQUEST 0/0 0/2] r 2.619282652 _2_ MAC --- 0 ARP 28 [0 ffffffff 0 806] ------- [REQUEST 0/0 0/2] s 2.619557652 _2_ MAC --- 0 RTS 44 [4fe 0 2 0] r 2.619910427 _0_ MAC --- 0 RTS 44 [4fe 0 2 0] s 2.619920427 _0_ MAC --- 0 CTS 38 [3c4 2 0 0] r 2.620225202 _2_ MAC --- 0 CTS 38 [3c4 2 0 0] s 2.620235202 _2_ MAC --- 0 ARP 80 [13a 0 2 806] ------- [REPLY 2/2 0/0] r 2.620875977 _0_ MAC --- 0 ARP 28 [13a 0 2 806] ------- [REPLY 2/2 0/0] s 2.620885977 _0_ MAC --- 0 ACK 38 [0 2 0 0] r 2.621190753 _2_ MAC --- 0 ACK 38 [0 2 0 0] s 2.621759977 _0_ MAC --- 0 RTS 44 [5be 2 0 0] r 2.622112753 _2_ MAC --- 0 RTS 44 [5be 2 0 0] s 2.622122753 _2_ MAC --- 0 CTS 38 [484 0 0 0] r 2.622427528 _0_ MAC --- 0 CTS 38 [484 0 0 0] s 2.622437528 _0_ MAC --- 4 DSR 104 [13a 2 0 800] ------- [0:255 1:255 254 2] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] r 2.623270303 _2_ MAC --- 4 DSR 52 [13a 2 0 800] ------- [0:255 1:255 254 2] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] s 2.623280303 _2_ MAC --- 0 ACK 38 [0 0 0 0] r 2.623295303 _2_ RTR --- 4 DSR 52 [13a 2 0 800] ------- [0:255 1:255 254 2] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] f 2.623295303 _2_ RTR --- 4 DSR 52 [13a 2 0 800] ------- [0:255 1:255 253 1] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] r 2.623585078 _0_ MAC --- 0 ACK 38 [0 0 0 0] s 2.623734303 _2_ MAC --- 0 ARP 80 [0 ffffffff 2 806] ------- [REQUEST 2/2 0/1] r 2.624375078 _1_ MAC --- 0 ARP 28 [0 ffffffff 2 806] ------- [REQUEST 2/2 0/1] r 2.624375078 _0_ MAC --- 0 ARP 28 [0 ffffffff 2 806] ------- [REQUEST 2/2 0/1] s 2.624950078 _1_ MAC --- 0 RTS 44 [4fe 2 1 0] r 2.625302853 _2_ MAC --- 0 RTS 44 [4fe 2 1 0] s 2.625312853 _2_ MAC --- 0 CTS 38 [3c4 1 0 0] r 2.625617628 _1_ MAC --- 0 CTS 38 [3c4 1 0 0] s 2.625627628 _1_ MAC --- 0 ARP 80 [13a 2 1 806] ------- [REPLY 1/1 2/2] r 2.626268403 _2_ MAC --- 0 ARP 28 [13a 2 1 806] ------- [REPLY 1/1 2/2] s 2.626278403 _2_ MAC --- 0 ACK 38 [0 1 0 0] r 2.626583178 _1_ MAC --- 0 ACK 38 [0 1 0 0] s 2.626952403 _2_ MAC --- 0 RTS 44 [5be 1 2 0] r 2.627305178 _1_ MAC --- 0 RTS 44 [5be 1 2 0] s 2.627315178 _1_ MAC --- 0 CTS 38 [484 2 0 0] r 2.627619953 _2_ MAC --- 0 CTS 38 [484 2 0 0] s 2.627629953 _2_ MAC --- 4 DSR 104 [13a 1 2 800] ------- [0:255 1:255 253 1] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] r 2.628462728 _1_ MAC --- 4 DSR 52 [13a 1 2 800] ------- [0:255 1:255 253 1] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] s 2.628472728 _1_ MAC --- 0 ACK 38 [0 2 0 0] r 2.628487728 _1_ RTR --- 4 DSR 52 [13a 1 2 800] ------- [0:255 1:255 253 1] 3 [0 2] [1 2 3 1->0] [0 0 0 0->0] SFESTs 2.628487728 _1_ 0 [1 -> 0] 1(1) to 2 [1 |2 0 ] s 2.628487728 _1_ RTR --- 0 cbr 104 [0 0 0 0] ------- [1:0 0:0 32 2] [0] 0 16777215 r 2.628777503 _2_ MAC --- 0 ACK 38 [0 2 0 0] s 2.628866728 _1_ MAC --- 0 RTS 44 [75e 2 1 0] r 2.629219503 _2_ MAC --- 0 RTS 44 [75e 2 1 0] s 2.629229503 _2_ MAC --- 0 CTS 38 [624 1 0 0] r 2.629534278 _1_ MAC --- 0 CTS 38 [624 1 0 0] s 2.629544278 _1_ MAC --- 0 cbr 156 [13a 2 1 800] ------- [1:0 0:0 32 2] [0] 0 16777215 r 2.630793053 _2_ MAC --- 0 cbr 104 [13a 2 1 800] ------- [1:0 0:0 32 2] [0] 1 16777215 s 2.630803053 _2_ MAC --- 0 ACK 38 [0 1 0 0] r 2.630818053 _2_ RTR --- 0 cbr 104 [13a 2 1 800] ------- [1:0 0:0 32 2] [0] 1 16777215 f 2.630818053 _2_ RTR --- 0 cbr 104 [13a 2 1 800] ------- [1:0 0:0 31 0] [0] 1 16777215 r 2.631107829 _1_ MAC --- 0 ACK 38 [0 1 0 0] s 2.631377053 _2_ MAC --- 0 RTS 44 [75e 0 2 0] r 2.631729829 _0_ MAC --- 0 RTS 44 [75e 0 2 0] s 2.631739829 _0_ MAC --- 0 CTS 38 [624 2 0 0] r 2.632044604 _2_ MAC --- 0 CTS 38 [624 2 0 0] s 2.632054604 _2_ MAC --- 0 cbr 156 [13a 0 2 800] ------- [1:0 0:0 31 0] [0] 1 16777215 r 2.633303379 _0_ MAC --- 0 cbr 104 [13a 0 2 800] ------- [1:0 0:0 31 0] [0] 2 16777215 s 2.633313379 _0_ MAC --- 0 ACK 38 [0 2 0 0] r 2.633328379 _0_ RTR --- 0 cbr 104 [13a 0 2 800] ------- [1:0 0:0 31 0] [0] 2 16777215 r 2.633328379 _0_ AGT --- 0 cbr 64 [13a 0 2 800] ------- [1:0 0:0 31 0] [0] 2 16777215 r 2.633618154 _2_ MAC --- 0 ACK 38 [0 2 0 0] s 3.176254688 _1_ AGT --- 5 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [1] 0 16777215 r 3.176254688 _1_ RTR --- 5 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [1] 0 16777215 As you can see, the 6th column of this trace file represents "event id". I have event ID from 3 to the last ( I didn't post them here since it's too long), but the I don't have the second event ID. Then I changed the transmission range of each node from 250m to 75m to make every transmission failure. In this simulation, I found the event ID being traced are "0, 1, 3, 16, 60...". They are not in sequence. s 2.556838879 _1_ AGT --- 0 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [0] 0 16777215 r 2.556838879 _1_ RTR --- 0 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [0] 0 16777215 s 2.557612852 _1_ RTR --- 1 DSR 32 [0 0 0 0] ------- [1:255 0:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] s 2.558007852 _1_ MAC --- 1 DSR 84 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0] s 2.606488309 _1_ RTR --- 3 DSR 32 [0 0 0 0] ------- [1:255 0:255 32 0] 1 [1 2] [0 2 0 0->0] [0 0 0 0->0] s 2.606563309 _1_ MAC --- 3 DSR 84 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 2] [0 2 0 0->0] [0 0 0 0->0] s 3.176254688 _1_ AGT --- 16 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [1] 0 16777215 r 3.176254688 _1_ RTR --- 16 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [1] 0 16777215 s 4.120996176 _1_ AGT --- 60 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [2] 0 16777215 r 4.120996176 _1_ RTR --- 60 cbr 64 [0 0 0 0] ------- [1:0 0:0 32 0] [2] 0 16777215 s 4.593472560 _1_ RTR --- 92 DSR 32 [0 0 0 0] ------- [1:255 0:255 32 0] 1 [1 3] [0 3 0 0->0] [0 0 0 0->0] s 4.593587560 _1_ MAC --- 92 DSR 84 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 3] [0 3 0 0->0] [0 0 0 0->0] s 4.640949251 _1_ RTR --- 95 DSR 32 [0 0 0 0] ------- [1:255 0:255 32 0] 1 [1 4] [0 4 0 0->0] [0 0 0 0->0] s 4.641064251 _1_ MAC --- 95 DSR 84 [0 ffffffff 1 800] ------- [1:255 0:255 32 0] 1 [1 4] [0 4 0 0->0] [0 0 0 0->0] So my questions are: 1. Where are other event IDs used for? I already opened the MAC, AGT and RTR levels for trace. Besides these levels, are there any other levels can be traced? 2. Can I trace every event generated by the scheduler? If so, how to realize it in the TCL script file? I looked up the manual and mailing-list but cannot find any related words. Your assistance and response if GREATLY appreciated! -- Halmes MadMath From klee at nps.edu Sun Aug 1 17:39:07 2004 From: klee at nps.edu (Lee kok thong) Date: Sun Aug 1 17:41:27 2004 Subject: [ns] AODV routing Message-ID: <000a01c47829$1efdac70$210110ac@G0303085> Hi I am new at ns2, am learning more everyday. I want to simulate some kind of attacks on AODV routing. I am thinking of modelling vicious nodes as nodes that drop packets everytime a packet that is forwarded to it. How can I turn off routing for a node since routing is defined globally in the Tcl script for all nodes? Please advise. Thanks! Regards Francis lee From naby_djoubar at hotmail.com Sun Aug 1 19:39:42 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Sun Aug 1 19:42:30 2004 Subject: [ns] how do I compile and execute my new protocole? Message-ID: Hi I have develloped a new ad-hoc wireless network protocol ( actually I modified an existing one -DSR-to come up with mine). 1- How do I compile it now? I have a bunch of header and source files and I don't know wich Class is the coordinator. 2- after I compile it, how do I simulate it ? I mean how do I tell NS-2 "This is the protocole you have to use for this simulation"? Thank you in advance for any kind of help. Naby. _________________________________________________________________ Balayez vos courriels entrants et sortants et les pi?ces jointes et contribuez ? ?liminer les virus destructeurs susceptibles d?y ?tre int?gr?s. http://join.msn.com/?pgmarket=fr-ca&page=features/virus Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From chuahn_2 at hotmail.com Sun Aug 1 21:46:31 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Sun Aug 1 21:48:45 2004 Subject: [ns] A question about Queue/DropTail set limit_ Message-ID: Hi, I run a simulation of TCP Reno and a TCP-friendly protocol with these links. 1ms delay and 10Mbps rate 1ms delay and 10Mbps rate 20ms delay and 0.5Mbps rate (bottleneck) 1ms delay and 10Mbps rate 1ms delay and 10Mbps rate I used DropTail queuing mechanism I set packet size to 500 bytes I set Queue/DropTail set limit_ to delay bandwidth product, i.e. 5 packets or 20000bits However, the resulted outputs exhibit quite low bandwidth utilization, i.e. 59-60%. Then, I increased the queue limit to 10, consequently bandwidth utilization increased about 20% to 78-80%. I would be very grateful if anyone can suggest what is the appropriate Queue/DropTail limit for this configuration, and how to come out with the figure. Thank you. Chua _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger From tjh at sys.i.kyoto-u.ac.jp Sun Aug 1 22:01:09 2004 From: tjh at sys.i.kyoto-u.ac.jp (tu jianhui) Date: Sun Aug 1 22:02:30 2004 Subject: [ns]parameter NonpropRequestTimout in DSR References: <20040731065254.38042.qmail@web61103.mail.yahoo.com> Message-ID: <008001c4784d$b9d95720$e806e80a@kyototjh> Hi,all In the page 96 of Internet Draft named with "draft-ietf-manet-dsr-09.txt" for DSR, the parameter for "non-propagating" Route Request exsits with default value of "NonpropRequestTimeout 30 milliseconds" .However , I searched it in the directory /ns-allinone-2.27/ns-2.27/dsr and could not find it. Is it renamed or does not exist at all? Following is the searching result: cache_stats.h:#define __cache_stats__ cache_stats.h:#define ACTION_ADD_ROUTE 1 cache_stats.h:#define ACTION_NOTICE_ROUTE 2 cache_stats.h:#define ACTION_FIND_ROUTE 3 cache_stats.h:#define ACTION_DEAD_LINK 4 cache_stats.h:#define ACTION_EVICT 5 cache_stats.h:#define ACTION_CHECK_CACHE 6 constants.h:#define _constants_h dsr-tu.tcl:# Each routing protocol script is expected to have defined a proc dsr_proto.h:#define _dsr_proto_h dsragent.cc:// #define NEW_IFQ_LOGIC dsragent.cc:// #define NEW_REQUEST_LOGIC dsragent.cc:#define NEW_SALVAGE_LOGIC dsragent.cc://#define DSRFLOW_VERBOSE dsragent.h:#define _DSRAgent_h dsragent.h:#define BUFFER_CHECK 0.03 // seconds between buffer checks dsragent.h:#define RREQ_JITTER 0.010 // seconds to jitter broadcast route r uests dsragent.h:#define SEND_TIMEOUT 30.0 // # seconds a packet can live in send f dsragent.h:#define SEND_BUF_SIZE 64 dsragent.h:#define RTREP_HOLDOFF_SIZE 10 dsragent.h:#define GRAT_ROUTE_ERROR 0 // tell_addr indicating a grat route e dsragent.h:#define DSR_FILTER_TAP /* process a packet only once a the tap */ dsragent.h:#define TAP_CACHE_SIZE 1024 dsragent.h:#define TAP_BITMASK (TAP_CACHE_SIZE - 1) flowstruct.h:#define __flow_table_h__ flowstruct.h:#define END_TO_END_COUNT 2 flowstruct.h:#define FLOW_TABLE_SIZE 3000 flowstruct.h:#define ARS_TABLE_SIZE 5 hdr_sr.h:#define sr_hdr_h hdr_sr.h:#define SR_HDR_SZ 4 // size of constant part of hdr hdr_sr.h:#define MAX_SR_LEN 16 // longest source route we can handle hdr_sr.h:#define MAX_ROUTE_ERRORS 3 // how many route errors can fit in on pkt? linkcache.cc:#define CURRENT_TIME Scheduler::instance().clock() linkcache.cc:#define MAX_SIMTIME 86400 linkcache.cc://#define REALTIME_EXPIRE linkcache.cc:#define LC_MAX_NODES 200 linkcache.cc:#define EXPPOLICY_INFINITE 0 linkcache.cc:#define EXPPOLICY_STATIC 1 linkcache.cc:#define EXPPOLICY_LINEAR 2 linkcache.cc:#define EXPPOLICY_EXP 3 linkcache.cc:#define EXPPOLICY_GOD_OMNI 4 linkcache.cc:#define EXPPOLICY_GOD_TABLE 5 linkcache.cc:#define LONGEST_LIVED_ROUTE linkcache.cc:#define IS_GOOD 0 linkcache.cc:#define IS_BAD 1 linkcache.cc:#define CALLED_GOOD 0 linkcache.cc:#define CALLED_BAD 2 linkcache.cc:#define LINK_FLAG_UP 0x01 linkcache.cc:#define LINK_TIMEOUT MAX_SIMTIME linkcache.cc:#define INFINITY 0x7fffffff mobicache.cc:#define fout stdout path.h:#define _path_h requesttable.h:#define _requesttable_h routecache.cc:#define STOP_PROCESSING 0 routecache.cc:#define CONT_PROCESSING 1 routecache.h:#define _routecache_h simplecache.cc:#define fout stdout sr_forwarder.h:#define _sr_forwarder_ srpacket.h:#define _SRPACKET_H_ tu-test-help.tcl:# define node connection pattern..... tu-test-help.tcl:#define traffic model..... tu-test-help.tcl:# 30 defines the node size for nam Could anyone tell me how to implement a "non-propagating" Route Request as an initial phase of a Route Discovery? Is there any parameter for "non-propagating" Route Request ? Could you give me some suggestion ? Thank you in advance ! Best Regards Tu Jianhui From mrhammadali2004 at yahoo.com Sun Aug 1 23:33:03 2004 From: mrhammadali2004 at yahoo.com (hammad ali) Date: Sun Aug 1 23:35:34 2004 Subject: [ns] agent creation problem PLS HELP Message-ID: <20040802063303.64482.qmail@web61109.mail.yahoo.com> Dear Sir, I am getting error in tcl script "Shadow object failed" fired by new procedure of tcl-1.15/tcl-object.tcl file. It seeems that there is no record of my newly created agent in hash table of shadow object. I got error at line ................ [new Agent/MYPKT] in my tcl script file I have done following things Add mypkt.o to NS Makefile In packet.h, add "PT_MYPKT" to the "enum packet_t" list and add "name_[PT_MYPKT]= "mypkt";" to the class p_info p_info() function. Perform a "make depend". Ignore any warnings. Add the following to the end of tcl/lib/ns-default.tcl: Agent/MYPKT set packetSize_ 64 Add the following to the "foreach prot" list in tcl/lib/ns-packet.tcl: { MYPKT } Run "make" BUT I am getting error I have tried my best even searche ns-users archive but i do not able to sove problem pls help --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From kenneth at daimi.au.dk Sun Aug 1 23:41:03 2004 From: kenneth at daimi.au.dk (Kenneth Nielsen) Date: Sun Aug 1 23:41:33 2004 Subject: [ns] Wireless node simulation References: <000801c47675$acba2cb0$210110ac@G0303085> Message-ID: <003701c4785b$ae577220$f9220b0a@w2kserver.daimi.au.dk> Hi Indstead of assigning a routing protocol (fx. AODV), assign the DumbAgent to the 5 nodes from your example. Like this: set val(adhocRouting) DumbAgent Regards, Kenneth ----- Original Message ----- From: "Lee kok thong" To: Sent: Friday, July 30, 2004 10:42 PM Subject: [ns] Wireless node simulation > > Hi, > > I am doing some investigation on wireless ad hoc routing. > Can anyone give me some pointers if you can turn off some nodes in > routing while keeping the rest routing. > E.g. 5 nodes among 20 nodes are not routing. How can I do that in TCL > scripting ? Appreciate some pointers please/. > > Thanks a lot. > > regards > > Francis Lee > > > From klee at nps.edu Mon Aug 2 00:56:28 2004 From: klee at nps.edu (Lee kok thong) Date: Mon Aug 2 00:58:35 2004 Subject: [ns] Wireless node simulation In-Reply-To: <003701c4785b$ae577220$f9220b0a@w2kserver.daimi.au.dk> Message-ID: <000001c47866$37ecce40$210110ac@G0303085> Kenneth, tks for the reply. I have some doubts, hope you can give me your thinking. However, set val(adhocRouting) DumbAgent, is a global assignment for all the 20 nodes. Once I do this, all the 20 nodes will not route as well. I wonder if I can do this For {set i 0} {$i < 5} {incr i}{ set node_($i) [$ns_ node] $node_($i) random-motion 0 $ns_ node-config -adhocRouting $opt(adhocRouting) DumbAgent ..... } For {set i 5} {$i < 20} {incr i}{ set node_($i) [$ns_ node] $node_($i) random-motion 0 $ns_ node-config -adhocRouting $opt(adhocRouting) AODV ..... } Does anyone think that this will work ? Alternatively, how do I make some nodes (configured w. AODV) drop packets deliberately instead or do not forward beyond ? regards Francis Lee -----Original Message----- From: Kenneth Nielsen [mailto:kenneth@daimi.au.dk] Sent: Sunday, August 01, 2004 11:41 PM To: klee@nps.edu; ns-users@ISI.EDU Subject: Re: [ns] Wireless node simulation Hi Indstead of assigning a routing protocol (fx. AODV), assign the DumbAgent to the 5 nodes from your example. Like this: set val(adhocRouting) DumbAgent Regards, Kenneth ----- Original Message ----- From: "Lee kok thong" To: Sent: Friday, July 30, 2004 10:42 PM Subject: [ns] Wireless node simulation > > Hi, > > I am doing some investigation on wireless ad hoc routing. > Can anyone give me some pointers if you can turn off some nodes in > routing while keeping the rest routing. > E.g. 5 nodes among 20 nodes are not routing. How can I do that in TCL > scripting ? Appreciate some pointers please/. > > Thanks a lot. > > regards > > Francis Lee > > > From yann.fleutot at eads-telecom.com Mon Aug 2 01:52:56 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Mon Aug 2 01:56:29 2004 Subject: [ns] Agent creation ERROR. . .PLS HELP Message-ID: <200408021105.NAA02340@trantor.eads-dsn.com> There is only one 'g' at Ping ! > -----Message d'origine----- > De : hammad ali [mailto:mrhammadali2004@yahoo.com] > Envoy? : samedi 31 juillet 2004 08:37 > ? : ns-users@ISI.EDU > Objet : [ns] Agent creation ERROR. . .PLS HELP > > > > Dear Users > > I am trying to create new Agent Agent/Pingg as describe in > Mc Greis's tutorial > BUT I am getting error > > ********** > > > invalid command name "Agent/Pingg" > while executing > "Agent/Pingg create _o59 " > 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/Pingg" > invoked from within > "set p0 [new Agent/Pingg]" > (file "myping.tcl" line 34) > [root@localhost mycode]# > ***************************** > > > PLS HELP ME > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > From yann.fleutot at eads-telecom.com Mon Aug 2 02:01:36 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Mon Aug 2 02:04:30 2004 Subject: [ns] AODV routing Message-ID: <200408021113.NAA03675@trantor.eads-dsn.com> Hello, I'm very new too, so I'm not sure... But I think the node routing is not necessarily global. You define it with "$ns_ node-config -adhocRouting AODV" but it is only defined on the nodes your create after this statement. Then, you can "$ns_ node-config -adhocRouting AODV", create your routing nodes and then, "$ns_ node-config ANOTHER_THING" and create your non-routing nodes. Of course, you have to replace ANOTHER_THING by the appropriate parameter to disable adhoc routing but I have no idea what it is exactly. That's just a clue, sorry. Yann > -----Message d'origine----- > De : Lee kok thong [mailto:klee@nps.edu] > Envoy? : lundi 2 ao?t 2004 02:39 > ? : ns-users@ISI.EDU > Objet : [ns] AODV routing > > > > Hi > I am new at ns2, am learning more everyday. I want to > simulate some kind > of attacks on AODV routing. > I am thinking of modelling vicious nodes as nodes that drop packets > everytime a packet that is forwarded to it. > How can I turn off routing for a node since routing is > defined globally > in the Tcl script for all nodes? > > Please advise. Thanks! > > > Regards > Francis lee > > > From yann.fleutot at eads-telecom.com Mon Aug 2 02:02:46 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Mon Aug 2 02:05:29 2004 Subject: [ns] how do I compile and execute my new protocole? Message-ID: <200408021114.NAA03844@trantor.eads-dsn.com> Hello, Have your read http://www.isi.edu/nsnam/ns/tutorial/nsnew.html ? It's interesting. > -----Message d'origine----- > De : Naby Djoubar Soumah [mailto:naby_djoubar@hotmail.com] > Envoy? : lundi 2 ao?t 2004 04:40 > ? : ns-users@ISI.EDU > Objet : [ns] how do I compile and execute my new protocole? > > > > Hi > > I have develloped a new ad-hoc wireless network protocol ( actually I > modified an existing one -DSR-to come up with mine). > > 1- How do I compile it now? I have a bunch of header and > source files and I > don't know wich Class is the coordinator. > > 2- after I compile it, how do I simulate it ? I mean how do I > tell NS-2 > "This is the protocole you have to use for this simulation"? > > Thank you in advance for any kind of help. > > Naby. > > _________________________________________________________________ > Balayez vos courriels entrants et sortants et les pi?ces jointes et > contribuez ? ?liminer les virus destructeurs susceptibles d'y > ?tre int?gr?s. > http://join.msn.com/?pgmarket=fr-ca&page=features/virus > Commencez d?s > maintenant ? profiter de tous les avantages de MSN Premium et > obtenez les > deux premiers mois GRATUITS*. > From junhuang2001 at hotmail.com Mon Aug 2 02:31:55 2004 From: junhuang2001 at hotmail.com (Jun Huang) Date: Mon Aug 2 02:37:32 2004 Subject: [ns] Installation of ns2 on Fedora Core2 (X86_64) Message-ID: I just installed ns2 on Fedora Core2 (X86_64). Some changes need to be made before you do "./install": 1. Follow Giovanni's instruction = (http://mailman.isi.edu/pipermail/ns-users/2004-June/043180.html), to = update config.sub under otcl-1.8/ and tclcl-1.15 2. add path "/usr/X11R6/lib64" under "xlibdirs" variable in the = following 6 files: ns-2.27/configure ns-2.27/conf/configure.in.x11 otcl-1.8/configure otcl-1.8/conf/configure.in.x11 tclcl-1.15/configure tclcl-1.15/conf/configure.in.x11 This step may not be neccessary for other linux distributions, such as = Debian. Please let me know if you see any problem in this installation = procedure, since I'm a newbie in linux. From edtyy at hotmail.com Mon Aug 2 02:40:04 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Mon Aug 2 02:42:31 2004 Subject: [ns] AODV RREQ Timeout Message-ID: Hello, Dose anyone know what is the timeout for a route request, if no reply has been received, aodv will sends another RREQ message? and where can I find it in the code? Thank You Edwin _________________________________________________________________ Get MSN Hotmail alerts on your mobile. http://mobile.msn.com/ac.aspx?cid=uuhp_hotmail From yann.fleutot at eads-telecom.com Mon Aug 2 02:45:56 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Mon Aug 2 02:49:30 2004 Subject: [ns] Wireless node simulation Message-ID: <200408021157.NAA01019@trantor.eads-dsn.com> Ohh! Thanks to Kenneth, I have the information I wanted for my previous mail : DumbAgent ! Thank you. So, I think you can : $ns_ node-config -adhocRouting $opt(adhocRouting) DumbAgent For {set i 0} {$i < 5} {incr i}{ set node_($i) [$ns_ node] $node_($i) random-motion 0 ..... } $ns_ node-config -adhocRouting $opt(adhocRouting) AODV For {set i 5} {$i < 20} {incr i}{ set node_($i) [$ns_ node] $node_($i) random-motion 0 ..... } "$ns_ node-config" is a configuration parameter which configures the nodes created after. > -----Message d'origine----- > De : Lee kok thong [mailto:klee@nps.edu] > Envoy? : lundi 2 ao?t 2004 09:56 > ? : 'Kenneth Nielsen'; ns-users@ISI.EDU > Objet : RE: [ns] Wireless node simulation > > > > Kenneth, tks for the reply. I have some doubts, hope you can give me > your thinking. > > However, set val(adhocRouting) DumbAgent, is a global assignment > for all the 20 nodes. Once I do this, all the 20 nodes will > not route as > well. > > I wonder if I can do this > > For {set i 0} {$i < 5} {incr i}{ > > set node_($i) [$ns_ node] > $node_($i) random-motion 0 > $ns_ node-config -adhocRouting $opt(adhocRouting) DumbAgent > ..... > } > > For {set i 5} {$i < 20} {incr i}{ > > set node_($i) [$ns_ node] > $node_($i) random-motion 0 > $ns_ node-config -adhocRouting $opt(adhocRouting) AODV > ..... > > } > > Does anyone think that this will work ? > > Alternatively, how do I make some nodes (configured w. AODV) drop > packets deliberately instead or do not forward beyond ? > > regards > Francis Lee > > -----Original Message----- > From: Kenneth Nielsen [mailto:kenneth@daimi.au.dk] > Sent: Sunday, August 01, 2004 11:41 PM > To: klee@nps.edu; ns-users@ISI.EDU > Subject: Re: [ns] Wireless node simulation > > Hi > > Indstead of assigning a routing protocol (fx. AODV), assign the > DumbAgent to > the 5 nodes from your example. Like this: > > set val(adhocRouting) DumbAgent > > Regards, > Kenneth > > ----- Original Message ----- > From: "Lee kok thong" > To: > Sent: Friday, July 30, 2004 10:42 PM > Subject: [ns] Wireless node simulation > > > > > > Hi, > > > > I am doing some investigation on wireless ad hoc routing. > > Can anyone give me some pointers if you can turn off some nodes in > > routing while keeping the rest routing. > > E.g. 5 nodes among 20 nodes are not routing. How can I do > that in TCL > > scripting ? Appreciate some pointers please/. > > > > Thanks a lot. > > > > regards > > > > Francis Lee > > > > > > > From mrhammadali2004 at yahoo.com Mon Aug 2 02:50:49 2004 From: mrhammadali2004 at yahoo.com (hammad ali) Date: Mon Aug 2 02:53:28 2004 Subject: [ns] What does recompile means Message-ID: <20040802095049.47208.qmail@web61104.mail.yahoo.com> Dear Users, I am creating a new agent in ns-2 using MC Gres tutorial.It states at the end recompile. Recompile means "./configure" and than "make" or simply "make" --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From tendyntu at pmail.ntu.edu.sg Mon Aug 2 03:41:58 2004 From: tendyntu at pmail.ntu.edu.sg (#ZOU ZIXUAN#) Date: Mon Aug 2 03:44:34 2004 Subject: [ns] a question about variable tracing Message-ID: <904EF86DE98D084695B48AE6E150B04D3A33DB@mail01.student.main.ntu.edu.sg> Hi, All, I found in ns manunal about the introduction of Variable tracing in = section 3.4.3 :=20 "These overloaded operators use the assign method to assign the new = value to the variable and call the tracer if the new value is different = from the old one." =20 That means if the new value that is same as the old one cannot be = traced. However, I want to trace all the value no matter how the variable is operated--different from or same as the old value.=20 =20 Can anyone help?=20 Thank you very much. From soohyunc at msn.com Mon Aug 2 05:00:00 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Mon Aug 2 04:55:48 2004 Subject: [ns] A question about Queue/DropTail set limit_ References: Message-ID: > > I run a simulation of TCP Reno and a TCP-friendly protocol with > these links. > > 1ms delay and 10Mbps rate > 1ms delay and 10Mbps rate > 20ms delay and 0.5Mbps rate (bottleneck) > 1ms delay and 10Mbps rate > 1ms delay and 10Mbps rate > > I used DropTail queuing mechanism > I set packet size to 500 bytes > I set Queue/DropTail set limit_ to delay bandwidth product, i.e. 5 packets > or 20000bits > > However, the resulted outputs exhibit quite low bandwidth utilization, > i.e. 59-60%. Then, I increased the queue limit to 10, consequently > bandwidth utilization increased about 20% to 78-80%. Did the both TCP Reno and TFRC show the low bandwidth utilisation? Or, just TCP Reno showed the low BW utilisation? From chuahn_2 at hotmail.com Mon Aug 2 08:08:13 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Mon Aug 2 08:10:49 2004 Subject: [ns] A question about Queue/DropTail set limit_ Message-ID: I did not run TFRC but another protocol which is similar to it. Following are the results of my simulations: 0.5Mbps bottleneck Queue/DropTail set limit_ 5 Average CBR throughput: 0.17 Mbits Average TCP throughput: 0.142 Mbits Bandwidth utilization: (0.17 + 0.142)/ 0.5 = 62.4% 0.5Mbps bottleneck Queue/DropTail set limit_ 10 Average CBR throughput: 0.272 Mbits Average TCP throughput: 0.13 Mbits Bandwidth utilization: (0.272 + 0.13)/ 0.5 = 80.04% 1Mbps bottleneck Queue/DropTail set limit_ 5 Average CBR throughput: 0.411 Mbits Average TCP throughput: 0.186 Mbits Bandwidth utilization: (0.411 + 0.186)/ 1 = 59.7% 1Mbps bottleneck Queue/DropTail set limit_ 10 Average CBR throughput: 0.572 Mbits Average TCP throughput: 0.212 Mbits Bandwidth utilization: (0.572 + 0.212)/ 1 = 78.4% Thank you. Chua >From: "Soo-Hyun Choi" >To: "Chua Hong Nung" , >Subject: Re: [ns] A question about Queue/DropTail set limit_ >Date: Mon, 2 Aug 2004 13:00:00 +0100 > > > > > I run a simulation of TCP Reno and a TCP-friendly protocol with > > these links. > > > > 1ms delay and 10Mbps rate > > 1ms delay and 10Mbps rate > > 20ms delay and 0.5Mbps rate (bottleneck) > > 1ms delay and 10Mbps rate > > 1ms delay and 10Mbps rate > > > > I used DropTail queuing mechanism > > I set packet size to 500 bytes > > I set Queue/DropTail set limit_ to delay bandwidth product, i.e. 5 >packets > > or 20000bits > > > > However, the resulted outputs exhibit quite low bandwidth utilization, > > i.e. 59-60%. Then, I increased the queue limit to 10, consequently > > bandwidth utilization increased about 20% to 78-80%. > > >Did the both TCP Reno and TFRC show the low bandwidth utilisation? Or, just >TCP Reno showed the low BW utilisation? > _________________________________________________________________ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo From soohyunc at msn.com Mon Aug 2 09:39:21 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Mon Aug 2 09:35:27 2004 Subject: [ns] A question about Queue/DropTail set limit_ References: Message-ID: Have you calculated the average queue size for each traffic at the bottleneck node? Have you calculated the time-averaged loss rate for each traffic at the bottleneck node? That might give you a key to understand your simulation. But I do not see the clear reason why the BW utilisation at the bottleneck link is around 60 to 80% each. I would expect to see around 100% of BW utilisation regardless of the queue size. If you pass me your simulation code, I can run it on my machine. Soo-Hyun ----- Original Message ----- From: "Chua Hong Nung" To: ; Sent: Monday, August 02, 2004 4:08 PM Subject: Re: [ns] A question about Queue/DropTail set limit_ > I did not run TFRC but another protocol which is similar to it. > Following are the results of my simulations: > > 0.5Mbps bottleneck > Queue/DropTail set limit_ 5 > Average CBR throughput: 0.17 Mbits > Average TCP throughput: 0.142 Mbits > Bandwidth utilization: (0.17 + 0.142)/ 0.5 = 62.4% > > 0.5Mbps bottleneck > Queue/DropTail set limit_ 10 > Average CBR throughput: 0.272 Mbits > Average TCP throughput: 0.13 Mbits > Bandwidth utilization: (0.272 + 0.13)/ 0.5 = 80.04% > > 1Mbps bottleneck > Queue/DropTail set limit_ 5 > Average CBR throughput: 0.411 Mbits > Average TCP throughput: 0.186 Mbits > Bandwidth utilization: (0.411 + 0.186)/ 1 = 59.7% > > 1Mbps bottleneck > Queue/DropTail set limit_ 10 > Average CBR throughput: 0.572 Mbits > Average TCP throughput: 0.212 Mbits > Bandwidth utilization: (0.572 + 0.212)/ 1 = 78.4% > > Thank you. > > Chua > > > >From: "Soo-Hyun Choi" > >To: "Chua Hong Nung" , > >Subject: Re: [ns] A question about Queue/DropTail set limit_ > >Date: Mon, 2 Aug 2004 13:00:00 +0100 > > > > > > > > I run a simulation of TCP Reno and a TCP-friendly protocol with > > > these links. > > > > > > 1ms delay and 10Mbps rate > > > 1ms delay and 10Mbps rate > > > 20ms delay and 0.5Mbps rate (bottleneck) > > > 1ms delay and 10Mbps rate > > > 1ms delay and 10Mbps rate > > > > > > I used DropTail queuing mechanism > > > I set packet size to 500 bytes > > > I set Queue/DropTail set limit_ to delay bandwidth product, i.e. 5 > >packets > > > or 20000bits > > > > > > However, the resulted outputs exhibit quite low bandwidth utilization, > > > i.e. 59-60%. Then, I increased the queue limit to 10, consequently > > > bandwidth utilization increased about 20% to 78-80%. > > > > > >Did the both TCP Reno and TFRC show the low bandwidth utilisation? Or, just > >TCP Reno showed the low BW utilisation? > > > > _________________________________________________________________ > Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo > > From soohyunc at msn.com Mon Aug 2 09:47:04 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Mon Aug 2 09:42:46 2004 Subject: [ns] How to estimate packet loss? References: Message-ID: Count the number of packets between the loss events. (e.g., interval1 = 21 - 15 - 1 = 5; 5 successful packets between two loss events.) Soo-Hyun ----- Original Message ----- From: "Chua Hong Nung" To: Sent: Wednesday, July 28, 2004 2:16 PM Subject: [ns] How to estimate packet loss? > > Hi, > Maybe I send this email to the wrong forum, but I want to implement > this technique in my NS script. > > In TFRC it is suggested that loss event fraction models TCP more > accurately than loss fraction does. However I am quite confuse of how to > estimate packets in a loss interval. Given this data packets, would someone > please tell me how to estimate packets in a loss interval. > > packets sent: 1 2 3 4(loss) 5(loss) 6 7 8 9 10 11 12 > 13(loss) 14(loss) 15(loss) 16 17 18 19 20 21(loss) 22 23 24 > > interval1 = 13 - 6 or interval1 = 13 - 4 ? > interval2 = 21 - 16 or interval2 = 21 - 13 ? > > Thank you. > > Chua > > _________________________________________________________________ > Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo > > From pbm2 at ra.msstate.edu Mon Aug 2 11:35:39 2004 From: pbm2 at ra.msstate.edu (Preston McAllister) Date: Mon Aug 2 11:40:09 2004 Subject: [ns] Implementing Distance Vector Routing in C++ using Link State as template? In-Reply-To: <200408011900.i71J08i22503@gamma.isi.edu> References: <200408011900.i71J08i22503@gamma.isi.edu> Message-ID: <1091471739.410e897b0cf11@webmail.msstate.edu> For purposes of future modifications to NS-2, I'm trying to implement the Distance Vector routing protocol into C++ (as opposed to TCL, which it's already in). The Link State routing protocol is already implemented in C++ and I've been studying it, but I'm not sure how to adapt it to fit Distance Vector routing. There are several derived classes and templates which I'm not sure would be needed for Distance Vector. Can anyone help, or is there a C++ implementation of Distance Vector in NS-2 (or anything else) that someone can point me to? From roosta at EECS.Berkeley.EDU Mon Aug 2 12:58:54 2004 From: roosta at EECS.Berkeley.EDU (roosta@EECS.Berkeley.EDU) Date: Mon Aug 2 13:01:44 2004 Subject: [ns] difference between RXThresh_ and CSThresh_ Message-ID: <4dbb744dffe2.4dffe24dbb74@EECS.Berkeley.EDU> Hi, Could anyone please explain to me the difference between RXThresh_,CSThresh_, and CPThresh_ values in wireless_phy.cc? Which one means not reception at all,and which one means successful reception? Thanks in advance, Tanya From jmikola at cs.stevens.edu Mon Aug 2 13:05:54 2004 From: jmikola at cs.stevens.edu (Jeremy Mikola) Date: Mon Aug 2 13:07:45 2004 Subject: [ns] custom agent linking ('ns by example' tutorial) Message-ID: <410E9EA2.2070804@cs.stevens.edu> I'm running into some problems while going through the following tutorial: http://nile.wpi.edu/NS/new_app_agent.html The custom agent from the tutorial doesn't have a functional purpose, other than demonstrating that linking of custom extensions is possible with ns compilation. I dropped the ex-linkage.cc file in the ns-2.27 directory as suggested, and appended "ex-linkage.o" to the end of OBJ_CC in that dir's Makefile.in. I then proceeded to run the configure script again (to regen my Makefile's), and than ran make itself. The ex-linkage.cc file was compiled into ex-linkage.o; however, I then tested the newly made ns binary on the ex-linkage.tcl script from the tutorial, which attempts to access its bound variables and call a dummy function, and received the following error: invalid command name "Agent/MyAgentOtcl" while executing "Agent/MyAgentOtcl create _o3 " 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/MyAgentOtcl" invoked from within "set myagent [new Agent/MyAgentOtcl]" (file "../ex-linkage.tcl" line 5) I can only assume that, while compilation succeeded, linking failed. I'd appreciate it if anyone could gloss over the tutorial and my steps above, and suggest anything I may have done wrong. - jeremy mikola From madmath at gmail.com Mon Aug 2 13:52:52 2004 From: madmath at gmail.com (Halmes Madmath) Date: Mon Aug 2 13:56:14 2004 Subject: [ns] [Question]What's the meaning of dh_ra, dh_ta, dh_3a in mac-802_11.h? Message-ID: <2800a449040802135236661201@mail.gmail.com> Hi everyone, I'm reading the mac-802_11.cc and try to undertand every sub routine. I found the following paragraph in mac-802_11.h. It shows that some variables are changed wrt Mike's code. But I cann't understand why they are changed and what are the meanings of these variables: dh_ra, dh_ta, dh_3a. Do dh_ra, dh_ta, dh_3a correspond to the original dh_da, dh_sa dh_bssid??? Where can I get information regarding these variables? The current NS2 manual is kinda out of time and a lot of new things are not reflected. Your guidance or help will be GREATLY appreciate. 138 struct hdr_mac802_11 { 139 struct frame_control dh_fc; 140 u_int16_t dh_duration; 141 142 // change wrt Mike's code 143 /* u_char dh_da[ETHER_ADDR_LEN]; 144 u_char dh_sa[ETHER_ADDR_LEN]; 145 u_char dh_bssid[ETHER_ADDR_LEN]; 146 */ 147 u_char dh_ra[ETHER_ADDR_LEN]; 148 u_char dh_ta[ETHER_ADDR_LEN]; 149 u_char dh_3a[ETHER_ADDR_LEN]; 150 151 u_int16_t dh_scontrol; 152 u_char dh_body[0]; // XXX Non-ANSI regard, -- Halmes MadMath From kimaya at cs.ucsb.edu Mon Aug 2 14:16:32 2004 From: kimaya at cs.ucsb.edu (Kimaya M. Sanzgiri) Date: Mon Aug 2 14:18:36 2004 Subject: [ns] difference between RXThresh_ and CSThresh_ In-Reply-To: <4dbb744dffe2.4dffe24dbb74@EECS.Berkeley.EDU> Message-ID: RXThresh_ is the reception threshold. If the received signal strength is greater than this threshold, the packet can be successfully received. CSThresh_ is the carrier sensing threshold. If received signal strength is greater than this threshold, the packet transmission can be sensed. However, the packet cannot be decoded unless signal strength is greater than RXThresh_. CPThresh_ refers to the capture phenomenon. If two packets are received simultaneously, i.e. they collide, it is still possible to receive the 'stronger' packet if its signal strength is CPThresh_ times the other packet. For example, if CPThresh_ is 10.0, the stronger packet in a collision can be decoded if its signal strength is at least 10.0 times that of the other packet; otherwise, both packets are lost in the collision. Hope that helps. Kimaya On Mon, 2 Aug 2004 roosta@EECS.Berkeley.EDU wrote: > > Hi, > Could anyone please explain to me the difference between RXThresh_,CSThresh_, and CPThresh_ values in wireless_phy.cc? Which one means not reception at all,and which one means successful reception? > > Thanks in advance, > > Tanya > > From roosta at EECS.Berkeley.EDU Mon Aug 2 14:17:59 2004 From: roosta at EECS.Berkeley.EDU (roosta@EECS.Berkeley.EDU) Date: Mon Aug 2 14:20:34 2004 Subject: [ns] [Question]What's the meaning of dh_ra, dh_ta, dh_3a in mac-802_11.h? Message-ID: <4e21644e2225.4e22254e2164@EECS.Berkeley.EDU> Try this link and see if it helps. http://www.csis.hku.hk/~atctam/ns-2.1b5/Mac.html ----- Original Message ----- From: Halmes Madmath Date: Monday, August 2, 2004 1:52 pm Subject: [ns] [Question]What's the meaning of dh_ra, dh_ta, dh_3a in mac-802_11.h? > > Hi everyone, > > I'm reading the mac-802_11.cc and try to undertand every sub > routine. I found the following paragraph in mac-802_11.h. It shows > that some variables are changed wrt Mike's code. But I cann't > understand why they are changed and what are the meanings of these > variables: dh_ra, dh_ta, dh_3a. Do dh_ra, dh_ta, dh_3a correspond to > the original dh_da, dh_sa dh_bssid??? > > Where can I get information regarding these variables? The current > NS2 manual is kinda out of time and a lot of new things are not > reflected. > > Your guidance or help will be GREATLY appreciate. > > 138 struct hdr_mac802_11 { > 139 struct frame_control dh_fc; > 140 u_int16_t dh_duration; > 141 > 142 // change wrt Mike's code > 143 /* u_char dh_da[ETHER_ADDR_LEN]; > 144 u_char dh_sa[ETHER_ADDR_LEN]; > 145 u_char dh_bssid[ETHER_ADDR_LEN]; > 146 */ > 147 u_char dh_ra[ETHER_ADDR_LEN]; > 148 u_char dh_ta[ETHER_ADDR_LEN]; > 149 u_char dh_3a[ETHER_ADDR_LEN]; > 150 > 151 u_int16_t dh_scontrol; > 152 u_char dh_body[0]; // XXX Non-ANSI > > regard, > > -- > Halmes MadMath > > From madmath at gmail.com Mon Aug 2 15:12:15 2004 From: madmath at gmail.com (Halmes Madmath) Date: Mon Aug 2 15:15:05 2004 Subject: [ns] [Question]What's the meaning of dh_ra, dh_ta, dh_3a in mac-802_11.h? In-Reply-To: <4e21644e2225.4e22254e2164@EECS.Berkeley.EDU> References: <4e21644e2225.4e22254e2164@EECS.Berkeley.EDU> Message-ID: <2800a449040802151217b4791@mail.gmail.com> Dear roosta, Thank you for your reply. Actually, I already checked the C++ Class Hierarchy document of NS2. On ns2 website, there are two versions of this document. The old one is similar to what you mentioned in your email. Unfortunately, there's no definition for dh_ra, dh_ta and dh_3a. In the new version of the C++ Class Hierarchy document, those three variables are defined there, but just as same as in the mac-802_11.h, i.e., only definition, but no explanation or description is given. Anyway, thank you again. If you have any other useful information or suggestion, I'll be very glad. :) Sincerely, Halmes On Mon, 02 Aug 2004 14:17:59 -0700, roosta@eecs.berkeley.edu wrote: > Try this link and see if it helps. > > http://www.csis.hku.hk/~atctam/ns-2.1b5/Mac.html > > > > > ----- Original Message ----- > From: Halmes Madmath > Date: Monday, August 2, 2004 1:52 pm > Subject: [ns] [Question]What's the meaning of dh_ra, dh_ta, dh_3a in mac-802_11.h? > > > > > Hi everyone, > > > > I'm reading the mac-802_11.cc and try to undertand every sub > > routine. I found the following paragraph in mac-802_11.h. It shows > > that some variables are changed wrt Mike's code. But I cann't > > understand why they are changed and what are the meanings of these > > variables: dh_ra, dh_ta, dh_3a. Do dh_ra, dh_ta, dh_3a correspond to > > the original dh_da, dh_sa dh_bssid??? > > > > Where can I get information regarding these variables? The current > > NS2 manual is kinda out of time and a lot of new things are not > > reflected. > > > > Your guidance or help will be GREATLY appreciate. > > > > 138 struct hdr_mac802_11 { > > 139 struct frame_control dh_fc; > > 140 u_int16_t dh_duration; > > 141 > > 142 // change wrt Mike's code > > 143 /* u_char dh_da[ETHER_ADDR_LEN]; > > 144 u_char dh_sa[ETHER_ADDR_LEN]; > > 145 u_char dh_bssid[ETHER_ADDR_LEN]; > > 146 */ > > 147 u_char dh_ra[ETHER_ADDR_LEN]; > > 148 u_char dh_ta[ETHER_ADDR_LEN]; > > 149 u_char dh_3a[ETHER_ADDR_LEN]; > > 150 > > 151 u_int16_t dh_scontrol; > > 152 u_char dh_body[0]; // XXX Non-ANSI > > > > regard, > > > > -- > > Halmes MadMath > > > > > > -- Halmes MadMath From madmath at gmail.com Mon Aug 2 15:24:14 2004 From: madmath at gmail.com (Halmes Madmath) Date: Mon Aug 2 15:26:34 2004 Subject: [ns] [Question]What's the meaning of dh_ra, dh_ta, dh_3a in mac-802_11.h? In-Reply-To: <872baec040802144651044fdd@mail.gmail.com> References: <4e21644e2225.4e22254e2164@EECS.Berkeley.EDU> <872baec040802144651044fdd@mail.gmail.com> Message-ID: <2800a449040802152414f985fd@mail.gmail.com> Dear Rahul, Great. Your reply is really helpful. Thanks. I guess the original code "dh_da" and "dh_sa" mean "destination address" and "source address" respectively, and later are changed to "dh_ra" and "dh_ta" as you said. But I still have the same problem as you: the dh_3a looks a little strange and cannot figure out why it's named in this way. Maybe it corresponds to the original "dh_bssid", which is also commented out by that Mike. But no description can be found. :-( Best, Halmes On Mon, 2 Aug 2004 16:46:23 -0500, Rahul Chawathe wrote: > dh_ta = data header transmitter address > dh_ra = data header receiver address > > dunno abt dh_3a > > hth > rahul > > > > > On Mon, 02 Aug 2004 14:17:59 -0700, roosta@eecs.berkeley.edu From heron at g8net.com.br Mon Aug 2 16:15:24 2004 From: heron at g8net.com.br (G8NET) Date: Mon Aug 2 16:17:54 2004 Subject: [ns] Segmentation Fault (core dumped) and Installation of NS Message-ID: <001701c478e6$9750c280$0700a8c0@simulador> Hi, I am a new user of ns too; I am having problems in the installation of ns. The operating system is Linux Mandrake 10.0, Kernel 2.6.2rc3. The NS (Network Simulator) is 2.27. When I setup ns (./install), I change the file profile in the directory /etc. I run the program ./validate and does not occur any mistake. However, how much I run the commands ./configure, make and make install in directory ns-2.27 occurs the mistakes below. It really is necessary run these commands? Other mistake that occurs is when I run the simulation DiffServ: Segmentation Fault (core dumped). Why this does it happen? Will it be necessary that I change the version or Linux's Distribution? Will it be necessary that I change the version of ns? Heron Fran?a de Oliveira heron@g8net.com.br ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@simulator ns-2.27]# ./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 suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed 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 egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... yes checking for getnodebyname in -ldnet_stub... no checking that g++ can handle -O2... no checking if C++ libraries work without any namespace... no checking if C++ libraries work with namespace std... yes checking if STL works without any namespace... no checking if STL works with namespace std... yes checking should use STL... yes checking for tcl.h... -I../include checking for libtcl8.4... -L../lib -ltcl8.4 checking for init.tcl... ../lib/tcl8.4 checking for tclsh8.4.5... no checking for tclsh8.4... ../bin/tclsh8.4 checking for tk.h... -I../include checking for libtk8.4... -L../lib -ltk8.4 checking for tk.tcl... ../lib/tk8.4 checking for otcl.h... -I../otcl-1.8 checking for libotcl1.8... -L../otcl-1.8 -lotcl checking for tclcl.h... -I../tclcl-1.15 checking for libtclcl... -L../tclcl-1.15 -ltclcl checking for tcl2c++... ../tclcl-1.15 checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... no checking for libXext.a checking for libtcldbg... no checking dmalloc... not requested with --with-dmalloc checking for perl... /usr/bin checking for ANSI C header files... (cached) yes checking for bcopy... yes checking for bzero... yes checking for fesetprecision... no checking for getrusage... yes checking for sbrk... yes checking for snprintf... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking return type of random... long checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_char... yes checking for u_int... yes checking for strtoq... yes checking for strtoll... yes checking for long... yes checking size of long... 4 checking for __int64_t... no checking for long long... yes checking for int64_t... yes checking which kind of 64-bit int to use... int64_t checking for struct ether_header... found checking for struct ether_addr... found checking for addr2ascii... no checking for Linux compliant tcphdr... found checking for BSD compliant tcphdr... not found checking for socklen_t... yes checking for main in -lpcap... no checking to make nse... no Explicitly disabling static compilation checking for dlopen in -ldl... yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating tcl/lib/ns-autoconf.tcl config.status: creating indep-utils/webtrace-conv/ucb/Makefile config.status: creating indep-utils/webtrace-conv/dec/Makefile config.status: creating indep-utils/webtrace-conv/nlanr/Makefile config.status: creating indep-utils/webtrace-conv/epa/Makefile config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile config.status: creating autoconf.h config.status: autoconf.h is unchanged [root@simulator ns-2.27]# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + [root@simulator ns-2.27]# make for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-ut ils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen -gen/setdest' g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc In file included from ../../../config.h:54, from setdest.h:5, from setdest.cc:57: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared setdest.cc:71:1: warning: "INFINITY" redefined In file included from /usr/include/math.h:40, from setdest.cc:43: /usr/include/bits/mathdef.h:35:1: warning: this is the location of the previous definition make[1]: *** [setdest.o] Error 1 make[1]: Leaving directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen- gen/setdest' make[1]: Entering directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace -conv/dec' g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/ns-allinone-2.27/tclcl-1.15 - I/home/ns-allinone-2.27/otcl-1.8 -I/home/ns-allinone-2.27/include -I/home/ns-all inone-2.27/include -I/usr/include/pcap -o proxytrace.o proxytrace.cc In file included from proxytrace.cc:3: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared make[1]: *** [proxytrace.o] Error 1 make[1]: Leaving directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- conv/dec' make[1]: Entering directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace -conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- conv/epa' make[1]: Entering directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace -conv/nlanr' g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/ns-allinone-2.27/t clcl-1.15 -I/home/ns-allinone-2.27/otcl-1.8 -I/home/ns-allinone-2.27/include -I/ home/ns-allinone-2.27/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc In file included from ../../../config.h:54, from logparse.h:7, from tr-stat.cc:24: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared make[1]: *** [tr-stat.o] Error 1 make[1]: Leaving directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- conv/nlanr' make[1]: Entering directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace -conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- conv/ucb' ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@simulator ns-2.27]# make install /usr/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin /usr/bin/install -c -m 444 -o bin -g bin ns.1 /usr/local/man/man1 /usr/bin/install: cannot create regular file `/usr/local/man/man1': No such file or directory make: *** [install-man] Error 1 From luciano at cetuc.puc-rio.br Mon Aug 2 17:42:45 2004 From: luciano at cetuc.puc-rio.br (luciano@cetuc.puc-rio.br) Date: Mon Aug 2 17:48:43 2004 Subject: [ns] IP addresses created by Tracegraph Message-ID: <3223.200.217.223.50.1091493765.squirrel@mamona.cetuc.puc-rio.br> Hi, i?d like to get some information about list of IP addresses created by Tracegraph, please? When the tracegraph created the list of IPs used in my simulation appeared four IPs that i don?t know (it wasn?t put by me in my tcl script) like: 1023.2047.0 33554433 33554435 33554436 What each one mean? Has something wrong in my tcl srcipt? Thanks, Luciano. From yofanvt at yahoo.com Mon Aug 2 19:56:43 2004 From: yofanvt at yahoo.com (fan fan) Date: Mon Aug 2 19:59:36 2004 Subject: [ns] who knows codes for sensor network simulation ? Message-ID: <20040803025643.46260.qmail@web53410.mail.yahoo.com> Hello, all: I am trying to create a sensor network environment. There are some public contributed codes extension to ns-2, like sensorsim . Can somebody recommend a good modle which is used often? Thanks, yong --------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! From ak1350 at wayne.edu Mon Aug 2 20:22:15 2004 From: ak1350 at wayne.edu (Scott Fowler) Date: Mon Aug 2 20:27:16 2004 Subject: [ns] Copy Packet, p->copy() Message-ID: <62b83bdb.69dda9c9.8166d00@mirapointms3.wayne.edu> Dear ns-user I tried using the p->copy() function in order to makes copy of a packet, unfortunately this command does not copy the uid_ field (unique id). Reason for need to use the copy() function, I would like to make back up copy of a packet should it is dropped. If the packet is dropped, the backup copy is sent. But I keep getting two errors, my program aborts or "Event UID not valid". Any suggestion would be appreciated on how to create a duplicate packet. Copy of the code is below. BK.cc file =========== void BK::enque(Packet* p) { Packet* p_bak; p_bak = p->copy(); q2->enque(p_bak); q1->enque(p); if ((q1_->length() + q2_->length()) > qlim_) { q2_->free(p); } } Packet * BK::deque() { Packet *p; p = q1_->deque(); if( p == 0) { p = q2_->deque(); } return(p); } BK.k file ========== class BK : public Queue { public : BK { q1_ = new PacketQueue; q2_ = new PacketQueue; pq_ = q1_; } protected: void enque(Packet*); Packet* deque(); PacketQueue *q1_; PacketQueue *q2_; }; Cheers From jw2000 at excite.com Mon Aug 2 21:29:46 2004 From: jw2000 at excite.com (jw2000@excite.com) Date: Mon Aug 2 21:32:34 2004 Subject: [ns] Question about DSR Message-ID: <20040803042946.4D682B712@xprdmailfe19.nwk.excite.com> Hi all: I am using DSR now. I have a question. How to calculate performance parameters, like packet delivery ratio, end-to-end delay and routing overhead in DSR? >From the trace file, I find that a packet's UID changes on the way from a source to destination. For example, if I use CBR to generate data packet at a source node A, and the path is A-B-C-D. On the way from A to D, the UID of a data packet changes. In AODV, the UID does not change on the way. How to calculate the above three performance parameters in DSR? Thanks a lot. Jack _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From alicia.tc at partner.samsung.com Mon Aug 2 22:19:35 2004 From: alicia.tc at partner.samsung.com (Alicia TC) Date: Mon Aug 2 22:23:33 2004 Subject: [ns] Hierarchical Nodes Message-ID: <4076826.1091510351136.JavaMail.weblogic@ep_app26> I don't understand how hierarchical nodes work. I'm trying to simulate a scenario with 15 wireless nodes whose IP addresses are 1.0.1 to 1.0.F, 1 wired node (0.1.0) and a Base Station (1.0.0). Node 1.0.4 and wired node communicate through the base station. Sometimes when the packet arraives to the base station, automatically it sends it to the wired node without using any Agent's method to route it. But sometimes it tries to uses the Agent's method in the base station and then the packet doesn't arrive at the destination. Can anybody help me, please? Any idea? Thanks in advance, Alicia Trivino-Cabrera From Rajesh_George at infosys.com Mon Aug 2 23:04:55 2004 From: Rajesh_George at infosys.com (Rajesh George) Date: Mon Aug 2 23:08:33 2004 Subject: [ns] Complete GPRS simulation in ns2 Message-ID: <31E1CAD34DAF2F48A768DE429D88E59907C58FB2@kecmsg01.ad.infosys.com> Hi all I am thinking of developing complete GPRS simulation to ns2. 1. I could find implementation of GPRS from Richa Jain. Did any one work with it ? Can I port it to latest ns2? Any comments or suggestion welcome. 2. Also I would like to port open source code of ggsn to ns2. http://www.openggsn.org Any suggestions or pitfalls are welcome. Regards, George From gwang at pegasus.cc.ucf.edu Mon Aug 2 23:39:31 2004 From: gwang at pegasus.cc.ucf.edu (Guoqiang Wang) Date: Mon Aug 2 23:42:05 2004 Subject: [ns] Does CBR trace show in NAM? Message-ID: <15d601c47924$a1f5f190$cd6baa84@bond5> Hi all, I am using CBR to simulate a network scenario.=20 But after the simulation, I can not see any packet bursts in NAM. (No = "NRTE" in the trace file) While FTP packet bursts do show in NAM. So I am wondering whether CBR can be shown in NAM. If can, what shall I do? If can not, why did NAM develop design so?=20 Thank you. Sincerely, Guoqiang The following is the trace file: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D M 0.0 nn 14 x 200 y 200 rp AODV M 0.0 sc ./a3lp/scenarios/my-scen-14-7 cp ./a3lp/scenarios/my-cbr-14-7 = seed 0.0 M 0.0 prop Propagation/TwoRayGround ant Antenna/OmniAntenna s 0.648273270 _8_ AGT --- 0 cbr 512 [0 0 0 0] [energy 69.993600] = ------- [8:0 0:3 32 0] [0] 0 0 N -t 1.000000 -n 0 -e 99.978508 N -t 1.000000 -n 1 -e 99.978387 N -t 1.000000 -n 2 -e 99.978387 N -t 1.000000 -n 3 -e 99.978387 N -t 1.000000 -n 4 -e 99.978387 N -t 1.000000 -n 5 -e 99.978387 N -t 1.000000 -n 6 -e 99.978387 N -t 1.000000 -n 7 -e 69.983680 N -t 1.000000 -n 8 -e 69.983558 N -t 1.000000 -n 9 -e 69.983680 N -t 1.000000 -n 10 -e 69.983680 N -t 1.000000 -n 11 -e 69.983680 N -t 1.000000 -n 12 -e 69.983680 N -t 1.000000 -n 13 -e 69.983680 r 1.511901799 _0_ AGT --- 0 cbr 532 [13a 0 b 800] [energy 99.949644] = ------- [8:0 0:3 29 0] [0] 2 0 s 2.040865250 _6_ AGT --- 1 cbr 512 [0 0 0 0] [energy 99.950150] = ------- [6:1 0:8 32 0] [0] 0 0 r 2.046734756 _0_ AGT --- 1 cbr 532 [13a 0 6 800] [energy 99.945017] = ------- [6:1 0:8 30 0] [0] 1 0 s 4.262291981 _6_ AGT --- 2 cbr 512 [0 0 0 0] [energy 99.944640] = ------- [6:1 0:8 32 0] [1] 0 0 r 4.267881488 _0_ AGT --- 2 cbr 532 [13a 0 6 800] [energy 99.940389] = ------- [6:1 0:8 30 0] [1] 1 0 s 5.312600592 _4_ AGT --- 3 cbr 512 [0 0 0 0] [energy 99.717062] = ------- [4:0 0:6 32 0] [0] 0 0 r 5.331825884 _0_ AGT --- 3 cbr 532 [13a 0 4 800] [energy 99.698630] = ------- [4:0 0:6 30 0] [0] 1 0 s 6.108695194 _8_ AGT --- 4 cbr 512 [0 0 0 0] [energy 69.766978] = ------- [8:0 0:3 32 0] [1] 0 0 r 6.120137040 _0_ AGT --- 4 cbr 512 [13a 0 3 800] [energy 99.676799] = ------- [8:0 0:3 30 0] [1] 2 0 s 7.584913790 _6_ AGT --- 5 cbr 512 [0 0 0 0] [energy 99.679904] = ------- [6:1 0:8 32 0] [2] 0 0 r 7.590763297 _0_ AGT --- 5 cbr 532 [13a 0 6 800] [energy 99.672172] = ------- [6:1 0:8 30 0] [2] 1 0 s 8.449377069 _4_ AGT --- 6 cbr 512 [0 0 0 0] [energy 99.675481] = ------- [4:0 0:6 32 0] [1] 0 0 r 8.454866440 _0_ AGT --- 6 cbr 532 [13a 0 4 800] [energy 99.667545] = ------- [4:0 0:6 30 0] [1] 1 0 s 9.191277975 _8_ AGT --- 7 cbr 512 [0 0 0 0] [energy 69.752681] = ------- [8:0 0:3 32 0] [2] 0 0 r 9.202879820 _0_ AGT --- 7 cbr 512 [13a 0 3 800] [energy 99.658668] = ------- [8:0 0:3 30 0] [2] 2 0 s 10.071931083 _6_ AGT --- 8 cbr 512 [0 0 0 0] [energy 99.607928] = ------- [6:0 0:7 32 0] [0] 0 0 r 10.198969127 _0_ AGT --- 8 cbr 532 [13a 0 6 800] [energy 99.519297] = ------- [6:0 0:7 30 0] [0] 1 0 s 10.200926718 _13_ AGT --- 9 cbr 512 [0 0 0 0] [energy 69.645102] = ------- [13:0 0:2 32 0] [0] 0 0 r 10.445898641 _0_ AGT --- 9 cbr 532 [13a 0 3 800] [energy 99.342743] = ------- [13:0 0:2 29 0] [0] 2 0 s 10.843702228 _4_ AGT --- 10 cbr 512 [0 0 0 0] [energy 99.286133] = ------- [4:0 0:6 32 0] [2] 0 0 r 10.849231600 _0_ AGT --- 10 cbr 532 [13a 0 4 800] [energy 99.276080] = ------- [4:0 0:6 30 0] [2] 1 0 N -t 11.000000 -n 0 -e 99.276080 N -t 11.000000 -n 1 -e 99.278518 N -t 11.000000 -n 2 -e 99.276100 N -t 11.000000 -n 3 -e 99.278532 N -t 11.000000 -n 4 -e 99.280622 N -t 11.000000 -n 5 -e 99.276226 N -t 11.000000 -n 6 -e 99.279138 N -t 11.000000 -n 7 -e 69.461447 N -t 11.000000 -n 8 -e 69.462209 N -t 11.000000 -n 9 -e 69.456314 N -t 11.000000 -n 10 -e 69.465057 N -t 11.000000 -n 11 -e 69.456411 N -t 11.000000 -n 12 -e 69.460479 N -t 11.000000 -n 13 -e 69.464481 s 12.075412296 _6_ AGT --- 11 cbr 512 [0 0 0 0] [energy 99.279138] = ------- [6:1 0:8 32 0] [3] 0 0 r 12.081321802 _0_ AGT --- 11 cbr 532 [13a 0 6 800] [energy 99.271453] = ------- [6:1 0:8 30 0] [3] 1 0 s 12.160683571 _6_ AGT --- 12 cbr 512 [0 0 0 0] [energy 99.273628] = ------- [6:0 0:7 32 0] [1] 0 0 r 12.166373077 _0_ AGT --- 12 cbr 532 [13a 0 6 800] [energy 99.266826] = ------- [6:0 0:7 30 0] [1] 1 0 s 13.401587420 _13_ AGT --- 13 cbr 512 [0 0 0 0] [energy 69.457723] = ------- [13:0 0:2 32 0] [1] 0 0 r 13.413249003 _0_ AGT --- 13 cbr 532 [13a 0 3 800] [energy 99.257693] = ------- [13:0 0:2 29 0] [1] 2 0 s 14.209472198 _9_ AGT --- 14 cbr 512 [0 0 0 0] [energy 69.442797] = ------- [9:0 0:0 32 0] [0] 0 0 r 14.215061024 _0_ AGT --- 14 cbr 532 [13a 0 9 800] [energy 99.253066] = ------- [9:0 0:0 30 0] [0] 1 0 s 14.215765511 _8_ AGT --- 15 cbr 512 [0 0 0 0] [energy 69.445313] = ------- [8:0 0:3 32 0] [3] 0 0 r 14.227127357 _0_ AGT --- 15 cbr 512 [13a 0 3 800] [energy 99.244189] = ------- [8:0 0:3 30 0] [3] 2 0 s 15.475107741 _6_ AGT --- 16 cbr 512 [0 0 0 0] [energy 98.906916] = ------- [6:0 0:7 32 0] [2] 0 0 r 15.557750529 _0_ AGT --- 16 cbr 532 [13a 0 6 800] [energy 98.846770] = ------- [6:0 0:7 30 0] [2] 1 0 s 15.571663332 _6_ AGT --- 17 cbr 512 [0 0 0 0] [energy 98.844041] = ------- [6:1 0:8 32 0] [4] 0 0 r 15.577132838 _0_ AGT --- 17 cbr 532 [13a 0 6 800] [energy 98.840735] = ------- [6:1 0:8 30 0] [4] 1 0 s 16.494873016 _4_ AGT --- 18 cbr 512 [0 0 0 0] [energy 98.845531] = ------- [4:0 0:6 32 0] [3] 0 0 r 16.500422388 _0_ AGT --- 18 cbr 532 [13a 0 4 800] [energy 98.836107] = ------- [4:0 0:6 30 0] [3] 1 0 s 17.902044227 _6_ AGT --- 19 cbr 512 [0 0 0 0] [energy 98.834025] = ------- [6:0 0:7 32 0] [3] 0 0 r 17.907873734 _0_ AGT --- 19 cbr 532 [13a 0 6 800] [energy 98.831480] = ------- [6:0 0:7 30 0] [3] 1 0 s 18.467764759 _6_ AGT --- 20 cbr 512 [0 0 0 0] [energy 98.828515] = ------- [6:1 0:8 32 0] [5] 0 0 r 18.473354265 _0_ AGT --- 20 cbr 532 [13a 0 6 800] [energy 98.826853] = ------- [6:1 0:8 30 0] [5] 1 0 s 18.632290978 _13_ AGT --- 21 cbr 512 [0 0 0 0] [energy 69.130445] = ------- [13:0 0:2 32 0] [2] 0 0 r 18.644032561 _0_ AGT --- 21 cbr 532 [13a 0 3 800] [energy 98.817720] = ------- [13:0 0:2 29 0] [2] 2 0 s 18.663367112 _9_ AGT --- 22 cbr 512 [0 0 0 0] [energy 69.112708] = ------- [9:0 0:0 32 0] [1] 0 0 r 18.669135938 _0_ AGT --- 22 cbr 532 [13a 0 9 800] [energy 98.813093] = ------- [9:0 0:0 30 0] [1] 1 0 s 20.205095572 _8_ AGT --- 23 cbr 512 [0 0 0 0] [energy 69.011766] = ------- [8:0 0:3 32 0] [4] 0 0 r 20.468426993 _0_ AGT --- 23 cbr 512 [13a 0 3 800] [energy 98.483449] = ------- [8:0 0:3 30 0] [4] 2 0 s 20.704571319 _4_ AGT --- 24 cbr 512 [0 0 0 0] [energy 98.411546] = ------- [4:0 0:6 32 0] [4] 0 0 r 20.710540691 _0_ AGT --- 24 cbr 532 [13a 0 4 800] [energy 98.402380] = ------- [4:0 0:6 30 0] [4] 1 0 s 20.756949074 _6_ AGT --- 25 cbr 512 [0 0 0 0] [energy 98.397328] = ------- [6:1 0:8 32 0] [6] 0 0 r 20.762778580 _0_ AGT --- 25 cbr 532 [13a 0 6 800] [energy 98.397753] = ------- [6:1 0:8 30 0] [6] 1 0 N -t 21.000000 -n 0 -e 98.397753 N -t 21.000000 -n 1 -e 98.402737 N -t 21.000000 -n 2 -e 98.398567 N -t 21.000000 -n 3 -e 98.396992 N -t 21.000000 -n 4 -e 98.401530 N -t 21.000000 -n 5 -e 98.398874 N -t 21.000000 -n 6 -e 98.391817 N -t 21.000000 -n 7 -e 68.808038 N -t 21.000000 -n 8 -e 68.810039 N -t 21.000000 -n 9 -e 68.797403 N -t 21.000000 -n 10 -e 68.814973 N -t 21.000000 -n 11 -e 68.799088 N -t 21.000000 -n 12 -e 68.806092 N -t 21.000000 -n 13 -e 68.811260 s 21.956640559 _6_ AGT --- 26 cbr 512 [0 0 0 0] [energy 98.391817] = ------- [6:0 0:7 32 0] [4] 0 0 r 21.962390066 _0_ AGT --- 26 cbr 532 [13a 0 6 800] [energy 98.393125] = ------- [6:0 0:7 30 0] [4] 1 0 s 22.728613944 _4_ AGT --- 27 cbr 512 [0 0 0 0] [energy 98.397025] = ------- [4:0 0:6 32 0] [5] 0 0 r 22.734583316 _0_ AGT --- 27 cbr 532 [13a 0 4 800] [energy 98.388498] = ------- [4:0 0:6 30 0] [5] 1 0 s 22.877325634 _9_ AGT --- 28 cbr 512 [0 0 0 0] [energy 68.790644] = ------- [9:0 0:0 32 0] [2] 0 0 r 22.883334461 _0_ AGT --- 28 cbr 532 [13a 0 9 800] [energy 98.383871] = ------- [9:0 0:0 30 0] [2] 1 0 s 24.101119498 _13_ AGT --- 29 cbr 512 [0 0 0 0] [energy 68.801123] = ------- [13:0 0:2 32 0] [3] 0 0 r 24.113041081 _0_ AGT --- 29 cbr 532 [13a 0 3 800] [energy 98.374738] = ------- [13:0 0:2 29 0] [3] 2 0 s 26.186254197 _9_ AGT --- 30 cbr 512 [0 0 0 0] [energy 68.481990] = ------- [9:0 0:0 32 0] [3] 0 0 r 26.192043023 _0_ AGT --- 30 cbr 532 [13a 0 9 800] [energy 97.971982] = ------- [9:0 0:0 30 0] [3] 1 0 s 26.820094267 _6_ AGT --- 31 cbr 512 [0 0 0 0] [energy 97.964168] = ------- [6:0 0:7 32 0] [5] 0 0 r 26.825943773 _0_ AGT --- 31 cbr 532 [13a 0 6 800] [energy 97.967354] = ------- [6:0 0:7 30 0] [5] 1 0 s 29.089468986 _13_ AGT --- 32 cbr 512 [0 0 0 0] [energy 68.491544] = ------- [13:0 0:2 32 0] [4] 0 0 r 29.101670569 _0_ AGT --- 32 cbr 532 [13a 0 3 800] [energy 97.958222] = ------- [13:0 0:2 29 0] [4] 2 0 s 30.905584887 _9_ AGT --- 33 cbr 512 [0 0 0 0] [energy 68.171505] = ------- [9:0 0:0 32 0] [4] 0 0 r 30.911393713 _0_ AGT --- 33 cbr 532 [13a 0 9 800] [energy 97.558562] = ------- [9:0 0:0 30 0] [4] 1 0 N -t 31.000000 -n 0 -e 97.558562 N -t 31.000000 -n 1 -e 97.566824 N -t 31.000000 -n 2 -e 97.559562 N -t 31.000000 -n 3 -e 97.556609 N -t 31.000000 -n 4 -e 97.563260 N -t 31.000000 -n 5 -e 97.560704 N -t 31.000000 -n 6 -e 97.548208 N -t 31.000000 -n 7 -e 68.184054 N -t 31.000000 -n 8 -e 68.189464 N -t 31.000000 -n 9 -e 68.167121 N -t 31.000000 -n 10 -e 68.193958 N -t 31.000000 -n 11 -e 68.171609 N -t 31.000000 -n 12 -e 68.180986 N -t 31.000000 -n 13 -e 68.187107 N -t 41.000000 -n 0 -e 96.773889 N -t 41.000000 -n 1 -e 96.784835 N -t 41.000000 -n 2 -e 96.775030 N -t 41.000000 -n 3 -e 96.772040 N -t 41.000000 -n 4 -e 96.780167 N -t 41.000000 -n 5 -e 96.776919 N -t 41.000000 -n 6 -e 96.761276 N -t 41.000000 -n 7 -e 67.601170 N -t 41.000000 -n 8 -e 67.608901 N -t 41.000000 -n 9 -e 67.579967 N -t 41.000000 -n 10 -e 67.613693 N -t 41.000000 -n 11 -e 67.585984 N -t 41.000000 -n 12 -e 67.596627 N -t 41.000000 -n 13 -e 67.606602 N -t 51.000000 -n 0 -e 95.991282 N -t 51.000000 -n 1 -e 96.004570 N -t 51.000000 -n 2 -e 95.992636 N -t 51.000000 -n 3 -e 95.990305 N -t 51.000000 -n 4 -e 95.999324 N -t 51.000000 -n 5 -e 95.995665 N -t 51.000000 -n 6 -e 95.976100 N -t 51.000000 -n 7 -e 67.019284 N -t 51.000000 -n 8 -e 67.029059 N -t 51.000000 -n 9 -e 66.994376 N -t 51.000000 -n 10 -e 67.034779 N -t 51.000000 -n 11 -e 67.002296 N -t 51.000000 -n 12 -e 67.013902 N -t 51.000000 -n 13 -e 67.027451 s 54.532817854 _10_ AGT --- 34 cbr 512 [0 0 0 0] [energy 67.034779] = ------- [10:0 0:4 32 0] [0] 0 0 r 54.538666194 _0_ AGT --- 34 cbr 532 [13a 0 a 800] [energy 95.986655] = ------- [10:0 0:4 30 0] [0] 1 0 s 57.223657545 _10_ AGT --- 35 cbr 512 [0 0 0 0] [energy 66.744000] = ------- [10:0 0:4 32 0] [1] 0 0 r 57.229645885 _0_ AGT --- 35 cbr 532 [13a 0 a 800] [energy 95.595054] = ------- [10:0 0:4 30 0] [1] 1 0 s 59.397916337 _12_ AGT --- 36 cbr 512 [0 0 0 0] [energy 66.719022] = ------- [12:0 0:5 32 0] [0] 0 0 r 59.409258032 _0_ AGT --- 36 cbr 532 [13a 0 7 800] [energy 95.585922] = ------- [12:0 0:5 29 0] [0] 2 0 N -t 61.000000 -n 0 -e 95.191841 N -t 61.000000 -n 1 -e 95.208121 N -t 61.000000 -n 2 -e 95.193631 N -t 61.000000 -n 3 -e 95.192383 N -t 61.000000 -n 4 -e 95.202508 N -t 61.000000 -n 5 -e 95.197665 N -t 61.000000 -n 6 -e 95.174811 N -t 61.000000 -n 7 -e 66.424292 N -t 61.000000 -n 8 -e 66.438010 N -t 61.000000 -n 9 -e 66.396594 N -t 61.000000 -n 10 -e 66.441309 N -t 61.000000 -n 11 -e 66.406204 N -t 61.000000 -n 12 -e 66.417770 N -t 61.000000 -n 13 -e 66.436176 s 62.393955227 _10_ AGT --- 37 cbr 512 [0 0 0 0] [energy 66.441309] = ------- [10:0 0:4 32 0] [2] 0 0 r 62.399803566 _0_ AGT --- 37 cbr 532 [13a 0 a 800] [energy 95.187214] = ------- [10:0 0:4 30 0] [2] 1 0 s 62.909961493 _12_ AGT --- 38 cbr 512 [0 0 0 0] [energy 66.414391] = ------- [12:0 0:5 32 0] [1] 0 0 r 62.921723188 _0_ AGT --- 38 cbr 532 [13a 0 7 800] [energy 95.178081] = ------- [12:0 0:5 29 0] [1] 2 0 s 63.248041347 _11_ AGT --- 39 cbr 512 [0 0 0 0] [energy 66.396066] = ------- [11:0 0:1 32 0] [0] 0 0 r 63.253650370 _0_ AGT --- 39 cbr 532 [13a 0 b 800] [energy 95.173454] = ------- [11:0 0:1 30 0] [0] 1 0 s 66.214430632 _10_ AGT --- 40 cbr 512 [0 0 0 0] [energy 66.135439] = ------- [10:0 0:4 32 0] [3] 0 0 r 66.220238972 _0_ AGT --- 40 cbr 532 [13a 0 a 800] [energy 94.774782] = ------- [10:0 0:4 30 0] [3] 1 0 s 67.679815215 _12_ AGT --- 41 cbr 512 [0 0 0 0] [energy 66.106512] = ------- [12:0 0:5 32 0] [2] 0 0 r 67.691776910 _0_ AGT --- 41 cbr 532 [13a 0 7 800] [energy 94.765650] = ------- [12:0 0:5 29 0] [2] 2 0 s 68.778354772 _11_ AGT --- 42 cbr 512 [0 0 0 0] [energy 66.087721] = ------- [11:0 0:1 32 0] [1] 0 0 r 68.784303794 _0_ AGT --- 42 cbr 532 [13a 0 b 800] [energy 94.761022] = ------- [11:0 0:1 30 0] [1] 1 0 N -t 71.000000 -n 0 -e 94.366746 N -t 71.000000 -n 1 -e 94.387064 N -t 71.000000 -n 2 -e 94.368422 N -t 71.000000 -n 3 -e 94.368614 N -t 71.000000 -n 4 -e 94.379634 N -t 71.000000 -n 5 -e 94.374170 N -t 71.000000 -n 6 -e 94.348168 N -t 71.000000 -n 7 -e 65.809365 N -t 71.000000 -n 8 -e 65.827872 N -t 71.000000 -n 9 -e 65.779792 N -t 71.000000 -n 10 -e 65.829102 N -t 71.000000 -n 11 -e 65.789538 N -t 71.000000 -n 12 -e 65.801685 N -t 71.000000 -n 13 -e 65.826166 s 71.277587999 _12_ AGT --- 43 cbr 512 [0 0 0 0] [energy 65.801685] = ------- [12:0 0:5 32 0] [3] 0 0 r 71.289349694 _0_ AGT --- 43 cbr 532 [13a 0 7 800] [energy 94.357613] = ------- [12:0 0:5 29 0] [3] 2 0 s 72.208266070 _10_ AGT --- 44 cbr 512 [0 0 0 0] [energy 65.822344] = ------- [10:0 0:4 32 0] [4] 0 0 r 72.214294410 _0_ AGT --- 44 cbr 532 [13a 0 a 800] [energy 94.352986] = ------- [10:0 0:4 30 0] [4] 1 0 s 73.995116163 _11_ AGT --- 45 cbr 512 [0 0 0 0] [energy 65.779400] = ------- [11:0 0:1 32 0] [2] 0 0 r 74.000665185 _0_ AGT --- 45 cbr 532 [13a 0 b 800] [energy 94.348359] = ------- [11:0 0:1 30 0] [2] 1 0 s 75.740220802 _12_ AGT --- 46 cbr 512 [0 0 0 0] [energy 65.496715] = ------- [12:0 0:5 32 0] [4] 0 0 r 75.751822497 _0_ AGT --- 46 cbr 532 [13a 0 7 800] [energy 93.949646] = ------- [12:0 0:5 29 0] [4] 2 0 s 76.278222760 _11_ AGT --- 47 cbr 512 [0 0 0 0] [energy 65.477857] = ------- [11:0 0:1 32 0] [3] 0 0 r 76.284251783 _0_ AGT --- 47 cbr 532 [13a 0 b 800] [energy 93.945019] = ------- [11:0 0:1 30 0] [3] 1 0 s 79.576347322 _11_ AGT --- 48 cbr 512 [0 0 0 0] [energy 65.473473] = ------- [11:0 0:1 32 0] [4] 0 0 r 79.582356344 _0_ AGT --- 48 cbr 532 [13a 0 b 800] [energy 93.940392] = ------- [11:0 0:1 30 0] [4] 1 0 N -t 81.000000 -n 0 -e 93.550392 N -t 81.000000 -n 1 -e 93.573713 N -t 81.000000 -n 2 -e 93.553855 N -t 81.000000 -n 3 -e 93.553860 N -t 81.000000 -n 4 -e 93.565564 N -t 81.000000 -n 5 -e 93.559267 N -t 81.000000 -n 6 -e 93.530117 N -t 81.000000 -n 7 -e 65.200729 N -t 81.000000 -n 8 -e 65.223670 N -t 81.000000 -n 9 -e 65.169773 N -t 81.000000 -n 10 -e 65.224331 N -t 81.000000 -n 11 -e 65.178125 N -t 81.000000 -n 12 -e 65.192030 N -t 81.000000 -n 13 -e 65.222515 N -t 91.000000 -n 0 -e 92.768320 N -t 91.000000 -n 1 -e 92.794776 N -t 91.000000 -n 2 -e 92.771079 N -t 91.000000 -n 3 -e 92.772189 N -t 91.000000 -n 4 -e 92.784648 N -t 91.000000 -n 5 -e 92.778224 N -t 91.000000 -n 6 -e 92.745926 N -t 91.000000 -n 7 -e 64.619382 N -t 91.000000 -n 8 -e 64.644647 N -t 91.000000 -n 9 -e 64.584652 N -t 91.000000 -n 10 -e 64.645535 N -t 91.000000 -n 11 -e 64.594463 N -t 91.000000 -n 12 -e 64.609916 N -t 91.000000 -n 13 -e 64.643901 From cslow78 at yahoo.com Tue Aug 3 00:52:41 2004 From: cslow78 at yahoo.com (low chee sing) Date: Tue Aug 3 00:55:02 2004 Subject: [ns] Power Transmission Logging Message-ID: <20040803075241.27370.qmail@web14208.mail.yahoo.com> Hi all, Does anyone know how can I log the base stations' transmission power? I would like to change the way hand-off occurs. Thanks ===== ---------------------- Low Chee Sing UKM Mercator Office Phone: +603 8921 6191 Fax: +603 8925 6629 _______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com From agrawalagsonu at rediffmail.com Tue Aug 3 01:03:31 2004 From: agrawalagsonu at rediffmail.com (sonu agrawal) Date: Tue Aug 3 01:05:37 2004 Subject: [ns] OWNS:Nodemask error Message-ID: <20040803080331.25249.qmail@webmail9.rediffmail.com> hiii all, iam having problem in running OWNS demo file.i have installed OWNS on ns-2.1b6 on Redhat linux 7.3 .althoug the installation is said to be successful ,when i run owns demo file ,i get the following error. if anyone is using OWNS then please write to me . sonu agrawal warning: no class variable Classifier/Addr/Lightpath::off_wdm_ see tcl-object.tcl in tclcl for info about this warning. can't read "NodeMask_": no such variable (Object set line 1) invoked from within "AddrParams set NodeMask_(1)" (procedure "_o14" line 6) (WDMNode mk-default-classifier line 6) invoked from within "$self mk-default-classifier" (procedure "_o14" line 24) (Object next line 24) invoked from within "_o14 next" ("eval" body line 1) invoked from within "eval $self next $args" (procedure "_o14" line 3) (WDMNode init line 3) invoked from within "_o14 init " (Class create line 1) invoked from within "WDMNode create _o14 " invoked from within "catch "$className create $o $args" msg" (procedure "new" line 3) invoked from within "new WDMNode" ("eval" body line 1) invoked from within "eval new [Simulator set node_factory_] $args" (procedure "_o4" line 30) (Simulator node line 30) invoked from within "$self node" (procedure "_o4" line 8) (Simulator WDMNode line 8) invoked from within "$ns $node" (procedure "create-topology" line 12) invoked from within "create-topology ns WDMNode SessionTrafficRcvr 8Mb 8 1 8 0.024 1 0.5 50" ("eval" body line 1) invoked from within invoked from within rom within "eval create-topology ns WDMNode SessionTrafficRcvr $val(link_bw) $val(link_wvlen_num) \ $val(wvlen_conv_factor) $val(wvlen_conv_dist) $val(wvl..." (file "./owns-test/owns_demo.tcl" line 174) ~ From emagistretti at deis.unibo.it Tue Aug 3 01:49:48 2004 From: emagistretti at deis.unibo.it (Eugenio Magistretti) Date: Tue Aug 3 01:53:50 2004 Subject: [ns] Segmentation Fault (core dumped) and Installation of NS In-Reply-To: <001701c478e6$9750c280$0700a8c0@simulador> References: <001701c478e6$9750c280$0700a8c0@simulador> Message-ID: <410F51AC.9090307@deis.unibo.it> Hi, the problem of the CPP_NAMESPACE is well known and can be solved as explained at http://www.isi.edu/nsnam/ns/ns-problems.html Hope this helps, best regards Eugenio G8NET ha scritto: >Hi, > > > > I am a new user of ns too; I am having problems in the >installation of ns. The operating system is Linux Mandrake 10.0, Kernel >2.6.2rc3. The > >NS (Network Simulator) is 2.27. When I setup ns (./install), I change the >file profile in the directory /etc. I run the program ./validate and does >not occur any mistake. However, how much I run the commands ./configure, >make and make install in directory ns-2.27 occurs the mistakes below. It >really is necessary run these commands? > > > >Other mistake that occurs is when I run the simulation DiffServ: >Segmentation Fault (core dumped). Why this does it happen? > > > >Will it be necessary that I change the version or Linux's Distribution? Will >it be necessary that I change the version of ns? > > > > > >Heron Fran?a de Oliveira > > > >heron@g8net.com.br > > > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >[root@simulator ns-2.27]# ./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 suffix of executables... > >checking for suffix of object files... o > >checking whether we are using the GNU C compiler... yes > >checking whether gcc accepts -g... yes > >checking for gcc option to accept ANSI C... none needed > >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 egrep... grep -E > >checking for ANSI C header files... yes > >checking for sys/types.h... yes > >checking for sys/stat.h... yes > >checking for stdlib.h... yes > >checking for string.h... yes > >checking for memory.h... yes > >checking for strings.h... yes > >checking for inttypes.h... yes > >checking for stdint.h... yes > >checking for unistd.h... yes > >checking for string.h... (cached) yes > >checking for main in -lXbsd... no > >checking for socket in -lsocket... no > >checking for gethostbyname in -lnsl... yes > >checking for dcgettext in -lintl... yes > >checking for getnodebyname in -ldnet_stub... no > >checking that g++ can handle -O2... no > >checking if C++ libraries work without any namespace... no > >checking if C++ libraries work with namespace std... yes > >checking if STL works without any namespace... no > >checking if STL works with namespace std... yes > >checking should use STL... yes > >checking for tcl.h... -I../include > >checking for libtcl8.4... -L../lib -ltcl8.4 > >checking for init.tcl... ../lib/tcl8.4 > >checking for tclsh8.4.5... no > >checking for tclsh8.4... ../bin/tclsh8.4 > >checking for tk.h... -I../include > >checking for libtk8.4... -L../lib -ltk8.4 > >checking for tk.tcl... ../lib/tk8.4 > >checking for otcl.h... -I../otcl-1.8 > >checking for libotcl1.8... -L../otcl-1.8 -lotcl > >checking for tclcl.h... -I../tclcl-1.15 > >checking for libtclcl... -L../tclcl-1.15 -ltclcl > >checking for tcl2c++... ../tclcl-1.15 > >checking for X11 header files > >checking for X11 library archive > >checking for XOpenDisplay in -lX11... no > >checking for libXext.a > >checking for libtcldbg... no > >checking dmalloc... not requested with --with-dmalloc > >checking for perl... /usr/bin > >checking for ANSI C header files... (cached) yes > >checking for bcopy... yes > >checking for bzero... yes > >checking for fesetprecision... no > >checking for getrusage... yes > >checking for sbrk... yes > >checking for snprintf... yes > >checking arpa/inet.h usability... yes > >checking arpa/inet.h presence... yes > >checking for arpa/inet.h... yes > >checking netinet/in.h usability... yes > >checking netinet/in.h presence... yes > >checking for netinet/in.h... yes > >checking for string.h... (cached) yes > >checking for strings.h... (cached) yes > >checking time.h usability... yes > >checking time.h presence... yes > >checking for time.h... yes > >checking for unistd.h... (cached) yes > >checking net/ethernet.h usability... yes > >checking net/ethernet.h presence... yes > >checking for net/ethernet.h... yes > >checking return type of random... long > >checking for int8_t... yes > >checking for int16_t... yes > >checking for int32_t... yes > >checking for u_int8_t... yes > >checking for u_int16_t... yes > >checking for u_int32_t... yes > >checking for u_char... yes > >checking for u_int... yes > >checking for strtoq... yes > >checking for strtoll... yes > >checking for long... yes > >checking size of long... 4 > >checking for __int64_t... no > >checking for long long... yes > >checking for int64_t... yes > >checking which kind of 64-bit int to use... int64_t > >checking for struct ether_header... found > >checking for struct ether_addr... found > >checking for addr2ascii... no > >checking for Linux compliant tcphdr... found > >checking for BSD compliant tcphdr... not found > >checking for socklen_t... yes > >checking for main in -lpcap... no > >checking to make nse... no > >Explicitly disabling static compilation > >checking for dlopen in -ldl... yes > >checking for a BSD-compatible install... /usr/bin/install -c > >configure: creating ./config.status > >config.status: creating Makefile > >config.status: creating tcl/lib/ns-autoconf.tcl > >config.status: creating indep-utils/webtrace-conv/ucb/Makefile > >config.status: creating indep-utils/webtrace-conv/dec/Makefile > >config.status: creating indep-utils/webtrace-conv/nlanr/Makefile > >config.status: creating indep-utils/webtrace-conv/epa/Makefile > >config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile > >config.status: creating autoconf.h > >config.status: autoconf.h is unchanged > >[root@simulator ns-2.27]# > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >+ > > > >[root@simulator ns-2.27]# make > >for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec >indep-ut > >ils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr >indep-utils/webtrace-conv/ > >ucb; do ( cd $i; make all; ) done > >make[1]: Entering directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen > >-gen/setdest' > >g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o >setdest.cc > >In file included from ../../../config.h:54, > > from setdest.h:5, > > from setdest.cc:57: > >../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > >setdest.cc:71:1: warning: "INFINITY" redefined > >In file included from /usr/include/math.h:40, > > from setdest.cc:43: > >/usr/include/bits/mathdef.h:35:1: warning: this is the location of the >previous > >definition > >make[1]: *** [setdest.o] Error 1 > >make[1]: Leaving directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen- > >gen/setdest' > >make[1]: Entering directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace > >-conv/dec' > >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. >-I/home/ns-allinone-2.27/tclcl-1.15 - > >I/home/ns-allinone-2.27/otcl-1.8 -I/home/ns-allinone-2.27/include >-I/home/ns-all > >inone-2.27/include -I/usr/include/pcap -o proxytrace.o proxytrace.cc > >In file included from proxytrace.cc:3: > >../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > >make[1]: *** [proxytrace.o] Error 1 > >make[1]: Leaving directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- > >conv/dec' > >make[1]: Entering directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace >-conv/epa' > >make[1]: Nothing to be done for `all'. > >make[1]: Leaving directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- >conv/epa' > >make[1]: Entering directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace >-conv/nlanr' > >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. >-I/home/ns-allinone-2.27/t >clcl-1.15 -I/home/ns-allinone-2.27/otcl-1.8 -I/home/ns-allinone-2.27/include >-I/ home/ns-allinone-2.27/include >-I/usr/include/pcap -o tr-stat.o tr-stat.cc > >In file included from ../../../config.h:54, > > from logparse.h:7, > > from tr-stat.cc:24: > >../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > >make[1]: *** [tr-stat.o] Error 1 > >make[1]: Leaving directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- >conv/nlanr' > >make[1]: Entering directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace >-conv/ucb' > >make[1]: Nothing to be done for `all'. > >make[1]: Leaving directory >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- >conv/ucb' > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >[root@simulator ns-2.27]# make install > >/usr/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin > >/usr/bin/install -c -m 444 -o bin -g bin ns.1 /usr/local/man/man1 > >/usr/bin/install: cannot create regular file `/usr/local/man/man1': No such >file or directory > >make: *** [install-man] Error 1 > > > > > > > > > > From hatta at telecom.ee.itb.ac.id Tue Aug 3 02:20:54 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Tue Aug 3 02:24:32 2004 Subject: [ns] mobile IP optimization in ns-2.2.7 Message-ID: how can i program .tcl so i can simulate mobile ip with ip otimization? thnx From dtriant at ics.forth.gr Tue Aug 3 02:37:05 2004 From: dtriant at ics.forth.gr (Despoina Triantafyllidou) Date: Tue Aug 3 02:39:40 2004 Subject: [ns] Segmentation Fault (core dumped) and Installation of NS In-Reply-To: <410F51AC.9090307@deis.unibo.it> References: <001701c478e6$9750c280$0700a8c0@simulador> <410F51AC.9090307@deis.unibo.it> Message-ID: Also, I solved the problem of the INFINITY redefinition by putting a comment on the line: // #define INFINITY 0X00ffffff Despina On Tue, 3 Aug 2004, Eugenio Magistretti wrote: > > Hi, > > the problem of the CPP_NAMESPACE is well known and can be solved > as explained at > http://www.isi.edu/nsnam/ns/ns-problems.html > Hope this helps, best regards > Eugenio > > > G8NET ha scritto: > > >Hi, > > > > > > > > I am a new user of ns too; I am having problems in the > >installation of ns. The operating system is Linux Mandrake 10.0, Kernel > >2.6.2rc3. The > > > >NS (Network Simulator) is 2.27. When I setup ns (./install), I change the > >file profile in the directory /etc. I run the program ./validate and does > >not occur any mistake. However, how much I run the commands ./configure, > >make and make install in directory ns-2.27 occurs the mistakes below. It > >really is necessary run these commands? > > > > > > > >Other mistake that occurs is when I run the simulation DiffServ: > >Segmentation Fault (core dumped). Why this does it happen? > > > > > > > >Will it be necessary that I change the version or Linux's Distribution? Will > >it be necessary that I change the version of ns? > > > > > > > > > > > >Heron Fran?a de Oliveira > > > > > > > >heron@g8net.com.br > > > > > > > > > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > >[root@simulator ns-2.27]# ./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 suffix of executables... > > > >checking for suffix of object files... o > > > >checking whether we are using the GNU C compiler... yes > > > >checking whether gcc accepts -g... yes > > > >checking for gcc option to accept ANSI C... none needed > > > >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 egrep... grep -E > > > >checking for ANSI C header files... yes > > > >checking for sys/types.h... yes > > > >checking for sys/stat.h... yes > > > >checking for stdlib.h... yes > > > >checking for string.h... yes > > > >checking for memory.h... yes > > > >checking for strings.h... yes > > > >checking for inttypes.h... yes > > > >checking for stdint.h... yes > > > >checking for unistd.h... yes > > > >checking for string.h... (cached) yes > > > >checking for main in -lXbsd... no > > > >checking for socket in -lsocket... no > > > >checking for gethostbyname in -lnsl... yes > > > >checking for dcgettext in -lintl... yes > > > >checking for getnodebyname in -ldnet_stub... no > > > >checking that g++ can handle -O2... no > > > >checking if C++ libraries work without any namespace... no > > > >checking if C++ libraries work with namespace std... yes > > > >checking if STL works without any namespace... no > > > >checking if STL works with namespace std... yes > > > >checking should use STL... yes > > > >checking for tcl.h... -I../include > > > >checking for libtcl8.4... -L../lib -ltcl8.4 > > > >checking for init.tcl... ../lib/tcl8.4 > > > >checking for tclsh8.4.5... no > > > >checking for tclsh8.4... ../bin/tclsh8.4 > > > >checking for tk.h... -I../include > > > >checking for libtk8.4... -L../lib -ltk8.4 > > > >checking for tk.tcl... ../lib/tk8.4 > > > >checking for otcl.h... -I../otcl-1.8 > > > >checking for libotcl1.8... -L../otcl-1.8 -lotcl > > > >checking for tclcl.h... -I../tclcl-1.15 > > > >checking for libtclcl... -L../tclcl-1.15 -ltclcl > > > >checking for tcl2c++... ../tclcl-1.15 > > > >checking for X11 header files > > > >checking for X11 library archive > > > >checking for XOpenDisplay in -lX11... no > > > >checking for libXext.a > > > >checking for libtcldbg... no > > > >checking dmalloc... not requested with --with-dmalloc > > > >checking for perl... /usr/bin > > > >checking for ANSI C header files... (cached) yes > > > >checking for bcopy... yes > > > >checking for bzero... yes > > > >checking for fesetprecision... no > > > >checking for getrusage... yes > > > >checking for sbrk... yes > > > >checking for snprintf... yes > > > >checking arpa/inet.h usability... yes > > > >checking arpa/inet.h presence... yes > > > >checking for arpa/inet.h... yes > > > >checking netinet/in.h usability... yes > > > >checking netinet/in.h presence... yes > > > >checking for netinet/in.h... yes > > > >checking for string.h... (cached) yes > > > >checking for strings.h... (cached) yes > > > >checking time.h usability... yes > > > >checking time.h presence... yes > > > >checking for time.h... yes > > > >checking for unistd.h... (cached) yes > > > >checking net/ethernet.h usability... yes > > > >checking net/ethernet.h presence... yes > > > >checking for net/ethernet.h... yes > > > >checking return type of random... long > > > >checking for int8_t... yes > > > >checking for int16_t... yes > > > >checking for int32_t... yes > > > >checking for u_int8_t... yes > > > >checking for u_int16_t... yes > > > >checking for u_int32_t... yes > > > >checking for u_char... yes > > > >checking for u_int... yes > > > >checking for strtoq... yes > > > >checking for strtoll... yes > > > >checking for long... yes > > > >checking size of long... 4 > > > >checking for __int64_t... no > > > >checking for long long... yes > > > >checking for int64_t... yes > > > >checking which kind of 64-bit int to use... int64_t > > > >checking for struct ether_header... found > > > >checking for struct ether_addr... found > > > >checking for addr2ascii... no > > > >checking for Linux compliant tcphdr... found > > > >checking for BSD compliant tcphdr... not found > > > >checking for socklen_t... yes > > > >checking for main in -lpcap... no > > > >checking to make nse... no > > > >Explicitly disabling static compilation > > > >checking for dlopen in -ldl... yes > > > >checking for a BSD-compatible install... /usr/bin/install -c > > > >configure: creating ./config.status > > > >config.status: creating Makefile > > > >config.status: creating tcl/lib/ns-autoconf.tcl > > > >config.status: creating indep-utils/webtrace-conv/ucb/Makefile > > > >config.status: creating indep-utils/webtrace-conv/dec/Makefile > > > >config.status: creating indep-utils/webtrace-conv/nlanr/Makefile > > > >config.status: creating indep-utils/webtrace-conv/epa/Makefile > > > >config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile > > > >config.status: creating autoconf.h > > > >config.status: autoconf.h is unchanged > > > >[root@simulator ns-2.27]# > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >+ > > > > > > > >[root@simulator ns-2.27]# make > > > >for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec > >indep-ut > > > >ils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr > >indep-utils/webtrace-conv/ > > > >ucb; do ( cd $i; make all; ) done > > > >make[1]: Entering directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen > > > >-gen/setdest' > > > >g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o > >setdest.cc > > > >In file included from ../../../config.h:54, > > > > from setdest.h:5, > > > > from setdest.cc:57: > > > >../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > > > >setdest.cc:71:1: warning: "INFINITY" redefined > > > >In file included from /usr/include/math.h:40, > > > > from setdest.cc:43: > > > >/usr/include/bits/mathdef.h:35:1: warning: this is the location of the > >previous > > > >definition > > > >make[1]: *** [setdest.o] Error 1 > > > >make[1]: Leaving directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen- > > > >gen/setdest' > > > >make[1]: Entering directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace > > > >-conv/dec' > > > >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. > >-I/home/ns-allinone-2.27/tclcl-1.15 - > > > >I/home/ns-allinone-2.27/otcl-1.8 -I/home/ns-allinone-2.27/include > >-I/home/ns-all > > > >inone-2.27/include -I/usr/include/pcap -o proxytrace.o proxytrace.cc > > > >In file included from proxytrace.cc:3: > > > >../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > > > >make[1]: *** [proxytrace.o] Error 1 > > > >make[1]: Leaving directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- > > > >conv/dec' > > > >make[1]: Entering directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace > >-conv/epa' > > > >make[1]: Nothing to be done for `all'. > > > >make[1]: Leaving directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- > >conv/epa' > > > >make[1]: Entering directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace > >-conv/nlanr' > > > >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. > >-I/home/ns-allinone-2.27/t > >clcl-1.15 -I/home/ns-allinone-2.27/otcl-1.8 -I/home/ns-allinone-2.27/include > >-I/ home/ns-allinone-2.27/include > >-I/usr/include/pcap -o tr-stat.o tr-stat.cc > > > >In file included from ../../../config.h:54, > > > > from logparse.h:7, > > > > from tr-stat.cc:24: > > > >../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared > > > >make[1]: *** [tr-stat.o] Error 1 > > > >make[1]: Leaving directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- > >conv/nlanr' > > > >make[1]: Entering directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace > >-conv/ucb' > > > >make[1]: Nothing to be done for `all'. > > > >make[1]: Leaving directory > >`/home/ns-allinone-2.27/ns-2.27/indep-utils/webtrace- > >conv/ucb' > > > > > > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > >[root@simulator ns-2.27]# make install > > > >/usr/bin/install -c -m 555 -o bin -g bin ns /usr/local/bin > > > >/usr/bin/install -c -m 444 -o bin -g bin ns.1 /usr/local/man/man1 > > > >/usr/bin/install: cannot create regular file `/usr/local/man/man1': No such > >file or directory > > > >make: *** [install-man] Error 1 > > > > > > > > > > > > > > > > > > > > > > > > From soohyunc at msn.com Tue Aug 3 02:46:06 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Tue Aug 3 02:41:33 2004 Subject: [ns] Copy Packet, p->copy() References: <62b83bdb.69dda9c9.8166d00@mirapointms3.wayne.edu> Message-ID: Hi, I'm not for 100% sure but try as follows: void BK::enque(Packet* p) { Packet* p_bak = allocpkt(); p_bak = p->copy(); q2->enque(p_bak); q1->enque(p); } Soo-Hyun ----- Original Message ----- From: "Scott Fowler" To: Sent: Tuesday, August 03, 2004 4:22 AM Subject: [ns] Copy Packet, p->copy() > > Dear ns-user > > I tried using the p->copy() function in order to makes copy > of a packet, unfortunately this command does not copy the > uid_ field (unique id). Reason for need to use the copy() > function, I would like to make back up copy of a packet > should it is dropped. If the packet is dropped, the backup > copy is sent. But I keep getting two errors, my program > aborts or "Event UID not valid". > > Any suggestion would be appreciated on how to create a > duplicate packet. Copy of the code is below. > > BK.cc file > =========== > void BK::enque(Packet* p) > { > Packet* p_bak; > > p_bak = p->copy(); > q2->enque(p_bak); > q1->enque(p); > > if ((q1_->length() + q2_->length()) > qlim_) { > q2_->free(p); > } > } > > Packet * BK::deque() > { > Packet *p; > > p = q1_->deque(); > > if( p == 0) { > p = q2_->deque(); > } > > return(p); > } > > BK.k file > ========== > class BK : public Queue { > public : > BK { > q1_ = new PacketQueue; > q2_ = new PacketQueue; > pq_ = q1_; > } > > protected: > void enque(Packet*); > Packet* deque(); > PacketQueue *q1_; > PacketQueue *q2_; > }; > > Cheers > > From synv at comnet.technion.ac.il Tue Aug 3 04:20:16 2004 From: synv at comnet.technion.ac.il (Yaniv Ben Izhak) Date: Tue Aug 3 03:21:35 2004 Subject: [ns] ******* 802.16 MAC&PHY Module ******** Message-ID: <000001c4794b$da41a5e0$4c344484@cnl.ef.technion.ac.il> Hi, Does somebody have a module for 802.16 WiMax ? How can I simulate traffic over this module ? Thanks Yaniv. From enarro at ita.es Tue Aug 3 05:53:16 2004 From: enarro at ita.es (Elvira Narro) Date: Tue Aug 3 05:55:44 2004 Subject: [ns] max data rate in wireless Message-ID: Hello Ns users, do you know what is the max rate we can obtain in wireless in Ns-2? i have the following parameters: Mac/802_11 set dataRate_ 11Mb MAc(802_11 set RTThreshold_ 5000 Phy/WirelessPhy set Rb 2.1e6 but when i try to send a data rate of 4Mbps, 5Mbps....10Mbps i obtain always a real rate 3.6Mbps... why this limit? thanks in advance Elvira Narro From edtyy at hotmail.com Tue Aug 3 07:17:30 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Tue Aug 3 07:19:35 2004 Subject: [ns] NAV problem causing drop of CTS packet Message-ID: Hello Everyone, I am using mac-802.11.cc and when a station receive a RTS and wants to send a CTS. it drops the packet because the medium is busy. I have checked the code and the mailing list, realised that it is due to the NAV problem. Does any one have the solution to solve this ? int Mac802_11::check_pktCTRL() { case MAC_Subtype_CTS: if(!is_idle()) { discard(pktCTRL_, DROP_MAC_BUSY); pktCTRL_ = 0; return 0; } } Thank You Edwin _________________________________________________________________ Keep track of Singapore & Malaysia stock prices. http://www.msn.com.sg/money/ From mhazo at oweitech.com Tue Aug 3 08:33:41 2004 From: mhazo at oweitech.com (Mohamed Tamer A. Refaei) Date: Tue Aug 3 08:36:48 2004 Subject: [ns] local_rt_repair call returns "Scheduler: Event UID not valid" Message-ID: <32807.208.17.194.125.1091547221.squirrel@mail.oweitech.com> Hi all, I am using ns-2.27 on linux. I am working on a wireless simulation using AODV. I am trying to manually trigger routing updates by calling local_rt_repair. However, ns returns an error "Scheduler: Event UID not valid!" Any clue why this is happening? Is there any other way to trigger routing updates in AODV? all help appreciated thanks From varnitsuri at hotpop.com Tue Aug 3 02:20:40 2004 From: varnitsuri at hotpop.com (Varnit Suri) Date: Tue Aug 3 08:40:47 2004 Subject: [ns] papers on MAC peformance Message-ID: <003401c47983$157544a0$88ec41db@varcom> Hi all I have been looking for papers that evaluate the performance of the IEEE 802.11 MAC, in the manner similar to that done for the MANET routing protocols (as done in the classical paper by Monarch group using Ns-2), using different mobility and traffic levels. I'd be grateful if someone can point me to *any* such performance evaluations. Best Regards Varnit Suri Engineer (Transmission) Telecommunications Consultants India Ltd. (TCIL) (M): +91-98106 86255 (T): +91-11-2620 2437 Email: varnit.suri@tcil-india.com Website: www.tcil-india.com From nguyen at tnt.uni-hannover.de Tue Aug 3 09:10:33 2004 From: nguyen at tnt.uni-hannover.de (Thanh Nguyen) Date: Tue Aug 3 09:13:57 2004 Subject: [ns] no target for slot problem References: <200408030939.i739doi06080@gamma.isi.edu> Message-ID: <410FB8F9.8050202@tnt.uni-hannover.de> hi ns-users, I have modified the simple-rtp.tcl in the directory ns2-27/tcl/ex as following: set ns [new Simulator -multicast on] set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] $ns color 1 red # prune/graft packets $ns color 30 purple $ns color 31 bisque # RTCP reports $ns color 32 green set f [open rtp-out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf $ns duplex-link $n0 $n1 1.5Mb 10ms DropTail $ns duplex-link $n1 $n2 1.5Mb 10ms DropTail $ns duplex-link $n1 $n3 1.5Mb 10ms DropTail $ns duplex-link-op $n0 $n1 orient right $ns duplex-link-op $n1 $n2 orient right-up $ns duplex-link-op $n1 $n3 orient right-down $ns duplex-link-op $n0 $n1 queuePos 0.5 set mproto DM set mrthandle [$ns mrtproto $mproto {}] set group [Node allocaddr] set group 0x8001 set s0 [new Session/RTP] set s1 [new Session/RTP] set s2 [new Session/RTP] set s3 [new Session/RTP] $s0 session_bw 400kb/s $s1 session_bw 400kb/s $s2 session_bw 400kb/s $s3 session_bw 400kb/s $s0 attach-node $n0 $s1 attach-node $n1 $s2 attach-node $n2 $s3 attach-node $n3 $ns at 0.4 "$s0 join-group $group" $ns at 0.5 "$s1 join-group $group" $ns at 0.6 "$s2 join-group $group" $ns at 0.7 "$s3 join-group $group" $ns at 0.5 "$s0 start" $ns at 0.6 "$s1 start" $ns at 0.8 "$s2 start" $ns at 0.8 "$s3 start" $ns at 0.9 "$s0 transmit 400kb/s" $ns at 1.0 "$s1 transmit 400kb/s" $ns at 1.4 "$s2 transmit 400kb/s" $ns at 1.7 "$s3 transmit 400kb/s" $ns at 4.0 "finish" proc finish {} { global ns f nf $ns flush-trace close $f close $nf puts "running nam..." exec nam out.nam & exit 0 } $ns run When I run this file, I becomme the following error --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o106: no target for slot -1 _o106 type: Classifier/Port content dump: classifier _o106 0 offset 0 shift 2147483647 mask 3 slots slot 0: _o105 (Agent/Mcast/Control) slot 1: _o122 (Agent/CBR/RTP) slot 2: _o121 (Agent/RTCP) ---------- Finished standard no-slot{} default handler ---------- I have only found that this error appears when s0 runs transmit method. Thereby the start method of Agent/RTP is invoked. AgentRTP sends a packet and the target_->recv(p,Handler(0)) is called. Can someone help me to solve this problem? Thanks in advance, Thanh From shahabns at yahoo.com Tue Aug 3 09:27:42 2004 From: shahabns at yahoo.com (Shahab) Date: Tue Aug 3 09:30:51 2004 Subject: [ns] MAC bandwidth or channel bandwidth? Message-ID: <20040803162742.890.qmail@web53510.mail.yahoo.com> Dear all, I am testing my MAC protocol with ns. I want to change the bandwidth of the wireless channel between nodes to 10kbps. Can I do this by setting bandwidth_ parameter of MAC layer? If not, what is the different between MAC bandwidth and channel bandwidth? Thank u in advance. Shahab __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From chuahn_2 at hotmail.com Tue Aug 3 09:37:37 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Tue Aug 3 09:40:42 2004 Subject: [ns] A question about Queue/DropTail set limit_ Message-ID: Hi, Could you give some hints how to best measure average queue size and time-averaged loss rate. I am afraid that I could not give you the codes because it is too messy with '#' cancell off commands and it is still at the very beginning of the experimental stage. Thank you. ----- Original Message ----- From: "Soo-Hyun Choi" To: "Chua Hong Nung" ; Sent: Tuesday, August 03, 2004 12:39 AM Subject: Re: [ns] A question about Queue/DropTail set limit_ > >Have you calculated the average queue size for each traffic at the >bottleneck node? Have you calculated the time-averaged loss rate for each >traffic at the bottleneck node? That might give you a key to understand >your >simulation. But I do not see the clear reason why the BW utilisation at the >bottleneck link is around 60 to 80% each. I would expect to see around 100% >of BW utilisation regardless of the queue size. If you pass me your >simulation code, I can run it on my machine. > >Soo-Hyun > >----- Original Message ----- From: "Chua Hong Nung" >To: ; >Sent: Monday, August 02, 2004 4:08 PM >Subject: Re: [ns] A question about Queue/DropTail set limit_ > > > > I did not run TFRC but another protocol which is similar to it. > > Following are the results of my simulations: > > > > 0.5Mbps bottleneck > > Queue/DropTail set limit_ 5 > > Average CBR throughput: 0.17 Mbits > > Average TCP throughput: 0.142 Mbits > > Bandwidth utilization: (0.17 + 0.142)/ 0.5 = 62.4% > > > > 0.5Mbps bottleneck > > Queue/DropTail set limit_ 10 > > Average CBR throughput: 0.272 Mbits > > Average TCP throughput: 0.13 Mbits > > Bandwidth utilization: (0.272 + 0.13)/ 0.5 = 80.04% > > > > 1Mbps bottleneck > > Queue/DropTail set limit_ 5 > > Average CBR throughput: 0.411 Mbits > > Average TCP throughput: 0.186 Mbits > > Bandwidth utilization: (0.411 + 0.186)/ 1 = 59.7% > > > > 1Mbps bottleneck > > Queue/DropTail set limit_ 10 > > Average CBR throughput: 0.572 Mbits > > Average TCP throughput: 0.212 Mbits > > Bandwidth utilization: (0.572 + 0.212)/ 1 = 78.4% > > > > Thank you. > > > > Chua > > > > > > >From: "Soo-Hyun Choi" > > >To: "Chua Hong Nung" , > > >Subject: Re: [ns] A question about Queue/DropTail set limit_ > > >Date: Mon, 2 Aug 2004 13:00:00 +0100 > > > > > > > > > > > I run a simulation of TCP Reno and a TCP-friendly protocol with > > > > these links. > > > > > > > > 1ms delay and 10Mbps rate > > > > 1ms delay and 10Mbps rate > > > > 20ms delay and 0.5Mbps rate (bottleneck) > > > > 1ms delay and 10Mbps rate > > > > 1ms delay and 10Mbps rate > > > > > > > > I used DropTail queuing mechanism > > > > I set packet size to 500 bytes > > > > I set Queue/DropTail set limit_ to delay bandwidth product, i.e. 5 > > >packets > > > > or 20000bits > > > > > > > > However, the resulted outputs exhibit quite low bandwidth >utilization, > > > > i.e. 59-60%. Then, I increased the queue limit to 10, consequently > > > > bandwidth utilization increased about 20% to 78-80%. > > > > > > > > >Did the both TCP Reno and TFRC show the low bandwidth utilisation? Or, >just > > >TCP Reno showed the low BW utilisation? > > > > > > > _________________________________________________________________ > > Express yourself with cool new emoticons >http://www.msn.co.uk/specials/myemo > > > > > > _________________________________________________________________ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo From roosta at EECS.Berkeley.EDU Tue Aug 3 09:52:41 2004 From: roosta at EECS.Berkeley.EDU (roosta@EECS.Berkeley.EDU) Date: Tue Aug 3 09:57:01 2004 Subject: [ns] Complete GPRS simulation in ns2 Message-ID: <4fd55c4f973d.4f973d4fd55c@EECS.Berkeley.EDU> Hi, I have used the GPSR code available from Brad Karp's web site in ns2.16, but I had to make some changes for the code to work. Tanya ----- Original Message ----- From: Rajesh George Date: Monday, August 2, 2004 11:04 pm Subject: [ns] Complete GPRS simulation in ns2 > > Hi all > I am thinking of developing complete GPRS simulation to ns2. > > 1. > I could find implementation of GPRS from Richa Jain. Did > any one work with it ? Can I port it to latest ns2? Any comments or > suggestion welcome. > > 2. > Also I would like to port open source code of ggsn to > ns2. http://www.openggsn.org > > Any suggestions or pitfalls are welcome. > > Regards, > George > > > From soohyunc at msn.com Tue Aug 3 10:18:06 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Tue Aug 3 10:13:43 2004 Subject: [ns] A question about Queue/DropTail set limit_ References: Message-ID: according to measuring the queue size, 1. generate a queue trace file where you want to measure 2. by using time-averaged window, count the "+" for increasing the queue size measurement, and count "-" and "d" for decreasing the queue size measurement. 3. plot it using xgraph or gnuplot. according to measuring the loss rate based on the number of packet lost, 1. use a same queue trace file as the above 2. for each fixed number of packet transmission, count the number of "+" packet, and count the number of "d". 3. loss rate can be calculated by dividing "d" packets by "+" packets for each iteration. 4. plot it using xgraph or gnuplot Soo-Hyun P.S. >From my intuition, your bottleneck link will present about 100% of utilisation no matter what the queue size is. I cam merely guess your simulation script has a flaw. ----- Original Message ----- From: "Chua Hong Nung" To: ; Sent: Tuesday, August 03, 2004 5:37 PM Subject: Re: [ns] A question about Queue/DropTail set limit_ > Hi, > Could you give some hints how to best measure average queue size and > time-averaged loss rate. > > I am afraid that I could not give you the codes because it is too messy with > '#' cancell > off commands and it is still at the very beginning of the experimental > stage. > > Thank you. > > > ----- Original Message ----- > From: "Soo-Hyun Choi" > To: "Chua Hong Nung" ; > Sent: Tuesday, August 03, 2004 12:39 AM > Subject: Re: [ns] A question about Queue/DropTail set limit_ > > > > > >Have you calculated the average queue size for each traffic at the > >bottleneck node? Have you calculated the time-averaged loss rate for each > >traffic at the bottleneck node? That might give you a key to understand > >your > >simulation. But I do not see the clear reason why the BW utilisation at the > >bottleneck link is around 60 to 80% each. I would expect to see around 100% > >of BW utilisation regardless of the queue size. If you pass me your > >simulation code, I can run it on my machine. > > > >Soo-Hyun > > > >----- Original Message ----- From: "Chua Hong Nung" > >To: ; > >Sent: Monday, August 02, 2004 4:08 PM > >Subject: Re: [ns] A question about Queue/DropTail set limit_ > > > > > > > I did not run TFRC but another protocol which is similar to it. > > > Following are the results of my simulations: > > > > > > 0.5Mbps bottleneck > > > Queue/DropTail set limit_ 5 > > > Average CBR throughput: 0.17 Mbits > > > Average TCP throughput: 0.142 Mbits > > > Bandwidth utilization: (0.17 + 0.142)/ 0.5 = 62.4% > > > > > > 0.5Mbps bottleneck > > > Queue/DropTail set limit_ 10 > > > Average CBR throughput: 0.272 Mbits > > > Average TCP throughput: 0.13 Mbits > > > Bandwidth utilization: (0.272 + 0.13)/ 0.5 = 80.04% > > > > > > 1Mbps bottleneck > > > Queue/DropTail set limit_ 5 > > > Average CBR throughput: 0.411 Mbits > > > Average TCP throughput: 0.186 Mbits > > > Bandwidth utilization: (0.411 + 0.186)/ 1 = 59.7% > > > > > > 1Mbps bottleneck > > > Queue/DropTail set limit_ 10 > > > Average CBR throughput: 0.572 Mbits > > > Average TCP throughput: 0.212 Mbits > > > Bandwidth utilization: (0.572 + 0.212)/ 1 = 78.4% > > > > > > Thank you. > > > > > > Chua > > > > > > > > > >From: "Soo-Hyun Choi" > > > >To: "Chua Hong Nung" , > > > >Subject: Re: [ns] A question about Queue/DropTail set limit_ > > > >Date: Mon, 2 Aug 2004 13:00:00 +0100 > > > > > > > > > > > > > > I run a simulation of TCP Reno and a TCP-friendly protocol with > > > > > these links. > > > > > > > > > > 1ms delay and 10Mbps rate > > > > > 1ms delay and 10Mbps rate > > > > > 20ms delay and 0.5Mbps rate (bottleneck) > > > > > 1ms delay and 10Mbps rate > > > > > 1ms delay and 10Mbps rate > > > > > > > > > > I used DropTail queuing mechanism > > > > > I set packet size to 500 bytes > > > > > I set Queue/DropTail set limit_ to delay bandwidth product, i.e. 5 > > > >packets > > > > > or 20000bits > > > > > > > > > > However, the resulted outputs exhibit quite low bandwidth > >utilization, > > > > > i.e. 59-60%. Then, I increased the queue limit to 10, consequently > > > > > bandwidth utilization increased about 20% to 78-80%. > > > > > > > > > > > >Did the both TCP Reno and TFRC show the low bandwidth utilisation? Or, > >just > > > >TCP Reno showed the low BW utilisation? > > > > > > > > > > _________________________________________________________________ > > > Express yourself with cool new emoticons > >http://www.msn.co.uk/specials/myemo > > > > > > > > > > > > _________________________________________________________________ > Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo > > From ppl at nbnet.nb.ca Tue Aug 3 11:22:47 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Tue Aug 3 11:26:01 2004 Subject: [ns] Network scenario/topology for Application/Worm Message-ID: <20040803182247.GA75281@bloodaxis> Hi ns-users, While looking in "tcl/lib/ns-default.tcl" I found the implementation of an application simulating the slammer worm. I would like to test queues under such situation. I was wondering if there's an already existing topology and scenario to experiment with Application/Worm. If you know about such an OTcl script please let me know. Regards, ppl From rana_aa at yahoo.com Tue Aug 3 18:02:19 2004 From: rana_aa at yahoo.com (rana abu nafisa) Date: Tue Aug 3 18:05:49 2004 Subject: [ns] mobilenode direction .....PLS HELP In-Reply-To: <4fd55c4f973d.4f973d4fd55c@EECS.Berkeley.EDU> Message-ID: <20040804010219.6695.qmail@web52704.mail.yahoo.com> hi all, I am a new ns2 user, I am working on developing a new routing protocol in ad hoc networks, what I want to know if there is any technology or technique in the simulator to get the general direction of the mobile node ( west, east, south, north...etc). I would be gratefull for any HELP. regards Rana Abu Nafisa __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From anup.mayank at gmail.com Tue Aug 3 20:18:48 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Tue Aug 3 20:21:56 2004 Subject: [ns] Broadcast simulation in NS Message-ID: <469192b004080320185de0c4b7@mail.gmail.com> Hi, I am trying to simulate a push based broadcast model in NS. In this model there is a central server which will broadcast a set of data items with some broadcast frequency. There are some mobile nodes which reside in the broadcast region of central server. These nodes exchange data among themselves when the server is not broadcasting any data. I am new to NS. So if any one has done similar simulation or is able to help me, will be great. With regards Anup From klee at nps.edu Tue Aug 3 20:43:38 2004 From: klee at nps.edu (Lee kok thong) Date: Tue Aug 3 20:46:40 2004 Subject: [ns] Wireless node simulation In-Reply-To: <200408021157.NAA01019@trantor.eads-dsn.com> Message-ID: <000f01c479d5$3a956240$210110ac@G0303085> regards Kok Thong MDTS 2003 Hp:97364812 Privileged/Confidential information may be contained in this message. If you are not the intended recipient, you must not copy, distribute or use it for any purpose, nor disclose its contents to any other person. Please notify the sender immediately if you receive this in error. Yann, tks. I will try that out and let the community know if it works. -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of Fleutot, Yann Sent: Monday, August 02, 2004 2:46 AM To: ns-users@ISI.EDU Subject: RE: [ns] Wireless node simulation Ohh! Thanks to Kenneth, I have the information I wanted for my previous mail : DumbAgent ! Thank you. So, I think you can : $ns_ node-config -adhocRouting $opt(adhocRouting) DumbAgent For {set i 0} {$i < 5} {incr i}{ set node_($i) [$ns_ node] $node_($i) random-motion 0 ..... } $ns_ node-config -adhocRouting $opt(adhocRouting) AODV For {set i 5} {$i < 20} {incr i}{ set node_($i) [$ns_ node] $node_($i) random-motion 0 ..... } "$ns_ node-config" is a configuration parameter which configures the nodes created after. > -----Message d'origine----- > De : Lee kok thong [mailto:klee@nps.edu] > Envoy? : lundi 2 ao?t 2004 09:56 > ? : 'Kenneth Nielsen'; ns-users@ISI.EDU > Objet : RE: [ns] Wireless node simulation > > > > Kenneth, tks for the reply. I have some doubts, hope you can give me > your thinking. > > However, set val(adhocRouting) DumbAgent, is a global assignment > for all the 20 nodes. Once I do this, all the 20 nodes will > not route as > well. > > I wonder if I can do this > > For {set i 0} {$i < 5} {incr i}{ > > set node_($i) [$ns_ node] > $node_($i) random-motion 0 > $ns_ node-config -adhocRouting $opt(adhocRouting) DumbAgent > ..... > } > > For {set i 5} {$i < 20} {incr i}{ > > set node_($i) [$ns_ node] > $node_($i) random-motion 0 > $ns_ node-config -adhocRouting $opt(adhocRouting) AODV > ..... > > } > > Does anyone think that this will work ? > > Alternatively, how do I make some nodes (configured w. AODV) drop > packets deliberately instead or do not forward beyond ? > > regards > Francis Lee > > -----Original Message----- > From: Kenneth Nielsen [mailto:kenneth@daimi.au.dk] > Sent: Sunday, August 01, 2004 11:41 PM > To: klee@nps.edu; ns-users@ISI.EDU > Subject: Re: [ns] Wireless node simulation > > Hi > > Indstead of assigning a routing protocol (fx. AODV), assign the > DumbAgent to > the 5 nodes from your example. Like this: > > set val(adhocRouting) DumbAgent > > Regards, > Kenneth > > ----- Original Message ----- > From: "Lee kok thong" > To: > Sent: Friday, July 30, 2004 10:42 PM > Subject: [ns] Wireless node simulation > > > > > > Hi, > > > > I am doing some investigation on wireless ad hoc routing. > > Can anyone give me some pointers if you can turn off some nodes in > > routing while keeping the rest routing. > > E.g. 5 nodes among 20 nodes are not routing. How can I do > that in TCL > > scripting ? Appreciate some pointers please/. > > > > Thanks a lot. > > > > regards > > > > Francis Lee > > > > > > > From klee at nps.edu Tue Aug 3 20:50:18 2004 From: klee at nps.edu (Lee kok thong) Date: Tue Aug 3 20:52:35 2004 Subject: [ns] Question about DSR In-Reply-To: <20040803042946.4D682B712@xprdmailfe19.nwk.excite.com> Message-ID: <001101c479d6$28e14270$210110ac@G0303085> If you fix the source node and the destination node by tagging a cbr traffic flow between them. And the source node flows through a DSR-MANET (with traffic generated inside there, no you don't care abt this traffic). At the end of the simulation, count the packets sent by the source and packets receive by the destination. Then you can estimate the PDR for this traffic flow. regards Francis lee -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of jw2000@excite.com Sent: Monday, August 02, 2004 9:30 PM To: ns-users@ISI.EDU Subject: [ns] Question about DSR Hi all: I am using DSR now. I have a question. How to calculate performance parameters, like packet delivery ratio, end-to-end delay and routing overhead in DSR? >From the trace file, I find that a packet's UID changes on the way from a source to destination. For example, if I use CBR to generate data packet at a source node A, and the path is A-B-C-D. On the way from A to D, the UID of a data packet changes. In AODV, the UID does not change on the way. How to calculate the above three performance parameters in DSR? Thanks a lot. Jack _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From jaso4you at yahoo.com Tue Aug 3 23:18:07 2004 From: jaso4you at yahoo.com (jas Ogwilu) Date: Tue Aug 3 23:20:40 2004 Subject: [ns] Wireless Last Hop Question Message-ID: <20040804061807.69940.qmail@web60004.mail.yahoo.com> I am simulating a network wired nodes and a wireless last hop. I was just wondering if i could simulate the whole network as a wired lan and then use an error model with high losses on the expected wireless hope. I saw some example script that did this and i am wondering if this is correct. or do i still need to use the wired-cum-wireless example in the ns manual even if the node is not mobile. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From naby_djoubar at hotmail.com Wed Aug 4 01:15:46 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Wed Aug 4 01:19:15 2004 Subject: [ns] wich makefile to modify? Message-ID: hello everybody I'm trying to compile and test a new procotol. In the article "NS by exemple" by Jae Chung and Mark Claypool http://nile.wpi.edu/NS/ it says under Add New Application and Agent Download and Compile "After you've done all things in the checklist, modify your "Makefile" as needed ...." which makefile are they talking about ? After a little research on my system I found over 50 of them! Thank you for your help. _________________________________________________________________ Profitez des puissants filtres de courriels ind?sirables articul?s sur la technologie brevet?e MicrosoftMD SmartScreen. http://join.msn.com/?pgmarket=fr-ca&page=features/junkmail Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From yann.fleutot at eads-telecom.com Wed Aug 4 02:00:35 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Wed Aug 4 02:04:11 2004 Subject: [ns] wich makefile to modify? Message-ID: <200408041112.NAA29112@trantor.eads-dsn.com> Thanks for the link. This documents seems interesting, I'll read it later. Try modifying the main Makefile (the one in the root directory of ns-2). > -----Message d'origine----- > De : Naby Djoubar Soumah [mailto:naby_djoubar@hotmail.com] > Envoy? : mercredi 4 ao?t 2004 10:16 > ? : ns-users@ISI.EDU > Objet : [ns] wich makefile to modify? > > > > hello everybody > > I'm trying to compile and test a new procotol. In the article "NS by > exemple" by Jae Chung > and Mark Claypool > > http://nile.wpi.edu/NS/ > > it says under > Add New Application and Agent > Download and Compile > > "After you've done all things in the checklist, modify your > "Makefile" as > needed ...." > > which makefile are they talking about ? After a little > research on my system > I found over 50 of them! > > Thank you for your help. > > _________________________________________________________________ > Profitez des puissants filtres de courriels ind?sirables > articul?s sur la > technologie brevet?e MicrosoftMD SmartScreen. > http://join.msn.com/?pgmarket=fr-ca&page=features/junkmail > Commencez d?s > maintenant ? profiter de tous les avantages de MSN Premium et > obtenez les > deux premiers mois GRATUITS*. > From petrinetze at netscape.net Wed Aug 4 03:10:46 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Wed Aug 4 03:14:05 2004 Subject: [ns] Bus error or segmentation fault In-Reply-To: References: <41062279.1030205@netscape.net> Message-ID: <4110B626.8090202@netscape.net> Hello Soo, I have changed the simulation time, but it is no useful. Could you help me solve the problem? I attach the code here. It is easy to understand. The topology is periphery with one central node. Nodes at the periphery contact with the nodes at the other side. No mobility. Thank you very much. Haidong soohyunc@msn.com wrote: >Though I may need to look into your whole code more in detail, I think your >code seems no problem. But I guess the reason why you get the segmentation >fault is an ns-2 limitation itself. One possible solution to resolve this >would be reduce the simulation run time. > >Soo-Hyun > >----- Original Message ----- >From: "Haidong Wan" >To: "ns-users" >Sent: Tuesday, July 27, 2004 10:38 AM >Subject: [ns] Bus error or segmentation fault > > > > >>Hello, >>when I use the following function, it shows always "Bus error" or >>"segmentation failed". >> >>$node1 set X_ [expr 500.0+floor($r*cos(2*3.14159*$i/$val(nn)-1)))] >>where $r is 250.0, $i is for the loop, $val(nn) is the number of nodes. >> >>If I set $val(nn) = 9, there is no problem. If $val(nn) = 13, it has >>this problem. >> >>Thank you in advance. >> >> >> >> From petrinetze at netscape.net Wed Aug 4 03:08:46 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Wed Aug 4 03:14:37 2004 Subject: [ns] Bus error or segmentation fault In-Reply-To: References: <41062279.1030205@netscape.net> Message-ID: <4110B5AE.9080008@netscape.net> Hello Soo, I have changed the simulation time, but it is no useful. Could you help me solve the problem? I attach the code here. It is easy to understand. The topology is periphery with one central node. Nodes at the periphery contact with the nodes at the other side. No mobility. Thank you very much. Haidong soohyunc@msn.com wrote: >Though I may need to look into your whole code more in detail, I think your >code seems no problem. But I guess the reason why you get the segmentation >fault is an ns-2 limitation itself. One possible solution to resolve this >would be reduce the simulation run time. > >Soo-Hyun > >----- Original Message ----- >From: "Haidong Wan" >To: "ns-users" >Sent: Tuesday, July 27, 2004 10:38 AM >Subject: [ns] Bus error or segmentation fault > > > > >>Hello, >>when I use the following function, it shows always "Bus error" or >>"segmentation failed". >> >>$node1 set X_ [expr 500.0+floor($r*cos(2*3.14159*$i/$val(nn)-1)))] >>where $r is 250.0, $i is for the loop, $val(nn) is the number of nodes. >> >>If I set $val(nn) = 9, there is no problem. If $val(nn) = 13, it has >>this problem. >> >>Thank you in advance. >> >> >> >> From petrinetze at netscape.net Wed Aug 4 03:09:09 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Wed Aug 4 03:15:38 2004 Subject: [ns] Bus error or segmentation fault In-Reply-To: References: <41062279.1030205@netscape.net> Message-ID: <4110B5C5.8020605@netscape.net> Hello Soo, I have changed the simulation time, but it is no useful. Could you help me solve the problem? I attach the code here. It is easy to understand. The topology is periphery with one central node. Nodes at the periphery contact with the nodes at the other side. No mobility. Thank you very much. Haidong soohyunc@msn.com wrote: >Though I may need to look into your whole code more in detail, I think your >code seems no problem. But I guess the reason why you get the segmentation >fault is an ns-2 limitation itself. One possible solution to resolve this >would be reduce the simulation run time. > >Soo-Hyun > >----- Original Message ----- >From: "Haidong Wan" >To: "ns-users" >Sent: Tuesday, July 27, 2004 10:38 AM >Subject: [ns] Bus error or segmentation fault > > > > >>Hello, >>when I use the following function, it shows always "Bus error" or >>"segmentation failed". >> >>$node1 set X_ [expr 500.0+floor($r*cos(2*3.14159*$i/$val(nn)-1)))] >>where $r is 250.0, $i is for the loop, $val(nn) is the number of nodes. >> >>If I set $val(nn) = 9, there is no problem. If $val(nn) = 13, it has >>this problem. >> >>Thank you in advance. >> >> >> >> From petrinetze at netscape.net Wed Aug 4 03:13:20 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Wed Aug 4 03:15:47 2004 Subject: [ns] Bus error or segmentation fault In-Reply-To: References: <41062279.1030205@netscape.net> Message-ID: <4110B6C0.9070700@netscape.net> Hello Soo, I have changed the simulation time, but it is no useful. Could you help me solve the problem? I attach the code here. It is easy to understand. The topology is periphery with one central node. Nodes at the periphery contact with the nodes at the other side. No mobility. Your can change the node number. Thank you very much. Haidong soohyunc@msn.com wrote: >Though I may need to look into your whole code more in detail, I think your >code seems no problem. But I guess the reason why you get the segmentation >fault is an ns-2 limitation itself. One possible solution to resolve this >would be reduce the simulation run time. > >Soo-Hyun > >----- Original Message ----- >From: "Haidong Wan" >To: "ns-users" >Sent: Tuesday, July 27, 2004 10:38 AM >Subject: [ns] Bus error or segmentation fault > > > > >>Hello, >>when I use the following function, it shows always "Bus error" or >>"segmentation failed". >> >>$node1 set X_ [expr 500.0+floor($r*cos(2*3.14159*$i/$val(nn)-1)))] >>where $r is 250.0, $i is for the loop, $val(nn) is the number of nodes. >> >>If I set $val(nn) = 9, there is no problem. If $val(nn) = 13, it has >>this problem. >> >>Thank you in advance. >> >> >> >> From yann.fleutot at eads-telecom.com Wed Aug 4 05:34:48 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Wed Aug 4 05:39:00 2004 Subject: [ns] ad-hockey : connections from the upper-left corner Message-ID: <200408041446.QAA04966@trantor.eads-dsn.com> Hello, I understood that ad-hockey displays the $node_(0) at the upper-left corner. Then, my scripts files have their first node named $node_(1). But now that the nodes are displayed correctly, I notice that the connections aren't. They are all issued from (to ?) the upper-left corner. Do someone know how to fix that ? Thanks, Yann PS : I already fixed some problems but I really wonder if ad-hockey is usable and useful. Your opinion ? ---------------------------------------------------------------------------- -- Yann Fleutot EADS Defence and Security Systems SA Defence and Communications Systems Information Systems Engineering Rue Jean-Pierre Timbaud 78063 SAINT QUENTIN YVELINES CEDEX - France Phone: +33 (0)1 34 60 87 70 E-mail: yann.fleutot@eads-telecom.com http://www.eads.net From zhahui at gmail.com Wed Aug 4 06:39:26 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Wed Aug 4 06:41:38 2004 Subject: [ns] wired+wireless simulation : How to make a wired+wireless test topology Message-ID: [ns] wired+wireless topology : NS2 simulation about wired+wireless networks Hi, I want to simulate the similar topology in ns2 as following, (a)-------(b)------(c)++++++++(d) b and c are routers. a is sender and d is receiver ----is wired link and +++ is wireless link. I just want to research on the performance of tcp over the lossy wireless links and don't take the mobility into consideration. So should I just: 1. assign d as a wireless node (CMU-wireless) and make it fixed or 2. use a duplex-link in wired enviornment and add some loss or error module in the link? Which one is better? In my opinion, 2 is easier but I am not sure if it is a correct method. Thanks in advance. I am looking forward to hearing from you. -- Best regards, zh From zaidimuhamad at yahoo.com Wed Aug 4 06:44:43 2004 From: zaidimuhamad at yahoo.com (zaidi) Date: Wed Aug 4 06:47:37 2004 Subject: [ns] tcl8.3.2 make failed! when install ns-allinone-2.1b7a Message-ID: <20040804134443.68123.qmail@web50608.mail.yahoo.com> Hi... I have succecfully installed ns-allinone-2.27 in my machine (win XP using cygwin) but when I'm trying to install ns-allinone-2.1b7a (for Bluehoc), it come out with this error... ../generic/tclClock.c: In function `FormatClock': ../generic/tclClock.c:309: warning: assignment makes integer from pointer withou t a cast ../generic/tclClock.c:310: error: invalid lvalue in assignment ../generic/tclClock.c:346: error: invalid lvalue in assignment make: *** [tclClock.o] Error 1 tcl8.3.2 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com I have replace tcl8.3.2 folder with a new one but the problem is still the same. Can anybody help me please!. Thank you. Regards, Zaidi Research Student Cardiff University, UK __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From redhero at enorth.com.cn Wed Aug 4 06:42:17 2004 From: redhero at enorth.com.cn (redhero@enorth.com.cn) Date: Wed Aug 4 06:49:37 2004 Subject: [ns] will the arp packet affect the mac throughput? Message-ID: <1091626937.4110e7b9151c7@mail.enorth.com.cn> Hello,in an 802.11 network,when number of nodes increasing,more and more ARP packets will be sent.And ARP packets will conform to the rules of sending packets.So,more time will be spent on ARP packets.And the MAC layer throughputs decreases.Is this correct? And any solutions? Thank you. From ihanen at yahoo.com Wed Aug 4 07:34:25 2004 From: ihanen at yahoo.com (Hanen Idoudi) Date: Wed Aug 4 07:36:42 2004 Subject: [ns] Idle mode. Message-ID: <20040804143425.5840.qmail@web11502.mail.yahoo.com> Hi, Can anyone tell me how to tell a mobile node to enter idle mode ? i.e. to stop receiving and transmitting data for un period of time. and, how can we turn off some nodes during simulating period ? Thanks. Best regards. __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From jw2000 at excite.com Wed Aug 4 09:08:06 2004 From: jw2000 at excite.com (jw2000@excite.com) Date: Wed Aug 4 09:11:05 2004 Subject: [ns] Strange problem of NS2 Message-ID: <20040804160806.227DFB71E@xprdmailfe19.nwk.excite.com> Hi: I am using NS2 to simulate a routing protocol for ad hoc network. The simulation time is 900 seconds. But the simulation always stops at about 899.8 seconds. It can print out ""NS EXITING...". But it can not print out the packets dropped at the end of simulation, as below: D 900.000000000 _97_ IFQ END 23835 cbr 532 [13a 43 61 800] ------- [186:0 176:0 47 67] [2598] 3 0 D 900.000000000 _97_ IFQ END 23947 cbr 532 [13a 43 61 800] ------- [186:0 176:0 47 67] [2621] 3 0 What is the problem? I attach my tcl script. Thanks a lot. Jack ----------------------------------------------------------------- # ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhy set val(mac) Mac/802_11 set val(ifq) Queue/DropTail/PriQueue ;#CMUPriQueue set val(ll) LL set val(ant) Antenna/OmniAntenna set val(x) 2000 ;# X dimension of the topography set val(y) 2000 ;# Y dimension of the topography set val(ifqlen) 1000 ;# max packet in ifq set val(seed) 0.0 set val(adhocRouting) MYPROT set val(nn) 200 ;# how many nodes are simulated set val(cp) "cbr" set val(sc) "scen" set val(stop) 900 ;# simulation time # ===================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # #remove-all-packet-headers #add-packet-header ARP IP LMR Mac LL Smac # create simulator instance set ns_ [new Simulator] # setup topography object set topo [new Topography] # create trace object for ns and nam #$ns_ use-taggedtrace set tracefd [open test1-out.tr w] #set namtrace [open test1-out.nam w] $ns_ trace-all $tracefd #$ns_ namtrace-all-wireless $namtrace $val(x) $val(y) # define topology $topo load_flatgrid $val(x) $val(y) set chan_1 [new $val(chan)] # # Create God # set god_ [create-god $val(nn)] # # define how node should be created # #global node setting $ns_ node-config -adhocRouting $val(adhocRouting) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $chan_1 \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF #puts "1" # # Create the specified number of nodes [$val(nn)] and "attach" them # to the channel. for {set i 0} {$i < $val(nn) } {incr i} { #puts $i set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # # Define node movement model # puts "Loading connection pattern..." source $val(cp) # # Define traffic model # puts "Loading scenario file..." source $val(sc) # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { # 20 defines the node size in nam, must adjust it according to #your scenario # The function must be called after mobility model is defined $ns_ initial_node_pos $node_($i) 20 } # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $val(stop).0 "$node_($i) reset"; } $ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt" puts $tracefd "M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(adhocRouting)" puts $tracefd "M 0.0 sc $val(sc) cp $val(cp) seed $val(seed)" puts $tracefd "M 0.0 prop $val(prop) ant $val(ant)" puts "Starting Simulation..." $ns_ run _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From kimaya at cs.ucsb.edu Wed Aug 4 09:12:30 2004 From: kimaya at cs.ucsb.edu (Kimaya M. Sanzgiri) Date: Wed Aug 4 09:14:37 2004 Subject: [ns] mobilenode direction .....PLS HELP In-Reply-To: <20040804010219.6695.qmail@web52704.mail.yahoo.com> Message-ID: You can get the current location and the destination of the mobile node, and use those to figure out its direction of motion. Look through common/mobilenode.cc to see what methods are available to determine the current/destination location. Hope that helps. Kimaya On Tue, 3 Aug 2004, rana abu nafisa wrote: > > hi all, > I am a new ns2 user, I am working on developing a > new routing protocol in ad hoc networks, what I want > to know if there is any technology or technique in the > simulator to get the general direction of the mobile > node ( west, east, south, north...etc). > I would be gratefull for any HELP. > > > regards > Rana Abu Nafisa > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > From ns2zh at yahoo.com.cn Wed Aug 4 09:38:10 2004 From: ns2zh at yahoo.com.cn (=?gb2312?q?Ns2=20ZH?=) Date: Wed Aug 4 09:40:55 2004 Subject: [ns] how to simulate congestion packet loss of the wired link. Message-ID: <20040804163810.9650.qmail@web15705.mail.cnb.yahoo.com> (a)-------(b) a,b are fixed nodes and "------" is duplex-link (wired) +++++++++++++++++++++++++++++++++++++++++ I wanna simulate congestion packet loss of the wired link. What can I do? 1. use a tcp stream of 2M and transfer it over a 1M wired link? or 2. use a tcp stream of 500k and transfer it over a 1M wired link but make the wired link's queue very small (can this method work?) or 3. use a tcp stream of 500k and transfer it over a 1M wired link but add a error module on the wired link. Which one is correct? Where can I find some simple tcl script targeting this scenario? Thanks! Regards, zh Best regards, ZHA Best regards, ZHA --------------------------------- Do You Yahoo!? 胆溺苧佛哘嗤勝嗤"匯朴"朴演胆夕、凩夕才吹夕 100孥喨箙参珊屍達壬纏窮喨徭廁制否From soohyunc at msn.com Wed Aug 4 10:16:20 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Wed Aug 4 10:12:19 2004 Subject: [ns] how to simulate congestion packet loss of the wired link. References: <20040804163810.9650.qmail@web15705.mail.cnb.yahoo.com> Message-ID: In order to simulate a conventional TCP congestion control, you need to have 3 nodes at least. As an example, you can have the following topology. (a)------------(b)=========(c) In the above topology, you need to have different bandwidth per link such that you can incur traffic congestion. For example, you can set 10Mbps with 2ms delay over the link between node (a) and (b), then you can set 2Mbps with 10ms delay over the link between (b) and (c). In this case, the node (b) is a so-called bottleneck node. You can also set a queue limit at the bottleneck node using Drop Tail queue. This is a basic idea how you can generate a situation to have a sort of TCP congestion control. Soo-Hyun ----- Original Message ----- From: "Ns2 ZH" To: Sent: Wednesday, August 04, 2004 5:38 PM Subject: [ns] how to simulate congestion packet loss of the wired link. > > (a)-------(b) > > a,b are fixed nodes and "------" is duplex-link (wired) > +++++++++++++++++++++++++++++++++++++++++ > I wanna simulate congestion packet loss of the wired link. > What can I do? > 1. use a tcp stream of 2M and transfer it over a 1M wired link? > or > 2. use a tcp stream of 500k and transfer it over a 1M wired link > but make the wired link's queue very small (can this method work?) > or > 3. use a tcp stream of 500k and transfer it over a 1M wired link > but add a error module on the wired link. > Which one is correct? Where can I find some simple tcl script targeting this scenario? > > Thanks! > > Regards, > zh > > > Best regards, > ZHA > > > > > Best regards, > ZHA > > > --------------------------------- > Do You Yahoo!? > ??????????????????"????"???????????????????? > 100?????????????????????????????????? > From yann.fleutot at eads-telecom.com Wed Aug 4 10:14:54 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Wed Aug 4 10:18:40 2004 Subject: [ns] Strange problem of NS2 Message-ID: <200408041926.VAA20638@trantor.eads-dsn.com> Oh, I just answered in the MANET mailing-list. For the opinion of the other ns users, here is my answer : > I think that your simulation really terminates ? 900.0 but that there is no event between 899.8 and 900.0. > To be sure, try to simulate for more than 900.0 seconds and see if you have some other packets before 900.0. Yann. > -----Message d'origine----- > De : jw2000@excite.com [mailto:jw2000@excite.com] > Envoy? : mercredi 4 ao?t 2004 18:08 > ? : ns-users@ISI.EDU > Objet : [ns] Strange problem of NS2 > > > > > Hi: > > I am using NS2 to simulate a routing protocol for ad hoc network. > The simulation time is 900 seconds. But the simulation always > stops at about 899.8 seconds. It can print out ""NS EXITING...". > But it can not print out the packets dropped at the end of > simulation, as below: > D 900.000000000 _97_ IFQ END 23835 cbr 532 [13a 43 61 800] > ------- [186:0 176:0 47 67] [2598] 3 0 > D 900.000000000 _97_ IFQ END 23947 cbr 532 [13a 43 61 800] > ------- [186:0 176:0 47 67] [2621] 3 0 > > What is the problem? > I attach my tcl script. > > Thanks a lot. > > Jack > > ----------------------------------------------------------------- > # > ====================================================================== > # Define options > # > ====================================================================== > > set val(chan) Channel/WirelessChannel > set val(prop) Propagation/TwoRayGround > set val(netif) Phy/WirelessPhy > set val(mac) Mac/802_11 > set val(ifq) Queue/DropTail/PriQueue ;#CMUPriQueue > set val(ll) LL > set val(ant) Antenna/OmniAntenna > set val(x) 2000 ;# X dimension of the topography > set val(y) 2000 ;# Y dimension of the topography > set val(ifqlen) 1000 ;# max packet in ifq > set val(seed) 0.0 > set val(adhocRouting) MYPROT > set val(nn) 200 ;# how many nodes are simulated > set val(cp) "cbr" > set val(sc) "scen" > set val(stop) 900 ;# simulation time > > # > ===================================================================== > # Main Program > # > ====================================================================== > > # > # Initialize Global Variables > # > > #remove-all-packet-headers > #add-packet-header ARP IP LMR Mac LL Smac > > # create simulator instance > > set ns_ [new Simulator] > > # setup topography object > > set topo [new Topography] > > # create trace object for ns and nam > > #$ns_ use-taggedtrace > > set tracefd [open test1-out.tr w] > #set namtrace [open test1-out.nam w] > $ns_ trace-all $tracefd > #$ns_ namtrace-all-wireless $namtrace $val(x) $val(y) > > # define topology > $topo load_flatgrid $val(x) $val(y) > > set chan_1 [new $val(chan)] > # > # Create God > # > set god_ [create-god $val(nn)] > > # > # define how node should be created > # > > #global node setting > > $ns_ node-config -adhocRouting $val(adhocRouting) \ > -llType $val(ll) \ > -macType $val(mac) \ > -ifqType $val(ifq) \ > -ifqLen $val(ifqlen) \ > -antType $val(ant) \ > -propType $val(prop) \ > -phyType $val(netif) \ > -channel $chan_1 \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace OFF > > #puts "1" > > # > # Create the specified number of nodes [$val(nn)] and "attach" them > # to the channel. > > for {set i 0} {$i < $val(nn) } {incr i} { > #puts $i > set node_($i) [$ns_ node] > $node_($i) random-motion 0 ;# disable random motion > } > > # > # Define node movement model > # > puts "Loading connection pattern..." > source $val(cp) > > # > # Define traffic model > # > puts "Loading scenario file..." > source $val(sc) > > # Define node initial position in nam > > for {set i 0} {$i < $val(nn)} {incr i} { > > # 20 defines the node size in nam, must adjust it > according to #your scenario > # The function must be called after mobility model is defined > > $ns_ initial_node_pos $node_($i) 20 > } > > # > # Tell nodes when the simulation ends > # > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at $val(stop).0 "$node_($i) reset"; > } > > > $ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt" > > puts $tracefd "M 0.0 nn $val(nn) x $val(x) y $val(y) rp > $val(adhocRouting)" > puts $tracefd "M 0.0 sc $val(sc) cp $val(cp) seed $val(seed)" > puts $tracefd "M 0.0 prop $val(prop) ant $val(ant)" > > puts "Starting Simulation..." > $ns_ run > > > > > > > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > From ns2zh at yahoo.com.cn Wed Aug 4 12:24:13 2004 From: ns2zh at yahoo.com.cn (=?gb2312?q?Ns2=20ZH?=) Date: Wed Aug 4 12:27:56 2004 Subject: [ns] how to simulate congestion packet loss of the wired link. In-Reply-To: Message-ID: <20040804192413.34014.qmail@web15705.mail.cnb.yahoo.com> Hi, Soo-Hyun, Thank you very much for you help. And I am a little confused:(refer to your topology with 3 nodes) 1. can I set a sending rate of a tcp source in ns2? For example, I set the tcp source sending rate to 500k, then the congestion will never happen if ab=10M and bc=2M? if I can't set this sending rate, then a tcp source will definitely encounter a packet loss? And this loss is so called "congestion"? 2. In the above situation 1, if the queue limit is very small, say =1 or =2, then will the congestion probably happen?suppose there is only one tcp source. regards, zh Soo-Hyun Choi wrote: In order to simulate a conventional TCP congestion control, you need to have 3 nodes at least. As an example, you can have the following topology. (a)------------(b)=========(c) In the above topology, you need to have different bandwidth per link such that you can incur traffic congestion. For example, you can set 10Mbps with 2ms delay over the link between node (a) and (b), then you can set 2Mbps with 10ms delay over the link between (b) and (c). In this case, the node (b) is a so-called bottleneck node. You can also set a queue limit at the bottleneck node using Drop Tail queue. This is a basic idea how you can generate a situation to have a sort of TCP congestion control. Soo-Hyun ----- Original Message ----- From: "Ns2 ZH" To: Sent: Wednesday, August 04, 2004 5:38 PM Subject: [ns] how to simulate congestion packet loss of the wired link. > > (a)-------(b) > > a,b are fixed nodes and "------" is duplex-link (wired) > +++++++++++++++++++++++++++++++++++++++++ > I wanna simulate congestion packet loss of the wired link. > What can I do? > 1. use a tcp stream of 2M and transfer it over a 1M wired link? > or > 2. use a tcp stream of 500k and transfer it over a 1M wired link > but make the wired link's queue very small (can this method work?) > or > 3. use a tcp stream of 500k and transfer it over a 1M wired link > but add a error module on the wired link. > Which one is correct? Where can I find some simple tcl script targeting this scenario? > > Thanks! > > Regards, > zh Best regards, ZHA --------------------------------- Do You Yahoo!? 胆溺苧佛哘嗤勝嗤"匯朴"朴演胆夕、凩夕才吹夕 100孥喨箙参珊屍達壬纏窮喨徭廁制否From jw2000 at excite.com Wed Aug 4 12:52:11 2004 From: jw2000 at excite.com (jw2000@excite.com) Date: Wed Aug 4 12:54:44 2004 Subject: [ns] Strange problem of NS2 Message-ID: <20040804195211.BCCE13DD2@xprdmailfe11.nwk.excite.com> Hi Yann: Thanks a lot. There are some data packets in the priority queue that should be dropped at the end of the simulation, as below: D 900.000000000 _97_ IFQ END 23835 cbr 532 [13a 43 61 800] ------- [186:0 176:0 47 67] [2598] 3 0 D 900.000000000 _97_ IFQ END 23947 cbr 532 [13a 43 61 800] ------- [186:0 176:0 47 67] [2621] 3 0 Formerly, these dropped packets were printed into trace file. I do not why it can not print these information now. Jack >For the opinion of the other ns users, here is my answer : > I think that your simulation really terminates 900.0 but that there >is no event between 899.8 and 900.0. > To be sure, try to simulate for more than 900.0 seconds and see if you >have some other packets before 900.0. Yann. _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From jmikola at cs.stevens.edu Wed Aug 4 13:12:10 2004 From: jmikola at cs.stevens.edu (Jeremy Mikola) Date: Wed Aug 4 13:13:43 2004 Subject: [ns] wich makefile to modify? In-Reply-To: References: Message-ID: <4111431A.9010100@cs.stevens.edu> most likely, you'll want to work with: ns-2.27/Makefile.in the other scattered Makefiles are for various components to ns, and all get called from the main Makefile during compilation. also, all editing should be done to "Makefile.in" files, not the "Makefile" files. after editing the Makefile.in's, run the configure script in the ns-2.27 directory to rebuild the "Makefile" files. after that, you may proceed with standard compilation: "make all" - jeremy mikola Naby Djoubar Soumah wrote: > > hello everybody > > I'm trying to compile and test a new procotol. In the article "NS by > exemple" by Jae Chung > and Mark Claypool > > http://nile.wpi.edu/NS/ > > it says under > Add New Application and Agent > Download and Compile > > "After you've done all things in the checklist, modify your "Makefile" > as needed ...." > > which makefile are they talking about ? After a little research on my > system I found over 50 of them! > > Thank you for your help. > > _________________________________________________________________ > Profitez des puissants filtres de courriels ind?sirables articul?s sur > la technologie brevet?e MicrosoftMD SmartScreen. > http://join.msn.com/?pgmarket=fr-ca&page=features/junkmail Commencez d?s > maintenant ? profiter de tous les avantages de MSN Premium et obtenez > les deux premiers mois GRATUITS*. From hanna.amna at laposte.net Wed Aug 4 14:49:20 2004 From: hanna.amna at laposte.net (hanna.amna) Date: Wed Aug 4 14:51:57 2004 Subject: [ns] Any help on exponential traffic Message-ID: Hi all > Can someone tell me how can I change a value of RTS, CTS packets, contention window size, CW slot size on the implementation of ieee802.11 protocol. > Can you tell me also how to implement an exponential packet arrival process on wireless nodes > best regards Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From jpneo2004 at yahoo.com Wed Aug 4 15:16:33 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Wed Aug 4 15:18:47 2004 Subject: [ns] undefined reference to vtable again Message-ID: <20040804221633.78245.qmail@web21526.mail.yahoo.com> Hi colegues, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" what's wrong? how to correct it? thank you a lot for sugestions J.P. --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! From naby_djoubar at hotmail.com Wed Aug 4 18:27:57 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Wed Aug 4 18:30:49 2004 Subject: [ns] "makefile.in newer than makefile" error............ Message-ID: hi I'm trying to compile ns after modifying the "makefile.in" file and I get this error: "makefile.in newer than makefile you need to re-run configure" I've already done so several times by issuing the following command "./configure" and still no improvement. What am I doing wrong? thanks in advance. _________________________________________________________________ Des m?canismes de contr?le parental puissants permettent ? votre enfant de d?couvrir tout ce qu?Internet a ? offrir. http://join.msn.com/?pgmarket=fr-ca&page=features/parental&ST=1&xAPID=1983&DI=2043 Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From ppl at nbnet.nb.ca Wed Aug 4 19:14:43 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Wed Aug 4 19:17:42 2004 Subject: [ns] "makefile.in newer than makefile" error............ In-Reply-To: References: Message-ID: <20040805021443.GA81909@bloodaxis> Hi Naby, I guess you could try running autoconf/automake. In the worst case, you can directly edit the generated Makefile. Good luck, ppl On Thu, Aug 05, 2004 at 01:27:57AM +0000, Naby Djoubar Soumah wrote: > > hi > > I'm trying to compile ns after modifying the "makefile.in" file and I get > this error: > > "makefile.in newer than makefile > you need to re-run configure" > > > I've already done so several times by issuing the following command > "./configure" and still no improvement. What am I doing wrong? > > thanks in advance. From gsinclair at gmail.com Wed Aug 4 19:27:54 2004 From: gsinclair at gmail.com (Gavin Sinclair) Date: Wed Aug 4 19:30:38 2004 Subject: [ns] Suggestion for the NS website Message-ID: Hi, After weeks of learning about NS from the two main tutorials (both linked from the NS website), I accidentally came across "NS Simulation for Beginners", by Eitan Altman and Tania Jimenez. It's a brilliant resource with great examples and in-depth discussion. Learning NS would have been much easier and more enjoyable had I known about it earlier. And it's not as though I didn't look for resources. I therefore recommend that it be linked from the NS website. It's available from the following URL: http://www-sop.inria.fr/mistral/personnel/Eitan.Altman/ns.htm Regards, Gavin From zhahui at gmail.com Wed Aug 4 20:25:53 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Wed Aug 4 20:28:54 2004 Subject: [ns] How to make the nam topology look better Message-ID: I made a dumbbell topology like that: 5 sender nodes s(0)~s(4) and 5 receiver nodes r(0)~r(4) are connected through a bottleeneck link er(0)<->er(1). I use the following setting to set the position of all the nodes. But it looks awful in the nam. The circles representing nodes are very big, and the lines representing links are very short. But if I let nam automatically arrange the layout, it always makes strange layout. Do you have any suggestions? And another question: what's the meaning of the 3 parameters in nam window: Autolayout: Ca, Cr and Iterations? Thanks for your help. I attach my codes below. ******************************************************* $ns duplex-link-op $s(0) $er(0) orient down $ns duplex-link-op $s(1) $er(0) orient right-down $ns duplex-link-op $s(2) $er(0) orient right $ns duplex-link-op $s(3) $er(0) orient right-up $ns duplex-link-op $s(4) $er(0) orient up $ns duplex-link-op $er(0) $er(1) orient right $ns duplex-link-op $r(0) $er(1) orient down $ns duplex-link-op $r(1) $er(1) orient left-down $ns duplex-link-op $r(2) $er(1) orient left $ns duplex-link-op $r(3) $er(1) orient left-up $ns duplex-link-op $r(4) $er(1) orient up -- Best regards, Hui From skypiri at mail.hau.ac.kr Wed Aug 4 23:20:43 2004 From: skypiri at mail.hau.ac.kr (skypiri) Date: Wed Aug 4 23:23:38 2004 Subject: [ns] [Q] Where Can I find a source file of IEEE 802.15.3 ? Message-ID: I want to simulate for WPAN. Where can I find the ns-2 source file of IEEE 802.15.3? From Christian.Schwarzer at ericsson.com Thu Aug 5 01:26:44 2004 From: Christian.Schwarzer at ericsson.com (Christian Schwarzer (AC/EDD)) Date: Thu Aug 5 01:29:40 2004 Subject: [ns] How to implement: maximal X requests/sec limitation Message-ID: Hi all, I've written my own application on top of an agent and this application is supposed to have the limitation that it cannot handle more than 50 incoming packets (requests) per second. How can I model this in ns2? I would appreciate any ideas and suggestions. Thank you in advance, Christian From isc10487 at nus.edu.sg Thu Aug 5 01:34:07 2004 From: isc10487 at nus.edu.sg (Shen Ren) Date: Thu Aug 5 01:36:42 2004 Subject: [ns] What is the bug here? SORTING LIST...DONE? Message-ID: <439C071A7C37F14A8DC2256D8D7D9F752A9057@MBOX23.stu.nus.edu.sg> Dear Folks, I met this strange output during my simulation. Is it normal or sth else? It is like a warning or error msg, but dont know why it happened? Could anyone know it tell me pls? Really thanks and hv a nice day! channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Regards, Byron From ihsang at anadolu.edu.tr Thu Aug 5 02:27:11 2004 From: ihsang at anadolu.edu.tr (=?iso-8859-9?B?3WhzYW4gR/xuZf4=?=) Date: Thu Aug 5 02:29:41 2004 Subject: [ns] Add New agent proplem !!!!!!!!!!!!!!!! Message-ID: <008f01c47ace$630f8670$19640a0a@mmm6565> hello everybody i read the ns-tutorial document in the ns directory.i followed the chapter VII. A new protocol for ns and i have added new agent it is similar to reno. i tried to use my agent in tcl scripts set tcp(2) [new Agent/TCP/ihsan] (this is my agent ihsan) . . $ftp(2) attach-agent $tcp(2) (then i attached ftp application) $ns at 0.1 "$ftp(2) start" i started ftp application ftp started right but $ns at 2.0 "$ftp(2) stop" ftp did not stop it it is still running after time 2.0 !!!!!!! anyone help me Thank you for your help. From soohyunc at msn.com Thu Aug 5 03:24:45 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Thu Aug 5 03:19:43 2004 Subject: [ns] how to simulate congestion packet loss of the wired link. References: <20040804192413.34014.qmail@web15705.mail.cnb.yahoo.com> Message-ID: 1. You can set a specific sending rate for an applicatoin which is attached a TCP Agent. 2. If a queue size is way too small than the sending rate, a bunch of TCP back-off (retransmission timeout) will occur all around your simulation (if you're using TCP Tahoe). Soo-Hyun ----- Original Message ----- From: "Ns2 ZH" To: "Soo-Hyun Choi" ; Sent: Wednesday, August 04, 2004 8:24 PM Subject: Re: [ns] how to simulate congestion packet loss of the wired link. > Hi, Soo-Hyun, > > Thank you very much for you help. And I am a little confused:(refer to your topology with 3 nodes) > > 1. can I set a sending rate of a tcp source in ns2? For example, I set the tcp source sending rate to 500k, then the congestion will never happen if ab=10M and bc=2M? if I can't set this sending rate, then a tcp source will definitely encounter a packet loss? And this loss is so called "congestion"? > > 2. In the above situation 1, if the queue limit is very small, say =1 or =2, then will the congestion probably happen?suppose there is only one tcp source. > > regards, > zh > > > > > Soo-Hyun Choi wrote: > In order to simulate a conventional TCP congestion control, you need to have > 3 nodes at least. As an example, you can have the following topology. > > (a)------------(b)=========(c) > > In the above topology, you need to have different bandwidth per link such > that you can incur traffic congestion. For example, you can set 10Mbps with > 2ms delay over the link between node (a) and (b), then you can set 2Mbps > with 10ms delay over the link between (b) and (c). In this case, the node > (b) is a so-called bottleneck node. You can also set a queue limit at the > bottleneck node using Drop Tail queue. > > This is a basic idea how you can generate a situation to have a sort of TCP > congestion control. > > Soo-Hyun > > ----- Original Message ----- > From: "Ns2 ZH" > To: > Sent: Wednesday, August 04, 2004 5:38 PM > Subject: [ns] how to simulate congestion packet loss of the wired link. > > > > > > (a)-------(b) > > > > a,b are fixed nodes and "------" is duplex-link (wired) > > +++++++++++++++++++++++++++++++++++++++++ > > I wanna simulate congestion packet loss of the wired link. > > What can I do? > > 1. use a tcp stream of 2M and transfer it over a 1M wired link? > > or > > 2. use a tcp stream of 500k and transfer it over a 1M wired link > > but make the wired link's queue very small (can this method work?) > > or > > 3. use a tcp stream of 500k and transfer it over a 1M wired link > > but add a error module on the wired link. > > Which one is correct? Where can I find some simple tcl script targeting > this scenario? > > > > Thanks! > > > > Regards, > > zh > > > > Best regards, > ZHA > > > --------------------------------- > Do You Yahoo!? > ??????????????????"????"???????????????????? > 100?????????????????????????????????? From pbm2 at ra.msstate.edu Thu Aug 5 13:22:22 2004 From: pbm2 at ra.msstate.edu (Preston McAllister) Date: Thu Aug 5 13:29:04 2004 Subject: [ns] mplementing Distance Vector Routing in C++ using Link State as template? Message-ID: <1091737342.411296feaded2@webmail.msstate.edu> For purposes of future modifications to NS-2, I'm trying to implement the Distance Vector routing protocol into C++ (as opposed to TCL, which it's already in). The Link State routing protocol is already implemented in C++ and I've been studying it, but I'm not sure how to adapt it to fit Distance Vector routing. There are several derived classes and templates which I'm not sure would be needed for Distance Vector. Can anyone help, or is there a C++ implementation of Distance Vector in NS-2 (or anything else) that someone can point me to? From jpneo2004 at yahoo.com Thu Aug 5 14:00:17 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Thu Aug 5 14:03:13 2004 Subject: [ns] Undefined reference to vtable again Message-ID: <20040805210017.45126.qmail@web21522.mail.yahoo.com> Hi everybody, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" what's wrong? how to correct it? thank you a lot for your sugestions J.P. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From qwang at ececs.uc.edu Thu Aug 5 15:06:26 2004 From: qwang at ececs.uc.edu (Qihe Wang) Date: Thu Aug 5 15:10:00 2004 Subject: [ns] Undefined reference to vtable again In-Reply-To: <20040805210017.45126.qmail@web21522.mail.yahoo.com> Message-ID: That is something related to virtual functions. I would check the class definition for possible conflict for overloading function definitions. On Thu, 5 Aug 2004, Joo Gonalves wrote: > > Hi everybody, > > Im having the same problem than Frank Day had. > > When i make my new agent code and call the constructor method, it > reports "undefined reference to `vtable for myAgent'" > > what's wrong? how to correct it? > > thank you a lot for your sugestions > > > J.P. > > > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > From qwang at ececs.uc.edu Thu Aug 5 21:03:18 2004 From: qwang at ececs.uc.edu (Qihe Wang) Date: Thu Aug 5 21:06:01 2004 Subject: [ns] A Bluetooth network simulator for ns-2.27 Message-ID: Hello, After this project went public for a little over a year, we have made a new DEVELOPMENT version 0.9.5 available. This version has been extensively tested for the Sniff based scatternet configuration, although it may be of sort of simplisticity in some people's eyes. The main bridge algorithm works for a scatternet which is S/S bridge based and where each bridge has 2 roles. It works for very large scatternets with arbitrary topology. Right now, ucbt does not have a scatternet formation algorithm. Scatternets are formed either manually, i.e., you specify the correct timings to ask nodes to do page and page scan; or preconfigured, i.e., the simulator will generate a scatternet directly, bypassing the connection set up process. 2 example scripts are included in test/ directory to show some scatternet configurations. It is a quite complex piece of code, with over 20,000 lines of C/C++ code. Hopefully I can finish the scatternet formation part and present a complete Bluetooth scatternet simulator pretty soon. Obviously your participation can help the project to graduate sooner. The installer included works for ns-allinone-2.27, under Linux, cygwin, Solaris sparc and x86. It also has an option to install tcl-debug which some people experience some difficulty with. https://www.ececs.uc.edu/~cdmc/ucbt/src Please subscribe to our mailing list if you are using ucbt. http://listserv.uc.edu/archives/ucbt.html Regards, Qihe From ppchenyu at ss.ics.saitama-u.ac.jp Thu Aug 5 23:18:09 2004 From: ppchenyu at ss.ics.saitama-u.ac.jp (Pan Chenyu) Date: Thu Aug 5 23:20:48 2004 Subject: [ns] disconnect two agents Message-ID: <1091773089.3239.12.camel@Pumpkin> Dear all, I am a new comer to this news list and also a beginner for NS2. I am trying the "ping" example and found before sending ping command two ping agents need to be connected as following script shows > #Create two Ping agents and attach them to the nodes n0 and n2 > set p0 [new Agent/Ping] > $ns attach-agent $n0 $p0 > > set p1 [new Agent/Ping] > $ns attach-agent $n2 $p1 > > #Connect the two agents > $ns connect $p0 $p1 However, what's the command for disconnect between p0 and p1? I've tried using > $ns disconnect $p0 $p1 and error happened. > (_o3 cmd line 1) > invoked from within >"_o3 cmd disconnect _o245 _o247" > invoked from within >"catch "$self cmd $args" ret" > invoked from within >"if [catch "$self cmd $args" ret] { >set cls [$self info class] >global errorInfo >set savedInfo $errorInfo >error "error when calling class $cls: $args" $..." > (procedure "_o3" line 2) > (SplitObject unknown line 2) > invoked from within >"$ns disconnect $p0 $p1" > (file "ping.tcl" line 81) My purpose is to dynamically creat/destroy connection between two nodes. I believe NS2 should provide this kind of functions however I'm puzzled what kind of reference should I take? I browserd NS mannual but failed to find answer. For future potential questions, I'd like to have some tool books to consult, like tcl/tk reference mannual, etc. Where can I get them? Can anyone help me? Thank you! Best Regards, Pan Chenyu From Rajesh_George at infosys.com Thu Aug 5 23:22:05 2004 From: Rajesh_George at infosys.com (Rajesh George) Date: Thu Aug 5 23:25:43 2004 Subject: [ns] GPRS simulation ns2 Message-ID: <31E1CAD34DAF2F48A768DE429D88E59907EE4BCE@kecmsg01.ad.infosys.com> I understand that there is some implementation of GPRS by Rich Jain on ns 2.1b7. Does any have ported GPRS to any later versions? Does any one implementation of GPRS core network in later versions on ns2? Plz let me know Thx -George From ppchenyu at ss.ics.saitama-u.ac.jp Thu Aug 5 23:27:57 2004 From: ppchenyu at ss.ics.saitama-u.ac.jp (Pan Chenyu) Date: Thu Aug 5 23:30:41 2004 Subject: [ns] disconnect two agents Message-ID: <1091773676.3239.17.camel@Pumpkin> Dear all, I am a new comer to this news list and also a beginner for NS2. I am trying the "ping" example and found before sending ping command two ping agents need to be connected as following script shows > #Create two Ping agents and attach them to the nodes n0 and n2 > set p0 [new Agent/Ping] > $ns attach-agent $n0 $p0 > > set p1 [new Agent/Ping] > $ns attach-agent $n2 $p1 > > #Connect the two agents > $ns connect $p0 $p1 However, what's the command for disconnect between p0 and p1? I've tried using > $ns disconnect $p0 $p1 and error happened. > (_o3 cmd line 1) > invoked from within >"_o3 cmd disconnect _o245 _o247" > invoked from within >"catch "$self cmd $args" ret" > invoked from within >"if [catch "$self cmd $args" ret] { >set cls [$self info class] >global errorInfo >set savedInfo $errorInfo >error "error when calling class $cls: $args" $..." > (procedure "_o3" line 2) > (SplitObject unknown line 2) > invoked from within >"$ns disconnect $p0 $p1" > (file "ping.tcl" line 81) My purpose is to dynamically creat/destroy connection between two nodes. I believe NS2 should provide this kind of functions however I'm puzzled what kind of reference should I take? I browserd NS mannual but failed to find answer. For future potential questions, I'd like to have some tool books to consult, like tcl/tk reference mannual, etc. Where can I get them? Can anyone help me? Thank you! Best Regards, Pan Chenyu From ihanen at yahoo.com Fri Aug 6 01:52:17 2004 From: ihanen at yahoo.com (Hanen Idoudi) Date: Fri Aug 6 01:55:20 2004 Subject: [ns] How to assign idle mode for un mobile node ? In-Reply-To: <20040804143425.5840.qmail@web11502.mail.yahoo.com> Message-ID: <20040806085217.15706.qmail@web11508.mail.yahoo.com> Hi, Can anyone tell me how to tell a mobile node to enter idle mode ? i.e. to stop receiving and transmitting data for un period of time. or, how can we turn off some nodes during simulating period ? Thanks. Best regards. Hanen Idoudi Ph.D Student Cristal Laboratory-ENSI(Tunisia)/IRISA-Rennes1 university (France) __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From zhahui at gmail.com Fri Aug 6 04:19:16 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Fri Aug 6 04:22:05 2004 Subject: [ns] Can I change the bandwidth of a link after I start the simulation Message-ID: Hi, I can set up the link bandwidth use : $ns duplex-link $n0 $n2 2Mb 10ms DropTail But I wanna change the bandwidth between n0 and n2 to 0.5M at time 15s, How can I make it? Thanks! -- Best regards, Hui From ns2zh at yahoo.com.cn Fri Aug 6 04:28:10 2004 From: ns2zh at yahoo.com.cn (=?gb2312?q?Ns2=20ZH?=) Date: Fri Aug 6 04:30:46 2004 Subject: [ns] disconnect two agents In-Reply-To: <1091773676.3239.17.camel@Pumpkin> Message-ID: <20040806112810.78696.qmail@web15702.mail.cnb.yahoo.com> Seems no functions can do exactly the "disconnect" in ns2 And there is no "stop" function in "ping" sample. If you wanna make the links breakdown for a while, the following two lines may be helpful: $ns rtmodel-at 1.0 down $n(1) $n(2) $ns rtmodel-at 2.0 up $n(1) $n(2) Good luck! -ns2zh Pan Chenyu wrote: Dear all, I am a new comer to this news list and also a beginner for NS2. I am trying the "ping" example and found before sending ping command two ping agents need to be connected as following script shows > #Create two Ping agents and attach them to the nodes n0 and n2 > set p0 [new Agent/Ping] > $ns attach-agent $n0 $p0 > > set p1 [new Agent/Ping] > $ns attach-agent $n2 $p1 > > #Connect the two agents > $ns connect $p0 $p1 However, what's the command for disconnect between p0 and p1? I've tried using > $ns disconnect $p0 $p1 and error happened. > (_o3 cmd line 1) > invoked from within >"_o3 cmd disconnect _o245 _o247" > invoked from within >"catch "$self cmd $args" ret" > invoked from within >"if [catch "$self cmd $args" ret] { >set cls [$self info class] >global errorInfo >set savedInfo $errorInfo >error "error when calling class $cls: $args" $..." > (procedure "_o3" line 2) > (SplitObject unknown line 2) > invoked from within >"$ns disconnect $p0 $p1" > (file "ping.tcl" line 81) My purpose is to dynamically creat/destroy connection between two nodes. I believe NS2 should provide this kind of functions however I'm puzzled what kind of reference should I take? I browserd NS mannual but failed to find answer. For future potential questions, I'd like to have some tool books to consult, like tcl/tk reference mannual, etc. Where can I get them? Can anyone help me? Thank you! Best Regards, Pan Chenyu Best regards, ZHA --------------------------------- Do You Yahoo!? 胆溺苧佛哘嗤勝嗤"匯朴"朴演胆夕、凩夕才吹夕 100孥喨箙参珊屍達壬纏窮喨徭廁制否From s.ganjigatti at csuohio.edu Fri Aug 6 11:18:14 2004 From: s.ganjigatti at csuohio.edu (Snehal Ganjigatti) Date: Fri Aug 6 11:16:27 2004 Subject: [ns] AODV routing table entry Message-ID: <4113CB66.000003.01788@Snehal> Hi, I was looking at the AODV routing table code: aodv_rtable.h , aodv_rtable.cc. For each entry in the routing table there is a pointer for a 'precursor list and a 'neighbor list'. I don't understand why there is a pointer to a 'neighbor list'. Because the comment says ' a list of neighbors that are using this route'. Now, wouldn't this neighbor list be the same as the 'precursor list' ? Please let me know why both the lists are needed and what is the difference between the two. Thanks & Regards, Snehal. From klee at nps.edu Fri Aug 6 11:30:28 2004 From: klee at nps.edu (Lee kok thong) Date: Fri Aug 6 11:33:06 2004 Subject: [ns] Simulation of 802 standards in NS2 Message-ID: <001301c47be3$727947c0$220110ac@G0303085> Hi Does anyone know if ns2 can support 802.16 standard simulation ? Or any other means to simulate 802.16, if someone has done a project in it before. Many thanks! regards Francis Lee From madmath at gmail.com Fri Aug 6 13:31:23 2004 From: madmath at gmail.com (Halmes Madmath) Date: Fri Aug 6 13:34:04 2004 Subject: [ns] [question]: 802.11 bandwidth/datarate setup Message-ID: <2800a449040806133120f397d1@mail.gmail.com> Hi everybody, I am confused about the datarate or bandwidth configuration of 802.11 in NS2. In most of the examples provided by ns-2.27, there's one sentence in the tcl script file like this: Phy/WirelessPhy set Rb_ 2*1e6 But in the wireless-phy.cc file, I cannot find the binding operation of this Rb_ parameter anywhere. All of the bindings in wireless-phy.cc are listed below, no Rb_ is binded: bind("CPThresh_", &CPThresh_); bind("CSThresh_", &CSThresh_); bind("RXThresh_", &RXThresh_); //bind("bandwidth_", &bandwidth_); bind("Pt_", &Pt_); bind("freq_", &freq_); bind("L_", &L_); I checked the mailing list and noticed there's a long discussion concerning about the bandwidth or datarate configuration. Someone suggested to use the following instead: Mac/802_11 set bandwidth_ 2e6 or Mac/802_11 set dataRate_ 11e6 Unfortunately, I finally got lost in the threads. So I'm writing to confirm: 1) Since Rb_ is not used in wireless-phy.cc anymore, does that mean in order to set up the datarate or bandwidth, what we need is just to configure it in MAC layer? Let's go one step further, does that mean in TCL file, the WirelessPhy is only for the 'capture threshold, transmission power, etc...' configuration, but not for bandwidth or datarate? That sentence "Phy/WirelessPhy set Rb_ 2*1e6" in the examples actually is nonsense, right? 2) What's the difference between those two parameters: 'bandwidth_' and 'dataRate_'? In mac-802_11.cc, it said: //chk if basic/data rates are set, otherwise use bandwidth_ as default. Are these two parameters indeed the same thing? Using anyone with the same value will get the same results? Anyone who knows the exact answer will be greatly appreciated. Halmes -- Halmes MadMath From jpneo2004 at yahoo.com Fri Aug 6 14:36:45 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Fri Aug 6 14:39:17 2004 Subject: [ns] Undefined reference to vtable Message-ID: <20040806213645.41623.qmail@web21526.mail.yahoo.com> Hi, what virtual functions? Seems that the problem is what parameters to pass in the constructor method. Example: ISTPAgent:: ISTPAgent(packet_t type): Agent(type) Anybody knows if its correct? Anybody had this kind of problem anytime?? thanks a lot for sugestions, J.P. --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. From hanna.amna at laposte.net Fri Aug 6 16:02:31 2004 From: hanna.amna at laposte.net (hanna.amna) Date: Fri Aug 6 16:05:02 2004 Subject: [ns] URGENT!!!! I NEED HELP PLEASE. Message-ID: Hi all, I am running a simulation of an ad hoc network that the wireless nodes have a different level of power with an exponential arrival traffic. in the trace file there is not a RTS, CTS or ACK packets. I have just "message, REPLY ,exp or REQUEST" packets. It is right, if not where is the problem. s -t 0.176958498 -Hs 3 -Hd -1 -Ni 3 -Nx 48.47 -Ny 92.26 -Nz 0.00 -Ne 0.139870 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It message -Il 84 -If 0 -Ii 3 -Iv 32 -Is 3.255 -Id -1.255 -It message -Il 84 -If 0 -Ii 3 -Iv 32 r -t 0.177390636 -Hs 0 -Hd -1 -Ni 0 -Nx 52.01 -Ny 133.40 -Nz 0.00 -Ne 0.559801 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 3 -Iv 32 -Is 3.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 3 -Iv 32 r -t 48.102791081 -Hs 16 -Hd -2 -Ni 16 -Nx 193.32 -Ny 171.91 -Nz 0.00 -Ne 0.548157 -Nl MAC -Nw --- -Ma 2ac -Md 10 -Ms 0 -Mt 0 s -t 48.102801081 -Hs 16 -Hd -2 -Ni 16 -Nx 193.32 -Ny 171.91 -Nz 0.00 -Ne 0.548157 -Nl MAC -Nw --- -Ma 102 -Md 2 -Ms 10 -Mt 806 -P arp -Po REPLY -Pms 16 -Ps 16 -Pmd 2 -Pd 2 Note : when i am running a simulation with same level of power, these packets appears. Please advise me of any problem or anything that I missed out. Please i need your help. Thanks, hanna Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From hanna.amna at laposte.net Fri Aug 6 16:05:00 2004 From: hanna.amna at laposte.net (hanna.amna) Date: Fri Aug 6 16:07:44 2004 Subject: [ns] URGENT!!!!PLEASE I NEED HELP. Message-ID: Hi all, I am running a simulation of an ad hoc network that the wireless nodes have a different level of power with an exponential arrival traffic. in the trace file there is not a RTS, CTS or ACK packets. I have just "message, REPLY ,exp or REQUEST" packets. It is right, if not where is the problem. s -t 0.176958498 -Hs 3 -Hd -1 -Ni 3 -Nx 48.47 -Ny 92.26 -Nz 0.00 -Ne 0.139870 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It message -Il 84 -If 0 -Ii 3 -Iv 32 -Is 3.255 -Id -1.255 -It message -Il 84 -If 0 -Ii 3 -Iv 32 r -t 0.177390636 -Hs 0 -Hd -1 -Ni 0 -Nx 52.01 -Ny 133.40 -Nz 0.00 -Ne 0.559801 -Nl MAC -Nw --- -Ma 0 -Md ffffffff -Ms 3 -Mt 800 -Is 3.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 3 -Iv 32 -Is 3.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 3 -Iv 32 r -t 48.102791081 -Hs 16 -Hd -2 -Ni 16 -Nx 193.32 -Ny 171.91 -Nz 0.00 -Ne 0.548157 -Nl MAC -Nw --- -Ma 2ac -Md 10 -Ms 0 -Mt 0 s -t 48.102801081 -Hs 16 -Hd -2 -Ni 16 -Nx 193.32 -Ny 171.91 -Nz 0.00 -Ne 0.548157 -Nl MAC -Nw --- -Ma 102 -Md 2 -Ms 10 -Mt 806 -P arp -Po REPLY -Pms 16 -Ps 16 -Pmd 2 -Pd 2 Note : when i am running a simulation with same level of power, these packets appears. Please advise me of any problem or anything that I missed out. Please i need your help. Thanks, hanna Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From ppl at nbnet.nb.ca Fri Aug 6 20:16:34 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Fri Aug 6 20:19:22 2004 Subject: [ns] Can I change the bandwidth of a link after I start the simulation In-Reply-To: References: Message-ID: <20040807031634.GA88220@bloodaxis> On Fri, Aug 06, 2004 at 07:19:16PM +0800, zhahui@gmail wrote: [...] > I can set up the link bandwidth use : > $ns duplex-link $n0 $n2 2Mb 10ms DropTail > > But I wanna change the bandwidth between n0 and n2 to > 0.5M at time 15s, How can I make it? Set two simplex links between n0 and n2. Afterall, a duplex-link is a couple of two simple-link (mostly). At least, this is my solution. Hopefully it's a correct one without too many pitfalls. Good luck, ppl From zhahui at gmail.com Sat Aug 7 00:26:41 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Sat Aug 7 00:28:49 2004 Subject: [ns] Can I change the bandwidth of a link after I start the simulation In-Reply-To: <20040807031634.GA88220@bloodaxis> References: <20040807031634.GA88220@bloodaxis> Message-ID: Thanks! Lavoie. I think I was not writing this problem clearly. I don't want to make two different bandwidth on two directions. I want to change the bandwidth in the simulating.For example, for a link of n0<->n1, I want to set the bandwidth between them 1M from 0s to 15s, and set it 0.5M from 15s to 20s. How can I make it? -zh On Sat, 7 Aug 2004 00:16:34 -0300, Pierre-Paul Lavoie wrote: > > On Fri, Aug 06, 2004 at 07:19:16PM +0800, zhahui@gmail wrote: > [...] > > I can set up the link bandwidth use : > > $ns duplex-link $n0 $n2 2Mb 10ms DropTail > > > > But I wanna change the bandwidth between n0 and n2 to > > 0.5M at time 15s, How can I make it? > > Set two simplex links between n0 and n2. Afterall, a > duplex-link is a couple of two simple-link (mostly). > > At least, this is my solution. Hopefully it's a correct one > without too many pitfalls. > > Good luck, > ppl > > -- Best regards, Hui From soohyunc at msn.com Sat Aug 7 04:47:21 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Sat Aug 7 04:43:06 2004 Subject: [ns] Can I change the bandwidth of a link after I start thesimulation References: <20040807031634.GA88220@bloodaxis> Message-ID: I think what P.-P Lavoie said is a resonable solution. You can have two different links with 1M and 0.5M, respectively. Then, you can set the traffic change at time 15s in your simulation. Soo-Hyun ----- Original Message ----- From: "zhahui@gmail" To: "Pierre-Paul Lavoie" Cc: Sent: Saturday, August 07, 2004 8:26 AM Subject: Re: Re: [ns] Can I change the bandwidth of a link after I start thesimulation > > Thanks! Lavoie. I think I was not writing this problem clearly. > I don't want to make two different bandwidth on two directions. I want > to change the bandwidth in the simulating.For example, for > a link of n0<->n1, I want to set the bandwidth between them > 1M from 0s to 15s, and set it 0.5M from 15s to 20s. How can > I make it? > > -zh > > On Sat, 7 Aug 2004 00:16:34 -0300, Pierre-Paul Lavoie wrote: > > > > On Fri, Aug 06, 2004 at 07:19:16PM +0800, zhahui@gmail wrote: > > [...] > > > I can set up the link bandwidth use : > > > $ns duplex-link $n0 $n2 2Mb 10ms DropTail > > > > > > But I wanna change the bandwidth between n0 and n2 to > > > 0.5M at time 15s, How can I make it? > > > > Set two simplex links between n0 and n2. Afterall, a > > duplex-link is a couple of two simple-link (mostly). > > > > At least, this is my solution. Hopefully it's a correct one > > without too many pitfalls. > > > > Good luck, > > ppl > > > > > > > -- > Best regards, > Hui > > From chuahn_2 at hotmail.com Sat Aug 7 08:26:04 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Sat Aug 7 08:28:46 2004 Subject: [ns] A question about Agent/TCP set packetSize_ Message-ID: Hi, I set tcp packets to 500 bytes and 500 bytes for cbr as well. set packetSize 500 Agent/TCP set packetSize_ 500 However in my trace file the size of TCP packets was 40 and 550 bytes. As below: r 1.042312 0 1 tcp 40 ------- 0 2.0 5.0 0 275 + 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 - 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 : : - 1.299911 3 0 cbr 500 ------- 1 3.48 -2147483600.0 4 513 r 1.299912 0 1 tcp 550 ------- 0 2.0 5.0 1 398 Anyone! please give me some explanation Thank you. Chua _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger From zhahui at gmail.com Sat Aug 7 10:00:51 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Sat Aug 7 10:03:46 2004 Subject: [ns] A question about Agent/TCP set packetSize_ In-Reply-To: References: Message-ID: It's strange you got a tcp of 550 bytes. In fact, what you set is the data part of a tcp packet, and ns2 will add a default 40-byte to every out tcp packet, as a header, which makes a 540-byte packet. You could change this header to other size. -zh On Sat, 07 Aug 2004 15:26:04 +0000, Chua Hong Nung wrote: > > Hi, > I set tcp packets to 500 bytes and 500 bytes for cbr as well. > > set packetSize 500 > Agent/TCP set packetSize_ 500 > > However in my trace file the size of TCP packets was 40 and 550 bytes. As > below: > > r 1.042312 0 1 tcp 40 ------- 0 2.0 5.0 0 275 > + 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > - 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > : > : > - 1.299911 3 0 cbr 500 ------- 1 3.48 -2147483600.0 4 513 > r 1.299912 0 1 tcp 550 ------- 0 2.0 5.0 1 398 > > Anyone! please give me some explanation > > Thank you. > > Chua > > _________________________________________________________________ > It's fast, it's easy and it's free. Get MSN Messenger today! > http://www.msn.co.uk/messenger > > -- Best regards, Hui From ns2zh at yahoo.com.cn Sat Aug 7 11:32:31 2004 From: ns2zh at yahoo.com.cn (=?gb2312?q?Ns2=20ZH?=) Date: Sat Aug 7 11:34:45 2004 Subject: [ns] How to use the ErrorModel/TwoStateMarkov? Message-ID: <20040807183231.14118.qmail@web15705.mail.cnb.yahoo.com> Hi, I wanna add a two-state markov loss model to a link. like that: 1. use BER(bit error rate), not PER( packet error rate), 2. BER in good state 0.000001,BER in bad state 0.01 3. mean good period 1 sec ,mean bad period 0.01 sec Does anyone have idea of it? Thanks! Best regards, ZHA --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From chuahn_2 at hotmail.com Sat Aug 7 11:55:31 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Sat Aug 7 11:57:45 2004 Subject: [ns] A question about Agent/TCP set packetSize_ Message-ID: how about cbr, why no header added to the packets? Thank you Chua >From: "zhahui@gmail" >To: Chua Hong Nung >CC: ns-users@isi.edu >Subject: Re: [ns] A question about Agent/TCP set packetSize_ >Date: Sun, 8 Aug 2004 01:00:51 +0800 > >It's strange you got a tcp of 550 bytes. In fact, what you set is the >data part of a tcp packet, and ns2 will add a default 40-byte to every >out tcp packet, as a header, which makes a 540-byte packet. You could >change this header to other size. > >-zh > > >On Sat, 07 Aug 2004 15:26:04 +0000, Chua Hong Nung >wrote: > > > > Hi, > > I set tcp packets to 500 bytes and 500 bytes for cbr as well. > > > > set packetSize 500 > > Agent/TCP set packetSize_ 500 > > > > However in my trace file the size of TCP packets was 40 and 550 bytes. >As > > below: > > > > r 1.042312 0 1 tcp 40 ------- 0 2.0 5.0 0 275 > > + 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > > - 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > > : > > : > > - 1.299911 3 0 cbr 500 ------- 1 3.48 -2147483600.0 4 513 > > r 1.299912 0 1 tcp 550 ------- 0 2.0 5.0 1 398 > > > > Anyone! please give me some explanation > > > > Thank you. > > > > Chua > > > > _________________________________________________________________ > > It's fast, it's easy and it's free. Get MSN Messenger today! > > http://www.msn.co.uk/messenger > > > > > > >-- >Best regards, >Hui _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ From pradyot_s at yahoo.com Sat Aug 7 16:09:50 2004 From: pradyot_s at yahoo.com (pradyot dhulipala) Date: Sat Aug 7 16:12:58 2004 Subject: [ns] Seg fault in Scheduler::dispatch Message-ID: <20040807230950.20449.qmail@web20023.mail.yahoo.com> Hello, I am getting seg-faults in Scheduler::dispatch in file common/scheduler.cc. I have a class Apptimer that inherits from class Handler and defines its overrides its methods start. I use AppTimer to further subclass CoverageTimer which defines a handle method. The basic idea is I want an event to be performed at a certain fixed interval with my C++ code. Any suggestions on whats going on or any tips on if this can be done differently? Thanks Pradyot Dhulipala ===== "Obstacles are those frightful things you see when you take your eyes off your goal." - Henry Ford (1863-1947) "If women didn't exist, all the money in the world would have no meaning." - Aristotle Onassis (1906-1975) "Wise men make proverbs, but fools repeat them." "A witty saying proves nothing." __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From naby_djoubar at hotmail.com Sat Aug 7 16:53:06 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Sat Aug 7 16:56:17 2004 Subject: [ns] help! " templates cannot be declared to have 'C' linkage" Message-ID: Hello everybody I'm trying to compile the source code for my new protocol by creating a Visual C++ application and including the header file of the protocol in it. I get the following error message: "math.h(514) : error C2894: templates cannot be declared to have 'C' linkage" Does anybody have an idea of what it might be? Thanks for your help. _________________________________________________________________ Profitez des puissants filtres de courriels ind?sirables articul? sur la technologie brevet?e Microsoft SmartScreen.s http://join.msn.com/?pgmarket=fr-ca&page=features/popup Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From feng6 at uwindsor.ca Sat Aug 7 18:50:33 2004 From: feng6 at uwindsor.ca (Feng Y) Date: Sat Aug 7 18:52:55 2004 Subject: [ns] Can I change the transmitting rate of UDP flows in run time? Message-ID: Hi, I want to change the transmitting rate of UDP flows after they start transmitting. I use $ns at 4.0 "$cbr(1) set rate_ $rate(1)" to change the rate but I did not see any difference between changing and not changing the rate. Does NS really change the rate or not? Thanks. yang From ak1350 at wayne.edu Sat Aug 7 19:42:31 2004 From: ak1350 at wayne.edu (Scott Fowler) Date: Sat Aug 7 19:46:51 2004 Subject: [ns] VII. A new protocol for ns Marc Greis's Message-ID: <68e0cbb5.6c6d2e4e.81c0400@mirapointms3.wayne.edu> Dear NS users VII. A new protocol for ns Marc Greis's ping example, there is the code line(recv in ping.cc): hdrip->src_ >> Address::instance().NodeShift_[1] What does this line do? Also, where to find a reference doc. about NodeShift (">>") in order understand importants of the usage? Cheers From gemosir at yahoo.com Sun Aug 8 04:12:00 2004 From: gemosir at yahoo.com (george sirma) Date: Mon Aug 9 09:33:12 2004 Subject: [ns] vegas and sack codes Message-ID: <20040808111200.74127.qmail@web51608.mail.yahoo.com> I have successfully installed ns-allinone-2.27 in windows xp on cygwin.I would like to simulate vegas and SACK codes.Where do i find these codes? plse help. --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! From naby_djoubar at hotmail.com Sun Aug 8 08:26:57 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Mon Aug 9 10:02:15 2004 Subject: [ns] bash: ns: command not found Message-ID: hi I can't run my TCL script. I get the "bash: ns: command not found" error at the command: "$ ns myscript.tcl". I'm positionned in the "ns-2.27" directory. thanks for any suggestion. _________________________________________________________________ Balayez vos courriels entrants et sortants et les pi?ces jointes et contribuez ? ?liminer les virus destructeurs susceptibles d?y ?tre int?gr?s. http://join.msn.com/?pgmarket=fr-ca&page=features/virus Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From naby_djoubar at hotmail.com Sun Aug 8 09:22:32 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Mon Aug 9 10:09:01 2004 Subject: [ns] how do I uninstall ns-2? Message-ID: Hello guys I want to uninstall ns-2 and installing from scrach but it doesn't appear in the control panel and there's no uninstalling utility associated with it. _________________________________________________________________ Envoyer des courriels cr?atifs est aussi amusant que d?en recevoir. Utilisez de la papeterie, des polices et des couleurs sp?ciales http://join.msn.com/?pgmarket=fr-ca&page=features/richmail Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From naby_djoubar at hotmail.com Sun Aug 8 12:49:11 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Mon Aug 9 10:33:27 2004 Subject: [ns] tcl8.4.5 make fails! Message-ID: Hi I've tried to reinstall ns-2 but tcl8.4.5 make fails...I even downloaded the "ns-allinone-2.27.tar.gz" again without any success.. now what?! _________________________________________________________________ Partagez une seule photo ou un diaporama complet dans MSN Messenger. http://join.msn.com/?pgmarket=fr-ca&page=features/messenger Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From jpneo2004 at yahoo.com Mon Aug 9 10:44:03 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Mon Aug 9 10:48:25 2004 Subject: [ns] URGENT!!! Undefined reference to vtable Message-ID: <20040809174403.45629.qmail@web21527.mail.yahoo.com> Hi everybody, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" Seems that the problem is what parameters to pass in the constructor method. Example: ISTPAgent:: ISTPAgent(packet_t type): Agent(type) Anyone knows if its correct? Anyone had this kind of problem anytime?? Please guys, I really need your help, thanks a lot, J.P. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From kimyoun at auburn.edu Sun Aug 8 17:33:51 2004 From: kimyoun at auburn.edu (Young Kim) Date: Mon Aug 9 11:04:53 2004 Subject: [ns] Urgent! Please help. Message-ID: Hi all, I am trying to implement a function in mac-802_11.cc that is called periodically, e.g. every 1 sec to adjust contention window size. Since there is no main function in mac-802_11.cc, I am not sure how to implement this. And what should I use to implement this? thread? timer? signal? Any help would be greatly appreciated. Thank you and have a nice day. Young kimyoun@auburn.edu From jz105 at york.ac.uk Sun Aug 8 18:14:24 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Mon Aug 9 11:09:52 2004 Subject: [ns] MIP related implementations supported by NS2.27 Message-ID: <008701c47dae$3552d920$68892090@grouse> Hi all, Could anybody recommend me some good Mobile IP related (such as MIPv4/v6, HMIPv4/v6, FMIPv4/v6 and so on) extensions supported by NS2.27? Or some of them may already be included in the NS2.27 all-in-one package? Any clue will appreciated. Thank you in advance! Cheers, Jee From jpneo2004 at yahoo.com Mon Aug 9 11:10:15 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Mon Aug 9 11:13:57 2004 Subject: [ns] bash: ns: command not found Message-ID: <20040809181015.22633.qmail@web21522.mail.yahoo.com> Note: forwarded message attached. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From redhero at enorth.com.cn Sun Aug 8 19:33:50 2004 From: redhero at enorth.com.cn (redhero@enorth.com.cn) Date: Mon Aug 9 11:22:01 2004 Subject: [ns] [question]: 802.11 bandwidth/datarate setup In-Reply-To: <200408071900.i77J0Ji02670@gamma.isi.edu> References: <200408071900.i77J0Ji02670@gamma.isi.edu> Message-ID: <1092018830.4116e28ea173d@mail.enorth.com.cn> I think since the bandwidth setting in phy are commented,there is no need setting them anymore.For MAC layer,the dataRate_ is used for calculating the transmitting duration,and has no matter with PHY layer.So the code means if you set the dateRate_ in TCL code,It use your setting.If not ,it use default bandwidth. In phy.cc ,there is a method called txtime(),which used Rb_ to calculate txtime.maybe some programmer once wanted,but it is commented now.So setting Rb_ has no sense. btw: why your gmail account is so strange? From chenw at uoguelph.ca Sun Aug 8 20:33:50 2004 From: chenw at uoguelph.ca (chenw@uoguelph.ca) Date: Mon Aug 9 11:31:07 2004 Subject: [ns] re: Where is NS? Message-ID: <1092022430.4116f09ea8f68@webmail.uoguelph.ca> Hi, there: Before, I use ns-2 under linux, everything is smooth. However, today , I install ns-2 under windows 2000, I found ns didn't exist when validating after successful previous steps. Error message is as followings: Running test timers: ./../ns test-suite-tcp.tcl timers QUIET ./../ns: not found Test output differs from reference output Diagnose with: diff test-output-tcp/timers.test test-output-tcp/timers Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html" thanks for your advice regards From tiredcasper at hotmail.com Sun Aug 8 21:03:48 2004 From: tiredcasper at hotmail.com (w wayne) Date: Mon Aug 9 11:37:12 2004 Subject: [ns] question about semiduplex link. Message-ID: as a beginner, I need simulate a senario with semiduplex link.I just know there are simple-link and duplex-link in NS. is there a semiduplex-link object in NS ?I will be so appreciated if any one can give me some suggestion or provide some infomation. thanks again. _________________________________________________________________ 窒継和墮 MSN Explorer: http://explorer.msn.com/lccn/ From scyudits at MIT.EDU Sun Aug 8 21:12:51 2004 From: scyudits at MIT.EDU (Sophia C Yuditskaya) Date: Mon Aug 9 11:37:59 2004 Subject: [ns] Timer bug? Message-ID: <1092024771.4116f9c364774@webmail.mit.edu> Hi, The ns manual says that the "delay" parameter to sched(double delay) is in terms of seconds. However, my simulation's execution time suggests that the delay parameter is actually in units of milliseconds. Instead of running for two weeks like it's supposed to, it runs in roughly half an hour. I checked how long it would take if all my timing delays were ms instead of sec, and it came out to be 20 minutes. Taking into account that my sim prints out a lot of data to the display during run time, the estimated time comes out to 30 minutes, which is consistent with the actual running time. So is this a typo in the manual? Is the delay param in terms of ms? Thanks, Sophia From tiredcasper at hotmail.com Sun Aug 8 20:36:04 2004 From: tiredcasper at hotmail.com (tiredcasper) Date: Mon Aug 9 11:38:12 2004 Subject: [ns] question about semiduplex link. Message-ID: as a beginner, I need simulate a senario with semiduplex link.I just = know there are simple-link and duplex-link in NS. is there a = semiduplex-link object in NS ?I will be so appreciated if any one can = give me some suggestion or provide some infomation. thanks again.From savoric at ee.tu-berlin.de Mon Aug 9 01:38:16 2004 From: savoric at ee.tu-berlin.de (Michael Savoric) Date: Mon Aug 9 12:33:05 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: Message-ID: <411737F8.B60ACB02@ee.tu-berlin.de> Chua Hong Nung wrote: > > Hi, > I set tcp packets to 500 bytes and 500 bytes for cbr as well. > > set packetSize 500 > Agent/TCP set packetSize_ 500 > > However in my trace file the size of TCP packets was 40 and 550 bytes. As > below: > > r 1.042312 0 1 tcp 40 ------- 0 2.0 5.0 0 275 > + 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > - 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > : > : > - 1.299911 3 0 cbr 500 ------- 1 3.48 -2147483600.0 4 513 > r 1.299912 0 1 tcp 550 ------- 0 2.0 5.0 1 398 > > Anyone! please give me some explanation > > Thank you. > > Chua > > _________________________________________________________________ > It's fast, it's easy and it's free. Get MSN Messenger today! > http://www.msn.co.uk/messenger It looks to me that you have enabled the TCP timestamp option (header size 40 bytes + 10 bytes option size). There you can see another bug of ns-2. In acks the size of the timestamp option is not included. BTW, standard-conform is a timestamp option of 12 bytes size, since the length of a TCP header must be divisible by 4. Best regards, Michael Savoric ====================================================== E-Mail: savoric@ee.tu-berlin.de Phone: (+49 30) 314-23840 Fax: (+49 30) 314-23818 Postal address: Technical University Berlin Telecommunication Networks Group (TKN) Einsteinufer 25, 10587 Berlin ====================================================== From petrinetze at netscape.net Mon Aug 9 03:18:38 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Mon Aug 9 12:50:20 2004 Subject: [ns] Bus Error Message-ID: <41174F7E.6080705@netscape.net> Hello, This simulation is a adhoc network containing (4n+1) nodes. One node locates at the center. The other 4n nodes locate at periphery which contact the nodes at the other side. You can change n from 1 to 5. For n = 1 and 2, I have run the simulation without problem. But when n=3 (total 13 nodes), it shows the following message: ******************************* num_nodes is set 13 INITIALIZE THE LIST xListHead channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Bus error ******************************* Thanks for your help. Haidong Here is the code: ******************************************************** # A n-node example for ad-hoc simulation with DSR #Phy/WirelessPhy set RXThreshold_ 1.55924e-11 # Define options set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 13 ;# number of mobilenodes set val(rp) DSR ;# routing protocol set val(x) 1000 ;# X dimension of topography set val(y) 1000 ;# Y dimension of topography set val(stop) 100 ;# time of simulation end set ns [new Simulator] set tracefd [open 1 w] #number of connections set num_con [expr ($val(nn) - 1)/2] #radius set r 250.00000000 set PI 3.0 $ns trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # # Create nn mobilenodes [$val(nn)] and attach them to the channel. # # New API to config node: # 1. Create channel (or multiple-channels); # 2. Specify channel in node-config (instead of channelType); # 3. Create nodes for simulations. # Create channel #1 and #2 set chan_1_ [new $val(chan)] set chan_2_ [new $val(chan)] # configure the nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF \ -channel $chan_1_ for {set i 0} {$i < $val(nn) } { incr i } { set node_($i) [$ns node] } # Provide initial location of mobilenodes $node_(0) set X_ 500.0 $node_(0) set Y_ 500.0 $node_(0) set Z_ 0.0 for {set i 1} {$i < $val(nn)} {incr i} { $node_($i) set X_ [expr 500.0+floor($r*cos(2*$PI*$i/($val(nn)-1)))] $node_($i) set Y_ [expr 500.0+floor($r*sin(2*$PI*$i/($val(nn)-1)))] $node_($i) set Z_ 0.0 } # Set a UDP connection for {set i 1} {$i <= $num_con} {incr i} { set udp_($i) [new Agent/UDP] set null_($i) [new Agent/Null] $ns attach-agent $node_($i) $udp_($i) $ns attach-agent $node_([expr $i + $num_con]) $null_($i) $ns connect $udp_($i) $null_($i) set cbr_($i) [new Application/Traffic/CBR] $cbr_($i) set interval_ 0.025 $cbr_($i) set packetSize_ 128 $cbr_($i) attach-agent $udp_($i) $ns at 0.0 "$cbr_($i) start" } # Telling nodes when the simulation ends for {set i 0} {$i < $val(nn) } { incr i } { $ns at $val(stop) "$node_($i) reset"; } # ending nam and the simulation $ns at $val(stop) "stop" $ns at [expr $val(stop)+0.01] "puts \"end simulation\" ; $ns halt" proc stop {} { global ns tracefd $ns flush-trace close $tracefd } $ns run ************************************************************ From mayhem00 at virgilio.it Mon Aug 9 07:02:18 2004 From: mayhem00 at virgilio.it (Giovanni Bisegna) Date: Mon Aug 9 13:27:37 2004 Subject: [ns] Trace Graph Message-ID: <000d01c47e19$7bb2bcd0$771db450@befrag> Hi everyone, i'm trying to use TraceGraph for analyze my ns trace files, but when i try to put as input file an wired-cum-wireless trace file, i receive an error: Cannot read the IP file! Someone knows what's the problem? I need to calculate the real bandwidth of a 802.11b system, but i don't know how. Exists a program or a script that calculates the bandwidth through the trace file? Someone can helps me? Thanks in advance, Giovanni Bisegna From mahtab_hossain2002 at yahoo.com Mon Aug 9 14:03:51 2004 From: mahtab_hossain2002 at yahoo.com (Mahtab Hossain) Date: Mon Aug 9 14:06:12 2004 Subject: [ns] MIP related implementations supported by NS2.27 In-Reply-To: <008701c47dae$3552d920$68892090@grouse> Message-ID: <20040809210351.43673.qmail@web50502.mail.yahoo.com> Hi, I am not sure about the MIPv6 implementations in NS2.27....but there are certainly much resourses in INRIA's MobiWan Project for the things u mentioned. (implemented with ns-2.1b6). Here is the Link to MobiWan Project: http://www.inrialpes.fr/planete/mobiwan/ I haven't tested them yet. I have just installed ns-2.1b6 only to use those resourses. If you find any implementions of those in ns-2.27 please let us know. Also take a look at the Rice University's Monarch project and Stanford's Mosquitonet project. Bye Mahtab --- "Jee J.Z." wrote: > > Hi all, > > Could anybody recommend me some good Mobile IP > related (such as MIPv4/v6, > HMIPv4/v6, FMIPv4/v6 and so on) extensions supported > by NS2.27? > Or some of them may already be included in the > NS2.27 all-in-one package? > Any clue will appreciated. Thank you in advance! > > Cheers, > Jee > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From soohyunc at msn.com Mon Aug 9 15:43:49 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Mon Aug 9 15:39:54 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> Message-ID: Hi, Michael, I think the TCP timestamp option is included in the TCP header. In other words, if we look at the 'hdr_tcp' struct in tcp.h, we can see that there is 'double ts_;' which means the TCP timestamp. Where do you find that the TCP timestamp is separate to the TCP header options? Thanks, Soo-Hyun ----- Original Message ----- From: "Michael Savoric" To: "Chua Hong Nung" Cc: Sent: Monday, August 09, 2004 9:38 AM Subject: Re: [ns] A question about Agent/TCP set packetSize_ > > Chua Hong Nung wrote: > > > > Hi, > > I set tcp packets to 500 bytes and 500 bytes for cbr as well. > > > > set packetSize 500 > > Agent/TCP set packetSize_ 500 > > > > However in my trace file the size of TCP packets was 40 and 550 bytes. As > > below: > > > > r 1.042312 0 1 tcp 40 ------- 0 2.0 5.0 0 275 > > + 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > > - 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > > : > > : > > - 1.299911 3 0 cbr 500 ------- 1 3.48 -2147483600.0 4 513 > > r 1.299912 0 1 tcp 550 ------- 0 2.0 5.0 1 398 > > > > Anyone! please give me some explanation > > > > Thank you. > > > > Chua > > > > _________________________________________________________________ > > It's fast, it's easy and it's free. Get MSN Messenger today! > > http://www.msn.co.uk/messenger > > It looks to me that you have enabled the TCP timestamp > option > (header size 40 bytes + 10 bytes option size). > There you can see another bug of ns-2. In acks the size of > the > timestamp option is not included. BTW, standard-conform is a > timestamp option of 12 bytes size, since the length of a TCP > header must be divisible by 4. > > Best regards, > Michael Savoric > > ====================================================== > E-Mail: savoric@ee.tu-berlin.de > > Phone: (+49 30) 314-23840 > > Fax: (+49 30) 314-23818 > > Postal address: Technical University Berlin > Telecommunication Networks Group (TKN) > Einsteinufer 25, 10587 Berlin > ====================================================== > > From jz105 at york.ac.uk Mon Aug 9 18:03:09 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Mon Aug 9 18:02:09 2004 Subject: [ns] MIP related implementations supported by NS2.27 References: <20040809210351.43673.qmail@web50502.mail.yahoo.com> Message-ID: <021401c47e75$cd251750$68892090@grouse> Hi Mahtab, Thank you for your reply. I've tried to search those resources but there seems no luck.:( I'm a bit disappointed that these popular features are not included in the newest version. Anyway, MIPv6 just became RFC in the recent two months - maybe that's the reason. BTW, can NS2.1b6 allinone be installed on cygwin? I couldn't find instructions for its installation on cygwin and it couldn't get through when I tried. Any suggestions? Thanks, Jee ----- Original Message ----- From: "Mahtab Hossain" To: "Jee J.Z." Cc: Sent: Monday, August 09, 2004 10:03 PM Subject: Re: [ns] MIP related implementations supported by NS2.27 > Hi, > I am not sure about the MIPv6 implementations in > NS2.27....but there are certainly much resourses in > INRIA's MobiWan Project for the things u mentioned. > (implemented with ns-2.1b6). > > Here is the Link to MobiWan Project: > http://www.inrialpes.fr/planete/mobiwan/ > > I haven't tested them yet. I have just installed > ns-2.1b6 only to use those resourses. If you find any > implementions of those in ns-2.27 please let us know. > > Also take a look at the Rice University's Monarch > project and Stanford's Mosquitonet project. > > Bye > Mahtab > > --- "Jee J.Z." wrote: > > > > > Hi all, > > > > Could anybody recommend me some good Mobile IP > > related (such as MIPv4/v6, > > HMIPv4/v6, FMIPv4/v6 and so on) extensions supported > > by NS2.27? > > Or some of them may already be included in the > > NS2.27 all-in-one package? > > Any clue will appreciated. Thank you in advance! > > > > Cheers, > > Jee > > > > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > From luciano at cetuc.puc-rio.br Mon Aug 9 18:40:43 2004 From: luciano at cetuc.puc-rio.br (luciano@cetuc.puc-rio.br) Date: Mon Aug 9 18:44:54 2004 Subject: [ns] awk or perl throuphut, delay and jitter Message-ID: <3244.200.165.131.40.1092102043.squirrel@200.165.131.40> Hi all, really need some help. I was working with tracegraph to analyze my trace files but i got error for big size files. I'd like to get some awk or perl script to continue my analysis,please!!! It very important. Well, i'm working Mac 802.11 (wireless scenario) and using FTP over tcp, traffic exponential over udp. Cherrs, Luciano From archsentinel at yahoo.com Mon Aug 9 18:44:49 2004 From: archsentinel at yahoo.com (Arch Sentinel) Date: Mon Aug 9 18:46:53 2004 Subject: [ns] How to find the distination address of a packet? Message-ID: <20040810014449.55079.qmail@web50810.mail.yahoo.com> Greetings all, I am attempting to find the distination address or distination node of a packet routing under AODV algortihm. But I am unable to find the variable in packet class. Can anyone help me please. Thank you Chong __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From chuahn_2 at hotmail.com Mon Aug 9 22:32:44 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Mon Aug 9 22:35:08 2004 Subject: [ns] A question about Agent/TCP set packetSize_ Message-ID: Hi, I am not aware anywhere in my script I enable TCP timestamp, however I used hdr_cmn->timestamp() to estimate the rtt for cbr data flow. Cheers. Chua. >From: Michael Savoric >To: Chua Hong Nung >CC: ns-users@ISI.EDU >Subject: Re: [ns] A question about Agent/TCP set packetSize_ >Date: Mon, 09 Aug 2004 10:38:16 +0200 > >Chua Hong Nung wrote: > > > > Hi, > > I set tcp packets to 500 bytes and 500 bytes for cbr as well. > > > > set packetSize 500 > > Agent/TCP set packetSize_ 500 > > > > However in my trace file the size of TCP packets was 40 and 550 bytes. >As > > below: > > > > r 1.042312 0 1 tcp 40 ------- 0 2.0 5.0 0 275 > > + 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > > - 1.042312 1 5 tcp 40 ------- 0 2.0 5.0 0 275 > > : > > : > > - 1.299911 3 0 cbr 500 ------- 1 3.48 -2147483600.0 4 513 > > r 1.299912 0 1 tcp 550 ------- 0 2.0 5.0 1 398 > > > > Anyone! please give me some explanation > > > > Thank you. > > > > Chua > > > > _________________________________________________________________ > > It's fast, it's easy and it's free. Get MSN Messenger today! > > http://www.msn.co.uk/messenger > >It looks to me that you have enabled the TCP timestamp >option >(header size 40 bytes + 10 bytes option size). >There you can see another bug of ns-2. In acks the size of >the >timestamp option is not included. BTW, standard-conform is a >timestamp option of 12 bytes size, since the length of a TCP >header must be divisible by 4. > >Best regards, >Michael Savoric > >====================================================== >E-Mail: savoric@ee.tu-berlin.de > >Phone: (+49 30) 314-23840 > >Fax: (+49 30) 314-23818 > >Postal address: Technical University Berlin > Telecommunication Networks Group (TKN) > Einsteinufer 25, 10587 Berlin >====================================================== > _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ From chuahn_2 at hotmail.com Mon Aug 9 22:47:36 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Mon Aug 9 22:49:56 2004 Subject: [ns] When to set $cbr set random_ to 1? Message-ID: Hi, I ran simulations of a TCP-friendly protocol and TCP. When I set ($cbr set) random_ to 1, chartwise the throughput of both TCP and TCP-friedly protocol were smooth. However when I set ($cbr set) random_ to 0, both protocols exhibited volatile throughput. In cbr_traffic.cc, the random_ parameter will be used in this proc double CBR_Traffic::next_interval(int& size) { // Recompute interval in case rate_ or size_ has changes interval_ = (double)(size_ << 3)/(double)rate_; double t = interval_; if (random_) t += interval_ * Random::uniform(-0.5, 0.5); size = size_; if (++seqno_ < maxpkts_) return(t); else return(-1); } Would anyone give me some idea when I should set rondom to 1 or 0, and which one produces more accurate result. Thank you. Chua _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ From mahtab_hossain2002 at yahoo.com Mon Aug 9 22:55:53 2004 From: mahtab_hossain2002 at yahoo.com (Mahtab Hossain) Date: Mon Aug 9 22:57:54 2004 Subject: [ns] MIP related implementations supported by NS2.27 In-Reply-To: <021401c47e75$cd251750$68892090@grouse> Message-ID: <20040810055553.50923.qmail@web50506.mail.yahoo.com> Hello Again, I installed ns-2.1b6 in Red Hat Linux 7.2 (with lot of useful patches from all over the web). No idea about cygwin. I think if u face problems with installion, search the web. By the way, I don't know whether this is a right place to say this, but it seems like u r new with NS. In that case, u can consider switching to OMNET++. Monash University Australia again has a whole lot of resourses (in MIPv6 field) built with OMNET++. cheers Mahtab --- "Jee J.Z." wrote: > Hi Mahtab, > > Thank you for your reply. I've tried to search those > resources but there > seems no luck.:( I'm a bit disappointed that these > popular features are not > included in the newest version. Anyway, MIPv6 just > became RFC in the recent > two months - maybe that's the reason. BTW, can > NS2.1b6 allinone be installed > on cygwin? I couldn't find instructions for its > installation on cygwin and > it couldn't get through when I tried. Any > suggestions? > > Thanks, > Jee > > ----- Original Message ----- > From: "Mahtab Hossain" > > To: "Jee J.Z." > Cc: > Sent: Monday, August 09, 2004 10:03 PM > Subject: Re: [ns] MIP related implementations > supported by NS2.27 > > > > Hi, > > I am not sure about the MIPv6 implementations in > > NS2.27....but there are certainly much resourses > in > > INRIA's MobiWan Project for the things u > mentioned. > > (implemented with ns-2.1b6). > > > > Here is the Link to MobiWan Project: > > http://www.inrialpes.fr/planete/mobiwan/ > > > > I haven't tested them yet. I have just installed > > ns-2.1b6 only to use those resourses. If you find > any > > implementions of those in ns-2.27 please let us > know. > > > > Also take a look at the Rice University's Monarch > > project and Stanford's Mosquitonet project. > > > > Bye > > Mahtab > > > > --- "Jee J.Z." wrote: > > > > > > > > Hi all, > > > > > > Could anybody recommend me some good Mobile IP > > > related (such as MIPv4/v6, > > > HMIPv4/v6, FMIPv4/v6 and so on) extensions > supported > > > by NS2.27? > > > Or some of them may already be included in the > > > NS2.27 all-in-one package? > > > Any clue will appreciated. Thank you in advance! > > > > > > Cheers, > > > Jee > > > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - Send 10MB messages! > > http://promotions.yahoo.com/new_mail > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From chuahn_2 at hotmail.com Tue Aug 10 00:14:57 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Tue Aug 10 00:16:55 2004 Subject: [ns] When to set $cbr set random_ to 1? Message-ID: Hi, Referring to my previous email. I also ran very simple simulations with this setting: bottleneck 0.5Mb set tcp [new Agent/TCP] $cbr set packet_size_ 500 $cbr set rate_ 0.25mb random 0 produces this result Average cbr throughput was: 0.2422 Mbits Average tcp throughput was: 0.2578 Mbits Bandwidth utilization was: 0.5000 Mbits Friendliness ratio was: 0.9390 while random 1 produces this result Average cbr throughput was: 0.2326 Mbits Average tcp throughput was: 0.2614 Mbits Bandwidth utilization was: 0.4940 Mbits Friendliness ratio was: 0.8903 Based on these results random 0 is more favorable for TCP-friendliness. Thank you. Chua ----- Original Message ----- From: "Chua Hong Nung" To: Sent: Tuesday, August 10, 2004 1:47 PM Subject: [ns] When to set $cbr set random_ to 1? > >Hi, >I ran simulations of a TCP-friendly protocol and TCP. When I set ($cbr set) >random_ to 1, chartwise >the throughput of both TCP and TCP-friedly protocol were smooth. However >when I set ($cbr set) >random_ to 0, both protocols exhibited volatile throughput. > >In cbr_traffic.cc, the random_ parameter will be used in this proc > >double CBR_Traffic::next_interval(int& size) >{ >// Recompute interval in case rate_ or size_ has changes >interval_ = (double)(size_ << 3)/(double)rate_; >double t = interval_; >if (random_) >t += interval_ * Random::uniform(-0.5, 0.5); >size = size_; >if (++seqno_ < maxpkts_) >return(t); >else >return(-1); >} > > >Would anyone give me some idea when I should set rondom to 1 or 0, and >which >one produces more accurate result. > >Thank you. > >Chua > >_________________________________________________________________ >Want to block unwanted pop-ups? Download the free MSN Toolbar now! >http://toolbar.msn.co.uk/ > > _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ From naby_djoubar at hotmail.com Tue Aug 10 00:38:10 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Tue Aug 10 00:40:53 2004 Subject: [ns] help with the bashrc file Message-ID: Hi everybody Could somebody send me/ post a version of a working bashrc file? mine doesn't seem to work. here's what I got: export NS_HOME=/home/Naby/ns-allinone-2.27/ns-2.27 export PATH=$NS_HOME/tcl8.4.5/unix:$NS_HOME/tk8.4.5/unix:$NS_HOME/bin:$PATH export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.5/unix:$NS_HOME/tk8.4.5/unix:\ $NS_HOME/otcl-1.8:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.4.5/library # User dependent .bashrc file # See man bash for more options... # Don't wait for job termination notification # set -o notify # Don't use ^D to exit # set -o ignoreeof # Don't put duplicate lines in the history. # export HISTCONTROL=ignoredups # Some example alias instructions # alias less='less -r' # alias rm='rm -i' # alias whence='type -a' # alias ls='ls -F --color=tty' # alias dir='ls --color=auto --format=vertical' # alias vdir='ls --color=auto --format=long' # alias ll='ls -l' # alias la='ls -A' # alias l='ls -CF' # Some example functions # function settitle() { echo -n "^[]2;$@^G^[]1;$@^G"; } Thanks for any reply. _________________________________________________________________ Gardez le contr?le gr?ce ? la protection contre les fen?tres pop-up articul?e sur la technologie brevet?e Microsoft SmartScreen http://join.msn.com/?pgmarket=fr-ca&page=features/popup Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From hazam at email.it Tue Aug 10 00:43:46 2004 From: hazam at email.it (Emanuele Di Saverio) Date: Tue Aug 10 00:45:54 2004 Subject: [ns] AODV Delay References: Message-ID: <001101c47ead$c4cc1e90$0100a8c0@diza1> Guys, I was wondering why the forward() function in AODV.cc assumes a random delay (and doesn't use the one passed as argument) when forwarding a Broadcast packet. What is the reason behind that? Thanks Emanuele -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Con American Diet System Giorno e Notte dimagrisci mangiando e dormendo! * Garanzia Soddisfatti o Rimborsati. * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2628&d=10-8 From savoric at ee.tu-berlin.de Tue Aug 10 01:34:09 2004 From: savoric at ee.tu-berlin.de (Michael Savoric) Date: Tue Aug 10 01:36:55 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: Message-ID: <41188881.51D75932@ee.tu-berlin.de> Hi, look at ns-default.tcl in tcl/lib/. There is a variable called Agent/TCP set timestamps_ which can be set to true or false. And the variable Agent/TCP set ts_option_size_ gives you the size of the timestamp option. Best regards, Michael ====================================================== E-Mail: savoric@ee.tu-berlin.de Phone: (+49 30) 314-23840 Fax: (+49 30) 314-23818 Postal address: Technical University Berlin Telecommunication Networks Group (TKN) Einsteinufer 25, 10587 Berlin ====================================================== From savoric at ee.tu-berlin.de Tue Aug 10 01:36:53 2004 From: savoric at ee.tu-berlin.de (Michael Savoric) Date: Tue Aug 10 01:38:52 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> Message-ID: <41188925.247F6540@ee.tu-berlin.de> Soo-Hyun Choi wrote: > > Hi, Michael, > > I think the TCP timestamp option is included in the TCP header. In other > words, if we look at the 'hdr_tcp' struct in tcp.h, we can see that there is > 'double ts_;' which means the TCP timestamp. Where do you find that the TCP > timestamp is separate to the TCP header options? > > Thanks, > Soo-Hyun > Hi, of course, every built-in header field is included in the ns-2 headers. But there are some variables which enable or disable such header fields, e.g., for the timestamp option the following variables defined in .../tcl/lib/ns-default.tcl are relevant: Agent/TCP set timestamps_ and Agent/TCP set ts_option_size_ Best regards, Michael ====================================================== E-Mail: savoric@ee.tu-berlin.de Phone: (+49 30) 314-23840 Fax: (+49 30) 314-23818 Postal address: Technical University Berlin Telecommunication Networks Group (TKN) Einsteinufer 25, 10587 Berlin ====================================================== From dtriant at ics.forth.gr Tue Aug 10 01:43:11 2004 From: dtriant at ics.forth.gr (Despoina Triantafyllidou) Date: Tue Aug 10 01:45:56 2004 Subject: [ns] tcl8.4.5 make fails! In-Reply-To: References: Message-ID: Hello, what is exactly the failure message? What is your machine? I suggest you left the allinone package and try the piece-by-piece installation. For this, I attach a log file I made after my installation. Now, you say that you reinstall ns...do you know that if you have already compiled tcl once you must do "make distclean" before compiling it again? For details on this see tcl8.4.5/unix/README I hope something of the above will help. Regards, Despina. On Sun, 8 Aug 2004, Naby Djoubar Soumah wrote: > > Hi > > I've tried to reinstall ns-2 but tcl8.4.5 make fails...I even downloaded the > "ns-allinone-2.27.tar.gz" again without any success.. > > now what?! > > _________________________________________________________________ > Partagez une seule photo ou un diaporama complet dans MSN Messenger. > http://join.msn.com/?pgmarket=fr-ca&page=features/messenger Commencez d?s > maintenant ? profiter de tous les avantages de MSN Premium et obtenez les > deux premiers mois GRATUITS*. > > > From dtriant at ics.forth.gr Tue Aug 10 01:45:14 2004 From: dtriant at ics.forth.gr (Despoina Triantafyllidou) Date: Tue Aug 10 01:47:55 2004 Subject: [ns] tcl8.4.5 make fails! In-Reply-To: References: Message-ID: File attached now, sorry for the inconvenience. On Tue, 10 Aug 2004, Despoina Triantafyllidou wrote: > > Hello, > > what is exactly the failure message? What is your machine? > I suggest you left the allinone package and try the piece-by-piece > installation. For this, I attach a log file I made after my installation. > > Now, you say that you reinstall ns...do you know that if you have > already compiled tcl once you must do "make distclean" before compiling it > again? For details on this see tcl8.4.5/unix/README > > I hope something of the above will help. > Regards, > Despina. > > > On Sun, 8 Aug 2004, Naby Djoubar Soumah wrote: > > > > > Hi > > > > I've tried to reinstall ns-2 but tcl8.4.5 make fails...I even downloaded the > > "ns-allinone-2.27.tar.gz" again without any success.. > > > > now what?! > > > > _________________________________________________________________ > > Partagez une seule photo ou un diaporama complet dans MSN Messenger. > > http://join.msn.com/?pgmarket=fr-ca&page=features/messenger Commencez ds > > maintenant profiter de tous les avantages de MSN Premium et obtenez les > > deux premiers mois GRATUITS*. > > > > > > > -------------- next part -------------- NS-2.27 "piece-by-piece" installation on Linux RedHat 9.0 --------------------------------------------------------- Start with downloading the packages from ns page: www.isi.edu/nsnam/ns/ns-build.html. They are separated into required and optional as follows: required optional -------- -------- tcl (8.4.5) nam tk (8.4.5) Xgraph (says needed with test-suites...?) otcl (1.8) CWeb tclcl (1.15) SGB ns (src-2.27) Gt_itm... Zlib (required for nam) For more information on the optional packages see ns page www.isi/edu/nanam/ns/ns-build.html. For now not needed. To install the required packages -------------------------------- Untar them under the same directory ns-pieces and do exactly as follows: Step 1 cd ns-pieces/tcl8.4.5/unix ./configure --enable-gcc make su (root installation is needed for tcl) make install exit do: make test (not necessary) For step 1 see also ns/tcl/unix/README. Step 2 cd ns-pieces/tk8.4.5/unix ./configure --enable-gcc make su (root installation is needed for tk) make install exit edit ~/.bash_profile and add: export TCL_LIBRARY=ns-pieces/tcl8.4.5/library:ns-pieces/tk8.4.5/library do: make test (not necessary. Interrupted it, because never completed) For step 2 see also ns/tk/unix/README. Step 3 cd ns-pieces/otcl-1.8 ./configure make cd ns-pieces/tclcl-1.15 ./configure make cd ns-pieces/ns-2.27 ./configure make NOTE: make ns-2.27 under linux had several problems. To overcome them I made the necessary changes to ns code. These changes include: a) ns/indep-utils/cmu-scen-gen/setdest/setdest.cc --> line 71: put comment: //#define INFINITY 0x00ffffff b) ns/indep-utils/cmu-scen-gen/setdest/Makefile.in --> line 40 must be: DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std c) ns/indep-utils/webtrace-conv/dec/Makefile.in --> line 41 must be: CFLAGS = @V_CCOPT@ -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std d) ns/indep-utils/webtrace-conv/nlanr/Makefile.in --> line 38 must be: CFLAGS = @V_CCOPT@ -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std edit ~/.bash_profile and add: export LD_LIBRARY_PATH=/home/dtriant/ns-pieces/tcl8.4.5/unix:/home/dtriant/ns-pieces/tk8.4.5/unix do: ./validate (takes some time...) For step 3 see also ns page: www.isi.edu/nsnam/ns/ns-build.html Step 4 Add the $HOME/ns-pieces/ns-2.27 into your PATH Most useful NS-links: --------------------- www.isi.edu/nsnam/ns www.isi.edu/cgi-bin/nsnam/htsearch From chuahn_2 at hotmail.com Tue Aug 10 01:49:50 2004 From: chuahn_2 at hotmail.com (Chua Hong Nung) Date: Tue Aug 10 01:51:52 2004 Subject: [ns] help with the bashrc file Message-ID: Hi, This is mine, you may have to change CHNung with Naby. export NS_HOME=/home/CHNung/ns-allinone-2.27/ export PATH=$NS_HOME/tcl8.4.5/unix:$NS_HOME/tk8.4.5/unix:$NS_HOME/bin:$PATH:/home/CHNung/ns-allinone-2.27/bin:/home/CHNung/ns-allinone-2.27/tcl8.4.5/unix:/home/CHNung/ns-allinone-2.27/tk8.4.5/unix export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.5/unix:/home/CHNung/ns-allinone-2.27/otcl-1.8:/home/CHNung/ns-allinone-2.27/lib:$NS_HOME/tk8.4.5/unix:\ $NS_HOME/otcl-1.8:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.4.5/library Cheers. Chua ----- Original Message ----- From: "Naby Djoubar Soumah" To: Sent: Tuesday, August 10, 2004 3:38 PM Subject: [ns] help with the bashrc file Hi everybody Could somebody send me/ post a version of a working bashrc file? mine doesn't seem to work. here's what I got: export NS_HOME=/home/Naby/ns-allinone-2.27/ns-2.27 export PATH=$NS_HOME/tcl8.4.5/unix:$NS_HOME/tk8.4.5/unix:$NS_HOME/bin:$PATH export LD_LIBRARY_PATH=$NS_HOME/tcl8.4.5/unix:$NS_HOME/tk8.4.5/unix:\ $NS_HOME/otcl-1.8:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.4.5/library # User dependent .bashrc file # See man bash for more options... # Don't wait for job termination notification # set -o notify # Don't use ^D to exit # set -o ignoreeof # Don't put duplicate lines in the history. # export HISTCONTROL=ignoredups # Some example alias instructions # alias less='less -r' # alias rm='rm -i' # alias whence='type -a' # alias ls='ls -F --color=tty' # alias dir='ls --color=auto --format=vertical' # alias vdir='ls --color=auto --format=long' # alias ll='ls -l' # alias la='ls -A' # alias l='ls -CF' # Some example functions # function settitle() { echo -n "^[]2;$@^G^[]1;$@^G"; } Thanks for any reply. _________________________________________________________________ Gardez le contrle grce la protection contre les fentres pop-up articule sur la technologie brevete Microsoft SmartScreen http://join.msn.com/?pgmarket=fr-ca&page=features/popup Commencez ds maintenant profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger From dtriant at ics.forth.gr Tue Aug 10 01:53:02 2004 From: dtriant at ics.forth.gr (Despoina Triantafyllidou) Date: Tue Aug 10 01:55:55 2004 Subject: [ns] Urgent! Please help. In-Reply-To: References: Message-ID: Hello, A way to do this is using: time_now = Scheduler::instance().clock() Find the place in which your method is called, keep the time in the beginning as time_old=0 and every time the control of the program is at that point see if (time_now-time_old > 1). If so, call your method and update: time_old = time_now. Good luck, despina. On Sun, 8 Aug 2004, Young Kim wrote: > > Hi all, > > I am trying to implement a function in mac-802_11.cc that is called > periodically, e.g. every 1 sec to adjust contention window size. > Since there is no main function in mac-802_11.cc, I am not sure how to > implement this. > And what should I use to implement this? thread? timer? signal? > Any help would be greatly appreciated. > Thank you and have a nice day. > > Young > kimyoun@auburn.edu > > From s90387 at ss.uum.edu.my Tue Aug 10 02:55:25 2004 From: s90387 at ss.uum.edu.my (Ong Bi Lynn) Date: Tue Aug 10 02:22:53 2004 Subject: [ns] ns-2 Workshop Message-ID: <1092131725.41189b8d76c92@www.e-web.uum.edu.my> NS-2 Network Simulation Workshop ================================ (Held in conjunction with IEEE RENTAS 2004) The IEEE Malaysia Computer Society is organizing a one-day NS-2 network simulation workshop on 26th November 2004, in conjunction with IEEE RENTAS 2004. This workshop is devoted to the topic of network simulation using the popular ns-2 simulator. This workshop is intended for researchers and users who are actively using, or plan to use NS-2 simulation in their research. It will bring together people who use NS-2 in their research undertakings to present their hands-on experiences (experimentation and programming) with NS-2 simulator. The workshop will give both new and experienced NS-2 users an opportunity to discuss the related issues; to share viewpoints, experiences, and materials; and to learn what others are doing, or considering doing in the area. We invite participation in this workshop from all individuals interested in these issues. Workshop participants can get involved in several ways: Submit a short one-or-two-page white paper describing your experiences, insights, and opinions on NS-2 as a simulation tool. Participate in the discussions at the workshop! Important dates: ---------------- Deadline to submit a white paper for the informal proceeding - 15 Sept. 2004 Workshop date - 26th Nov. 2004 Organizing committee: --------------------- Suhaidi Hassan (email: myns1104-at-yahoo.com) Osman Ghazali (email: myns1104-at-yahoo.com) Ong Bi Lynn (email: myns1104-at-yahoo.com) Venue: ------ Universiti Putra Malaysia, Serdang, MALAYSIA Time: ----- 8.30 am 12.00 pm, 3.00 pm 5.00 pm Fees: ----- Category Amount (RM) IEEE Member 300.00 IEEE Student Member 150.00 Non-IEEE Student Member 200.00 Others 350.00 Enquiries: ---------- For more information, please drop your e-mail at myns1104-at-yahoo.com From albert.martin at gmail.com Tue Aug 10 02:48:24 2004 From: albert.martin at gmail.com (Albert Martin) Date: Tue Aug 10 02:50:54 2004 Subject: [ns] nam: no dynamic animation events in `out.nam'. In-Reply-To: References: Message-ID: I have a loop on my tcl where I read the flow definitions from a file and create the agents, etc. I think I define correctly the cbr and tcp flows, but they don't schedule (?) I attach the tcl and the flows definition file I'm using ns-2.27 Thanks in advance Albert From hpgu at guanghua.sh.cn Tue Aug 10 02:59:16 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Tue Aug 10 03:01:54 2004 Subject: [ns] Find NS2 Users in China Message-ID: <2C175CE01348C945BCF5D20FF269A3B20223717C@master.guanghua.sh.cn> Hi; Are there some NS2 Users in China? If you are in Shanghai, it will be = wonderful. Maybe we can talk face to face. I am available through MSN: guhuaping@hotmail.com =20 3x =20 Humphrey.Gu From hatta at telecom.ee.itb.ac.id Tue Aug 10 03:04:11 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Tue Aug 10 03:06:56 2004 Subject: [ns] some problem with ./validate in ns-2.1b6 Message-ID: can you help to solve with my problem when ./validate in ns-2.1b6 is executed ? this some error in process Test output agrees with reference output ../../ns test-suite-rfc793edu.tcl rto-nokarn QUIET Test output agrees with reference output ../../ns test-suite-rfc793edu.tcl jacobson88-noss QUIET Wrong number of wnd_init_option_ 0 Test output differs from reference output Diagnose with: diff test-output-rfc793edu/jacobson88-noss.test test-output-rfc793edu/jacobson88-noss Or see URL "http://www-mash.cs.berkeley.edu/ns/ns-problems.html". ../../ns test-suite-rfc793edu.tcl jacobson88-ss QUIET Wrong number of wnd_init_option_ 0 Test output differs from reference output Diagnose with: diff test-output-rfc793edu/jacobson88-ss.test test-output-rfc793edu/jacobson88-ss Or see URL "http://www-mash.cs.berkeley.edu/ns/ns-problems.html". Some test failed. thanx From soohyunc at msn.com Tue Aug 10 03:17:36 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Tue Aug 10 03:12:01 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> <41188925.247F6540@ee.tu-berlin.de> Message-ID: Hi, Michael, Than you for your information. However, the information that you have given is partly correct. The 'Agent/TCP timestamp_' option in 'ns-default.tcl' indicates the timestamp option for TCP whether it is the normal timestamp or the RFC1323-like timestamp. Thus, as you pointed, if we look at the file 'ns-default.tcl', we can see the value of 'Agent/TCP timestamp_' is set to false by default which means in a normal case we're using the normal TCP timestamp. The size of the normal TCP timestamp is included in the TCP header, which is 40 bytes in total for the TCP header. In case of the RFC1323-like TCP timestamp, we can enable it or disable it by setting the option as the above which incur 10 bytes addition to the TCP header size. If we look at the 'delay_bind_dispatch()' function and 'headersize()' function in the tcp.cc, then we can have this clear idea how it works. Best, Soo-Hyun ----- Original Message ----- From: "Michael Savoric" To: "Soo-Hyun Choi" Cc: "Chua Hong Nung" ; Sent: Tuesday, August 10, 2004 9:36 AM Subject: Re: [ns] A question about Agent/TCP set packetSize_ > Soo-Hyun Choi wrote: > > > > Hi, Michael, > > > > I think the TCP timestamp option is included in the TCP header. In other > > words, if we look at the 'hdr_tcp' struct in tcp.h, we can see that there is > > 'double ts_;' which means the TCP timestamp. Where do you find that the TCP > > timestamp is separate to the TCP header options? > > > > Thanks, > > Soo-Hyun > > > > Hi, > of course, every built-in header field is included in the > ns-2 headers. > But there are some variables which enable or disable such > header > fields, e.g., for the timestamp option the following > variables defined > in .../tcl/lib/ns-default.tcl are relevant: > > Agent/TCP set timestamps_ > > and > > Agent/TCP set ts_option_size_ > > Best regards, > Michael > > ====================================================== > E-Mail: savoric@ee.tu-berlin.de > > Phone: (+49 30) 314-23840 > > Fax: (+49 30) 314-23818 > > Postal address: Technical University Berlin > Telecommunication Networks Group (TKN) > Einsteinufer 25, 10587 Berlin > ====================================================== > > From hpgu at guanghua.sh.cn Tue Aug 10 03:25:24 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Tue Aug 10 03:29:27 2004 Subject: [ns] Is MobiWan is the best NS2-mipv6 implementation? Message-ID: <2C175CE01348C945BCF5D20FF269A3B202237190@master.guanghua.sh.cn> Hi; Is there some other NS2-mipv6 implementation model? Is some one can give me some links ? 3x in advance!! =20 Humphrey.GU From yazeed-al-sbou at maktoob.com Tue Aug 10 03:31:11 2004 From: yazeed-al-sbou at maktoob.com (yazeed al-sbou) Date: Tue Aug 10 03:47:32 2004 Subject: [ns] please help in Loss in TCP Message-ID: Hi all... I did some simulations using TCP tarnsport prtocol, but I want to calculate the losses,(i.e. how can I calculate it for TCP agent.....? Thanks alot for your help... Yazeed.. Yazeed Ahamd Al-Sbou, Research Student School of Engineering Sheaf Building - Room 4311, Sheffield Hallam University,City Campus Sheiffield, S1 1WB,UK Tel(university):+441142253254 Mobile +447813402741 Yazeed.A.Al-Sbou@student.shu.ac.uk _________________________________________________ Where Arabs meet http://www.maktoob.com From savoric at ee.tu-berlin.de Tue Aug 10 03:56:05 2004 From: savoric at ee.tu-berlin.de (Michael Savoric) Date: Tue Aug 10 03:59:47 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> <41188925.247F6540@ee.tu-berlin.de> Message-ID: <4118A9C5.44B7447A@ee.tu-berlin.de> Hi, the standard TCP header has a size of 20 bytes and does not include a timestamp, neither a standard nor a RCF-like one. If you want to use a timestamp for your TCP segment you have to add some bytes to the TCP header, e.g., 10 (or 12 to be more precise). Best regards, Michael ====================================================== E-Mail: savoric@ee.tu-berlin.de Phone: (+49 30) 314-23840 Fax: (+49 30) 314-23818 Postal address: Technical University Berlin Telecommunication Networks Group (TKN) Einsteinufer 25, 10587 Berlin ====================================================== From soohyunc at msn.com Tue Aug 10 04:13:05 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Tue Aug 10 04:08:13 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> <41188925.247F6540@ee.tu-berlin.de> <4118A9C5.44B7447A@ee.tu-berlin.de> Message-ID: Hi, What you are mentioning is a real world TCP. What I described is the TCP in the ns-2 simulator. Best, Soo-Hyun ----- Original Message ----- From: "Michael Savoric" To: "Soo-Hyun Choi" Cc: Sent: Tuesday, August 10, 2004 11:56 AM Subject: Re: [ns] A question about Agent/TCP set packetSize_ > Hi, > the standard TCP header has a size of 20 bytes and does > not include a timestamp, neither a standard nor a > RCF-like one. > If you want to use a timestamp for your TCP segment you > have to add some bytes to the TCP header, e.g., 10 > (or 12 to be more precise). > > Best regards, > Michael > > ====================================================== > E-Mail: savoric@ee.tu-berlin.de > > Phone: (+49 30) 314-23840 > > Fax: (+49 30) 314-23818 > > Postal address: Technical University Berlin > Telecommunication Networks Group (TKN) > Einsteinufer 25, 10587 Berlin > ====================================================== > > From ppl at nbnet.nb.ca Tue Aug 10 04:44:19 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Tue Aug 10 04:47:30 2004 Subject: [ns] please help in Loss in TCP In-Reply-To: References: Message-ID: <20040810114419.GA25588@bloodaxis> Hi, You probably want to look for "Flow monitor" or "queue monitor" in the ns manual. Alternativly, you could look for drop events in the NAM trace. http://nile.wpi.edu/NS/ -- See "Post Simulation" section On Tue, Aug 10, 2004 at 10:31:11AM +0000, yazeed al-sbou wrote: > > > Hi all... > I did some simulations using TCP tarnsport prtocol, but I want to calculate the > losses,(i.e. how can I calculate it for TCP agent.....? > > Thanks alot for your help... > Yazeed.. Good luck, ppl From zhahui at gmail.com Tue Aug 10 04:55:25 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Tue Aug 10 04:57:58 2004 Subject: [ns] A question about Agent/TCP set packetSize_ In-Reply-To: References: <411737F8.B60ACB02@ee.tu-berlin.de> <41188925.247F6540@ee.tu-berlin.de> <4118A9C5.44B7447A@ee.tu-berlin.de> Message-ID: Yes, I think Soo-Hyun is right. In ns2, a normal TCP header is 40 bytes. you also could see this in any ns2 trace file including tcp traffic. And Soo-Hyun made me clear by indicating when we can get a 50 bytes tcp header. That's because we choose a different TCP timestamp format. -zh On Tue, 10 Aug 2004 12:13:05 +0100, Soo-Hyun Choi wrote: > > Hi, > > What you are mentioning is a real world TCP. What I described is the TCP in > the ns-2 simulator. > > Best, > Soo-Hyun > > > > > ----- Original Message ----- > From: "Michael Savoric" > To: "Soo-Hyun Choi" > Cc: > Sent: Tuesday, August 10, 2004 11:56 AM > Subject: Re: [ns] A question about Agent/TCP set packetSize_ > > > Hi, > > the standard TCP header has a size of 20 bytes and does > > not include a timestamp, neither a standard nor a > > RCF-like one. > > If you want to use a timestamp for your TCP segment you > > have to add some bytes to the TCP header, e.g., 10 > > (or 12 to be more precise). > > > > Best regards, > > Michael > > > > ====================================================== > > E-Mail: savoric@ee.tu-berlin.de > > > > Phone: (+49 30) 314-23840 > > > > Fax: (+49 30) 314-23818 > > > > Postal address: Technical University Berlin > > Telecommunication Networks Group (TKN) > > Einsteinufer 25, 10587 Berlin > > ====================================================== > > > > > > -- Best regards, Hui From savoric at ee.tu-berlin.de Tue Aug 10 05:22:30 2004 From: savoric at ee.tu-berlin.de (Michael Savoric) Date: Tue Aug 10 05:25:15 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> <41188925.247F6540@ee.tu-berlin.de> <4118A9C5.44B7447A@ee.tu-berlin.de> Message-ID: <4118BE06.EFCEA3D@ee.tu-berlin.de> "zhahui@gmail" wrote: > > Yes, I think Soo-Hyun is right. In ns2, a normal TCP header is 40 > bytes. you also > could see this in any ns2 trace file including tcp traffic. > And Soo-Hyun made me clear by indicating when we can get a 50 bytes > tcp header. That's because we choose a different TCP timestamp format. > > -zh > > On Tue, 10 Aug 2004 12:13:05 +0100, Soo-Hyun Choi wrote: > > > > Hi, > > > > What you are mentioning is a real world TCP. What I described is the TCP in > > the ns-2 simulator. > > > > Best, > > Soo-Hyun Hi, and what do you want to find out by your simulations? Behavior of real TCP or of ns-2 TCP? I prefer the first case. And then I have to use the correct TCP header size with / without options. In addition, what you see in the trace file is the size of the whole (!) IP packet including the IP header (20 bytes), the TCP header (>= 20 bytes) and the payload. Best regards, Michael ====================================================== E-Mail: savoric@ee.tu-berlin.de Phone: (+49 30) 314-23840 Fax: (+49 30) 314-23818 Postal address: Technical University Berlin Telecommunication Networks Group (TKN) Einsteinufer 25, 10587 Berlin ====================================================== From david.pacifico at jhuapl.edu Tue Aug 10 05:32:01 2004 From: david.pacifico at jhuapl.edu (Dave Pacifico) Date: Tue Aug 10 05:34:57 2004 Subject: [ns] Mobile Node Broadcasting Message-ID: <4118C041.9040505@jhuapl.edu> Hi, I am beginning some work with wireless networks in NS-2 for the Johns Hopkins Applied Physics Lab and I'm having trouble getting nodes to broadcast data packets and have other nodes receive them. I see functionality for it in the source code and it's used for ACK, RTS, and CTS packets, but I want to do simple broadcast so anyone within range receives the actual data packet. Thanks a lot for your help. - Dave From knkwon at ajou.ac.kr Tue Aug 10 05:58:16 2004 From: knkwon at ajou.ac.kr (Kyoungnam Kwon) Date: Tue Aug 10 06:02:56 2004 Subject: [ns] please help in IEEE 802.11 Message-ID: Hi, I'm going to simulate new CAC algorithm for IEEE 802.11. I want to make that a node will transmit virtual frame. This frame is not transmitted in wireless channel. The node of transmitting virtual frame monitors wireless channel and it determines collision when virtual frame and other real frames are transmitted in same time slot. I try to implement it. I insert the code in check_pktRTS in order to hold frame transmission, but I cannot stop to transmit RTS and DATA frame. How can I solve this problem? Thanks in advance. From soohyunc at msn.com Tue Aug 10 06:38:51 2004 From: soohyunc at msn.com (Soo-Hyun Choi) Date: Tue Aug 10 06:34:00 2004 Subject: [ns] A question about Agent/TCP set packetSize_ References: <411737F8.B60ACB02@ee.tu-berlin.de> <41188925.247F6540@ee.tu-berlin.de> <4118A9C5.44B7447A@ee.tu-berlin.de> <4118BE06.EFCEA3D@ee.tu-berlin.de> Message-ID: > > Hi, > and what do you want to find out by your simulations? > Behavior of > real TCP or of ns-2 TCP? > I prefer the first case. And then I have to use the correct > TCP header > size with / without options. This is another issue. I also want to have to find out the real world TCP behaviour over various network platforms. But in reality, we are faced with a sort of restrictions to exploit a real world network - i.e., most commercial ISPs do not open their network to the research community for the purpose of learning the TCP behaviour. This is the reason why we carry on our simulation over the network simulator such as the ns-2. Moreover, suppose we created a new congestion control protocol, then, literally, there is almost no way to test/verify our newly designed protocol over the real network. By the way, you can use the real world TCP segment header size over the ns-2 simulation, but it still doesn't guarantee at all that you're getting the real world TCP behaviour. > > In addition, what you see in the trace file is the size of > the whole (!) > IP packet including the IP header (20 bytes), the TCP header > (>= 20 bytes) > and the payload. This is correct for the real world TCP/IP datagram, and I am also aware of it. In the ns-2, the base header size of TCP/IP is set to 40 bytes as whole by default - there is no clear clue whether 20 bytes belong to TCP or IP. By the way, what we were talking about is the size of timestamp whether it is included in the TCP/IP header size or not. In a normal case under ns-2, the size of timestamp is included with the TCP header size. If we enable the 'Agent/TCP timestamp_' option, then the header size will increase by 10 bytes. In addition, it is confusing as you mention the real world TCP sometime and the ns-2's TCP implementation the other time. Best, Soo-Hyun From tongsut at iit.edu Tue Aug 10 09:59:42 2004 From: tongsut at iit.edu (Sutep Tongngam) Date: Tue Aug 10 10:04:40 2004 Subject: [ns] Mobile Node Broadcasting Message-ID: <11c40f311beec3.11beec311c40f3@iit.edu> Hi, ~/ns/diffusion and ~/ns/tcl/test and find a wireless test suite of diffusion might be a good example. Sutep. ----- Original Message ----- From: Dave Pacifico Date: Tuesday, August 10, 2004 6:32 am Subject: [ns] Mobile Node Broadcasting > > Hi, > I am beginning some work with wireless networks in NS-2 for > the > Johns Hopkins Applied Physics Lab and I'm having trouble getting > nodes > to broadcast data packets and have other nodes receive them. I > see > functionality for it in the source code and it's used for ACK, > RTS, and > CTS packets, but I want to do simple broadcast so anyone within > range > receives the actual data packet. Thanks a lot for your help. > > - Dave > > From luciano at cetuc.puc-rio.br Tue Aug 10 10:00:28 2004 From: luciano at cetuc.puc-rio.br (luciano@cetuc.puc-rio.br) Date: Tue Aug 10 10:05:02 2004 Subject: [ns] awk or perl throuphut, delay and jitter Message-ID: <3078.200.165.98.170.1092157228.squirrel@200.165.98.170> Hi all, really need some help. I was working with tracegraph to analyze my trace files but i got error for big size files. I'd like to get some awk or perl script to continue my analysis,please!!! It very important. Well, i'm working Mac 802.11 (wired -cum-wireless) and using FTP over tcp, traffic exponential over udp. Cherrs, Luciano From jpneo2004 at yahoo.com Tue Aug 10 10:10:24 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Tue Aug 10 10:15:14 2004 Subject: [ns] PLEASE!!!! URGENT!!!! UNDEFINED REFERENCE TO VTABLE!!! Message-ID: <20040810171024.50731.qmail@web21524.mail.yahoo.com> Hi everybody, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" Seems that the problem is what parameters to pass in the constructor method. Example: ISTPAgent:: ISTPAgent(packet_t type): Agent(type) Anyone knows if its correct? Anyone had this kind of problem anytime?? Please guys, I really need your help, this is very urgent!!!!! thanks a lot, J.P. --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. From jpneo2004 at yahoo.com Tue Aug 10 10:10:28 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Tue Aug 10 10:15:30 2004 Subject: [ns] PLEASE!!!! URGENT!!!! UNDEFINED REFERENCE TO VTABLE!!! Message-ID: <20040810171028.91834.qmail@web21522.mail.yahoo.com> Hi everybody, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" Seems that the problem is what parameters to pass in the constructor method. Example: ISTPAgent:: ISTPAgent(packet_t type): Agent(type) Anyone knows if its correct? Anyone had this kind of problem anytime?? Please guys, I really need your help, this is very urgent!!!!! thanks a lot, J.P. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From jpneo2004 at yahoo.com Tue Aug 10 10:10:14 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Tue Aug 10 10:15:39 2004 Subject: [ns] PLEASE!!!! URGENT!!!! UNDEFINED REFERENCE TO VTABLE!!! Message-ID: <20040810171014.13338.qmail@web21525.mail.yahoo.com> Hi everybody, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" Seems that the problem is what parameters to pass in the constructor method. Example: ISTPAgent:: ISTPAgent(packet_t type): Agent(type) Anyone knows if its correct? Anyone had this kind of problem anytime?? Please guys, I really need your help, this is very urgent!!!!! thanks a lot, J.P. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From jpneo2004 at yahoo.com Tue Aug 10 10:10:32 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Tue Aug 10 10:15:59 2004 Subject: [ns] PLEASE!!!! URGENT!!!! UNDEFINED REFERENCE TO VTABLE!!! Message-ID: <20040810171032.93773.qmail@web21521.mail.yahoo.com> Hi everybody, Im having the same problem than Frank Day had. When i make my new agent code and call the constructor method, it reports "undefined reference to `vtable for myAgent'" Seems that the problem is what parameters to pass in the constructor method. Example: ISTPAgent:: ISTPAgent(packet_t type): Agent(type) Anyone knows if its correct? Anyone had this kind of problem anytime?? Please guys, I really need your help, this is very urgent!!!!! thanks a lot, J.P. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From klee at nps.edu Tue Aug 10 10:54:45 2004 From: klee at nps.edu (Lee, Kok Thong SGP) Date: Tue Aug 10 10:57:33 2004 Subject: [ns] Makefile Message-ID: Hi Just a short question. I have make some changes to the AODV files and added some more cc files. How do i include that in the Makefile.in ? I mean where are places that i need to take care, is it just OBJ_CC= .. aodv/myaodvfile1.o aodv/myaodvfile2.o \ then, make clean, make Thanks! Rgds Francis lee From klee at nps.edu Tue Aug 10 10:59:03 2004 From: klee at nps.edu (Lee, Kok Thong SGP) Date: Tue Aug 10 11:02:07 2004 Subject: [ns] awk or perl throuphut, delay and jitter Message-ID: Check out nans at http://www.geocities.com/ankurjain009/projects.htm Got the same problem for tracegraph for big files, turn off unnecessary trace if not needed. Re-try again, works after few attempts. -----Original Message----- From: ns-users-bounces@ISI.EDU on behalf of luciano@cetuc.puc-rio.br Sent: Tue 8/10/2004 10:00 AM To: ns-users@ISI.EDU Cc: Subject: [ns] awk or perl throuphut, delay and jitter Hi all, really need some help. I was working with tracegraph to analyze my trace files but i got error for big size files. I'd like to get some awk or perl script to continue my analysis,please!!! It very important. Well, i'm working Mac 802.11 (wired -cum-wireless) and using FTP over tcp, traffic exponential over udp. Cherrs, Luciano From stefano977 at hotmail.com Tue Aug 10 11:05:53 2004 From: stefano977 at hotmail.com (stefano D.) Date: Tue Aug 10 11:08:03 2004 Subject: [ns] how many channel use 802.11 Message-ID: hi, I need to know how many channels use mac 802.11 in ns-2.26 (or 2.27) and the bitrate, becouse I would want to calculate the blocking probability of a call. thanks very much for any suggestion _________________________________________________________________ Ricerche online pi? semplici e veloci con MSN Toolbar! http://toolbar.msn.it/ From petrinetze at netscape.net Tue Aug 10 11:49:34 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Tue Aug 10 11:54:40 2004 Subject: [ns] How to set the traffic rate? Message-ID: <411918BE.20506@netscape.net> Hello my friends, I know that we can set the traffic rate distributioin for UDP, for example, exponential and pareto. But I can not find anyone to implement it for TCP. Is it possible? How to do it? thanks in advance Haidong From petrinetze at netscape.net Tue Aug 10 11:49:48 2004 From: petrinetze at netscape.net (Haidong Wan) Date: Tue Aug 10 11:54:50 2004 Subject: [ns] How to set the traffic rate? Message-ID: <411918CC.5050700@netscape.net> Hello my friends, I know that we can set the traffic rate distributioin for UDP, for example, exponential and pareto. But I can not find anyone to implement it for TCP. Is it possible? How to do it? thanks in advance Haidong From yofanvt at yahoo.com Tue Aug 10 13:36:01 2004 From: yofanvt at yahoo.com (fan fan) Date: Tue Aug 10 13:39:51 2004 Subject: [ns] URGENT< PLEASE HELP> where to find scripts for SENSOR NETWORK simulation? Message-ID: <20040810203601.73413.qmail@web53404.mail.yahoo.com> Dear friends: Could you tell me where I can find the script for simulating sensor network? I didn't find any from ns2 website. I want to find some paper or corresponding scripts to simulate such environment.I am studying security problem for sensor network. Please help! Thanks a lot!!! Fan --------------------------------- Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. From ppl at nbnet.nb.ca Tue Aug 10 13:57:25 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Tue Aug 10 14:00:10 2004 Subject: [ns] PLEASE!!!! URGENT!!!! UNDEFINED REFERENCE TO VTABLE!!! In-Reply-To: <20040810171032.93773.qmail@web21521.mail.yahoo.com> References: <20040810171032.93773.qmail@web21521.mail.yahoo.com> Message-ID: <20040810205725.GA26882@bloodaxis> Hi Mr. Gonalves, I don't have the answer to your question. Although I think, for everyone interest, that you should try to avoid duplicate postings. I also suggest you to read this informative document about netiquette: http://www.catb.org/~esr/faqs/smart-questions.html#id2889039 and http://www.catb.org/~esr/faqs/smart-questions.html#urgent Have a good day, A ns-2 user. P.S. You might want to try `make depend` From hatta at telecom.ee.itb.ac.id Tue Aug 10 17:19:34 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Tue Aug 10 17:24:38 2004 Subject: [ns] some problem with ./validate in ns-2.1b6 Message-ID: can you help to solve with my problem when ./validate in ns-2.1b6 is executed ? this some error in process Test output agrees with reference output ../../ns test-suite-rfc793edu.tcl rto-nokarn QUIET Test output agrees with reference output ../../ns test-suite-rfc793edu.tcl jacobson88-noss QUIET Wrong number of wnd_init_option_ 0 Test output differs from reference output Diagnose with: diff test-output-rfc793edu/jacobson88-noss.test test-output-rfc793edu/jacobson88-noss Or see URL "http://www-mash.cs.berkeley.edu/ns/ns-problems.html". ../../ns test-suite-rfc793edu.tcl jacobson88-ss QUIET Wrong number of wnd_init_option_ 0 Test output differs from reference output Diagnose with: diff test-output-rfc793edu/jacobson88-ss.test test-output-rfc793edu/jacobson88-ss Or see URL "http://www-mash.cs.berkeley.edu/ns/ns-problems.html". Some test failed. thanx From bourlona at ensisun.imag.fr Tue Aug 10 20:28:16 2004 From: bourlona at ensisun.imag.fr (Antoine Bourlon) Date: Tue Aug 10 20:31:34 2004 Subject: [ns] DSDV/feedback from the link layer Message-ID: <1092194896.41199250abd3b@webmail.imag.fr> Hello erveryone, Some remarks on ns' DSDV implementation. Comments appreciated! - The infinite loop bug reported and corrected for example in... http://mailman.isi.edu/pipermail/ns-users/2003-October/036956.html ... is still here in ns-2.27 - If feedback from the LL/MAC layer is enabled, DSDV still goes into infinite loops even after applying the patch mentioned above. The reason is that when the ARP module receives ARP_MAX_REQUEST_COUNT (3 by default) requests for the same IP address, it alerts the routing agent, DSDV, through the mac_callback function. Therefore when 3 packets are successively "dequeued" by DSDV for destination D, if the LL does not know the MAC address of the next hop to D, it passes the third packet (the first 2 were silently dropped) back to DSDV. DSDV checks the next hop of the packet, invalidates routes going through it, and puts the packet back into the queue... All this without any scheduled event (the MAC layer did not even have time to send any of the ARP request packets but the link is considered broken... am I wrong?). This has been corrected in AODV by waiting ARP_DELAY before each "dequeued" packet transmission - When DSDV receives a broken link report from the LL/MAC, it does not remove the other packets going though this broken link from the interface queue (filtering). This part has been disabled with a "#if 0" but AODV uses it. DSDV does not even have access to this interface queue. The command ll-queue is there in dsdv.cc and used to be called in the create-dsdv-routing-agent procedure (ns/tcl/mobility/dsdv.tcl): #$ragent ll-queue [$node get-queue 0] ;# ugly filter-queue hack Ugly hack?? Anyway this create-dsdv-routing-agent procedure is not used anymore. This should be done in ns/tcl/lib/ns-mobilenode.tcl as it is for AODV. - In CMU's paper "A Performance Comparison of Multi-Hop Wireless Ad Hoc Network Routing Protocols", the authors suggest not to use feedback from the LL/MAC in DSDV, and use DSDV-SQ instead (broadcast updates for new seqnum). The reason they give is that when a node detects a link break, it invalidates (infinite metric, seqnum increased by 1) and broadcasts all routes going through the same link. All nodes accept and propagate the invalidated routes (except if they hold a fresher sequence number), making the destination of the routes unreachable for everyone (even if the node which detected the link break was the only one to use this link to reach the destination...). In fact in my experiments I get much better results with feedback from the LL/MAC enabled (let's call it DSDV-LL) than with DSDV-SQ (PDR above 96% even for pause times below 300s, while SQ does not converge at such high mobility levels) for 10 and 20 sources. Performance indeed suffers with 30 sources. The reason seems to be the huge routing overhead induced by the propagation of routing update packets. In the ns implementation, there is a limit on triggered (incremental) update packet transmissions : #define DSDV_MIN_TUP_PERIOD 1.0 // minimum time between triggered updates so that routing overhead is almost constant with DSDV-SQ in CMU's simulations (50 nodes that almost always have something new to advertise, 900 seconds -> 45000 packets). In my simulations, with DSDV-LL and 30 sources I got up to 180000 transmissions of DSDV routing update packets, despite the 1-second interval between updates. The reason is that when a node receives an update packet with an infinite metric for the route to itself, it immediately broadcasts a full-dump update. If it receives such update packet from 10 neighbors, it will successively broadcast 10 full-dump updates. There is indeed no limit on full-dump update broadcasts (they are supposed to be more or less periodic). Putting a limit on them, I got a PDR above 95% for all pause times, whatever the number of sources, and a routing overhead between 18000 (static topology) and 42000 (no pause) packets with 30 sources. One can argue that with feedback from the MAC layer enabled, DSDV becomes a bit too "on-demand" : nodes request new routes by broadcasting invalidated route. Destinations of invalidated routes answers immedaitely by generating and broadcasting a new sequence number... some kind of RREQ/RREP. Nodes do not even need sending periodic updates and could broadcast an invalidated route from the beginning, to trigger the reply from the destination. Conclusion? DSDV seems to be abandoned by the ns community, and has not really changed since the original implementation by CMU in 98. Because the results of the comparison in their paper were too bad? because there is no internet draft for DSDV (bad performance, overhead)? But DSDV performance can be greatly improved with minor changes, and since it's still here in ns, what about some renewal for the next version? Thanks to those who read until here :) Regards, Antoine Bourlon ------------------------------------------------- envoy? via Webmail/IMAG ! From cslow78 at yahoo.com Tue Aug 10 20:44:41 2004 From: cslow78 at yahoo.com (low chee sing) Date: Tue Aug 10 20:47:15 2004 Subject: [ns] Trace Graph In-Reply-To: <000d01c47e19$7bb2bcd0$771db450@befrag> Message-ID: <20040811034441.6546.qmail@web14201.mail.yahoo.com> Please check whether you have inserted the coreect format of node-to-IP conversion used in tracegraph, e.g. 0.0 or 0:0, and make sure you have node number for each IP detected in xxx.tr.ip --- Giovanni Bisegna wrote: > > Hi everyone, > i'm trying to use TraceGraph for analyze my ns trace files, > but when i try to put as input file an wired-cum-wireless trace > file, i receive an error: Cannot read the IP file! > Someone knows what's the problem? > > I need to calculate the real bandwidth of a 802.11b system, but > i don't know how. Exists a program or a script that calculates > the bandwidth through the trace file? > > Someone can helps me? > > Thanks in advance, > > Giovanni Bisegna > ===== ---------------------- Low Chee Sing UKM Mercator Office Phone: +603 8921 6191 Fax: +603 8925 6629 __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From karimsyed008 at yahoo.com Tue Aug 10 21:51:04 2004 From: karimsyed008 at yahoo.com (karim sayed) Date: Tue Aug 10 21:54:18 2004 Subject: [ns] simulating IEEE 802.11e EDCF Message-ID: <20040811045104.25772.qmail@web60004.mail.yahoo.com> hai , I am trying to simulate IEEE 802.11e edcf downloaded from tkn. I did all priliminary changes but i did not understand the line " make clean;make depend;" After running the make command "make -d" i tried to run the programme but it is shownig the following error invalid command name "Mac/802_11e" while executing "Mac/802_11e create _o54 " 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 $mactype" (procedure "_o44" line 10) (Node/MobileNode add-interface line 10) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 66) (Simulator create-wireless-node line 66) invoked from within "_o3 create-wireless-node 1.0.0" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns node 1.0.0" invoked from within "set BS(0) [$ns node 1.0.0]" (file "multi_udpflows.tcl" line 91) Anyone please help to solve the problem waiting for reply Thank u __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From karimsyed008 at yahoo.com Tue Aug 10 21:55:05 2004 From: karimsyed008 at yahoo.com (karim sayed) Date: Tue Aug 10 21:58:00 2004 Subject: [ns] simulating IEEE 802.11e EDCF Message-ID: <20040811045505.47045.qmail@web60003.mail.yahoo.com> hai , I am new to ns and I am trying to simulate IEEE 802.11e EDCF downloaded from tkn. I did all priliminary changes but i did not understand the line " make clean;make depend;" After running the make command I am getting an error message as follows mac/802_11e/mac-802_11e.cc:1708: `struct hdr_mac802_11' has no member named ` dh_da' mac/802_11e/mac-802_11e.cc:1538: `struct hdr_mac802_11' has no member named ` dh_sa' Anyone please help to solve the problem waiting for reply Thank u __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dtriant at ics.forth.gr Tue Aug 10 23:05:44 2004 From: dtriant at ics.forth.gr (Despoina Triantafyllidou) Date: Tue Aug 10 23:08:03 2004 Subject: [ns] simulating IEEE 802.11e EDCF In-Reply-To: <20040811045505.47045.qmail@web60003.mail.yahoo.com> References: <20040811045505.47045.qmail@web60003.mail.yahoo.com> Message-ID: Hello, the only I know to help you is that in ns-2.26, in the file ns/mac/mac-802_11.h, the mac header of the packet is a struct that contains the sender address: dh_sa and the destination address: dh_da struct hdr_mac802_11 { struct frame_control dh_fc; u_int16_t dh_duration; u_char dh_da[ETHER_ADDR_LEN]; u_char dh_sa[ETHER_ADDR_LEN]; u_char dh_bssid[ETHER_ADDR_LEN]; u_int16_t dh_scontrol; u_char dh_body[0]; // XXX Non-ANSI }; In ns-2.27 these two struct members have changed and are: transmitter address: dh_ta and receiver address: dh_ra So, see if in the file ns/mac/802_11.cc the first two are used instead of the second, and change them. See how they are defined in mac-802_11.h. Despina. On Tue, 10 Aug 2004, karim sayed wrote: > > hai , > I am new to ns and I am trying to simulate IEEE > 802.11e EDCF downloaded from tkn. > I did all priliminary changes but i did not understand > the line > " make clean;make depend;" > After running the make command > I am getting an error message as follows > > mac/802_11e/mac-802_11e.cc:1708: `struct > hdr_mac802_11' has no member named ` dh_da' > > mac/802_11e/mac-802_11e.cc:1538: `struct > hdr_mac802_11' has no member named ` dh_sa' > > > > Anyone please help to solve the problem > > waiting for reply > > Thank u > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > From kenneth at daimi.au.dk Tue Aug 10 23:35:49 2004 From: kenneth at daimi.au.dk (Kenneth Nielsen) Date: Tue Aug 10 23:37:00 2004 Subject: [ns] Mobile Node Broadcasting References: <11c40f311beec3.11beec311c40f3@iit.edu> Message-ID: <005d01c47f6d$71605d00$f9220b0a@w2kserver.daimi.au.dk> Hi Dave, I made the changes proposed in the following link and wireless broadcast worked fine. http://mailman.isi.edu/pipermail/ns-users/2003-February/029630.html Regards, Kenneth Nielsen ----- Original Message ----- From: "Sutep Tongngam" To: "Dave Pacifico" Cc: Sent: Tuesday, August 10, 2004 6:59 PM Subject: Re: [ns] Mobile Node Broadcasting > > Hi, > ~/ns/diffusion and ~/ns/tcl/test and find a wireless test suite of diffusion might be a good example. > > Sutep. > > ----- Original Message ----- > From: Dave Pacifico > Date: Tuesday, August 10, 2004 6:32 am > Subject: [ns] Mobile Node Broadcasting > > > > > Hi, > > I am beginning some work with wireless networks in NS-2 for > > the > > Johns Hopkins Applied Physics Lab and I'm having trouble getting > > nodes > > to broadcast data packets and have other nodes receive them. I > > see > > functionality for it in the source code and it's used for ACK, > > RTS, and > > CTS packets, but I want to do simple broadcast so anyone within > > range > > receives the actual data packet. Thanks a lot for your help. > > > > - Dave > > > > > From rajeev.d.muralidhar at intel.com Tue Aug 10 23:41:30 2004 From: rajeev.d.muralidhar at intel.com (Muralidhar, Rajeev D) Date: Tue Aug 10 23:45:59 2004 Subject: [ns] simulating IEEE 802.11e EDCF Message-ID: <3D8B16F753179D4588D4B0C8FF7EAC45233F6F@bgsmsx402.gar.corp.intel.com> Are you sure you followed all the directions? Looks like you might have missed the changes to tcl/lan/ns-lan.tcl You have to add a new Mac/802_11e class there, copy the parameters from 802_11b and add/modify some params. Try that, that might help. Rajeev -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of karim sayed Sent: Wednesday, August 11, 2004 10:21 AM To: ns-users@ISI.EDU Subject: [ns] simulating IEEE 802.11e EDCF hai , I am trying to simulate IEEE 802.11e edcf downloaded from tkn. I did all priliminary changes but i did not understand the line " make clean;make depend;" After running the make command "make -d" i tried to run the programme but it is shownig the following error invalid command name "Mac/802_11e" while executing "Mac/802_11e create _o54 " 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 $mactype" (procedure "_o44" line 10) (Node/MobileNode add-interface line 10) invoked from within "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 66) (Simulator create-wireless-node line 66) invoked from within "_o3 create-wireless-node 1.0.0" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns node 1.0.0" invoked from within "set BS(0) [$ns node 1.0.0]" (file "multi_udpflows.tcl" line 91) Anyone please help to solve the problem waiting for reply Thank u __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ee03502 at elec.qmul.ac.uk Wed Aug 11 03:34:57 2004 From: ee03502 at elec.qmul.ac.uk (ikram) Date: Wed Aug 11 03:38:24 2004 Subject: [ns] number of transmitted tcp packets Message-ID: <001301c47f8e$eaef6e60$0a00000a@adventi9x962gj> Hi all, I cannot understand the following in my simulation: after connection establishment, 2 TCP data packets are sent. then when an ACK arrives, another 2 packets are sent. and keeps doing this each time and ACK is received. Yet, when the cwnd is cut for any reason, only one packet is sent, until the end of the simulation. This behavior is contraductory to what tcp congestion control states, especially during slow start phase. as the number of transmitted packet is doubled every time an ackowledgment is received. I know that the sender can send up to the minimum of the cwnd and the advertised window. and in my case the advertised window is set to 10 packets. hence, at least before the cwnd reaches ssthresh. i should notice that the sender is sending packets in increasing manner. Would anyone clarify this for me. what is the code to add to my simulation to be able to see the correct TCP behavior Many thanks Ikram From zhahui at gmail.com Wed Aug 11 06:02:34 2004 From: zhahui at gmail.com (zhahui@gmail) Date: Wed Aug 11 06:05:31 2004 Subject: [ns] number of transmitted tcp packets In-Reply-To: <001301c47f8e$eaef6e60$0a00000a@adventi9x962gj> References: <001301c47f8e$eaef6e60$0a00000a@adventi9x962gj> Message-ID: How do you set the advertised window ? On Wed, 11 Aug 2004 11:34:57 +0100, ikram wrote: > > Hi all, > > I cannot understand the following in my simulation: > > after connection establishment, 2 TCP data packets are sent. > then when an ACK arrives, another 2 packets are sent. > and keeps doing this each time and ACK is received. > Yet, when the cwnd is cut for any reason, only one packet is sent, until the end of the simulation. > > This behavior is contraductory to what tcp congestion control states, especially during slow start phase. > > as the number of transmitted packet is doubled every time an ackowledgment is received. > > I know that the sender can send up to the minimum of the cwnd and the advertised window. > and in my case the advertised window is set to 10 packets. hence, at least before the cwnd reaches ssthresh. i should notice that the sender is sending packets in increasing manner. > > Would anyone clarify this for me. > what is the code to add to my simulation to be able to see the correct TCP behavior > > Many thanks > > Ikram > -- Best regards, Hui From savoric at ee.tu-berlin.de Wed Aug 11 07:13:08 2004 From: savoric at ee.tu-berlin.de (Michael Savoric) Date: Wed Aug 11 07:16:33 2004 Subject: [ns] number of transmitted tcp packets References: <001301c47f8e$eaef6e60$0a00000a@adventi9x962gj> Message-ID: <411A2974.2B266DF4@ee.tu-berlin.de> > Hi all, > > I cannot understand the following in my simulation: > > after connection establishment, 2 TCP data packets are sent. > then when an ACK arrives, another 2 packets are sent. > and keeps doing this each time and ACK is received. This is how TCP works. > Yet, when the cwnd is cut for any reason, only one packet is sent, until the end of the simulation. If you are in congestion avoidance you should sometimes see also a two-segment burst of TCP, approximately after every RTT. > > This behavior is contraductory to what tcp congestion control states, especially during slow start phase. > > as the number of transmitted packet is doubled every time an ackowledgment is received. This is how TCP works in slow-slow start :-). All jokes asside. In slow start the cwnd of TCP is doubled every RTT. And in congestion avoidance the cwnd of TCP is increased by one segment every RTT, roughly explained. > > I know that the sender can send up to the minimum of the cwnd and the advertised window. > and in my case the advertised window is set to 10 packets. hence, at least before the cwnd reaches ssthresh. i should notice that the sender is sending packets in increasing manner. > > Would anyone clarify this for me. > what is the code to add to my simulation to be able to see the correct TCP behavior > > Many thanks > > Ikram > Best regards, Michael Savoric ====================================================== E-Mail: savoric@ee.tu-berlin.de Phone: (+49 30) 314-23840 Fax: (+49 30) 314-23818 Postal address: Technical University Berlin Telecommunication Networks Group (TKN) Einsteinufer 25, 10587 Berlin ====================================================== From milindis at rediffmail.com Fri Aug 6 14:04:45 2004 From: milindis at rediffmail.com (milind umesh deshpande) Date: Wed Aug 11 09:26:41 2004 Subject: [ns] changing bandwith in wireless network Message-ID: <20040806210445.20751.qmail@webmail30.rediffmail.com> Hello everyone, I am working on an Ad-hoc network senario.I want to change the Transmission Bandwith of my nodes to 500kbps.Now I don;t even know what is the default Transmission Bandwith for my senario.So if someone could tell me how to check my default bandwith and also how to change the bandwith in ns-2 ,it would be really helpful. Thanks everyone, Milind From karina at infoworkti.com.br Wed Aug 11 09:59:53 2004 From: karina at infoworkti.com.br (karina@infoworkti.com.br) Date: Wed Aug 11 10:02:12 2004 Subject: [ns] Wireless and DiffServ Message-ID: <21656.200.189.112.59.1092243593.squirrel@webmail.8x.com.br> Hi users! Does anybody know how can I use DiffServ on wireless nodes using NS? I am trying to map DiffServ to wireless nodes but I dont know how to use the existent DiffServ module on wireless nodes! Any idea??? regards, Karina From tongsut at iit.edu Wed Aug 11 11:34:18 2004 From: tongsut at iit.edu (Sutep Tongngam) Date: Wed Aug 11 11:39:15 2004 Subject: [ns] URGENT< PLEASE HELP> where to find scripts for SENSOR NETWORK simulation? Message-ID: <12646631265f81.1265f811264663@iit.edu> Hi, 1.Did you investigate this before? http://nrlsensorsim.pf.itd.nrl.navy.mil 2.~/ns/diffusion might help, but you may need some modification to serve your needs. Sutep. ----- Original Message ----- From: fan fan Date: Tuesday, August 10, 2004 2:36 pm Subject: [ns] URGENT< PLEASE HELP> where to find scripts for SENSOR NETWORK simulation? > > Dear friends: > Could you tell me where I can find the script for simulating > sensor network? I didn't find any from ns2 website. > I want to find some paper or corresponding scripts to simulate > such environment.I am studying security problem for sensor network. > Please help! Thanks a lot!!! > > Fan > > > --------------------------------- > Do you Yahoo!? > Y! Messenger - Communicate in real time. Download now. > From nmerizzi at cogeco.ca Wed Aug 11 11:41:32 2004 From: nmerizzi at cogeco.ca (Nicholas Merizzi) Date: Wed Aug 11 11:40:14 2004 Subject: [ns] Mobile-agent simulation Message-ID: <411A685C.6000702@cogeco.ca> Hello, I have been trying to use the contributed module listed on the NS2 website for mobile-agent testing. This module was developed for version ns-2.1b9, so I was careful integrating the modules over into version 2.7 (the current release). After including the appropriate lines in the makefile and typing 'make' everything compiles (including the mobile agent packages) but at the end I get a list of 'undefined reference to' errors. That look like the following: ..... on3/filters/misc/tag.o diffusion3/filters/rmst/rmst.o diffusion3/filters/rmst/rms _filter.o gen/version.o gen/ns_tcl.o gen/ptypes.o common/win32.o -L/usr/local/ns tclcl-1.15 -ltclcl -L/usr/local/ns/otcl-1.8 -lotcl -L/usr/local/ns/lib -ltk8.4 -L usr/local/ns/lib -ltcl8.4 -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm mobile-agents/MAgent.o(.text+0xba5): In function `MAgent::dispose()': : undefined reference to `Context::disposeAgent(int)' mobile-agents/MAgent.o(.text+0x1283): In function `MAgent::expire(Event*)': : undefined reference to `Context::move(int, char const*, int)' mobile-agents/MAgent.o(.text+0x12b2): In function `MAgent::expire(Event*)': : undefined reference to `Context::move(int, int)' mobile-agents/Context.o(.text+0x14): In function `Context::Context(Agent *, Agent *, char const *)': ..... : undefined reference to `__rethrow' collect2: ld returned 1 exit status make: *** [ns] Error 1 -------------------------- I had a lot of problems integrating the STL libraries that the author used (i.e. #include) which I changed to simply: #include which is part of the GNU standard C++ library. So bottom line is that it compiles, i get the object file and then I get dependency errors like above. I am running NS2.7, gcc 3.3.4, under a Debian system. Any help would be greatly appreaciated! Thank you, Nicholas From anup.mayank at gmail.com Wed Aug 11 15:43:20 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Wed Aug 11 15:46:21 2004 Subject: [ns] caculating time required to send a documents of variable size on MANET Message-ID: <469192b0040811154357a6a398@mail.gmail.com> Hi All, I am trying to send an object of size 100 KB from one mobile node to another. I want to find out the actual time used in transmission of object. Since a packet is smaller than the size of object and further i want to transmit objects of different size, so just changing the size of packet will not work. I am new to NS, so if any one has done similar work before, kindly suggest how to do it. With regards Anup From jianliu at mail.sdu.edu.cn Wed Aug 11 18:40:23 2004 From: jianliu at mail.sdu.edu.cn (Jian Liu) Date: Wed Aug 11 18:51:12 2004 Subject: [ns] simulate ARF protocol in 802.11b Message-ID: <292274823.32078@mail.sdu.edu.cn> hi all, I am working on Wireless network field. Now I will simulate ARF(autorate fallback algorithm) protocol. And I don't know how to do. Does someone give me some advices. Thanks. Jian Liu From swkim at cnlab.kaist.ac.kr Wed Aug 11 19:28:09 2004 From: swkim at cnlab.kaist.ac.kr (Seungwoon Kim) Date: Wed Aug 11 19:29:03 2004 Subject: [ns] [Help Needed] Installing ns-allinone-2.27 to HP-UX-B.11.11 Message-ID: <02c401c48014$022ea890$bd8cf88f@zaurus> Hi, I'm trying to install ns-allinone-2.27 package on HP-UX11.11, but I have some problems. Is there anybody who succeeded in installing ns on HP unix? Please let me know which software I need to install, and which part of ns I have to change. Followings are the error messages that I got. With aCC, I got the error on compiling Otcl as follows: ---------< Otcl Compile Error Messages - Begin >---------------- rm -f libotcl.so otcl.o so_locations cc -c -g -I. -I/home/X0101/a1hsryu/ns-allinone- 2.27/include -I/home/X0101/a1hsryu/ns-allinone-2.27/include -I/include DEFINES = -DNDEBUG -DUSE_SHM otcl.c : Skipping shared libaries -o libotcl.so otcl.o rm -f libotcl.so cc -o otclsh -g -I. -I/home/X0101/a1hsryu/ns-allinone- 2.27/include -I/home/X0101/a1hsryu/ns-allinone-2.27/include -I/include DEFINES = -DNDEBUG -DUSE_SHM otclAppInit.c \ -L. -lotcl -L/home/X0101/a1hsryu/ns-allinone-2.27/lib -ltk8. 4 -L/home/X0101/a1hsryu/ns-allinone-2.27/lib -ltcl8.4 -lXext -lX11 -lnsl - ldld -lm /usr/ccs/bin/ld: Can't open DEFINES /usr/ccs/bin/ld: No such file or directory *** Error exit code 1 Stop. otcl-1.8 make failed! Exiting ... ---------< Otcl Compile Error Messages - End>---------------- With gcc version 3.0.1, I got the following error message at the configuration stage: ---------< Gcc error messages - Begin >--------------- checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. ---------< Gcc error messages - End >--------------- Thank you in advance. --------------------------------------------------- Seungwoon Kim Ph.D Course Student Computer Network Laboratory CS Div., EECS Dept., KAIST, Korea E-mail: swkim@cnlab.kaist.ac.kr From madhurichowdhari at rediffmail.com Wed Aug 11 19:36:09 2004 From: madhurichowdhari at rediffmail.com (madhuri kaniganti) Date: Wed Aug 11 19:39:03 2004 Subject: [ns] nodes accessibility Message-ID: <20040812023609.24414.qmail@webmail29.rediffmail.com> Can anyone tell me please, if the nodes declared outside the proc's are accessible inside the proc's. If so how. Thanking you --madhuri From hpgu at guanghua.sh.cn Wed Aug 11 19:56:49 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Wed Aug 11 20:00:00 2004 Subject: [ns] HELP!UGENT! seeking MobileIPv6 extention:) Message-ID: <2C175CE01348C945BCF5D20FF269A3B20223736B@master.guanghua.sh.cn> Hi all; My job can be briefly described as following: 1) Environment: RHL(2.4.20-8), NS-2.26 2) Target:=20 a) simulate MobileIPv6 + Multihomed( Multi-HomeAgent) b) Use Ipv6 Anycast Service to implement HA selection c) Use some upper layer protocol( or software) to implement HA = selection d) Compare b) and c) from usability, scalability and = feasibility. 3) Current stage:=20 a) Select pre-existing NS2 mobileIpv6 extention. b) so some modification if needed. I am not very sure about which NS2 mobileIPv6 extention is best? Could = you give me some suggestion? =20 Any comments is appreciated!! 3x in advance!! =20 Urs Sincerely Humphrey.Gu =20 From ppl at nbnet.nb.ca Wed Aug 11 20:07:05 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Wed Aug 11 20:10:01 2004 Subject: [ns] nodes accessibility In-Reply-To: <20040812023609.24414.qmail@webmail29.rediffmail.com> References: <20040812023609.24414.qmail@webmail29.rediffmail.com> Message-ID: <20040812030705.GA32154@bloodaxis> Hi, I assume your question is "how to access a global Tcl variable inside a porcedure?" If yes, then your answer is to put the following line at the start of your procedure. global variable_name On Thu, Aug 12, 2004 at 02:36:09AM -0000, madhuri kaniganti wrote: > > Can anyone tell me please, if the nodes declared outside the > proc's are accessible inside the proc's. If so how. ppl From aashaikh_pk at yahoo.com Thu Aug 12 00:56:29 2004 From: aashaikh_pk at yahoo.com (ayaz shaikh) Date: Thu Aug 12 00:59:06 2004 Subject: [ns] required help for Radio Resource Management for Wireless Message-ID: <20040812075629.32805.qmail@web41506.mail.yahoo.com> Hi every body, I am a completely new coup to ns-2 and doing a project on Radio Resource Management for Wireless Communication. I need to show some simulation for 3rd generation mobile system (UMTS) using both the modes FDD as well as TDD. The Idea is to simulate various wireless nodes as well as Radio Base Station(RBS).How i can calculate the Power Management, Handoff strategies, Channel Allocation at RBS. Any help is appreciated. Thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From kenneth at daimi.au.dk Thu Aug 12 03:13:48 2004 From: kenneth at daimi.au.dk (Kenneth Nielsen) Date: Thu Aug 12 03:14:27 2004 Subject: [ns] Compressing output data before writing into trace-file. Message-ID: <009101c48055$0f0e08d0$f9220b0a@w2kserver.daimi.au.dk> Hi, Problem: I am running NS-2 on a linux platform. The size of the trace files on my simulations are getting very large. Right now I am working with trace-files that are 5 GB (and the size will grow). After runnning ns-2 I compress the data with "bzip2". The size of the files is then reduced to 0.3 GB. Using "gzcat" can I pipe the data into "awk". The problem is that I want to avoid writing the whole 5 GB on the disk in the first place because of limited disk space. Question: It is possible to compress the trace data of NS-2 before writing it to the disk? A possible solution could be to write the data into standard output instead of write the data into a trace-file. Afterwards the output data could then be piped into "bzip2". Is it possible to write ns-2 trace data into "standard out"? Regards, Kenneth Nielsen From mahrenho at ivs.cs.uni-magdeburg.de Thu Aug 12 03:39:22 2004 From: mahrenho at ivs.cs.uni-magdeburg.de (Daniel Mahrenholz) Date: Thu Aug 12 03:40:41 2004 Subject: [ns] Compressing output data before writing into trace-file. In-Reply-To: <009101c48055$0f0e08d0$f9220b0a@w2kserver.daimi.au.dk> References: <009101c48055$0f0e08d0$f9220b0a@w2kserver.daimi.au.dk> Message-ID: <200408121239.29670.mahrenho@ivs.cs.uni-magdeburg.de> Hi Kenneth, On Thursday 12 August 2004 12:13, Kenneth Nielsen wrote: > Question: > It is possible to compress the trace data of NS-2 before writing it to the > disk? Yes, it is possible. We have developed an extension for the emulation facility of the ns-2 (2.27) that includes in-memory compression, buffering and writing of compressed trace files to avoid system calls during real-time simulations to increase the emulation precision. This extension can only be used on Linux but it doen't require to run in emulation mode. We have a webpage (ok - still work in progess) where you can download the whole patch and installation instructions: http://www-ivs.cs.uni-magdeburg.de/eukneu/forschung/projekte/nse/ If there is a wider demand to have only the in-memory compression, we will create a separated patch that doen't contain the emulation improvements. Regards, Daniel. -- Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho From archsentinel at yahoo.com Thu Aug 12 07:34:40 2004 From: archsentinel at yahoo.com (Arch Sentinel) Date: Thu Aug 12 07:37:20 2004 Subject: [ns] Drop in MAC layer not reflected in NAM trace Message-ID: <20040812143440.22697.qmail@web50801.mail.yahoo.com> Hi ns-users, My problem are the packets drop under MAC in my NAM tracefile are not display in the NAM playback simulation. Those packets due to IFQ can be seen dropping from the node. Does anyone know what is the cause? And how can make those packet drops at MAC be display in my NAM playback? Thanks. Regards, Chong __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From rxu at umd.edu Thu Aug 12 07:39:59 2004 From: rxu at umd.edu (Rong XU) Date: Thu Aug 12 07:42:02 2004 Subject: [ns] Altering Path of Packets Message-ID: <1092321599.a7480180rxu@umd.edu> Hi all, I am wondering if it is possible to modify the Path of a packet using the flow id. Currently, NS-2 uses methods to determine the shortest Path, or route, between the source and destination nodes. However, if I wish to divert the node along other existing Paths, is it possible to alter the path in tcl by supplying the flow id and the nodes through which I want the packet to flow through? If not, is there anyway I can extend NS-2 to make this possible? Thank you for your time. Rong Xu rxu@mail.umd.edu From anilsingh72 at yahoo.com Thu Aug 12 08:56:20 2004 From: anilsingh72 at yahoo.com (Anil Singh) Date: Thu Aug 12 08:59:16 2004 Subject: [ns] Can I run NS2 by writing a C++ program Message-ID: <20040812155620.40911.qmail@web40610.mail.yahoo.com> I would like to know if it is possible to interface with NS2 directly from C++ without writing TCL scripts. Is it possible to run ns2 in real time, any sample scripts would be appreciated. Thanks, Anil __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From arad1002 at yahoo.com Thu Aug 12 09:34:07 2004 From: arad1002 at yahoo.com (arad kaye) Date: Thu Aug 12 09:36:22 2004 Subject: [ns] question about ns-UMTS simulator (EURANE) Message-ID: <20040812163407.27762.qmail@web14827.mail.yahoo.com> I have run a couple of tests using ns-UMTS simulator developed by EURANE . Some of the results that I got sofar are quite strange . Please let me know if you had a similar experience . An example is attached. If you notice an error in the way I setup the simulation scenario please let me know . many thanks A.Kaye Example: In one of the tests I have tried to investigate the impact of HS-DSCH bit rate on application throughput . I have run the TCL script that is provided in appendix-c of the user guide. I have changed the bit rate for hs_downlinkBW in two places (1) at bs configuration and (2) at RLC/AM configuration. The value of HS-DSCH bit rate has no effect on the application throughput which doesn't make any sense ns node-config -UmtsNodeType bs \ -downlinkBW 32kbs \ -downlinkTTI 10ms \ -uplinkBW 32kbs \ -uplinkTTI 10ms \ -hs_downlinkTTI 2ms \ -hs_downlinkBW xxxxxxxxx $ns node-config -llType UMTS/RLC/AM \ -downlinkBW 64kbs \ -uplinkBW 64kbs \ -downlinkTTI 20ms \ -uplinkTTI 20ms \ -hs_downlinkTTI 2ms \ -hs_downlinkBW xxxxxxxxxx __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From jz105 at york.ac.uk Thu Aug 12 10:49:29 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Thu Aug 12 10:49:32 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared Message-ID: <005a01c48094$b7593b10$68892090@grouse> Dear all, I am using NS2.27 and when I am trying to 'make' after I modified the "ns-2.27/mobile/mip-reg.cc" file. It gave me a few same errors, which are: ../../../autoconf.h:85: error: namespace 'CPP_NAMESPACE' undeclared However, my modifications seem work. Can anybody tell me the trick behind this? How can I fix the error? Thanks a lot in advance! Regards, Jee From marcelouesono at gmail.com Thu Aug 12 12:55:40 2004 From: marcelouesono at gmail.com (Marcelo) Date: Thu Aug 12 12:58:24 2004 Subject: [ns] How to set the traffic rate? In-Reply-To: <411918CC.5050700@netscape.net> References: <411918CC.5050700@netscape.net> Message-ID: Hello, you can use exponential or pareto for TCP too when you use it with UDP you make something like this: set app_sender[new ...CBR] set udp _sender[new ...UDP] connect app_sender udp_sender set app_receiver[new ...CBR] set udp _receiver[new ...UDP] connect app_receiver udp_receiver connect udp_sender udp_receiver since UDP and TCP are on the same layer, you can just change UDP for TCP: set app_sender[new ...CBR] set tcp _sender[new ...TCP] connect app_sender tcp_sender set app_receiver[new ...CBR] set tcp _receiver[new ...TCP] connect app_receiver tcp_receiver connect tcp_sender tcp_receiver Marcelo Mitsutoshi Uesono State University of Campinas, S?o Paulo, Brasil On Tue, 10 Aug 2004 20:49:48 +0200, Haidong Wan wrote: > > Hello my friends, > I know that we can set the traffic rate distributioin for UDP, for > example, exponential and pareto. > But I can not find anyone to implement it for TCP. > Is it possible? How to do it? > > thanks in advance > Haidong > > From rxu at umd.edu Thu Aug 12 13:17:20 2004 From: rxu at umd.edu (Rong XU) Date: Thu Aug 12 13:20:12 2004 Subject: [ns] Multipath routing in ns2 Message-ID: <1092341840.950d7a60rxu@umd.edu> Hi, I am wondering if NS-2 currently supports multipath routing from a single agent. If not, is there any possible way for me to implement multipath routing? Thanks. Rong From ak1350 at wayne.edu Thu Aug 12 20:23:51 2004 From: ak1350 at wayne.edu (Scott Fowler) Date: Thu Aug 12 20:28:18 2004 Subject: [ns] CBR and Exponential Message-ID: <90f725dd.6f041ee7.8178200@mirapointms3.wayne.edu> Dear NS-USERS I have been looked take the defaults (ns-default.tcl) of CBR and Exponential. I was wondering what is the bases for these values? For example Exponential burst_time is .5 ms Exponentail idle_time is .5 ms or CBR rate is 448 Kb Cheers From jaso4you at yahoo.com Thu Aug 12 22:52:15 2004 From: jaso4you at yahoo.com (jas Ogwilu) Date: Thu Aug 12 22:55:05 2004 Subject: [ns] Packet droping Message-ID: <20040813055215.68158.qmail@web60008.mail.yahoo.com> Is there a way of explicitly indicating which packets to drop, and not just using the loss percentage. I would like to tell ns the packets i want it to drop based on the sequence number . --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From archsentinel at yahoo.com Thu Aug 12 23:49:50 2004 From: archsentinel at yahoo.com (Arch Sentinel) Date: Thu Aug 12 23:52:32 2004 Subject: [ns] Help: Executing a method in .cc from tcl Message-ID: <20040813064950.62555.qmail@web50802.mail.yahoo.com> Hi ns-users, Can anyone explain to me how does TCL and C++ link together? I am still unable to get the concept after trying reading chap3 of the ns-manual. Basically I have a method under adov.cc call printresult(). How do i execute this method from my .tcl script? Please help. Thanks. Regards, Chong __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From PG03077626 at ntu.edu.sg Fri Aug 13 00:55:44 2004 From: PG03077626 at ntu.edu.sg (#YU YANG#) Date: Fri Aug 13 00:59:31 2004 Subject: [ns] ns-2.27 installation problem Message-ID: <34C4FA35021357469685D8102806A1C01D0A51@mail01.student.main.ntu.edu.sg> Hi, everybody, When i am trying to install ns-2.27, it always gives the following information: make: *** [tk3d.o] Error 1, and then exit the installation process. I also try to download a new version of tk8.4.5 from other sources, also do the installlation piece by piece, but it always gives the same error message. Can anyone help? It's really urgent. Thanks in advance. From yxiaoyun at 263.net Fri Aug 13 01:22:52 2004 From: yxiaoyun at 263.net (Peter Yang) Date: Fri Aug 13 01:26:30 2004 Subject: [ns] about Mac/Csma/Ca in ns2.27 In-Reply-To: <200408101059.i7AAxmi28575@gamma.isi.edu> References: <200408101059.i7AAxmi28575@gamma.isi.edu> Message-ID: <1092385371.2630.25.camel@yansj> hi, When i rum the LAN Example of "NS by Example" at http://nile.wpi.edu/NS/. I meet the error: invalid command name "Mac/Csma/Ca" while executing "Mac/Csma/Ca create _o42 " invoked from within "catch "$className create $o $args" msg" i found that ns did not build mac-csma.cc(h) to mac-csma.o. i try to add it to makefile but get more error info. i think it is broken in the current release. can u tell me what Efforts to revive it? Best regards Peter Yang 2004-08-13 From aghufran at hamdard.net.pk Fri Aug 13 01:59:45 2004 From: aghufran at hamdard.net.pk (Abid Ghufran) Date: Fri Aug 13 02:03:06 2004 Subject: [ns] oTCL resource needed Message-ID: <002401c48113$e1a316a0$af00a8c0@hamdard.net.pk> Dear All, I need some basic material for oTCL. I would really appreciate your help. Thanks, Abid Ghufran. From wissampsg1 at yahoo.com Fri Aug 13 02:23:56 2004 From: wissampsg1 at yahoo.com (wissam al-khatib) Date: Fri Aug 13 02:26:10 2004 Subject: [ns] regarding - number of packets received Message-ID: <20040813092356.22537.qmail@web52306.mail.yahoo.com> hi friends, Now i'm working in simulation for TCP connections. i wanted to calculate throughput and packet loss for each TCP connection (suppose i have four source nodes connected to bottleneck). please help me in this regard, how to calculate the throughput and how to get the information from the trace files. regards wissam. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From Flavio.Desandre at TILAB.COM Fri Aug 13 02:54:42 2004 From: Flavio.Desandre at TILAB.COM (Desandre` Flavio) Date: Fri Aug 13 02:57:05 2004 Subject: [ns] What's wrong? Message-ID: Hi all, I'm running ns simulations of an ad hoc network of 2 nodes: the first is the trasmitter of a cbr traffic and the second receives this traffic. I would like to set up a cbr connection with a fixed and well known pachet size and interval. I tried to use intervall_ and pachetSize_ to do that but it doesn't seem to work. The variable interval_ is ok but I've got problems with pachetSize_. If I set a value of 1024 pachets per second with interval_ of 1 second I would expect to have a line every second. On the contrary the results is a line every roughly 5 seconds... Could someone help me? The file of my simulation is attached below. Thank you for your time Flavio # ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 5000 ;# max packet in ifq set val(nn) 2 ;# number of mobilenodes set val(rp) AODV ;# routing protocol Phy/WirelessPhy set bandwidth_ 11Mb #Phy/WirelessPhy set rate_ 11Mb Mac/802_11 set dataRate_ 11Mb #Mac/802_11 set basicRate_ 11Mb # ====================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # set ns_ [new Simulator] set tracefd [open simple.tr w] $ns_ use-newtrace $ns_ trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid 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) and node(1) # configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -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_ 100.0 $node_(0) set Y_ 250.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 250.0 $node_(1) set Y_ 250.0 $node_(1) set Z_ 0.0 # cbr connection set udp0 [new Agent/UDP] set cbr0 [new Application/Traffic/CBR] $cbr0 set interval 2 $cbr0 set packetSize 10 $cbr0 attach-agent $udp0 $ns_ attach-agent $node_(0) $udp0 set null0 [new Agent/Null] $ns_ attach-agent $node_(1) $null0 $ns_ connect $udp0 $null0 $ns_ at 1 "$cbr0 start" $ns_ at 100 "$cbr0 stop" # # 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.0 "stop" $ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd } puts "Starting Simulation..." $ns_ run Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A. ==================================================================== CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please send an e_mail to MailAdmin@tilab.com. Thank you ==================================================================== From KXR387 at bham.ac.uk Fri Aug 13 05:32:09 2004 From: KXR387 at bham.ac.uk (Keita Rose) Date: Fri Aug 13 05:35:20 2004 Subject: [ns] Warning: Trace file not sorted by time Message-ID: <525075023F934D44813BFC190A5BA568130063@engmail.adf.bham.ac.uk> I am running a wireless simulation in NS-2, it compiles without errors but during the nam visualisation I am getting Warning: Trace file not sorted by time xxxxx - (this is a line from the trace file) The above event should occur at or after -t xxx. for instance r -t 1.518696272 -s 2 -d 1 -p udp -e 72 -c 2 -a 0 -i 15 -k AGT should have occures after -t 1.518696. Any explanation on this warning would be greatly appreciated. Keita From KXR387 at bham.ac.uk Fri Aug 13 05:34:56 2004 From: KXR387 at bham.ac.uk (Keita Rose) Date: Fri Aug 13 05:37:05 2004 Subject: [ns] Nam display error?? Message-ID: <525075023F934D44813BFC190A5BA568130064@engmail.adf.bham.ac.uk> In my tcl file I have base station coordinates set at say -x 1 -y 2 -Z 0 and this is what also appears in the nam trace file, however when visualised the coordinates seem to have changed to something else. Could anyone explain the reason for this. Keita From ppchenyu at ss.ics.saitama-u.ac.jp Fri Aug 13 07:19:33 2004 From: ppchenyu at ss.ics.saitama-u.ac.jp (pp) Date: Fri Aug 13 07:22:06 2004 Subject: [ns] show packet flow in nam Message-ID: <003f01c48140$8e8e7f90$27212685@pumpkin> Dear all, My former tcl script works well. I can see the packets flow from one node to another in nam. After several times re-edit, my tcl script is more powerful. However, I'm not sure what I have done to result such a stranger that in nam packets do no flow instead the affected nodes flash when packets are sent. And the received node changes it's color. Actually, the traffic and the log result are the same as the former. Why it doesn't flow but flash? What's the meaning of a flashing node in nam? And what does the changing color mean? Puzzeled and need help. Thank you. Best Regards, Pan Chenyu From kimyoun at auburn.edu Fri Aug 13 08:10:56 2004 From: kimyoun at auburn.edu (Young Kim) Date: Fri Aug 13 08:14:12 2004 Subject: [ns] Regarding timer Message-ID: Hi all, I have a question about multiple timers. What happens when two timers expire at the same time? (e.g. one timer's interval is 1 sec and the other timer's interval is 0.1 sec. They both expire at 1 sec) Will their corresponding handler called as it would be called when one timer expires? Or does it behave differently from when one timer expires? If so, how? I am looking forward to your reply. Thank you and have a nice day. Young Kim kimyoun@auburn.edu From pelinc at NETAS.com.tr Fri Aug 13 08:16:34 2004 From: pelinc at NETAS.com.tr (Pelin CORAK NAR) Date: Fri Aug 13 08:19:07 2004 Subject: [ns] S-MAC and T-MAC simulations Message-ID: Hello everybody; I need to make S-MAC and T-MAC simulations work and especially I will need power calculations. First of all; I wonder if T-MAC can be simulated on NS-2. If not; is there any other toolkit for that? Is there a document for S-MAC on NS toolkit ? I'm not ver familiar with NS in general so any help is really appreciated. Especially if there is anyone in Istanbul working on these areas we can communicate. Regards; Pelin From johnh at ISI.EDU Fri Aug 13 08:55:02 2004 From: johnh at ISI.EDU (John Heidemann) Date: Fri Aug 13 08:57:26 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared In-Reply-To: <005a01c48094$b7593b10$68892090@grouse> Message-ID: <200408131555.i7DFt2t9021768@dash.isi.edu> On Thu, 12 Aug 2004 18:49:29 BST, "Jee J.Z." wrote: > >Dear all, > >I am using NS2.27 and when I am trying to 'make' after I modified the >"ns-2.27/mobile/mip-reg.cc" file. It gave me a few same errors, which are: > >../../../autoconf.h:85: error: namespace 'CPP_NAMESPACE' undeclared > >However, my modifications seem work. Can anybody tell me the trick behind >this? How can I fix the error? Thanks a lot in advance! > >Regards, >Jee > Please see -John Heidemann From jz105 at york.ac.uk Fri Aug 13 09:10:26 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Fri Aug 13 09:09:08 2004 Subject: multiple interfaces (was: Re: [ns] MobileIP help) References: <001001c469be$1c804e90$f33f3052@befrag> <028c01c480b5$032eef60$68892090@grouse> <001601c48135$879fe7b0$8877b450@befrag> Message-ID: <033901c48150$0bddf980$68892090@grouse> Hi Giovanni, Thank you anyway. I'll let you know when I figure it out. BTW, do you mean multiple different propagation models? How about using same type propagation models for multiple interfaces? As far as I know, maybe we need to use something like the followings to create propagation model objects for the add-interface{} function. set opt(prop) Propagation/TwoRayGround set prop_1_ [new $opt(prop)] set prop_2_ [new $opt(prop)] Cheers, Jee ----- Original Message ----- From: "Giovanni Bisegna" To: "Jee J.Z." Sent: Friday, August 13, 2004 2:00 PM Subject: Re: [ns] MobileIP help > Hi Jee, > I have some problems with multiple propagation models, > so at the moment i can't use multiple inferface. > If i resolve my problem i'll write to you ;-) > > Best Regards, > Giovanni > > ----- Original Message ----- > From: "Jee J.Z." > > > > Hello Giovanni, > > > > Sorry to disturb. I found your email on NS mailing list asking about > > switching between multiple wireless interfaces. I'm having the problem of > > creating multiple interfaces at > > the moment. I think you must know well how to do it. Could you give me > some > > instructions to do so? You help will be very much appreciated! > > > > Many thanks, > > Jee > > > From jz105 at york.ac.uk Fri Aug 13 09:17:28 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Fri Aug 13 09:17:24 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared References: <200408131555.i7DFt2t9021768@dash.isi.edu> Message-ID: <034d01c48151$07804f40$68892090@grouse> Hi all, Thank you for your replies. Just for your information: http://www.isi.edu/nsnam/ns/ns-problems.html may not provide full bug fix info for NS2.27 'CPP_NAMESPACE' undeclared problem for some users. For those users who still suffer from error reports after following the instructions on http://www.isi.edu/nsnam/ns/ns-problems.html, please refer to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. Cheers, Jee ----- Original Message ----- From: "John Heidemann" To: "Jee J.Z." Cc: Sent: Friday, August 13, 2004 4:55 PM Subject: Re: [ns] make error: 'CPP_NAMESPACE' undeclared > On Thu, 12 Aug 2004 18:49:29 BST, "Jee J.Z." wrote: > > > >Dear all, > > > >I am using NS2.27 and when I am trying to 'make' after I modified the > >"ns-2.27/mobile/mip-reg.cc" file. It gave me a few same errors, which are: > > > >../../../autoconf.h:85: error: namespace 'CPP_NAMESPACE' undeclared > > > >However, my modifications seem work. Can anybody tell me the trick behind > >this? How can I fix the error? Thanks a lot in advance! > > > >Regards, > >Jee > > > > Please see > > > -John Heidemann > From klee at nps.edu Fri Aug 13 10:29:01 2004 From: klee at nps.edu (Lee kok thong) Date: Fri Aug 13 10:32:46 2004 Subject: [ns] Variable tracing Message-ID: <000c01c4815b$06134630$17ca7883@G0303085> Hi guys, I am exploring the possibilities of tracing variables ( other than the standard trace variables) Suppose that I am doing wireless simulation (MANET) using AODV w/ around say 50 nodes. I am interested in knowing what is the total energy level of all the 50 nodes at some interval of time, say regularly over 2 sec. Can someone advise how to go about doing it ? I thought about it and perhaps I need to resolve the following issues : 1) introduce this global variable in TCL script. 2) write a proc ? every 2 sec check the energy level and sum then up ? 3) output result into a file or screen How about if I want to put into the trace directory some function that does this, how can I do it ? I think by solving this, it will benefit all the ns2 users here. Please contribute. Thanks! regards Francis LEE From clik4ravi at yahoo.com Fri Aug 13 11:51:48 2004 From: clik4ravi at yahoo.com (Ravi kumar) Date: Fri Aug 13 11:54:46 2004 Subject: [ns] AdHoc Simulation - Is Monarch needed? Message-ID: <20040813185148.49473.qmail@web52807.mail.yahoo.com> Hi all, I am currently working on a security protocol for ad-hoc networks. I wanted to do a simulation using Ns2. For the simulation do i need to use CMU Monarch extensions? The Ns manual specifies that it has incorporated monarch extensions to the latest Ns builds. Do I still need to use the Monarch extensions or does Ns-2 incorporate all the required features. I would like to hear your comments since i have never simulated wireless networks on Ns-2. I have checked the previous posts and also the web but nothings seems to be very conclusive. Your help in this regard will be greatly appreciated. thanks in advance ravi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From csp007 at hotmail.com Fri Aug 13 19:34:05 2004 From: csp007 at hotmail.com (choh Andrew) Date: Fri Aug 13 19:37:16 2004 Subject: [ns] Problem installing ns2 version 2.27 on linux redhat 9.0 Message-ID: I've encounter these errors while installing the ns2 , can someone pls tell me how to resolve them? Thanks in advance. * Build XGraph-12.1 ============================================================ loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... missing checking if malloc debugging is wanted... no checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH make: *** No targets specified and no makefile found. Stop. Can not create xgraph; But xgraph is an optional package, continuing... ============================================================ * Build CWeb ============================================================ Making cweb gcc -g -c -o ctangle.o ctangle.c make: gcc: Command not found make: *** [ctangle.o] Error 127 cweb failed to make, but it's optional chmod: failed to get attributes of `cweave': No such file or directory chmod: failed to get attributes of `ctangle': No such file or directory ln: `cweave': File exists ln: `ctangle': File exists ============================================================ * Build Stanford GraphBase ============================================================ Making sgb if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi /bin/sh: line 1: ctangle: command not found make: *** [gb_io.c] Error 127 Unable to create sgb library, but it's optional, so continuing... ============================================================ * Build GT-ITM ============================================================ sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing.. ============================================================ * Build zlib ============================================================ Checking for gcc... Building static library libz.a version 1.1.4 with cc. Checking for unistd.h... No. Checking for errno.h... No. Checking for mmap support... No. cc -O -DNO_ERRNO_H -c -o example.o example.c make: cc: Command not found make: *** [example.o] Error 127 Zlib make failed, but it's optional Continue ... ============================================================ * Build tcl8.4.5 ============================================================ loading cache ./config.cache checking whether to use symlinks for manpages... no checking compression for manpages... no checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. _________________________________________________________________ Fast. Clear. Easy. The new MSN Search. http://search.msn.com.sg/ From advarl at hotmail.com Sat Aug 14 07:08:40 2004 From: advarl at hotmail.com (advarl) Date: Sat Aug 14 07:14:29 2004 Subject: [ns] error message of rebuilding n2-2.27 Message-ID: HI, the following is the error message of rebuilding n2-2.27, can anyone tell the reason? Thanks in advance! ps:message for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2 /include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o proxytrace.cc make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl-1.15 -I/home/dxh/ns2/otcl-1.8 -I/h ome/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o tr-stat.o tr-stat.cc make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'         advarl         advarl@hotmail.com           2004-08-14 From naby_djoubar at hotmail.com Sat Aug 14 13:44:26 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Sat Aug 14 13:47:11 2004 Subject: [ns] "no such file or directory" error Message-ID: hi I'm trying to execute a script using the command "$ ns myscript.tcl" and I get this message: couldn't read file "myscript.tcl": no such file or directory. The script is in the same directory as NS so it SHOULD be able to find it. PS: I created the script using the Notepad and I quoted the name of the file before saving it, like this: "myscript.tcl" so it wouldn't the default ".txt" extension on it. What I am doing wrong? Thanks for your help _________________________________________________________________ Balayez vos courriels entrants et sortants et les pi?ces jointes et contribuez ? ?liminer les virus destructeurs susceptibles d?y ?tre int?gr?s. http://join.msn.com/?pgmarket=fr-ca&page=features/virus Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From XAVIERMM3 at telefonica.net Sat Aug 14 16:51:16 2004 From: XAVIERMM3 at telefonica.net (Xavier Marchador) Date: Sat Aug 14 16:54:13 2004 Subject: [ns] Problem installing ns2 version 2.27 on linux redhat 9.0 References: Message-ID: <000701c48259$9818aa30$0301a8c0@workspace> Hi, verify if you have "gcc", "g++" and "make" packets installed in your system. If not, install them first, and then try to reinstall the ns-2. Xavi ----- Original Message ----- From: "choh Andrew" To: Sent: Saturday, August 14, 2004 4:34 AM Subject: [ns] Problem installing ns2 version 2.27 on linux redhat 9.0 > > > I've encounter these errors while installing the ns2 , can someone pls tell > me how to resolve them? > > Thanks in advance. > > * Build XGraph-12.1 > ============================================================ > loading cache ./config.cache > checking for a BSD compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... yes > checking for working aclocal... missing > checking for working autoconf... missing > checking for working automake... missing > checking for working autoheader... missing > checking for working makeinfo... missing > checking if malloc debugging is wanted... no > checking for gcc... no > checking for cc... no > configure: error: no acceptable cc found in $PATH > make: *** No targets specified and no makefile found. Stop. > Can not create xgraph; But xgraph is an optional package, continuing... > ============================================================ > * Build CWeb > ============================================================ > Making cweb > gcc -g -c -o ctangle.o ctangle.c > make: gcc: Command not found > make: *** [ctangle.o] Error 127 > cweb failed to make, but it's optional > chmod: failed to get attributes of `cweave': No such file or directory > chmod: failed to get attributes of `ctangle': No such file or directory > ln: `cweave': File exists > ln: `ctangle': File exists > ============================================================ > * Build Stanford GraphBase > ============================================================ > Making sgb > if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi > /bin/sh: line 1: ctangle: command not found > make: *** [gb_io.c] Error 127 > Unable to create sgb library, but it's optional, so continuing... > ============================================================ > * Build GT-ITM > ============================================================ > sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing.. > ============================================================ > * Build zlib > ============================================================ > Checking for gcc... > Building static library libz.a version 1.1.4 with cc. > Checking for unistd.h... No. > Checking for errno.h... No. > Checking for mmap support... No. > cc -O -DNO_ERRNO_H -c -o example.o example.c > make: cc: Command not found > make: *** [example.o] Error 127 > Zlib make failed, but it's optional Continue ... > ============================================================ > * Build tcl8.4.5 > ============================================================ > loading cache ./config.cache > checking whether to use symlinks for manpages... no > checking compression for manpages... no > checking for gcc... no > checking for cc... no > configure: error: no acceptable cc found in $PATH > tcl8.3.2 configuration failed! Exiting ... > Tcl is not part of the ns project. Please see www.Scriptics.com > to see if they have a fix for your platform. > > _________________________________________________________________ > Fast. Clear. Easy. The new MSN Search. http://search.msn.com.sg/ > From klee at nps.edu Sat Aug 14 22:31:27 2004 From: klee at nps.edu (Lee kok thong) Date: Sat Aug 14 22:34:43 2004 Subject: [ns] LAR ns2 codes Message-ID: <001301c48289$1d57f2d0$250110ac@G0303085> Hi, Does anyone has the ns codes for LAR simulation or know which website for downloading ? Or can forward the simulation codes for LAR to me please ? Thanks !! regards francis lee From piabasu at rediffmail.com Sat Aug 14 23:32:49 2004 From: piabasu at rediffmail.com (bibek basu) Date: Sat Aug 14 23:35:22 2004 Subject: [ns] WDM simulation in ns:HELP SOUGHT Message-ID: <20040815063249.26364.qmail@webmail32.rediffmail.com> Hi! everybody, I M working with NS 4 last 2 months,basically I have to simulate WDM in ns.For that I have installed the patch OWNS from DAWNS lab.I have 2.26 version of NS. But till now I M unable to crack anything.Its frustrating me.Can anybody out there help me by suggesting how to proceed. ************************** Bibek Basu M.Tech. (Optoelectronics & Optical Communication) WB-22;Vindhyachal Hostel; IIT Delhi ************************** From eenbp at leeds.ac.uk Sun Aug 15 06:55:04 2004 From: eenbp at leeds.ac.uk (Bo Peng) Date: Sun Aug 15 06:58:14 2004 Subject: [ns] Simulate 100 times setup and release LSPs in MNS_V2.0 Message-ID: <200408151355.i7FDtAj2003257@mserv1.leeds.ac.uk> Dear all, I added the release function in the example script "test-constraint-routing.tcl" and try to simulate a constraint routing algorithm in MNS_V2.0. When I simulate 10 times setup and release LSPs, it works well. But when I increase to 100 times setup and release LSPs, the error information pop up as follows and simulation stops after setup 40th LSP : --> The result of constraint-based routing for lspid 1037 : Explicit Route=4_1_2 o The CR-LSP of lspid 1037 has been just established at 76.486157333333338 * This is No.34 established LSP !! The CR-LSP of lspid 1013 has been just released at 77.168090666666686 --> The result of constraint-based routing for lspid 1038 : Explicit Route=1_3_2_11_13 o The CR-LSP of lspid 1038 has been just established at 81.025367999999986 * This is No.35 established LSP !! The CR-LSP of lspid 1008 has been just released at 81.651045333333343 !! The CR-LSP of lspid 1015 has been just released at 83.250068000000013 !! The CR-LSP of lspid 1017 has been just released at 84.048090666666695 --> The result of constraint-based routing for lspid 1039 : Explicit Route=1_3_2_11_13 ns: _o890 get-cr-mapping-msg 6 3 13 10 1039 9 *_1_3_2_11 *_*_*_*_3000000.0_2.0_* -1 -1: (_o213 cmd line 1) invoked from within "_o213 cmd del-hash 0 0 -1" invoked from within "catch "$self cmd $args" ret" (procedure "_o213" line 2) (SplitObject unknown line 2) invoked from within "$classifier_ del-hash 0 0 $old_flowid" (procedure "_o214" line 7) (CBQLink CBQ-change-flowid line 7) invoked from within "$self CBQ-change-flowid $cbqclass $flowid" (procedure "_o214" line 24) (SimpleLink alloc-resource line 24) invoked from within "$link_ptr alloc-resource $flowid $bw $qlim $parent $cbq_qtype $okborrow $hprio $maxidle $extradelay" (procedure "_o17" line 19) (RtModule/MPLS resource-reservation line 19) invoked from within "$module_ resource-reservation $src $mtr $hprio $flowid" (procedure "_o890" line 47) (Agent/LDP get-cr-mapping-msg line 47) invoked from within "_o890 get-cr-mapping-msg 6 3 13 10 1039 9 *_1_3_2_11 *_*_*_*_3000000.0_2.0_* -1 -1" I just feel it is very strange and totally no idea about this, why at first no problem but at the middle of the simulation. I'd very like to hear your idea about this. Many thanks, Bo Peng From yogonet02 at yahoo.co.uk Sun Aug 15 10:35:59 2004 From: yogonet02 at yahoo.co.uk (=?iso-8859-1?q?yogo=20ten?=) Date: Sun Aug 15 10:38:08 2004 Subject: [ns] simulate Optical Burst Switching networks Message-ID: <20040815173559.25312.qmail@web50104.mail.yahoo.com> Hi, I am new to NS. I downloaded NS and tried to install it. I found NS more complicated than I thought at first. Can anyone tell me that for how long did it take you to understand and apply NS in your own works? I intend to use NS to simulate Optical Burst Switching networks. But I didn't find the extension for OBS from NS site. Do you know any resources for OBS simulation? Thank you. yogo --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! From nadiaheidi at yahoo.com Sun Aug 15 15:03:37 2004 From: nadiaheidi at yahoo.com (Nadia Heidi) Date: Sun Aug 15 15:06:13 2004 Subject: [ns] How to add new modules in Ns with respect to the Physical layer ? Message-ID: <20040815220337.24559.qmail@web61202.mail.yahoo.com> Hi all ! Can somebody please tell me as to how one could add new modules in Ns. To be more specific, what should I do inorder to add a new modulation scheme (or) a new antenna type for e.g directional antenna (or) a fading model ... Thanks --Nadia --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! From nadiaheidi at yahoo.com Sun Aug 15 15:38:33 2004 From: nadiaheidi at yahoo.com (Nadia Heidi) Date: Sun Aug 15 15:41:09 2004 Subject: [ns] How to add new modules in Ns with respect to the Physical layer ? Message-ID: <20040815223833.73880.qmail@web61207.mail.yahoo.com> Hi all ! Can somebody please tell me as to how one could add new modules in Ns. To be more specific, what should I do inorder to add a new modulation scheme (or) a new antenna type for e.g directional antenna (or) a fading model ... Thanks --Nadia __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From p23615 at mail2.ukm.my Sun Aug 15 20:42:22 2004 From: p23615 at mail2.ukm.my (Low Chee Sing) Date: Sun Aug 15 20:33:22 2004 Subject: [ns] URGENT: Wireless Trace Message-ID: <41202D1E.80402@mail2.ukm.my> Hi all, I think I've posted this before, but I've not found the solutions yet. I hope that someone can help me in this, cause I'm not very familiar with NS. 1) I want to log the power transmission of Base Stations in my wireless simulation, is it possible? Which file should I look into? 2) I noticed that in wired+wireless simulation trace file, there is a node ip -1.0, or 1023.2047.2047, can someone tell me which node it refers to? I don't remember setting a node like that. 3) When I add another wireless node in wireless3.tcl in Marc Greis tutorial, the standard output doesn't show MH1 or MH2, it still show only MH. (It means that when both of my wireless nodes perform hand-off, I don't know which hand-off process refers to which, because it only mention "MH hand-off at xxx.xxx") I really need to get this done, because I'm rushing to finish my thesis for my master degree. Thank you for any of your replies. -- Low Chee Sing UKM Mercator Office Phone: +603-8921 6191 Fax: +603-8925 6629 From anup.mayank at gmail.com Sun Aug 15 22:57:45 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Sun Aug 15 23:00:11 2004 Subject: [ns] calculating time required to send 50000 bytes using FTP application in mobile network Message-ID: <469192b004081522576ece5fe8@mail.gmail.com> Hi all, Is there any other way, other than looking at the trace file to calculate the time rquired to send some predetermined bytes using FTP application in mobile network. Kindly suggest. Anup From synv at comnet.technion.ac.il Mon Aug 16 03:01:45 2004 From: synv at comnet.technion.ac.il (Yaniv Ben Izhak) Date: Mon Aug 16 02:03:13 2004 Subject: [ns] ********** 802.16 Module ********** Message-ID: <000f01c48378$09dcb570$4c344484@cnl.ef.technion.ac.il> Hi, Does somebody have 802.16 MAC&PHY Module ?? From hatta at telecom.ee.itb.ac.id Mon Aug 16 03:59:45 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Mon Aug 16 04:03:15 2004 Subject: [ns] problem make install ns-2.1b6 Message-ID: what that problem this? i don't solve with that problem.can you share about solve this problem ? thank ################################################# make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) m 555 -o bin -g bin calcdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) make[1]: Leaving directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' /bin/sh: line 1: cd: indep-utils/webtrace-conv/dec: No such file or directory make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) m 555 -o bin -g bin calcdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) make[1]: Leaving directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' /bin/sh: line 1: cd: indep-utils/webtrace-conv/epa: No such file or directory make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin From csalazar at easy.com Mon Aug 16 05:03:50 2004 From: csalazar at easy.com (Carlos Salazar) Date: Mon Aug 16 05:06:25 2004 Subject: [ns] Analysis results for 802.3 Message-ID: <86D03048F6314844681F6026CEEDA91D@csalazar.easy.com> Dear users, I am working with ns-2 simulating a LAN (802.3 CSMA/CD), and everything is fine. But I have a question over the results... I found that the probability of have a collision when I transmit small packets is bigger that the prob of having a collision when I tx bigger pkts. I know that that is true but i can not explain why??? I work with a distance between Users of 300m... I am sorry for posting this kind of question but I am using my last jocker here Thanks a lot Carlos easy.com This message was sent from the free private e-mail service by easy.com, the portal site owned by Stelios and the easyGroup. This email service is available to all members of the public to use for personal reasons only. Not all subscribers to this e-mail service are representatives of an easyGroup company. From edtyy at hotmail.com Mon Aug 16 07:47:50 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Mon Aug 16 07:50:25 2004 Subject: [ns] Nav Problem in mac-802_11.cc Message-ID: Hello everyone, I am facing the problem of Nav bug in 802-11.cc Problem Definition : the set_nav() function does not remember if the nav_ was updated by an eifs_ and hence is_idle() does not adjust for the fact. thus (for example) if "this STA" receives an RTS during the EIFS, when it is ready to send the CTS (in check_pktCTRL()), its call to is_idle() will come up false. hence it will not respond with a CTS even though it is allowed to do so. similarly, a CTS correctly received during the EIFS may be ignored. the eifs_ is set to be long enough for either of these possibilities. Edwin _________________________________________________________________ Preview the new MSN Search with MSN Search Tech Preview. http://techpreview.search.msn.com.sg/ From vojta at pohoda.cz Mon Aug 16 08:14:56 2004 From: vojta at pohoda.cz (Vojtech Janota) Date: Mon Aug 16 08:17:12 2004 Subject: [ns] [bug] obsolete usage of head program Message-ID: <200408161514.i7GFEuM02271@www.isi.edu> [Bug Report] ----------------------------- Category: Validation Failure Package: ns 2.27 OS: linux (gentoo) Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: Description of Problem: couple of tests contain following code: --- exec head -1 temp.d >@ $f exec cat temp.d >@ $f --- stderr of the 1st command not being empty causes 2nd line not to be executed at all. chaning 1st line to --- exec head -n 1 temp.d >@ $f --- fixes this problem. the reason is that: head: `-1' option is obsolete; use `-n 1' since this will be removed in the future From anilsingh72 at yahoo.com Mon Aug 16 08:42:17 2004 From: anilsingh72 at yahoo.com (Anil Singh) Date: Mon Aug 16 08:45:19 2004 Subject: [ns] running NS2 using a C++ program Message-ID: <20040816154217.46256.qmail@web40607.mail.yahoo.com> Hello NS2 experts, Is it possible to use a C++ program to run ns2. Say for example we run ns2 using TCL as (from example4.tcl) set ns [new Simulator] #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms DropTail $ns duplex-link $n1 $n2 1Mb 10ms DropTail $ns duplex-link $n3 $n2 1Mb 10ms SFQ can we write the same code in C++ say for example Simulator *ns = new Simulator(); ns.add_node(new Node(),1); .... ns.run(); Any suggestions? I need this so that I can write API's to interact with NS2 while the simulation is running. Thanks, Anil __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From qi.fan at kcl.ac.uk Mon Aug 16 10:14:19 2004 From: qi.fan at kcl.ac.uk (Qi Fan) Date: Mon Aug 16 10:18:40 2004 Subject: [ns] broadcast through UDP Message-ID: <200408161715.i7GHFRB06116@vapor.isi.edu> Hi NS-usrs, I am currently implementing a application for ad hoc network. Can anybody tell me how to send a broadcast packet from application to UDP agent then to AODV agent? Thanks in advance. From kenneth at daimi.au.dk Mon Aug 16 11:52:17 2004 From: kenneth at daimi.au.dk (Kenneth Nielsen) Date: Mon Aug 16 11:55:43 2004 Subject: [ns] broadcast through UDP References: <200408161715.i7GHFRB06116@vapor.isi.edu> Message-ID: <008501c483c2$28362e30$393a6b3e@kennethxp> Hi, For packet broadcast look in http://mailman.isi.edu/pipermail/ns-users/2000-June/009635.html Regards, Kenneth Nielsen ----- Original Message ----- From: "Qi Fan" To: "NS, Mailing List" Sent: Monday, August 16, 2004 7:14 PM Subject: [ns] broadcast through UDP > > Hi NS-usrs, > > I am currently implementing a application for ad hoc network. > > Can anybody tell me how to send a broadcast packet from application to UDP > agent then to AODV agent? > > Thanks in advance. > From nkulkarn at cs.stevens-tech.edu Mon Aug 16 13:30:10 2004 From: nkulkarn at cs.stevens-tech.edu (Nikhil Kulkarni) Date: Mon Aug 16 13:33:38 2004 Subject: [ns] setting MTU for a link In-Reply-To: References: Message-ID: Hello All, I'm new to NS. I would like to set the MTU (not bandwidth) for a link and then send packets across it. I know how to set the bandwidth, but is there any way by which one can set the link type (Ethernet, satelite link etc) or the link MTU? Thanks, Nikhil. From anilsingh72 at yahoo.com Mon Aug 16 13:49:56 2004 From: anilsingh72 at yahoo.com (Anil Singh) Date: Mon Aug 16 13:52:41 2004 Subject: [ns] running NS2 using a C++ program -- Please help In-Reply-To: <20040816154217.46256.qmail@web40607.mail.yahoo.com> Message-ID: <20040816204956.3973.qmail@web40608.mail.yahoo.com> Is it possible to get rid of OTCL interface from ns2 ? would we miss any functionality by doing this ??? --- Anil Singh wrote: > > Hello NS2 experts, > > Is it possible to use a C++ program to run ns2. Say > for example we run ns2 using TCL as (from > example4.tcl) > > set ns [new Simulator] > > #Create four nodes > set n0 [$ns node] > set n1 [$ns node] > set n2 [$ns node] > set n3 [$ns node] > > #Create links between the nodes > $ns duplex-link $n0 $n2 1Mb 10ms DropTail > $ns duplex-link $n1 $n2 1Mb 10ms DropTail > $ns duplex-link $n3 $n2 1Mb 10ms SFQ > > > can we write the same code in C++ > > say for example > > Simulator *ns = new Simulator(); > ns.add_node(new Node(),1); > .... > > ns.run(); > > > Any suggestions? I need this so that I can write > API's > to interact with NS2 while the simulation is > running. > > Thanks, > Anil > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From klee at nps.edu Mon Aug 16 16:00:44 2004 From: klee at nps.edu (Lee, Kok Thong SGP) Date: Mon Aug 16 16:03:35 2004 Subject: [ns] LAR = Landmark ? Message-ID: hi Does anyone know if the landmark (as a routing protocol for MANET) is the same as that of LAR ? landmark is defined in nsxx(ver)/sensor-nets/landmark.{cc,h} Please help. Tks Rgds Francis From yeqiang_ns2 at yahoo.ca Mon Aug 16 16:28:23 2004 From: yeqiang_ns2 at yahoo.ca (Qiang Ye) Date: Mon Aug 16 16:31:15 2004 Subject: [ns] Drop a certain number of packets in ns2? Message-ID: <20040816232823.5438.qmail@web90007.mail.scd.yahoo.com> HI all, In my ns2 simulation, I want a network link to drop a certain number(for each run, I want to change the number) of packets for some TCP session. I know I can use the following to make a link fail for a period of time, but really I can not control the number of dropped packets. "$ns rtmodel-at 1.0 down $n(1) $n(2) $ns rtmodel-at 2.0 up $n(1) $n(2)" Any available module in ns2 to do this? Thanks a lot. Qiang --------------------------------- Post your free ad now! Yahoo! Canada Personals From rajesh_george at infosys.com Mon Aug 16 22:13:53 2004 From: rajesh_george at infosys.com (Rajesh George) Date: Mon Aug 16 22:21:35 2004 Subject: [ns] Help needed linking error Message-ID: <1092719633.3731.3.camel@blrkec21649d.ad.infosys.com> Hi all I am implementing a new protocol in C++. While I am linking I am getting the following error. Can any one give me a hint? apps/gtp_rcv.o(.text+0x30c): In function `GtpAgent::GtpAgent[not-in-charge]()': : undefined reference to `vtable for GtpAgent' apps/gtp_rcv.o(.text+0x318): In function `GtpAgent::GtpAgent[not-in-charge]()': : undefined reference to `vtable for GtpAgent' apps/gtp_rcv.o(.text+0x390): In function `GtpAgent::GtpAgent[in-charge]()': : undefined reference to `vtable for GtpAgent' apps/gtp_rcv.o(.text+0x39c): In function `GtpAgent::GtpAgent[in-charge]()': : undefined reference to `vtable for GtpAgent' apps/gtp_rcv.o(.gnu.linkonce.t._ZN7hdr_gtp6accessEPK6Packet+0xb): In function `hdr_gtp::access(Packet const*)': : undefined reference to `hdr_gtp::offset_' apps/gtp_rcv.o(.gnu.linkonce.t._ZN8GtpAgentD2Ev+0xb): In function `GtpAgent::~GtpAgent [not-in-charge]()': : undefined reference to `vtable for GtpAgent' apps/gtp_rcv.o(.gnu.linkonce.t._ZN8GtpAgentD2Ev+0x17): In function `GtpAgent::~GtpAgent [not-in-charge]()': : undefined reference to `vtable for GtpAgent' apps/gtp_rcv.o(.gnu.linkonce.d._ZTI11GTPRcvAgent+0x8): undefined reference to `typeinfo for GtpAgent' collect2: ld returned 1 exit status make: *** [ns] Error 1 -George From rajesh_george at infosys.com Mon Aug 16 23:01:34 2004 From: rajesh_george at infosys.com (Rajesh George) Date: Mon Aug 16 23:07:13 2004 Subject: [ns] Help needed linking error In-Reply-To: <1092719633.3731.3.camel@blrkec21649d.ad.infosys.com> References: <1092719633.3731.3.camel@blrkec21649d.ad.infosys.com> Message-ID: <1092722494.3731.9.camel@blrkec21649d.ad.infosys.com> I got the answer from following link http://gcc.gnu.org/ml/gcc-bugs/2002-09/msg00083.html Sorry to bother you -George On Tue, 2004-08-17 at 10:43, Rajesh George wrote: > Hi all > I am implementing a new protocol in C++. While I am linking I am > getting the following error. > > Can any one give me a hint? > > apps/gtp_rcv.o(.text+0x30c): In function > `GtpAgent::GtpAgent[not-in-charge]()': > : undefined reference to `vtable for GtpAgent' > apps/gtp_rcv.o(.text+0x318): In function > `GtpAgent::GtpAgent[not-in-charge]()': > : undefined reference to `vtable for GtpAgent' > apps/gtp_rcv.o(.text+0x390): In function > `GtpAgent::GtpAgent[in-charge]()': > : undefined reference to `vtable for GtpAgent' > apps/gtp_rcv.o(.text+0x39c): In function > `GtpAgent::GtpAgent[in-charge]()': > : undefined reference to `vtable for GtpAgent' > apps/gtp_rcv.o(.gnu.linkonce.t._ZN7hdr_gtp6accessEPK6Packet+0xb): In > function `hdr_gtp::access(Packet const*)': > : undefined reference to `hdr_gtp::offset_' > apps/gtp_rcv.o(.gnu.linkonce.t._ZN8GtpAgentD2Ev+0xb): In function > `GtpAgent::~GtpAgent [not-in-charge]()': > : undefined reference to `vtable for GtpAgent' > apps/gtp_rcv.o(.gnu.linkonce.t._ZN8GtpAgentD2Ev+0x17): In function > `GtpAgent::~GtpAgent [not-in-charge]()': > : undefined reference to `vtable for GtpAgent' > apps/gtp_rcv.o(.gnu.linkonce.d._ZTI11GTPRcvAgent+0x8): undefined > reference to `typeinfo for GtpAgent' > collect2: ld returned 1 exit status > make: *** [ns] Error 1 > > > -George > From naby_djoubar at hotmail.com Tue Aug 17 00:21:20 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Tue Aug 17 00:24:44 2004 Subject: [ns] Error while testing a new agent Message-ID: hi guys while trying to test a new Agent I get the following message: warning: please use -channel as shown in tcl/ex/wireless-mitf.tcl wrong node routing agent! What does that mean? doesn't it reconignize my agent? Do I have to put my code in ns-2.27 directory for him to find it? something else: In the necessary changes one have to make to ns files I skipped the following change to the file 'tcl/lib/ns-packet.tcl' { SRMEXT off_srm_ext_} { Ping off_ping_ }} { set cl PacketHeader/[lindex $pair 0] because when you take a look at that file EVERYTHING is declared as a procedure and I didn't know how the abaove code fitted in there! thanks for any attention. _________________________________________________________________ Des m?canismes de contr?le parental puissants permettent ? votre enfant de d?couvrir tout ce qu?Internet a ? offrir. http://join.msn.com/?pgmarket=fr-ca&page=features/parental&ST=1&xAPID=1983&DI=2043 Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From hatta at telecom.ee.itb.ac.id Tue Aug 17 00:33:10 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Tue Aug 17 00:36:24 2004 Subject: [ns] problem make install ns-2.1b6 Message-ID: what that problem this? i don't solve with that problem.can you share about solve this problem ? thank ################################################# make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) m 555 -o bin -g bin calcdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) make[1]: Leaving directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' /bin/sh: line 1: cd: indep-utils/webtrace-conv/dec: No such file or directory make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) m 555 -o bin -g bin calcdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) make[1]: Leaving directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' /bin/sh: line 1: cd: indep-utils/webtrace-conv/epa: No such file or directory make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin From rajesh_george at infosys.com Tue Aug 17 00:40:13 2004 From: rajesh_george at infosys.com (Rajesh George) Date: Tue Aug 17 00:45:36 2004 Subject: [ns] Help needed: Linking error offset_ Message-ID: <1092728413.3731.53.camel@blrkec21649d.ad.infosys.com> I was looking into the source code ns-allinone-2.27/ns-2.27/apps/mftp.h 1. I found the following declaration on most of the header files for new protocol static int offset_; // required by PacketHeaderManager Can any one explain what does this mean? 2. When I wrote a new protcol I got linking error for the above variabel undefined reference to `hdr_gtp::offset_ Can any one help? From hatta at telecom.ee.itb.ac.id Tue Aug 17 01:01:51 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Tue Aug 17 01:05:37 2004 Subject: [ns] problem make install ns-2.1b6 Message-ID: what that problem this? i don't solve with that problem.can you share about solve this problem ? thank ################################################# make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) m 555 -o bin -g bin calcdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) make[1]: Leaving directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' /bin/sh: line 1: cd: indep-utils/webtrace-conv/dec: No such file or directory make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) m 555 -o bin -g bin calcdest /usr/local/bin make[1]: m: Command not found make[1]: [install] Error 127 (ignored) make[1]: Leaving directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' /bin/sh: line 1: cd: indep-utils/webtrace-conv/epa: No such file or directory make[1]: Entering directory `/source/ns-allinone-2.1b6/ns-2.1b6/indep-utils/cmu-scen-gen/setdest' m 555 -o bin -g bin setdest /usr/local/bin From hpgu at guanghua.sh.cn Tue Aug 17 02:06:07 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Tue Aug 17 02:09:46 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users Message-ID: <2C175CE01348C945BCF5D20FF269A3B20223785A@master.guanghua.sh.cn> Hi all: Here I want to initiate a survey about mobile Ipv6 user and researcher: 1. If you are now focusing or working related to Mobile Ipv6 using = NS2 please reply this mail. 2. If you are now focusing or working related to Mobile Ipv6 but = not using NS2, please tell us what simulator you are use in the reply. = For example Omnet++, OPNET and so on. 3. I just want to know is NS2 are popular in Mobile Ipv6 = simulation. I find that Mobile Ipv6 support in NS2 is not good and the = Mobiwan extantion is so old and only support NS-2.1b6.=20 =20 Thanks a lot for your attention! =20 Yours sincerely Humphrey Gu =20 From ple at graduate.kmitl.ac.th Tue Aug 17 03:48:07 2004 From: ple at graduate.kmitl.ac.th (Warodom Werapun) Date: Tue Aug 17 03:51:13 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users In-Reply-To: <2C175CE01348C945BCF5D20FF269A3B20223785A@master.guanghua.sh.cn> References: <2C175CE01348C945BCF5D20FF269A3B20223785A@master.guanghua.sh.cn> Message-ID: <4121E267.5040905@graduate.kmitl.ac.th> hpgu@guanghua.sh.cn wrote: >Hi all: >Here I want to initiate a survey about mobile Ipv6 user and researcher: >1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. >2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. >3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. > >Thanks a lot for your attention! > >Yours sincerely >Humphrey Gu > Agree all especial (3). Now, I aim to implement the simulation by myself. If you can provide NS-2 + Mobile IPv6 extension, well! I will help you to try your software. Yours sincerely, -- Warodom Werapun PGP: http://plex.coe.psu.ac.th/myPGP.txt From Rajesh_George at infosys.com Tue Aug 17 04:22:49 2004 From: Rajesh_George at infosys.com (Rajesh George) Date: Tue Aug 17 04:27:23 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users Message-ID: <31E1CAD34DAF2F48A768DE429D88E599086010B2@kecmsg01.ad.infosys.com> Looks like many pictures are not accessible in ns manual One Eg : http://www.isi.edu/nsnam/ns/doc/node498.html#fig:appdata-hier -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of Warodom Werapun Sent: Tuesday, August 17, 2004 4:18 PM To: hpgu@guanghua.sh.cn Cc: ns-users@ISI.EDU Subject: Re: [ns] Survey for MObile IPv6 NS2 Users hpgu@guanghua.sh.cn wrote: >Hi all: >Here I want to initiate a survey about mobile Ipv6 user and researcher: >1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. >2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. >3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. > >Thanks a lot for your attention! > >Yours sincerely >Humphrey Gu > Agree all especial (3). Now, I aim to implement the simulation by myself. If you can provide NS-2 + Mobile IPv6 extension, well! I will help you to try your software. Yours sincerely, -- Warodom Werapun PGP: http://plex.coe.psu.ac.th/myPGP.txt From neill.whillans at ti-wmc.nl Tue Aug 17 05:24:37 2004 From: neill.whillans at ti-wmc.nl (Neill Whillans) Date: Tue Aug 17 05:27:23 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users In-Reply-To: <2C175CE01348C945BCF5D20FF269A3B20223785A@master.guanghua.sh.cn> References: <2C175CE01348C945BCF5D20FF269A3B20223785A@master.guanghua.sh.cn> Message-ID: <4121F905.6090101@ti-wmc.nl> hpgu@guanghua.sh.cn wrote: >Hi all: >Here I want to initiate a survey about mobile Ipv6 user and researcher: >1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. >2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. >3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. > >Thanks a lot for your attention! > >Yours sincerely >Humphrey Gu > > > > I have just started looking into porting MobiWan for ns-2.26, but progress is slow :) /Neill From Flavio.Desandre at TILAB.COM Tue Aug 17 05:42:06 2004 From: Flavio.Desandre at TILAB.COM (Desandre` Flavio) Date: Tue Aug 17 05:45:20 2004 Subject: [ns] fragmentation threshold Message-ID: Hi, can anyone please tell me how to set to fragmentation threshold in ns2. At the moment it's set up to 1000 Byte but I'd like to change it. The problem is I don't know exactely the name of the variable to be changed Thank for your help Flavio Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A. ==================================================================== CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please send an e_mail to MailAdmin@tilab.com. Thank you ==================================================================== From przemekmm at interia.pl Tue Aug 17 06:46:41 2004 From: przemekmm at interia.pl (P) Date: Tue Aug 17 06:49:15 2004 Subject: [ns] MAC access time Message-ID: <20040817134641.C5270EB2EC@poczta.interia.pl> Hello! I have a question, is it possible to get access time, I mean delay in time it is needed to access the medium i.e. in 802.11 or Ethernet? For example there are 3 nodes that are trying to acces the medium at the same time or in very short time intervals one after another, and how to get from ns time after each of these 3 nodes get access to the medium? How to do it in NS? Thnanks in advance for yoyr replies, Przemek Warsaw University of Technology From edtyy at hotmail.com Tue Aug 17 07:59:23 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Tue Aug 17 08:02:18 2004 Subject: [ns] Uptarget_ from MAC to RTR layer Message-ID: Hello everyone, I have some variables to pass up from MAC layer to RTR layer periodically. Is there a way to uptarget_ to RTR layer without going through the LL layer immediately. Thank You Edwin _________________________________________________________________ Preview the new MSN Search with MSN Search Tech Preview. http://techpreview.search.msn.com.sg/ From johnh at ISI.EDU Tue Aug 17 08:28:18 2004 From: johnh at ISI.EDU (John Heidemann) Date: Tue Aug 17 08:33:21 2004 Subject: [ns] [bug] obsolete usage of head program In-Reply-To: <200408161514.i7GFEuM02271@www.isi.edu> Message-ID: <200408171528.i7HFSJFZ028076@dash.isi.edu> Thanks for the bug report and fix; your fix will be in the next release. -John Heidemann On Mon, 16 Aug 2004 08:14:56 PDT, Vojtech Janota wrote: > >[Bug Report] > >----------------------------- >Category: Validation Failure >Package: ns 2.27 >OS: linux (gentoo) >Environment Variables: >LD_LIBRARY_PATH= >TCL_LIBRARY= >TK_LIBRARY= > > >----------------------------- >Description: > >Description of Problem: > >couple of tests contain following code: > >--- >exec head -1 temp.d >@ $f >exec cat temp.d >@ $f >--- > >stderr of the 1st command not being empty causes 2nd line not to be executed at all. chaning 1st line to > >--- >exec head -n 1 temp.d >@ $f >--- > >fixes this problem. the reason is that: > >head: `-1' option is obsolete; use `-n 1' since this will be removed in the future > From raysaikat at lycos.com Tue Aug 17 08:45:15 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Tue Aug 17 08:48:18 2004 Subject: [ns] fragmentation threshold Message-ID: <20040817154515.7C1F4C612B@ws7-5.us4.outblaze.com> That is probably UDP max packet size ... ----- Original Message ----- From: Desandre` Flavio Date: Tue, 17 Aug 2004 14:42:06 +0200 To: ns-users@ISI.EDU Subject: [ns] fragmentation threshold > > Hi, > can anyone please tell me how to set to fragmentation threshold in ns2. At the moment it's set up to 1000 Byte but I'd like to change it. The problem is I don't know exactely the name of the variable to be changed > Thank for your help > Flavio > > > Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A. > > ==================================================================== > CONFIDENTIALITY NOTICE > This message and its attachments are addressed solely to the persons > above and may contain confidential information. If you have received > the message in error, be informed that any use of the content hereof > is prohibited. Please return it immediately to the sender and delete > the message. Should you have any questions, please send an e_mail to > MailAdmin@tilab.com. Thank you > ==================================================================== > -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From 2yanli at gmail.com Tue Aug 17 09:59:24 2004 From: 2yanli at gmail.com (Yan Li) Date: Tue Aug 17 10:02:42 2004 Subject: [ns] Please Help! Message-ID: Hi all, I am using ns2 for our p2p project. From the manual, I know we should connect two agents in tcl, so that the the correct destination addresses can be assigned to each agent. My question is: can I assign the destination address in c++? means, is there any method to send packet to a specific destination without the "connect" in tcl? Because in our project, the sending and receiving nodes are changed frequently and the c++ application determine which one is the next receiver. So, it's impossible to determine which agent is the receiver in TCL.. Any informatin is appreciated! Thanks a lot!! From johnh at ISI.EDU Tue Aug 17 10:49:07 2004 From: johnh at ISI.EDU (John Heidemann) Date: Tue Aug 17 10:53:40 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared In-Reply-To: <034d01c48151$07804f40$68892090@grouse> Message-ID: <200408171749.i7HHn72Y021176@dash.isi.edu> On Fri, 13 Aug 2004 17:17:28 BST, "Jee J.Z." wrote: > >Hi all, > >Thank you for your replies. Just for your information: > >http://www.isi.edu/nsnam/ns/ns-problems.html may not provide full bug fix >info for NS2.27 'CPP_NAMESPACE' undeclared problem for some users. > >For those users who still suffer from error reports after following the >instructions on http://www.isi.edu/nsnam/ns/ns-problems.html, please refer >to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. Can you please be specific about which Makefiles in the current CVS snapshot still have references to undefined symbols? (My take by grepping the current codebase is that STL_NAMESPACE is now gone and the current CVS code should compile complete. We'd like to know if that's not the case.) -John Heidemann From jz105 at york.ac.uk Tue Aug 17 11:13:11 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Tue Aug 17 11:12:50 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared References: <200408171749.i7HHn72Y021176@dash.isi.edu> Message-ID: <05c901c48485$db7792e0$68892090@grouse> Hi John, As far as I encountered, they are: ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, ns-2.27/indep-utils/webtrace-conv/nlanr/Makefile, and ns-2.27/indep-utils/webtrace-conv/dec/Makefile Cheers, Jee ----- Original Message ----- From: "John Heidemann" To: "Jee J.Z." Cc: ; ; Sent: Tuesday, August 17, 2004 6:49 PM Subject: Re: [ns] make error: 'CPP_NAMESPACE' undeclared > On Fri, 13 Aug 2004 17:17:28 BST, "Jee J.Z." wrote: > > > >Hi all, > > > >Thank you for your replies. Just for your information: > > > >http://www.isi.edu/nsnam/ns/ns-problems.html may not provide full bug fix > >info for NS2.27 'CPP_NAMESPACE' undeclared problem for some users. > > > >For those users who still suffer from error reports after following the > >instructions on http://www.isi.edu/nsnam/ns/ns-problems.html, please refer > >to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. > > Can you please be specific about which Makefiles in the current CVS > snapshot still have references to undefined symbols? > > (My take by grepping the current codebase is that STL_NAMESPACE is now > gone and the current CVS code should compile complete. We'd like to > know if that's not the case.) > > -John Heidemann > > > From yxiaoyun at 263.net Tue Aug 17 11:31:10 2004 From: yxiaoyun at 263.net (Yang Shaojun(Peter Yang)) Date: Tue Aug 17 11:34:32 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared Message-ID: <20040817183110.8415E2F79D@smtp.263.net> John Heidemann, files list that you need modify: ns-x.xx/indep-utils/webtrace-conv/nlanr/Makefile.in ns-x.xx/indep-utils/webtrace-conv/dec/Makefile.in ns-x.xx/indep-utils/cmu-scen-gen/setdest/Makefile.in you should add "-DCPP_NAMESPACE=@CPP_NAMESPACE@" at the end of "DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@" Such as: -DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=@CPP_NAMESPACE@ ======= 2004-08-18 01:49:07 ======= >On Fri, 13 Aug 2004 17:17:28 BST, "Jee J.Z." wrote: >> >>Hi all, >> >>Thank you for your replies. Just for your information: >> >>http://www.isi.edu/nsnam/ns/ns-problems.html may not provide full bug fix >>info for NS2.27 'CPP_NAMESPACE' undeclared problem for some users. >> >>For those users who still suffer from error reports after following the >>instructions on http://www.isi.edu/nsnam/ns/ns-problems.html, please refer >>to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. > >Can you please be specific about which Makefiles in the current CVS >snapshot still have references to undefined symbols? > >(My take by grepping the current codebase is that STL_NAMESPACE is now >gone and the current CVS code should compile complete. We'd like to >know if that's not the case.) > > -John Heidemann > > > = = = = = = = = = = = = = = = = = = = =         Yang Shaojun(Peter Yang)         yxiaoyun@263.net           2004-08-18 From anais55 at hotmail.com Tue Aug 17 14:47:46 2004 From: anais55 at hotmail.com (luisa heredia garcia) Date: Tue Aug 17 14:50:35 2004 Subject: [ns] HELP!!!Monitoring queue Message-ID: Hi all, I would like to monitor the queue size on the receiver node, could anybody help me? I have used the following: set qmon [$ns monitor-queue $n1 $n2 0] set fqsize [open "qsize.n1-n2.out" w] set fqdrop [open "qdrop.n1-n2.out" w] $ns at 0 "record" proc record {} { global ns qmon fqsize fqdrop set time [$ns now] set qsize [$qmon set pkts_] set qdrop [$qmon set pdrops_] puts $fqsize "$time $qsize" puts $fqdrop "$time $qdrop" $qmon reset $ns at [expr $time+1.0] "record" } proc finish {} { global fqsize fqdrop ... close $fqsize close $fqdrop ... } ##### but I think that in this way I follow the queue in the router, not in the receiver, what do you think about it????????? Thanks a lot, regards. ************ _________________________________________________________________ Reparaciones, servicios a domicilio, empresas, profesionales... Todo en la gu?a telef?nica de QDQ. http://qdq.msn.es/msn.cfm From joe_os2001 at yahoo.com Tue Aug 17 16:12:58 2004 From: joe_os2001 at yahoo.com (Joe OS) Date: Tue Aug 17 16:15:39 2004 Subject: [ns] Help: Analysing a ns trace file??? Message-ID: <20040817231258.67480.qmail@web21423.mail.yahoo.com> Hi all, Is there any app to interpret a ns trace file? I built the trace file using the following instructions: $ns_ use_newtrace set tracefd [open $opt(tr) w] $ns_ trace-all $tracefd I can see the contents of the file using a text editor but is is not easy to analyse events... Do you know any app to read these files? Thanks Joe __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From klee at nps.edu Tue Aug 17 17:36:24 2004 From: klee at nps.edu (Lee kok thong) Date: Tue Aug 17 17:39:29 2004 Subject: [ns] Help: Analysing a ns trace file??? In-Reply-To: <20040817231258.67480.qmail@web21423.mail.yahoo.com> Message-ID: <000401c484bb$648dec70$220110ac@G0303085> 1) Tracegraph 2.02 2) NANS 3) Learn AWK or PERL regards Francis -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of Joe OS Sent: Tuesday, August 17, 2004 4:13 PM To: ns-users@ISI.EDU Subject: [ns] Help: Analysing a ns trace file??? Hi all, Is there any app to interpret a ns trace file? I built the trace file using the following instructions: $ns_ use_newtrace set tracefd [open $opt(tr) w] $ns_ trace-all $tracefd I can see the contents of the file using a text editor but is is not easy to analyse events... Do you know any app to read these files? Thanks Joe __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From hpgu at guanghua.sh.cn Tue Aug 17 20:44:26 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Tue Aug 17 20:47:40 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users Message-ID: <2C175CE01348C945BCF5D20FF269A3B2022378E8@master.guanghua.sh.cn> Hi Warodom Werapun: I have successfully compiled and installed NS-2.26, but when I try to install NS-2.1b6, always compile errors. So I never go further to port the Mobiwan on NS-2.1b6. My platform: RHL(2.4.20-8) The errors is related to tracedvar.cc 102, 1) in member function "virtual char* TracedInt::value(***)" 2) abort() function in ln102 is undefined. Could you give me some suggestion or hints? Waiting for your reply. 3x in advance! Yours sincerely Humphrey Gu -----喨周圻周----- 窟周繁: Warodom Werapun [mailto:ple@graduate.kmitl.ac.th] 窟僕扮寂: 2004定8埖17晩 18:48 辺周繁: 冩窟 綱鯖峠 貝僕: ns-users@ISI.EDU 麼籾: Re: [ns] Survey for MObile IPv6 NS2 Users hpgu@guanghua.sh.cn wrote: >Hi all: >Here I want to initiate a survey about mobile Ipv6 user and researcher: >1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. >2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. >3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. > >Thanks a lot for your attention! > >Yours sincerely >Humphrey Gu > Agree all especial (3). Now, I aim to implement the simulation by myself. If you can provide NS-2 + Mobile IPv6 extension, well! I will help you to try your software. Yours sincerely, -- Warodom Werapun PGP: http://plex.coe.psu.ac.th/myPGP.txt From hatta at telecom.ee.itb.ac.id Tue Aug 17 21:43:17 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Tue Aug 17 21:46:24 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users In-Reply-To: <2C175CE01348C945BCF5D20FF269A3B2022378E8@master.guanghua.sh.cn> Message-ID: On Wed, 18 Aug 2004 hpgu@guanghua.sh.cn wrote: > > Hi Warodom Werapun: > I have successfully compiled and installed NS-2.26, but when I try to install NS-2.1b6, always compile errors. So I never go further to port the Mobiwan on NS-2.1b6. > My platform: RHL(2.4.20-8) > The errors is related to tracedvar.cc 102, > 1) in member function "virtual char* TracedInt::value(***)" > 2) abort() function in ln102 is undefined. > > Could you give me some suggestion or hints? > Waiting for your reply. > 3x in advance! > Yours sincerely > Humphrey Gu http://www.infotech.tu-chemnitz.de/~knoll/NS2/Installing_old_NS2_version_ns-allinone-2_1b6a_on_RedHat_8_0.php From huwaida_lucu at yahoo.com Tue Aug 17 22:03:11 2004 From: huwaida_lucu at yahoo.com (Huwaida Rushdie) Date: Tue Aug 17 22:06:15 2004 Subject: [ns] help.. I need a mobile IpV4 code In-Reply-To: <200408171900.i7HJ0Ki21855@gamma.isi.edu> Message-ID: <20040818050311.80412.qmail@web51908.mail.yahoo.com> Hello everyone... I'm doing a project in comparing between Hawaii protocol and IpV4 Mobile IP I wsa trying to get an IpV4 coding but I could'nt find for a mobile Ip one... so can anyone help me and send to me a mobile IpV4 code... thank you soo much... Emily Jannah --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From p23615 at mail2.ukm.my Tue Aug 17 22:22:59 2004 From: p23615 at mail2.ukm.my (Low Chee Sing) Date: Tue Aug 17 22:26:16 2004 Subject: [ns] [Fwd: URGENT: Wireless Trace] Message-ID: <4122E7B3.6000108@mail2.ukm.my> Hi all, I think I've posted this before, but I've not found the solutions yet. I hope that someone can help me in this, cause I'm not very familiar with NS. 1) I want to log the power transmission of Base Stations in my wireless simulation, is it possible? Which file should I look into? 2) I noticed that in wired+wireless simulation trace file, there is a node ip -1.0, or 1023.2047.2047, can someone tell me which node it refers to? I don't remember setting a node like that. 3) When I add another wireless node in wireless3.tcl in Marc Greis tutorial, the standard output doesn't show MH1 or MH2, it still show only MH. (It means that when both of my wireless nodes perform hand-off, I don't know which hand-off process refers to which, because it only mention "MH hand-off at xxx.xxx") I really need to get this done, because I'm rushing to finish my thesis for my master degree. Thank you for any of your replies. ===== ---------------------- Low Chee Sing UKM Mercator Office Phone: +603 8921 6191 Fax: +603 8925 6629 From rajesh_george at infosys.com Tue Aug 17 23:06:09 2004 From: rajesh_george at infosys.com (Rajesh George) Date: Tue Aug 17 23:10:14 2004 Subject: [ns] help.. I need a mobile IpV4 code In-Reply-To: <20040818050311.80412.qmail@web51908.mail.yahoo.com> References: <20040818050311.80412.qmail@web51908.mail.yahoo.com> Message-ID: <1092809169.3795.21.camel@blrkec21649d.ad.infosys.com> Make sure that u read the ns tutorial On Wed, 2004-08-18 at 10:33, Huwaida Rushdie wrote: > Hello everyone... > I'm doing a project in comparing between Hawaii protocol and IpV4 Mobile IP > I wsa trying to get an IpV4 coding but I could'nt find for a mobile Ip one... > so can anyone help me and send to me a mobile IpV4 code... > thank you soo much... > > Emily Jannah > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! From archsentinel at yahoo.com Tue Aug 17 23:46:53 2004 From: archsentinel at yahoo.com (Arch Sentinel) Date: Tue Aug 17 23:50:16 2004 Subject: [ns] Help! Accessing a function from tcl script Message-ID: <20040818064653.85122.qmail@web50801.mail.yahoo.com> Greeting ns-users, I have written a function in aodv.cc. How do I access this function from my tcl script? I am able to access if my function is in node.cc. But node.cc and aodv.cc does not seem to have any link, thus i am unable to collect data from routing table in aodv.cc. Please help me. Thanks. /*myfunct written in aodv.cc */ int AODV::command(int argc, const char*const* argv) { if(argc == 2) { Tcl& tcl = Tcl::instance(); if(strncasecmp(argv[1], "myfunc", 2) == 0) { tcl.resultf("%d", index); return TCL_OK; } } Regards, Chong __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From PG03077626 at ntu.edu.sg Wed Aug 18 01:35:26 2004 From: PG03077626 at ntu.edu.sg (#YU YANG#) Date: Wed Aug 18 01:38:39 2004 Subject: [ns] about ./setdest Message-ID: <34C4FA35021357469685D8102806A1C01D0A65@mail01.student.main.ntu.edu.sg> Hi, when i try to run ./setdest command for producing a scenario file, and the command line is like the following : ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 >scen-20-test it always give back the following error: setdest.cc:591 void Node::RandomSpeed(): Assertion 'speed != 0.0' failed. Aborted. I am using ns-allinone-2.27. Does anyone have the same problem? How can I solve it? Thanks for your reply and help. rgds, From hws99 at mails.tsinghua.edu.cn Wed Aug 18 02:19:56 2004 From: hws99 at mails.tsinghua.edu.cn (=?GB2312?Q?=BA=D8=CE=B0=EA=C9?=) Date: Wed Aug 18 02:22:38 2004 Subject: [ns] Needs for help Message-ID: <292820482.27514@mails.tsinghua.edu.cn> hi,everyone Now I have a problem while installing ns so I am seeking your help. I am trying to install NS-2 from seperate pieces on Windows XP platform. While I am trying to run the command "nmake -f makefile.vc" under the ns-2.27 directory, it says "don't know how to make @V_STLOBJ@", I find the @V_STLOBJ@ item in the makefile.vc as a dependency item of a description block, So I am wondering what this item means and how I can solve th problem. My ns-2 version is ns-2.27. Thank you.         Yours, Herbert         hws99@mails.tsinghua.edu.cn           2004-08-18 From fjrm4 at yahoo.es Wed Aug 18 03:22:21 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Wed Aug 18 03:23:17 2004 Subject: [ns] Help! Accessing a function from tcl script In-Reply-To: <20040818064653.85122.qmail@web50801.mail.yahoo.com> References: <20040818064653.85122.qmail@web50801.mail.yahoo.com> Message-ID: <200408181222.22466.fjrm4@yahoo.es> Hi! I think you have to access to your routing agent from your tcl script. Try something like this: set ra [$node agent 255] $ra myfunc I think this should work (255 is the port number where AODV should be attached to). Regards, Francisco Ros. El Mi?rcoles, 18 de Agosto de 2004 08:46, Arch Sentinel escribi?: > Greeting ns-users, > > I have written a function in aodv.cc. How do I > access this function from my tcl script? I am able to > access if my function is in node.cc. But node.cc and > aodv.cc does not seem to have any link, thus i am > unable to collect data from routing table in aodv.cc. > Please help me. Thanks. > > /*myfunct written in aodv.cc */ > int > AODV::command(int argc, const char*const* argv) { > > if(argc == 2) { > Tcl& tcl = Tcl::instance(); > > if(strncasecmp(argv[1], "myfunc", 2) == 0) { > tcl.resultf("%d", index); > return TCL_OK; > } > } > > Regards, > Chong > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail From rxu at umd.edu Wed Aug 18 07:16:32 2004 From: rxu at umd.edu (Rong XU) Date: Wed Aug 18 07:19:29 2004 Subject: [ns] congestion feedback Message-ID: <1092838592.9602a680rxu@umd.edu> Hi, Is there any way that the routing protocol (for example AODV or DSR) can access link information (such as available and used bandwidth)? I need this congestion feedback in order to implement multipath load-balancing for ad hoc networks. Thanks. Rong rxu@mail.umd.edu From edtyy at hotmail.com Wed Aug 18 08:22:29 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Wed Aug 18 08:25:19 2004 Subject: [ns] Sending Variables from MAC to RTR using uptarget_ Message-ID: Hello, how can I send some variables using uptarget_ from the MAC layer to the RTR layer without going through the LL layer? Thank You Edwin _________________________________________________________________ Preview the new MSN Search with MSN Search Tech Preview. http://techpreview.search.msn.com.sg/ From jmikola at cs.stevens.edu Wed Aug 18 09:25:42 2004 From: jmikola at cs.stevens.edu (Jeremy Mikola) Date: Wed Aug 18 09:28:32 2004 Subject: [ns] creating an intermediary agent to intercept traffic In-Reply-To: References: Message-ID: <41238306.8000003@cs.stevens.edu> i'm currently attempting to create an agent that will sit between two network nodes and simply receive/forward traffic, recording when traffic is moved through it by some basic mechanism, such as incrementing a counter for each ferried packet. from what i understand about ns, 'sending' data involves little more than invoking the recv method on the destination node. my question is whether or not it's possible to develop an intermediary agent in ns to ultimately intercept network traffic, examine/modify the packet if necessary, and forward it along transparently. if this is, indeed, possible, does anyone have any advice to direct said development? to provide an example of exactly what i'd like to do, consider: (TcpSource)---(IntermedAgent)---(IntermedAgent)---(TcpDest) physical links as shown. connect TcpSource to TcpDest, and send some packet w/ data over to Dest, allowing any number of IntermedAgent's to intercept, examine, and ferry along the packet in order of their position in the path. working off some existing tutorials, i'm currently looking at extending the TcpAgent class, since this intermediary agent is intended to manage tcp packets only, and the App layer above Agent appears too high-level to work from. thanks, - jeremy mikola From johnh at ISI.EDU Wed Aug 18 10:25:15 2004 From: johnh at ISI.EDU (John Heidemann) Date: Wed Aug 18 10:28:47 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared In-Reply-To: <20040817183110.8415E2F79D@smtp.263.net> Message-ID: <200408181725.i7IHPFog020673@dash.isi.edu> On Wed, 18 Aug 2004 02:31:10 +0800, "Yang Shaojun(Peter Yang)" wrote: > >John Heidemann, > >files list that you need modify: > ns-x.xx/indep-utils/webtrace-conv/nlanr/Makefile.in > ns-x.xx/indep-utils/webtrace-conv/dec/Makefile.in > ns-x.xx/indep-utils/cmu-scen-gen/setdest/Makefile.in > >you should add "-DCPP_NAMESPACE=@CPP_NAMESPACE@" at the end of "DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@" > >Such as: >-DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=@CPP_NAMESPACE@ > I said: >>(My take by grepping the current codebase is that STL_NAMESPACE is now >>gone and the current CVS code should compile complete. We'd like to ^^^^^^^^^^^^^^^^^^^^ >>know if that's not the case.) These changes have all been made there already. (Btw, CPP_NAMESPACE should replace STL_NAMESPACE, not be added to it.) Aaah, I see what the original poster's complain is: that the other files aren't listed on ns-problems. -John Heidemann From ee03502 at elec.qmul.ac.uk Wed Aug 18 12:07:58 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Wed Aug 18 12:12:32 2004 Subject: [ns] why make doe not work??? Message-ID: <002b01c48556$ad0c4280$b725258a@student.elec.qmul.ac.uk> Hi all, I have made a small change in Linkdelay class. I tried to validate my changes by running "make" under the ns-2.27 directory. But, apperentely nothing changed. I have tried to use "./install" , "make depnd; make" but nothing changed as well. PS: I have worked with make to validate my changes and it did work fine. the only difference is that this time, I am running ns on a removable hard disk does this have any effects?? I will be surprised if the anwer is yes. Can anyone please help, please please Ikram From haja_m at ece.concordia.ca Wed Aug 18 17:37:05 2004 From: haja_m at ece.concordia.ca (haja_m@ece.concordia.ca) Date: Wed Aug 18 17:39:28 2004 Subject: [ns] help.. I need a mobile IpV4 code Message-ID: <4123F631.3000005@ece.concordia.ca> Hi Huwaida, U can check the Marc Grei's Tutorial in the following link. http://www.isi.edu/nsnam/ns/tutorial/index.html In section X of the above link, you will find Mobile IP sample code which is actually for IPV4 simulation. Good luck, Haja On Wed, 2004-08-18 at 10:33, Huwaida Rushdie wrote: > Hello everyone... > I'm doing a project in comparing between Hawaii protocol and IpV4 Mobile IP > I wsa trying to get an IpV4 coding but I could'nt find for a mobile Ip one... > so can anyone help me and send to me a mobile IpV4 code... > thank you soo much... > > Emily Jannah > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! From anup.mayank at gmail.com Wed Aug 18 17:38:26 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Wed Aug 18 17:41:20 2004 Subject: [ns] Sending data from one application to another Message-ID: <469192b004081817387ce1da87@mail.gmail.com> Hi, I have developed one application class. Lets say A[1] and A[2] are two instances of the application. These applications are attached to 2 different mobile nodes. I want to send a number from A[1] to A[2]. Kindly let me know, what is the most appropriate way to do this ?? With regards Anup From advarl at hotmail.com Wed Aug 18 18:42:18 2004 From: advarl at hotmail.com (advarl) Date: Wed Aug 18 18:57:18 2004 Subject: [ns] error message of rebuilding n2-2.27 Message-ID: hiJee J.Z. the following is the error message of rebuilding n2-2.27, can anyone tell the reason? Do someone meet the problem of namespace while making ns2, i.e. autoconf.h:85: namespace `CPP_NAMESPACE' undeclared Thanks in advance! ps:message for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; mae make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc In file included from ../../../config.h:54, from setdest.h:5, from setdest.cc:57: ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared setdest.cc:71:1: warning: "INFINITY" redefined In file included from /usr/include/math.h:40, from setdest.cc:43: /usr/include/bits/mathdef.h:35:1: warning: this is the location of the previous definition make[1]: *** [setdest.o] Error 1 make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o c In file included from proxytrace.cc:3: ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared make[1]: *** [proxytrace.o] Error 1 make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl-1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o trc In file included from ../../../config.h:54, from logparse.h:7, from tr-stat.cc:24: ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared make[1]: *** [tr-stat.o] Error 1 make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >Hi, > >Where is the error? > >Jee > >----- Original Message ----- >From: "advarl" >To: "ns-users" >Sent: Saturday, August 14, 2004 3:08 PM >Subject: [ns] error message of rebuilding n2-2.27 > > >> >> HI, >> the following is the error message of rebuilding n2-2.27, can anyone tell >the reason? >> Thanks in advance! >> >> ps:message >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr >indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o >setdest.cc >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/hom >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2 >> /include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o >proxytrace.cc >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> make[1]: Nothing to be done for `all'. >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl- >1.15 -I/home/dxh/ns2/otcl-1.8 -I/h >> ome/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o >tr-stat.o tr-stat.cc >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> make[1]: Nothing to be done for `all'. >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> >> >> >> >> >>         advarl >>         advarl@hotmail.com >>           2004-08-14 >> >> >         advarl         advarl@hotmail.com           2004-08-19 From anup.mayank at gmail.com Wed Aug 18 19:20:05 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Wed Aug 18 19:22:16 2004 Subject: [ns] global data for all nodes Message-ID: <469192b004081819202f735ada@mail.gmail.com> Hi All, I am writing a new application on mobile nodes. In this application a node needs to know the neighbors in its transmission range. The easiest way to achieve it is by storing the x,y coordinates of a node in a global table, which is accessible to all the nodes. I was wondering how can i create a global data for this application, in some C++ file so that it can be made available to every node in the system. Any help, comment or suggestion is welcome Anup From rajesh_george at infosys.com Wed Aug 18 22:51:41 2004 From: rajesh_george at infosys.com (Rajesh George) Date: Wed Aug 18 22:56:27 2004 Subject: [ns] Help needed -- Application data over udp In-Reply-To: <469192b004081819202f735ada@mail.gmail.com> References: <469192b004081819202f735ada@mail.gmail.com> Message-ID: <1092894701.3812.1.camel@blrkec21649d.ad.infosys.com> I am writing a new protocol in C++. Can any one suggest me some ideas or pointers about how to send application data over UDP Thanks -George From qysong at ee.usyd.edu.au Wed Aug 18 22:58:21 2004 From: qysong at ee.usyd.edu.au (Lily Song) Date: Wed Aug 18 23:01:19 2004 Subject: [ns] question about ns-UMTS simulator Message-ID: <6.0.3.0.2.20040819155146.01c1ce78@cassius.ee.usyd.edu.au> Hi Kaye Which version of UMTS extensions are you using? Is it based on ns-2.1b9a. I tried to install the ns-2.1b9a-based UMTS extensions into ns-2.27, but failed. Do you have any experience on installing the UMTS extensions? Lily From advarl at hotmail.com Wed Aug 18 18:11:36 2004 From: advarl at hotmail.com (advarl) Date: Wed Aug 18 23:07:21 2004 Subject: [ns] Display problem Message-ID: 20040619221147.50695.qmail艇挫 the ssh is a text terminal,of course, it can not show the nam's figure output. You can xwin to do so or work at the console with x display terminal.                  advarl         advarl@hotmail.com           2004-06-21 From p23615 at mail2.ukm.my Thu Aug 19 00:32:47 2004 From: p23615 at mail2.ukm.my (Low Chee Sing) Date: Thu Aug 19 00:37:09 2004 Subject: [ns] URGENT: Base Station Transmission Rate Message-ID: <4124579F.5080303@mail2.ukm.my> Good day to all of you. I need to know is there anyway for me to check the base station trasmission rate in wireless simulation? How do I log them? Thanks -- Low Chee Sing UKM Mercator Office Phone: +603-8921 6191 Fax: +603-8925 6629 From kenneth at daimi.au.dk Thu Aug 19 00:45:03 2004 From: kenneth at daimi.au.dk (Kenneth Nielsen) Date: Thu Aug 19 00:45:26 2004 Subject: [ns] default wavelength in MAC 802.11. Message-ID: <02b201c485c0$70d52b50$f9220b0a@w2kserver.daimi.au.dk> Hi, What is NS-2 default wavelength when using MAC 802.11?. What is the name of the variable that contains the wavelength value? Regards, Kenneth Nielsen From hpgu at guanghua.sh.cn Wed Aug 18 20:31:06 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Thu Aug 19 01:13:55 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users Message-ID: <2C175CE01348C945BCF5D20FF269A3B202237A27@master.guanghua.sh.cn> Hi; I have installed NS-2.1b6 successfully with the help from M. Hatta. And I also installed Mobiwan on it:) I think that you have successfully done it or for details you can refer: http://www.infotech.tu-chemnitz.de/~knoll/NS2/Installing_old_NS2_version_ns-allinone-2_1b6a_on_RedHat_8_0.php Where you also can find a patched version of NS-2.1b6:) Good luck Yours Sincerely Humphrey Gu -----喨周圻周----- 窟周繁: Mahtab Hossain [mailto:mahtab_hossain2002@yahoo.com] 窟僕扮寂: 2004定8埖18晩 16:03 辺周繁: 冩窟 綱鯖峠 麼籾: Re:[ns] Survey for MObile IPv6 NS2 Users Hi, I had some problems installing NS-2.1b6 in RedHat 7.2 (2.4.7-10) also. It required some patches (but not sure about your Red Hat version though). I am attaching all the patches that I required. Your particular one was "tracedvar.patch" See if it works... Good luck Mahtab --- hpgu@guanghua.sh.cn wrote: > > Hi Warodom Werapun: > I have successfully compiled and installed NS-2.26, > but when I try to install NS-2.1b6, always compile > errors. So I never go further to port the Mobiwan on > NS-2.1b6. > My platform: RHL(2.4.20-8) > The errors is related to tracedvar.cc 102, > 1) in member function "virtual char* > TracedInt::value(***)" > 2) abort() function in ln102 is undefined. > > Could you give me some suggestion or hints? > Waiting for your reply. > 3x in advance! > Yours sincerely > Humphrey Gu > > -----喨周圻周----- > 窟周繁: Warodom Werapun > [mailto:ple@graduate.kmitl.ac.th] > 窟僕扮寂: 2004定8埖17晩 18:48 > 辺周繁: 冩窟 綱鯖峠 > 貝僕: ns-users@ISI.EDU > 麼籾: Re: [ns] Survey for MObile IPv6 NS2 Users > > hpgu@guanghua.sh.cn wrote: > > >Hi all: > >Here I want to initiate a survey about mobile Ipv6 > user and researcher: > >1. If you are now focusing or working related > to Mobile Ipv6 using NS2 please reply this mail. > >2. If you are now focusing or working related > to Mobile Ipv6 but not using NS2, please tell us > what simulator you are use in the reply. For example > Omnet++, OPNET and so on. > >3. I just want to know is NS2 are popular in > Mobile Ipv6 simulation. I find that Mobile Ipv6 > support in NS2 is not good and the Mobiwan extantion > is so old and only support NS-2.1b6. > > > >Thanks a lot for your attention! > > > >Yours sincerely > >Humphrey Gu > > > Agree all especial (3). > > Now, I aim to implement the simulation by myself. If > you can provide > NS-2 + Mobile IPv6 extension, well! I will help you > to try your software. > > Yours sincerely, > > -- > Warodom Werapun > PGP: http://plex.coe.psu.ac.th/myPGP.txt > > > > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From hpgu at guanghua.sh.cn Wed Aug 18 21:45:22 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Thu Aug 19 01:14:18 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users Message-ID: <2C175CE01348C945BCF5D20FF269A3B202237A43@master.guanghua.sh.cn> Hi Jani; Today I have successfully installed NS-2.1b6 and Mobiwan with many helps in this mail list, good luck for me. Got from my "Survey for MObile IPv6 NS2 Users" I got 8 replies:) I agree with your proposal to create some co-operation between Mobiwan users. Is there some one interested in ? Yours sincerely Humphrey Gu -----????----- ???: Jani Puttonen [mailto:janput@cc.jyu.fi] ????: 2004?8?17? 18:43 ???: ?? ??? ??: Re: [ns] Survey for MObile IPv6 NS2 Users On Tue, 17 Aug 2004 hpgu@guanghua.sh.cn wrote: > Here I want to initiate a survey about mobile Ipv6 user and researcher: > 1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. > 2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. > 3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. Hi Humphrey. It's true, that the Mobiwan Mobile IPv6 implementation is not perfect and it's too old. I am using ns-2.1b6 with Mobiwan to simulate my own handover proposal and compare it to other handover extensions. I have had trouble in finding already existing implementations of the most significant MIPv6 extensions, like HMIPv6 and FHMIPv6. So I think I'll have to start implementing them myself. Good thing to create some co-operation between Mobiwan users. Might be beneficiary of all. Best regards, Jani Puttonen -- Jani Puttonen University of Jyv?skyl? Finland Email: janput@cc.jyu.fi From ee03502 at elec.qmul.ac.uk Thu Aug 19 01:39:08 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 01:42:52 2004 Subject: [ns] why make doe not work??? Can anyone help please Message-ID: <000601c485c7$fe880650$b725258a@student.elec.qmul.ac.uk> Hi all, I have made a small change in Linkdelay class. I tried to validate my changes by running "make" under the ns-2.27 directory. But, apperentely nothing changed. I have tried to use "./install" , "make depnd; make" but nothing changed as well. PS: I have worked with make to validate my changes and it did work fine. the only difference is that this time, I am running ns on a removable hard disk does this have any effects?? I will be surprised if the anwer is yes. Can anyone please help, please please Ikram From advarl at hotmail.com Thu Aug 19 00:27:20 2004 From: advarl at hotmail.com (advarl) Date: Thu Aug 19 02:01:02 2004 Subject: [ns] error message of rebuilding n2-2.27 Message-ID: hi,Jee J.Z. it seems reasonable, but the URL that you gave is not available for me, will you please send me the detail about this problem. Many thanks! advarl >Hi, > >This is right what I posted a couple of days ago: > >Please refer >to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. >Slighly modifying a few Makefiles can fix that. > >The Makefiles need modifying are as follows according to your output: >ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, >ns-2.27/indep-utils/webtrace-conv/nlanr/Makefile, and >ns-2.27/indep-utils/webtrace-conv/dec/Makefile > >Jee > > >> hiJee J.Z. >> >> >> the following is the error message of rebuilding n2-2.27, can anyone tell >the reason? >> Do someone meet the problem of namespace while making ns2, i.e. >autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> Thanks in advance! >> >> >> ps:message >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr >indep-utils/webtrace-conv/ucb; do ( cd $i; mae >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o >setdest.cc >> In file included from ../../../config.h:54, >> from setdest.h:5, >> from setdest.cc:57: >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> setdest.cc:71:1: warning: "INFINITY" redefined >> In file included from /usr/include/math.h:40, >> from setdest.cc:43: >> /usr/include/bits/mathdef.h:35:1: warning: this is the location of the >previous definition >> make[1]: *** [setdest.o] Error 1 >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/hom >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/in >clude/pcap -o proxytrace.o c >> In file included from proxytrace.cc:3: >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> make[1]: *** [proxytrace.o] Error 1 >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> make[1]: Nothing to be done for `all'. >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl- >1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/includ >e -I/usr/include/pcap -o trc >> In file included from ../../../config.h:54, >> from logparse.h:7, >> from tr-stat.cc:24: >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> make[1]: *** [tr-stat.o] Error 1 >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> make[1]: Entering directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> make[1]: Nothing to be done for `all'. >> make[1]: Leaving directory >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> >> >> >Hi, >> > >> >Where is the error? >> > >> >Jee >> > >> >----- Original Message ----- >> >From: "advarl" >> >To: "ns-users" >> >Sent: Saturday, August 14, 2004 3:08 PM >> >Subject: [ns] error message of rebuilding n2-2.27 >> > >> > >> >> >> >> HI, >> >> the following is the error message of rebuilding n2-2.27, can anyone >tell >> >the reason? >> >> Thanks in advance! >> >> >> >> ps:message >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec >> >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr >> >indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o >> >setdest.cc >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >> >> >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/ho >m >> >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2 >> >> /include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o >> >proxytrace.cc >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> >> make[1]: Nothing to be done for `all'. >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >> >> >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl >- >> >1.15 -I/home/dxh/ns2/otcl-1.8 -I/h >> >> ome/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o >> >tr-stat.o tr-stat.cc >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> make[1]: Nothing to be done for `all'. >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> >> >> >> >> >> >> >> >> >> >> >> >>         advarl >> >>         advarl@hotmail.com >> >>           2004-08-14 >> >> >> >> >> > >> >> >> >>         advarl >>         advarl@hotmail.com >>           2004-08-19 >> From anup.mayank at gmail.com Thu Aug 19 01:59:49 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Thu Aug 19 02:02:22 2004 Subject: [ns] Error in compilation of a new application Message-ID: <469192b004081901595bbbc066@mail.gmail.com> Hi, I have created a very simple application which takes a number as an argument from the tcl script and prints it on the console by c++ code. The name of my files are push-cacheApp.h and push-cacheApp.cc I have put these files in a directory inside ns-2.27 directory. Further i included "push-cacheApp.o" in the makefile as instructed by http://nile.wpi.edu/NS/new_app_agent.html When i tried to compile the ns, i got following error. make: *** No rule to make target `push-cacheApp.o', needed by `libtcl8.4.so'. Stop. Kindly let me know what is the possible source of error. Thanking you Anup From ple at graduate.kmitl.ac.th Thu Aug 19 01:59:40 2004 From: ple at graduate.kmitl.ac.th (Warodom Werapun) Date: Thu Aug 19 02:05:22 2004 Subject: [ns] Survey for MObile IPv6 NS2 Users In-Reply-To: <2C175CE01348C945BCF5D20FF269A3B202237A43@master.guanghua.sh.cn> References: <2C175CE01348C945BCF5D20FF269A3B202237A43@master.guanghua.sh.cn> Message-ID: <41246BFC.5000505@graduate.kmitl.ac.th> Hi all, I notices, after tried mobiwan with Ns-2. Most of users decide to implement the simulation by themself. I think, it's better to show our implementations and upload these implement scripts in some free servers. eg. geocities etc... I'm master student. I had failed for the topic examination. So, On this time I need to clear my concept about my research first. After that, I will go on the simulation implementation. By the way, if we can share the simulation implementation knowledges. That's good! I have a book , name Simulation modeling and analysis . ( My advisor recommended!!) But I don't read it much yet. A lot of mathermatical model... Hard to understand for me. -_-a When i go on my simulation implementation, I will share with ours later. Finally, I wish, we may be a group of SIMULATION MOBILE IPV6 RESEACH!!... Cheers, -- Warodom Werapun PGP: http://plex.coe.psu.ac.th/myPGP.txt hpgu@guanghua.sh.cn wrote: >Hi Jani; >Today I have successfully installed NS-2.1b6 and Mobiwan with many helps in this mail list, good luck for me. >Got from my "Survey for MObile IPv6 NS2 Users" I got 8 replies:) >I agree with your proposal to create some co-operation between Mobiwan >users. Is there some one interested in ? > >Yours sincerely >Humphrey Gu > >-----????----- >???: Jani Puttonen [mailto:janput@cc.jyu.fi] >????: 2004?8?17? 18:43 >???: ?? ??? >??: Re: [ns] Survey for MObile IPv6 NS2 Users > >On Tue, 17 Aug 2004 hpgu@guanghua.sh.cn wrote: > > >>Here I want to initiate a survey about mobile Ipv6 user and researcher: >>1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. >>2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. >>3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. >> >> > >Hi Humphrey. > >It's true, that the Mobiwan Mobile IPv6 implementation is not >perfect and it's too old. I am using ns-2.1b6 with Mobiwan to >simulate my own handover proposal and compare it to other >handover extensions. I have had trouble in finding already >existing implementations of the most significant MIPv6 extensions, >like HMIPv6 and FHMIPv6. So I think I'll have to start >implementing them myself. > >Good thing to create some co-operation between Mobiwan >users. Might be beneficiary of all. > >Best regards, > > Jani Puttonen > > >-- >Jani Puttonen >University of Jyv?skyl? >Finland >Email: janput@cc.jyu.fi > > > > > From hpgu at guanghua.sh.cn Thu Aug 19 02:09:31 2004 From: hpgu at guanghua.sh.cn (hpgu@guanghua.sh.cn) Date: Thu Aug 19 02:12:24 2004 Subject: [ns] [SIMULATION MOBILE IPV6 RESEACH]My Recent Job about Mobile IPv6 Message-ID: <2C175CE01348C945BCF5D20FF269A3B202237ABF@master.guanghua.sh.cn> Hi; My job can be briefly described as following: 1) Environment: RHL(2.4.20-8), NS-2.26 2) Target: a) simulate MobileIPv6 + Multihomed( Multi-HomeAgent) b) Use Ipv6 Anycast Service to implement HA selection c) Use some upper layer protocol( or software) to implement HA selection d) Compare b) and c) from usability, scalability and feasibility. 3) Current stage: a) Select pre-existing NS2 mobileIpv6 extention. b) so some modification if needed. Now I have installed NS2+mobiwan successfully:) I am not very clear about (2-b) which want to implement Anycast Service in Network Layer. Coz now I donot find some routing implementations about Anycast Service in Network Layer. Next step I will begin to modify the code of MobileIPv6. What about you ? Yours sincerely Gu huaping -----????----- ???: Warodom Werapun [mailto:ple@graduate.kmitl.ac.th] ????: 2004?8?19? 17:00 ???: ?? ??? ??: janput@cc.jyu.fi; rajesh_george@infosys.com; hatta@telecom.ee.itb.ac.id; shanti@ece.gatech.edu; nima.nafisi@kcl.ac.uk; neill.whillans@ti-wmc.nl; ns-users@ISI.EDU ??: Re: [ns] Survey for MObile IPv6 NS2 Users Hi all, I notices, after tried mobiwan with Ns-2. Most of users decide to implement the simulation by themself. I think, it's better to show our implementations and upload these implement scripts in some free servers. eg. geocities etc... I'm master student. I had failed for the topic examination. So, On this time I need to clear my concept about my research first. After that, I will go on the simulation implementation. By the way, if we can share the simulation implementation knowledges. That's good! I have a book , name Simulation modeling and analysis . ( My advisor recommended!!) But I don't read it much yet. A lot of mathermatical model... Hard to understand for me. -_-a When i go on my simulation implementation, I will share with ours later. Finally, I wish, we may be a group of SIMULATION MOBILE IPV6 RESEACH!!... Cheers, -- Warodom Werapun PGP: http://plex.coe.psu.ac.th/myPGP.txt hpgu@guanghua.sh.cn wrote: >Hi Jani; >Today I have successfully installed NS-2.1b6 and Mobiwan with many helps in this mail list, good luck for me. >Got from my "Survey for MObile IPv6 NS2 Users" I got 8 replies:) >I agree with your proposal to create some co-operation between Mobiwan >users. Is there some one interested in ? > >Yours sincerely >Humphrey Gu > >-----????----- >???: Jani Puttonen [mailto:janput@cc.jyu.fi] >????: 2004?8?17? 18:43 >???: ?? ??? >??: Re: [ns] Survey for MObile IPv6 NS2 Users > >On Tue, 17 Aug 2004 hpgu@guanghua.sh.cn wrote: > > >>Here I want to initiate a survey about mobile Ipv6 user and researcher: >>1. If you are now focusing or working related to Mobile Ipv6 using NS2 please reply this mail. >>2. If you are now focusing or working related to Mobile Ipv6 but not using NS2, please tell us what simulator you are use in the reply. For example Omnet++, OPNET and so on. >>3. I just want to know is NS2 are popular in Mobile Ipv6 simulation. I find that Mobile Ipv6 support in NS2 is not good and the Mobiwan extantion is so old and only support NS-2.1b6. >> >> > >Hi Humphrey. > >It's true, that the Mobiwan Mobile IPv6 implementation is not >perfect and it's too old. I am using ns-2.1b6 with Mobiwan to >simulate my own handover proposal and compare it to other >handover extensions. I have had trouble in finding already >existing implementations of the most significant MIPv6 extensions, >like HMIPv6 and FHMIPv6. So I think I'll have to start >implementing them myself. > >Good thing to create some co-operation between Mobiwan >users. Might be beneficiary of all. > >Best regards, > > Jani Puttonen > > >-- >Jani Puttonen >University of Jyv?skyl? >Finland >Email: janput@cc.jyu.fi > > > > > From ee03502 at elec.qmul.ac.uk Thu Aug 19 02:33:25 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 02:37:19 2004 Subject: [ns] number of transmitted tcp packets References: <001301c47f8e$eaef6e60$0a00000a@adventi9x962gj> <411A2974.2B266DF4@ee.tu-berlin.de> Message-ID: <00b501c485cf$93b20b20$b725258a@student.elec.qmul.ac.uk> > > Hi all, > > > > I cannot understand the following in my simulation: > > > > after connection establishment, 2 TCP data packets are sent. > > then when an ACK arrives, another 2 packets are sent. > > and keeps doing this each time and ACK is received. > > This is how TCP works. What i know is that TCP during slow start, as the ACKs arrives the cwnd increases by 1 segment. and when the sender want to send upon the reception of the ACK. it calculate the sending window which is min(cwnd,awnd) So, if i set the awnd to 10 and the cwnd is set to 1 at the beginning of the connection then at the beginning the sendind window is 1 --> the sender sends 1 packet then upon the reception of the ACK for this packet --> the cwnd becomes 2 and hence the sending window becomes 2 =[min(2,10)] and so on... So at least at during the slow start i should see that the sender is increasing the number of packets sent. do you have any idea why i cannot see this happening in my ns simulation. Your help is really appreciated Ikram > > > Yet, when the cwnd is cut for any reason, only one packet is sent, until the end of the simulation. > > > If you are in congestion avoidance you should sometimes see > also a two-segment burst of TCP, > approximately after every RTT. > > > > > > This behavior is contraductory to what tcp congestion control states, especially during slow start phase. > > > > as the number of transmitted packet is doubled every time an ackowledgment is received. > > > This is how TCP works in slow-slow start :-). > > All jokes asside. In slow start the cwnd of TCP is doubled > every RTT. And in congestion > avoidance the cwnd of TCP is increased by one segment every > RTT, roughly explained. > > > > > I know that the sender can send up to the minimum of the cwnd and the advertised window. > > and in my case the advertised window is set to 10 packets. hence, at least before the cwnd reaches ssthresh. i should notice that the sender is sending packets in increasing manner. > > > > Would anyone clarify this for me. > > what is the code to add to my simulation to be able to see the correct TCP behavior > > > > Many thanks > > > > Ikram > > > > Best regards, > Michael Savoric > > ====================================================== > E-Mail: savoric@ee.tu-berlin.de > > Phone: (+49 30) 314-23840 > > Fax: (+49 30) 314-23818 > > Postal address: Technical University Berlin > Telecommunication Networks Group (TKN) > Einsteinufer 25, 10587 Berlin > ====================================================== > > From edtyy at hotmail.com Thu Aug 19 03:16:13 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Thu Aug 19 03:19:19 2004 Subject: [ns] Uptarget_ from MAC to RTR layer Message-ID: Hello everyone, I have some variables to pass up from MAC layer to RTR layer periodically. Is there a way to uptarget_ to RTR layer without going through the LL layer immediately. Thank You Edwin _________________________________________________________________ Preview the new MSN Search with MSN Search Tech Preview. http://techpreview.search.msn.com.sg/ From ee03502 at elec.qmul.ac.uk Thu Aug 19 03:22:17 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 03:26:24 2004 Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone help please Message-ID: <000e01c485d6$67996c20$b725258a@student.elec.qmul.ac.uk> hi all, I have already posted the message attached below. Can any PLEASE help, i really need to get this work for my Msc project. I have performed this task on my ns simulation installed home, and make worked smoothly i could this see the changes. However, when i tried to running under my removable hard disck in the university it didn t work. is there any problem in the installation ??? I followed the same steps i used at home. I want to add changes to delay.cc. So, i have saved the working version from home, but when i put it in my ns in the removable hard disck it does not work , i also tried to save delay.o , but nothing neither. I have tried almost EVERYTHING can any please advise on how can I solve this problem your help is really appreciated Many Thanks Ikram ------------------------------------ Hi all, I have made a small change in Linkdelay class. I tried to validate my changes by running "make" under the ns-2.27 directory. But, apperentely nothing changed. I have tried to use "./install" , "make depnd; make" but nothing changed as well. PS: I have worked with make to validate my changes and it did work fine. the only difference is that this time, I am running ns on a removable hard disk does this have any effects?? I will be surprised if the anwer is yes. Can anyone please help, please please Ikram From C.A.Harding at staffs.ac.uk Thu Aug 19 03:32:05 2004 From: C.A.Harding at staffs.ac.uk (HARDING Christopher) Date: Thu Aug 19 03:35:20 2004 Subject: [ns] NS and NAM Message-ID: <77D215B52273914DB79F2AAE47D84599010B3EBB@crwnmail1.staff.staffs.ac.uk> Hello, I've created a simple wireless tcl script. The script runs ok and I have a .nam output file. The nam file does not run correctly as the nodes are not created in the .nam file during the initialization. Can anyone tell me how to fix this? I'm using binary ns (ns-2.1b8a-win) and nam binary (1.0a10). Thank you for any help. Chris Harding PhD Student - PhD Rep C.A.Harding@staffs.ac.uk http://www.soc.staffs.ac.uk/cah1 01785 353255 Staffordshire University Faculty of Computing, Engineering and Technology Staffordshire University Beaconside Stafford ST18 0DG 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 ple at graduate.kmitl.ac.th Thu Aug 19 03:39:00 2004 From: ple at graduate.kmitl.ac.th (Warodom Werapun) Date: Thu Aug 19 03:44:18 2004 Subject: [ns] Re: [SIMULATION MOBILE IPV6 RESEACH]My Recent Job about Mobile IPv6 In-Reply-To: <2C175CE01348C945BCF5D20FF269A3B202237ABF@master.guanghua.sh.cn> References: <2C175CE01348C945BCF5D20FF269A3B202237ABF@master.guanghua.sh.cn> Message-ID: <41248344.6010800@graduate.kmitl.ac.th> Nice to read your plan. :) For me, I plan to add the security on Binding update signaling and see which method make same security level with better performance. Of course, a lot of Secure BU schemes come out from Mobile IPv6 working group. I try to make something different from them and do the simulation for proove that my purpose make better performance than them. Last time, I use mobiwan to collect Binding update delay time but i see a lot of things that mobiwan make me so confusing. That's why, I decided to implement it by myself. (but not this time yet coz i need to finish my purposal document first. T_T) Cheers, -- Warodom Werapun PGP: http://plex.coe.psu.ac.th/myPGP.txt hpgu@guanghua.sh.cn wrote: >Hi; >My job can be briefly described as following: > 1) Environment: RHL(2.4.20-8), NS-2.26 > 2) Target: > a) simulate MobileIPv6 + Multihomed( Multi-HomeAgent) > b) Use Ipv6 Anycast Service to implement HA selection > c) Use some upper layer protocol( or software) to implement HA selection > d) Compare b) and c) from usability, scalability and feasibility. > 3) Current stage: > a) Select pre-existing NS2 mobileIpv6 extention. > b) so some modification if needed. > >Now I have installed NS2+mobiwan successfully:) >I am not very clear about (2-b) which want to implement Anycast Service in Network Layer. Coz now I donot find some routing implementations about Anycast Service in Network Layer. >Next step I will begin to modify the code of MobileIPv6. >What about you ? > >Yours sincerely >Gu huaping > > >-----????----- >???: Warodom Werapun [mailto:ple@graduate.kmitl.ac.th] >????: 2004?8?19? 17:00 >???: ?? ??? >??: janput@cc.jyu.fi; rajesh_george@infosys.com; hatta@telecom.ee.itb.ac.id; shanti@ece.gatech.edu; nima.nafisi@kcl.ac.uk; neill.whillans@ti-wmc.nl; ns-users@ISI.EDU >??: Re: [ns] Survey for MObile IPv6 NS2 Users > >Hi all, > > I notices, after tried mobiwan with Ns-2. Most of users decide to >implement >the simulation by themself. I think, it's better to show our implementations > and upload these implement scripts in some free servers. eg. geocities >etc... > I'm master student. I had failed for the topic examination. >So, On this time I need to clear my concept about my research first. >After that, I will go on the simulation implementation. > By the way, if we can share the simulation implementation >knowledges. That's good! >I have a book , name Simulation modeling and analysis . ( My advisor >recommended!!) >But I don't read it much yet. A lot of mathermatical model... Hard to >understand for me. -_-a >When i go on my simulation implementation, I will share with ours later. > > Finally, I wish, we may be a group of SIMULATION MOBILE IPV6 >RESEACH!!... > >Cheers, > > > From ee03502 at elec.qmul.ac.uk Thu Aug 19 03:53:05 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 04:01:25 2004 Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone help Message-ID: <000601c485da$b4990b30$b725258a@student.elec.qmul.ac.uk> hi all, I have already posted the message attached below. Can any PLEASE help, i really need to get this work for my Msc project. I have performed this task on my ns simulation installed home, and make worked smoothly i could this see the changes. However, when i tried to running under my removable hard disck in the university it didn t work. is there any problem in the installation ??? I followed the same steps i used at home. I want to add changes to delay.cc. So, i have saved the working version from home, but when i put it in my ns in the removable hard disck it does not work , i also tried to save delay.o , but nothing neither. I have tried almost EVERYTHING can any please advise on how can I solve this problem your help is really appreciated Many Thanks Ikram ------------------------------------ Hi all, I have made a small change in Linkdelay class. I tried to validate my changes by running "make" under the ns-2.27 directory. But, apperentely nothing changed. I have tried to use "./install" , "make depnd; make" but nothing changed as well. PS: I have worked with make to validate my changes and it did work fine. the only difference is that this time, I am running ns on a removable hard disk does this have any effects?? I will be surprised if the anwer is yes. Can anyone please help, please please Ikram From ee03502 at elec.qmul.ac.uk Thu Aug 19 04:11:43 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 04:15:30 2004 Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone helpplease References: <000EBF7B1DABE44A86933F6A693BDCCE01804AFA@02-CSEXCH.uopnet.plymouth.ac.uk> Message-ID: <000c01c485dd$4f152930$b725258a@student.elec.qmul.ac.uk> Hi Ye, thanks for the reply. I have made a slight change into the delay.cc In fact, I have already done this experience on my computer at home, and it was successfull, and straight forwad with no problems. But, when I tried to run my simulation on my hard disk in the university computer. the make compiles (I guess with no errors) it generate delay.o for my new delay.cc But when I run my simulation (my tcl script), normally i should expect changes in the output, BUT NOTHING. I have also to use sprintf() to see if really the delay.cc changes, BUT NOTHING here as well I have tried to use "make depend" then "make" BUT NOTHING I have tried to use "make clean" then "make" BUT NOTHING I think that tcl is not using the new generate *.o files. cause no matter i did, it always gives the same output!!! Do you have any idea why is this, and how to fix it??? your help is appreciated, and thanks for the reply. Ikram ----- Original Message ----- From: "(pg) Ye Zhang" To: "ic" Sent: Thursday, August 19, 2004 11:43 AM Subject: RE: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone helpplease > hi > > i don't know how to solve ur problem. i have never changed delay.cc file. > > but i have patched some extension in my simulation. and make is the problem occured from time to time. i just try to give some advice. > > what's the detailed make problem u get? according to my experience, sometimes, the problem is not just from the file u think may be have problem. it's the problems somewhere. > > Ye > > -----Original Message----- > From: ns-users-bounces@ISI.EDU ?? ic > Sent: 2004-8-19 (???) 11:22 > To: ns-users@ISI.EDU > Cc: > Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone helpplease > > > > > hi all, > > I have already posted the message attached below. > > Can any PLEASE help, i really need to get this work for my Msc project. > > I have performed this task on my ns simulation installed home, and make worked smoothly i could this see the changes. > > However, when i tried to running under my removable hard disck in the university it didn t work. is there any problem in the installation ??? I followed the same steps i used at home. > > I want to add changes to delay.cc. So, i have saved the working version from home, but when i put it in my ns in the removable hard disck it does not work , i also tried to save delay.o , but nothing neither. > I have tried almost EVERYTHING > > can any please advise on how can I solve this problem > > your help is really appreciated > > Many Thanks > > Ikram > ------------------------------------ > Hi all, > > I have made a small change in Linkdelay class. > I tried to validate my changes by running "make" under the ns-2.27 directory. > > But, apperentely nothing changed. > I have tried to use "./install" , "make depnd; make" but nothing changed as well. > > PS: I have worked with make to validate my changes and it did work fine. > the only difference is that this time, I am running ns on a removable hard disk does this have any effects?? I will be surprised if the anwer is yes. > > Can anyone please help, please please > > Ikram > > > From ee03502 at elec.qmul.ac.uk Thu Aug 19 04:43:30 2004 From: ee03502 at elec.qmul.ac.uk (Ikram Chikhaoui) Date: Thu Aug 19 04:47:24 2004 Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone helpplease References: <000EBF7B1DABE44A86933F6A693BDCCE01804AFB@02-CSEXCH.uopnet.plymouth.ac.uk> Message-ID: <007801c485e1$bfb59220$b625258a@student.elec.qmul.ac.uk> > hi, > > i never met this problem before. but let's discuss it together. i can understand ur feeling, sometimes just crazy about this software. is it? > > 1, u r sure that make compiles no error. yes? The only errors that i get are : ---------------------------------------------------------- In file included from ../../../config.h:54, from setdest.h:5, from setdest.cc:57: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared make[1]: *** [setdest.o] Error 1 ---------------------------------------------------------- In file included from proxytrace.cc:3: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared make[1]: *** [proxytrace.o] Error 1 ---------------------------------------------------------- llinone-2.27/include -I/home/ee03502/ns-allinone-2.27/include -I/usr/include /pcap -o tr-stat.o tr-stat.cc In file included from ../../../config.h:54, from logparse.h:7, from tr-stat.cc:24: ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared make[1]: *** [tr-stat.o] Error 1 ---------------------------------------------------------- > 2, u r sure that a new *.o files is generated. yes? YES, I have noticed that the size of the*.o file changes accoriding to the changes that i have made. > 3, then, the problem is why ur tcl file doesn't use the new *.o file. yes? Why??? > 4, if u r sure the code is ok. then u can only locate the problem on ur tcl fiel. yes? I am sure that the code is OK as only copy and past the version from home. PS: i think that the only difference between this installation and the one at home. is that when i tried to install cygwin on my hard drive, it didn t work because the bashrc file was not there. so , i just created it by my own and added the commands instructed in christian website (for ns installation on cygwin) during the installation process. Once again thanks for trying to help me Ikram > > Ye > > -----Original Message----- > From: ic [mailto:ee03502@elec.qmul.ac.uk] > Sent: 2004-8-19 (???) 12:11 > To: (pg) Ye Zhang > Cc: ns-users@isi.edu > Subject: Re: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone helpplease > > > > Hi Ye, > thanks for the reply. > > I have made a slight change into the delay.cc > In fact, I have already done this experience on my computer at home, and it > was successfull, and straight forwad with no problems. > > But, when I tried to run my simulation on my hard disk in the university > computer. the make compiles (I guess with no errors) it generate delay.o for > my new delay.cc > > But when I run my simulation (my tcl script), normally i should expect > changes in the output, BUT NOTHING. > I have also to use sprintf() to see if really the delay.cc changes, BUT > NOTHING here as well > I have tried to use "make depend" then "make" BUT NOTHING > I have tried to use "make clean" then "make" BUT NOTHING > > I think that tcl is not using the new generate *.o files. > cause no matter i did, it always gives the same output!!! > > Do you have any idea why is this, and how to fix it??? > > your help is appreciated, and thanks for the reply. > > Ikram > ----- Original Message ----- > From: "(pg) Ye Zhang" > To: "ic" > Sent: Thursday, August 19, 2004 11:43 AM > Subject: RE: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone > helpplease > > > > hi > > > > i don't know how to solve ur problem. i have never changed delay.cc file. > > > > but i have patched some extension in my simulation. and make is the > problem occured from time to time. i just try to give some advice. > > > > what's the detailed make problem u get? according to my experience, > sometimes, the problem is not just from the file u think may be have > problem. it's the problems somewhere. > > > > Ye > > > > -----Original Message----- > > From: ns-users-bounces@ISI.EDU ?? ic > > Sent: 2004-8-19 (???) 11:22 > > To: ns-users@ISI.EDU > > Cc: > > Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone > helpplease > > > > > > > > > > hi all, > > > > I have already posted the message attached below. > > > > Can any PLEASE help, i really need to get this work for my Msc project. > > > > I have performed this task on my ns simulation installed home, and make > worked smoothly i could this see the changes. > > > > However, when i tried to running under my removable hard disck in the > university it didn t work. is there any problem in the installation ??? I > followed the same steps i used at home. > > > > I want to add changes to delay.cc. So, i have saved the working version > from home, but when i put it in my ns in the removable hard disck it does > not work , i also tried to save delay.o , but nothing neither. > > I have tried almost EVERYTHING > > > > can any please advise on how can I solve this problem > > > > your help is really appreciated > > > > Many Thanks > > > > Ikram > > ------------------------------------ > > Hi all, > > > > I have made a small change in Linkdelay class. > > I tried to validate my changes by running "make" under the ns-2.27 > directory. > > > > But, apperentely nothing changed. > > I have tried to use "./install" , "make depnd; make" but nothing changed > as well. > > > > PS: I have worked with make to validate my changes and it did work fine. > > the only difference is that this time, I am running ns on a removable hard > disk does this have any effects?? I will be surprised if the anwer is yes. > > > > Can anyone please help, please please > > > > Ikram > > > > > > > > > > From jz105 at york.ac.uk Thu Aug 19 06:06:27 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Thu Aug 19 06:14:24 2004 Subject: [ns] error message of rebuilding n2-2.27 References: Message-ID: <004f01c485ed$583813f0$cb0213ac@jz105> Hi, For your information, SUMMARY: Support for ns-2.27 is now available on Protean Forge for nrlsensorsim. Look for the nrlsensorsim-2.27.tgz download. PATCHING SUMMARY: Some of ISI's enhancements added to ns-2.27 were removed in order to force in compatibility with our sensor network extensions. The side effects of our hacks are not yet understood. Users should corroborate their simulation results as much as possible with earlier versions of ns. PATCHING DETAILS: Here are the problems I've fixed with ns-2.27 (first two are in mac/channel.cc): 1. WirelessChannel::sendUp contains an else structure with list-based improvements. I reverted that else structure back to what it was in 2.26. Without this modification, PHENOM packets will never get received. 2. WirelessChannel::updateNodesList contains a call to sortLists(). I removed that call in order to fix a segmentation fault. 3. The makefiles ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, ns-2.27/indep-utils/webtrace-conv/conv/Makefile, and ns-2.27/indep-utils/webtrace-conv/dec/Makefile, needed to be modified in order to fix a bug in ISI's distribution. The bug caused a compile-time error that looked like this: g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc In file included from ../../../config.h:54, from setdest.h:5, from setdest.cc:57: ../../../autoconf.h:85: Error: namespace `CPP_NAMESPACE' undeclared setdest.cc:71:1: warning: "INFINITY" redefined In file included from /usr/include/math.h:40, from setdest.cc:43: /usr/include/bits/mathdef.h:35:1: warning: this is the location of the previous definition make[1]: *** [setdest.o] Error 1 make[1]: Leaving directory `/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' To fix the bug, edit ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile and change this line: DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ to this line: DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std In the other two makefiles, append -DCPP_NAMESPACE=std to CFLAGS. I discovered that fix by searching the NS news database[1] for "CPP_NAMESPACE". REFERENCES: [1] NS news database, http://www.isi.edu/nsnam/htdig/search.html That's it. Hope this helps. Jee > hi,Jee J.Z. > it seems reasonable, but the URL that you gave is not available for me, will you please send me the detail about this problem. > Many thanks! > > advarl > > >Hi, > > > >This is right what I posted a couple of days ago: > > > >Please refer > >to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. > >Slighly modifying a few Makefiles can fix that. > > > >The Makefiles need modifying are as follows according to your output: > >ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, > >ns-2.27/indep-utils/webtrace-conv/nlanr/Makefile, and > >ns-2.27/indep-utils/webtrace-conv/dec/Makefile > > > >Jee > > > > > >> hiJee J.Z. > >> > >> > >> the following is the error message of rebuilding n2-2.27, can anyone tell > >the reason? > >> Do someone meet the problem of namespace while making ns2, i.e. > >autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> Thanks in advance! > >> > >> > >> ps:message > >> > >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec > >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr > >indep-utils/webtrace-conv/ucb; do ( cd $i; mae > >> make[1]: Entering directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o > >setdest.cc > >> In file included from ../../../config.h:54, > >> from setdest.h:5, > >> from setdest.cc:57: > >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> setdest.cc:71:1: warning: "INFINITY" redefined > >> In file included from /usr/include/math.h:40, > >> from setdest.cc:43: > >> /usr/include/bits/mathdef.h:35:1: warning: this is the location of the > >previous definition > >> make[1]: *** [setdest.o] Error 1 > >> make[1]: Leaving directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> make[1]: Entering directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> > >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/hom > >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/in > >clude/pcap -o proxytrace.o c > >> In file included from proxytrace.cc:3: > >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> make[1]: *** [proxytrace.o] Error 1 > >> make[1]: Leaving directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> make[1]: Entering directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> make[1]: Nothing to be done for `all'. > >> make[1]: Leaving directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> make[1]: Entering directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> > >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl- > >1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/includ > >e -I/usr/include/pcap -o trc > >> In file included from ../../../config.h:54, > >> from logparse.h:7, > >> from tr-stat.cc:24: > >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> make[1]: *** [tr-stat.o] Error 1 > >> make[1]: Leaving directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> make[1]: Entering directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> make[1]: Nothing to be done for `all'. > >> make[1]: Leaving directory > >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> > >> > >> > >> >Hi, > >> > > >> >Where is the error? > >> > > >> >Jee > >> > > >> >----- Original Message ----- > >> >From: "advarl" > >> >To: "ns-users" > >> >Sent: Saturday, August 14, 2004 3:08 PM > >> >Subject: [ns] error message of rebuilding n2-2.27 > >> > > >> > > >> >> > >> >> HI, > >> >> the following is the error message of rebuilding n2-2.27, can anyone > >tell > >> >the reason? > >> >> Thanks in advance! > >> >> > >> >> ps:message > >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec > >> >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr > >> >indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o > >> >setdest.cc > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> >> > >> > >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/ho > >m > >> >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2 > >> >> /include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o > >> >proxytrace.cc > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> >> make[1]: Nothing to be done for `all'. > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> >> > >> > >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl > >- > >> >1.15 -I/home/dxh/ns2/otcl-1.8 -I/h > >> >> ome/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o > >> >tr-stat.o tr-stat.cc > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> >> make[1]: Nothing to be done for `all'. > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >>         advarl > >> >>         advarl@hotmail.com > >> >>           2004-08-14 > >> >> > >> >> > >> > > >> > >> > >> > >>         advarl > >>         advarl@hotmail.com > >>           2004-08-19 > >> > > > From ee03502 at elec.qmul.ac.uk Thu Aug 19 06:59:26 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 07:03:25 2004 Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone Message-ID: <000601c485f4$bda88970$b725258a@student.elec.qmul.ac.uk> Hi all, if i rebuild ns-allinone-2.27 from scratch again, would this solve my problem??? Please advise Ikram From kimaya at cs.ucsb.edu Thu Aug 19 08:53:02 2004 From: kimaya at cs.ucsb.edu (Kimaya M. Sanzgiri) Date: Thu Aug 19 08:56:42 2004 Subject: URGENT HELP NEEDED [ns] why make doe not work??? Can anyone In-Reply-To: <000601c485f4$bda88970$b725258a@student.elec.qmul.ac.uk> References: <000601c485f4$bda88970$b725258a@student.elec.qmul.ac.uk> Message-ID: Hi Ikram, One thing you might want to check is whether you have the correct NS directory in your path. If you have more than one NS installation on the machine, it could happen that you're ending up running NS from a different installation, and not from the one where you're making the changes. To check this out, try giving the complete path when running NS (i.e. say "./ns" instead of just "ns" if you're running from the ns directory). If that doesn't work, it seems like a good idea to just do the whole procedure all over again, i.e. reinstall NS, make sure its running properly, and then make a change in the delay.cc file (maybe add a printf or something) and see if that change is reflected. I'm not sure that this will solve your problem, but there's a chance it might eliminate some error you made in the previous installation. Good luck. Also, I'm sure most list users would appreciate it if you would refrain from using 'URGENT HELP' etc. in the message subject, and also from posting the same message multiple times to the list. Its helpful to make multiple posts if each one has some new information. Posting the exact same message repeatedly only serves to annoy people. Kimaya On Thu, 19 Aug 2004, ic wrote: > > Hi all, > > if i rebuild ns-allinone-2.27 from scratch again, would this solve my problem??? > > Please advise > > Ikram > > -- From advarl at hotmail.com Thu Aug 19 07:20:35 2004 From: advarl at hotmail.com (advarl) Date: Thu Aug 19 10:06:13 2004 Subject: [ns] error message of rebuilding n2-2.27 Message-ID: HiJee J.Z. Thanks a lotI have solve the problem with your help. when i execute the file "install" in directory of "allinone-2.27",all is ok. while i make ns-2.27 alone, The problem occurs even if no modification is done to ns-2.27. will you tell me the reason. Thanks again. advarl >Hi, > >For your information, > >SUMMARY: > >Support for ns-2.27 is now available on Protean Forge for nrlsensorsim. > >Look for the nrlsensorsim-2.27.tgz download. > > >PATCHING SUMMARY: > >Some of ISI's enhancements added to ns-2.27 were removed in order to force in >compatibility with our sensor network extensions. The side effects of our >hacks are not yet understood. Users should corroborate their simulation >results as much as possible with earlier versions of ns. > > >PATCHING DETAILS: > >Here are the problems I've fixed with ns-2.27 (first two are in >mac/channel.cc): > >1. WirelessChannel::sendUp contains an else structure with list-based > improvements. I reverted that else structure back to what it was in 2.26. > Without this modification, PHENOM packets will never get received. > > >2. WirelessChannel::updateNodesList contains a call to sortLists(). I removed > that call in order to fix a segmentation fault. > > >3. The makefiles > ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, > ns-2.27/indep-utils/webtrace-conv/conv/Makefile, and > ns-2.27/indep-utils/webtrace-conv/dec/Makefile, > needed to be modified in order to fix a bug in ISI's distribution. The bug > caused a compile-time error that looked like this: > > g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc > In file included from ../../../config.h:54, > from setdest.h:5, > from setdest.cc:57: > ../../../autoconf.h:85: Error: namespace `CPP_NAMESPACE' undeclared > setdest.cc:71:1: warning: "INFINITY" redefined > In file included from /usr/include/math.h:40, > from setdest.cc:43: > /usr/include/bits/mathdef.h:35:1: warning: this is the location of the >previous definition > make[1]: *** [setdest.o] Error 1 > make[1]: Leaving directory >`/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > make[1]: Entering directory >`/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > > To fix the bug, edit ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile and > change this line: > DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ > to this line: > DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std > > In the other two makefiles, append -DCPP_NAMESPACE=std to CFLAGS. > > I discovered that fix by searching the NS news database[1] for > "CPP_NAMESPACE". > > >REFERENCES: > >[1] NS news database, http://www.isi.edu/nsnam/htdig/search.html > >That's it. > >Hope this helps. > >Jee > > > >> hi,Jee J.Z. >> it seems reasonable, but the URL that you gave is not available for me, will you please send me the detail about this problem. >> Many thanks! >> >> advarl >> >> >Hi, >> > >> >This is right what I posted a couple of days ago: >> > >> >Please refer >> >to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. >> >Slighly modifying a few Makefiles can fix that. >> > >> >The Makefiles need modifying are as follows according to your output: >> >ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, >> >ns-2.27/indep-utils/webtrace-conv/nlanr/Makefile, and >> >ns-2.27/indep-utils/webtrace-conv/dec/Makefile >> > >> >Jee >> > >> > >> >> hiJee J.Z. >> >> >> >> >> >> the following is the error message of rebuilding n2-2.27, can anyone tell >> >the reason? >> >> Do someone meet the problem of namespace while making ns2, i.e. >> >autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> >> Thanks in advance! >> >> >> >> >> >> ps:message >> >> >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec >> >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr >> >indep-utils/webtrace-conv/ucb; do ( cd $i; mae >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o >> >setdest.cc >> >> In file included from ../../../config.h:54, >> >> from setdest.h:5, >> >> from setdest.cc:57: >> >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> >> setdest.cc:71:1: warning: "INFINITY" redefined >> >> In file included from /usr/include/math.h:40, >> >> from setdest.cc:43: >> >> /usr/include/bits/mathdef.h:35:1: warning: this is the location of the >> >previous definition >> >> make[1]: *** [setdest.o] Error 1 >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >> >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/hom >> >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/in >> >clude/pcap -o proxytrace.o c >> >> In file included from proxytrace.cc:3: >> >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> >> make[1]: *** [proxytrace.o] Error 1 >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> >> make[1]: Nothing to be done for `all'. >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >> >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl- >> >1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/includ >> >e -I/usr/include/pcap -o trc >> >> In file included from ../../../config.h:54, >> >> from logparse.h:7, >> >> from tr-stat.cc:24: >> >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared >> >> make[1]: *** [tr-stat.o] Error 1 >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >> make[1]: Entering directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> make[1]: Nothing to be done for `all'. >> >> make[1]: Leaving directory >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> >> >> >> >> >> >> >Hi, >> >> > >> >> >Where is the error? >> >> > >> >> >Jee >> >> > >> >> >----- Original Message ----- >> >> >From: "advarl" >> >> >To: "ns-users" >> >> >Sent: Saturday, August 14, 2004 3:08 PM >> >> >Subject: [ns] error message of rebuilding n2-2.27 >> >> > >> >> > >> >> >> >> >> >> HI, >> >> >> the following is the error message of rebuilding n2-2.27, can anyone >> >tell >> >> >the reason? >> >> >> Thanks in advance! >> >> >> >> >> >> ps:message >> >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec >> >> >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr >> >> >indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done >> >> >> make[1]: Entering directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> >> >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o >> >> >setdest.cc >> >> >> make[1]: Leaving directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' >> >> >> make[1]: Entering directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >> >> >> >> >> >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/ho >> >m >> >> >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2 >> >> >> /include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o >> >> >proxytrace.cc >> >> >> make[1]: Leaving directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' >> >> >> make[1]: Entering directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> >> >> make[1]: Nothing to be done for `all'. >> >> >> make[1]: Leaving directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' >> >> >> make[1]: Entering directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >> >> >> >> >> >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl >> >- >> >> >1.15 -I/home/dxh/ns2/otcl-1.8 -I/h >> >> >> ome/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o >> >> >tr-stat.o tr-stat.cc >> >> >> make[1]: Leaving directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' >> >> >> make[1]: Entering directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> >> make[1]: Nothing to be done for `all'. >> >> >> make[1]: Leaving directory >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>         advarl >> >> >>         advarl@hotmail.com >> >> >>           2004-08-14 >> >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >>         advarl >> >>         advarl@hotmail.com >> >>           2004-08-19 >> >> >> >> >> = = = = = = = = = = = = = = = = = = = =         崑 撰         advarl         advarl@hotmail.com           2004-08-19 From johnh at ISI.EDU Thu Aug 19 10:06:35 2004 From: johnh at ISI.EDU (John Heidemann) Date: Thu Aug 19 10:09:21 2004 Subject: [ns] Re: [Smac-users] please help: Memory leak in S-MAC In-Reply-To: <20040818191947.60420.qmail@web54103.mail.yahoo.com> Message-ID: <200408191706.i7JH6Zvv025851@dash.isi.edu> On Wed, 18 Aug 2004 12:19:47 PDT, Samir Goel wrote: >hello, > I am working with the latest smac code for ns-2 (available from daily >snapshot of ns-2). I am noticing a pretty big memory leak. To give an idea, >one of my simulation with S-MAC takes up upwards of 2GB to run; the same >simulation with 802.11 takes up only 400MB. I thought the memory leak was >fixed after Padma and I last looked at it :( > > I would deeply appreciate if someone can provide some clue on what might >be going wrong here. A good place to start with memory debugging is dmalloc. See the ns debugging tips web page. If you're leaking 1.5GB, it should be very obvious who's leaking. Perhaps with that info you and Padma can identify a fix. -John From jz105 at york.ac.uk Thu Aug 19 11:35:12 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Thu Aug 19 11:42:55 2004 Subject: [ns] error message of rebuilding n2-2.27 References: Message-ID: <000901c4861b$4380a5c0$68892090@grouse> Hi Advarl, Nice to hear that, you are welcome, but I don't understand what "problem occurs" when you "make ns-2.27 alone", still 'CPP_NAMESPACE' undeclared? This shouldn't happen after you modify all required Makefiles after install. Jee ----- Original Message ----- From: "advarl" To: "Jee J.Z." Cc: "ns-users" Sent: Thursday, August 19, 2004 3:20 PM Subject: Re: Re: [ns] error message of rebuilding n2-2.27 > HiJee J.Z. > Thanks a lotI have solve the problem with your help. > when i execute the file "install" in directory of "allinone-2.27",all is ok. while i make ns-2.27 alone, The problem occurs even if no modification is done to ns-2.27. will you tell me the reason. > Thanks again. > advarl > > >Hi, > > > >For your information, > > > >SUMMARY: > > > >Support for ns-2.27 is now available on Protean Forge for nrlsensorsim. > > > >Look for the nrlsensorsim-2.27.tgz download. > > > > > >PATCHING SUMMARY: > > > >Some of ISI's enhancements added to ns-2.27 were removed in order to force in > >compatibility with our sensor network extensions. The side effects of our > >hacks are not yet understood. Users should corroborate their simulation > >results as much as possible with earlier versions of ns. > > > > > >PATCHING DETAILS: > > > >Here are the problems I've fixed with ns-2.27 (first two are in > >mac/channel.cc): > > > >1. WirelessChannel::sendUp contains an else structure with list-based > > improvements. I reverted that else structure back to what it was in 2.26. > > Without this modification, PHENOM packets will never get received. > > > > > >2. WirelessChannel::updateNodesList contains a call to sortLists(). I removed > > that call in order to fix a segmentation fault. > > > > > >3. The makefiles > > ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, > > ns-2.27/indep-utils/webtrace-conv/conv/Makefile, and > > ns-2.27/indep-utils/webtrace-conv/dec/Makefile, > > needed to be modified in order to fix a bug in ISI's distribution. The bug > > caused a compile-time error that looked like this: > > > > g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc > > In file included from ../../../config.h:54, > > from setdest.h:5, > > from setdest.cc:57: > > ../../../autoconf.h:85: Error: namespace `CPP_NAMESPACE' undeclared > > setdest.cc:71:1: warning: "INFINITY" redefined > > In file included from /usr/include/math.h:40, > > from setdest.cc:43: > > /usr/include/bits/mathdef.h:35:1: warning: this is the location of the > >previous definition > > make[1]: *** [setdest.o] Error 1 > > make[1]: Leaving directory > >`/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setd est' > > make[1]: Entering directory > >`/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec ' > > > > To fix the bug, edit ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile and > > change this line: > > DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ > > to this line: > > DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std > > > > In the other two makefiles, append -DCPP_NAMESPACE=std to CFLAGS. > > > > I discovered that fix by searching the NS news database[1] for > > "CPP_NAMESPACE". > > > > > >REFERENCES: > > > >[1] NS news database, http://www.isi.edu/nsnam/htdig/search.html > > > >That's it. > > > >Hope this helps. > > > >Jee > > > > > > > >> hi,Jee J.Z. > >> it seems reasonable, but the URL that you gave is not available for me, will you please send me the detail about this problem. > >> Many thanks! > >> > >> advarl > >> > >> >Hi, > >> > > >> >This is right what I posted a couple of days ago: > >> > > >> >Please refer > >> >to http://pf.itd.nrl.navy.mil/pipermail/nrlsensorsim-users/2004-April.txt. > >> >Slighly modifying a few Makefiles can fix that. > >> > > >> >The Makefiles need modifying are as follows according to your output: > >> >ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, > >> >ns-2.27/indep-utils/webtrace-conv/nlanr/Makefile, and > >> >ns-2.27/indep-utils/webtrace-conv/dec/Makefile > >> > > >> >Jee > >> > > >> > > >> >> hiJee J.Z. > >> >> > >> >> > >> >> the following is the error message of rebuilding n2-2.27, can anyone tell > >> >the reason? > >> >> Do someone meet the problem of namespace while making ns2, i.e. > >> >autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> >> Thanks in advance! > >> >> > >> >> > >> >> ps:message > >> >> > >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec > >> >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr > >> >indep-utils/webtrace-conv/ucb; do ( cd $i; mae > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o > >> >setdest.cc > >> >> In file included from ../../../config.h:54, > >> >> from setdest.h:5, > >> >> from setdest.cc:57: > >> >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> >> setdest.cc:71:1: warning: "INFINITY" redefined > >> >> In file included from /usr/include/math.h:40, > >> >> from setdest.cc:43: > >> >> /usr/include/bits/mathdef.h:35:1: warning: this is the location of the > >> >previous definition > >> >> make[1]: *** [setdest.o] Error 1 > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> >> > >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/ho m > >> >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/i n > >> >clude/pcap -o proxytrace.o c > >> >> In file included from proxytrace.cc:3: > >> >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> >> make[1]: *** [proxytrace.o] Error 1 > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> >> make[1]: Nothing to be done for `all'. > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> >> > >> >g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclcl - > >> >1.15 -I/home/dxh/ns2/otcl-1.8 -I/home/dxh/ns2/include -I/home/dxh/ns2/inclu d > >> >e -I/usr/include/pcap -o trc > >> >> In file included from ../../../config.h:54, > >> >> from logparse.h:7, > >> >> from tr-stat.cc:24: > >> >> ../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared > >> >> make[1]: *** [tr-stat.o] Error 1 > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> >> make[1]: Entering directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> >> make[1]: Nothing to be done for `all'. > >> >> make[1]: Leaving directory > >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> >> > >> >> > >> >> > >> >> >Hi, > >> >> > > >> >> >Where is the error? > >> >> > > >> >> >Jee > >> >> > > >> >> >----- Original Message ----- > >> >> >From: "advarl" > >> >> >To: "ns-users" > >> >> >Sent: Saturday, August 14, 2004 3:08 PM > >> >> >Subject: [ns] error message of rebuilding n2-2.27 > >> >> > > >> >> > > >> >> >> > >> >> >> HI, > >> >> >> the following is the error message of rebuilding n2-2.27, can anyone > >> >tell > >> >> >the reason? > >> >> >> Thanks in advance! > >> >> >> > >> >> >> ps:message > >> >> >> for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec > >> >> >indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr > >> >> >indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done > >> >> >> make[1]: Entering directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> >> >> g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o > >> >> >setdest.cc > >> >> >> make[1]: Leaving directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' > >> >> >> make[1]: Entering directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> >> >> > >> >> > >> >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I/home/dxh/ns2/tclcl-1.15 -I/h o > >> >m > >> >> >e/dxh/ns2/otcl-1.8 -I/home/dxh/ns2 > >> >> >> /include -I/home/dxh/ns2/include -I/usr/include/pcap -o proxytrace.o > >> >> >proxytrace.cc > >> >> >> make[1]: Leaving directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' > >> >> >> make[1]: Entering directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> >> >> make[1]: Nothing to be done for `all'. > >> >> >> make[1]: Leaving directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa' > >> >> >> make[1]: Entering directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> >> >> > >> >> > >> >>g++ -c -DSTL_NAMESPACE=@STL_NAMESPACE@ -I. -I../../.. -I/home/dxh/ns2/tclc l > >> >- > >> >> >1.15 -I/home/dxh/ns2/otcl-1.8 -I/h > >> >> >> ome/dxh/ns2/include -I/home/dxh/ns2/include -I/usr/include/pcap -o > >> >> >tr-stat.o tr-stat.cc > >> >> >> make[1]: Leaving directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr' > >> >> >> make[1]: Entering directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> >> >> make[1]: Nothing to be done for `all'. > >> >> >> make[1]: Leaving directory > >> >> >`/home/dxh/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb' > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >>         advarl > >> >> >>         advarl@hotmail.com > >> >> >>           2004-08-14 > >> >> >> > >> >> >> > >> >> > > >> >> > >> >> > >> >> > >> >>         advarl > >> >>         advarl@hotmail.com > >> >>           2004-08-19 > >> >> > >> > >> > >> > > = = = = = = = = = = = = = = = = = = = = > > >         崑 > 撰 > > >         advarl >         advarl@hotmail.com >           2004-08-19 > > > From ee03502 at elec.qmul.ac.uk Thu Aug 19 11:45:30 2004 From: ee03502 at elec.qmul.ac.uk (ic) Date: Thu Aug 19 11:49:25 2004 Subject: problem solved [ns] why make doe not work??? Can anyone References: <000601c485f4$bda88970$b725258a@student.elec.qmul.ac.uk> Message-ID: <001601c4861c$b38f3650$b725258a@student.elec.qmul.ac.uk> Hi Kimaya, > One thing you might want to check is whether you have the correct NS > directory in your path. If you have more than one NS installation on the > machine, it could happen that you're ending up running NS from a different > installation, and not from the one where you're making the changes. To > check this out, try giving the complete path when running NS (i.e. say > "./ns" instead of just "ns" if you're running from the ns directory). > MANY THANKS!!! effectively, I had another version installed in my removale hard drive, which i didn t know at all. Your really saved me. >Also, I'm sure most list users would appreciate it if you would > refrain from using 'URGENT HELP' etc. in the message subject, and also > from posting the same message multiple times to the list. Its helpful to > make multiple posts if each one has some new information. Posting the > exact same message repeatedly only serves to annoy people. I am apoligize for sending multiple messages with the same title. But, only two were with the same content. I have poste my discussion with another ns user, hoping that this would inspir other ns users what the problem is. I don t know how to make my reply under my original message, so i just used "cc: ns-users@isi.edu" Ikram > > On Thu, 19 Aug 2004, ic wrote: > > > > > Hi all, > > > > if i rebuild ns-allinone-2.27 from scratch again, would this solve my problem??? > > > > Please advise > > > > Ikram > > > > > > -- > From naby_djoubar at hotmail.com Thu Aug 19 12:56:24 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Thu Aug 19 12:59:48 2004 Subject: [ns] Errors while trying to patch the file "setdest.cc". Message-ID: Hello everybody I have followed the direction- from ns-problems.html- on how to patch the file "setdest.cc" without any succes. It resulted in even more errors! namely "parse error before '@' token". Can somebody please post for me ALL the exact commands that I have to issue? Thanks in advance. _________________________________________________________________ Des m?canismes de contr?le parental puissants permettent ? votre enfant de d?couvrir tout ce qu?Internet a ? offrir. http://join.msn.com/?pgmarket=fr-ca&page=features/parental&ST=1&xAPID=1983&DI=2043 Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From qwang at ececs.uc.edu Thu Aug 19 13:20:46 2004 From: qwang at ececs.uc.edu (Qihe Wang) Date: Thu Aug 19 13:25:44 2004 Subject: [ns] Errors while trying to patch the file "setdest.cc". In-Reply-To: Message-ID: Use a gnu version of patch may solve your problem. I guess you are not using Linux. On Thu, 19 Aug 2004, Naby Djoubar Soumah wrote: > > Hello everybody > > I have followed the direction- from ns-problems.html- on how to patch the > file "setdest.cc" without any succes. It resulted in even more errors! > namely "parse error before '@' token". > > Can somebody please post for me ALL the exact commands that I have to issue? > > Thanks in advance. > > _________________________________________________________________ > Des mcanismes de contrle parental puissants permettent votre enfant de > dcouvrir tout ce quInternet a offrir. > http://join.msn.com/?pgmarket=fr-ca&page=features/parental&ST=1&xAPID=1983&DI=2043 > Commencez ds maintenant profiter de tous les avantages de MSN Premium et > obtenez les deux premiers mois GRATUITS*. > From s.ganjigatti at csuohio.edu Thu Aug 19 15:23:25 2004 From: s.ganjigatti at csuohio.edu (Snehal Ganjigatti) Date: Thu Aug 19 15:22:07 2004 Subject: [ns] Doubt in AODV code Message-ID: <4125285D.000012.01648@Snehal> Hi I hope that somebody has looked at the AODV code because I have a doubt related to it. In aodv/aodv.cc, the 'AODV::sendReply' method. rp -> rp_src = index ; The 'Originator IP address' field of the RREP message is assigned the value of the variable 'index'. According to the RFC, this should equal the IP address of the source that sent the RREQ. Now, index is a variable of class AODV and contains the IP address of the node that is calling the function. So, doing this would mean that the node which sends the RREP, assigns its IP address to rp_src instead of the IP address of the source. I think this is wrong. If anyone has come across this or if you feel that this is correct, please let me know. I hope that somebody is able to help me. Thanks, Snehal. From fjrm4 at yahoo.es Thu Aug 19 17:00:03 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Thu Aug 19 17:02:44 2004 Subject: [ns] Doubt in AODV code In-Reply-To: <4125285D.000012.01648@Snehal> References: <4125285D.000012.01648@Snehal> Message-ID: <200408200200.04266.fjrm4@yahoo.es> I also think that is not correct. I am using an AODV implementation which allows wired-cum-wireless simulations and where the "problem" is fixed. It has been developed by Ali Hamidian and you can download a copy from http://www.telecom.lth.se/Personal/alexh/. It works fine in ns-2.26 and with very little code you can use it in ns-2.27. By the way, I think that simulation results will be the same with the "problem" fixed or not (I am not sure, you should do your tests by your own and check it out). Regards, Francisco Ros El Viernes, 20 de Agosto de 2004 00:23, Snehal Ganjigatti escribi?: > Hi > > I hope that somebody has looked at the AODV code because I have a doubt > related to it. > > In aodv/aodv.cc, the 'AODV::sendReply' method. > rp -> rp_src = index ; > > The 'Originator IP address' field of the RREP message is assigned the value > of the variable 'index'. According to the RFC, this should equal the IP > address of the source that sent the RREQ. Now, index is a variable of class > AODV and contains the IP address of the node that is calling the function. > So, doing this would mean that the node which sends the RREP, assigns its > IP address to rp_src instead of the IP address of the source. > > I think this is wrong. If anyone has come across this or if you feel that > this is correct, please let me know. > I hope that somebody is able to help me. > > Thanks, > Snehal. From p23615 at mail2.ukm.my Thu Aug 19 19:28:21 2004 From: p23615 at mail2.ukm.my (Low Chee Sing) Date: Thu Aug 19 19:31:36 2004 Subject: [ns] URGENT: Base Station Transmission Rate In-Reply-To: <000EBF7B1DABE44A86933F6A693BDCCE01804AF5@02-CSEXCH.uopnet.plymouth.ac.uk> References: <000EBF7B1DABE44A86933F6A693BDCCE01804AF5@02-CSEXCH.uopnet.plymouth.ac.uk> Message-ID: <412561C5.9020005@mail2.ukm.my> Thanks for the reply. I do simulation on the Mobile IP network. I have installed the Cellular IP and NOAH extensions. I want to change the base station transmission rate, and also the transmission power level. I know now how to set the power to the desired coverage, but I don't know how to change the beacon interval. Any clues? Low Chee Sing UKM Mercator Office Phone: +603-8921 6191 Fax: +603-8925 6629 (pg) Ye Zhang wrote: >hi, >i do simulation on umts networks. >so, what kind of base station u refer to? in umts r5, it's called to be NodeB. > >could u pls make the question detailed? > >amicalement >Ye > > -----Original Message----- > From: ns-users-bounces@ISI.EDU ?? Low Chee Sing > Sent: 2004-8-19 (???) 8:32 > To: ns-users@ISI.EDU > Cc: > Subject: [ns] URGENT: Base Station Transmission Rate > > > > > Good day to all of you. > > I need to know is there anyway for me to check the base station > trasmission rate in wireless simulation? How do I log them? > > Thanks > > -- > > Low Chee Sing > UKM Mercator Office > Phone: +603-8921 6191 > Fax: +603-8925 6629 > > > > > From auau28 at yahoo.com Thu Aug 19 20:16:28 2004 From: auau28 at yahoo.com (audrey ong) Date: Thu Aug 19 20:19:29 2004 Subject: [ns] Fwd: How to understand error message Message-ID: <20040820031628.27202.qmail@web40812.mail.yahoo.com> Note: forwarded message attached. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From isc10487 at nus.edu.sg Thu Aug 19 22:05:59 2004 From: isc10487 at nus.edu.sg (Shen Ren) Date: Thu Aug 19 22:08:33 2004 Subject: [ns]What does mhDefer_.start() do? Message-ID: <439C071A7C37F14A8DC2256D8D7D9F752A905E@MBOX23.stu.nus.edu.sg> Dear Folks, There is a line in mac-802_11.cc: mhDefer_.start(phymib_.getDIFS() + rTime); What does it do? Does it mean the packet would be send at time "phymib.getDIFS()+rTime"? If yes Then how would if there is suddenly a noise in the channel? Would it invoke the DeferHandler? Regards, Shen Ren From shetty at gmail.com Thu Aug 19 23:26:19 2004 From: shetty at gmail.com (Niranjan Shetty) Date: Thu Aug 19 23:29:22 2004 Subject: [ns] query: initial packet drops in dsdv Message-ID: <9b576dfa0408192326319ca76d@mail.gmail.com> Hi, I have a basic setup consisting of 2 stationary nodes 1->2 using 802.11mac, and cbr of 8kbps starting at 0s. I used the dsdv routing protocol, and even without invoking an error model, it has a string of initial packet drops at the transmitter for about 1.2s after which regular transmissions resume. This same initial drop is observed even as I invoke a uniform error model with a packet loss rate of upto 0.3. Now when I use a packet loss rate of 0.4 - 0.5, this initial packet-drops in the trace file, suddenly stretches for about 14s after which an expected pattern of transmissions resumes. This problem does not surface when I use dumb agent instead of dsdv. I am unsure whether these initial packet-drops can be attributed to the exchange of routing tables in dsdv. Wanted to know if someone has faced this problem before or can provide an insight. Thanks niranjan. From PG03077626 at ntu.edu.sg Fri Aug 20 00:07:43 2004 From: PG03077626 at ntu.edu.sg (#YU YANG#) Date: Fri Aug 20 00:10:23 2004 Subject: [ns] help: ns command not found Message-ID: <34C4FA35021357469685D8102806A1C01D0A6C@mail01.student.main.ntu.edu.sg> Hi, I installed ns-allinone-2.27 under Linux. After the installation, the system reminds me, give the following information: Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.5: /root/ns-allinone-2.27/{bin,include,lib} tk8.4.5: /root/ns-allinone-2.27/{bin,include,lib} otcl: /root/ns-allinone-2.27/otcl-1.8 tclcl: /root/ns-allinone-2.27/tclcl-1.15 ns: /root/ns-allinone-2.27/ns-2.27/ns nam: /root/ns-allinone-2.27/nam-1.10/nam then I run the ./validate command, and all test .tcl files pass through without error message. I also see "ns" nuder ns-allinone-2.27/ns-2.27 But when i try to run any .tcl file with ns command, it always give error message: ns: command not found. Can anyone tell me what's the possible problem? Thanks for your reply. rgds, Yu Yang From hazam at email.it Fri Aug 20 00:28:16 2004 From: hazam at email.it (Emanuele Di Saverio) Date: Fri Aug 20 00:31:25 2004 Subject: [ns] AODV Delay References: <001101c47ead$c4cc1e90$0100a8c0@diza1> <41252D00.000005.02252@Snehal> Message-ID: <004e01c48687$42caa420$0100a8c0@diza1> Hi I have looked at the aodv.cc file and I thought that the forward = function delayed the broadcast of a packet by 10 ms. Even I wondered why = the delay was introduced just for a broadcast packet and not an unicast = packet. Is that your question ? In case you got your answer, please do let me know. Snehal. =20 =20 =20 =20 Well the weird thing about that is that the delay RANGES from 0 to 10 = ms randomly (random.uniform()). The thing is causing me problems because = i don't know what it is supposed to model. Anyway i'll let you know. Haz -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Acquista videogames a prezzi imbattibili spediti direttamente a casa tua! * Giochi e accessori PC, PS2, XBOX, G.CUBE, GBA che aspetti, clicca! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2454&d=20-8From naby_djoubar at hotmail.com Fri Aug 20 01:44:23 2004 From: naby_djoubar at hotmail.com (Naby Djoubar Soumah) Date: Fri Aug 20 01:47:36 2004 Subject: [ns] "wrong routing Agent!" error Message-ID: hello everybody I'm trying to test a new routing agent and I get the "wrong routing protocol agent!" error. has anybody encountered this problem before? what could it be and how can i solve it? Thanks a lot. _________________________________________________________________ Gardez le contr?le gr?ce ? la protection contre les fen?tres pop-up articul?e sur la technologie brevet?e Microsoft SmartScreen http://join.msn.com/?pgmarket=fr-ca&page=features/popup Commencez d?s maintenant ? profiter de tous les avantages de MSN Premium et obtenez les deux premiers mois GRATUITS*. From yann.fleutot at eads-telecom.com Fri Aug 20 03:06:35 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Fri Aug 20 03:11:45 2004 Subject: [ns] Doubt in AODV code Message-ID: <200408201219.OAA17803@trantor.eads-dsn.com> Hello, I don't know about the AODV implementation provided with ns-2 because I use the one recommended by the protocol designers (see http://moment.cs.ucsb.edu/AODV/aodv.html#Simulation). And the corresponding line is : rrep->orig_addr = orig_addr.s_addr; > -----Message d'origine----- > De : Snehal Ganjigatti [mailto:s.ganjigatti@csuohio.edu] > Envoy : vendredi 20 aot 2004 00:23 > : NS Users > Objet : [ns] Doubt in AODV code > > > > Hi > > I hope that somebody has looked at the AODV code because I > have a doubt > related to it. > > In aodv/aodv.cc, the 'AODV::sendReply' method. > rp -> rp_src = index ; > > The 'Originator IP address' field of the RREP message is > assigned the value > of the variable 'index'. According to the RFC, this should > equal the IP > address of the source that sent the RREQ. Now, index is a > variable of class > AODV and contains the IP address of the node that is calling > the function. > So, doing this would mean that the node which sends the > RREP, assigns its > IP address to rp_src instead of the IP address of the source. > > I think this is wrong. If anyone has come across this or if > you feel that > this is correct, please let me know. > I hope that somebody is able to help me. > > Thanks, > Snehal. > From ppl at nbnet.nb.ca Fri Aug 20 04:32:08 2004 From: ppl at nbnet.nb.ca (Pierre-Paul Lavoie) Date: Fri Aug 20 04:35:42 2004 Subject: [ns] help: ns command not found In-Reply-To: <34C4FA35021357469685D8102806A1C01D0A6C@mail01.student.main.ntu.edu.sg> References: <34C4FA35021357469685D8102806A1C01D0A6C@mail01.student.main.ntu.edu.sg> Message-ID: <20040820113208.GA63287@bloodaxis> Hi Yu Yang, You didn't properly set your PATH variable. To assert ns is present in the folder, type this: ls -l /root/ns-allinone-2.27/ns-2.27/ns To run ns without a special PATH variable, give the absolute path to ns: /root/ns-allinone-2.27/ns-2.27/ns simulation.tcl Have building/installing ns2, it gives instructions to properly set the environnement variables. You need to follow these instructions Good luck, ppl P.S. You don't need to run ns as the root user. You probably shouldn't too. On Fri, Aug 20, 2004 at 03:07:43PM +0800, #YU YANG# wrote: > > > Hi, > > I installed ns-allinone-2.27 under Linux. > > After the installation, the system reminds me, give the following information: > > Ns-allinone package has been installed successfully. > Here are the installation places: > tcl8.4.5: /root/ns-allinone-2.27/{bin,include,lib} > tk8.4.5: /root/ns-allinone-2.27/{bin,include,lib} > otcl: /root/ns-allinone-2.27/otcl-1.8 > tclcl: /root/ns-allinone-2.27/tclcl-1.15 > ns: /root/ns-allinone-2.27/ns-2.27/ns > nam: /root/ns-allinone-2.27/nam-1.10/nam > > > then I run the ./validate command, and all test .tcl files pass through without error message. > > I also see "ns" nuder ns-allinone-2.27/ns-2.27 > > But when i try to run any .tcl file with ns command, it always give error message: ns: command not found. > > Can anyone tell me what's the possible problem? Thanks for your reply. > > rgds, > Yu Yang From _ricciantonio_ at libero.it Fri Aug 20 08:48:51 2004 From: _ricciantonio_ at libero.it (_ricciantonio_) Date: Fri Aug 20 07:43:40 2004 Subject: [ns] How to have information about packet loss in TCP and UDP Message-ID: <200408201441.i7KEf4B00048@vapor.isi.edu> Hello, I'm simulating a bluetooth system, using an appropriate module, in which each node sends ftp flows on tcp and one node sends audio(G729) and video (H263) flows on udp.I'd want to know how to calculate lost packets and throughput for each flow. Regards Antonio Ricci From kiranbanna at hotmail.com Fri Aug 20 07:43:56 2004 From: kiranbanna at hotmail.com (Kiran Anna) Date: Fri Aug 20 07:46:23 2004 Subject: [ns] Question about adding a component to the stack in the wireless node! Message-ID: Hi I am currently working on topology management in the ad hoc networks. For this purpose, I need to add a component between LL and Routing agent. LL is derived from connector class and routing agent is derived from agent class. I am not sure which class this topology component should derived from. what is the difference between agent class and connector class when it comes to the components in the stack. The component I am going to add periodically sends hello packets and other packets to know abt its neighbors and some topology information. Can you suggest me what class I should derive it from? Thanks Kiran _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From kimaya at cs.ucsb.edu Fri Aug 20 09:11:10 2004 From: kimaya at cs.ucsb.edu (Kimaya M. Sanzgiri) Date: Fri Aug 20 09:15:01 2004 Subject: [ns] AODV Delay In-Reply-To: <004e01c48687$42caa420$0100a8c0@diza1> References: <001101c47ead$c4cc1e90$0100a8c0@diza1> <41252D00.000005.02252@Snehal> <004e01c48687$42caa420$0100a8c0@diza1> Message-ID: A random delay between 0 and 10 ms, called jitter, is added before every broadcast packet. The purpose of this delay is to reduce the probability of multiple nodes simultaneously broadcasting packets (as is likely to happen during, say, a RREQ flood), which will result in collisions. This is important for broadcast packets since broadcasts are not ACKed by receivers, and so there's no way of detecting a collision. In the case of unicast packets, the absence of an ACK indicates a collision and the packet can be retransmitted, so the jitter is not necessary. Hope that helps. Kimaya On Fri, 20 Aug 2004, Emanuele Di Saverio wrote: > > > Hi > > I have looked at the aodv.cc file and I thought that the forward function delayed the broadcast of a packet by 10 ms. Even I wondered why the delay was introduced just for a broadcast packet and not an unicast packet. Is that your question ? > In case you got your answer, please do let me know. > > Snehal. > > > > > Well the weird thing about that is that the delay RANGES from 0 to 10 ms randomly (random.uniform()). The thing is causing me problems because i don't know what it is supposed to model. Anyway i'll let you know. > > Haz > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Acquista videogames a prezzi imbattibili spediti direttamente a casa tua! > * Giochi e accessori PC, PS2, XBOX, G.CUBE, GBA che aspetti, clicca! > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid$54&d -8 > > -- From manish_academic at yahoo.com Fri Aug 20 12:18:58 2004 From: manish_academic at yahoo.com (manish Mittal) Date: Fri Aug 20 12:21:55 2004 Subject: [ns] NS interface with Windows for 802.11 simulation Message-ID: <20040820191858.64322.qmail@web61305.mail.yahoo.com> Hi, Is it possible to run a simulation in ns and interface the results of the simulation to a windows module (in real time)? I am listing a little more detail below, i would be glad if some one can let me know if it is possible and if it is possible then what is involved in acheiving it. I need to simulate 802.11b/g after doing some modifications. The modifications are listed below. 1- I want to implement a Error correcting alogorithm working at the PHY/MAC layer. The requirement is that before any header is processed by the protocol on the receiving end, it should pass through this error correcting module. And similarily for transmitting end. 2- After processing the headers upto the MAC layer in ns, i want the information to be passed to windows for further processing. The reason i am thinking in the above manner is because,i want to test a particular algorithm which is built for windows. This algorithm works at the TCP/IP layer and provides some optimization. The real problem here is that i donot have the source code of the algorithm. Secondly I need to test this algorithm in lieu of the error correcting part i described.Without simulation the error correcting part has to be done on the hardware and then used with windows. I am guessing that the changins in the error correcting part would not require any driver modifications for windows, as no input is required from OS. I am not very sure if the above process would be right. Any suggestions are extremely welcome. Please let me know if you would like to know more than what i have described to be able to help me. Thanks Manish Mittal Graduate student, UAB. --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. From raysaikat at lycos.com Fri Aug 20 12:49:22 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Fri Aug 20 12:53:41 2004 Subject: [ns] NS interface with Windows for 802.11 simulation Message-ID: <20040820194922.75CA7C611C@ws7-5.us4.outblaze.com> NS actually does not simulate bitwise transmission; so you will not see "bit" errors in the received packets ... ----- Original Message ----- From: manish Mittal Date: Fri, 20 Aug 2004 12:18:58 -0700 (PDT) To: NS_USERS Subject: [ns] NS interface with Windows for 802.11 simulation > > Hi, > Is it possible to run a simulation in ns and interface the results of the simulation to a windows module (in real time)? I am listing a little more detail below, i would be glad if some one can let me know if it is possible and if it is possible then what is involved in acheiving it. > > I need to simulate 802.11b/g after doing some modifications. The modifications are listed below. > > 1- I want to implement a Error correcting alogorithm working at the PHY/MAC layer. The requirement is that before any header is processed by the protocol on the receiving end, it should pass through this error correcting module. And similarily for transmitting end. > > 2- After processing the headers upto the MAC layer in ns, i want the information to be passed to windows for further processing. > > The reason i am thinking in the above manner is because,i want to test a particular algorithm which is built for windows. This algorithm works at the TCP/IP layer and provides some optimization. The real problem here is that i donot have the source code of the algorithm. > > Secondly I need to test this algorithm in lieu of the error correcting part i described.Without simulation the error correcting part has to be done on the hardware and then used with windows. I am guessing that the changins in the error correcting part would not require any driver modifications for windows, as no input is required from OS. > > I am not very sure if the above process would be right. Any suggestions are extremely welcome. > Please let me know if you would like to know more than what i have described to be able to help me. > > Thanks > Manish Mittal > Graduate student, UAB. > > > > --------------------------------- > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. > -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From raysaikat at lycos.com Fri Aug 20 12:55:09 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Fri Aug 20 12:58:34 2004 Subject: [ns] default wavelength in MAC 802.11. Message-ID: <20040820195509.0FB2EC6134@ws7-5.us4.outblaze.com> mac/wireless-phy.h ----- Original Message ----- From: "Kenneth Nielsen" Date: Thu, 19 Aug 2004 09:45:03 +0200 To: Subject: [ns] default wavelength in MAC 802.11. > > Hi, > > What is NS-2 default wavelength when using MAC 802.11?. > What is the name of the variable that contains the wavelength value? > > Regards, > Kenneth Nielsen -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From raysaikat at lycos.com Fri Aug 20 12:57:45 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Fri Aug 20 12:59:23 2004 Subject: [ns] default wavelength in MAC 802.11. Message-ID: <20040820195745.B7422C611C@ws7-5.us4.outblaze.com> and lib/ns-default.tcl ----- Original Message ----- From: "Kenneth Nielsen" Date: Thu, 19 Aug 2004 09:45:03 +0200 To: Subject: [ns] default wavelength in MAC 802.11. > > Hi, > > What is NS-2 default wavelength when using MAC 802.11?. > What is the name of the variable that contains the wavelength value? > > Regards, > Kenneth Nielsen -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From klee at nps.edu Fri Aug 20 15:11:08 2004 From: klee at nps.edu (Lee kok thong) Date: Fri Aug 20 15:14:45 2004 Subject: [ns] help: ns command not found In-Reply-To: <34C4FA35021357469685D8102806A1C01D0A6C@mail01.student.main.ntu.edu.sg> Message-ID: <000001c48702$985a5e00$220110ac@G0303085> You have to put ns in the env path If you use linux red hat using bash shell. Go to yr home dir and edit the .bashrc to include the path for ns PATH=PATH:/usr/src/ns2.27/bin Or if you want you can always do /path/where/u/put/ns-dir/ns-allinone-2.27/ns-2.27/ns whatever.tcl regards Francis -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of #YU YANG# Sent: Friday, August 20, 2004 12:08 AM To: ns-users@ISI.EDU Subject: [ns] help: ns command not found Hi, I installed ns-allinone-2.27 under Linux. After the installation, the system reminds me, give the following information: Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.5: /root/ns-allinone-2.27/{bin,include,lib} tk8.4.5: /root/ns-allinone-2.27/{bin,include,lib} otcl: /root/ns-allinone-2.27/otcl-1.8 tclcl: /root/ns-allinone-2.27/tclcl-1.15 ns: /root/ns-allinone-2.27/ns-2.27/ns nam: /root/ns-allinone-2.27/nam-1.10/nam then I run the ./validate command, and all test .tcl files pass through without error message. I also see "ns" nuder ns-allinone-2.27/ns-2.27 But when i try to run any .tcl file with ns command, it always give error message: ns: command not found. Can anyone tell me what's the possible problem? Thanks for your reply. rgds, Yu Yang From hanna.amna at laposte.net Fri Aug 20 15:28:55 2004 From: hanna.amna at laposte.net (hanna.amna) Date: Fri Aug 20 15:31:29 2004 Subject: [ns] URGENT!!!! I NEED HELP PLEASE!!! Message-ID: Hi all, I am running a simulation of an ad hoc network that nodes have a different level of power. Can someone tell me how can I change RTS/CTS mechanism for this one : When S send RTS packet to D. The high-power nodes that receive RTS packet, transmit a forword-RTS packet. And when D reply with CTS packet. The high-power nodes that receive CTS packet, transmit a forword-CTS packet. Could you please help me. Your help will be greatly appreciated. Thanks in advance, hanna. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From hanna.amna at laposte.net Fri Aug 20 15:31:08 2004 From: hanna.amna at laposte.net (hanna.amna) Date: Fri Aug 20 15:34:27 2004 Subject: [ns] HELP on RTS/CTS mechanism Message-ID: Hi all, I am running a simulation of an ad hoc network that nodes have a different level of power. Can someone tell me how can I change RTS/CTS mechanism for this one : When S send RTS packet to D. The high-power nodes that receive RTS packet, transmit a forword-RTS packet. And when D reply with CTS packet. The high-power nodes that receive CTS packet, transmit a forword-CTS packet. Could you please help me. Your help will be greatly appreciated. Thanks in advance, hanna. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From csp007 at hotmail.com Fri Aug 20 19:50:50 2004 From: csp007 at hotmail.com (choh Andrew) Date: Fri Aug 20 19:52:52 2004 Subject: [ns] startiing nam Message-ID: I've got a problem trying to starting the first tutorial in ns2.27, it display the error below can anyone tell me where is the problem..thanks in advance..... Cannot connect to existing nam instance. Starting a new one... Failed to start animator: class Animator: constructor failed: unmatched open brace in list unmatched open brace in list while executing "foreach item $traceevent { if { $next == 1 } { return $item } if { $item == $tag } { set next 1 } }" (procedure "get_trace_item" line 3) invoked from within "get_trace_item "-t" $line" (procedure "_o3" line 15) (Animator infer-network-model line 15) invoked from within "$self infer-network-model $tracefile" (procedure "_o3" line 84) (Animator init line 84) invoked from within "_o3 init example1a.tcl {}" (Class create line 1) invoked from within "Animator create _o3 example1a.tcl {}" 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 $ANIMATOR_CLASS_ $tracefile [join $args]" _________________________________________________________________ Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/ From csp007 at hotmail.com Fri Aug 20 19:54:07 2004 From: csp007 at hotmail.com (choh Andrew) Date: Fri Aug 20 19:57:25 2004 Subject: [ns] creating Nam file. Message-ID: Can anyone tell me what is the problem given below and how to create a nam file? 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" _________________________________________________________________ Fast. Clear. Easy. The new MSN Search. http://search.msn.com.sg/ From piabasu at rediffmail.com Sat Aug 21 10:49:21 2004 From: piabasu at rediffmail.com (bibek basu) Date: Sat Aug 21 10:52:43 2004 Subject: [ns] NS make failed!!!! Message-ID: <20040821174921.18286.qmail@webmail46.rediffmail.com> Hi everybody, I have installed ns2.1b6 sucessfully.Later I installed the WDM patch from DAWN lab & on further installing & got the following error: creating Makefile creating tcl/lib/ns-autoconf.tcl creating indep-utils/webtrace-conv/ucb/Makefile creating indep-utils/webtrace-conv/dec/Makefile creating indep-utils/webtrace-conv/nlanr/Makefile creating indep-utils/webtrace-conv/epa/Makefile creating indep-utils/cmu-scen-gen/setdest/Makefile creating autoconf.h autoconf.h is unchanged Makefile:162: *** missing separator (did you mean TAB instead of 8 spaces?). Stop. Ns make failed! See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html for problems Plz help! thanks ************************** Bibek Basu M.Tech. (Optoelectronics & Optical Communication) WB-22;Vindhyachal Hostel; IIT Delhi ************************** From anais55 at hotmail.com Sat Aug 21 12:39:14 2004 From: anais55 at hotmail.com (luisa heredia garcia) Date: Sat Aug 21 12:42:32 2004 Subject: [ns] WHERE IS THE QUEUE IN A NODE???????? Message-ID: HI ALL, I'M TRYING TO FIND OUT IF I CAN WORK WITH THE QUEUE IN A NODE. I need to know the queue size or the number of packets drops but just the node's queue. For example: n1------------------r1--------------------n2 how can I access to the queue in n2??? I need to change a protocol and do that in C/C++ not in the script. I have used: set qmon [$ns monitor-queue $n1 $n2 0] set fqsize [open "qsize.n1-n2.out" w] set fqdrop [open "qdrop.n1-n2.out" w] $ns at 0 "record" proc record {} { global ns qmon fqsize fqdrop set time [$ns now] set qsize [$qmon set pkts_] set qdrop [$qmon set pdrops_] puts $fqsize "$time $qsize" puts $fqdrop "$time $qdrop" $qmon reset $ns at [expr $time+1.0] "record" } proc finish {} { global fqsize fqdrop ... close $fqsize close $fqdrop ... } ##### but this is in the Otcl script, not in the protocol. Do you understand me?? I'm sorry if I couldn't express myself. thanks in advance _________________________________________________________________ Dale rienda suelta a tu tiempo libre. Encuentra mil ideas para exprimir tu ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ From s.ganjigatti at csuohio.edu Sat Aug 21 17:16:50 2004 From: s.ganjigatti at csuohio.edu (Snehal Ganjigatti) Date: Sat Aug 21 17:13:31 2004 Subject: [ns] Another Doubt in AODV code References: <200408201219.OAA17803@trantor.eads-dsn.com> Message-ID: <4127E5F2.00000D.00688@Snehal> Thanks for replying.=0D=0D =0D=0D Well I have one more question about the function 'nb_insert'.=0D=0D After a neighbor is inserted, the seqno is incremented by 2.=0D=0D And the explanation given is "Set of neighbors changed"/=0D=0D But why does the node that added the neighbor increments itw own seqno.?=0D= =0D If anyone has an answer, please let me know.=0D=0D =0D=0D Thanks,=0D=0D Snehal.=0D=0D =0D=0D =0D=0D -------Original Message-------=0D=0D =0D=0D From: Fleutot, Yann=0D=0D Date: Friday, August 20, 2004 06:30:40 AM=0D=0D To: NS Users=0D=0D Subject: RE: [ns] Doubt in AODV code=0D=0D =0D=0D Hello,=0D=0D =0D=0D I don't know about the AODV implementation provided with ns-2 because I use= =0D=0D the one recommended by the protocol designers (see=0D=0D http://moment.cs.ucsb.edu/AODV/aodv.html#Simulation). And the corresponding= =0D=0D line is :=0D=0D rrep->orig_addr =3D orig_addr.s_addr;=0D=0D =0D=0D =0D=0D =0D=0D > -----Message d'origine-----=0D=0D > De : Snehal Ganjigatti [mailto:s.ganjigatti@csuohio.edu]=0D=0D > Envoy=E9 : vendredi 20 ao=FBt 2004 00:23=0D=0D > =C0 : NS Users=0D=0D > Objet : [ns] Doubt in AODV code=0D=0D >=0D=0D >=0D=0D >=0D=0D > Hi=0D=0D >=0D=0D > I hope that somebody has looked at the AODV code because I=0D=0D > have a doubt=0D=0D > related to it.=0D=0D >=0D=0D > In aodv/aodv.cc, the 'AODV::sendReply' method.=0D=0D > rp -> rp_src =3D index ;=0D=0D >=0D=0D > The 'Originator IP address' field of the RREP message is=0D=0D > assigned the value=0D=0D > of the variable 'index'. According to the RFC, this should=0D=0D > equal the IP=0D=0D > address of the source that sent the RREQ. Now, index is a=0D=0D > variable of class=0D=0D > AODV and contains the IP address of the node that is calling=0D=0D > the function.=0D=0D > So, doing this would mean that the node which sends the=0D=0D > RREP, assigns its=0D=0D > IP address to rp_src instead of the IP address of the source.=0D=0D >=0D=0D > I think this is wrong. If anyone has come across this or if=0D=0D > you feel that=0D=0D > this is correct, please let me know.=0D=0D > I hope that somebody is able to help me.=0D=0D >=0D=0D > Thanks,=0D=0D > Snehal.=0D=0D >=0D=0D =0D=0D .=0D From frankday2000 at yahoo.com Sun Aug 22 01:14:24 2004 From: frankday2000 at yahoo.com (Frank Day) Date: Sun Aug 22 01:16:43 2004 Subject: [ns] adhocRouting problem Message-ID: <20040822081424.48847.qmail@web50207.mail.yahoo.com> hi, i write a simple route agent just forwarding packets between a wireless node and a wired node. the agent can recv packets from wired node, but can't recv packets from the wireless node. the strange thing is the trace file shows that the wired node can recv the packets from the wireless node can anybody tell me the reason? thanx Frank --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. From steinert at ibr.cs.tu-bs.de Sun Aug 22 05:32:43 2004 From: steinert at ibr.cs.tu-bs.de (Andre Steinert) Date: Sun Aug 22 05:34:40 2004 Subject: [ns] How to pass parameters in command line to C++-code? Message-ID: <4128926B.40706@ibr.cs.tu-bs.de> Hi, is there a way to pass the parameters given in command line to the ns-2 C++-code without touching the TCL-simulation code? I know how to do this with TCL-Code, but I shouldn't touch it. Example: ns testing.tcl -nodes 40 -print 60 C++-code: ... cout << argv << endl; ... Output: testing.tcl -nodes 40 -print 60 Thanks in advance, Andre. From hz83997 at yahoo.com.cn Sun Aug 22 05:58:29 2004 From: hz83997 at yahoo.com.cn (=?gb2312?q?=FFffffd5=FFfffff7=20=FFffffba=FFffffe9?=) Date: Sun Aug 22 06:00:28 2004 Subject: [ns] what does channel_idle_time_ mean in wireless-phy.cc Message-ID: <20040822125829.44629.qmail@web15601.mail.cnb.yahoo.com> In wireless-phy.cc, I find the codes: double start_time = max(channel_idle_time_, NOW); double end_time = max(channel_idle_time_, NOW+rcvtime); I wonder what does channel_idle_time_ mean? Does it stand for the time the channel idles before the transmssion or after the transmission? At first sight, I thought channel_idle_time_ stands for the time the channel begins to idle, and when the reception takes place(NOW), the channel gets busy.The channel will get idle again after the reception, which is (NOW+rcvtime). Because channel_idle_time_ is compared with both NOW and NOW+rcvtime, I was at a loss about its meaning. There are also codes about channel_idle_time_ comparisons like these: if (end_time > channel_idle_time_) { status_ = RECV; } channel_idle_time_ = end_time; Can anyone explain the variable channel_idle_time_ for me? Thanks a lot! Relevant source code is attached below: wireless-phy.c (excerption) int WirelessPhy::sendUp(Packet *p) double start_time = max(channel_idle_time_, NOW); double end_time = max(channel_idle_time_, NOW+rcvtime); double actual_rcvtime = end_time-start_time; if (start_time > update_energy_time_) { em()->DecrIdleEnergy(start_time-update_energy_time_, P_idle_); update_energy_time_ = start_time; } em()->DecrRcvEnergy(actual_rcvtime,Pr_consume_); if (end_time > channel_idle_time_) { status_ = RECV; } channel_idle_time_ = end_time; update_energy_time_ = end_time; --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From hz83997 at yahoo.com.cn Sun Aug 22 06:21:41 2004 From: hz83997 at yahoo.com.cn (=?gb2312?q?=FFffffd5=FFfffff7=20=FFffffba=FFffffe9?=) Date: Sun Aug 22 06:23:26 2004 Subject: [ns] regarding conversion of power Message-ID: <20040822132141.95123.qmail@web15604.mail.cnb.yahoo.com> I have the same question as you. I am unable to understand the conversion done in this line in wireless-phy.cc Line No 00115: Pt_consume_ = 0.660; // 1.6 W drained power for transmission Pr_consume_ = 0.395; // 1.2 W drained power for reception // P_idle_ = 0.035; // 1.15 W drained power for idle How is the conversion between 1.6 W and 0.660? I also wonder if there is a problem with P_idle_, should it be 0.35? It seems 1.2W is close to 1.15W, and how can Pr_consume_ and P_idle_ have such a huge difference? Have you got your answer? Can you give me some advice? Thanks a lot! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From gabmb at uol.com.br Sun Aug 22 09:37:29 2004 From: gabmb at uol.com.br (=?iso-8859-1?Q?Gabriel_Mar=E7al_de_Brito?=) Date: Sun Aug 22 09:39:27 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared Message-ID: Hi guys! I?ve tried everything to fix this make error but couldn't make it work. Neither the pacth and makefile editing worked. Anyone has any idea on how to get through this issue? Or anyone can send me the fixed makefiles? Thanks, Gabriel >On Wed, 18 Aug 2004 02:31:10 +0800, "Yang Shaojun(Peter Yang)" wrote: > >John Heidemann, > >files list that you need modify: > ns-x.xx/indep-utils/webtrace-conv/nlanr/Makefile.in > ns-x.xx/indep-utils/webtrace-conv/dec/Makefile.in > ns-x.xx/indep-utils/cmu-scen-gen/setdest/Makefile.in > >you should add "-DCPP_NAMESPACE=@CPP_NAMESPACE@" at the end of "DEFINE >= -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@" > >Such as: >-DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=@CPP_NAMESPACE@ > I said: >>(My take by grepping the current codebase is that STL_NAMESPACE is now >>gone and the current CVS code should compile complete. We'd like to ^^^^^^^^^^^^^^^^^^^^ >>know if that's not the case.) These changes have all been made there already. (Btw, CPP_NAMESPACE should replace STL_NAMESPACE, not be added to it.) Aaah, I see what the original poster's complain is: that the other files aren't listed on ns-problems. -John Heidemann --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.731 / Virus Database: 485 - Release Date: 29/7/2004 From dingping20004 at yahoo.com Sun Aug 22 13:08:43 2004 From: dingping20004 at yahoo.com (Ping Ding) Date: Sun Aug 22 13:10:33 2004 Subject: [ns] multicast with mobile hosts Message-ID: <20040822200843.1123.qmail@web50710.mail.yahoo.com> Hi, all, How can I realize multicast with mobile hosts? For example, I have wired-cum-wireless topology. How can I send multicast from one node to some nodes in the topology? I appreciate your help! Thank a lot! Ping --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. From edtyy at hotmail.com Sun Aug 22 14:44:38 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Sun Aug 22 14:46:27 2004 Subject: [ns] Script for UDP goodput Message-ID: Hello, Does any one has an awk script to calculate goodput of UDP flow? Edwin _________________________________________________________________ Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/ From sayenko at cc.jyu.fi Sun Aug 22 22:33:34 2004 From: sayenko at cc.jyu.fi (Alexander Sayenko) Date: Sun Aug 22 22:35:45 2004 Subject: [ns] WHERE IS THE QUEUE IN A NODE???????? References: Message-ID: <000f01c488d2$bc3731a0$44a9ea82@it.jyu.fi> Hi The logic of the NS-2 is so that a queue resides not in a node, but in a link that connecs two nodes. Thus, you can access a queue between the two given nodes as follows: set link [$ns link $n0 $n1] set queue [$link queue] or set queue [[$ns link $n0 $n1] queue] Sincerely, Sayenko Alexander PhD student Telecommunication laboratory, MIT department University of Jyvaskyla, Finland > > HI ALL, > > I'M TRYING TO FIND OUT IF I CAN WORK WITH THE QUEUE IN A NODE. > I need to know the queue size or the number of packets drops but just the > node's queue. > > For example: > > n1------------------r1--------------------n2 > > how can I access to the queue in n2??? > > I need to change a protocol and do that in C/C++ not in the script. > I have used: > > set qmon [$ns monitor-queue $n1 $n2 0] > set fqsize [open "qsize.n1-n2.out" w] > set fqdrop [open "qdrop.n1-n2.out" w] > > $ns at 0 "record" > > proc record {} { > global ns qmon fqsize fqdrop > > set time [$ns now] > set qsize [$qmon set pkts_] > set qdrop [$qmon set pdrops_] > > puts $fqsize "$time $qsize" > puts $fqdrop "$time $qdrop" > $qmon reset > > $ns at [expr $time+1.0] "record" > } > > proc finish {} { > global fqsize fqdrop > ... > close $fqsize > close $fqdrop > ... > } > > ##### > > but this is in the Otcl script, not in the protocol. > > Do you understand me?? I'm sorry if I couldn't express myself. > > thanks in advance > > _________________________________________________________________ > Dale rienda suelta a tu tiempo libre. Encuentra mil ideas para exprimir tu > ocio con MSN Entretenimiento. http://entretenimiento.msn.es/ From dianamarg509 at hotmail.com Mon Aug 23 00:15:33 2004 From: dianamarg509 at hotmail.com (diana perilla) Date: Mon Aug 23 00:18:31 2004 Subject: [ns] Packet Drop in a queue Message-ID: Hi, I am working in a network model in wich I am interested in th number of packets drop between two nodes (2 and 3) when I vary the queue of the link, the queue between these two nodes has a flow monitoring agent and a monitor queue, the idea is to determine the size of the queue for no packet drop, but in both files I observe that when I vary the size of the queue, the number of packet drop remain the same, the code is: --------------------------------------------------------------------------------------------------------- set ns [new Simulator] set nf [open out.nam w] $ns namtrace-all $nf set qf [open q w] set kf [open k w] set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] $ns duplex-link $n0 $n2 300Mb 0ms DropTail $ns duplex-link-op $n0 $n2 orient right-down set bn_queue1 [[$ns link $n0 $n2] queue] $bn_queue1 set limit_ 100 $ns duplex-link $n1 $n2 100Mb 0ms DropTail $ns duplex-link-op $n1 $n2 orient right-up $ns duplex-link $n2 $n3 950Mb 0ms DropTail set bn_queue [[$ns link $n2 $n3] queue] $ns duplex-link-op $n2 $n3 orient right #This is the queue size of itnerest $bn_queue set limit_ 50 set flow_mon [$ns makeflowmon Fid] set fflow1 [open output_file.fmon w] set mylink [$ns link $n2 $n3] set myqueue [$mylink queue] $ns attach-fmon $mylink $flow_mon $flow_mon attach $fflow1 $ns at 2 "$flow_mon dump" set mymonitor [$ns monitor-queue $n2 $n3 $myqueue] $mymonitor set pdrops_ $ns duplex-link $n4 $n3 100Mb 0ms DropTail $ns duplex-link-op $n4 $n3 orient left-down $ns duplex-link $n5 $n3 100Mb 0ms DropTail $ns duplex-link-op $n5 $n3 orient left-up set exp0 [new Application/Traffic/Exponential] $exp0 set burst_time_ 100ms $exp0 set idle_time_ 100ms $exp0 set packet_size_ 100 $exp0 set rate_ 10M set udp0 [new Agent/UDP] $udp0 set class_ 0 $exp0 attach-agent $udp0 $udp0 set fid_ 0 $ns attach-agent $n0 $udp0 set rcvr0 [new Agent/Null] $ns attach-agent $n1 $rcvr0 $ns connect $udp0 $rcvr0 $ns at 0.2 "$exp0 start" set exp1 [new Application/Traffic/Exponential] $exp1 set burst_time_ 100ms $exp1 set idle_time_ 100ms $exp1 set packet_size_ 100 $exp1 set rate_ 10M set udp1 [new Agent/UDP] $udp1 set class_ 1 $exp1 attach-agent $udp1 $udp1 set fid_ 1 $ns attach-agent $n0 $udp1 set rcvr1 [new Agent/Null] $ns attach-agent $n4 $rcvr1 $ns connect $udp1 $rcvr1 $ns at 0.2 "$exp1 start" set exp2 [new Application/Traffic/Exponential] $exp2 set burst_time_ 100ms $exp2 set idle_time_ 100ms $exp2 set packet_size_ 100 $exp2 set rate_ 10M set udp2 [new Agent/UDP] $udp2 set class_ 2 $exp2 attach-agent $udp2 $udp2 set fid_ 2 $ns attach-agent $n0 $udp2 set rcvr2 [new Agent/Null] $ns attach-agent $n5 $rcvr2 $ns connect $udp2 $rcvr2 $ns at 0.2 "$exp2 start" $ns at 2 "$exp0 stop;$exp1 stop;$exp2 stop" #Define a 'finish' procedure proc finish {} { exec /home/ns-allinone-2.27/nam-1.10/nam out.nam & exit 0 } proc sampleq {} { global ns mymonitor qf set a [$mymonitor set pdrops_] set a2 [$mymonitor set pdepartures_] set a3 [$mymonitor set pkts_] puts $qf "[$ns now] $a" $ns at [expr [$ns now] + 0.001 ] "sampleq" } proc flowdump {interval} { global ns flow_mon fflow1 kf $flow_mon dump flush $fflow1 foreach f [$flow_mon flows] { set flow_arrs [$f set barrivals_] set flow_deps [$f set bdepartures_] set flow_drops [$f set bdrops_] $f reset puts $kf "[$ns now] $flow_drops" } $flow_mon reset $ns at [expr [$ns now] + $interval] "flowdump $interval" } $ns at 0.0 "flowdump 0.5" $ns at 0.0 "sampleq" $ns at 10 "finish" $ns run ----------------------------------------------------------------------------------------------------------- I check kf and qf and tha number of packet drops remains the same even if I change the size of the queue, is anything wrong? or could be used another procedure? Thanks Diana _________________________________________________________________ Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, YupiMSN Compras: http://latam.msn.com/compras/ From eddiejiang2000 at 21cn.com Mon Aug 23 02:44:43 2004 From: eddiejiang2000 at 21cn.com (Eddie) Date: Mon Aug 23 02:45:35 2004 Subject: [ns] help! about ad hoc routing protocol implementation Message-ID: Hi, dear friends in isi, It seems that this problem happened to lots of people, and I still cannot work it out. I am planning to implement a new ad hoc routing protocol in ns-2. I wrote .h and .cc files for my protocol, defined the packet header, modified common/packet.h and tcl/lib/ns-packet.tcl for my protocol, modified tcl/lib/ns-lib.tcl to register my routing agent, and wrote a tcl script for scenario simulation. There's no problem when I compile these files, however, when I simulate, a series of errors came, as follows: (_o17 cmd line 1) invoked from within "_o17 cmd port-dmux _o26" 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 "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent port-dmux $dmux_" (procedure "_o14" line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within "$self add-target-rtagent $agent $port" (procedure "_o14" line 22) (Node/MobileNode add-target line 22) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) &! amp;! nbsp; (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 81) (Simulator create-wireless-node line 81) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 &! nbsp;&! nbsp; ; ;# disable random motion }" (file "simple-wireless.tcl" line 95) I believe that these errors happen because my implementation of the new routing protocol does not follow the specification of ns. Unfortunately, I do not know what specifications should be followed. I cannot find a comprehensive solution by reading the manual or searching the archives of ns-user's mailing list. So, would you please tell me a completed way to implement an ad hoc routing protocol? Or, tell me where can I find the specification to implement such a protocol? Sorry for bothering but I really need your help. Thank you very much! Best regards, Eddie Jiang Shanghai Jiaotong Univ, China From eddiejiang2000 at 21cn.com Mon Aug 23 02:44:41 2004 From: eddiejiang2000 at 21cn.com (Eddie) Date: Mon Aug 23 02:45:46 2004 Subject: [ns] help! about ad hoc routing protocol implementation Message-ID: Hi, dear friends in isi, It seems that this problem happened to lots of people, and I still cannot work it out. I am planning to implement a new ad hoc routing protocol in ns-2. I wrote .h and .cc files for my protocol, defined the packet header, modified common/packet.h and tcl/lib/ns-packet.tcl for my protocol, modified tcl/lib/ns-lib.tcl to register my routing agent, and wrote a tcl script for scenario simulation. There's no problem when I compile these files, however, when I simulate, a series of errors came, as follows: (_o17 cmd line 1) invoked from within "_o17 cmd port-dmux _o26" 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 "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent port-dmux $dmux_" (procedure "_o14" line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within "$self add-target-rtagent $agent $port" (procedure "_o14" line 22) (Node/MobileNode add-target line 22) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) &! amp;! nbsp; (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 81) (Simulator create-wireless-node line 81) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 &! nbsp;&! nbsp; ; ;# disable random motion }" (file "simple-wireless.tcl" line 95) I believe that these errors happen because my implementation of the new routing protocol does not follow the specification of ns. Unfortunately, I do not know what specifications should be followed. I cannot find a comprehensive solution by reading the manual or searching the archives of ns-user's mailing list. So, would you please tell me a completed way to implement an ad hoc routing protocol? Or, tell me where can I find the specification to implement such a protocol? Sorry for bothering but I really need your help. Thank you very much! Best regards, Eddie Jiang Shanghai Jiaotong Univ, China From yann.fleutot at eads-telecom.com Mon Aug 23 02:43:46 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Mon Aug 23 02:47:28 2004 Subject: [ns] creating Nam file. Message-ID: <200408231156.NAA13469@trantor.eads-dsn.com> I think the trace file is created (see 'out.nam'). Is the nam binary in your PATH ? > -----Message d'origine----- > De : choh Andrew [mailto:csp007@hotmail.com] > Envoy? : samedi 21 ao?t 2004 04:54 > ? : ns-users@ISI.EDU > Objet : [ns] creating Nam file. > > > > > Can anyone tell me what is the problem given below and how to > create a nam > file? > > > > 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" > > _________________________________________________________________ > Fast. Clear. Easy. The new MSN Search. http://search.msn.com.sg/ > From yann.fleutot at eads-telecom.com Mon Aug 23 02:52:20 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Mon Aug 23 02:55:29 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared Message-ID: <200408231204.OAA15232@trantor.eads-dsn.com> Hello, What I've done is to have -DCPP_NAMESPACE=std in the files : . ns-2.27/Makefile.in (in DEFINE=) . ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile.in (in DEFINE=) . ns-2.27/indep-utils/webtrace-conv/dec/Makefile.in (in CFLAGS=) . ns-2.27/indep-utils/webtrace-conv/nlanr/Makefile.in (in CFLAGS=) Then, recompile with : ./configure make distclean ./configure make > -----Message d'origine----- > De : Gabriel Mar?al de Brito [mailto:gabmb@uol.com.br] > Envoy? : dimanche 22 ao?t 2004 18:37 > ? : ns-users@ISI.EDU > Objet : RE: [ns] make error: 'CPP_NAMESPACE' undeclared > > > > Hi guys! > I?ve tried everything to fix this make error but couldn't > make it work. > Neither the pacth and makefile editing worked. Anyone has any idea on > how to get through this issue? Or anyone can send me the fixed > makefiles? > Thanks, > Gabriel > > >On Wed, 18 Aug 2004 02:31:10 +0800, "Yang Shaojun(Peter Yang)" wrote: > > > >John Heidemann, > > > >files list that you need modify: > > ns-x.xx/indep-utils/webtrace-conv/nlanr/Makefile.in > > ns-x.xx/indep-utils/webtrace-conv/dec/Makefile.in > > ns-x.xx/indep-utils/cmu-scen-gen/setdest/Makefile.in > > > >you should add "-DCPP_NAMESPACE=@CPP_NAMESPACE@" at the end > of "DEFINE > >= -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@" > > > >Such as: > >-DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ > -DCPP_NAMESPACE=@CPP_NAMESPACE@ > > > I said: > >>(My take by grepping the current codebase is that > STL_NAMESPACE is now > > >>gone and the current CVS code should compile complete. We'd like to > ^^^^^^^^^^^^^^^^^^^^ > >>know if that's not the case.) > These changes have all been made there already. > (Btw, CPP_NAMESPACE should replace STL_NAMESPACE, not be added to it.) > Aaah, I see what the original poster's complain is: that the > other files > aren't listed on ns-problems. > -John Heidemann > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.731 / Virus Database: 485 - Release Date: 29/7/2004 > > From eddiejiang2000 at 21cn.com Mon Aug 23 03:00:12 2004 From: eddiejiang2000 at 21cn.com (Eddie) Date: Mon Aug 23 03:00:29 2004 Subject: [ns] help! about ad hoc routing protocol implementation Message-ID: Hi, dear friends in isi, It seems that this problem happened to lots of people, and I still cannot work it out. I am planning to implement a new ad hoc routing protocol in ns-2. I wrote .h and .cc files for my protocol, defined the packet header, modified common/packet.h and tcl/lib/ns-packet.tcl for my protocol, modified tcl/lib/ns-lib.tcl to register my routing agent, and wrote a tcl script for scenario simulation. There's no problem when I compile these files, however, when I simulate, a series of errors came, as follows: (_o17 cmd line 1) invoked from within "_o17 cmd port-dmux _o26" 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 "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent port-dmux $dmux_" (procedure "_o14" line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within "$self add-target-rtagent $agent $port" (procedure "_o14" line 22) (Node/MobileNode add-target line 22) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) &! amp;! nbsp; (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 81) (Simulator create-wireless-node line 81) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 &! nbsp;&! nbsp; ; ;# disable random motion }" (file "simple-wireless.tcl" line 95) I believe that these errors happen because my implementation of the new routing protocol does not follow the specification of ns. Unfortunately, I do not know what specifications should be followed. I cannot find a comprehensive solution by reading the manual or searching the archives of ns-user's mailing list. So, would you please tell me a completed way to implement an ad hoc routing protocol? Or, tell me where can I find the specification to implement such a protocol? Sorry for bothering but I really need your help. Thank you very much! Best regards, Eddie Jiang Shanghai Jiaotong Univ, China From een3s2k at leeds.ac.uk Mon Aug 23 07:40:23 2004 From: een3s2k at leeds.ac.uk (Sumit Krishna) Date: Mon Aug 23 07:42:37 2004 Subject: [ns] Urgent-802.11e EDCF Message-ID: <1093272023.3308a543e6706@webmail3.leeds.ac.uk> Hi, I am working on the IEEE 802.11e EDCF code from 'Atheros'. In this code there is a parameter called 'CWOffset'. I am not able to understand how this parameter works. I know it is a substitute for AIFS but how does one set it (in seconds or as a number)? WHat are the default values for this? Please help. This is extremly urgent. Thanks Sumit Krishna From Flavio.Desandre at TILAB.COM Mon Aug 23 08:03:30 2004 From: Flavio.Desandre at TILAB.COM (Desandre` Flavio) Date: Mon Aug 23 08:05:29 2004 Subject: [ns] help with RTS/CTS Message-ID: Hi all, we are running a simulation of an Ad-hoc network (802.11x) with routing protocol AODV. How can we set RTS/CTS inactive ? Thank you very much. Flavio Desandre' Andres Felipe Gil Leon Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A. ==================================================================== CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please send an e_mail to MailAdmin@tilab.com. Thank you ==================================================================== From tks435 at yahoo.de Mon Aug 23 08:08:52 2004 From: tks435 at yahoo.de (Thomas King) Date: Mon Aug 23 08:11:31 2004 Subject: [ns] [bug] cmu-trace::format_mac_common(...) with define LOG_POSITION Message-ID: <200408231508.i7NF8ql21896@www.isi.edu> [Bug Report] ----------------------------- Category: Other Package: ns 2.27 OS: Linux 2.6 Environment Variables: LD_LIBRARY_PATH="~/ns-2/ns-allinone-2.27/lib:~/ns-2/ns-allinone-2.27/otcl-1.8" TCL_LIBRARY="~/ns-2/ns-allinone-2.27/tcl8.4.5/library" TK_LIBRARY="~/ns-2/ns-allinone-2.27/tk8.4.5/library" ----------------------------- Description: Description of Problem: The format string for the trace file output contains conversion specifier, that are not used. In line 235 (of cmu-trace.cc, format_mac_common(...)) the string contains [%x %x %x %x] - this part is never used. Of course, LOG_POSITION is disabled by default. I assume that this part of the string is accidently not deleted while the format_mac(...), format_smac(...) functions were created. How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) Every time LOG_POSITION is defined. The trace file part corresponding to [%x %x %x %x] contains random values. Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. Define LOG_POSITION in cmu-trace.cc 2. Conduct a wireless mobility simulation. Actual Results: (describe what the application did after performing the above steps) Here is an example item (taken form a trace file: s 0.000101873 0 (415.30 415.30) RTR --- 0 ANA 10 [bfffd138 c7fd2a0 27f 8619f78] [0 0 0 0] ------- [0:255 -1:255 32 0]. The part [bfffd138 c7fd2a0 27f 8619f78] contains random values. From msmayyash at yahoo.com Mon Aug 23 08:26:48 2004 From: msmayyash at yahoo.com (Mousa Ayyash) Date: Mon Aug 23 08:28:33 2004 Subject: [ns] Wireless Ad-hoc links BW! Message-ID: <20040823152648.78791.qmail@web50805.mail.yahoo.com> Hi, How can we setup an ad-hoc network with different BW links in NS2? I need thi sinformation for implementing a new routing protocol for MANETs. Thanks ===== Moussa S. Ayyash __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From jeevanj at cs.tamu.edu Mon Aug 23 09:25:11 2004 From: jeevanj at cs.tamu.edu (Jeevan Joseph John) Date: Mon Aug 23 09:26:51 2004 Subject: [ns] difference between trace level and cause of failure Message-ID: <200408231625.i7NGP9wX007217@pine.cs.tamu.edu> Hi All, I am using DSDV protocol for MANET simulations. I had some question regarding the trace files. When a packet is dropped, the 21st field in the trace file after -Nw ( $21 in ur awk script) shows the reason for the drop. There are a bunch of reasons explained in ch 16 of the ns2 manual. Also the 19th field, after -NI ($19 in your awk script), shows the layer at which the drops occur. One of the values for $21 is IFQ - "no buffer space in IFQ." And one of the values for $19 is also IFQ Eg, -NI RTR means that the drop occurs in the MAC Retry layer. My question is what is the difference between -NI RTR -Nw IFQ and -NI IFQ -Nw --- Both seem to involve the interface queue, but one at the level of occurance and the other being the reason for the drop. Any input is appreciated. Thanks in advance for any help. Jeevan Joseph John, Dept. of Electrical Engineering, Texas A & M University, College Station, TX - 77840 R:979-268-5840 C:979-571-1347 From spiro at mail-ivs.cs.uni-magdeburg.de Mon Aug 23 08:59:46 2004 From: spiro at mail-ivs.cs.uni-magdeburg.de (Spiro Trikaliotis) Date: Mon Aug 23 09:39:14 2004 Subject: [ns] help with RTS/CTS In-Reply-To: References: Message-ID: <20040823155946.GG21563@mail> Hello, * On Mon, Aug 23, 2004 at 05:03:30PM +0200 Desandre` Flavio wrote: > we are running a simulation of an Ad-hoc network (802.11x) with > routing protocol AODV. How can we set RTS/CTS inactive ? Just set the RTS threshold to a value bigger than the biggest frame you're sending. On 2.27, either change the value of Mac/802_11 set RTSThreshold_ 0 in ns2/tcl/lib/ns-default.tcl to another value for global effect, or set it in your configuration script at the top of it. I gould suggest the latter (for lesser surprise). I'm not sure for older versions, but it should be similar. HTH, Spiro. -- Spiro R. Trikaliotis http://www.trikaliotis.net/ From xaviermm3 at telefonica.net Mon Aug 23 09:50:34 2004 From: xaviermm3 at telefonica.net (Xavier M.) Date: Mon Aug 23 09:51:34 2004 Subject: [ns] set PaketSize and 60 bytes Message-ID: <200408231850.34371.xaviermm3@telefonica.net> Hi all, I'm simulating with AODV and TCP packet size of 1000 bytes according to the "set packetSize 1000" instruction. I don't understand how can I get packets bigger than 1040 bytes (1000 + 20 TCP header + 20 IP header). What am I doing wrong? This is a piece of the tracefile (in old format): As you can see there are TCP packets of 1060 bytes and ACK's of 60 instead of the 40. Please, help me. I noticed it using the tracegraph program, which said that the Minimal Packet Size (TCP) is 60 and the Maximal 1060. What are those 20 extra bytes? And what do AGT and RTR mean? Thanks in advance Xavier M. s 10.000000000 _0_ AGT --- 0 tcp 40 [0 0 0 0] ------- [0:0 1:0 32 0] [0 0] 0 0 r 10.000000000 _0_ RTR --- 0 tcp 40 [0 0 0 0] ------- [0:0 1:0 32 0] [0 0] 0 0 s 10.000000000 _0_ RTR --- 0 AODV 48 [0 0 0 0] ------- [0:255 -1:255 30 0] [0x2 1 1 [1 0] [0 4]] (REQUEST) r 10.000940833 _1_ RTR --- 0 AODV 48 [0 ffffffff 0 800] ------- [0:255 -1:255 30 0] [0x2 1 1 [1 0] [0 4]] (REQUEST) s 10.000940833 _1_ RTR --- 0 AODV 44 [0 0 0 0] ------- [1:255 0:255 30 0] [0x4 1 [1 4] 10.000000] (REPLY) r 10.005460667 _0_ RTR --- 0 AODV 44 [13a 0 1 800] ------- [1:255 0:255 30 0] [0x4 1 [1 4] 10.000000] (REPLY) s 10.005460667 _0_ RTR --- 0 tcp 60 [0 0 0 0] ------- [0:0 1:0 30 1] [0 0] 0 0 r 10.007559167 _1_ AGT --- 0 tcp 60 [13a 1 0 800] ------- [0:0 1:0 30 1] [0 0] 1 0 s 10.007559167 _1_ AGT --- 1 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [0 0] 0 0 r 10.007559167 _1_ RTR --- 1 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [0 0] 0 0 s 10.007559167 _1_ RTR --- 1 ack 60 [0 0 0 0] ------- [1:0 0:0 30 0] [0 0] 0 0 r 10.009557667 _0_ AGT --- 1 ack 60 [13a 0 1 800] ------- [1:0 0:0 30 0] [0 0] 1 0 s 10.009557667 _0_ AGT --- 2 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [1 0] 0 0 r 10.009557667 _0_ RTR --- 2 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [1 0] 0 0 s 10.009557667 _0_ AGT --- 3 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [2 0] 0 0 r 10.009557667 _0_ RTR --- 3 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [2 0] 0 0 s 10.009557667 _0_ RTR --- 2 tcp 1060 [0 0 0 0] ------- [0:0 1:0 30 1] [1 0] 0 0 s 10.009557667 _0_ RTR --- 3 tcp 1060 [0 0 0 0] ------- [0:0 1:0 30 1] [2 0] 0 0 r 10.019696167 _1_ AGT --- 2 tcp 1060 [13a 1 0 800] ------- [0:0 1:0 30 1] [1 0] 1 0 From gwolosh at njit.edu Mon Aug 23 10:34:52 2004 From: gwolosh at njit.edu (Gedaliah Wolosh) Date: Mon Aug 23 10:37:58 2004 Subject: [ns] gt_itm build fails on solaris 9 Message-ID: If I use Makefile.GEN -- gcc -I../include -L../lib -DFBSD -c itm.c gcc -I../include -L../lib -DFBSD -c geog.c geog.c:40: warning: redefinition of `u_char' /afs/cad/solaris/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.9/3.3/include/sys/types.h:561: warning: `u_char' previously declared here geog.c:44: warning: redefinition of `u_long' /afs/cad/solaris/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.9/3.3/include/sys/types.h:564: warning: `u_long' previously declared here gcc -I../include -L../lib -DFBSD -c ts.c gcc -I../include -L../lib -DFBSD -c dfs.c dfs.c:21:1: warning: "NBBY" redefined In file included from /afs/cad/solaris/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.9/3.3/include/sys/types.h:573, from dfs.c:12: /usr/include/sys/select.h:59:1: warning: this is the location of the previous definition gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb ld: fatal: library -lgb: not found ld: fatal: File processing errors. No output written to ../bin/itm collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `itm' If I use Makefile.Sol [274]> make gcc -I../include -L../lib -DSYSV -c sgb2ns.c gcc -I../include -L../lib -DSYSV -o ../bin/sgb2ns sgb2ns.o -lm -lgb5 ld: fatal: library -lgb5: not found ld: fatal: File processing errors. No output written to ../bin/sgb2ns collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `sgb2ns' Any suggestions? _________________________________________________________________ Gedaliah Wolosh, Ph.D. Manager Computing Resources - CCS New Jersey Institute of Technology Office 973 596-5437 323 King Blvd GITC 2203 Fax 973 642-4761 Newark, NJ 07102 Email gwolosh@njit.edu From fxbaloch at wichita.edu Mon Aug 23 12:48:00 2004 From: fxbaloch at wichita.edu (fxbaloch) Date: Mon Aug 23 12:49:49 2004 Subject: [ns] Routing table info Message-ID: <41281737@webmail.wichita.edu> Hello Everyone, Does anyone here knows how to look at the routing table of a mobile node in ns2? I am trying to find average number of hops between any two nodes using AODV protocol and the only way i could think to solve this problem is by seeing the routing tables of the mobile nodes. If you know any other way to get average hop count from trace files please suggest that too. I have looked into the Archives but didnt find any suitable information. Please help me if you know how to do this. I will be very grateful to you. Thanks Fariha Baloch Fariha Baloch GRA Electrical and Computer Dept., Wichita State University. Fariha Baloch GRA Electrical and Computer Dept., Wichita State University. From mohitiit at rediffmail.com Mon Aug 23 13:59:54 2004 From: mohitiit at rediffmail.com (mohit ) Date: Mon Aug 23 14:01:50 2004 Subject: [ns] Tracing, Queue Monitoring and per flow monitoring Message-ID: <20040823205954.24581.qmail@webmail9.rediffmail.com> Hi all Can anybody send me some programmes where Queue Monitoring, Per flow monitoring or Tracing is used. I tried to find examples for 'Queue Monotoring' and 'Per flow monitoring' but could not find them. Thanks Sincerely Mohit SMILE....................... Be happy always. From ochipara at cse.wustl.edu Mon Aug 23 15:18:08 2004 From: ochipara at cse.wustl.edu (Octav Chipara) Date: Mon Aug 23 15:19:59 2004 Subject: [ns] WLAN power mangement parameters In-Reply-To: <412A69B4.9000906@cse.wustl.edu> References: <412A69B4.9000906@cse.wustl.edu> Message-ID: <412A6D20.9050202@cse.wustl.edu> Hi, > > I'm trying to find out what are the power conservation modes of a > typical WLAN card. I would like to know the power they consume in each > state and the time it takes to transition from one power conservation > mode to another. Could someone point me in the right direction? > > Any help is appreciated. > > Thanks, > > Octav > From fjrm4 at yahoo.es Mon Aug 23 15:18:59 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Mon Aug 23 15:20:33 2004 Subject: [ns] help! about ad hoc routing protocol implementation In-Reply-To: References: Message-ID: <200408240019.00842.fjrm4@yahoo.es> Hi Eddie! I suppose that you are using ns-2.27, aren't you? If this is your case, your command() function have to accept a port-demux for passing incoming packets up to upper layers. Try something like this: #include class MyRoutingAgent : public Agent { // ... PortClassifier* dmux_; // ... } int OLSR::command(int argc, const char*const* argv) { // ... if (argc == 3) { if (strcmp(argv[1], "port-dmux") == 0) { dmux_ = (PortClassifier*)TclObject::lookup(argv[2]); if (dmux_ == NULL) { fprintf(stderr, "%s: %s lookup of %s failed\n", __FILE__, argv[1], argv[2]); return TCL_ERROR; } return TCL_OK; } } // ... } If you have more doubts you can always look into other routing protocols implementations. Hope this helps. Regards, Francisco Ros El Lunes, 23 de Agosto de 2004 11:44, Eddie escribi?: > Hi, dear friends in isi, > > It seems that this problem happened to lots of people, and I still cannot > work it out. > > I am planning to implement a new ad hoc routing protocol in ns-2. I wrote > .h and .cc files for my protocol, defined the packet header, modified > common/packet.h and tcl/lib/ns-packet.tcl for my protocol, modified > tcl/lib/ns-lib.tcl to register my routing agent, and wrote a tcl script for > scenario simulation. There's no problem when I compile these files, > however, when I simulate, a series of errors came, as follows: > > (_o17 cmd line 1) > invoked from within > "_o17 cmd port-dmux _o26" > 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 "_o17" line 2) > (SplitObject unknown line 2) > invoked from within > "$agent port-dmux $dmux_" > (procedure "_o14" line 11) > (Node/MobileNode add-target-rtagent line 11) > invoked from within > "$self add-target-rtagent $agent $port" > (procedure "_o14" line 22) > (Node/MobileNode add-target line 22) > invoked from within > "$self add-target $agent $port" > (procedure "_o14" line 15) > &! amp;! nbsp; (Node attach line 15) > invoked from within > "$node attach $ragent [Node set rtagent_port_]" > (procedure "_o3" line 81) > (Simulator create-wireless-node line 81) > invoked from within > "_o3 create-wireless-node" > ("eval" body line 1) > invoked from within > "eval $self create-wireless-node $args" > (procedure "_o3" line 14) > (Simulator node line 14) > invoked from within > "$ns_ node" > ("for" body line 2) > invoked from within > "for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 &! nbsp;&! nbsp; ; ;# > disable random motion }" > (file "simple-wireless.tcl" line 95) > > I believe that these errors happen because my implementation of the new > routing protocol does not follow the specification of ns. Unfortunately, I > do not know what specifications should be followed. I cannot find a > comprehensive solution by reading the manual or searching the archives of > ns-user's mailing list. So, would you please tell me a completed way to > implement an ad hoc routing protocol? Or, tell me where can I find the > specification to implement such a protocol? > > Sorry for bothering but I really need your help. Thank you very much! > > Best regards, > > Eddie Jiang > Shanghai Jiaotong Univ, China From yhzhang at ece.uvic.ca Mon Aug 23 16:23:58 2004 From: yhzhang at ece.uvic.ca (Yihai Zhang) Date: Mon Aug 23 16:27:04 2004 Subject: [ns] SOS, undefined symbol reference error Message-ID: <412A7C8E.3020407@ece.uvic.ca> Hi, All: I have installed the ns2.26 all-in-one in Solaris 8, and now I am putting a new ad hoc routing protocol in it. When I do "make" after "make depend", NS always failed, I don't know what is the problem, could anybody help me about it? Thanks in advance. I changed packet.h, cmu-trace.cc/h, priqueue.cc, Makefile/.in and other files in ns/tcl too. Did I miss anything? I really need to solve this problem as soon as possible, any suggestion is appreciated. Best Regards Yihai _______________________________________________________ Undefined first referenced symbol in file cerr mpls/ldp.o cout asim/asim.o TcpAgent::rtt_timeout(void) tcp/tcp-rfc793edu.o NixNode::PopulateObjects() common/node.o TclObject::bind(char const *, TclObject **)routing/rtmodule.o PerfectMatch(vector > *, vector > *)diffusion3/diffusion/diffusion.o LinkHead::LinkHead(void) satellite/satlink.o TimerHandler::cancel(void) rap/rap.o TclClass::~TclClass(void) satellite/satgeometry.o TcpAgent::ecn(int) tcp/tcp-rfc793edu.o REDQueue::enque(Packet *) queue/red-pd.o Tcl::instance_ satellite/sathandoff.o REDQueue::command(int, char const *const *)queue/rio.o Classifier::find(Packet *) mpls/classifier-addr-mpls.o Application::send(int) rap/media-app.o MediaSegmentList::get_nextseg(MediaSegment const&) webcache/mcache.o TclClass::TclClass(char const *) satellite/satgeometry.o Agent_List::print(void) diffusion/diff_rate.o Node::exist_namchan(void) const mobile/energy-model.o LL::LL(void) satellite/satlink.o Node::namlog(char const *,...) satellite/satnode.o TcpAgent::trace_event(char *) tcp/tcp-rfc793edu.o AddrParamsClass::instance(void) routing/rtmodule.o LL::command(int, char const *const *)satellite/satlink.o Agent::send(int) satellite/satroute.o TcpAgent::windowd(void) tcp/tcp-rfc793edu.o Mac::txtime(int) satellite/satlink.o TcpAgent::numdupacks(double) tcp/tcp-rfc793edu.o God::IncrRecv(void) diffusion/diff_sink.o God::instance(void) diffusion/diffusion.o Connector::send(Packet *, Handler *)satellite/sattrace.o QueueMonitor::barrivals(void) const pushback/pushback-queue.o Application::resume(void) rap/media-app.o TclObject::delay_bind_bool(char const *, char const *, char const *, int *, TclObject *)tcp/tcp-rfc793edu.o Application::start(void) diffusion3/apps/sysfilters/gradient.o TrafficGenerator type_info function plm/cbr-traffic-PP.o Application::stop(void) diffusion3/apps/sysfilters/gradient.o ARPTable::arprequest(int, int, LL *)diffusion/diffusion.o Queue::limit(void) diffserv/dsred.o __start_cp_handler linkstate/rtProtoLS.o FSM::print_FSM(FSMState *) tcp/tcp-abs.o TracedInt::TracedInt(void) tcp/tfrc.o TracedInt::operator++(void) rap/rap.o RNG::uniform(double) rap/rap.o TclObject::init(int, char const *const *)satellite/satgeometry.o QueueMonitor::drop(Packet *) queue/red-pd.o MediaSegmentList::overlap_size(MediaSegment const&) constwebcache/mcache.o REDQueue::deque(void) queue/rio.o PacketHeaderClass::PacketHeaderClass(char const *, int)rap/rap.o Agent::listen(void) satellite/satroute.o Mac::~Mac(void) satellite/satlink.o Phy::~Phy(void) satellite/satlink.o RNG::~RNG(void) satellite/sathandoff.o TclObject::bind(char const *, unsigned int *)diffusion/diff_sink.o __check_eh_spec linkstate/rtProtoLS.o terminate(void) satellite/satgeometry.o vtable for DoubleList webcache/mcache.o Node::nodeid(void) satellite/satnode.o GetTime(timeval *) diffusion3/lib/dr.o NRSimpleAttribute::NRSimpleAttribute(int, int, int, char *, int)diffusion3/apps/sysfilters/tag.o NsObject::~NsObject(void) asim/asim.o REDQueue::modify_p(double, int, int, int, int, int, int)queue/rio.o TracedDouble::TracedDouble(double) rap/rap.o AddressClassifier::~AddressClassifier(void)mpls/classifier-addr-mpls.o BFS(vector > &, unsigned long, vector > &, vector > &)nix/nixnode.o NixVec::DBDump(void) nix/nixnode.o Agent::~Agent(void) satellite/satroute.o Mac::hdr_src(char *, int) satellite/satlink.o EnergyModel::start_powersaving() common/mobilenode.o TimerHandler::resched(double) satellite/sathandoff.o RNode::~RNode(void) nix/nixnode.o RNode::RNode(void) nix/nixnode.o Queue::Queue(void) diffserv/dsred.o Queue::~Queue(void) diffserv/dsred.o Trace::~Trace(void) satellite/sattrace.o LsRouting::_computeRoutes(void) linkstate/rtProtoLS.o NixVec::Extract(unsigned long, unsigned long *)nix/classifier-nix.o Tcl::evalf(char const *,...) satellite/sathandoff.o Node::set_table_size(int) satellite/satnode.o TcpAgent::recv_helper(Packet *) tcp/tcp-rfc793edu.o TcpAgent::command(int, char const *const *)tcp/tcp-rfc793edu.o Agent::delay_bind_init_all(void) satellite/satroute.o AddressClassifier virtual table mpls/classifier-addr-mpls.o Phy::insertnode(if_head *) satellite/satnode.o AddressClassifier type_info node mpls/classifier-addr-mpls.o AddressClassifier type_info functionmpls/classifier-addr-mpls.o Classifier::install(int, NsObject *)mpls/classifier-addr-mpls.o LsMessageCenter::msgctr_ linkstate/rtProtoLS.o RouteLogic::reset_all(void) satellite/satroute.o TahoeDelAckFSM::instance_ tcp/tcp-abs.o TcpAgent::rtt_backoff(void) tcp/tcp-sack-rh.o TimerHandler::status(void) rap/rap.o Connector::Connector(void) tcp/tcp-abs.o TclObject::~TclObject(void) satellite/satgeometry.o TracedDouble::operator-=(double) tcp/tcp-sack-rh.o Channel::command(int, char const *const *)satellite/satlink.o Address::print_portaddr(int) satellite/sattrace.o NsObject type_info function asim/asim.o NsObject type_info node asim/asim.o RcvBuffer::add_pkt(int, double) pgm/pgm-receiver.o Node::unreg_route_notify(RoutingModule *) mpls/mpls-module.o Scheduler::schedule(Handler *, Event *, double)satellite/satlink.o NixNode::GetNixVector(unsigned long)common/agent.o NRAttribute::getOp(void) diffusion3/lib/dr.o AddressClassifier::classify(Packet *) mpls/classifier-addr-mpls.o Phy::recv(Packet *, Handler *) satellite/satlink.o NsObject::debug(char const *,...) satellite/satlink.o TimerManager::addTimer(int, TimerCallback *)diffusion3/lib/dr.o TclObject::bind(char const *, TracedInt *)rap/rap.o TcpAgent::rtt_init(void) tcp/tcp-rfc793edu.o REDQueue::calculate_p(double, double, int, double, double, double, double, double)queue/rio.o TcpAgent::recv_newack_helper(Packet *)tcp/tcp-sack-rh.o Agent_List::Remove(Agent_List **, Agent_List *) diffusion/diff_rate.o REDQueue::pickPacketForECN(Packet *)queue/rio.o Mac::hdr_dst(char *, int) satellite/satlink.o TcpAgent::finish(void) tcp/tcp-rfc793edu.o MediaSegment::MediaSegment[in-charge](HttpMediaData const&)webcache/mcache.o QueueMonitor type_info function queue/red-pd.o QueueMonitor type_info node queue/red-pd.o TimevalCmp(timeval *, timeval *) diffusion3/lib/dr.o Process::send_data(int, AppData *) rap/media-app.o NixRoute(unsigned long, unsigned long, vector > &, vector > &, NixVec &)nix/nixnode.o MatchAttrs(vector > *, vector > *)diffusion3/lib/dr.o Address::str2addr(char const *) constcommon/parentnode.o Classifier type_info function pgm/classifier-pgm.o Connector type_info function tcp/tcp-abs.o RouteLogic type_info function satellite/satroute.o Connector type_info node tcp/tcp-abs.o TcpAgent::traceVar(TracedVar *) tcp/tcp-rfc793edu.o TimerHandler::handle(Event *) satellite/sathandoff.o TcpAgent::tcp_eln(Packet *) tcp/tcp-rfc793edu.o RoutingModule::unreg_route_notify(RoutingModule*)common/node.o NsObject::recvOnly(Packet *) satellite/satlink.o Classifier::command(int, char const *const *)mpls/classifier-addr-mpls.o DiffPrint(int, char const *,...) diffusion3/lib/dr.o Address::instance(void) satellite/satlink.o NRAttribute::NRAttribute(int, int, int, int, void *)diffusion3/lib/dr.o LinkDelay::bandwidth(void) const diffserv/dsred.o TclClass::method(int, char const *const *)satellite/satgeometry.o TclObject::bind(char const *, double *)satellite/sathandoff.o TclObject::bind(char const *, int *)satellite/sathandoff.o PacketHeaderClass::~PacketHeaderClass(void)rap/rap.o Node::~Node(void) satellite/satnode.o Tcl::evalc(char const *) satellite/satlink.o QueueMonitor::bdrops(void) const pushback/pushback-queue.o TcpAgent::output(int, int) tcp/tcp-sack-rh.o PacketHeaderClass type_info functionrap/rap.o PacketHeaderClass type_info node rap/rap.o Tcl::eval(char *) apps/ping.o TrafficGenerator type_info node plm/cbr-traffic-PP.o Out_List::NormalizeGradient(void) diffusion/diff_prob.o Trace::recvOnly(Packet *) satellite/sattrace.o Process::get_data(int &, AppData *) plm/cbr-traffic-PP.o DiffusionIO::checkInFDS(fd_set *) diffusion3/ns/diffagent.o NixNode::NixNode[in-charge]() common/node.o Agent::idle(void) satellite/satroute.o RouteLogic::lookup_flat(int, int) satellite/satroute.o TclClass::otcl_mappings(void) satellite/satgeometry.o LsRouting::init(LsNode *) linkstate/rtProtoLS.o Mac::installTap(Tap *) satellite/satlink.o BiConnector::downtarget(void) satellite/satlink.o Connector::drop(Packet *) satellite/satlink.o Agent::send(Packet *, Handler *) rap/rap.o RouteLogic::command(int, char const *const *)satellite/satroute.o LinkHead::command(int, char const *const *)satellite/satlink.o Address::get_nodeaddr(int) satellite/satroute.o Agent::addr(void) rap/rap.o TimerManager::TimerManager(void) diffusion3/lib/dr.o God::AddSource(int, int) diffusion/diff_rate.o endl(ostream &) asim/asim.o Agent::timeout(int) satellite/satroute.o Node::Node(void) satellite/satnode.o Agent::size(void) satellite/satroute.o REDQueue::reset(void) queue/rio.o TcpAgent::slowdown(int) tcp/tcp-sack-rh.o Phy::node(void) const satellite/satlink.o hdr_rap::offset_ trace/trace.o Node::delete_route(char *, NsObject *)satellite/satnode.o Phy::dump(void) const satellite/satlink.o God::ComputeRoute(void) mobile/energy-model.o operator new(unsigned int, void *) linkstate/rtProtoLS.o LL type_info function satellite/satlink.o LL type_info node satellite/satlink.o __throw satellite/satgeometry.o typeinfo for DoubleList webcache/mcache.o Address::print_nodeaddr(int) satellite/satlink.o RNode::GetNeighbor(unsigned long) nix/nixnode.o Mac::resume(Packet *) satellite/satlink.o Phy::bittime(void) const satellite/satlink.o RNG::defaultrng(void) satellite/satlink.o hdr_pgm::offset_ queue/errmodel.o vtable for DiffEventQueue diffusion3/lib/main/timers.o QueueMonitor::~QueueMonitor(void) queue/red-pd.o Agent::port(void) pgm/pgm-agent.o QueueMonitor::QueueMonitor(void) queue/red-pd.o ostream::operator<<(ostream &(*)(ostream &))asim/asim.o Classifier::do_install(char *, NsObject *)mpls/classifier-addr-mpls.o Mac::hdr_type(char *, unsigned short)satellite/satlink.o RouteLogic::lookup_hier(char *, char *, int &)common/simulator.o RouteLogic::lookup_flat(char *, char *, int &)satellite/satroute.o ARPTable::arplookup(int) diffusion/diffusion.o LL::~LL(void) satellite/satlink.o __uncatch_exception linkstate/rtProtoLS.o FSM::print_FSM_stats(FSMState *, int)tcp/tcp-abs.o OneWayMatch(vector > *, vector > *)diffusion3/lib/dr.o PacketHeaderClass::create(int, char const *const *)rap/rap.o PacketQueue::head(void) queue/vq.o RouteLogic::insert(int, int, double, void *)satellite/satroute.o Mac::Mac(void) satellite/satlink.o Phy::Phy(void) satellite/satlink.o Agent::sendmsg(int, AppData *, char const *)satellite/satroute.o Queue::utilization(void) queue/rio.o SemanticPacketQueue::pickPacketForECN(Packet *) queue/semantic-rio.o Agent::trace(TracedVar *) satellite/satroute.o TclObject::bind_time(char const *, double *)satellite/satlink.o Queue::updateStats(int) queue/rio.o Phy type_info function satellite/satlink.o Mac type_info function satellite/satlink.o Queue::recv(Packet *, Handler *) queue/rio.o Phy type_info node satellite/satlink.o Mac type_info node satellite/satlink.o RoutingModule::set_table_size(int, int)common/node.o NixNode::AddAdj(unsigned long) common/node.o TcpAgent::processQuickStart(Packet *)tcp/tcp-rfc793edu.o Tcl::add_errorf(char const *,...) mpls/mpls-module.o TracedDouble::operator*=(double) rap/rap.o NRAttribute::getKey(void) diffusion3/apps/gear/geo-routing.o Classifier type_info node pgm/classifier-pgm.o TrafficGenerator::resume(void) plm/cbr-traffic-PP.o RouteLogic type_info node satellite/satroute.o TcpAgent::reset(void) tcp/tcp-rfc793edu.o QueueMonitor::command(int, char const *const *)queue/red-pd.o Agent_List::FreeAll(Agent_List **) diffusion/diff_prob.o LinkHead::node(void) satellite/sathandoff.o Connector::~Connector(void) tcp/tcp-abs.o TclObject::TclObject(void) satellite/satgeometry.o TclObject::delay_bind_init_one(char const *)tcp/tcp-rfc793edu.o TcpAgent::newtimer(Packet *) tcp/tcp-rfc793edu.o Agent_List::InsertFront(Agent_List **, Agent_List *) diffusion/diff_rate.o TcpAgent::timeout(int) tcp/tcp-rfc793edu.o TimerHandler::sched(double) rap/media-app.o PacketHeaderClass::method(int, char const *const *)rap/rap.o TcpAgent::send_one(void) tcp/tcp-rfc793edu.o RouteLogic::insert(int, int, double)satellite/satroute.o Address::hier_addr(int, int) common/simulator.o Mac::initialized(void) satellite/satlink.o Agent::sendto(int, AppData *, char const *, int)satellite/satroute.o TclObject::delay_bind_dispatch(char const *, char const *, TclObject *)satellite/satgeometry.o NRSimpleAttribute::NRSimpleAttribute(int, int, int, void *, int)diffusion3/lib/dr.o hdr_lms::offset_ queue/errmodel.o TcpAgent::send_helper(int) tcp/tcp-rfc793edu.o FlowMon::find(Packet *) queue/red-pd.o Application::recv(int) rap/media-app.o TcpAgent::advanceby(int) tcp/tcp-rfc793edu.o TclObject::abort(char const *,...) satellite/sattrace.o TracedDouble::operator+=(double) rap/rap.o EventQueue::~EventQueue(void) diffusion3/ns/difftimer.o EventQueue::EventQueue(void) diffusion3/ns/difftimer.o CalculateSize(vector > *) diffusion3/lib/dr.o PacketHeaderClass::export_offsets(void)rap/rap.o Agent_List::Agent_List(void) diffusion/diff_rate.o NixVec::Reset(void) nix/nixnode.o PacketHeaderClass::bind_offset(int *)rap/rap.o hdr_tfrc::offset_ trace/trace.o TclObject type_info function satellite/satgeometry.o QueueMonitor::in(Packet *) queue/red-pd.o TclObject type_info node satellite/satgeometry.o Classifier::recv(Packet *, Handler *)mpls/classifier-addr-mpls.o GetRand(void) diffusion3/lib/dr.o RoutingModule::route_notify(RoutingModule*)common/node.o Agent::recvOnly(Packet *) satellite/satroute.o TimerManager::removeTimer(long) diffusion3/lib/dr.o Out_List::WhereToGo(void) diffusion/diff_prob.o Node::route_notify(RoutingModule *) mpls/mpls-module.o NsObject::delay_bind_init_all(void) satellite/satlink.o LossMonitor type_info function plm/loss-monitor-plm.o LossMonitor type_info node plm/loss-monitor-plm.o TimerManager::diffTimeout(DiffEvent *) diffusion3/ns/difftimer.o TclObject::lookup(char const *) satellite/sathandoff.o NsObject::NsObject(void) asim/asim.o LossMonitor::~LossMonitor(void) plm/loss-monitor-plm.o LossMonitor::LossMonitor(void) plm/loss-monitor-plm.o Mac::addr(void) satellite/satlink.o DoubleList::destroy() webcache/mcache.o hdr_nv::offset_ common/agent.o RNG::RNG(char const *) satellite/sathandoff.o TclObject::delay_bind_init_all(void)satellite/satgeometry.o Phy::setchnl(Channel *) satellite/sathandoff.o Node::command(int, char const *const *)satellite/satnode.o MobileNode::getLoc(double *, double *, double *)diffusion3/apps/gear/geo-routing.o Phy::removechnl(void) satellite/sathandoff.o Agent::close(void) satellite/satroute.o DiffusionIO type_info function diffusion3/ns/diffagent.o DiffusionIO type_info node diffusion3/ns/diffagent.o TahoeAckFSM::instance_ tcp/tcp-abs.o TcpAgent::timeout_nonrtx(int) tcp/tcp-rfc793edu.o Trace::recv(Packet *, Handler *) satellite/sattrace.o TracedInt::operator int(void) rap/rap.o NixNode::GetNodeObject(unsigned long)common/agent.o Out_List::CalRange(void) diffusion/diff_prob.o DiffusionIO::~DiffusionIO(void) diffusion3/ns/diffagent.o DiffusionIO::DiffusionIO(void) diffusion3/ns/diffagent.o Agent::allocpkt(int) const rap/rap.o Classifier::~Classifier(void) mpls/classifier-addr-mpls.o Classifier::Classifier(void) mpls/classifier-addr-mpls.o RouteLogic::~RouteLogic(void) satellite/satroute.o RouteLogic::RouteLogic(void) satellite/satroute.o Agent::daddr(void) mcast/lms-sender.o MediaSegmentList::evict_head(int) webcache/mcache.o __cp_pop_exception linkstate/rtProtoLS.o TcpAgent::reset_rtx_timer(int, int) tcp/tcp-sack-rh.o PacketQueue::PacketQueue(void) diffserv/dsredq.o __rtti_class satellite/satlink.o CopyMessage(Message *) diffusion3/lib/dr.o REDQueue::REDQueue(char const *) queue/rio.o Packet::hdrlen_ satellite/satlink.o ostream::operator<<(double) asim/asim.o ostream::operator<<(int) mpls/ldp.o REDQueue::pickPacketToDrop(void) queue/rio.o HashClassifier::set_default(int) routing/rtmodule.o TcpAgent::opencwnd(void) tcp/tcp-sack-rh.o Tcl::resultf(char const *,...) satellite/satlink.o Classifier::classify(Packet *) nix/classifier-nix.o RcvBuffer::exists_pkt(int) pgm/pgm-receiver.o TcpAgent::send_much(int, int, int) tcp/tcp-rfc793edu.o TracedDouble::operator++(void) tcp/tcp-rfc793edu.o TcpAgent::cancel_rtx_timer(void) tcp/tcp-rfc793edu.o TracedDouble::operator double(void) rap/rap.o Channel::~Channel(void) satellite/satlink.o Agent type_info function satellite/satroute.o Connector::command(int, char const *const *)tcp/tcp-abs.o Data_Hash_Table::GetHash(int*) mobile/god.o Classifier::set_table_size(int) routing/rtmodule.o RNode type_info function nix/nixnode.o Trace type_info function satellite/sattrace.o TracedDouble::operator=(TracedDouble const &)rap/rap.o Queue type_info function diffserv/dsred.o __builtin_delete satellite/satgeometry.o BiConnector::uptarget(void) satellite/satlink.o TcpAgent::dupack_action(void) tcp/tcp-rfc793edu.o __rtti_si satellite/satgeometry.o hdr_cdiff::offset_ trace/cmu-trace.o Node::linklisthead(void) const satellite/sathandoff.o TimerHandler::force_cancel(void) satellite/satlink.o EventQueue type_info node diffusion3/ns/difftimer.o Agent_List type_info node diffusion/diff_rate.o Channel::Channel(void) satellite/satlink.o RouteLogic::compute_routes(void) satellite/satroute.o TcpAgent::send_idle_helper(void) tcp/tcp-rfc793edu.o TcpAgent::rtt_update(double) tcp/tcp-sack-rh.o TimerHandler::TimerHandler(void) satellite/sathandoff.o Classifier::set_table_size(int, int)mpls/classifier-addr-mpls.o NRAttribute::find_key_from(int, vector > *, NRAttribute **, NRAttribute ***)diffusion3/lib/dr.o hdr_flags::offset_ satellite/sattrace.o Agent::trace_event(char *) satellite/satroute.o TcpAgent::TcpAgent(void) tcp/tcp-rfc793edu.o TcpAgent::delay_bind_init_all(void) tcp/tcp-rfc793edu.o TrafficGenerator::on(void) plm/cbr-traffic-PP.o TrafficGenerator::~TrafficGenerator(void)plm/cbr-traffic-PP.o TrafficGenerator::TrafficGenerator(void)plm/cbr-traffic-PP.o BiConnector::sendUp(Packet *, Handler *)satellite/satlink.o Phy::head(void) satellite/sathandoff.o DiffusionIO::addInFDS(fd_set *, int *)diffusion3/ns/diffagent.o Process::target(void) rap/media-app.o Queue::reset(void) diffserv/dsred.o SemanticPacketQueue::pickPacketToDrop(void)queue/semantic-rio.o LinkHead::~LinkHead(void) satellite/satlink.o LsRouting::linkStateChanged(void) linkstate/rtProtoLS.o TcpAgent::set_rtx_timer(void) tcp/tcp-rfc793edu.o TracedDouble::operator=(double) rap/rap.o Agent::send(int, AppData *) satellite/satroute.o Agent::Agent(packet_t) satellite/satroute.o TclClass::add_method(char const *) mpls/classifier-addr-mpls.o __rtti_user rap/media-app.o RouteLogic::elements_in_level(int *, int)common/simulator.o Node type_info function satellite/satnode.o Phy::setnode(Node *) satellite/satlink.o Trace::trace(TracedVar *) satellite/sattrace.o Trace::Trace(int) satellite/sattrace.o TracedInt::operator+=(int) tcp/tcp-rfc793edu.o TracedInt::operator<<=(int) tcp/tcp-rfc793edu.o Node type_info node satellite/satnode.o CopyAttrs(vector > *) diffusion3/lib/dr.o Process::process_data(int, AppData *)plm/cbr-traffic-PP.o TclObject::bind_bool(char const *, int *)satellite/sathandoff.o LinkHead::type(void) satellite/sathandoff.o Agent::set_pkttype(packet_t) plm/cbr-traffic-PP.o LinkHead type_info node satellite/satlink.o LinkHead type_info function satellite/satlink.o TracedDouble::operator/=(double) rap/rap.o MediaSegmentList::add(MediaSegment const&) webcache/mcache.o Mac::recv(Packet *, Handler *) satellite/satlink.o Agent::sendto(int, char const *, int)satellite/satroute.o TcpAgent::endQuickStart(void) tcp/tcp-rfc793edu.o REDQueue::print_edv(void) queue/rio.o Classifier::install_next(NsObject *) routing/rtmodule.o __pure_virtual satellite/satposition.o SetSeed(timeval *) diffusion3/lib/dr.o TcpAgent::output_helper(Packet *) tcp/tcp-rfc793edu.o Application type_info node rap/media-app.o Application type_info function rap/media-app.o HashClassifier::do_set_hash(int, int, int, int)routing/rtmodule.o Phy::channel(void) const satellite/satlink.o MediaSegmentList::evict_tail(int) webcache/mcache.o Classifier::getnxt(NsObject *) mpls/classifier-addr-mpls.o ClearAttrs(vector > *) diffusion3/lib/dr.o RNG::exponential(double) satellite/satlink.o TcpAgent::cancel_timers(void) tcp/tcp-rfc793edu.o Application::Application(void) rap/media-app.o Application::~Application(void) rap/media-app.o TcpAgent::delay_bind_dispatch(char const *, char const *, TclObject *)tcp/tcp-rfc793edu.o Phy::command(int, char const *const *)satellite/satlink.o LL::arp_table(void) diffusion/diffusion.o NsObject::handle(Event *) satellite/satlink.o God::AddSink(int, int) diffusion/diff_rate.o REDQueue::print_edp(void) queue/rio.o DiffusionIO::hasFD(int) diffusion3/ns/diffagent.o TimevalAddusecs(timeval *, int) diffusion3/ns/difftimer.o TclObject::name(void) satellite/satnode.o AddrParamsClass::node_shift(int) routing/rtmodule.o Data_Hash_Table::PutInHash(int*) mobile/god.o RNG::uniform_double(void) tcp/tfrc.o TcpAgent::partialnewack_helper(Packet *)tcp/tcp-rfc793edu.o Agent::command(int, char const *const *)satellite/satroute.o Connector::drop(Packet *, char const *)satellite/satlink.o TcpAgent::~TcpAgent(void) tcp/tcp-rfc793edu.o TclObject::delay_bind(char const *, char const *, char const *, int *, TclObject *)mpls/classifier-addr-mpls.o TcpAgent::window(void) tcp/tcp-rfc793edu.o Agent::allocpkt(void) const rap/rap.o Agent type_info node satellite/satroute.o TracedInt::TracedInt(int) rap/rap.o Node::nextnode(void) satellite/sathandoff.o Phy::nextchnl(void) const satellite/sathandoff.o RNode type_info node nix/nixnode.o Application::command(int, char const *const *)rap/media-app.o Trace type_info node satellite/sattrace.o Queue type_info node diffserv/dsred.o NsObject::delay_bind_dispatch(char const *, char const *, TclObject *)satellite/satlink.o RcvBuffer::RcvBuffer(void) pgm/pgm-receiver.o TclObject::trace(TracedVar *) satellite/satgeometry.o Agent::attachApp(Application *) satellite/satroute.o Agent::delay_bind_dispatch(char const *, char const *, TclObject *)satellite/satroute.o EventQueue type_info function diffusion3/ns/difftimer.o Agent_List type_info function diffusion/diff_rate.o __builtin_vec_new satellite/satlink.o REDQueue type_info function queue/rio.o REDQueue type_info node queue/rio.o TracedInt::operator=(int) rap/rap.o TracedInt::operator++(int) rap/rap.o God::NextOIFs(int, int, int, int *) diffusion/omni_mcast.o TclObject::delay_bind(char const *, char const *, char const *, double *, TclObject *)tcp/tcp-rfc793edu.o NsObject::reset(void) satellite/satlink.o REDQueue::reportDrop(Packet *) queue/rio.o LossMonitor::command(int, char const *const *)plm/loss-monitor-plm.o PacketHeaderClass::bind(void) rap/rap.o Scheduler::clock(void) const satellite/satgeometry.o PacketQueue::lookup(int) queue/pi.o p_info::name_ satellite/sattrace.o NRAttributeFactory::verify_unique(NRAttributeFactory *) diffusion3/apps/sysfilters/gradient.o REDQueue::trace(TracedVar *) queue/red-pd.o RNG::uniform(double, double) satellite/sathandoff.o TcpAgent::headersize(void) tcp/tcp-rfc793edu.o TclClass type_info function satellite/satgeometry.o TclClass type_info node satellite/satgeometry.o Node::set_table_size(int, int) satellite/satnode.o TclObject::bind(char const *, TracedDouble *)rap/rap.o RoutingModule::set_table_size(int) common/node.o Trace::command(int, char const *const *)satellite/sattrace.o AddressClassifier::Handler virtual tablempls/classifier-addr-mpls.o Channel::sendUp(Packet *, Phy *) satellite/satlink.o hdr_mac::offset_ satellite/satlink.o MediaSegmentList::check_holes(MediaSegment const&) webcache/mcache.o Agent::connect(int) satellite/satroute.o hdr_srm::offset_ satellite/sattrace.o hdr_tcp::offset_ satellite/sattrace.o hdr_rtp::offset_ satellite/sattrace.o TrafficGenerator::recv(void) plm/cbr-traffic-PP.o Mac::command(int, char const *const *)satellite/satlink.o LsRouting::sendLinkStates(bool) linkstate/rtProtoLS.o TclObject::bind_bw(char const *, double *)plm/cbr-traffic-PP.o TrafficGenerator::stop(void) plm/cbr-traffic-PP.o RenoAckFSM::instance_ tcp/tcp-abs.o hdr_cmn::offset_ satellite/satlink.o QueueMonitor::out(Packet *) queue/red-pd.o ostream::operator<<(char const *) mpls/ldp.o HttpMediaData::HttpMediaData[in-charge](char const*, char const*, int, int, int)webcache/mcache.o vtable for DiffEventHandler diffusion3/lib/main/timers.o __builtin_vec_delete satellite/satlink.o LsRouting::sendBufferedMessages(void)linkstate/rtProtoLS.o Phy::insertchnl(if_head *) satellite/sathandoff.o LL::handle(Event *) satellite/satlink.o Packet::free_ satellite/satlink.o EnergyModel::add_neighbor(unsigned) mac/mac-802_11.o Scheduler::instance(void) satellite/satgeometry.o hdr_ll::offset_ satellite/satlink.o hdr_ip::offset_ satellite/satlink.o In_List::FindMaxIn(void) diffusion/diff_prob.o Agent::recvBytes(int) satellite/satroute.o PrintAttrs(vector > *) diffusion3/apps/pingapp/ping_receiver.o NsObject::recv(Packet *, char const *)satellite/satlink.o BiConnector::drop(Packet *) satellite/satlink.o Tcl::lookup(char const *) diffusion/diffusion.o Connector::recv(Packet *, Handler *)satellite/satlink.o BiConnector::drop(Packet *, char const *)satellite/satlink.o TclClass::bind(void) satellite/satgeometry.o LinkDelay::reset(void) satellite/satlink.o TcpAgent::set_initial_window(void) tcp/tcp-rfc793edu.o TcpAgent::sendmsg(int, char const *)tcp/tcp-rfc793edu.o Agent::sendmsg(int, char const *) satellite/satroute.o Trace::write_nam_trace(char const *)satellite/sattrace.o BiConnector::sendDown(Packet *, Handler *)satellite/satlink.o Agent_List::Find(Agent_List **, ns_addr_t) diffusion/diffusion.o NixVec::GetBitl(unsigned long) nix/nixnode.o Classifier::clear(int) mpls/classifier-addr-mpls.o God::CountNewData(int *) diffusion/diff_sink.o LsRouting::receiveMessage(int, unsigned int)linkstate/rtProtoLS.o Node::nodehead_ satellite/sathandoff.o LinkHead::nextlinkhead(void) const satellite/sathandoff.o TcpAgent type_info node tcp/tcp-rfc793edu.o TcpAgent type_info function tcp/tcp-rfc793edu.o TcpAgent::trace(TracedVar *) tcp/tcp-rfc793edu.o TcpAgent::initial_window(void) tcp/tcp-rfc793edu.o Channel::recv(Packet *, Handler *) satellite/satlink.o BaseTrace::BaseTrace[in-charge]() trace/trace.o Node::add_route(char *, NsObject *) satellite/satnode.o TclObject::command(int, char const *const *)satellite/satgeometry.o MediaSegmentList::dump2buf() webcache/mcache.o Node::address(void) satellite/satnode.o RNode::AddAdj(unsigned long, int) nix/nixnode.o TimerHandler type_info node satellite/sathandoff.o TimerHandler type_info function satellite/sathandoff.o RenoDelAckFSM::instance_ tcp/tcp-abs.o Node::energy_model(void) diffusion/diff_prob.o REDQueue::estimator(int, int, double, double)queue/rio.o Channel type_info node satellite/satlink.o Channel type_info function satellite/satlink.o __builtin_new satellite/satgeometry.o REDQueue::~REDQueue(void) queue/rio.o TimerHandler virtual table pgm/pgm-agent.o NRAttribute type_info function diffusion3/lib/dr.o NRAttribute type_info node diffusion3/lib/dr.o FlowMon::mon_edrop(Packet *) queue/red-pd.o QueueMonitor::bdepartures(void) constpushback/pushback-queue.o NRSimpleAttribute::setVal(char *)diffusion3/apps/sysfilters/tag.o AddAttrs(vector > *, vector > *)diffusion3/lib/dr.o NRAttribute::~NRAttribute(void) diffusion3/lib/dr.o ld: fatal: Symbol referencing errors. No output written to ns collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `ns' From hatta at telecom.ee.itb.ac.id Mon Aug 23 17:46:04 2004 From: hatta at telecom.ee.itb.ac.id (M. Hatta) Date: Mon Aug 23 17:48:46 2004 Subject: [ns] after mobiwan installed Message-ID: i have just installed mobiwan, i want t know what i do to check mobile-ipv6 is correct.i have done ns-mipv6 with binary ns mobiwan, but that is segmentation fault. can you share with your experience with mobiwan ? thank you From j10singh at cs.latrobe.edu.au Mon Aug 23 18:10:33 2004 From: j10singh at cs.latrobe.edu.au (Jaipal Singh) Date: Mon Aug 23 18:12:32 2004 Subject: [ns] multicast with mobile hosts In-Reply-To: <200408231900.i7NJ0Yi00980@gamma.isi.edu> Message-ID: <000501c48977$27b3b9e0$d865ac83@JAIPAL2K> Hi Ping, I've been having the same problem with NS-2. NS-2 multicast has a problem working with hierarchical addressing which is required for mobile IP. The base-station node is a mobile IP node so you will either have to make your own base-station node or modify the multicast code to accept hierarchical addressing. I have installed Mobiwan but I have no idea how to make multicast work with it. I have also tried tinkering with the ns code but no luck yet. I wonder if anyone else has any ideas. Do let me know if you have any solutions regarding this problem of multicast with wired-cum-wireless scenario. Best regards, Jaipal Singh ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Dept of Computer Science and Computer Engineering La Trobe University Bundoora, Victoria 3086, Australia. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Message: 1 > Date: Sun, 22 Aug 2004 13:08:43 -0700 (PDT) > From: Ping Ding > Subject: [ns] multicast with mobile hosts > To: ns-users@ISI.EDU > Message-ID: <20040822200843.1123.qmail@web50710.mail.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > Hi, all, > > How can I realize multicast with mobile hosts? For example, I > have wired-cum-wireless topology. How can I send multicast > from one node to some nodes in the topology? I appreciate > your help! Thank a lot! > > Ping From vpetroff at nm.ru Tue Aug 24 03:13:02 2004 From: vpetroff at nm.ru (Petroff Vitaly) Date: Tue Aug 24 03:26:53 2004 Subject: [ns] Policing with Token Bucket Message-ID: <20040824101302.32026.qmail@flock1.newmail.ru> Hi all, I try to model the simple policing algorithm with help token bucket The topology: n1------n2------n3 n1 generates exponential UDP-traffic n2 must police the traffic (qlen=0) n3 sink node I set the rate of generate tokens < rate of generate the traffic and wish to see something like (by plot the graph of file out1.tr ) http://www.cisco.com/warp/public/105/policevsshape.html (on the picture "policing") I experimented with script below, but such result is not achieved. Besides, I found in mailing list archive this note: http://mailman.isi.edu/pipermail/ns-users/1999-November/006183.html It seems as answer on my question, but... how to implement "inserting the TBF into the node object (instead of merely inserting the TBF between an agent and its attached node)"? Can somebody give me advice for this problem? Who fased with this? Is there some working code, may be? Thanks, Petroff Vitaly vpetroff@nm.ru P.S. My script: set ns [new Simulator] #Create 4 nodes set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Open the Nam trace file set nf [open out.nam w] $ns namtrace-all $nf #Open the Trace file set tf [open out.tr w] $ns trace-all $tf #OPEN OUTPUT FILES set f1 [open out1.tr w] #Create links $ns duplex-link $n1 $n2 0.2Mbps 100ms DropTail $ns duplex-link $n2 $n3 0.2Mbps 100ms DropTail #Set the orientations of links $ns duplex-link-op $n1 $n2 orient right $ns duplex-link-op $n2 $n3 orient right $ns duplex-link-op $n2 $n3 queuePos 0.5 #Create a UDP agent set udp1 [new Agent/UDP] $udp1 set fid_ 1 $ns attach-agent $n1 $udp1 #Create exponential on/off api and and attach it to udp1 set exp1 [new Application/Traffic/Exponential] $exp1 set packetSize_ 128 $exp1 set burst_time_ 100ms $exp1 set idle_time_ 100ms $exp1 set rate_ 0.1Mbps $exp1 attach-agent $udp1 #Create a UDP agent set udp2 [new Agent/UDP] $udp2 set fid_ 2 #Create a TBF-filter and attach it to node 2 set tbf [new TBF] $tbf set bucket_ 3000 $tbf set rate_ 0.07Mbps $tbf set qlen_ 0 $ns attach-tbf-agent $n2 $udp2 $tbf #CREATE SINK-AGENTS (LOSSMONITOR) set sink1 [new Agent/LossMonitor] $ns attach-agent $n3 $sink1 $ns connect $udp1 $sink1 #PROCEDURE FOR WRITING OUTPUT FILES proc record {} { global sink1 f1 #Get an instance of the simulator set ns [Simulator instance] #Set the time after wich the procedure should be called again set time 0.5 #How many bytes have been received by the traffic sinks? set bw1 [$sink1 set bytes_] #Get the current time set now [$ns now] #Calculate the rate (in MBit/s) and write it to the files puts $f1 "$now [expr $bw1/$time*8/1000000]" #Reset the bytes_ values on the traffic sinks $sink1 set bytes_ 0 #Re-shedule the procedure $ns at [expr $now+$time] "record" } #SET THE COLOR OF FLOWS $ns color 1 blue $ns color 2 red proc finish {} { global ns nf tf f0 f1 $ns flush-trace close $nf close $tf close $f1 exec nam out.nam & exit 0 } $ns at 0.0 "record" $ns at 0.0 "$exp1 start" $ns at 100.0 "$exp1 stop" $ns at 100.0 "finish" $ns run __________ www.newmail.ru -- ???? ????????? ????????????. From sayenko at cc.jyu.fi Tue Aug 24 04:22:27 2004 From: sayenko at cc.jyu.fi (Alexander Sayenko) Date: Tue Aug 24 04:24:34 2004 Subject: [ns] Policing with Token Bucket References: <20040824101302.32026.qmail@flock1.newmail.ru> Message-ID: <003301c489cc$a37ba6a0$44a9ea82@it.jyu.fi> Hi You can use the Token Bucket policer (along with other implemented policers) from the DiffServ framework, where you can have nodes that generate traffic and nodes that police it. However, current DiffServ implementation only POLICES traffic, and performs no SHAPING by delaying packets in a queue. But you can implement shaping by dropping packets if it suits you. Sincerely, Sayenko Alexander PhD student Telecommunication laboratory, MIT department University of Jyvaskyla, Finland > > Hi all, > > I try to model the simple policing algorithm with help token bucket > The topology: > > n1------n2------n3 > > n1 generates exponential UDP-traffic > n2 must police the traffic (qlen=0) > n3 sink node > > I set the rate of generate tokens < rate of generate the traffic and > > wish to see something like (by plot the graph of file out1.tr ) > http://www.cisco.com/warp/public/105/policevsshape.html > (on the picture "policing") > > I experimented with script below, but such result is not achieved. > > Besides, I found in mailing list archive this note: > http://mailman.isi.edu/pipermail/ns-users/1999-November/006183.html > > It seems as answer on my question, but... how to implement "inserting > > the TBF into the node object (instead of merely inserting the TBF > > between an agent and its attached node)"? > > Can somebody give me advice for this problem? Who fased with this? > Is there some working code, may be? > > Thanks, > Petroff Vitaly > vpetroff@nm.ru > > P.S. > My script: > > set ns [new Simulator] > > > #Create 4 nodes > set n1 [$ns node] > set n2 [$ns node] > set n3 [$ns node] > > > #Open the Nam trace file > set nf [open out.nam w] > $ns namtrace-all $nf > > > #Open the Trace file > set tf [open out.tr w] > $ns trace-all $tf > > > #OPEN OUTPUT FILES > set f1 [open out1.tr w] > > > #Create links > $ns duplex-link $n1 $n2 0.2Mbps 100ms DropTail > $ns duplex-link $n2 $n3 0.2Mbps 100ms DropTail > > > #Set the orientations of links > $ns duplex-link-op $n1 $n2 orient right > $ns duplex-link-op $n2 $n3 orient right > $ns duplex-link-op $n2 $n3 queuePos 0.5 > > > #Create a UDP agent > set udp1 [new Agent/UDP] > $udp1 set fid_ 1 > $ns attach-agent $n1 $udp1 > > > #Create exponential on/off api and and attach it to udp1 > set exp1 [new Application/Traffic/Exponential] > $exp1 set packetSize_ 128 > $exp1 set burst_time_ 100ms > $exp1 set idle_time_ 100ms > $exp1 set rate_ 0.1Mbps > $exp1 attach-agent $udp1 > > > #Create a UDP agent > set udp2 [new Agent/UDP] > $udp2 set fid_ 2 > > > #Create a TBF-filter and attach it to node 2 > set tbf [new TBF] > $tbf set bucket_ 3000 > $tbf set rate_ 0.07Mbps > $tbf set qlen_ 0 > $ns attach-tbf-agent $n2 $udp2 $tbf > > > #CREATE SINK-AGENTS (LOSSMONITOR) > set sink1 [new Agent/LossMonitor] > $ns attach-agent $n3 $sink1 > $ns connect $udp1 $sink1 > > #PROCEDURE FOR WRITING OUTPUT FILES > proc record {} { > global sink1 f1 > #Get an instance of the simulator > set ns [Simulator instance] > #Set the time after wich the procedure should be called again > set time 0.5 > #How many bytes have been received by the traffic sinks? > set bw1 [$sink1 set bytes_] > #Get the current time > set now [$ns now] > #Calculate the rate (in MBit/s) and write it to the files > puts $f1 "$now [expr $bw1/$time*8/1000000]" > #Reset the bytes_ values on the traffic sinks > $sink1 set bytes_ 0 > #Re-shedule the procedure > $ns at [expr $now+$time] "record" > } > > > #SET THE COLOR OF FLOWS > $ns color 1 blue > $ns color 2 red > > > proc finish {} { > global ns nf tf f0 f1 > $ns flush-trace > close $nf > close $tf > close $f1 > exec nam out.nam & > exit 0 > } > > > $ns at 0.0 "record" > $ns at 0.0 "$exp1 start" > $ns at 100.0 "$exp1 stop" > > > $ns at 100.0 "finish" > > > $ns run > > > __________ > www.newmail.ru -- ???? ????????? ????????????. From hz83997 at yahoo.com.cn Tue Aug 24 07:21:47 2004 From: hz83997 at yahoo.com.cn (=?gb2312?q?=FFffffd5=FFfffff7=20=FFffffba=FFffffe9?=) Date: Tue Aug 24 07:23:54 2004 Subject: [ns] what is wrong with MFlood protocol Message-ID: <20040824142147.48111.qmail@web15603.mail.cnb.yahoo.com> I wonder if some Chinese NS2 users have read the book <> by XU Leiming, Pangbo and Zhaoyao. I want to try the protocol in the book, MFlood. But It turns out to have some problems in its source code. When I try the tcl file, I only got: ************************** "$agent port-dmux $dmux_" (procedure "_o14" line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within "$self add-target-rtagent $agent $port" (procedure "_o14" line 22) (Node/MobileNode add-target line 22) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 71) (Simulator create-wireless-node line 71) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0; }" (file "mflood-scene.tcl" line 69) CAN anybody help me? Thanks a lot! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From hz83997 at yahoo.com.cn Tue Aug 24 07:25:36 2004 From: hz83997 at yahoo.com.cn (=?gb2312?q?=FFffffd5=FFfffff7=20=FFffffba=FFffffe9?=) Date: Tue Aug 24 07:27:34 2004 Subject: [ns] adding a new protocol in ns2 Message-ID: <20040824142536.82735.qmail@web15608.mail.cnb.yahoo.com> In Greis' famous NS2 tutorial, he mentioned the method of "adding a new protocol in ns2". His example is a PingAgent. But after tring it carefully, I found that the protocol has some problems. I use it in a tcl file, but it does not work. I think there is something wrong in the header file or the C++ code, because when I change original ping protocol in ns2 as a Pong protocol, it works. And the necessary changes you mentioned are needed to ensure the new protocols to work smoothly. Can you tell the problem in your source codes? Because I am very inexperienced in ns2 code writing, I can not point out the problems. Thanks a lot! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From jpneo2004 at yahoo.com Tue Aug 24 10:33:03 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Tue Aug 24 10:36:28 2004 Subject: [ns] adding a new protocol in ns2 In-Reply-To: <20040824142536.82735.qmail@web15608.mail.cnb.yahoo.com> Message-ID: <20040824173303.74591.qmail@web21522.mail.yahoo.com> Hi, I had the same problem than you. The Greisexample has two problems. First it uses a method to acess the header of the protocol now absolete. Second, this example is already in ns in the latest versions, inside the apps directory. If you try to compile the example in the ns, it will give you several errors because the code is already compiled. Thats why when you chance the name of the agent, you dont have problems. Good luck, J.P. In Greis' famous NS2 tutorial, he mentioned the method of "adding a new protocol in ns2". His example is a PingAgent. But after tring it carefully, I found that the protocol has some problems. I use it in a tcl file, but it does not work. I think there is something wrong in the header file or the C++ code, because when I change original ping protocol in ns2 as a Pong protocol, it works. And the necessary changes you mentioned are needed to ensure the new protocols to work smoothly. Can you tell the problem in your source codes? Because I am very inexperienced in ns2 code writing, I can not point out the problems. Thanks a lot! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否 --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. From bigvahid at spymac.com Tue Aug 24 10:42:16 2004 From: bigvahid at spymac.com (Vahid) Date: Tue Aug 24 10:46:26 2004 Subject: [ns] Problem installing Tk [from ns-allinone2.27] Message-ID: <1093369336.18796.20.camel@localhost.localdomain> Hi all, I am trying to install the ns-allinone 2.27 package on a Red Hat Linux 9.0 system. (Intel) The installation goes well until reaching to the installation of Tk, which fails every time. I even tried to install packages piece by piece, but still as soon as I get to the installation of Tk (which is after installing Tcl successfuly), I get the same error. The ./configure stage goes well, but the make stage always fails. I have tried both Tk 8.4.5 and 8.4.7. The attached text file is what I get after I run the make command. It seems that everything is an error or warning from the beginning of the make process! I would be really thankful if someone there can help me on this. Please tell me if you need any further info to be able to guide me. -------------- next part -------------- [root@localhost unix]# make gcc -pipe -c -O2 -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/home/vahid/Desktop/Temp/tk8.4.7/unix -I/home/vahid/Desktop/Temp/tk8.4.7/unix/../generic -I/home/vahid/Desktop/Temp/tk8.4.7/unix/../bitmaps -I/home/vahid/Desktop/Temp/tcl8.4.7/generic -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /home/vahid/Desktop/Temp/tk8.4.7/unix/../generic/tk3d.c In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:21, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:96:29: X11/Xlib.h: No such file or directory In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:21, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:573: parse error before "Window" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:573: `Window' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:573: warning: parameter names (without types) in function declaration /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:576: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:584: parse error before "Tk_ClassCreateProc" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:584: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:592: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:592: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:678: parse error before "Bool" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:678: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:679: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:683: parse error before "time" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:683: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:688: parse error before "same_screen" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:688: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:689: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:694: parse error before "Bool" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:694: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:695: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:697: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:697: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:698: parse error before "XActivateEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:698: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:699: parse error before "XDeactivateEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:699: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:771: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:771: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:774: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:774: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:785: parse error before "changes" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:785: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:787: parse error before "atts" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:787: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:811: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:811: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:923: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1023: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1026: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1121: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1121: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1151: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1151: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1185: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1185: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1197: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1197: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1198: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1198: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1199: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1199: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1200: parse error before "stipple" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1200: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1201: parse error before "activeStipple" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1201: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1202: parse error before "disabledStipple" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1202: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1203: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1228: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1230: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1436: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1552: parse error before "XErrorEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1554: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1556: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1558: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1563: parse error before "XEvent" In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1576, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:21, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:37: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:37: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:39: parse error before "Tk_3DBorderGC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:40: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:45: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:50: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:59: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:73: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:74: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:78: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:81: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:91: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:96: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:116: parse error before "XSetWindowAttributes" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:123: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:127: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:149: parse error before "XWindowChanges" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:170: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:190: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:233: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:245: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:250: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:255: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:258: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:263: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:268: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:273: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:278: parse error before "Tk_FontId" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:278: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:283: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:285: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:288: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:291: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:295: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:301: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:304: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:309: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:311: parse error before "Tk_GCForColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:312: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:312: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:328: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:334: parse error before "Tk_GetBitmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:335: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:337: parse error before "Tk_GetBitmapFromData" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:339: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:344: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:345: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:347: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:348: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:348: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:350: parse error before "Tk_GetColormap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:351: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:371: parse error before "Tk_GetGC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:373: parse error before "XGCValues" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:373: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:401: parse error before "Tk_GetPixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:402: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:402: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:420: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:424: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:426: parse error before "Colormap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:426: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:435: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:438: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:446: parse error before "Tk_InternAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:447: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:485: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:489: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:492: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:511: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:550: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:553: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:558: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:592: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:601: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:604: parse error before "Colormap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:608: parse error before "Visual" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:612: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:630: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:635: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:649: parse error before "Tk_AllocBitmapFromObj" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:651: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:657: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:659: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:702: parse error before "Tk_GetBitmapFromObj" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:703: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:705: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:706: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:770: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:773: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:777: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:780: parse error before "Tk_Outline" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:783: parse error before "Tk_Outline" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:786: parse error before "Tk_Outline" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:789: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:796: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:804: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:807: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:823: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:845: parse error before "Tk_ClassProcs" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:867: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:918: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:932: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:932: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:933: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:933: `GC' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:933: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:934: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:935: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:937: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:941: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:941: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:942: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:943: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:946: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:948: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:953: parse error before "XSetWindowAttributes" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:955: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:956: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:961: parse error before "XWindowChanges" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:966: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:972: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:984: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:988: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:989: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:990: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:991: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:992: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:993: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:994: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:996: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:996: `Font' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:996: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:998: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:999: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1000: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1001: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1003: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1005: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1006: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1008: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1009: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1009: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1009: `GC' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1009: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1014: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1016: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1016: `Pixmap' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1016: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1017: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1017: `Pixmap' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1017: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1019: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1019: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1020: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1020: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1020: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1021: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1021: `Colormap' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1021: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1027: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1027: parse error before "XGCValues" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1027: `GC' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1027: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1036: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1036: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1036: `Pixmap' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1036: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1041: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1043: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1043: parse error before "Colormap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1043: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1046: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1047: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1050: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1050: `Atom' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1050: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1063: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1065: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1066: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1073: parse error before "Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1084: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1085: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1086: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1097: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1100: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1101: parse error before "Colormap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1102: parse error before "Visual" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1103: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1109: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1110: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1116: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1116: `Pixmap' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1116: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1118: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1118: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1132: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1132: `Pixmap' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1132: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1133: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1133: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1152: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1153: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1154: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1155: parse error before "Tk_Outline" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1156: parse error before "Tk_Outline" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1157: parse error before "Tk_Outline" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1158: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1160: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1162: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1163: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1167: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1173: parse error before "Tk_ClassProcs" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1179: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1195: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1196: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1201: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:1201: warning: data definition has no type or storage class In file included from /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:64, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkPort.h:34, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:27, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /usr/include/time.h:184: `time' redeclared as different kind of symbol /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:683: previous declaration of `time' In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkPort.h:34, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:27, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:77:22: X11/Xlib.h: No such file or directory /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:78:28: X11/cursorfont.h: No such file or directory /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:79:24: X11/keysym.h: No such file or directory /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:80:23: X11/Xatom.h: No such file or directory /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:81:24: X11/Xproto.h: No such file or directory /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:82:27: X11/Xresource.h: No such file or directory /home/vahid/Desktop/Temp/tk8.4.7/unix/tkUnixPort.h:83:23: X11/Xutil.h: No such file or directory In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:47: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:58: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:58: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:82: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:82: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:117: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:117: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:118: conflicting types for `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:78: previous declaration of `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:119: conflicting types for `name' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:687: previous declaration of `name' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:121: parse error before "lastEventTime" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:121: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:161: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:161: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:220: parse error before "cursorFont" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:220: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:387: parse error before "multipleAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:387: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:389: parse error before "incrAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:389: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:390: parse error before "targetsAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:390: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:391: parse error before "timestampAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:391: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:392: parse error before "textAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:392: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:393: parse error before "compoundTextAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:393: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:394: parse error before "applicationAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:394: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:395: parse error before "windowAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:395: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:396: parse error before "clipboardAtom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:396: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:397: parse error before "utf8Atom" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:397: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:421: parse error before "commProperty" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:421: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:422: parse error before "registryProperty" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:422: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:424: parse error before "appNameProperty" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:424: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:435: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:435: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:435: `XID' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:435: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:509: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:509: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:538: parse error before "TkDisplay" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:538: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:560: conflicting types for `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:118: previous declaration of `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:564: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:564: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:671: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:671: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:672: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:676: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:676: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:689: conflicting types for `parentPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:779: previous declaration of `parentPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:694: conflicting types for `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:560: previous declaration of `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:729: parse error before "changes" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:729: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:733: parse error before "atts" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:733: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:813: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:813: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:833: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:833: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:854: parse error before "Pixmap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:854: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:854: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:856: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:856: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:857: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:857: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:866: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:866: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:924: parse error before '*' token In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:931, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:38: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:39: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:39: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:46: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:48: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:51: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:58: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:61: parse error before "TkDisplay" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:79: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:82: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:82: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:91: parse error before "TkCurrentTime" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:91: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:91: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:95: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:99: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:101: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:106: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:116: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:119: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:121: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:122: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:122: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:128: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:130: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:141: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:142: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:147: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:147: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:147: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:153: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:153: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:153: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:168: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:170: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:178: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:182: parse error before "keysym" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:193: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:199: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:201: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:210: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:212: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:215: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:223: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:223: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:223: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:225: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:225: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:225: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:239: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:239: `TkpMakeWindow' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:244: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:245: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:248: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:257: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:260: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:269: parse error before "TkDisplay" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:272: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:279: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:283: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:285: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:288: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:292: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:299: parse error before "TkStringToKeysym" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:299: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:306: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:308: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:310: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:310: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:310: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:312: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:314: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:317: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:320: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:323: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:325: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:327: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:353: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:353: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:362: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:516: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:519: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:522: parse error before "KeySym" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:524: parse error before "TkpGetKeySym" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:525: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:525: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:527: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:532: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:533: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:533: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:537: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:539: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:570: parse error before "TkWindow" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:570: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:572: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:573: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:574: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:577: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:578: parse error before "TkDisplay" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:582: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:582: parse error before "XColor" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:582: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:585: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:585: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:585: `Time' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:585: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:587: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:588: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:589: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:590: parse error before "Display" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:593: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:594: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:595: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:595: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:595: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:598: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:599: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:602: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:602: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:604: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:604: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:604: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:606: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:606: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:606: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:611: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:612: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:614: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:616: parse error before "keysym" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:619: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:621: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:622: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:625: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:626: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:627: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:630: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:630: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:630: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:631: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:631: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:631: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:636: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:636: `tkpMakeWindow' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:638: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:638: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:639: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:642: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:643: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:646: parse error before "TkDisplay" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:647: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:648: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:649: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:650: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:651: parse error before "XEvent" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:653: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:656: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:656: `KeySym' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:656: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:658: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:659: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:660: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:660: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:660: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:661: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:662: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:663: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:664: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:665: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:666: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:667: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:676: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:676: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:679: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:815: parse error before "GC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:816: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:817: parse error before "KeySym" /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:818: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:818: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:818: `KeySym' declared as function returning a function /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:818: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:819: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:821: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:821: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:821: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:823: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:824: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:841: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:841: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:846: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tkIntDecls.h:846: warning: data definition has no type or storage class In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:1143: parse error before "XImage" In file included from /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:33: parse error before "Screen" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:33: warning: no semicolon at end of struct or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:34: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:38: parse error before "colormap" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:38: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:52: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:52: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:55: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:55: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:58: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:58: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:62: parse error before "shadow" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:62: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:66: parse error before "bgGC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:66: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:68: parse error before "darkGC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:68: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:71: parse error before "lightGC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:71: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:76: conflicting types for `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:694: previous declaration of `nextPtr' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:81: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:81: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:94: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:94: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:96: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:97: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:31: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:36: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:39: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Alloc3DBorderFromObj': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:88: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:88: (Each undeclared identifier is reported only once /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:88: for each function it appears in.) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:93: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:109: warning: implicit declaration of function `ScreenOfDisplay' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:109: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:109: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:110: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:134: `firstBorderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:135: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:139: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:139: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:140: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:153: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Get3DBorder': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:193: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:193: `existingBorderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:193: warning: left-hand operand of comma expression has no effect /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:195: `XGCValues' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:195: parse error before "gcValues" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:196: `XColor' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:197: invalid operands to binary * /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:199: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:201: request for member `borderInit' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:205: request for member `borderTable' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:205: request for member `borderTable' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:207: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:210: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:210: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:211: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:233: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:233: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:234: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:235: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:236: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:242: `None' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:256: `gcValues' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:257: `GCForeground' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Draw3DRectangle': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:284: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_NameOf3DBorder': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:331: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:331: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: At top level: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:352: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:354: warning: return type defaults to `int' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_3DBorderColor': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:356: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: At top level: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:376: parse error before "Tk_3DBorderGC" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:377: warning: return type defaults to `int' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_3DBorderGC': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:383: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:383: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:385: `None' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:402: parse error before "None" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Free3DBorder': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:428: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:428: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:429: `Display' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:429: warning: implicit declaration of function `DisplayOfScreen' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:430: `prevPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:437: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:448: `None' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `FreeBorderObjProc': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:532: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:532: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `DupBorderObjProc': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:567: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:567: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_SetBackgroundFromBorder': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:599: syntax error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:601: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Draw3DPolygon': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:755: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:757: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:769: `XPoint' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:771: syntax error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:772: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:772: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:775: `Display' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:775: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:777: `None' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:803: `p1Ptr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:803: subscripted value is neither array nor pointer /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:804: `p2Ptr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:804: subscripted value is neither array nor pointer /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:850: subscripted value is neither array nor pointer /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:850: warning: left-hand operand of comma expression has no effect /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:851: warning: left-hand operand of comma expression has no effect /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:862: `newB1' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:863: `newB2' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:865: `poly' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:868: `b1' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:868: `b2' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:900: `perp' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:903: `c' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:904: `shift1' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:905: `shift2' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:919: `gc' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:923: warning: implicit declaration of function `XFillPolygon' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:923: `Convex' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:924: `CoordModeOrigin' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:850: warning: value computed is not used /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:850: warning: value computed is not used /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Fill3DRectangle': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:963: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:971: syntax error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:997: warning: implicit declaration of function `XFillRectangle' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:997: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:997: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Fill3DPolygon': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1028: parse error before "Drawable" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1030: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1042: syntax error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1044: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1044: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1045: `Complex' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1045: `CoordModeOrigin' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: At top level: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1070: parse error before "TkDisplay" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1070: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1071: parse error before '{' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1073: parse error before '->' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1096: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1096: `p1Ptr' used prior to declaration /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1096: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1097: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1097: `p2Ptr' used prior to declaration /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1097: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1102: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1102: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1104: parse error before '{' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1127: parse error before "if" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1131: parse error before "for" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1133: conflicting types for `cosine' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1129: previous declaration of `cosine' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1133: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1134: `i' undeclared here (not in a function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1134: conflicting types for `shiftTable' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1120: previous declaration of `shiftTable' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1134: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1135: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1138: warning: initialization makes pointer from integer without a cast /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1138: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1138: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1139: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1139: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1139: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1140: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1140: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1140: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1141: parse error before "if" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1143: redefinition of `dy' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1140: `dy' previously defined here /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1143: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1143: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1144: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1149: redefinition of `dx' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1139: `dx' previously defined here /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1149: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1149: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1150: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1189: parse error before "XPoint" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1189: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1190: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1190: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1191: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1191: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1192: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1192: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1193: parse error before '*' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1193: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1194: parse error before '{' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1203: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1203: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1203: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1203: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1203: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1204: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1204: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1204: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1204: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1204: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1205: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1205: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1205: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1205: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1205: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1206: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1206: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1206: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1206: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1206: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1208: parse error before "if" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1211: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1211: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1211: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1211: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1211: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1212: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1212: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1213: parse error before "if" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1215: redefinition of `q' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1212: `q' previously defined here /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1215: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1215: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1216: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1222: redefinition of `p' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1211: `p' previously defined here /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1222: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1222: request for member `y' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1222: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1222: request for member `x' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1222: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1223: redefinition of `q' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1215: `q' previously defined here /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1223: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1223: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1224: parse error before "if" /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1226: redefinition of `q' /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1223: `q' previously defined here /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1226: initializer element is not constant /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1226: warning: data definition has no type or storage class /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1227: parse error before '}' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `Tk_Get3DBorderFromObj': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1262: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1264: invalid operands to binary * /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1264: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1277: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1280: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1280: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1281: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1301: request for member `borderTable' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1301: request for member `borderTable' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1305: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1307: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1307: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1308: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c: In function `TkDebugBorder': /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1388: `borderPtr' undeclared (first use in this function) /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1391: invalid operands to binary * /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1391: parse error before ')' token /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1394: request for member `borderTable' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1394: request for member `borderTable' in something not a structure or union /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1396: parse error before ')' token /usr/include/sys/stat.h: At top level: /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:1134: storage size of `shiftTable' isn't known /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:31: warning: `BorderInit' declared `static' but never defined /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:36: warning: `Intersect' declared `static' but never defined /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:39: warning: `ShiftLine' declared `static' but never defined {standard input}: Assembler messages: {standard input}:697: Error: symbol `dy' is already defined {standard input}:703: Error: symbol `dx' is already defined {standard input}:750: Error: symbol `q' is already defined {standard input}:756: Error: symbol `p' is already defined {standard input}:762: Error: symbol `q' is already defined {standard input}:768: Error: symbol `q' is already defined make: *** [tk3d.o] Error 1 From msmayyash at yahoo.com Tue Aug 24 11:19:27 2004 From: msmayyash at yahoo.com (Mousa Ayyash) Date: Tue Aug 24 11:21:50 2004 Subject: [ns] Problem installing Tk [from ns-allinone2.27] In-Reply-To: <1093369336.18796.20.camel@localhost.localdomain> Message-ID: <20040824181927.81352.qmail@web50807.mail.yahoo.com> Hi, My recommendation is to update the packages of Red Hat. It seems that something is missing in the development packages of Red hat. Thanks --- Vahid wrote: > > > Hi all, > > I am trying to install the ns-allinone 2.27 package > on a Red Hat Linux > 9.0 system. (Intel) > The installation goes well until reaching to the > installation of Tk, > which fails every time. > I even tried to install packages piece by piece, but > still as soon as I > get to the installation > of Tk (which is after installing Tcl successfuly), I > get the same error. > The ./configure stage goes well, but the make stage > always fails. > I have tried both Tk 8.4.5 and 8.4.7. > The attached text file is what I get after I run the > make command. It > seems that everything is > an error or warning from the beginning of the make > process! > I would be really thankful if someone there can help > me on this. > Please tell me if you need any further info to be > able to guide me. > > [root@localhost unix]# make > gcc -pipe -c -O2 -Wall -Wno-implicit-int > -fno-strict-aliasing -fPIC > -I/home/vahid/Desktop/Temp/tk8.4.7/unix > -I/home/vahid/Desktop/Temp/tk8.4.7/unix/../generic > -I/home/vahid/Desktop/Temp/tk8.4.7/unix/../bitmaps > -I/home/vahid/Desktop/Temp/tcl8.4.7/generic > -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 > -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 > -DTCL_WIDE_INT_TYPE=long\ long > -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 > -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 > -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 > -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS > /home/vahid/Desktop/Temp/tk8.4.7/unix/../generic/tk3d.c > In file included from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:21, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:96:29: > X11/Xlib.h: No such file or directory > In file included from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:21, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:573: > parse error before "Window" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:573: > `Window' declared as function returning a function > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:573: > warning: parameter names (without types) in function > declaration > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:576: > parse error before "XEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:584: > parse error before "Tk_ClassCreateProc" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:584: > warning: no semicolon at end of struct or union > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:592: > parse error before '}' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:592: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:678: > parse error before "Bool" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:678: > warning: no semicolon at end of struct or union > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:679: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:683: > parse error before "time" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:683: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:688: > parse error before "same_screen" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:688: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:689: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:694: > parse error before "Bool" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:694: > warning: no semicolon at end of struct or union > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:695: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:697: > parse error before '}' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:697: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:698: > parse error before "XActivateEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:698: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:699: > parse error before "XDeactivateEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:699: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:771: > parse error before "Display" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:771: > warning: no semicolon at end of struct or union > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:774: > parse error before '*' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:774: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:785: > parse error before "changes" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:785: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:787: > parse error before "atts" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:787: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:811: > parse error before '}' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:811: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:923: > parse error before "XPoint" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1023: > parse error before "Display" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1026: > parse error before "Display" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1121: > parse error before "XColor" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1121: > warning: no semicolon at end of struct or union > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1151: > parse error before '}' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1151: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1185: > parse error before "GC" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1185: > warning: no semicolon at end of struct or union > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1197: > parse error before '*' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1197: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1198: > parse error before '*' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1198: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1199: > parse error before '*' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1199: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1200: > parse error before "stipple" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1200: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1201: > parse error before "activeStipple" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1201: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1202: > parse error before "disabledStipple" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1202: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1203: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1228: > parse error before "Display" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1230: > parse error before "Display" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1436: > parse error before "Drawable" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1552: > parse error before "XErrorEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1554: > parse error before "XEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1556: > parse error before "XEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1558: > parse error before "XEvent" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1563: > parse error before "XEvent" > In file included from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk.h:1576, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkInt.h:21, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.h:18, > from > /home/vahid/Desktop/Temp/tk8.4.7/generic/tk3d.c:16: > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:37: > parse error before '*' token > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:37: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:39: > parse error before "Tk_3DBorderGC" > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:40: > warning: data definition has no type or storage > class > /home/vahid/Desktop/Temp/tk8.4.7/generic/tkDecls.h:45: > parse error before "Drawable" > === message truncated === ===== Moussa S. Ayyash __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From inbnob at hotmail.com Tue Aug 24 17:19:23 2004 From: inbnob at hotmail.com (IVAN BISONNI) Date: Tue Aug 24 17:21:49 2004 Subject: [ns] ns-2.1b7a blueware win xp problem Message-ID: Hello I am trying to install ns-2.1b7a in order to install blueware under win XP and I didnt find any patch when I ./install and the instalation gets to TCL-8.3.2 I found the following error: ../generic/tclClock.c: In function `FormatClock': ../generic/tclClock.c:309 warning: assignment makes integer from pointer witho ../generic/tclClock.c:310 error: invalid lvalue in assignment ../generic/tclClock.c:346 error: invalid lvalue in assignment make: *** [tclClock.o] Error 1 tcl8.3.2 make filed! Exiting If someone knows how to fixed please tell me Thank Ivn Bisonni _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From hz83997 at yahoo.com.cn Tue Aug 24 17:22:17 2004 From: hz83997 at yahoo.com.cn (=?gb2312?q?=FFffffd5=FFfffff7=20=FFffffba=FFffffe9?=) Date: Tue Aug 24 17:24:35 2004 Subject: [ns] NS2 tutorial problem Message-ID: <20040825002217.13268.qmail@web15603.mail.cnb.yahoo.com> Thanks for your answer! I wonder what is the first problem you mean, Can you tell how the original codes " use a method to acess the header of the protocol now absolete ". Will you please point it out ? And what is the correct way to do it? Almost everyone interested in ns2 may encounter the problem, as the tutorial is a must-have for all the ns users. Your comments are greatly appreciated. Thanks a lot! __________________________________________________________ Hi, I had the same problem than you. The Greisexample has two problems. First it uses a method to acess the header of the protocol now absolete. Second, this example is already in ns in the latest versions, inside the apps directory. If you try to compile the example in the ns, it will give you several errors because the code is already compiled. Thats why when you chance the name of the agent, you dont have problems. Good luck, J.P. In Greis' famous NS2 tutorial, he mentioned the method of "adding a new protocol in ns2". His example is a PingAgent. But after tring it carefully, I found that the protocol has some problems. I use it in a tcl file, but it does not work. I think there is something wrong in the header file or the C++ code, because when I change original ping protocol in ns2 as a Pong protocol, it works. And the necessary changes you mentioned are needed to ensure the new protocols to work smoothly. Can you tell the problem in your source codes? Because I am very inexperienced in ns2 code writing, I can not point out the problems. Thanks a lot! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From joe_os2001 at yahoo.com Tue Aug 24 17:58:40 2004 From: joe_os2001 at yahoo.com (Joe OS) Date: Tue Aug 24 18:00:34 2004 Subject: [ns] Help: Understanding NS trace files (Manual/doc/tutorial ???) Message-ID: <20040825005840.27976.qmail@web21423.mail.yahoo.com> Hi all, I am a beginner in NS-2. Now I am executing the samples NS-2 tcl files and watching ther results, but I cant understande the produced trace files. For example: ... r -t 9.010453959 -Hs 4 -Hd -2 -Ni 4 -Nx 200.00 -Ny 450.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 - Ms 0 -Mt 0 -Is 4194306.0 -Id 4194304.0 -It udp -Il 52 -If 0 -Ii 35 -Iv 32 f -t 9.010453959 -Hs 4 -Hd 4194304 -Ni 4 -Nx 200.00 -Ny 450.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -M d 0 -Ms 0 -Mt 0 -Is 4194306.0 -Id 4194304.0 -It udp -Il 72 -If 0 -Ii 35 -Iv 32 r -t 9.012242666 -Hs 2 -Hd 4194304 -Ni 2 -Nx 250.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 13a -Md 0 -Ms 2 -Mt 800 -Is 4194304.0 -Id 4194306.0 -It udp -Il 72 -If 0 -Ii 35 -Iv 32 f -t 9.012242666 -Hs 2 -Hd 4194306 -Ni 2 -Nx 250.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 13a -Md 0 -Ms 2 -Mt 800 -Is 4194304.0 -Id 4194306.0 -It udp -Il 92 -If 0 -Ii 35 -Iv 32 r -t 9.555880716 -Hs 3 -Hd -1 -Ni 3 -Nx 550.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 - Ms 0 -Mt 0 -Is 8388608.0 -Id -1.0 -It udp -Il 48 -If 0 -Ii 36 -Iv 32 f -t 9.560728457 -Hs 3 -Hd -1 -Ni 3 -Nx 550.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 - Ms 0 -Mt 0 -Is 8388608.0 -Id -1.0 -It udp -Il 68 -If 0 -Ii 36 -Iv 32 + 10 0 1 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 - 10 0 1 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 r -t 10.000339577 -Hs 2 -Hd -1 -Ni 2 -Nx 250.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 4194304.0 -Id -1.0 -It udp -Il 48 -If 0 -Ii 38 -Iv 32 r 10.002064 0 1 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 + 10.002064 1 2 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 - 10.002064 1 2 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 r 10.004128 1 2 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 r -t 10.004128000 -Hs 2 -Hd -2 -Ni 2 -Nx 250.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194306.2 -It tcp -Il 40 -If 0 -Ii 37 -Iv 30 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0 f -t 10.004128000 -Hs 2 -Hd 4194306 -Ni 2 -Nx 250.00 -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 - Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194306.2 -It tcp -Il 40 -If 0 -Ii 37 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0 r -t 10.005820707 -Hs 4 -Hd -2 -Ni 4 -Nx 200.00 -Ny 450.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 4194306.2 -Id 0.0 -It ack -Il 40 -If 0 -Ii 39 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0 ... IS there any manual or tutorial or document that teachs how to understand this king of information? For example, where is the message which is send by the ftp agent? Many thanks Joe __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From jpneo2004 at yahoo.com Tue Aug 24 21:01:45 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Tue Aug 24 21:03:53 2004 Subject: [ns] Re: NS2 tutorial problem In-Reply-To: <20040825002217.13268.qmail@web15603.mail.cnb.yahoo.com> Message-ID: <20040825040145.52022.qmail@web21524.mail.yahoo.com> Hi, In the NS Manual, page 116, capter 12 youll find this note: IMPORTANT: Notice that this is completely different from the original (and obsolete) method to access a packet header, which requires that an integer variable, off_{hdr_name}_ be defined for any packet header that one needs to access. This method is now obsolete; its usage is tricky and its misuse can be very difficult to detect. Now, take a look at a piece of Greiscode: // Access the Ping header for the new packet: hdr_ping* hdr = (hdr_ping*)pkt->access(off_ping_); // Set the 'ret' field to 0, so the receiving node knows // that it has to generate an echo packet hdr->ret = 0; Got it?? This is the problem. Take a look in the ping code in the apps directory to see a correct way to acess the header. Good luck, J.P. Obs: Forgive my bad english. I speak portuguese. Thanks for your answer! I wonder what is the first problem you mean, Can you tell how the original codes " use a method to acess the header of the protocol now absolete ". Will you please point it out ? And what is the correct way to do it? Almost everyone interested in ns2 may encounter the problem, as the tutorial is a must-have for all the ns users. Your comments are greatly appreciated. Thanks a lot! __________________________________________________________ Hi, I had the same problem than you. The Greisexample has two problems. First it uses a method to acess the header of the protocol now absolete. Second, this example is already in ns in the latest versions, inside the apps directory. If you try to compile the example in the ns, it will give you several errors because the code is already compiled. Thats why when you chance the name of the agent, you dont have problems. Good luck, J.P. In Greis' famous NS2 tutorial, he mentioned the method of "adding a new protocol in ns2". His example is a PingAgent. But after tring it carefully, I found that the protocol has some problems. I use it in a tcl file, but it does not work. I think there is something wrong in the header file or the C++ code, because when I change original ping protocol in ns2 as a Pong protocol, it works. And the necessary changes you mentioned are needed to ensure the new protocols to work smoothly. Can you tell the problem in your source codes? Because I am very inexperienced in ns2 code writing, I can not point out the problems. Thanks a lot! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否 --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! From bigvahid at spymac.com Tue Aug 24 21:03:35 2004 From: bigvahid at spymac.com (Vahid) Date: Tue Aug 24 21:05:36 2004 Subject: [ns] Problem installing Tk [from ns-allinone2.27] References: <1093369336.18796.20.camel@localhost.localdomain> Message-ID: <006b01c48a58$7e68f7a0$c223fea9@vahid> Thanks for all the replies to my question. The problem was that I didn't have XFree86-devel RPM installed on the Linux. As one of you said, it's not included in the default RHL 9.0 installation package. After installing this RPM (which itself requires the installation of many other packages...) everything went smoothly. ----- Original Message ----- From: Vahid To: ns-users@ISI.EDU Sent: Tuesday, August 24, 2004 1:42 PM Subject: [ns] Problem installing Tk [from ns-allinone2.27] Hi all, I am trying to install the ns-allinone 2.27 package on a Red Hat Linux 9.0 system. (Intel) The installation goes well until reaching to the installation of Tk, which fails every time. I even tried to install packages piece by piece, but still as soon as I get to the installation of Tk (which is after installing Tcl successfuly), I get the same error. The ./configure stage goes well, but the make stage always fails. I have tried both Tk 8.4.5 and 8.4.7. The attached text file is what I get after I run the make command. It seems that everything is an error or warning from the beginning of the make process! I would be really thankful if someone there can help me on this. Please tell me if you need any further info to be able to guide me. From madhurichowdhari at rediffmail.com Tue Aug 24 22:15:29 2004 From: madhurichowdhari at rediffmail.com (madhuri kaniganti) Date: Tue Aug 24 22:50:40 2004 Subject: [ns] node movement Message-ID: <20040825051529.10021.qmail@webmail27.rediffmail.com> ?Hi, Could anyone please tell me, how to know the time after the mobile node moved to the destination. Suppose the mobile node present coordinates are at 0, if the destination is set at say (400,400,0). I would like to know the tcl code which gives the time after it moved to the destination. Thanking you, --Madhuri From patrick_ns at hotmail.com Tue Aug 24 23:26:38 2004 From: patrick_ns at hotmail.com (Patrick) Date: Tue Aug 24 23:40:05 2004 Subject: [ns] how to choose macType for UMTS Message-ID: Hi, all Can anyone tell me how to choose the macType for UMTS(R4)? Thankx. Best Regards. Patrick patrick_ns@hotmail.com From aghufran at hamdard.net.pk Wed Aug 25 00:35:25 2004 From: aghufran at hamdard.net.pk (Abid Ghufran) Date: Wed Aug 25 00:38:04 2004 Subject: [ns] resource(s) required for OTcl Message-ID: <005801c48a76$1641c6c0$af00a8c0@hamdard.net.pk> I need some useful resources for learning oTcl. Help in this regard would be appreciated. Thanks, Abid Ghufran. From advarl at hotmail.com Wed Aug 25 00:42:52 2004 From: advarl at hotmail.com (advarl) Date: Wed Aug 25 00:47:39 2004 Subject: [ns] procedure of sending data with TCP. Message-ID: hi all, Can anyone explain the procedure of sending data with TCP through showing the invoking relation among the functions in tcp.cc? Thanks in advance.         advarl         advarl@hotmail.com           2004-08-25 From advarl at hotmail.com Wed Aug 25 00:53:39 2004 From: advarl at hotmail.com (advarl) Date: Wed Aug 25 00:57:56 2004 Subject: [ns] first function is called ? Message-ID: hi all, which function in tcp.cc is called while the statement: $ns at 0.0 "ftp start" is implemented.         advarl         advarl@hotmail.com           2004-08-25 From yann.fleutot at eads-telecom.com Wed Aug 25 02:05:04 2004 From: yann.fleutot at eads-telecom.com (Fleutot, Yann) Date: Wed Aug 25 02:28:53 2004 Subject: [ns] Help: Understanding NS trace files (Manual/doc/tutorial Message-ID: <200408251137.NAA04495@trantor.eads-dsn.com> Maybe this link will help. http://k-lug.org/~griswold/NS2/ns2-trace-formats.html > -----Message d'origine----- > De : Joe OS [mailto:joe_os2001@yahoo.com] > Envoy? : mercredi 25 ao?t 2004 02:59 > ? : ns-users@ISI.EDU > Objet : [ns] Help: Understanding NS trace files (Manual/doc/tutorial > ???) > > > > Hi all, > > I am a beginner in NS-2. Now I am executing the > samples NS-2 tcl files and watching ther results, but > I cant understande > the produced trace files. For example: > > ... > r -t 9.010453959 -Hs 4 -Hd -2 -Ni 4 -Nx 200.00 -Ny > 450.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 > -Md 0 - > Ms 0 -Mt 0 -Is 4194306.0 -Id 4194304.0 -It udp -Il 52 > -If 0 -Ii 35 -Iv 32 > f -t 9.010453959 -Hs 4 -Hd 4194304 -Ni 4 -Nx 200.00 > -Ny 450.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma > 0 -M > d 0 -Ms 0 -Mt 0 -Is 4194306.0 -Id 4194304.0 -It udp > -Il 72 -If 0 -Ii 35 -Iv 32 > r -t 9.012242666 -Hs 2 -Hd 4194304 -Ni 2 -Nx 250.00 > -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma > 13a > -Md 0 -Ms 2 -Mt 800 -Is 4194304.0 -Id 4194306.0 -It > udp -Il 72 -If 0 -Ii 35 -Iv 32 > f -t 9.012242666 -Hs 2 -Hd 4194306 -Ni 2 -Nx 250.00 > -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma > 13a > -Md 0 -Ms 2 -Mt 800 -Is 4194304.0 -Id 4194306.0 -It > udp -Il 92 -If 0 -Ii 35 -Iv 32 > r -t 9.555880716 -Hs 3 -Hd -1 -Ni 3 -Nx 550.00 -Ny > 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 > -Md 0 - > Ms 0 -Mt 0 -Is 8388608.0 -Id -1.0 -It udp -Il 48 -If 0 > -Ii 36 -Iv 32 > f -t 9.560728457 -Hs 3 -Hd -1 -Ni 3 -Nx 550.00 -Ny > 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 > -Md 0 - > Ms 0 -Mt 0 -Is 8388608.0 -Id -1.0 -It udp -Il 68 -If 0 > -Ii 36 -Iv 32 > + 10 0 1 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 > - 10 0 1 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 > r -t 10.000339577 -Hs 2 -Hd -1 -Ni 2 -Nx 250.00 -Ny > 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 > -Md 0 > -Ms 0 -Mt 0 -Is 4194304.0 -Id -1.0 -It udp -Il 48 -If > 0 -Ii 38 -Iv 32 > r 10.002064 0 1 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 > + 10.002064 1 2 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 > - 10.002064 1 2 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 > r 10.004128 1 2 tcp 40 ------- 0 0.0.0.0 1.0.2.2 0 37 > r -t 10.004128000 -Hs 2 -Hd -2 -Ni 2 -Nx 250.00 -Ny > 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 > -Md 0 > -Ms 0 -Mt 0 -Is 0.0 -Id 4194306.2 -It tcp -Il 40 -If 0 > -Ii 37 -Iv 30 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0 > f -t 10.004128000 -Hs 2 -Hd 4194306 -Ni 2 -Nx 250.00 > -Ny 500.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma > 0 - > Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194306.2 -It tcp -Il 40 > -If 0 -Ii 37 -Iv 29 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0 > r -t 10.005820707 -Hs 4 -Hd -2 -Ni 4 -Nx 200.00 -Ny > 450.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 > -Md 0 > -Ms 0 -Mt 0 -Is 4194306.2 -Id 0.0 -It ack -Il 40 -If 0 > -Ii 39 -Iv 32 -Pn tcp -Ps 0 -Pa 0 -Pf 0 -Po 0 > ... > > > IS there any manual or tutorial or document that > teachs how to understand this king of information? > For example, where is the message which is send by the > ftp agent? > > Many thanks > > Joe > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > From nsuser1234 at yahoo.fr Wed Aug 25 02:37:09 2004 From: nsuser1234 at yahoo.fr (=?iso-8859-1?q?J=FFffffe9r=FFffffe9mie=20Leguay?=) Date: Wed Aug 25 02:39:34 2004 Subject: [ns] How to set the promiscuous mode on wireless nodes? In-Reply-To: Message-ID: <20040825093709.32383.qmail@web86909.mail.ukl.yahoo.com> Hi, I would like to know if it is possible to set the promiscuous mode on wireless nodes in order to trace all the communications that occur arround a node. any ideas? J?r?mie Vous manquez d?espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr?ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis. A t?l?charger gratuitement sur http://fr.messenger.yahoo.com From macr at tid.es Wed Aug 25 02:40:21 2004 From: macr at tid.es (=?ISO-8859-1?Q?Mar=EDa_=C1ngeles_Callejo?=) Date: Wed Aug 25 02:54:34 2004 Subject: [ns] Control over TCP traffic Message-ID: <412C5E85.8010304@tid.es> How can I have some control over sent TCP traffic? I'd like to create a scenrio where TCP and UDP traffics coexist and i want to have some control over the sent TCP traffic if it is possible. Regards Marian From ca0iav at hermes.sunderland.ac.uk Wed Aug 25 03:01:11 2004 From: ca0iav at hermes.sunderland.ac.uk (Iason Avramidis) Date: Wed Aug 25 03:01:37 2004 Subject: [ns] Guidance/tutorial needed for formal OTcl testing Message-ID: <23ef2f23eb00.23eb0023ef2f@sunderland.ac.uk> Hello all, Could anyone guide me on any paper or tutorial that has testing/debugging techniques for OTcl. I need to produce formal documentation on OTcl scripts that I use with ns. Thanks in advance, Jason From raysaikat at lycos.com Wed Aug 25 07:55:51 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Wed Aug 25 07:58:48 2004 Subject: [ns] set PaketSize and 60 bytes Message-ID: <20040825145556.987D9E5BC8@ws7-2.us4.outblaze.com> Add MAC header ... ----- Original Message ----- From: "Xavier M." Date: Mon, 23 Aug 2004 18:50:34 +0200 To: ns-users@ISI.EDU Subject: [ns] set PaketSize and 60 bytes > > Hi all, > > I'm simulating with AODV and TCP packet size of 1000 bytes according to the > "set packetSize 1000" instruction. > > I don't understand how can I get packets bigger than 1040 bytes (1000 + 20 TCP > header + 20 IP header). > What am I doing wrong? This is a piece of the tracefile (in old format): > > As you can see there are TCP packets of 1060 bytes and ACK's of 60 instead of > the 40. Please, help me. I noticed it using the tracegraph program, which > said that the Minimal Packet Size (TCP) is 60 and the Maximal 1060. > What are those 20 extra bytes? > And what do AGT and RTR mean? > > Thanks in advance > > Xavier M. > > > s 10.000000000 _0_ AGT --- 0 tcp 40 [0 0 0 0] ------- [0:0 1:0 32 0] [0 0] 0 > 0 > r 10.000000000 _0_ RTR --- 0 tcp 40 [0 0 0 0] ------- [0:0 1:0 32 0] [0 0] 0 > 0 > s 10.000000000 _0_ RTR --- 0 AODV 48 [0 0 0 0] ------- [0:255 -1:255 30 0] > [0x2 1 1 [1 0] [0 4]] (REQUEST) > r 10.000940833 _1_ RTR --- 0 AODV 48 [0 ffffffff 0 800] ------- [0:255 -1:255 > 30 0] [0x2 1 1 [1 0] [0 4]] (REQUEST) > s 10.000940833 _1_ RTR --- 0 AODV 44 [0 0 0 0] ------- [1:255 0:255 30 0] > [0x4 1 [1 4] 10.000000] (REPLY) > r 10.005460667 _0_ RTR --- 0 AODV 44 [13a 0 1 800] ------- [1:255 0:255 30 0] > [0x4 1 [1 4] 10.000000] (REPLY) > s 10.005460667 _0_ RTR --- 0 tcp 60 [0 0 0 0] ------- [0:0 1:0 30 1] [0 0] 0 > 0 > r 10.007559167 _1_ AGT --- 0 tcp 60 [13a 1 0 800] ------- [0:0 1:0 30 1] [0 > 0] 1 0 > s 10.007559167 _1_ AGT --- 1 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [0 0] 0 > 0 > r 10.007559167 _1_ RTR --- 1 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [0 0] 0 > 0 > s 10.007559167 _1_ RTR --- 1 ack 60 [0 0 0 0] ------- [1:0 0:0 30 0] [0 0] 0 > 0 > r 10.009557667 _0_ AGT --- 1 ack 60 [13a 0 1 800] ------- [1:0 0:0 30 0] [0 > 0] 1 0 > s 10.009557667 _0_ AGT --- 2 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [1 0] > 0 0 > r 10.009557667 _0_ RTR --- 2 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [1 0] > 0 0 > s 10.009557667 _0_ AGT --- 3 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [2 0] > 0 0 > r 10.009557667 _0_ RTR --- 3 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [2 0] > 0 0 > s 10.009557667 _0_ RTR --- 2 tcp 1060 [0 0 0 0] ------- [0:0 1:0 30 1] [1 0] > 0 0 > s 10.009557667 _0_ RTR --- 3 tcp 1060 [0 0 0 0] ------- [0:0 1:0 30 1] [2 0] > 0 0 > r 10.019696167 _1_ AGT --- 2 tcp 1060 [13a 1 0 800] ------- [0:0 1:0 30 1] [1 > 0] 1 0 > -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From raysaikat at lycos.com Wed Aug 25 07:57:12 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Wed Aug 25 08:00:39 2004 Subject: [ns] help with RTS/CTS Message-ID: <20040825145712.46722E5BC8@ws7-2.us4.outblaze.com> ----- Original Message ----- From: Spiro Trikaliotis Date: Mon, 23 Aug 2004 17:59:46 +0200 To: nsusers Subject: Re: [ns] help with RTS/CTS > > Hello, > > * On Mon, Aug 23, 2004 at 05:03:30PM +0200 Desandre` Flavio wrote: > > > we are running a simulation of an Ad-hoc network (802.11x) with > > routing protocol AODV. How can we set RTS/CTS inactive ? > > Just set the RTS threshold to a value bigger than the biggest frame > you're sending. > > On 2.27, either change the value of > > Mac/802_11 set RTSThreshold_ 0 > > in ns2/tcl/lib/ns-default.tcl to another value for global effect, or set > it in your configuration script at the top of it. I gould suggest the > latter (for lesser surprise). > > I'm not sure for older versions, but it should be similar. > > HTH, > Spiro. > > -- > Spiro R. Trikaliotis > http://www.trikaliotis.net/ > -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From raysaikat at lycos.com Wed Aug 25 07:58:07 2004 From: raysaikat at lycos.com (Saikat Ray) Date: Wed Aug 25 08:01:01 2004 Subject: [ns] help with RTS/CTS Message-ID: <20040825145808.037BFE5BC7@ws7-2.us4.outblaze.com> In 2.26 or older, you need to change the threshold value in mac-802_11.h ... ----- Original Message ----- From: Spiro Trikaliotis Date: Mon, 23 Aug 2004 17:59:46 +0200 To: nsusers Subject: Re: [ns] help with RTS/CTS > > Hello, > > * On Mon, Aug 23, 2004 at 05:03:30PM +0200 Desandre` Flavio wrote: > > > we are running a simulation of an Ad-hoc network (802.11x) with > > routing protocol AODV. How can we set RTS/CTS inactive ? > > Just set the RTS threshold to a value bigger than the biggest frame > you're sending. > > On 2.27, either change the value of > > Mac/802_11 set RTSThreshold_ 0 > > in ns2/tcl/lib/ns-default.tcl to another value for global effect, or set > it in your configuration script at the top of it. I gould suggest the > latter (for lesser surprise). > > I'm not sure for older versions, but it should be similar. > > HTH, > Spiro. > > -- > Spiro R. Trikaliotis > http://www.trikaliotis.net/ > -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 From _ricciantonio_ at libero.it Wed Aug 25 09:29:50 2004 From: _ricciantonio_ at libero.it (_ricciantonio_) Date: Wed Aug 25 08:23:43 2004 Subject: [ns] How many packets sent whith udp? Message-ID: <200408251521.i7PFLrx02945@vapor.isi.edu> Hello, how can i know how many packets sends an application on an udp agent?Thanks for your help Regards Antonio Ricci From jz105 at york.ac.uk Wed Aug 25 08:40:07 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Wed Aug 25 08:38:36 2004 Subject: [ns] lossless 802.11 Message-ID: <00c301c48ab9$cc398100$68892090@grouse> Hi all, I am simulating a 802.11 link for tcp transmissions. I found out in my traces that, the TCP source periodically experiences Congestion Window Reduced (CWR) by showing the 'A' flag. I am wondering what is the cause of that because I wish to create a lossless 802.11 link. To achieve that, I've made every queue in my simulation capable to contain 100 packets while the TCP window is 45 packets; I've modify the MAC_ShortRetryLimit and MAC_LongRetryLimit parameters in mac-802_11.h to a very large value and done 'make depend' and 'make'. However, the TCP source still experiences CWR at the same packets it used to. Could anybody give me some advice? Thank you in advance! Regards, Jee From fjrm4 at yahoo.es Wed Aug 25 09:16:52 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Wed Aug 25 09:19:02 2004 Subject: [ns] set PaketSize and 60 bytes In-Reply-To: <200408231850.34371.xaviermm3@telefonica.net> References: <200408231850.34371.xaviermm3@telefonica.net> Message-ID: <200408251816.53806.fjrm4@yahoo.es> Hi Xavier, RTR stands for Router Trace and AGT for Agent Trace. Regards, Francisco Ros El Lunes, 23 de Agosto de 2004 18:50, Xavier M. escribi?: > Hi all, > > I'm simulating with AODV and TCP packet size of 1000 bytes according to the > "set packetSize 1000" instruction. > > I don't understand how can I get packets bigger than 1040 bytes (1000 + 20 > TCP header + 20 IP header). > What am I doing wrong? This is a piece of the tracefile (in old format): > > As you can see there are TCP packets of 1060 bytes and ACK's of 60 instead > of the 40. Please, help me. I noticed it using the tracegraph program, > which said that the Minimal Packet Size (TCP) is 60 and the Maximal 1060. > What are those 20 extra bytes? > And what do AGT and RTR mean? > > Thanks in advance > > Xavier M. > > > s 10.000000000 _0_ AGT --- 0 tcp 40 [0 0 0 0] ------- [0:0 1:0 32 0] [0 0] > 0 0 > r 10.000000000 _0_ RTR --- 0 tcp 40 [0 0 0 0] ------- [0:0 1:0 32 0] [0 0] > 0 0 > s 10.000000000 _0_ RTR --- 0 AODV 48 [0 0 0 0] ------- [0:255 -1:255 30 0] > [0x2 1 1 [1 0] [0 4]] (REQUEST) > r 10.000940833 _1_ RTR --- 0 AODV 48 [0 ffffffff 0 800] ------- [0:255 > -1:255 30 0] [0x2 1 1 [1 0] [0 4]] (REQUEST) > s 10.000940833 _1_ RTR --- 0 AODV 44 [0 0 0 0] ------- [1:255 0:255 30 0] > [0x4 1 [1 4] 10.000000] (REPLY) > r 10.005460667 _0_ RTR --- 0 AODV 44 [13a 0 1 800] ------- [1:255 0:255 30 > 0] [0x4 1 [1 4] 10.000000] (REPLY) > s 10.005460667 _0_ RTR --- 0 tcp 60 [0 0 0 0] ------- [0:0 1:0 30 1] [0 0] > 0 0 > r 10.007559167 _1_ AGT --- 0 tcp 60 [13a 1 0 800] ------- [0:0 1:0 30 1] > [0 0] 1 0 > s 10.007559167 _1_ AGT --- 1 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [0 0] > 0 0 > r 10.007559167 _1_ RTR --- 1 ack 40 [0 0 0 0] ------- [1:0 0:0 32 0] [0 0] > 0 0 > s 10.007559167 _1_ RTR --- 1 ack 60 [0 0 0 0] ------- [1:0 0:0 30 0] [0 0] > 0 0 > r 10.009557667 _0_ AGT --- 1 ack 60 [13a 0 1 800] ------- [1:0 0:0 30 0] > [0 0] 1 0 > s 10.009557667 _0_ AGT --- 2 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [1 > 0] 0 0 > r 10.009557667 _0_ RTR --- 2 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [1 > 0] 0 0 > s 10.009557667 _0_ AGT --- 3 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [2 > 0] 0 0 > r 10.009557667 _0_ RTR --- 3 tcp 1040 [0 0 0 0] ------- [0:0 1:0 32 0] [2 > 0] 0 0 > s 10.009557667 _0_ RTR --- 2 tcp 1060 [0 0 0 0] ------- [0:0 1:0 30 1] [1 > 0] 0 0 > s 10.009557667 _0_ RTR --- 3 tcp 1060 [0 0 0 0] ------- [0:0 1:0 30 1] [2 > 0] 0 0 > r 10.019696167 _1_ AGT --- 2 tcp 1060 [13a 1 0 800] ------- [0:0 1:0 30 1] > [1 0] 1 0 From sargyrop at ccf.auth.gr Wed Aug 25 09:50:43 2004 From: sargyrop at ccf.auth.gr (Savvas Argyropoulos) Date: Wed Aug 25 09:54:04 2004 Subject: [ns] Error Model - getting always the same packets dropped Message-ID: <1dc201c48ac3$bd477850$a4344a3e@sargyrop> Hello ns users, Every time i run a simulation in which I have added Error Model, I notice that I always get the same packets as dropped. How can I "seed" the Error Model to get different packets as lost? The code I use is provided below: set loss_module [new ErrorModel] $loss_module set rate_ 0.20 $loss_module unit pkt $loss_module ranvar [new RandomVariable/Uniform] $loss_module drop-target [new Agent/Null] $ns lossmodel $loss_module $nod2 $nod3 Thanks in advance BR, Savvas Argyropoulos From anilsingh72 at yahoo.com Wed Aug 25 10:41:14 2004 From: anilsingh72 at yahoo.com (Anil Singh) Date: Wed Aug 25 10:43:50 2004 Subject: [ns] how to convert an OTcl class to C++ class Message-ID: <20040825174114.56813.qmail@web40608.mail.yahoo.com> How can I convert OTcl code to c++ code, particularly I am looking at converting Link class to convert to C++. Any help or suggestions would be appreciated. Thanks, Ajay __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From pedrom at ICSI.Berkeley.EDU Wed Aug 25 11:36:29 2004 From: pedrom at ICSI.Berkeley.EDU (Pedro M. Ruiz) Date: Wed Aug 25 11:38:52 2004 Subject: [ns] How to set the promiscuous mode on wireless nodes? In-Reply-To: <20040825093709.32383.qmail@web86909.mail.ukl.yahoo.com> References: <20040825093709.32383.qmail@web86909.mail.ukl.yahoo.com> Message-ID: <412CDC2D.7010806@ICSI.Berkeley.EDU> I sent an e-mail some months ago to the list explaining how I managed to use the "install-tap" method with AODV. You can look at the archives... Regards, Pedro J? >Hi, > >I would like to know if it is possible to set the >promiscuous mode on wireless nodes in order to trace >all the communications that occur arround a node. > >any ideas? > >J?r?mie > > > > > > >Vous manquez d?espace pour stocker vos mails ? >Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! >Cr?ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ > >Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis. A t?l?charger gratuitement sur http://fr.messenger.yahoo.com > > > > > From inbnob at hotmail.com Wed Aug 25 12:12:22 2004 From: inbnob at hotmail.com (IVAN BISONNI) Date: Wed Aug 25 12:15:30 2004 Subject: [ns] tcl8.3.2 make failed! when install ns-allinone-2.1b7a Message-ID: Hey saidi: I have exactly the same problem that you I read of mailing list archive (the last two years) and i found two discouraging messagges 1- 5 July 2003 by Nicholas Cristin >Is there a possibility to install Bluehoc under Cygwin? Not that I'm aware of. The patches are, as far as I know, for 2.1b7/2.1b8, and these versions of ns-2 are not supported under Cygwin. Please check the ns-users mailing-list archives, this was discussed in the past. 2- 14 May 2003 by Nicholas Cristin >I am wondering if it is possible to use ns-2.26 to run Bluehoc >All the sources I found are talking about ns-2.1b7a Bluehoc is only available for 2.1b7a and 2.1b8a. Those versions are not available for Cygwin. You have to either use Visual C++, or switch to a different plaform (e.g., FreeBSD, Linux). You can also pester the people who wrote BlueHoc for ns to get them to port their code to 2.26, but I am under the impression that the project is dormant, they haven't released anything in quite some time. If you're adventurous you can try to port the BlueHoc code to 2.26 yourself. There is a patch for bluetooth that performs over ns-2.27 "ucbt" at www.ececs.uc.edu/~cdmc/ucbt/ucbt.html but I dont know if support scatternet If you find the way to fix ns-2.1b7a under cygwin please let me know I am looking forward to run blueware on ns-2.1b7a Ivn Bisonni inbnob@hotmail.com _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From jpneo2004 at yahoo.com Wed Aug 25 12:31:59 2004 From: jpneo2004 at yahoo.com (Joo Gonalves) Date: Wed Aug 25 12:34:40 2004 Subject: [ns] Definition of Agent Message-ID: <20040825193159.32801.qmail@web21524.mail.yahoo.com> Hi guys, Could anyone tell me if a agent is exclusively a transport layer and network layer entity or I can simulate a application as a agent?? In the affirmative case, how can I connect the application agent with the transport agent (UDP, TCP)?? Thanks for any sugestions, J.P. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! From gabmb at uol.com.br Wed Aug 25 18:11:36 2004 From: gabmb at uol.com.br (=?utf-8?Q?Gabriel_Mar=C3=A7al_de_Brito?=) Date: Wed Aug 25 18:13:57 2004 Subject: RES: [ns] make error: 'CPP_NAMESPACE' undeclared In-Reply-To: <200408230710.i7N7AGv17163@cse.cuhk.edu.hk> Message-ID: Well, it seems no workaround works on my machine... By the way, I am running ns-2 under Cygwin... Can that be the point of failure? -----Mensagem original----- De: Yangfan [mailto:yfzhou@cse.cuhk.edu.hk] Enviada em: segunda-feira, 23 de agosto de 2004 04:16 Para: 'Gabriel Mar?al de Brito' Assunto: RE: [ns] make error: 'CPP_NAMESPACE' undeclared Hey, You might forget to run 'configure' after you've finished the modifications of the makefiles. The commands you might have to use after modifying any makefile.in files: $NS$ ./configure $NS$ ./make clean depend all -Yangfan -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of Gabriel Mar?al de Brito Sent: 2004?8?23? 0:37 To: ns-users@ISI.EDU Subject: RE: [ns] make error: 'CPP_NAMESPACE' undeclared Hi guys! I?ve tried everything to fix this make error but couldn't make it work. Neither the pacth and makefile editing worked. Anyone has any idea on how to get through this issue? Or anyone can send me the fixed makefiles? Thanks, Gabriel --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.731 / Virus Database: 485 - Release Date: 29/7/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.731 / Virus Database: 485 - Release Date: 29/7/2004 From anup.mayank at gmail.com Wed Aug 25 18:51:55 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Wed Aug 25 18:54:38 2004 Subject: [ns] how to convert an OTcl class to C++ class In-Reply-To: <20040825174114.56813.qmail@web40608.mail.yahoo.com> References: <20040825174114.56813.qmail@web40608.mail.yahoo.com> Message-ID: <469192b0040825185177754c7f@mail.gmail.com> Hi, Your question is confusing. Why do you want to convert OTcl code to C++. Do you want to send some parameter from OTcl to C++?? Anup On Wed, 25 Aug 2004 10:41:14 -0700 (PDT), Anil Singh wrote: > > > How can I convert OTcl code to c++ code, particularly > I am looking at converting Link class to convert to > C++. > > Any help or suggestions would be appreciated. > > Thanks, > Ajay > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > http://promotions.yahoo.com/new_mail > > From nicolasc at gmail.com Wed Aug 25 19:21:02 2004 From: nicolasc at gmail.com (Nicolas Christin) Date: Wed Aug 25 19:23:38 2004 Subject: RES: [ns] make error: 'CPP_NAMESPACE' undeclared In-Reply-To: References: Message-ID: <2992b55d04082519216985b13d@mail.gmail.com> On Wed, 25 Aug 2004 22:11:36 -0300, Gabriel Mar?al de Brito wrote: > > Well, it seems no workaround works on my machine... By the way, I am running ns-2 under Cygwin... Can that be the point of failure? It's unlikely. The fix to that problem initially came from the Cygwin port. -- Nicolas From rachel.villacorta at up.edu.ph Wed Aug 25 19:32:45 2004 From: rachel.villacorta at up.edu.ph (rachel villacorta) Date: Wed Aug 25 19:34:38 2004 Subject: [ns] random seed generator Message-ID: <1093487565.412d4bcd140a6@mail.up.edu.ph> hi all, This is my network setup:(S1-S9 are connected (point to point) to the router while the router is connected to the receiver) S1(source 1) S2(source 2) : -----------> R(router) -----> O(receiver) S9(source 9) I have 2 different sets of experiments: 1) queueing mechanism from router to receiver is RED 2) queueing mechanism from router to receiver is Droptail and all elements of the experiments are the same e.g. the queueing mechanism from sources to router is Droptail with per link bandwidth of 10Mbps, queue limit of 5, the router-receiver link bandwidth of 500kbps with a queue limit of 50, exponential sources transmitting 125 byte-packets... Here's the problem: I had been using ns2.1b9a(I also used ns2.26) and I found out that in comparing the 2 sets of experiments, even if I used the same random seed #, exponential sources do not transmit the same number of packets.Does anybody know how to solve this problem?:) Thanks, Rachel From nsuser1234 at yahoo.fr Thu Aug 26 00:38:47 2004 From: nsuser1234 at yahoo.fr (=?iso-8859-1?q?J=FFffffe9r=FFffffe9mie=20Leguay?=) Date: Thu Aug 26 00:41:52 2004 Subject: [ns] How to set the promiscuous mode on wireless nodes? In-Reply-To: <412CDC2D.7010806@ICSI.Berkeley.EDU> Message-ID: <20040826073847.63079.qmail@web86902.mail.ukl.yahoo.com> ok so I guess that if I want to use the promiscuous mode with several routing protocol, I will have to install or implement the "install-tap" method ... :-( I was hoping that a generic method exists. I will try to do it for AODV following your instructions. thank you for your answer. regards, J?r?mie "Pedro M. Ruiz" wrote: I sent an e-mail some months ago to the list explaining how I managed to use the "install-tap" method with AODV. You can look at the archives... Regards, Pedro J? >Hi, > >I would like to know if it is possible to set the >promiscuous mode on wireless nodes in order to trace >all the communications that occur arround a node. > >any ideas? > >J?r?mie > > > > > > >Vous manquez d?espace pour stocker vos mails ? >Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! >Cr?ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ > >Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis. A t?l?charger gratuitement sur http://fr.messenger.yahoo.com > > > > > --------------------------------- Cr?ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Cr?ez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis.T?l?chargez GRATUITEMENT ici ! From tanbengtat at yahoo.com Thu Aug 26 01:40:36 2004 From: tanbengtat at yahoo.com (bt tan) Date: Thu Aug 26 01:42:38 2004 Subject: [ns] (ns installation ) Fail to compile the generated embedded-tcl.cc when making tclcl Message-ID: <20040826084036.62588.qmail@web52210.mail.yahoo.com> Any idea? > Hi, > > Currently, I failed to compile the generated > embedded-tcl.cc file. My system is running under > cygwin 1.5.x . > > The following command line failed to works. > > g++ -c -DNO_TK -DNDEBUG -DUSE_SHM > -DHAVE_LIBOTCL1_8 > -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H > -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DSTDC_HEADERS=1 > -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 > -DHAVE_STRTOLL=1 -DHAVE_SYS_TYPES_H=1 > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 > -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 > -DHAVE_UNISTD_H=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 > -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_4=1 -DHAVE_TK_H=1 > -DHAVE_LIBTK8_4=1 -DHAVE_OTCL_H=1 > -DHAVE_LIBOTCL1_8=1 > -I. -I/home/Administrator/ns/2.27/otcl-1.8 > -I/home/Administrator/ns/2.27/include > -I/home/Administrator/ns/2.27/include -o > embedded-tcl.o embedded-tcl.cc > > output: > Parse error soemthing like this. > > embedded-tcl.cc:1328: error: parse error before `[' > token > embedded-tcl.cc:1328: error: stray '\' in program > embedded-tcl.cc:1328: error: stray '\' in program > embedded-tcl.cc:1328: error: stray '\' in program > embedded-tcl.cc:1328: error: stray '\' in program > embedded-tcl.cc:1330: error: stray '\' in program > embedded-tcl.cc:1330: error: stray '\' in program > embedded-tcl.cc:1330: error: stray '\' in program > embedded-tcl.cc:1330: error: stray '\' in program > embedded-tcl.cc:1331:23: missing terminating " > character > embedded-tcl.cc:1332: error: stray '\' in program > embedded-tcl.cc:1332: error: stray '\' in program > embedded-tcl.cc:1333:32: missing terminating " > character > embedded-tcl.cc:1334: error: stray '\' in program > embedded-tcl.cc:1334: error: stray '\' in program > embedded-tcl.cc:1334: error: stray '\' in program > embedded-tcl.cc:1336: error: stray '\' in program > embedded-tcl.cc:1338: error: stray '\' in program > embedded-tcl.cc:1340: error: stray '\' in program > embedded-tcl.cc:1340: error: parse error before `}' > token > embedded-tcl.cc:1342: error: stray '\' in program > embedded-tcl.cc:1342: error: stray '\' in program > embedded-tcl.cc:1342: error: stray '\' in program > embedded-tcl.cc:1342: error: parse error before > `tcl' > embedded-tcl.cc:1346: error: stray '\' in program > embedded-tcl.cc:1348: error: stray '\' in program > embedded-tcl.cc:1350: error: stray '\' in program > embedded-tcl.cc:1352: error: stray '\' in program > embedded-tcl.cc:1354: error: stray '\' in program > embedded-tcl.cc:1354: error: parse error before `[' > token > embedded-tcl.cc:1356: error: stray '\' in program > embedded-tcl.cc:1358: error: stray '\' in program > embedded-tcl.cc:1358: error: stray '\' in program > embedded-tcl.cc:1359:21: missing terminating " > character > embedded-tcl.cc:1360: error: stray '\' in program > embedded-tcl.cc:1362: error: stray '\' in program > embedded-tcl.cc:1362: error: parse error before `(' > token > embedded-tcl.cc:1364: error: stray '\' in program > embedded-tcl.cc:1366: error: stray '\' in program > embedded-tcl.cc:1366: error: parse error before `#' > token > embedded-tcl.cc:1368: error: stray '\' in program > embedded-tcl.cc:1370: error: stray '\' in program > embedded-tcl.cc:1370: error: stray '\' in program > embedded-tcl.cc:1370: error: stray '\' in program > embedded-tcl.cc:1370: error: parse error before > `tcl' > embedded-tcl.cc:1374: error: stray '\' in program > embedded-tcl.cc:1376: error: stray '\' in program > embedded-tcl.cc:1378: error: stray '\' in program > embedded-tcl.cc:1378: error: stray '\' in program > embedded-tcl.cc:1378: error: stray '\' in program > embedded-tcl.cc:1378: error: syntax error before `{' > token > Rgrds, Tan. File: embedded-tcl.cc > static char code[] = " > \n\ > if {[info commands package] == \"\"} { > \n\ > error \"version mismatch: library\\nscripts expect > Tcl version 7.5b1 or later but the loaded version > is\\nonly [info patchlevel]\" > \n\ > } > \n\ > package require -exact Tcl 8.4 > \n\ > > \n\ > > \n\ > if {![info exists auto_path]} { > \n\ > if {[info exists env(TCLLIBPATH)]} { > \n\ > set auto_path $env(TCLLIBPATH) > \n\ > } else { > \n\ > set auto_path \"\" > \n\ > } > \n\ > } > \n\ > namespace eval tcl { > \n\ > variable Dir > \n\ > if {[info library] != \"\"} { > \n\ > foreach Dir [list [info library] [file dirname [info > library]]] { > \n\ > if {[lsearch -exact $::auto_path $Dir] < 0} { > \n\ > lappend ::auto_path $Dir > \n\ > } > \n\ > } > \n\ > } > \n\ > set Dir [file join [file dirname [file dirname \\ > \n\ > [info nameofexecutable]]] lib] > \n\ > if {[lsearch -exact $::auto_path $Dir] < 0} { > \n\ > lappend ::auto_path $Dir > \n\ > } > \n\ > if {[info exists ::tcl_pkgPath]} { > \n\ > foreach Dir $::tcl_pkgPath { > \n\ > if {[lsearch -exact $::auto_path $Dir] < 0} { > \n\ > lappend ::auto_path $Dir > \n\ > } > \n\ > } > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > if {(![interp issafe]) && [string equal > $tcl_platform(platform) \"windows\"]} { > \n\ > namespace eval tcl { > \n\ > proc EnvTraceProc {lo n1 n2 op} { > \n\ > set x $::env($n2) > \n\ > set ::env($lo) $x > \n\ > set ::env([string toupper $lo]) $x > \n\ > } > \n\ > proc InitWinEnv {} { > \n\ > global env tcl_platform > \n\ > foreach p [array names env] { > \n\ > set u [string toupper $p] > \n\ > if {![string equal $u $p]} { > \n\ > switch -- $u { > \n\ > COMSPEC - > \n\ > PATH { > \n\ > if {![info exists env($u)]} { > \n\ > set env($u) $env($p) > \n\ > } > \n\ > trace variable env($p) w \\ > \n\ > [namespace code [list EnvTraceProc $p]] > \n\ > trace variable env($u) w \\ > \n\ > [namespace code [list EnvTraceProc $p]] > \n\ > } > \n\ > } > \n\ > } > \n\ > } > \n\ > if {![info exists env(COMSPEC)]} { > \n\ > if {[string equal $tcl_platform(os) \"Windows NT\"]} > { > \n\ > set env(COMSPEC) cmd.exe > \n\ > } else { > \n\ > set env(COMSPEC) command.com > \n\ > } > \n\ > } > \n\ > } > \n\ > InitWinEnv > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > package unknown tclPkgUnknown > \n\ > > \n\ > if {![interp issafe]} { > \n\ > if {[string equal $::tcl_platform(platform) > \"unix\"] && \\ > \n\ > [string equal $::tcl_platform(os) \"Darwin\"]} { > \n\ > package unknown [list tcl::MacOSXPkgUnknown [package > unknown]] > \n\ > } > \n\ > if {[string equal $::tcl_platform(platform) > \"macintosh\"]} { > \n\ > package unknown [list tcl::MacPkgUnknown [package > unknown]] > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > if {[llength [info commands exec]] == 0} { > \n\ > > \n\ > > \n\ > set auto_noexec 1 > \n\ > } > \n\ > set errorCode \"\" > \n\ > set errorInfo \"\" > \n\ > > \n\ > > \n\ > if {[llength [info commands tclLog]] == 0} { > \n\ > proc tclLog {string} { > \n\ > catch {puts stderr $string} > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc unknown args { > \n\ > global auto_noexec auto_noload env unknown_pending > tcl_interactive > \n\ > global errorCode errorInfo > \n\ > > \n\ > > \n\ > set cmd [lindex $args 0] > \n\ > if {[regexp \"^:*namespace\\[ \\t\\n\\]+inscope\" > $cmd] && [llength $cmd] == 4} { > \n\ > set arglist [lrange $args 1 end] > \n\ > set ret [catch {uplevel 1 ::$cmd $arglist} result] > \n\ > if {$ret == 0} { > \n\ > return $result > \n\ > } else { > \n\ > return -code $ret -errorcode $errorCode $result > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > set savedErrorCode $errorCode > \n\ > set savedErrorInfo $errorInfo > \n\ > set name [lindex $args 0] > \n\ > if {![info exists auto_noload]} { > \n\ > if {[info exists unknown_pending($name)]} { > \n\ > return -code error \"self-referential recursion in > \\\"unknown\\\" for command \\\"$name\\\"\"; > \n\ > } > \n\ > set unknown_pending($name) pending; > \n\ > set ret [catch {auto_load $name [uplevel 1 > {::namespace current}]} msg] > \n\ > unset unknown_pending($name); > \n\ > if {$ret != 0} { > \n\ > append errorInfo \"\\n (autoloading > \\\"$name\\\")\" > \n\ > return -code $ret -errorcode $errorCode -errorinfo > $errorInfo $msg > \n\ > } > \n\ > if {![array size unknown_pending]} { > \n\ > unset unknown_pending > \n\ > } > \n\ > if {$msg} { > \n\ > set errorCode $savedErrorCode > \n\ > set errorInfo $savedErrorInfo > \n\ > set code [catch {uplevel 1 $args} msg] > \n\ > if {$code == 1} { > \n\ > set cinfo $args > \n\ > set ellipsis \"\" > \n\ > while {[string bytelength $cinfo] > 150} { > \n\ > set cinfo [string range $cinfo 0 end-1] > \n\ > set ellipsis \"...\" > \n\ > } > \n\ > append cinfo $ellipsis \"\\\"\\n (\\\"uplevel\\\" > body line 1)\" > \n\ > append cinfo \"\\n invoked from within\" > \n\ > append cinfo \"\\n\\\"uplevel 1 \\$args\\\"\" > \n\ > set expect \"$msg\\n while > executing\\n\\\"$cinfo\" > \n\ > if {$errorInfo eq $expect} { > \n\ > return -code error -errorcode $errorCode $msg > \n\ > } > \n\ > set expect \"\\n invoked from > within\\n\\\"$cinfo\" > \n\ > set exlen [string length $expect] > \n\ > set eilen [string length $errorInfo] > \n\ > set i [expr {$eilen - $exlen - 1}] > \n\ > set einfo [string range $errorInfo 0 $i] > \n\ > if {$errorInfo ne \"$einfo$expect\"} { > \n\ > error \"Tcl bug: unexpected stack trace in > \\\"unknown\\\"\" {} \\ > \n\ > [list CORE UNKNOWN BADTRACE $expect $errorInfo] > \n\ > } > \n\ > return -code error -errorcode $errorCode \\ > \n\ > -errorinfo $einfo $msg > \n\ > } else { > \n\ > return -code $code $msg > \n\ > } > \n\ > } > \n\ > } > \n\ > > \n\ > if {([info level] == 1) && [string equal [info > script] \"\"] \\ > \n\ > && [info exists tcl_interactive] && > $tcl_interactive} { > \n\ > if {![info exists auto_noexec]} { > \n\ > set new [auto_execok $name] > \n\ > if {$new != \"\"} { > \n\ > set errorCode $savedErrorCode > \n\ > set errorInfo $savedErrorInfo > \n\ > set redir \"\" > \n\ > if {[string equal [info commands console] \"\"]} { > \n\ > set redir \">&@stdout <@stdin\" > \n\ > } > \n\ > return [uplevel 1 exec $redir $new [lrange $args 1 > end]] > \n\ > } > \n\ > } > \n\ > set errorCode $savedErrorCode > \n\ > set errorInfo $savedErrorInfo > \n\ > if {[string equal $name \"!!\"]} { > \n\ > set newcmd [history event] > \n\ > } elseif {[regexp {^!(.+)$} $name dummy event]} { > \n\ > set newcmd [history event $event] > \n\ > } elseif {[regexp {^\\^([^^]*)\\^([^^]*)\\^?$} $name > dummy old new]} { > \n\ > set newcmd [history event -1] > \n\ > catch {regsub -all -- $old $newcmd $new newcmd} > \n\ > } > \n\ > if {[info exists newcmd]} { > \n\ > tclLog $newcmd > \n\ > history change $newcmd 0 > \n\ > return [uplevel 1 $newcmd] > \n\ > } > \n\ > > \n\ > set ret [catch {set cmds [info commands $name*]} > msg] > \n\ > if {[string equal $name \"::\"]} { > \n\ > set name \"\" > \n\ > } > \n\ > if {$ret != 0} { > \n\ > return -code $ret -errorcode $errorCode \\ > \n\ > \"error in unknown while checking if \\\"$name\\\" > is a unique command abbreviation: $msg\" > \n\ > } > \n\ > if {[llength $cmds] == 1} { > \n\ > return [uplevel 1 [lreplace $args 0 0 $cmds]] > \n\ > } > \n\ > if {[llength $cmds]} { > \n\ > if {[string equal $name \"\"]} { > \n\ > return -code error \"empty command name \\\"\\\"\" > \n\ > } else { > \n\ > return -code error \\ > \n\ > \"ambiguous command name \\\"$name\\\": [lsort > $cmds]\" > \n\ > } > \n\ > } > \n\ > } > \n\ > return -code error \"invalid command name > \\\"$name\\\"\" > \n\ > } > \n\ > > \n\ > > \n\ > proc auto_load {cmd {namespace {}}} { > \n\ > global auto_index auto_oldpath auto_path > \n\ > > \n\ > if {[string length $namespace] == 0} { > \n\ > set namespace [uplevel 1 [list ::namespace current]] > \n\ > } > \n\ > set nameList [auto_qualify $cmd $namespace] > \n\ > lappend nameList $cmd > \n\ > foreach name $nameList { > \n\ > if {[info exists auto_index($name)]} { > \n\ > namespace eval :: $auto_index($name) > \n\ > if {[namespace which -command $name] ne \"\"} { > \n\ > return 1 > \n\ > } > \n\ > } > \n\ > } > \n\ > if {![info exists auto_path]} { > \n\ > return 0 > \n\ > } > \n\ > > \n\ > if {![auto_load_index]} { > \n\ > return 0 > \n\ > } > \n\ > foreach name $nameList { > \n\ > if {[info exists auto_index($name)]} { > \n\ > namespace eval :: $auto_index($name) > \n\ > if {[namespace which -command $name] ne \"\"} { > \n\ > return 1 > \n\ > } > \n\ > } > \n\ > } > \n\ > return 0 > \n\ > } > \n\ > > \n\ > > \n\ > proc auto_load_index {} { > \n\ > global auto_index auto_oldpath auto_path errorInfo > errorCode > \n\ > > \n\ > if {[info exists auto_oldpath] && \\ > \n\ > [string equal $auto_oldpath $auto_path]} { > \n\ > return 0 > \n\ > } > \n\ > set auto_oldpath $auto_path > \n\ > > \n\ > > \n\ > set issafe [interp issafe] > \n\ > for {set i [expr {[llength $auto_path] - 1}]} {$i >= > 0} {incr i -1} { > \n\ > set dir [lindex $auto_path $i] > \n\ > set f \"\" > \n\ > if {$issafe} { > \n\ > catch {source [file join $dir tclIndex]} > \n\ > } elseif {[catch {set f [open [file join $dir > tclIndex]]}]} { > \n\ > continue > \n\ > } else { > \n\ > set error [catch { > \n\ > set id [gets $f] > \n\ > if {[string equal $id \\ > \n\ > \"# Tcl autoload index file, version 2.0\"]} { > \n\ > eval [read $f] > \n\ > } elseif {[string equal $id \"# Tcl autoload index > file: each line identifies a Tcl\"]} { > \n\ > while {[gets $f line] >= 0} { > \n\ > if {[string equal [string index $line 0] \"#\"] \\ > \n\ > || ([llength $line] != 2)} { > \n\ > continue > \n\ > } > \n\ > set name [lindex $line 0] > \n\ > set auto_index($name) \\ > \n\ > \"source [file join $dir [lindex $line 1]]\" > \n\ > } > \n\ > } else { > \n\ > error \"[file join $dir tclIndex] isn't a proper Tcl > index file\" > \n\ > } > \n\ > } msg] > \n\ > if {$f != \"\"} { > \n\ > close $f > \n\ > } > \n\ > if {$error} { > \n\ > error $msg $errorInfo $errorCode > \n\ > } > \n\ > } > \n\ > } > \n\ > return 1 > \n\ > } > \n\ > > \n\ > > \n\ > proc auto_qualify {cmd namespace} { > \n\ > > \n\ > set n [regsub -all {::+} $cmd :: cmd] > \n\ > > \n\ > > \n\ > > \n\ > if {[regexp {^::(.*)$} $cmd x tail]} { > \n\ > if {$n > 1} { > \n\ > return [list $cmd] > \n\ > } else { > \n\ > return [list $tail] > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > if {$n == 0} { > \n\ > if {[string equal $namespace ::]} { > \n\ > return [list $cmd] > \n\ > } else { > \n\ > return [list ${namespace}::$cmd $cmd] > \n\ > } > \n\ > } elseif {[string equal $namespace ::]} { > \n\ > return [list ::$cmd] > \n\ > } else { > \n\ > return [list ${namespace}::$cmd ::$cmd] > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc auto_import {pattern} { > \n\ > global auto_index > \n\ > > \n\ > > \n\ > if {![string match *::* $pattern]} { > \n\ > return > \n\ > } > \n\ > > \n\ > set ns [uplevel 1 [list ::namespace current]] > \n\ > set patternList [auto_qualify $pattern $ns] > \n\ > > \n\ > auto_load_index > \n\ > > \n\ > foreach pattern $patternList { > \n\ > foreach name [array names auto_index $pattern] { > \n\ > if {([namespace which -command $name] eq \"\") > \n\ > && ([namespace qualifiers $pattern] eq [namespace > qualifiers $name])} { > \n\ > namespace eval :: $auto_index($name) > \n\ > } > \n\ > } > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > if {[string equal windows $tcl_platform(platform)]} > { > \n\ > proc auto_execok name { > \n\ > global auto_execs env tcl_platform > \n\ > > \n\ > if {[info exists auto_execs($name)]} { > \n\ > return $auto_execs($name) > \n\ > } > \n\ > set auto_execs($name) \"\" > \n\ > > \n\ > set shellBuiltins [list cls copy date del erase dir > echo mkdir \\ > \n\ > md rename ren rmdir rd time type ver vol] > \n\ > if {[string equal $tcl_platform(os) \"Windows NT\"]} > { > \n\ > lappend shellBuiltins \"start\" > \n\ > } > \n\ > if {[info exists env(PATHEXT)]} { > \n\ > set execExtensions [split \";$env(PATHEXT)\" \";\"] > \n\ > } else { > \n\ > set execExtensions [list {} .com .exe .bat] > \n\ > } > \n\ > > \n\ > if {[lsearch -exact $shellBuiltins $name] != -1} { > \n\ > set cmd $env(COMSPEC) > \n\ > if {[file exists $cmd]} { > \n\ > set cmd [file attributes $cmd -shortname] > \n\ > } > \n\ > return [set auto_execs($name) [list $cmd /c $name]] > \n\ > } > \n\ > > \n\ > if {[llength [file split $name]] != 1} { > \n\ > foreach ext $execExtensions { > \n\ > set file ${name}${ext} > \n\ > if {[file exists $file] && ![file isdirectory > $file]} { > \n\ > return [set auto_execs($name) [list $file]] > \n\ > } > \n\ > } > \n\ > return \"\" > \n\ > } > \n\ > > \n\ > set path \"[file dirname [info nameof]];.;\" > \n\ > if {[info exists env(WINDIR)]} { > \n\ > set windir $env(WINDIR) > \n\ > } > \n\ > if {[info exists windir]} { > \n\ > if {[string equal $tcl_platform(os) \"Windows NT\"]} > { > \n\ > append path \"$windir/system32;\" > \n\ > } > \n\ > append path \"$windir/system;$windir;\" > \n\ > } > \n\ > > \n\ > foreach var {PATH Path path} { > \n\ > if {[info exists env($var)]} { > \n\ > append path \";$env($var)\" > \n\ > } > \n\ > } > \n\ > > \n\ > foreach dir [split $path {;}] { > \n\ > if {[info exists checked($dir)] || [string equal {} > $dir]} { continue } > \n\ > set checked($dir) {} > \n\ > foreach ext $execExtensions { > \n\ > set file [file join $dir ${name}${ext}] > \n\ > if {[file exists $file] && ![file isdirectory > $file]} { > \n\ > return [set auto_execs($name) [list $file]] > \n\ > } > \n\ > } > \n\ > } > \n\ > return \"\" > \n\ > } > \n\ > > \n\ > } else { > \n\ > proc auto_execok name { > \n\ > global auto_execs env > \n\ > > \n\ > if {[info exists auto_execs($name)]} { > \n\ > return $auto_execs($name) > \n\ > } > \n\ > set auto_execs($name) \"\" > \n\ > if {[llength [file split $name]] != 1} { > \n\ > if {[file executable $name] && ![file isdirectory > $name]} { > \n\ > set auto_execs($name) [list $name] > \n\ > } > \n\ > return $auto_execs($name) > \n\ > } > \n\ > foreach dir [split $env(PATH) :] { > \n\ > if {[string equal $dir \"\"]} { > \n\ > set dir . > \n\ > } > \n\ > set file [file join $dir $name] > \n\ > if {[file executable $file] && ![file isdirectory > $file]} { > \n\ > set auto_execs($name) [list $file] > \n\ > return $auto_execs($name) > \n\ > } > \n\ > } > \n\ > return \"\" > \n\ > } > \n\ > > \n\ > } > \n\ > > \n\ > proc tcl::CopyDirectory {action src dest} { > \n\ > set nsrc [file normalize $src] > \n\ > set ndest [file normalize $dest] > \n\ > if {[string equal $action \"renaming\"]} { > \n\ > if {[lsearch -exact [file volumes] $nsrc] != -1} { > \n\ > return -code error \"error $action \\\"$src\\\" to\\ > \n\ > \\\"$dest\\\": trying to rename a volume or move a > directory\\ > \n\ > into itself\" > \n\ > } > \n\ > } > \n\ > if {[file exists $dest]} { > \n\ > if {$nsrc == $ndest} { > \n\ > return -code error \"error $action \\\"$src\\\" to\\ > \n\ > \\\"$dest\\\": trying to rename a volume or move a > directory\\ > \n\ > into itself\" > \n\ > } > \n\ > if {[string equal $action \"copying\"]} { > \n\ > return -code error \"error $action \\\"$src\\\" to\\ > \n\ > \\\"$dest\\\": file already exists\" > \n\ > } else { > \n\ > set existing [glob -nocomplain -directory $dest * > .*] > \n\ > eval [list lappend existing] \\ > \n\ > [glob -nocomplain -directory $dest -type hidden * > .*] > \n\ > foreach s $existing { > \n\ > if {([file tail $s] != \".\") && ([file tail $s] != > \"..\")} { > \n\ > return -code error \"error $action \\\"$src\\\" to\\ > \n\ > \\\"$dest\\\": file already exists\" > \n\ > } > \n\ > } > \n\ > } > \n\ > } else { > \n\ > if {[string first $nsrc $ndest] != -1} { > \n\ > set srclen [expr {[llength [file split $nsrc]] -1}] > \n\ > set ndest [lindex [file split $ndest] $srclen] > \n\ > if {$ndest == [file tail $nsrc]} { > \n\ > return -code error \"error $action \\\"$src\\\" to\\ > \n\ > \\\"$dest\\\": trying to rename a volume or move a > directory\\ > \n\ > into itself\" > \n\ > } > \n\ > } > \n\ > file mkdir $dest > \n\ > } > \n\ > set filelist [concat [glob -nocomplain -directory > $src *] \\ > \n\ > [glob -nocomplain -directory $src -types hidden *]] > \n\ > > \n\ > foreach s [lsort -unique $filelist] { > \n\ > if {([file tail $s] != \".\") && ([file tail $s] != > \"..\")} { > \n\ > file copy $s [file join $dest [file tail $s]] > \n\ > } > \n\ > } > \n\ > return > \n\ > } > \n\ > > \n\ > > \n\ > namespace eval tcl { > \n\ > variable history > \n\ > if {![info exists history]} { > \n\ > array set history { > \n\ > nextid 0 > \n\ > keep 20 > \n\ > oldest -20 > \n\ > } > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc history {args} { > \n\ > set len [llength $args] > \n\ > if {$len == 0} { > \n\ > return [tcl::HistInfo] > \n\ > } > \n\ > set key [lindex $args 0] > \n\ > set options \"add, change, clear, event, info, keep, > nextid, or redo\" > \n\ > switch -glob -- $key { > \n\ > a* { # history add > \n\ > > \n\ > if {$len > 3} { > \n\ > return -code error \"wrong # args: should be > \\\"history add event ?exec?\\\"\" > \n\ > } > \n\ > if {![string match $key* add]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > if {$len == 3} { > \n\ > set arg [lindex $args 2] > \n\ > if {! ([string match e* $arg] && [string match $arg* > exec])} { > \n\ > return -code error \"bad argument \\\"$arg\\\": > should be \\\"exec\\\"\" > \n\ > } > \n\ > } > \n\ > return [tcl::HistAdd [lindex $args 1] [lindex $args > 2]] > \n\ > } > \n\ > ch* { # history change > \n\ > > \n\ > if {($len > 3) || ($len < 2)} { > \n\ > return -code error \"wrong # args: should be > \\\"history change newValue ?event?\\\"\" > \n\ > } > \n\ > if {![string match $key* change]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > if {$len == 2} { > \n\ > set event 0 > \n\ > } else { > \n\ > set event [lindex $args 2] > \n\ > } > \n\ > > \n\ > return [tcl::HistChange [lindex $args 1] $event] > \n\ > } > \n\ > cl* { # history clear > \n\ > > \n\ > if {($len > 1)} { > \n\ > return -code error \"wrong # args: should be > \\\"history clear\\\"\" > \n\ > } > \n\ > if {![string match $key* clear]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > return [tcl::HistClear] > \n\ > } > \n\ > e* { # history event > \n\ > > \n\ > if {$len > 2} { > \n\ > return -code error \"wrong # args: should be > \\\"history event ?event?\\\"\" > \n\ > } > \n\ > if {![string match $key* event]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > if {$len == 1} { > \n\ > set event -1 > \n\ > } else { > \n\ > set event [lindex $args 1] > \n\ > } > \n\ > return [tcl::HistEvent $event] > \n\ > } > \n\ > i* { # history info > \n\ > > \n\ > if {$len > 2} { > \n\ > return -code error \"wrong # args: should be > \\\"history info ?count?\\\"\" > \n\ > } > \n\ > if {![string match $key* info]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > return [tcl::HistInfo [lindex $args 1]] > \n\ > } > \n\ > k* { # history keep > \n\ > > \n\ > if {$len > 2} { > \n\ > return -code error \"wrong # args: should be > \\\"history keep ?count?\\\"\" > \n\ > } > \n\ > if {$len == 1} { > \n\ > return [tcl::HistKeep] > \n\ > } else { > \n\ > set limit [lindex $args 1] > \n\ > if {[catch {expr {~$limit}}] || ($limit < 0)} { > \n\ > return -code error \"illegal keep count > \\\"$limit\\\"\" > \n\ > } > \n\ > return [tcl::HistKeep $limit] > \n\ > } > \n\ > } > \n\ > n* { # history nextid > \n\ > > \n\ > if {$len > 1} { > \n\ > return -code error \"wrong # args: should be > \\\"history nextid\\\"\" > \n\ > } > \n\ > if {![string match $key* nextid]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > return [expr {$tcl::history(nextid) + 1}] > \n\ > } > \n\ > r* { # history redo > \n\ > > \n\ > if {$len > 2} { > \n\ > return -code error \"wrong # args: should be > \\\"history redo ?event?\\\"\" > \n\ > } > \n\ > if {![string match $key* redo]} { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > return [tcl::HistRedo [lindex $args 1]] > \n\ > } > \n\ > default { > \n\ > return -code error \"bad option \\\"$key\\\": must > be $options\" > \n\ > } > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistAdd {command {exec {}}} { > \n\ > variable history > \n\ > > \n\ > if {[string trim $command] == \"\"} { > \n\ > return \"\" > \n\ > } > \n\ > > \n\ > set i [incr history(nextid)] > \n\ > set history($i) $command > \n\ > set j [incr history(oldest)] > \n\ > if {[info exists history($j)]} {unset history($j)} > \n\ > if {[string match e* $exec]} { > \n\ > return [uplevel #0 $command] > \n\ > } else { > \n\ > return {} > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistKeep {{limit {}}} { > \n\ > variable history > \n\ > if {[string length $limit] == 0} { > \n\ > return $history(keep) > \n\ > } else { > \n\ > set oldold $history(oldest) > \n\ > set history(oldest) [expr {$history(nextid) - > $limit}] > \n\ > for {} {$oldold <= $history(oldest)} {incr oldold} { > \n\ > if {[info exists history($oldold)]} {unset > history($oldold)} > \n\ > } > \n\ > set history(keep) $limit > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistClear {} { > \n\ > variable history > \n\ > set keep $history(keep) > \n\ > unset history > \n\ > array set history [list \\ > \n\ > nextid 0 \\ > \n\ > keep $keep \\ > \n\ > oldest -$keep \\ > \n\ > ] > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistInfo {{num {}}} { > \n\ > variable history > \n\ > if {$num == {}} { > \n\ > set num [expr {$history(keep) + 1}] > \n\ > } > \n\ > set result {} > \n\ > set newline \"\" > \n\ > for {set i [expr {$history(nextid) - $num + 1}]} \\ > \n\ > {$i <= $history(nextid)} {incr i} { > \n\ > if {![info exists history($i)]} { > \n\ > continue > \n\ > } > \n\ > set cmd [string trimright $history($i) \\ \\n] > \n\ > regsub -all \\n $cmd \"\\n\\t\" cmd > \n\ > append result $newline[format \"%6d %s\" $i $cmd] > \n\ > set newline \\n > \n\ > } > \n\ > return $result > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistRedo {{event -1}} { > \n\ > variable history > \n\ > if {[string length $event] == 0} { > \n\ > set event -1 > \n\ > } > \n\ > set i [HistIndex $event] > \n\ > if {$i == $history(nextid)} { > \n\ > return -code error \"cannot redo the current event\" > \n\ > } > \n\ > set cmd $history($i) > \n\ > HistChange $cmd 0 > \n\ > uplevel #0 $cmd > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistIndex {event} { > \n\ > variable history > \n\ > if {[catch {expr {~$event}}]} { > \n\ > for {set i [expr {$history(nextid)-1}]} {[info > exists history($i)]} \\ > \n\ > {incr i -1} { > \n\ > if {[string match $event* $history($i)]} { > \n\ > return $i; > \n\ > } > \n\ > if {[string match $event $history($i)]} { > \n\ > return $i; > \n\ > } > \n\ > } > \n\ > return -code error \"no event matches > \\\"$event\\\"\" > \n\ > } elseif {$event <= 0} { > \n\ > set i [expr {$history(nextid) + $event}] > \n\ > } else { > \n\ > set i $event > \n\ > } > \n\ > if {$i <= $history(oldest)} { > \n\ > return -code error \"event \\\"$event\\\" is too far > in the past\" > \n\ > } > \n\ > if {$i > $history(nextid)} { > \n\ > return -code error \"event \\\"$event\\\" hasn't > occured yet\" > \n\ > } > \n\ > return $i > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistEvent {event} { > \n\ > variable history > \n\ > set i [HistIndex $event] > \n\ > if {[info exists history($i)]} { > \n\ > return [string trimright $history($i) \\ \\n] > \n\ > } else { > \n\ > return \"\"; > \n\ > } > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl::HistChange {cmd {event 0}} { > \n\ > variable history > \n\ > set i [HistIndex $event] > \n\ > set history($i) $cmd > \n\ > } > \n\ > > \n\ > > \n\ > if {[string equal $::tcl_platform(platform) > \"windows\"]} { > \n\ > set tcl_wordchars \"\\\\S\" > \n\ > set tcl_nonwordchars \"\\\\s\" > \n\ > } else { > \n\ > set tcl_wordchars \"\\\\w\" > \n\ > set tcl_nonwordchars \"\\\\W\" > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl_wordBreakAfter {str start} { > \n\ > global tcl_nonwordchars tcl_wordchars > \n\ > set str [string range $str $start end] > \n\ > if {[regexp -indices > \"$tcl_wordchars$tcl_nonwordchars|$tcl_nonwordchars$tcl_wordchars\" > $str result]} { > \n\ > return [expr {[lindex $result 1] + $start}] > \n\ > } > \n\ > return -1 > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl_wordBreakBefore {str start} { > \n\ > global tcl_nonwordchars tcl_wordchars > \n\ > if {[string equal $start end]} { > \n\ > set start [string length $str] > \n\ > } > \n\ > if {[regexp -indices > \"^.*($tcl_wordchars$tcl_nonwordchars|$tcl_nonwordchars$tcl_wordchars)\" > [string range $str 0 $start] result]} { > \n\ > return [lindex $result 1] > \n\ > } > \n\ > return -1 > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl_endOfWord {str start} { > \n\ > global tcl_nonwordchars tcl_wordchars > \n\ > if {[regexp -indices > \"$tcl_nonwordchars*$tcl_wordchars+$tcl_nonwordchars\" > \\ > \n\ > [string range $str $start end] result]} { > \n\ > return [expr {[lindex $result 1] + $start}] > \n\ > } > \n\ > return -1 > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl_startOfNextWord {str start} { > \n\ > global tcl_nonwordchars tcl_wordchars > \n\ > if {[regexp -indices > \"$tcl_wordchars*$tcl_nonwordchars+$tcl_wordchars\" > \\ > \n\ > [string range $str $start end] result]} { > \n\ > return [expr {[lindex $result 1] + $start}] > \n\ > } > \n\ > return -1 > \n\ > } > \n\ > > \n\ > > \n\ > proc tcl_startOfPreviousWord {str start} { > \n\ > global tcl_nonwordchars tcl_wordchars > \n\ > if {[string equal $start end]} { > \n\ > set start [string length $str] > \n\ > } > \n\ > if {[regexp -indices \\ > \n\ > \"$tcl_nonwordchars*($tcl_wordchars+)$tcl_nonwordchars*\\$\" > \\ > \n\ > [string range $str 0 [expr {$start - 1}]] result > word]} { > \n\ > return [lindex $word 0] > \n\ > } > \n\ > return -1 > \n\ > } > \n\ > > \n\ > package provide http 1.0 > \n\ > > \n\ > array set http { > \n\ > -accept */* > \n\ > -proxyhost {} > \n\ > -proxyport {} > \n\ > -useragent {Tcl http client package 1.0} > \n\ > -proxyfilter httpProxyRequired > \n\ > } > \n\ > proc http_config {args} { > \n\ > global http > \n\ > set options [lsort [array names http -*]] > \n\ > set usage [join $options \", \"] > \n\ > if {[llength $args] == 0} { > \n\ > set result {} > \n\ > foreach name $options { > \n\ > lappend result $name $http($name) > \n\ > } > \n\ > return $result > \n\ > } > \n\ > regsub -all -- - $options {} options > \n\ > set pat ^-([join $options |])$ > \n\ > if {[llength $args] == 1} { > \n\ > set flag [lindex $args 0] > \n\ > if {[regexp -- $pat $flag]} { > \n\ > return $http($flag) > \n\ > } else { > \n\ > return -code error \"Unknown option $flag, must be: > $usage\" > \n\ > } > \n\ > } else { > \n\ > foreach {flag value} $args { > \n\ > if {[regexp -- $pat $flag]} { > \n\ > set http($flag) $value > \n\ > } else { > \n\ > return -code error \"Unknown option $flag, must be: > $usage\" > \n\ > } > \n\ > } > \n\ > } > \n\ > } > \n\ > > \n\ > proc httpFinish { token {errormsg \"\"} } { > \n\ > upvar #0 $token state > \n\ > global errorInfo errorCode > \n\ > if {[string length $errormsg] != 0} { > \n\ > set state(error) [list $errormsg $errorInfo > $errorCode] > \n\ > set state(status) error > \n\ > } > \n\ > catch {close $state(sock)} > \n\ > catch {after cancel $state(after)} > \n\ > if {[info exists state(-command)]} { > \n\ > if {[catch {eval $state(-command) {$token}} err]} { > \n\ > if {[string length $errormsg] == 0} { > \n\ > set state(error) [list $err $errorInfo $errorCode] > \n\ > set state(status) error > \n\ > } > \n\ > } > \n\ > unset state(-command) > \n\ > } > \n\ > } > \n\ > proc http_reset { token {why reset} } { > \n\ > upvar #0 $token state > \n\ > set state(status) $why > \n\ > catch {fileevent $state(sock) readable {}} > \n\ > httpFinish $token > \n\ > if {[info exists state(error)]} { > \n\ > set errorlist $state(error) > \n\ > unset state(error) > \n\ > eval error $errorlist > \n\ > } > \n\ > } > \n\ > proc http_get { url args } { > \n\ > global http > \n\ > if {![info exists http(uid)]} { > \n\ > set http(uid) 0 > \n\ > } > \n\ > set token http#[incr http(uid)] > \n\ > upvar #0 $token state > \n\ > http_reset $token > \n\ > array set state { > \n\ > -blocksize 8192 > \n\ > -validate 0 > \n\ > -headers {} > \n\ > -timeout 0 > \n\ > state header > \n\ > meta {} > \n\ > currentsize 0 > \n\ > totalsize 0 > \n\ > type text/html > \n\ > body {} > \n\ > status \"\" > \n\ > } > \n\ > set options {-blocksize -channel -command -handler > -headers \\ > \n\ > -progress -query -validate -timeout} > \n\ > set usage [join $options \", \"] > \n\ > regsub -all -- - $options {} options > \n\ > set pat ^-([join $options |])$ > \n\ > foreach {flag value} $args { > \n\ > if {[regexp $pat $flag]} { > \n\ > if {[info exists state($flag)] && \\ > \n\ > [regexp {^[0-9]+$} $state($flag)] && \\ > \n\ > ![regexp {^[0-9]+$} $value]} { > \n\ > return -code error \"Bad value for $flag ($value), > must be integer\" > \n\ > } > \n\ > set state($flag) $value > \n\ > } else { > \n\ > return -code error \"Unknown option $flag, can be: > $usage\" > \n\ > } > \n\ > } > \n\ > if {! [regexp -nocase > {^(http://)?([^/:]+)(:([0-9]+))?(/.*)?$} $url \\ > \n\ > x proto host y port srvurl]} { > \n\ > error \"Unsupported URL: $url\" > \n\ > } > \n\ > if {[string length $port] == 0} { > \n\ > set port 80 > \n\ > } > \n\ > if {[string length $srvurl] == 0} { > \n\ > set srvurl / > \n\ > } > \n\ > if {[string length $proto] == 0} { > \n\ > set url http://$url > \n\ > } > \n\ > set state(url) $url > \n\ > if {![catch {$http(-proxyfilter) $host} proxy]} { > \n\ > set phost [lindex $proxy 0] > \n\ > set pport [lindex $proxy 1] > \n\ > } > \n\ > if {$state(-timeout) > 0} { > \n\ > set state(after) [after $state(-timeout) [list > http_reset $token timeout]] > \n\ > } > \n\ > if {[info exists phost] && [string length $phost]} { > \n\ > set srvurl $url > \n\ > set s [socket $phost $pport] > \n\ > } else { > \n\ > set s [socket $host $port] > \n\ > } > \n\ > set state(sock) $s > \n\ > > \n\ > > \n\ > fconfigure $s -translation {auto crlf} -buffersize > $state(-blocksize) > \n\ > > \n\ > > \n\ > catch {fconfigure $s -blocking off} > \n\ > set len 0 > \n\ > set how GET > \n\ > if {[info exists state(-query)]} { > \n\ > set len [string length $state(-query)] > \n\ > if {$len > 0} { > \n\ > set how POST > \n\ > } > \n\ > } elseif {$state(-validate)} { > \n\ > set how HEAD > \n\ > } > \n\ > puts $s \"$how $srvurl HTTP/1.0\" > \n\ > puts $s \"Accept: $http(-accept)\" > \n\ > puts $s \"Host: $host\" > \n\ > puts $s \"User-Agent: $http(-useragent)\" > \n\ > foreach {key value} $state(-headers) { > \n\ > regsub -all \\[\\n\\r\\] $value {} value > \n\ > set key [string trim $key] > \n\ > if {[string length $key]} { > \n\ > puts $s \"$key: $value\" > \n\ > } > \n\ > } > \n\ > if {$len > 0} { > \n\ > puts $s \"Content-Length: $len\" > \n\ > puts $s \"Content-Type: > application/x-www-form-urlencoded\" > \n\ > puts $s \"\" > \n\ > fconfigure $s -translation {auto binary} > \n\ > puts -nonewline $s $state(-query) > \n\ > } else { > \n\ > puts $s \"\" > \n\ > } > \n\ > flush $s > \n\ > fileevent $s readable [list httpEvent $token] > \n\ > if {! [info exists state(-command)]} { > \n\ > http_wait $token > \n\ > } > \n\ > return $token > \n\ > } > \n\ > proc http_data {token} { > \n\ > upvar #0 $token state > \n\ > return $state(body) > \n\ > } > \n\ > proc http_status {token} { > \n\ > upvar #0 $token state > \n\ > return $state(status) > \n\ > } > \n\ > proc http_code {token} { > \n\ > upvar #0 $token state > \n\ > return $state(http) > \n\ > } > \n\ > proc http_size {token} { > \n\ > upvar #0 $token state > \n\ > return $state(currentsize) > \n\ > } > \n\ > > \n\ > proc httpEvent {token} { > \n\ > upvar #0 $token state > \n\ > set s $state(sock) > \n\ > > \n\ > if {[eof $s]} { > \n\ > httpEof $token > \n\ > return > \n\ > } > \n\ > if {$state(state) == \"header\"} { > \n\ > set n [gets $s line] > \n\ > if {$n == 0} { > \n\ > set state(state) body > \n\ > if {![regexp -nocase ^text $state(type)]} { > \n\ > fconfigure $s -translation binary > \n\ > if {[info exists state(-channel)]} { > \n\ > fconfigure $state(-channel) -translation binary > \n\ > } > \n\ > } > \n\ > if {[info exists state(-channel)] && > \n\ > ![info exists state(-handler)]} { > \n\ > fileevent $s readable {} > \n\ > httpCopyStart $s $token > \n\ > } > \n\ > } elseif {$n > 0} { > \n\ > if {[regexp -nocase {^content-type:(.+)$} $line x > type]} { > \n\ > set state(type) [string trim $type] > \n\ > } > \n\ > if {[regexp -nocase {^content-length:(.+)$} $line x > length]} { > \n\ > set state(totalsize) [string trim $length] > \n\ > } > \n\ > if {[regexp -nocase {^([^:]+):(.+)$} $line x key > value]} { > \n\ > lappend state(meta) $key $value > \n\ > } elseif {[regexp ^HTTP $line]} { > \n\ > set state(http) $line > \n\ > } > \n\ > } > \n\ > } else { > \n\ > if {[catch { > \n\ > if {[info exists state(-handler)]} { > \n\ > set n [eval $state(-handler) {$s $token}] > \n\ > } else { > \n\ > set block [read $s $state(-blocksize)] > \n\ > set n [string length $block] > \n\ > if {$n >= 0} { > \n\ > append state(body) $block > \n\ > } > \n\ > } > \n\ > if {$n >= 0} { > \n\ > incr state(currentsize) $n > \n\ > } > \n\ > } err]} { > \n\ > httpFinish $token $err > \n\ > } else { > \n\ > if {[info exists state(-progress)]} { > \n\ > eval $state(-progress) {$token $state(totalsize) > $state(currentsize)} > \n\ > } > \n\ > } > \n\ > } > \n\ > } > \n\ > proc httpCopyStart {s token} { > \n\ > upvar #0 $token state > \n\ > if {[catch { > \n\ > fcopy $s $state(-channel) -size $state(-blocksize) > -command \\ > \n\ > [list httpCopyDone $token] > \n\ > } err]} { > \n\ > httpFinish $token $err > \n\ > } > \n\ > } > \n\ > proc httpCopyDone {token count {error {}}} { > \n\ > upvar #0 $token state > \n\ > set s $state(sock) > \n\ > incr state(currentsize) $count > \n\ > if {[info exists state(-progress)]} { > \n\ > eval $state(-progress) {$token $state(totalsize) > $state(currentsize)} > \n\ > } > \n\ > if {([string length $error] != 0)} { > \n\ > httpFinish $token $error > \n\ > } elseif {[eof $s]} { > \n\ > httpEof $token > \n\ > } else { > \n\ > httpCopyStart $s $token > \n\ > } > \n\ > } > \n\ > proc httpEof {token} { > \n\ > upvar #0 $token state > \n\ > if {$state(state) == \"header\"} { > \n\ > set state(status) eof > \n\ > } else { > \n\ > set state(status) ok > \n\ > } > \n\ > set state(state) eof > \n\ > httpFinish $token > \n\ > } > \n\ > proc http_wait {token} { > \n\ > upvar #0 $token state > \n\ > if {![info exists state(status)] || [string length > $state(status)] == 0} { > \n\ > vwait $token\\(status) > \n\ > } > \n\ > if {[info exists state(error)]} { > \n\ > set errorlist $state(error) > \n\ > unset state(error) > \n\ > eval error $errorlist > \n\ > } > \n\ > return $state(status) > \n\ > } > \n\ > > \n\ > > \n\ > proc http_formatQuery {args} { > \n\ > set result \"\" > \n\ > set sep \"\" > \n\ > foreach i $args { > \n\ > append result $sep [httpMapReply $i] > \n\ > if {$sep != \"=\"} { > \n\ > set sep = > \n\ > } else { > \n\ > set sep & > \n\ > } > \n\ > } > \n\ > return $result > \n\ > } > \n\ > > \n\ > > \n\ > proc httpMapReply {string} { > \n\ > global httpFormMap > \n\ > set alphanumeric a-zA-Z0-9 > \n\ > if {![info exists httpFormMap]} { > \n\ > > \n\ > for {set i 1} {$i <= 256} {incr i} { > \n\ > set c [format %c $i] > \n\ > if {![string match \\[$alphanumeric\\] $c]} { > \n\ > set httpFormMap($c) %[format %.2x $i] > \n\ > } > \n\ > } > \n\ > array set httpFormMap { > \n\ > \" \" + \\n %0d%0a > \n\ > } > \n\ > } > \n\ > regsub -all \\[^$alphanumeric\\] $string > {$httpFormMap(&)} string > \n\ > regsub -all \\n $string {\\\\n} string > \n\ > regsub -all \\t $string {\\\\t} string > \n\ > regsub -all {[][{})\\\\]\\)} $string {\\\\&} string > \n\ > return [subst $string] > \n\ > } > \n\ > > \n\ > proc httpProxyRequired {host} { > \n\ > global http > \n\ > if {[info exists http(-proxyhost)] && [string length > $http(-proxyhost)]} { > \n\ > if {![info exists http(-proxyport)] || ![string > length $http(-proxyport)]} { > \n\ > set http(-proxyport) 8080 > \n\ > } > \n\ > return [list $http(-proxyhost) $http(-proxyport)] > \n\ > } else { > \n\ > return {} > \n\ > } > \n\ > } > \n\ > "; > #include "tclcl.h" > EmbeddedTcl et_tcl(code); > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From anup.mayank at gmail.com Thu Aug 26 02:18:25 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Thu Aug 26 02:20:39 2004 Subject: [ns] Help in error messageg with FullTcp agent Message-ID: <469192b004082602185bd172f8@mail.gmail.com> Hi All, I have developed a simple application using FullTcp as transport agent. I am getting the following error message. FullTcp(_o73): recv'd pkt in CLOSED state: [0:3.0>10.0] (hlen:0, dlen:536, seq:0, ack:0, flags:0x0 (), salen:0, reason:0x0) I have put the .cc file and tcl file for your consideration. Anup /************* tempApp.cc file **************************************/ #include "tempApp.h" #include "mobilenode.h" #include static class TempAppClass : public TclClass { public: TempAppClass():TclClass("Application/TempApp") {} TclObject * create (int, const char * const *) { return (new TempApp);} }class_app_temp; //OTcl command interpreter int TempApp::command(int argc, const char * const *argv) { Tcl & tcl= Tcl::instance(); if(argc == 3) { if(strcmp(argv[1],"attach-agent")==0) { agent_=(Agent*)TclObject::lookup(argv[2]); if(agent_ == 0) { tcl.resultf("No such agent %s",argv[2]); return(TCL_ERROR); } agent_->attachApp(this); } if(strcmp(argv[1],"connect")==0) //connection of two applications { dst_ = (TempApp *)TclObject::lookup(argv[2]); if(dst_==0) { tcl.resultf("%s:connected to null object.", name_); return (TCL_ERROR); } dst_->connect(this); return(TCL_OK); } if(strcmp(argv[1],"send")==0) { send(atoi(argv[2])); return(TCL_OK); } } return (Application::command(argc,argv)); } //constructor TempApp::TempApp() { id_=var; var++; } //Trying major challenge void TempApp:: send(int nbytes) { buffer=4; Application::send(nbytes); } void TempApp::recv(int nbytes) { printf("\nAt %g recieved message from %d",Scheduler::instance().clock(),dst_->id_); } /************************* tcl file ******************************************************/ # simple-wireless.tcl # A simple example for wireless simulation # ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 2 ;# number of mobilenodes set val(rp) DSDV ;# routing protocol # ====================================================================== # Main Program # ====================================================================== # # Initialize Global Variables # set ns_ [new Simulator] set tracefd [open cache.tr w] $ns_ trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid 1000 1000 # # 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) and node(1) # configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace OFF \ -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 } $node_(0) set X_ 255.0 $node_(0) set Y_ 255.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 #Agents are created for each node and attached with them for {set i 0} {$i < $val(nn) } {incr i} { set tcp($i) [new Agent/TCP/FullTcp] $ns_ attach-agent $node_($i) $tcp($i) } for {set i 0} {$i < $val(nn) } {incr i} { set tempApp($i) [new Application/TempApp] $tempApp($i) attach-agent $tcp($i) } $ns_ connect $tcp(0) $tcp(1) $tcp(1) listen $tempApp(0) connect $tempApp(1) $tempApp(1) send 500 # 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.0 "stop" $ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd } puts "Starting Simulation..." $ns_ run From macr at tid.es Thu Aug 26 02:50:13 2004 From: macr at tid.es (=?ISO-8859-1?Q?Mar=EDa_=C1ngeles_Callejo?=) Date: Thu Aug 26 03:05:09 2004 Subject: [ns] Urgent: Control over TCP traffic Message-ID: <412DB255.3030507@tid.es> I'd like to create a scenario where I can control the number of TCP packets I send (for example, send a whole large file), is this possible? I really need your help! Thanks Marian From karina at infoworkti.com.br Thu Aug 26 04:57:18 2004 From: karina at infoworkti.com.br (karina@infoworkti.com.br) Date: Thu Aug 26 05:00:18 2004 Subject: [ns] Traffic Trace File In-Reply-To: References: <200408230710.i7N7AGv17163@cse.cuhk.edu.hk> Message-ID: <31346.200.189.112.59.1093521438.squirrel@webmail.8x.com.br> Hi users! I need some help to find out how to generate a Trafic Trace file. On Ns Manual (chapter 35) I found some information about it. But it was not enough. Each record in the trace file consists of 2 32-bit fields. The first represents the inter-packet time in microseconds, the second represents the packet size in bytes. And after that I have to convert to binary. I need to simulate (DiffServ) and generate a Traddic Trace file from it! How can I do it????? Any suggestion? regards, karina From anilsingh72 at yahoo.com Thu Aug 26 05:52:43 2004 From: anilsingh72 at yahoo.com (Anil Singh) Date: Thu Aug 26 05:54:38 2004 Subject: [ns] how to convert an OTcl class to C++ class In-Reply-To: <469192b0040825185177754c7f@mail.gmail.com> Message-ID: <20040826125243.66022.qmail@web40602.mail.yahoo.com> Anup, The reason I want to convert OTcl code to C++ code is so that I can start ns2 as c++ application and interact with it from a different application without the OTcl interpreter. Basically I am looking for a way to build API's to interact with the simulator Thanks, Anil --- Anup Mayank wrote: > Hi, > Your question is confusing. Why do you want to > convert OTcl code to > C++. Do you want to send some parameter from OTcl to > C++?? > > Anup > On Wed, 25 Aug 2004 10:41:14 -0700 (PDT), Anil Singh > wrote: > > > > > > How can I convert OTcl code to c++ code, > particularly > > I am looking at converting Link class to convert > to > > C++. > > > > Any help or suggestions would be appreciated. > > > > Thanks, > > Ajay > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - Send 10MB messages! > > http://promotions.yahoo.com/new_mail > > > > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From tks435 at yahoo.de Thu Aug 26 11:45:13 2004 From: tks435 at yahoo.de (Thomas King) Date: Thu Aug 26 11:47:52 2004 Subject: [ns] [bug] Mobile wireless simulation with only 1 node Message-ID: <200408261845.i7QIjDf07688@www.isi.edu> [Bug Report] ----------------------------- Category: Run Time - Segmentation Fault Package: ns 2.27 OS: Linux 2.6 Environment Variables: LD_LIBRARY_PATH="~/ns-2/ns-allinone-2.27/lib:~/ns-2/ns-allinone-2.27/otcl-1.8" TCL_LIBRARY="~/ns-2/ns-allinone-2.27/tcl8.4.5/library" TK_LIBRARY="~/ns-2/ns-allinone-2.27/tk8.4.5/library" ----------------------------- Description: Description of Problem: Mobile wireless simulaiton with only 1 node. How Easily Reproducible: every time Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. Setup a mobile wireless simulation with only 1 node. 2. Start simulation. Actual Results: Segfault: Program received signal SIGSEGV, Segmentation fault. 0x08104ae9 in WirelessChannel::getAffectedNodes (this=0x860dfa0, mn=0x8615ba0, radius=555.02151138909778, numAffectedNodes=0xbfffd298) at mac/channel.cc:580 580 tmpList[n++] = tmp; (gdb) Expected Results: Not to SIGSEGV! :-) Additional Information: The bug is not in channel.cc:580, as expected. The problem is in WirelessChannel::updateNodeList(...), channcel.cc. In line 515 and the following, mn->prevX_ = temp is performand. But in this case, temp is actually mn. To solve the problem, I created this patch: diff -r1.1.1.1 channel.cc 509a510,511 > > if ((mn->prevX_ == NULL) && (mn->nextX_ == NULL)) skipX = true; If you have further questions, please do not hesitate to contact me! Greetings, Thomas King From edtyy at hotmail.com Thu Aug 26 14:43:26 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Thu Aug 26 14:46:00 2004 Subject: [ns] SSA Implementation Message-ID: Hello, Does anyone has the ns implementation of Signal Stability-Based Adaptive Routing ? Thank You Edwin _________________________________________________________________ Get MSN Hotmail alerts on your mobile. http://mobile.msn.com/ac.aspx?cid=uuhp_hotmail From shikha_sk1 at hotmail.com Thu Aug 26 14:49:19 2004 From: shikha_sk1 at hotmail.com (Shikha Khanna) Date: Thu Aug 26 14:51:44 2004 Subject: [ns] Changing Queue Parameter Message-ID: Hello all, I am a new user trying my hand with ns. I actually wanted to change the size of the DropTail queue of one of my links. I used the following command for it. $ns queue-limit $node1 $node2 10 However if i give a printf in DropTail enqueue function as follows: printf("\n qlim_ - %d", qlim_); I still get the default value as 50 & not the value which i set. Can anyone pl explain this behaviour. Is the value being changed or not? Thanks, Shikha From adhocnet at gmail.com Thu Aug 26 14:50:37 2004 From: adhocnet at gmail.com (Joe Joe) Date: Thu Aug 26 14:52:42 2004 Subject: [ns] Has GPSR been ported to ns-2.27? Message-ID: Hi, Does anyone know if GPSR (Greedy Perimeter Stateless Routing) has been ported to ns-2.27? It would be great if you can offer a downloadable referral (if it does). Thank you very much. --Joe From samchihi at yahoo.fr Thu Aug 26 16:07:58 2004 From: samchihi at yahoo.fr (=?iso-8859-1?q?samir=20chihi?=) Date: Thu Aug 26 16:11:04 2004 Subject: [ns] Help: how to use the trace files Message-ID: <20040826230758.88673.qmail@web14604.mail.yahoo.com> Hi I'm a new ns user, I use xgraph to analyse the trace file wireless1-out.tr generated by ns using wireless1.tcl from the Marc Greis's tutorial. I have this error : Error in file wireless1-out.tr al line xxx Unknown line type Please, 1- what is the problem 2- how can i use the trace file Best regards --------------------------------- Cr?ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Cr?ez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis.T?l?chargez GRATUITEMENT ici ! From hz83997 at yahoo.com.cn Thu Aug 26 19:50:58 2004 From: hz83997 at yahoo.com.cn (=?gb2312?q?=FFffffd5=FFfffff7=20=FFffffba=FFffffe9?=) Date: Thu Aug 26 19:53:54 2004 Subject: [ns] difference between version 2.26 and 2.27 Message-ID: <20040827025058.48469.qmail@web15601.mail.cnb.yahoo.com> I want to implement a new protocol in ns2. The protocol work smoothly in version 2.26, but when I try to implement it in ns2 (version 2.27), there are many problems when my tcl file runs. Just like below: "$self add-target $agent $port" (procedure "_o14" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 71) (Simulator create-wireless-node line 71) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within Can anyone point out the differences between version 2.26 and 2.27 for me and tell me what else I should do to enable my protocol work in 2.27? THANKS a LOT! --------------------------------- Do You Yahoo!? 150嵐爆MP3決髄朴揮艇干秘咄赤去銘 胆溺苧佛哘嗤勝嗤朴演胆夕、凩夕才吹夕 1G祥頁1000孥囘拶窮喨徭廁制否From sayenko at cc.jyu.fi Thu Aug 26 23:14:21 2004 From: sayenko at cc.jyu.fi (Alexander Sayenko) Date: Thu Aug 26 23:18:11 2004 Subject: [ns] Changing Queue Parameter References: Message-ID: <000b01c48bfd$17f25240$44a9ea82@it.jyu.fi> Hi If you want to change the queue size, you have to do it as follows: $queue set limit_ 10 I do not remember what "$ns queue-limit ... " does but there is an answer somewhere in the archive. Sincerely, Sayenko Alexander PhD student Telecommunication laboratory, MIT department University of Jyvaskyla, Finland > > Hello all, > > I am a new user trying my hand with ns. I actually wanted to change the size of the DropTail queue of one of my links. > I used the following command for it. > $ns queue-limit $node1 $node2 10 > > However if i give a printf in DropTail enqueue function as follows: > printf("\n qlim_ - %d", qlim_); > > I still get the default value as 50 & not the value which i set. > > Can anyone pl explain this behaviour. Is the value being changed or not? > > Thanks, > Shikha From _ricciantonio_ at libero.it Fri Aug 27 00:55:37 2004 From: _ricciantonio_ at libero.it (Ricci Antonio) Date: Fri Aug 27 00:56:41 2004 Subject: [ns] URGENT: how to calculate packet loss over UDP agent Message-ID: <00dd01c48c0b$3e6bd640$322bfea9@portatile> Hello, I need to know how calculate the number of packet lost by an audio Application that sends packet over an UDP transport agent. Is there anyone who can help me?Please answer, it's important for my study. Regards Antonio Ricci From rachel.villacorta at up.edu.ph Fri Aug 27 01:37:33 2004 From: rachel.villacorta at up.edu.ph (Rachel Villacorta) Date: Fri Aug 27 01:40:39 2004 Subject: [ns] [bug] trace file Message-ID: <200408270837.i7R8bXW25991@www.isi.edu> [Bug Report] ----------------------------- Category: Other Package: ns 2.26 OS: Linux 2.4.20-8 Environment Variables: LD_LIBRARY_PATH=/home/rachel/ns2/ns-allinone-2.26/otcl-1.0a8:/home/rachel/ns2/ns-allinone-2.26/lib TCL_LIBRARY=/home/rachel/ns2/ns-allinone-2.26/tcl8.3.2/library TK_LIBRARY= ----------------------------- Description: Description of Problem: Running the same tcl script do not always produce the same trace file How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) often Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. run the same script at least twice 2. save the trace results in different files 3. Actual Results: (describe what the application did after performing the above steps) The trace files were not the same. As an example, when I run red.tcl twice with the trace saved in red1.tr(for the first run) and red2.tr (for the second run) and when I use the 'diff' command to look at the difference of the two files, the following is the output: 970173c970173 < + 733.354239 9 9p exp 125 ------- 6 6.0 10.6 38223 330466 --- > + 733.354239 9 10 exp 125 ------- 6 6.0 10.6 38223 330466 At other times, different parts of the trace files were different (e.g. 'exp' becomes 'elp' or '7.095' becomes '7>095' etc...) Expected Results: (describe what the application should have done, were the bug not present) The trace files should be exactly the same 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.) At times, the trace files generated are the same but at times after 2,3( and so on ) more runs, trace files could be different from each other.... This was also experienced in ns version 2.1b9a...Please inform me when you are able to fix this. I'll inform you immediately if I'll be able to solve this...Thanks:) Sample simulation script used: red.tcl set ns [new Simulator] global defaultRNG $defaultRNG seed 1 set time_start 0 set time_end 800 set num_sources 9 set output_node 10 #RED1.tr is replaced by RED2.tr in the second run set tf [open RED1.tr w] proc finish {} { global ns tf $ns flush-trace close $tf exit 0 } for {set i 0} {$i < $num_sources} {incr i} { set n($i) [$ns node] } set n($num_sources) [$ns node] set n($output_node) [$ns node] for {set i 0} {$i < $num_sources} {incr i} { $ns duplex-link $n($i) $n($num_sources) 10Mb 1ms DropTail } $ns duplex-link $n($num_sources) $n($output_node) 500kb 1ms RED $ns trace-queue $n($num_sources) $n($output_node) $tf #This assigns the buffer length per source for {set i 0} {$i < $num_sources} {incr i} { $ns queue-limit $n($i) $n($num_sources) 5 } #This dictates the output queue length in the router $ns queue-limit $n($num_sources) $n($output_node) 50 for {set i 0} {$i < $num_sources} {incr i} { set udp($i) [new Agent/UDP] $ns attach-agent $n($i) $udp($i) $udp($i) set fid_ $i set exp($i) [new Application/Traffic/Exponential] $exp($i) set packetSize_ 125 $exp($i) set burst_time_ 500ms $exp($i) set idle_time_ 500ms $exp($i) set rate_ 100k $exp($i) attach-agent $udp($i) set null($i) [new Agent/Null] $ns attach-agent $n($output_node) $null($i) $ns connect $udp($i) $null($i) } for {set i 0} {$i < $num_sources} {incr i} { $ns at $time_start "$exp($i) start" } for {set i 0} {$i < $num_sources} {incr i} { $ns at $time_end "$exp($i) stop" } $ns at $time_end "finish" $ns run From zacharia77 at yahoo.com Fri Aug 27 01:40:55 2004 From: zacharia77 at yahoo.com (=?iso-8859-1?q?Zachariah=20Thomas=20Z?=) Date: Fri Aug 27 01:44:40 2004 Subject: [ns] Anybody do 802.16 or DOCSIS implementations on Ns2 Message-ID: <20040827084055.20570.qmail@web53004.mail.yahoo.com> Hi folks, Has anyone done any work on NS2 related to 802.16 networks or DOCSIS implementations? Sort of urgent . Thanx for any pointers. Zac --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! From eddiejiang2000 at 21cn.com Fri Aug 27 01:45:38 2004 From: eddiejiang2000 at 21cn.com (Eddie Jiang) Date: Fri Aug 27 01:47:40 2004 Subject: [ns] problem with setdest Message-ID: <000b01c48c12$3e53dd40$936a53d3@EdsLapTop> Hi dear friends, when I generated the scenario with setdest,=20 ./setdest -n 5 -p 0 -s 3 -t 10 -x 300 -y 500 > scen-5n-0p-10t-3s-300-500 the error occurs as: setdest: setdest.cc:591: void Node::RandomSpeed(): Assertion `speed !=3D = 0.0' failed. how could this happen and how to solve it? Thank you in advance! Eddie From anais55 at hotmail.com Fri Aug 27 02:51:29 2004 From: anais55 at hotmail.com (luisa heredia garcia) Date: Fri Aug 27 02:53:39 2004 Subject: [ns] URGENT: how to calculate packet loss over UDP agent Message-ID: Hello Antonio, I have a similar problem last month. I resolved it using that: ##### set qmon [$ns monitor-queue $n1 $n2 0] set fqsize [open "qsize.n1-n2.out" w] set fqdrop [open "qdrop.n1-n2.out" w] $ns at 0 "record" proc record {} { global ns qmon fqsize fqdrop set time [$ns now] set qsize [$qmon set pkts_] set qdrop [$qmon set pdrops_] puts $fqsize "$time $qsize" puts $fqdrop "$time $qdrop" $qmon reset $ns at [expr $time+1.0] "record" } proc finish {} { global fqsize fqdrop ... close $fqsize close $fqdrop ... } ##### >From: "Ricci Antonio" <_ricciantonio_@libero.it> >To: >Subject: [ns] URGENT: how to calculate packet loss over UDP agent >Date: Fri, 27 Aug 2004 09:55:37 +0200 > > >Hello, >I need to know how calculate the number of packet lost by an audio >Application that sends packet over an UDP transport agent. Is there anyone >who can help me?Please answer, it's important for my study. >Regards >Antonio Ricci _________________________________________________________________ Reparaciones, servicios a domicilio, empresas, profesionales... Todo en la gu?a telef?nica de QDQ. http://qdq.msn.es/msn.cfm From fjrm4 at yahoo.es Fri Aug 27 02:57:00 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Fri Aug 27 02:58:39 2004 Subject: [ns] problem with setdest In-Reply-To: <000b01c48c12$3e53dd40$936a53d3@EdsLapTop> References: <000b01c48c12$3e53dd40$936a53d3@EdsLapTop> Message-ID: <200408271157.01846.fjrm4@yahoo.es> Hi Eddie, with that syntax your are invoking v1, you could solve your problem using v2. Take a look inside make-scen-steadystate.csh and setdest.cc (only the beginning of the file). There you can see an example and a list of all accepted parameters respectively. Regards, Francisco Ros El Viernes, 27 de Agosto de 2004 10:45, Eddie Jiang escribi┏: > Hi dear friends, > > when I generated the scenario with setdest, > > ./setdest -n 5 -p 0 -s 3 -t 10 -x 300 -y 500 > scen-5n-0p-10t-3s-300-500 > > the error occurs as: > > setdest: setdest.cc:591: void Node::RandomSpeed(): Assertion `speed != 0.0' > failed. > > how could this happen and how to solve it? Thank you in advance! > > Eddie From archsentinel at yahoo.com Fri Aug 27 03:36:10 2004 From: archsentinel at yahoo.com (Arch Sentinel) Date: Fri Aug 27 03:38:41 2004 Subject: [ns] Question regarding trace file Message-ID: <20040827103610.8250.qmail@web50806.mail.yahoo.com> Greeting Ns-users, I had created a wireless simulation using AODV routing, and output the traffic to a trace file. Below is a short extract of it: D 13.545694205 _3_ MAC COL 0 AODV 100 [0 ffffffff 8 800] ------- [8:255 -1:255 4 0] [0x2 4 1 [26 11] [12 26]] (REQUEST) r 13.545718954 _9_ RTR --- 0 AODV 48 [0 ffffffff 8 800] ------- [8:255 -1:255 4 0] [0x2 4 1 [26 11] [12 26]] (REQUEST) s 13.546208331 _24_ MAC --- 0 RTS 44 [7de 1a 18 0] s 13.546523433 _9_ RTR --- 0 AODV 48 [0 ffffffff 2 800] ------- [9:255 -1:255 4 0] [0x2 4 1 [26 11] [12 26]] (REQUEST) >From the NS2 documention, abbreviation 'd' represents packet drop. But I am unable to find any 'd's in my trace files, except for the 'D's. Are they the same? My second question is how do I differiate if the trace is a representation of data or routing packet? Do I compare them according to the packet type field (between 'AODV' or 'udp') or compare them against the trace name field ('RTR' or 'MAC'). Please help as they are clearly state in the documentation. Thank you. Regards Chong _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush From _ricciantonio_ at libero.it Fri Aug 27 04:06:22 2004 From: _ricciantonio_ at libero.it (Ricci Antonio) Date: Fri Aug 27 04:07:51 2004 Subject: R: [ns] URGENT: how to calculate packet loss over UDP agent Message-ID: <000d01c48c25$e50c8ca0$5c3afea9@portatile> In the previous e-mail I missed to say you that I'm simulating a Bluetooth network and the module doesn't work whit ns trace files. I can't use the queue because I don't create links whit ns command like this: $ns duplex-link $n0 $n1 1Mb 1ms DropTail but a specific command of the Bluetooth module. I hope that you can help me! Regards Antonio Ricci From fjrm4 at yahoo.es Fri Aug 27 04:36:05 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Fri Aug 27 04:39:07 2004 Subject: [ns] Question regarding trace file In-Reply-To: <20040827103610.8250.qmail@web50806.mail.yahoo.com> References: <20040827103610.8250.qmail@web50806.mail.yahoo.com> Message-ID: <200408271336.05355.fjrm4@yahoo.es> Hi Chong, see my answers below. El Viernes, 27 de Agosto de 2004 12:36, Arch Sentinel escribi?: > Greeting Ns-users, > > I had created a wireless simulation using AODV > routing, and output the traffic to a trace file. Below > is a short extract of it: > > D 13.545694205 _3_ MAC COL 0 AODV 100 [0 ffffffff 8 > 800] ------- [8:255 -1:255 4 0] [0x2 4 1 [26 11] [12 > 26]] (REQUEST) > r 13.545718954 _9_ RTR --- 0 AODV 48 [0 ffffffff 8 > 800] ------- [8:255 -1:255 4 0] [0x2 4 1 [26 11] [12 > 26]] (REQUEST) > s 13.546208331 _24_ MAC --- 0 RTS 44 [7de 1a 18 0] > s 13.546523433 _9_ RTR --- 0 AODV 48 [0 ffffffff 2 > 800] ------- [9:255 -1:255 4 0] [0x2 4 1 [26 11] [12 > 26]] (REQUEST) > > >From the NS2 documention, abbreviation 'd' represents > > packet drop. But I am unable to find any 'd's in my > trace files, except for the 'D's. Are they the same? > Yes. > My second question is how do I differiate if the trace > is a representation of data or routing packet? Do I > compare them according to the packet type field > (between 'AODV' or 'udp') or compare them against the > trace name field ('RTR' or 'MAC'). Please help as they > are clearly state in the documentation. Thank you. > AODV vs udp is the right way. RTR and MAC only mean that trace has been generated by routing agent or by mac agent respectively. Regards, Francisco Ros > Regards > Chong > > > > _______________________________ > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. > http://promotions.yahoo.com/goldrush From teck.aguilar at wanadoo.fr Fri Aug 27 05:43:00 2004 From: teck.aguilar at wanadoo.fr (Teck Aguilar) Date: Fri Aug 27 05:45:54 2004 Subject: [ns] Power sqve in 802.11 Message-ID: <7522357.1093610580291.JavaMail.www@wwinf0503> Hello, I'am studing the 802.11 power save mechanism, et i would like to know how i activate the PSM in a simulation and how can i get the total time in active mode and sleep mode. Does anyone have un exemple? Thank in advance Teck From frida at isy.liu.se Fri Aug 27 05:56:24 2004 From: frida at isy.liu.se (Frida Eng) Date: Fri Aug 27 05:58:40 2004 Subject: [ns] new ns code Message-ID: <412F2F78.4080908@isy.liu.se> The contribution pages tells me to send this information her, which I find a little bit weird but still: For my research projects, me and my master students work with code development. The results are presented on http://www.control.isy.liu.se/~frida/nsmodules/ as they are ready. /Frida -- Frida Eng +46-(0)13 281365 Dept of Electrical Engineering frida@isy.liu.se SE- 58183 Link?ping www.control.isy.liu.se/~frida From armor at linux.netlab.cse.yzu.edu.tw Fri Aug 27 08:17:45 2004 From: armor at linux.netlab.cse.yzu.edu.tw (Yung-Mu Chen) Date: Fri Aug 27 08:20:50 2004 Subject: [ns] difference between version 2.26 and 2.27 References: <20040827025058.48469.qmail@web15601.mail.cnb.yahoo.com> Message-ID: <001a01c48c49$015c8b80$3a968a8c@armoracer> Hi, I think this is a change here. in tcl/lib/ns-mobilenode.tcl 2.26 line 249 to 255 249 set dmux_ [$self demux] 250 set classifier_ [$self entry] 251 252 if { [Simulator set RouterTrace_] == "ON" } { 253 # 254 # Send Target 255 # ****************** 2.27 line 249 to 258 249 set dmux_ [$self demux] 250 set classifier_ [$self entry] 251 252 # let the routing agent know about the port dmux 253 $agent port-dmux $dmux_ 254 255 if { [Simulator set RouterTrace_] == "ON" } { 256 # 257 # Send Target 258 # ******************* In line 253, it accesses "port-dmux". This causes the TORA protocol faiulre in 2.27, becaues it access a non-existing function called port-dmux on the Agent/TORA object. ( reference : http://mailman.isi.edu/pipermail/ns-users/2004-May/042016.html ) This problem is the same as your protocol. You can fix your code as Martin Jacobsson said Best Regards, Yung-Mu Chen, Network Lab. Dept. of Computer Science and Engineering Yuan-Ze University. ----- Original Message ----- From: "?ffffd5?fffff7 ?ffffba?ffffe9" To: Sent: Friday, August 27, 2004 10:50 AM Subject: [ns] difference between version 2.26 and 2.27 > > I want to implement a new protocol in ns2. The protocol work smoothly in version 2.26, but when I try to implement it in ns2 (version 2.27), there are many problems when my tcl file runs. Just like below: > > > "$self add-target $agent $port" > (procedure "_o14" line 15) > (Node attach line 15) > invoked from within > "$node attach $ragent [Node set rtagent_port_]" > (procedure "_o3" line 71) > (Simulator create-wireless-node line 71) > invoked from within > "_o3 create-wireless-node" > ("eval" body line 1) > invoked from within > > Can anyone point out the differences between version 2.26 and 2.27 for me and tell me what else I should do to enable my protocol work in 2.27? > > THANKS a LOT! > > > > > --------------------------------- > Do You Yahoo!? > 150?MP3茖|l柩掴胃?x峪 > W]x橄`l敏Zy鯑Z遑貰Z > 1G蹶1000C師aOY`比? > > From nuno at ipb.pt Fri Aug 27 08:19:42 2004 From: nuno at ipb.pt (Nuno Rodrigues) Date: Fri Aug 27 08:21:42 2004 Subject: [ns] Stranger nam topology visualisation Message-ID: <412F510E.6060201@ipb.pt> Hello, With the most recent NAM versions, the topology visualization is very strange. The node size is too big and the links are very small. The images img1.jpg and img2.jpg, in attach, are from the same ns simulation file. The image img1.jpg is captured with nam 1.0a9 and the image img2.jpg is captured with nam1.11. Anyone can tell me how can i create the topology with the aspect of img1.jpg with the nam1.11? Thanks in advance and best regards, Nuno. -- ................................................................. Nuno Rodrigues : nuno@ipb.pt : http://www.ipb.pt/~nuno Eq. Assistente 2o Tri?nio : Dep. Inform?tica e Comunica??es : ESTiG/IPB Coordenador do Centro de Comunica??es do IPB ................................................................. From klee at nps.edu Fri Aug 27 08:58:06 2004 From: klee at nps.edu (Lee, Kok Thong SGP) Date: Fri Aug 27 09:01:10 2004 Subject: [ns] URGENT: how to calculate packet loss over UDP agent Message-ID: Hi luisa, does the method work for a wireless adhoc simulation ? what does the 0 mean in [$ns monitor-queue $n1 $n2 0]? Tks n Rgds Francis Lee Email : klee@nps.edu -----Original Message----- From: ns-users-bounces@ISI.EDU on behalf of luisa heredia garcia Sent: Fri 8/27/2004 2:51 AM To: _ricciantonio_@libero.it; ns-users@ISI.EDU Cc: Subject: RE: [ns] URGENT: how to calculate packet loss over UDP agent Hello Antonio, I have a similar problem last month. I resolved it using that: ##### set qmon [$ns monitor-queue $n1 $n2 0] set fqsize [open "qsize.n1-n2.out" w] set fqdrop [open "qdrop.n1-n2.out" w] $ns at 0 "record" proc record {} { global ns qmon fqsize fqdrop set time [$ns now] set qsize [$qmon set pkts_] set qdrop [$qmon set pdrops_] puts $fqsize "$time $qsize" puts $fqdrop "$time $qdrop" $qmon reset $ns at [expr $time+1.0] "record" } proc finish {} { global fqsize fqdrop ... close $fqsize close $fqdrop ... } ##### >From: "Ricci Antonio" <_ricciantonio_@libero.it> >To: >Subject: [ns] URGENT: how to calculate packet loss over UDP agent >Date: Fri, 27 Aug 2004 09:55:37 +0200 > > >Hello, >I need to know how calculate the number of packet lost by an audio >Application that sends packet over an UDP transport agent. Is there anyone >who can help me?Please answer, it's important for my study. >Regards >Antonio Ricci _________________________________________________________________ Reparaciones, servicios a domicilio, empresas, profesionales... Todo en la gu?a telef?nica de QDQ. http://qdq.msn.es/msn.cfm From qi.fan at kcl.ac.uk Fri Aug 27 10:38:22 2004 From: qi.fan at kcl.ac.uk (Qi FAN) Date: Fri Aug 27 10:43:04 2004 Subject: [ns] pass brdcast packet to upper layer, plz help Message-ID: <412F718E.4090605@kcl.ac.uk> Hi Ns-users, Broadcast question again, sorry about this. I've implemented a agent to broadcast the HELLO directly through LL. While the neighbours received HELLO, the packet can not be passed to up-layer agent. Refer to the trace file, since there is not route found, packet been droped. s 1.500375000 _19_ MAC --- 2 Threshold 116 [0 ffffffff 13 800] ------- [0:255 -1:255 2 0] r 1.501303074 _11_ MAC --- 2 Threshold 64 [0 ffffffff 13 800] ------- [0:255 -1:255 2 0] r 1.501328074 _11_ RTR --- 2 Threshold 64 [0 ffffffff 13 800] ------- [0:255 11:255 2 11] D 1.501328074 _11_ RTR NRTE 2 Threshold 64 [0 ffffffff 13 800] ------- [0:255 11:255 1 11] s 1.501328074 _11_ RTR --- 0 AODV 32 [0 0 0 0] ------- [11:255 -1:255 1 0] [0x8 1 [11 0] 0.000000] (ERROR) What I'm asking here is why the RTR still looking for the route for the broadcast packet? because I implemented the TTL of HELLO is 1. Also I've changed the ll.cc file as Jeff suggested in the mailing list. Many thanks for your suggestion. Qi From madhurichowdhari at rediffmail.com Fri Aug 27 11:05:00 2004 From: madhurichowdhari at rediffmail.com (madhuri kaniganti) Date: Fri Aug 27 11:08:11 2004 Subject: [ns] time taken by mobile node Message-ID: <20040827180500.631.qmail@webmail28.rediffmail.com> ? Hi I would like to know, the time taken by the mobile node to reach to a destination using setdest. For example if node1 is set is $node1 setdest 100.0 150.0 30.0 what is the time taken by node1 to reach that destination(100.0 150.0 0.0) from say (0.0 0.0 0.0). Thanks! --Madhuri From KXR387 at bham.ac.uk Fri Aug 27 11:10:36 2004 From: KXR387 at bham.ac.uk (Keita Rose) Date: Fri Aug 27 11:12:47 2004 Subject: [ns] help please Message-ID: <525075023F934D44813BFC190A5BA568130408@engmail.adf.bham.ac.uk> Could someone explain the purpose of the last two statements in this block set MH(0) [$ns_ node 1.0.0] set node_(0) $MH(0) set BS(0) address [AddrParams addr2id [$BS(0) node-addr]] [$MH(0) set regagent_] set home_agent_ $BS(0) address how different is line 3 from the statement $node_(0) base-station [AddrParams addr2id [$BS(0) node-addr]] thanks Keita From oliver.holland at kcl.ac.uk Fri Aug 27 11:47:53 2004 From: oliver.holland at kcl.ac.uk (Oliver Holland) Date: Fri Aug 27 11:50:55 2004 Subject: [ns] time taken by mobile node In-Reply-To: <20040827180500.631.qmail@webmail28.rediffmail.com> Message-ID: <000a01c48c66$5c5a2160$120b4989@olly> Not sure if I misunderstand the question, but: speed=distance/time Therefore (wait for it...): time=distance/speed Or do you require the relativistic expressions (for very fast-moving mobile nodes)? Also, search for "pythagoras" on Google if you are still stuck. Oliver. > -----Original Message----- > From: ns-users-bounces@ISI.EDU > [mailto:ns-users-bounces@ISI.EDU] On Behalf Of madhuri kaniganti > Sent: 27 August 2004 19:05 > To: ns-users@ISI.EDU > Subject: [ns] time taken by mobile node > > > > ? > Hi > > I would like to know, the time taken by the mobile node to > reach to a destination using setdest. For example if node1 is set is > $node1 setdest 100.0 150.0 30.0 > > what is the time taken by node1 to reach that > destination(100.0 150.0 0.0) from say (0.0 0.0 0.0). > > Thanks! > > --Madhuri > From jw2000 at excite.com Fri Aug 27 13:01:32 2004 From: jw2000 at excite.com (jw2000@excite.com) Date: Fri Aug 27 13:04:01 2004 Subject: [ns] Question about setdest Message-ID: <20040827200132.24C07BF69@xprdmailfe13.nwk.excite.com> Hi all: It seems that setdest is very slow. For example, for a 900 seconds simulation with 300 nodes in 2000X2000 region, it takes two days to generate the mobility file. Is there any method to make it faster? Maybe the god function takes a lot of time. But I do not need it. Any suggestion is appreciated. Thanks a lot. Jack _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From klee at nps.edu Fri Aug 27 13:40:30 2004 From: klee at nps.edu (Lee kok thong) Date: Fri Aug 27 13:42:53 2004 Subject: [ns] Question about setdest In-Reply-To: <20040827200132.24C07BF69@xprdmailfe13.nwk.excite.com> Message-ID: <002101c48c76$17fc3250$73c97883@G0303085> What are yr other parameters like ? regards Francis -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of jw2000@excite.com Sent: Friday, August 27, 2004 1:02 PM To: ns-users@ISI.EDU Subject: [ns] Question about setdest Hi all: It seems that setdest is very slow. For example, for a 900 seconds simulation with 300 nodes in 2000X2000 region, it takes two days to generate the mobility file. Is there any method to make it faster? Maybe the god function takes a lot of time. But I do not need it. Any suggestion is appreciated. Thanks a lot. Jack _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! From shetty at gmail.com Fri Aug 27 19:35:46 2004 From: shetty at gmail.com (Niranjan Shetty) Date: Fri Aug 27 19:37:53 2004 Subject: [ns] Traffic Trace File Message-ID: <9b576dfa040827193518dd07a6@mail.gmail.com> Had the same problem recently. The foll. links should help figure this out. http://www.isi.edu/nsnam/archive/ns-users/webarch/1999/msg01250.html http://www.research.att.com/~breslau/vint/trace.html -niranjan. Message: 11 Date: Thu, 26 Aug 2004 08:57:18 -0300 (BRT) From: karina@infoworkti.com.br Subject: [ns] Traffic Trace File To: ns-users@ISI.EDU Message-ID: <31346.200.189.112.59.1093521438.squirrel@webmail.8x.com.br> Content-Type: text/plain;charset=iso-8859-1 Hi users! I need some help to find out how to generate a Trafic Trace file. On Ns Manual (chapter 35) I found some information about it. But it was not enough. Each record in the trace file consists of 2 32-bit fields. The first represents the inter-packet time in microseconds, the second represents the packet size in bytes. And after that I have to convert to binary. I need to simulate (DiffServ) and generate a Traddic Trace file from it! How can I do it????? Any suggestion? regards, karina From anup.mayank at gmail.com Sat Aug 28 00:43:16 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Sat Aug 28 00:45:51 2004 Subject: [ns] Changing carrier sense threshold and transmission range of a wireless node Message-ID: <469192b004082800435faf6579@mail.gmail.com> Hi Friends, I want to change the Transmission range and Carrier Sense Threshold of a node. I want to change the Carrier Sense Threshold so that node will beleive that channel is always free. Kindly let me know how to do it with the Tcl interface. If you have Tcl script for it, please send it to me. I want to change the property of only a single node. (Rest of the nodes have default settings). Thanks Anup From pappasj at ceid.upatras.gr Sat Aug 28 02:27:42 2004 From: pappasj at ceid.upatras.gr (Pappas Ioannis) Date: Sat Aug 28 02:29:44 2004 Subject: [ns] problem with mandrake10 & ns-2.26 Message-ID: Hi, :-) I came across with the next problem and i would like any kind of your help: i tried to setup ns-allinone 2.26 on a linux mandrake 10 and at the beginning some parse errors appeared and then while 'make' tk8.3.2 ,failed and the installation stopped. The particular gzip file has been setup successfully on linux mandrake 9.2 . Thank you for your time. Ioannis Pappas Department of Computer Engineering &Informatics University of Patras Greece From fjrm4 at yahoo.es Sat Aug 28 03:08:23 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Sat Aug 28 03:09:42 2004 Subject: [ns] problem with mandrake10 & ns-2.26 In-Reply-To: References: Message-ID: <200408281208.23356.fjrm4@yahoo.es> Hi Ioannis! Install libxfree86-devel and your problem will likely be solved. Regards, Francisco Ros El S?bado, 28 de Agosto de 2004 11:27, Pappas Ioannis escribi?: > Hi, > > :-) > > I came across with the next problem and i would like any kind of your > help: i tried to setup ns-allinone 2.26 on a linux mandrake 10 and at the > beginning some parse errors appeared and then while 'make' tk8.3.2 ,failed > and the installation stopped. The particular gzip file has been setup > successfully on linux mandrake 9.2 . > Thank you for your time. > > > Ioannis Pappas > > Department of Computer Engineering &Informatics > University of Patras > Greece From advarl at hotmail.com Sat Aug 28 04:51:12 2004 From: advarl at hotmail.com (advarl) Date: Sat Aug 28 04:54:14 2004 Subject: [ns] make error: 'CPP_NAMESPACE' undeclared Message-ID: Hi, For your information, SUMMARY: Support for ns-2.27 is now available on Protean Forge for nrlsensorsim. Look for the nrlsensorsim-2.27.tgz download. PATCHING SUMMARY: Some of ISI's enhancements added to ns-2.27 were removed in order to force in compatibility with our sensor network extensions. The side effects of our hacks are not yet understood. Users should corroborate their simulation results as much as possible with earlier versions of ns. PATCHING DETAILS: Here are the problems I've fixed with ns-2.27 (first two are in mac/channel.cc): 1. WirelessChannel::sendUp contains an else structure with list-based improvements. I reverted that else structure back to what it was in 2.26. Without this modification, PHENOM packets will never get received. 2. WirelessChannel::updateNodesList contains a call to sortLists(). I removed that call in order to fix a segmentation fault. 3. The makefiles ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile, ns-2.27/indep-utils/webtrace-conv/conv/Makefile, and ns-2.27/indep-utils/webtrace-conv/dec/Makefile, needed to be modified in order to fix a bug in ISI's distribution. The bug caused a compile-time error that looked like this: g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc In file included from ../../../config.h:54, from setdest.h:5, from setdest.cc:57: ../../../autoconf.h:85: Error: namespace `CPP_NAMESPACE' undeclared setdest.cc:71:1: warning: "INFINITY" redefined In file included from /usr/include/math.h:40, from setdest.cc:43: /usr/include/bits/mathdef.h:35:1: warning: this is the location of the previous definition make[1]: *** [setdest.o] Error 1 make[1]: Leaving directory `/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec' To fix the bug, edit ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile and change this line: DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ to this line: DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std In the other two makefiles, append -DCPP_NAMESPACE=std to CFLAGS. I discovered that fix by searching the NS news database[1] for "CPP_NAMESPACE". REFERENCES: [1] NS news database, http://www.isi.edu/nsnam/htdig/search.html That's it. Hope this helps. the above message is originally from Jee J.Z.         advarl         advarl@hotmail.com           2004-08-28 From qi.fan at kcl.ac.uk Sat Aug 28 05:57:06 2004 From: qi.fan at kcl.ac.uk (Qi FAN) Date: Sat Aug 28 05:59:47 2004 Subject: [ns] define a global packet Message-ID: <41308122.8040201@kcl.ac.uk> Hi Ns-users, I want to define a new type packet structure that is _globally_ available in c++. If anyone could point to some relevant examples in the distribution I would be grateful. Thanks for your help, Qi From georgemp at mac.com Sat Aug 28 06:24:37 2004 From: georgemp at mac.com (Malayil Philip George) Date: Sat Aug 28 06:26:55 2004 Subject: [ns] define a global packet In-Reply-To: <41308122.8040201@kcl.ac.uk> Message-ID: > > Hi Ns-users, > > I want to define a new type packet structure that is _globally_ > available in c++. If anyone could point to some relevant examples in the > distribution I would be grateful. > > Thanks for your help, > > Qi > You can take a look at Marc Greis's tutorial http://www.isi.edu/nsnam/ns/tutorial/ . The ping example describes how to create a new packet. Also, look at code inside the app's folder to see how to access the packet. The code given in the tutorial I believe is outdated(?). I looked at rtp.h and rtp.cc to get an idea. All packet types are available in every packet in ns and each packet's headers are accessed by some offset. The manual describes this and the methods are present in the rtp.cc file. I am pretty new to NS myself, so correct me if I am wrong :) George M.P. From edtyy at hotmail.com Sat Aug 28 06:36:54 2004 From: edtyy at hotmail.com (Edwin Tan) Date: Sat Aug 28 06:38:44 2004 Subject: [ns] SSA Implementation Message-ID: Hello, Has anyone implemented Signal Stability-Based Adaptive Routing (SSA) within NS2 Thank You Edwin _________________________________________________________________ Fast. Clear. Easy. The new face of MSN Search. http://search.msn.com.sg/ From qi.fan at kcl.ac.uk Sat Aug 28 10:49:10 2004 From: qi.fan at kcl.ac.uk (Qi FAN) Date: Sat Aug 28 10:51:53 2004 Subject: [ns] define a global packet In-Reply-To: References: Message-ID: <4130C596.5000605@kcl.ac.uk> Malayil Philip George wrote: >>Hi Ns-users, >> >>I want to define a new type packet structure that is _globally_ >>available in c++. If anyone could point to some relevant examples in the >>distribution I would be grateful. >> >>Thanks for your help, >> >>Qi >> >> >> >You can take a look at Marc Greis's tutorial >http://www.isi.edu/nsnam/ns/tutorial/ . The ping example describes how to >create a new packet. Also, look at code inside the app's folder to see how >to access the packet. The code given in the tutorial I believe is >outdated(?). I looked at rtp.h and rtp.cc to get an idea. All packet types >are available in every packet in ns and each packet's headers are accessed >by some offset. The manual describes this and the methods are present in the >rtp.cc file. I am pretty new to NS myself, so correct me if I am wrong :) > >George M.P. > > > Thank you for your reply. What I am looking for is to make the packet _globally_ available. For example, the struct hdr_ping cannot be used by AODV agent, since ping packet is not globally defined. While the ip header is, and can be used by all the agent or application. If anybody could point to some relevant examples in the distribution I would be grateful. Cheers, Qi From mistvan at gmail.com Sat Aug 28 15:08:15 2004 From: mistvan at gmail.com (mistvan) Date: Sat Aug 28 15:11:21 2004 Subject: [ns] help with node classifier Message-ID: <2167c377040828150810d15592@mail.gmail.com> Hello, I would like to implement a new packet classifier and want to insert it right after a node's entry_. Could you please send me an example of how this could be done or give me some hints? I've tried to follow the example in the ns manual (multicast lms classifier shown in fig 5.2) but did not succeed. Also, could please tell me how to pass selected packets to a certain agent ? Thank you, -istvan From CLR_2008 at tom.com Sat Aug 28 23:56:16 2004 From: CLR_2008 at tom.com (Grant Yu) Date: Sat Aug 28 23:58:58 2004 Subject: [ns] Secure ad hoc Routing Message-ID: <200408290656.i7T6uJx25117@vapor.isi.edu> ns-users How can I get Secure ad hoc Routing SEAD,Adrian, SAODV,etc's source code thx          Grant Yu         CLR_2008@tom.com           2004-08-29 From marstefy at cc.hut.fi Sun Aug 29 01:49:21 2004 From: marstefy at cc.hut.fi (marstefy@cc.hut.fi) Date: Sun Aug 29 01:51:45 2004 Subject: [ns] How to install NS-AllInOne-2.27 in environment win XP? Message-ID: <1093769361.41319891a07fc@webmail1.hut.fi> Hello everybody, I want to start a simulation study with this NS2 simulator, but before I'd like to try this allInOne-2.27 version of the simulator. Since my operating system is Windows XP, everybody knows, it is needed to have installed the unix emulator CYGWIN. Well I installed a default version of it in the beginning and then a complete one making a "full setup". When I try to install the allinone simulator from the bash shell, it points out which my CYGWIN (version 1.5.10) is not suitable to go ahead with the installation of the simulator. The error is the following: ---------------------------------------------------------------- checking for diff...NO! package diff in not present in your system; please install it using cygwin's setup.exe before trying to install ns2 distribution. do you wish to proceed regardless? (Y/N) ----------------------------------------------------------------- at this point if I say yes it starts to show lots of error... I'd like to install this damn "diff" package but i have no Idea how may I make it. I am sure which in my cygwin system there is a package called "diffutils" which is properly installed but still it hangs on say which something is missing (even though I've made a full installation). Is there anybody who found the same error earlier? How can I overcome it? Is there anybody who succeded in installing this allinone-2.27 under cygwin environment with windows XP? How? please Help me... ;-) I thank you all in advance for helping Stefano. M. From marstefy at cc.hut.fi Sun Aug 29 01:49:12 2004 From: marstefy at cc.hut.fi (marstefy@cc.hut.fi) Date: Sun Aug 29 01:52:03 2004 Subject: [ns] How to install NS-AllInOne-2.27 in environment win XP? Message-ID: <1093769352.41319888a74cd@webmail1.hut.fi> Hello everybody, I want to start a simulation study with this NS2 simulator, but before I'd like to try this allInOne-2.27 version of the simulator. Since my operating system is Windows XP, everybody knows, it is needed to have installed the unix emulator CYGWIN. Well I installed a default version of it in the beginning and then a complete one making a "full setup". When I try to install the allinone simulator from the bash shell, it points out which my CYGWIN (version 1.5.10) is not suitable to go ahead with the installation of the simulator. The error is the following: ---------------------------------------------------------------- checking for diff...NO! package diff in not present in your system; please install it using cygwin's setup.exe before trying to install ns2 distribution. do you wish to proceed regardless? (Y/N) ----------------------------------------------------------------- at this point if I say yes it starts to show lots of error... I'd like to install this damn "diff" package but i have no Idea how may I make it. I am sure which in my cygwin system there is a package called "diffutils" which is properly installed but still it hangs on say which something is missing (even though I've made a full installation). Is there anybody who found the same error earlier? How can I overcome it? Is there anybody who succeded in installing this allinone-2.27 under cygwin environment with windows XP? How? please Help me... ;-) I thank you all in advance for helping Stefano. M. From marstefy at cc.hut.fi Sun Aug 29 01:53:55 2004 From: marstefy at cc.hut.fi (marstefy@cc.hut.fi) Date: Sun Aug 29 01:55:46 2004 Subject: [ns] Problems to install NS-AllInOne-2.27 in environment win XP? Message-ID: <1093769635.413199a3c0032@webmail1.hut.fi> Hello everybody, I want to start a simulation study with this NS2 simulator, but before I'd like to try this allInOne-2.27 version of the simulator. Since my operating system is Windows XP, everybody knows, it is needed to have installed the unix emulator CYGWIN. Well I installed a default version of it in the beginning and then a complete one making a "full setup". When I try to install the allinone simulator from the bash shell, it points out which my CYGWIN (version 1.5.10) is not suitable to go ahead with the installation of the simulator. The error is the following: ---------------------------------------------------------------- checking for diff...NO! package diff in not present in your system; please install it using cygwin's setup.exe before trying to install ns2 distribution. do you wish to proceed regardless? (Y/N) ----------------------------------------------------------------- at this point if I say yes it starts to show lots of error... I'd like to install this damn "diff" package but i have no Idea how may I make it. I am sure which in my cygwin system there is a package called "diffutils" which is properly installed but still it hangs on say which something is missing (even though I've made a full installation). Is there anybody who found the same error earlier? How can I overcome it? Is there anybody who succeded in installing this allinone-2.27 under cygwin environment with windows XP? How? please Help me... ;-) I thank you all in advance for helping Stefano. M. From itsi at ait.edu.gr Sun Aug 29 04:08:05 2004 From: itsi at ait.edu.gr (itsi@ait.edu.gr) Date: Sun Aug 29 04:10:53 2004 Subject: [ns] Directional Antennas in ns-2 Message-ID: <4028.213.5.30.64.1093777685.squirrel@webmail.ait.gr> Hello from Greece!!! I'm a postgraduate student doing a thesis on cross layer optimization techniques for sensor networks using smart antennas. While I am still a novice at ns, I think that directional antennas can indeed be supported by ns.Is there any ready package I can use??I have the version 2.27 (downloaded on July 2004). Any help would be more than greatly appreciated. Thank you for your time, Y.Tsirilakis From fortunewjh0217 at hotmail.com Sun Aug 29 08:47:13 2004 From: fortunewjh0217 at hotmail.com (fortune) Date: Sun Aug 29 08:50:01 2004 Subject: [ns] RTP implementation in ns-2,help Message-ID: Hi, Every one Im studying RTP implementation in ns-2 and I have some questions.=20 I hope somebody can help me, I worked since few weeks about this = problem. I don't have find any answer on the mailing list, although many people = have=20 the same problem=A1=A3I have read the code simple-rtp.tcl,and found that = it is based on multicast =20 =20 1. I search some simple example of RTP use in unicast mode . Where can I find=20 that ? 2. Can I use RTP and RTCP in unicast mode ? 3. How can I retrieve the RTCP report (RR/SR) ? 4.Do I have to write the new protocol to implement the function of = retrieve the RTCP report (RR/SR) ? =20 I will be grateful if you could help and advice me. Thank you very much. Best regards =20 =20 fortune =20 From fortunewjh0217 at hotmail.com Sun Aug 29 09:02:17 2004 From: fortunewjh0217 at hotmail.com (fortune) Date: Sun Aug 29 09:04:44 2004 Subject: [ns] RTP implementation in ns-2,help Message-ID: Hi, Every one Im studying RTP implementation in ns-2 and I have some questions. I hope somebody can help me, I worked since few weeks about this problem. I don't have find any answer on the mailing list, although many people have the same problem.I have read the code simple-rtp.tcl,and found that it is based on multicast 1. I search some simple example of RTP use in unicast mode . Where can I find that ? 2. Can I use RTP and RTCP in unicast mode? 3. How can I retrieve the RTCP report (RR/SR)? 4.Do I have to write the new protocol to implement the function of retrieve the RTCP report (RR/SR)? I will be grateful if you could help and advice me. Thank you very much. Best regards fortune From fortunewjh0217 at hotmail.com Sun Aug 29 09:22:25 2004 From: fortunewjh0217 at hotmail.com (fortune) Date: Sun Aug 29 09:24:44 2004 Subject: [ns] nam based on EURANE Message-ID: Hi,nile I am fortune Thanks for your help and I am using your contribution of EURANE. I have some question still,can I use nam file based EURANE,if can,could you send me some sample, thanks fortune From zhili at usq.edu.au Sun Aug 29 14:54:37 2004 From: zhili at usq.edu.au (Zhi Li) Date: Sun Aug 29 14:56:44 2004 Subject: [ns] anyone can explain to me why simulations, with different random seeds, need quite large different simulation time to finish. Message-ID: <9A21B9DC026C80439FBD8C5B197AE04BC2C1DB@zeta.usq.edu.au> Dear All, I have tried to do simulations with the same setting such as simulation durations, topology except different random seeds to do statistics. But some simultions finish in 2 or 3 hours, while the others needs days. Anyone can explain this to me? Or is there anything I need to be careful? Regards, Zhi From patrick_ns at hotmail.com Sun Aug 29 19:44:59 2004 From: patrick_ns at hotmail.com (Patrick) Date: Sun Aug 29 19:52:44 2004 Subject: [ns] how to choose macType for UMTS Message-ID: Hi, all Can anyone tell me how to choose the macType for UMTS(R4)? Thankx. Best Regards. Patrick patrick_ns@hotmail.com From csp007 at hotmail.com Mon Aug 30 01:03:02 2004 From: csp007 at hotmail.com (choh Andrew) Date: Mon Aug 30 01:05:07 2004 Subject: [ns] ns tcl8.4.5 Message-ID: ./ns example1a.tcl When configured, ns found the right version of tclsh in /home/andrew/ns2/ns-allinone-2.27/bin/tclsh8.4 but it doesn't seem to be there anymore, so ns will fall back on running the first tclsh in your path. The wrong version of tclsh may break the test suites. Reconfigure and rebuild ns if this is a problem. 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" i had this problem when running the example in the tutorial , can someone tell me what happen and how do i rectified it?..thanks a lot _________________________________________________________________ Fast. Clear. Easy. The new MSN Search. http://search.msn.com.sg/ From patrick_ns at hotmail.com Mon Aug 30 01:50:23 2004 From: patrick_ns at hotmail.com (Patrick) Date: Mon Aug 30 01:56:45 2004 Subject: [ns] how to install a patch Message-ID: Hi,all I have downloaded a GPRS patch from http://www.isi.edu/nsnam/ns/ns-contributed.html. There contains a folder named "final_code", there are the files such as CC H TCL. I have read the problem information "To fix another problem it says to "apply a patch file". What's that? How do I do that?" on the page http://www.isi.edu/nsnam/ns/ns-problems.html, but I can not catch it. Can anyone tell me how to install the patch? Thanks Best Regards. Patrick patrick_bao@hotmail.com From rxu at umd.edu Mon Aug 30 09:23:53 2004 From: rxu at umd.edu (Rong XU) Date: Mon Aug 30 09:26:14 2004 Subject: [ns] Problems to install NS-AllInOne-2.27 in environment win XP? Message-ID: <1093883033.488ff320rxu@umd.edu> Hey, you might want to check out this site which gives a good step by step walkthrough: http://www.sims.berkeley.edu/~christin/ns-cygwin.shtml I had a similar problem, so I installed everything for cygwin, then ignored the diff warning, and everything worked out fine. Just be sure that you do not rebuild again after a failed build, because it will tell you that you are missing a makefile (or something to that extent). Good luck. Rong Xu rxu@mail.umd.edu -----Original Message----- From: marstefy@cc.hut.fi To: ns-users@ISI.EDU Date: Sun, 29 Aug 2004 11:53:55 +0300 (EEST) Subject: [ns] Problems to install NS-AllInOne-2.27 in environment win XP? Hello everybody, I want to start a simulation study with this NS2 simulator, but before I'd like to try this allInOne-2.27 version of the simulator. Since my operating system is Windows XP, everybody knows, it is needed to have installed the unix emulator CYGWIN. Well I installed a default version of it in the beginning and then a complete one making a "full setup". When I try to install the allinone simulator from the bash shell, it points out which my CYGWIN (version 1.5.10) is not suitable to go ahead with the installation of the simulator. The error is the following: ---------------------------------------------------------------- checking for diff...NO! package diff in not present in your system; please install it using cygwin's setup.exe before trying to install ns2 distribution. do you wish to proceed regardless? (Y/N) ----------------------------------------------------------------- at this point if I say yes it starts to show lots of error... I'd like to install this damn "diff" package but i have no Idea how may I make it. I am sure which in my cygwin system there is a package called "diffutils" which is properly installed but still it hangs on say which something is missing (even though I've made a full installation). Is there anybody who found the same error earlier? How can I overcome it? Is there anybody who succeded in installing this allinone-2.27 under cygwin environment with windows XP? How? please Help me... ;-) I thank you all in advance for helping Stefano. M. From nkulkarn at cs.stevens-tech.edu Mon Aug 30 09:30:55 2004 From: nkulkarn at cs.stevens-tech.edu (Nikhil Kulkarni) Date: Mon Aug 30 09:33:54 2004 Subject: [ns] Fragmentation and Reassembly at trasport layer In-Reply-To: <9b576dfa040827193518dd07a6@mail.gmail.com> References: <9b576dfa040827193518dd07a6@mail.gmail.com> Message-ID: Hello All, I found some code regarding fragmentation and reassembly of packets at http://www.ee.surrey.ac.uk/Personal/L.Wood/ns/sar_dist_oct2298.tar.gz However, when I tried to incorporate it with my NS-2.27, I got various errors. Can anyone tell me, whether this patch can be safely applied to NS-2.27? Since then I have reverted to the normal NS (without this patch). Thanks, Nikhil. From hhbrahim at yahoo.fr Mon Aug 30 14:23:25 2004 From: hhbrahim at yahoo.fr (=?iso-8859-1?q?Hamdi=20Hennay=20brahim?=) Date: Mon Aug 30 14:26:20 2004 Subject: [ns] How can i get a pointer to the node calling my routing protocol ? Message-ID: <20040830212325.91838.qmail@web21122.mail.yahoo.com> Hello NS users, I simulate an adhoc routing protocol. So how can i get a pointer to the node calling to the protocol in c++ code ? Thanks in advance ! --------------------------------- Cr?ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Cr?ez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis.T?l?chargez GRATUITEMENT ici ! From rdbowma at yahoo.com Mon Aug 30 14:23:35 2004 From: rdbowma at yahoo.com (Ron Bowman) Date: Mon Aug 30 14:26:36 2004 Subject: [ns] Fwd: validate on macosx : procedure "p172" has argument with no name Message-ID: <20040830212335.59467.qmail@web51409.mail.yahoo.com> I finally compiled and installed ns2 on my powermac. However, when I tried to validate the install, I received the message: procedure "p172" has argument with no name for every test (at least it seems that way). There was also a message about the test outputs differing and that this problem should be diagnosed by looking at the diff of two files. Looking at those files shows two completely different files. An abbreviated example is shown below my name. I have looked through the archives, and I have seen some questions with the same problems. However, I did not find a solution. Thanks in Advance, Ron output from validate: Running test tahoe1: ../../ns test-suite-simple.tcl tahoe1 QUIET ns: [code omitted because of length] : procedure "p172" has argument with no name (Class instproc line 1) invoked from within "Node/MobileNode instproc add-interface { channel pmodel lltype mactype \ qtype qlen iftype anttype topo inerrproc outerrproc fecproc} { $self instva..." Test output differs from reference output Diagnose with: diff test-output-simple/tahoe1.test test-output-simple/tahoe1 start of tahoe1: TitleText: tahoe Device: Postscript "packets 0.00504 0 0.00504 0 0.21688 0.01 0.21688 0.01 0.21788 0.02 .... start of tahoe1.test M 0.0 nn:50 x:670 y:670 rp:dsr M 0.0 sc:../mobility/scene/scen-670x670-50-600-20-0 cp:../mobility/scene/cbr-50-20-4-512 seed:0.0 M 0.0 prop:Propagation/TwoRayGround ant:Antenna/OmniAntenna Sconfig 0.00000 tap: on snoop: rts? on errs? on Sconfig 0.00000 salvage: on !bd replies? on Sconfig 0.00000 grat error: on grat reply: on Sconfig 0.00000 $reply for props: on ring 0 search: on Sconfig 0.00000 using MOBICACHE _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush From hhbrahim at yahoo.fr Mon Aug 30 14:36:13 2004 From: hhbrahim at yahoo.fr (=?iso-8859-1?q?Hamdi=20Hennay=20brahim?=) Date: Mon Aug 30 14:38:51 2004 Subject: [ns] I need help to simulate a wireless ad-hoc routing protocol ? Message-ID: <20040830213613.55646.qmail@web21124.mail.yahoo.com> Hello ns-users, I simulate a wireless ad-hoc routing protocol using NS-2 (2.27 version), First, how can i put up annotations (or messages) in NAM editor (under the time bar) ? - How can i change the node color and/or shape from c++ code ? - How can i change the packet color and/or shape from c++ code ? I will be glad of your help. Thanks in advance. --------------------------------- Cr?ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Cr?ez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis.T?l?chargez GRATUITEMENT ici ! From roosta at EECS.Berkeley.EDU Mon Aug 30 15:18:58 2004 From: roosta at EECS.Berkeley.EDU (roosta@EECS.Berkeley.EDU) Date: Mon Aug 30 15:20:56 2004 Subject: [ns] modifying Dijkstra's algorithm in NS Message-ID: <84c8fd8493c8.8493c884c8fd@EECS.Berkeley.EDU> Hi, I would like to modify the Dijkstra's algorithm so that instead of minimizing the path from source to destination, I minimize a different metric. Could someone please tell me which routing protocol in NS already implements Dijkstra's algorithm,and if it is possible to just modify the cost metric without changing the structure of the protocol altogether. Thanks a lot for your help. Tanya From fjrm4 at yahoo.es Mon Aug 30 15:24:46 2004 From: fjrm4 at yahoo.es (Francisco Ros) Date: Mon Aug 30 15:26:52 2004 Subject: [ns] How can i get a pointer to the node calling my routing protocol ? In-Reply-To: <20040830212325.91838.qmail@web21122.mail.yahoo.com> References: <20040830212325.91838.qmail@web21122.mail.yahoo.com> Message-ID: <200408310024.46609.fjrm4@yahoo.es> El Lunes, 30 de Agosto de 2004 23:23, Hamdi Hennay brahim escribi?: > Hello NS users, > > I simulate an adhoc routing protocol. So how can i get a pointer to the > node calling to the protocol in c++ code ? > You could do the following: MobileNode* mynode = (MobileNode*)Node::get_node_by_address(addr); where addr is the address used when the agent was created. Regards, Francisco Ros > Thanks in advance ! > > > --------------------------------- > Cr?ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! > Cr?ez votre Yahoo! Mail > > Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s > pour dialoguer instantan?ment avec vos amis.T?l?chargez GRATUITEMENT ici ! From johnh at ISI.EDU Mon Aug 30 07:11:53 2004 From: johnh at ISI.EDU (John Heidemann) Date: Mon Aug 30 17:21:01 2004 Subject: [ns] [bug] trace file In-Reply-To: <200408270837.i7R8bXW25991@www.isi.edu> Message-ID: <200408301412.i7UEBrtj015205@dash.isi.edu> On Fri, 27 Aug 2004 01:37:33 PDT, Rachel Villacorta wrote: > >[Bug Report] > >----------------------------- >Category: Other >Package: ns 2.26 >OS: Linux 2.4.20-8 >Environment Variables: >LD_LIBRARY_PATH=/home/rachel/ns2/ns-allinone-2.26/otcl-1.0a8:/home/rachel/ns2/ns-allinone-2.26/lib >TCL_LIBRARY=/home/rachel/ns2/ns-allinone-2.26/tcl8.3.2/library >TK_LIBRARY= > >----------------------------- >Description: > >Description of Problem: Running the same tcl script do not always produce the same trace file > > > >How Easily Reproducible: >(e.g. every time, intermittent, once only, etc.) >often > >Steps to Reproduce: >(describe the minimal set of steps necessary to trigger the bug) >1. run the same script at least twice >2. save the trace results in different files >3. > > >Actual Results: >(describe what the application did after performing the above steps) >The trace files were not the same. As an example, when I run red.tcl twice with the trace saved in red1.tr(for the first run) and red2.tr (for the second run) and when I use the 'diff' command to look at the difference of the two files, the following is the output: >970173c970173 >< + 733.354239 9 9p exp 125 ------- 6 6.0 10.6 38223 330466 >--- >> + 733.354239 9 10 exp 125 ------- 6 6.0 10.6 38223 330466 > > At other times, different parts of the trace files were different (e.g. 'exp' becomes 'elp' or '7.095' becomes '7>095' etc...) > >Expected Results: >(describe what the application should have done, were the bug not present) >The trace files should be exactly the same > >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.) > >At times, the trace files generated are the same but at times after 2,3( and so on ) more runs, trace files could be different from each other.... This was also experienced in ns version 2.1b9a...Please inform me when you are able to fix this. I'll inform you immediately if I'll be able to solve this...Thanks:) The output of the ns test scripts IS (or at least should be) deterministic (otherwise the tests wouldn't pass). Are they for you? What about on the current release of ns? (We cannot maintain old releases.) However, it is possible to write non-deterministic programs in ns, for example, by seeding the random number generator off the time (although you don't do this). So what you report is not necessarily a bug. -John Heidemann From johnh at ISI.EDU Mon Aug 30 06:56:04 2004 From: johnh at ISI.EDU (John Heidemann) Date: Mon Aug 30 17:21:49 2004 Subject: [ns] Problem installing Tk [from ns-allinone2.27] In-Reply-To: <006b01c48a58$7e68f7a0$c223fea9@vahid> Message-ID: <200408301356.i7UDu4tj014740@dash.isi.edu> On Wed, 25 Aug 2004 00:03:35 EDT, "Vahid" wrote: > >Thanks for all the replies to my question. > >The problem was that I didn't have XFree86-devel RPM installed on the Linux. >As one of you said, it's not included in the default RHL 9.0 installation >package. >After installing this RPM (which itself requires the installation of many >other packages...) >everything went smoothly. We will add this to the ns-problems FAQ. -John Heidemann From johnh at ISI.EDU Mon Aug 30 07:25:13 2004 From: johnh at ISI.EDU (John Heidemann) Date: Mon Aug 30 17:22:05 2004 Subject: [ns] anyone can explain to me why simulations, with different random seeds, need quite large different simulation time to finish. In-Reply-To: <9A21B9DC026C80439FBD8C5B197AE04BC2C1DB@zeta.usq.edu.au> Message-ID: <200408301425.i7UEPDek015529@dash.isi.edu> On Mon, 30 Aug 2004 07:54:37 +1000, "Zhi Li" wrote: >[1 ] > >[2 ] >Dear All, > >I have tried to do simulations with the same setting such as simulation durations, topology except different random seeds to do statistics. But some simultions finish in 2 or 3 hours, while the others needs days. > >Anyone can explain this to me? Or is there anything I need to be careful? > >Regards, >Zhi One guess: If you exceed the physical memory of your machine and start using virtual memory then your run times can change drastically. -John Heidemann From klee at nps.edu Mon Aug 30 17:49:11 2004 From: klee at nps.edu (Lee kok thong) Date: Mon Aug 30 17:51:48 2004 Subject: [ns] I need help to simulate a wireless ad-hoc routing protocol ? In-Reply-To: <20040830213613.55646.qmail@web21124.mail.yahoo.com> Message-ID: <000b01c48ef4$5512b3f0$220110ac@G0303085> Check under ns2-27/tcl/ex/ there are great examples that teach you hw to write the scripts. One of which describe how to change color. regards Francis -----Original Message----- From: ns-users-bounces@ISI.EDU [mailto:ns-users-bounces@ISI.EDU] On Behalf Of Hamdi Hennay brahim Sent: Monday, August 30, 2004 2:36 PM To: NS Subject: [ns] I need help to simulate a wireless ad-hoc routing protocol ? Hello ns-users, I simulate a wireless ad-hoc routing protocol using NS-2 (2.27 version), First, how can i put up annotations (or messages) in NAM editor (under the time bar) ? - How can i change the node color and/or shape from c++ code ? - How can i change the packet color and/or shape from c++ code ? I will be glad of your help. Thanks in advance. --------------------------------- Cr?ez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Cr?ez votre Yahoo! Mail Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis.T?l?chargez GRATUITEMENT ici ! From cantonop at ee.upatras.gr Tue Aug 31 03:06:53 2004 From: cantonop at ee.upatras.gr (Christos Antonopoulos) Date: Tue Aug 31 03:10:15 2004 Subject: [ns] wired networks mac protocols Message-ID: <001001c48f42$4108dd50$40bb8c96@apel.ee.upatras.gr> Hello all I want to simulate wired networks and i would like to know which mac protcols are supported and how do i define which one i want to use in my tcl script. thanks in advance Chris From piabasu at rediffmail.com Tue Aug 31 03:38:41 2004 From: piabasu at rediffmail.com (bibek basu) Date: Tue Aug 31 03:40:50 2004 Subject: [ns] ns2.1b6 installation problem Message-ID: <20040831103841.16454.qmail@webmail28.rediffmail.com> Hi everybody! I am facing problem when re building ns2.1b6 after including WDM patch.The error is: /usr/include/stdlib.h:527: conflicting types for `malloc' ../compat/stdlib.h:34: previous declaration of `malloc' /usr/include/stdlib.h:530: conflicting types for `calloc' ../compat/stdlib.h:29: previous declaration of `calloc' make: *** [tkUnixInit.o] Error 1 tk8.0.4 make failed! Exiting ... suggest me ehat to do ************************** Bibek Basu M.Tech. (Optoelectronics & Optical Communication) WB-22;Vindhyachal Hostel; IIT Delhi ************************** From anup.mayank at gmail.com Tue Aug 31 03:56:03 2004 From: anup.mayank at gmail.com (Anup Mayank) Date: Tue Aug 31 03:58:58 2004 Subject: [ns] Help needed in setting Carrier sense range and transmission range of a node Message-ID: <469192b00408310356788eca2c@mail.gmail.com> Hi, For my simulation i am trying to implement a broadcast server which periodically broadcasts certain data items. I want to increase the transmission range of node so that it can cover the whole topography and further i want to increase the CSThresh_ value so that it will detect channel as idle. Following is the Tcl script by which i am trying to change the values. But it doesn't seem to work. I checked it by attaching a CBR traffic to this node and placed a dummy sink. When sink is in the range of 250 m it gets the packets, but beyond that it doesn't recieve any packet. Please help me with it as it is very urgent. Thanks and regards #setting up of broadcast server and setting its parameter set BCastServer [$ns_ node] $BCastServer random-motion 0 $BCastServer set X_ [expr $xMax/2.0] $BCastServer set Y_ [expr $yMax/2.0] $BCastServer set Z_ 0.0 set listPhy [$BCastServer array get netif_] set phyObj [lindex $listPhy 1] $phyObj set Pt_ 3.0 $phyObj set CSThresh_ 1.0 From frida at isy.liu.se Tue Aug 31 04:09:11 2004 From: frida at isy.liu.se (Frida Eng) Date: Tue Aug 31 04:11:52 2004 Subject: [ns] streaming and RNC and RLC/MAC Message-ID: <41345C57.3080404@isy.liu.se> A more elaborate description of the code at http://www.control.isy.liu.se/~frida/nsmodules/ Implementation of the 3G modules RNC and RLC/MAC has been done for ns-2. the focus is on TCP performance over a link utilizing these modules. A streaming protocol has also been implemented. Documenatation and evaluation together with the code can be found at the URL above. /Frida From Flavio.Desandre at TILAB.COM Tue Aug 31 05:58:15 2004 From: Flavio.Desandre at TILAB.COM (Desandre` Flavio) Date: Tue Aug 31 06:01:09 2004 Subject: [ns] 2 mac layers on the same node Message-ID: Hi all, I have to simulate a network with two kind of nodes: simple nodes and base stations. I want base station to communicate between them using 802.11a and 802.11b to communicate with the other nodes...I can't do it!! Has any of you already encountered this problem? Your help is appreciated Thank Flavio Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A. ==================================================================== CONFIDENTIALITY NOTICE This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please send an e_mail to MailAdmin@tilab.com. Thank you ==================================================================== From mathias.peron at ens-lyon.fr Tue Aug 31 05:17:06 2004 From: mathias.peron at ens-lyon.fr (Mathias =?ISO-8859-1?Q?P=E9ron?=) Date: Tue Aug 31 06:21:50 2004 Subject: [ns] Help needed in setting Carrier sense range and transmission range of a node In-Reply-To: <469192b00408310356788eca2c@mail.gmail.com> References: <469192b00408310356788eca2c@mail.gmail.com> Message-ID: <1093954626.873.12.camel@xlave> Hi, If you want to calculate CSThresh_ and RXThresh_ from metters values you can use the program in ns-2/indep-utils/propagation named threshold.cc. %g++ threshold.cc -o threshold (if needed:) %chmod u+x threshold usage: ./threshold -m [other-options] distance I hope it can help, mathias P. Le mar 31/08/2004 ? 12:56, Anup Mayank a ?crit : > Hi, > For my simulation i am trying to implement a broadcast server which > periodically broadcasts certain data items. I want to increase the > transmission range of node so that it can cover the whole topography > and further i want to increase the CSThresh_ value so that it will > detect channel as idle. > > Following is the Tcl script by which i am trying to change the values. > But it doesn't seem to work. I checked it by attaching a CBR traffic > to this node and placed a dummy sink. When sink is in the range of 250 > m it gets the packets, but beyond that it doesn't recieve any packet. > > Please help me with it as it is very urgent. > Thanks and regards > > #setting up of broadcast server and setting its parameter > > set BCastServer [$ns_ node] > > $BCastServer random-motion 0 > > $BCastServer set X_ [expr $xMax/2.0] > > $BCastServer set Y_ [expr $yMax/2.0] > > $BCastServer set Z_ 0.0 > > set listPhy [$BCastServer array get netif_] > > set phyObj [lindex $listPhy 1] > > $phyObj set Pt_ 3.0 > > $phyObj set CSThresh_ 1.0 -- Mathias P?ron [ http://perso.ens-lyon.fr/mathias.peron/ ] From tongsut at iit.edu Tue Aug 31 08:16:03 2004 From: tongsut at iit.edu (Sutep Tongngam) Date: Tue Aug 31 08:21:00 2004 Subject: [ns] Help needed in setting Carrier sense range and transmission range of a node Message-ID: <1be53311beae10.1beae101be5331@iit.edu> Hi, 1.To calculate the transmission range, you can see at ~/trace/cmu-trace.cc bradius=pow(P_t*G_r*G_t*pow(h,4)/(P_r*L),0.25) 2.I used commands listed below to set the Pt for 500 m. transmission range: // use the previously set global opt which is normally set at the beginning of the script for .some nodes.. { set node ... $god ... } // set your new global opt (including node config if you will) global opt Phy/WirelessPhy set Pt_ 4.51 // for about 500 m. for .some nodes.. { set node ... $god ... } Please note that I simulated in the only wireless network, hopefully, you can use or apply. Sutep. ----- Original Message ----- From: Anup Mayank Date: Tuesday, August 31, 2004 5:56 am Subject: [ns] Help needed in setting Carrier sense range and transmission range of a node > > Hi, > For my simulation i am trying to implement a broadcast server which > periodically broadcasts certain data items. I want to increase the > transmission range of node so that it can cover the whole topography > and further i want to increase the CSThresh_ value so that it will > detect channel as idle. > > Following is the Tcl script by which i am trying to change the values. > But it doesn't seem to work. I checked it by attaching a CBR traffic > to this node and placed a dummy sink. When sink is in the range of 250 > m it gets the packets, but beyond that it doesn't recieve any packet. > > Please help me with it as it is very urgent. > Thanks and regards > > #setting up of broadcast server and setting its parameter > > set BCastServer [$ns_ node] > > $BCastServer random-motion 0 > > $BCastServer set X_ [expr $xMax/2.0] > > $BCastServer set Y_ [expr $yMax/2.0] > > $BCastServer set Z_ 0.0 > > set listPhy [$BCastServer array get netif_] > > set phyObj [lindex $listPhy 1] > > $phyObj set Pt_ 3.0 > > $phyObj set CSThresh_ 1.0 > > From georgemp at mac.com Tue Aug 31 12:11:02 2004 From: georgemp at mac.com (Malayil Philip George) Date: Tue Aug 31 12:14:20 2004 Subject: [ns] Problems with New Agent Message-ID: Hi, I tried creating a new agent. It compiles fine. I also edited the packet.h, Maketfile and ns-defaults.tcl. But, when I use it in my script I get the following error --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o383: no target for slot -1 _o383 type: Classifier/Port content dump: classifier _o383 0 offset 0 shift 2147483647 mask 2 slots slot 0: _o391 (CMUTrace/Recv) slot 255: _o385 (CMUTrace/Recv) ---------- Finished standard no-slot{} default handler ---------- I tried searching through the archives and understand that this is because ns does not know the destination of the packet. I have however specified IP_BROADCAST in the c++ code for my destination when a packet is created. Is there anything else I should be setting. I am quite lost and any help is much appreciated. Thanks Regards George M.P. From jz105 at york.ac.uk Tue Aug 31 13:37:45 2004 From: jz105 at york.ac.uk (Jee J.Z.) Date: Tue Aug 31 13:36:05 2004 Subject: [ns] dynamically assign multiple addresses for a node Message-ID: <07a701c48f9a$5eeb48f0$68892090@grouse> Hi all, Could anybody let me know how I can dynamically assign multiple addresses for a node in ns2? Any hints are welcome. Thank you in advance. Regards, Jee From zhili at usq.edu.au Tue Aug 31 15:24:59 2004 From: zhili at usq.edu.au (Zhi Li) Date: Tue Aug 31 15:28:15 2004 Subject: [ns] anyone can explain to me why simulations, with different random seeds, need quite large different simulation time to finish. Message-ID: <9A21B9DC026C80439FBD8C5B197AE04BC2C1E2@zeta.usq.edu.au> Hi, John I really appreciate your reply. Thank you very much! The server I have used to do simulations is a supercompter, and the simulations indeed use virtual memory. But I have tried to keep the same simulation seeds and just reduced simulation time by half and expected to get simulations much quicker done all in all. Some preiously being finished in days have been completing in less than half hour. On the contrary, some however need longer time to be finished. This is also caused by the usage of virtual memory. Do you know anyway to solve the unexpected long run times? BTY, the used virtual memory is less than 200MB. Best regards, Zhi -----Original Message----- From: John Heidemann [mailto:johnh@isi.edu] Sent: Tue 8/31/2004 12:25 AM To: Zhi Li Cc: ns-users@isi.edu Subject: Re: [ns] anyone can explain to me why simulations, with different random seeds, need quite large different simulation time to finish. On Mon, 30 Aug 2004 07:54:37 +1000, "Zhi Li" wrote: >[1 ] > >[2 ] >Dear All, > >I have tried to do simulations with the same setting such as simulation durations, topology except different random seeds to do statistics. But some simultions finish in 2 or 3 hours, while the others needs days. > >Anyone can explain this to me? Or is there anything I need to be careful? > >Regards, >Zhi One guess: If you exceed the physical memory of your machine and start using virtual memory then your run times can change drastically. -John Heidemann From qysong at ee.usyd.edu.au Tue Aug 31 17:19:43 2004 From: qysong at ee.usyd.edu.au (Lily Song) Date: Tue Aug 31 17:23:01 2004 Subject: [ns] streaming and RNC and RLC/MAC Message-ID: <6.0.3.0.2.20040901100705.01b78a30@cassius.ee.usyd.edu.au> Hi, I am trying to develop a mobile node that is able to communicate with both WLAN AP and UMTS BS. In the mobile node, there are two physical layers, two link layers and one network layer (Mobile IP). I already installed the UMTS extensions (EURANE) to ns-2.26. Do you think it is the right way to change some codes in ns-mobilenode.tcl to realize it? Where should I put the handover trigger? Thank you for your help. Lily From fida at pmail.ntu.edu.sg Tue Aug 31 20:54:10 2004 From: fida at pmail.ntu.edu.sg (#FARIDA RENATA HEYDER#) Date: Tue Aug 31 20:57:24 2004 Subject: [ns] ALOT of undefined references to tclcl.h Message-ID: <399C2842DBCE6940B2CEBC15EBDC107414ED94@mail02.student.main.ntu.edu.sg> While compiling my ns2.1b8 with mcast extension (taken from the Monarch project) I encountered an error during make. A LOT of undefined references which I traced back to tclcl.h My tclcl is at /usr/local/include But i believe they found this during the config A snippet of the config.log: ... configure:2626: checking for libotcl1.0a7 configure:2794: checking for tclcl.h --> No Error configure:2843: checking for libtclcl ... However, in the same log, I found this ... configure:4438: checking for __int64_t configure:4453: gcc -o conftest -g -O2 conftest.c 1>&5 configure: In function `main': configure:4449: error: `__int64_t' undeclared (first use in this function) configure:4449: error: (Each undeclared identifier is reported only once configure:4449: error: for each function it appears in.) configure:4449: error: parse error before "x" configure:4449: error: `x' undeclared (first use in this function) configure: failed program was: #line 4447 "configure" #include "confdefs.h" main() { __int64_t x; exit (sizeof(x) >= 8 ? 0 : 1); } configure:4473: checking for long long configure:4488: gcc -o conftest -g -O2 conftest.c 1>&5 configure:4510: checking for int64_t configure:4544: checking which kind of 64-bit int to use configure:4573: checking for struct ether_header ... Could this __int64_t be the problem? because I?ve noticed that in config.h there is a comment saying in config.h: 57 /*after autoconf (and HAVE_INT64) we can pick up tclcl.h*/ ( Here?s the exact error from the make file (SINCE IT?s VERY LONG, I will only put the first and last part of it) c++ -o ns \ tclAppInit.o random.o rng.o ranvar.o misc.o timer-handler.o scheduler.o object.o packet.o ip.o route.o connector.o ttl.o trace.o trace-ip.o classifier.o classifi er-addr.o classifier-hash.o classifier-virtual.o classifier-mcast.o classifier-bst.o classifier-mpath.o replicator.o classifier-mac.o classifier-port.o src_rtg/classifier -sr.o src_rtg/sragent.o src_rtg/hdr_src.o ump.o app.o telnet.o tcplib-telnet.o trafgen.o traffictrace.o pareto.o expoo.o cbr_traffic.o tbf.o resv.o sa.o saack.o measuremo d.o estimator.o adc.o ms-adc.o timewindow-est.o acto-adc.o pointsample-est.o salink.o actp-adc.o hb-adc.o expavg-est.o param-adc.o null-estimator.o adaptive-receiver.o va trcvr.o consrcvr.o agent.o message.o udp.o session-rtp.o rtp.o rtcp.o ivs.o tcp.o tcp-sink.o tcp-reno.o tcp-newreno.o tcp-vegas.o tcp-rbp.o tcp-full.o baytcp/tcp-full-bay .o baytcp/ftpc.o baytcp/ftps.o scoreboard.o tcp-sack1.o tcp-fack.o tcp-asym.o tcp-asym-sink.o tcp-fs.o tcp-asym-fs.o tcp-int.o chost.o tcp-session.o nilist.o integrator.o queue-monitor.o flowmon.o loss-monitor.o queue.o drop-tail.o simple-intserv-sched.o red.o semantic-packetqueue.o semantic-red.o ack-recons.o sfq.o fq.o drr.o cbq.o hackl oss.o errmodel.o fec.o delay.o snoop.o gaf/gaf.o dynalink.o rtProtoDV.o net-interface.o ctrMcast.o mcast_ctrl.o srm.o sessionhelper.o delaymodel.o srm-ssm.o srm-topo.o mf tp.o mftp_snd.o mftp_rcv.o codeword.o alloc-address.o address.o lib/int.Vec.o lib/int.RVec.o lib/dmalloc_support.o webcache/http.o webcache/tcp-simple.o webcache/pagepool .o webcache/inval-agent.o webcache/tcpapp.o webcache/http-aux.o webcache/mcache.o webcache/webtraf.o realaudio/realaudio.o lanRouter.o filter.o pkt-counter.o Decapsulator .o Encapsulator.o encap.o channel.o mac.o ll.o mac-802_11.o mac-802_3.o mac-tdma.o mip.o mip-reg.o gridkeeper.o propagation.o tworayground.o antenna.o omni-antenna.o shad owing.o bi-connector.o node.o mobilenode.o arp.o god.o dem.o topography.o modulation.o priqueue.o phy.o wired-phy.o wireless-phy.o mac-timers.o cmu-trace.o varp.o dsdv/ds dv.o dsdv/rtable.o rtqueue.o rttable.o imep/imep.o imep/dest_queue.o imep/imep_api.o imep/imep_rt.o imep/rxmit_queue.o imep/imep_timers.o imep/imep_util.o imep/imep_io.o tora/tora.o tora/tora_api.o tora/tora_dest.o tora/tora_io.o tora/tora_logs.o tora/tora_neighbor.o dsr/dsragent.o dsr/hdr_sr.o dsr/mobicache.o dsr/path.o dsr/requesttable. o dsr/routecache.o admr/admragent.o admr/pbuff_admr.o admr/admragent_fns.o admr/data_structures.o admr/hdr_admr.o admr/universal_timer.o admr/node_state.o admr/universal_ timer_fns.o odmrp/hdr_o.o odmrp/join_query_timer.o odmrp/join_reply_timer.o odmrp/jq_src_hash.o odmrp/jq_table.o odmrp/jr_src_hash.o odmrp/jr_table.o odmrp/mem_table.o od mrp/msg_cache.o odmrp/odmrpagent.o odmrp/packet_buffer.o unicast_agent/unicast_agent.o routing_agent/rtragent.o aodv/aodv_logs.o aodv/aodv.o ns-process.o satgeometry.o sa thandoff.o satlink.o satnode.o satposition.o satroute.o sattrace.o rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o fsm.o tcp-abs.o diffusion/diffusion.o diffusion /diff_rate.o diffusion/diff_prob.o diffusion/diff_sink.o diffusion/flooding.o diffusion/omni_mcast.o diffusion/hash_table.o diffusion/routing_table.o diffusion/iflist.o t frc.o tfrc-sink.o energy-model.o ping.o tcp-rfc793edu.o rio.o semantic-rio.o tcp-sack-rh.o scoreboard-rh.o plm/loss-monitor-plm.o plm/cbr-traffic-PP.o linkstate/hdr-ls.o mpls/classifier-addr-mpls.o mpls/ldp.o mpls/mpls-module.o rtmodule.o classifier-hier.o addr-params.o nix/hdr_nv.o nix/classifier-nix.o nix/nixnode.o routealgo/rnode.o rou tealgo/bfs.o routealgo/rbitmap.o routealgo/rlookup.o routealgo/routealgo.o nix/nixvec.o nix/nixroute.o diffserv/dsred.o diffserv/dsEdge.o diffserv/dsCore.o diffserv/dsPol icy.o diffserv/dsredq.o red-pd.o pushback/rate-limit.o pushback/rate-limit-strategy.o pushback/ident-tree.o pushback/agg-spec.o pushback/logging-data-struct.o pushback/ra te-estimator.o pushback/pushback-queue.o pushback/pushback.o parentnode.o basetrace.o simulator.o linkstate/ls.o linkstate/rtProtoLS.o gen/version.o gen/ns_tcl.o gen/ptyp es.o win32.o -L/usr/local/lib -ltclcl -L/usr/local/lib -lotcl -L/usr/local/lib -ltk8.3 -L/usr/local/lib -ltcl8.3 -L/usr/X11R6/lib -lXext -lX11 -ldl -lm tclAppInit.o(.text+0x142): In function `Tcl_AppInit': : undefined reference to `Tcl::init(Tcl_Interp *, char const *)' tclAppInit.o(.text+0x152): In function `Tcl_AppInit': : undefined reference to `EmbeddedTcl::load(void)' ... ... (other undefined references here) ... linkstate/rtProtoLS.o(.rtProtoLS::gnu.linkonce.t.installRoutes(void)+0x2f): In function `rtProtoLS::installRoutes(void)': : undefined reference to `Tcl::evalf(char const *,...)' linkstate/rtProtoLS.o(.rtProtoLSclass::gnu.linkonce.t.(void)+0x14): In function `rtProtoLSclass::rtProtoLSclass(void)': : undefined reference to `TclClass::TclClass(char const *)' linkstate/rtProtoLS.o(.gnu.linkonce.d.__vt_14rtProtoLSclass+0x10): undefined reference to `TclClass::otcl_mappings(void)' linkstate/rtProtoLS.o(.gnu.linkonce.d.__vt_14rtProtoLSclass+0x14): undefined reference to `TclClass::bind(void)' linkstate/rtProtoLS.o(.gnu.linkonce.d.__vt_14rtProtoLSclass+0x18): undefined reference to `TclClass::method(int, char const *const *)' linkstate/rtProtoLS.o(.gnu.linkonce.t.__tf14rtProtoLSclass+0x10): In function `rtProtoLSclass type_info function': : undefined reference to `TclClass type_info function' linkstate/rtProtoLS.o(.gnu.linkonce.t.__tf14rtProtoLSclass+0x18): In function `rtProtoLSclass type_info function': : undefined reference to `TclClass type_info node' collect2: ld returned 1 exit status make: *** [ns] Error 1 [root@localhost ns-2.1b8-mcast]# exit CAN ANYONE HELP ME?? Thanks Farida Renata Heyder School of Computer Engineering, 4th year Nanyang Technological University, Singapore ph: +65 9007 7824 e : fida@pmail.ntu.edu.sg From frida at isy.liu.se Tue Aug 31 22:54:39 2004 From: frida at isy.liu.se (Frida Eng) Date: Tue Aug 31 22:56:51 2004 Subject: [ns] streaming and RNC and RLC/MAC In-Reply-To: <6.0.3.0.2.20040901100705.01b78a30@cassius.ee.usyd.edu.au> References: <6.0.3.0.2.20040901100705.01b78a30@cassius.ee.usyd.edu.au> Message-ID: <4135641F.7000607@isy.liu.se> Hi Lily, In our work we did not consider handovers, since that was not the main part that was interesting. We considered the functionality for 'some' users, not specific users. Therefore I don't know how ns-mobilenode.tcl works, bnut I believe that it takes care of movements, and therefore I guess should in some way be connected to the handovers. Our RNCmodule, have possibility of both radio and wired connections from it. Maybe the chosen implementation there can help you with ideas. I hope that someone else can eb of better help to you. Frida Lily Song wrote: > Hi, > > I am trying to develop a mobile node that is able to communicate with > both WLAN AP and UMTS BS. In the mobile node, there are two physical > layers, two link layers and one network layer (Mobile IP). I already > installed the UMTS extensions (EURANE) to ns-2.26. Do you think it is > the right way to change some codes in ns-mobilenode.tcl to realize it? > Where should I put the handover trigger? Thank you for your help. > > Lily > From frida at isy.liu.se Tue Aug 31 23:09:19 2004 From: frida at isy.liu.se (Frida Eng) Date: Tue Aug 31 23:11:53 2004 Subject: [ns] How to use the ErrorModel/TwoStateMarkov? Message-ID: <4135678F.7010703@isy.liu.se> Hi, One of my students have used twostate error models, you can check it out at http://www.control.isy.liu.se/~frida/nsmodules/#RLC there are example scripts to download. Frida From cenzhiwei at gmail.com Thu Aug 26 08:58:15 2004 From: cenzhiwei at gmail.com (Zhiwei Cen) Date: Thu Sep 2 11:48:02 2004 Subject: [ns] IP source routing (src_rting) in wireless networks? Message-ID: <171044bd040826085834168d38@mail.gmail.com> Hi, I am trying to use source routing option ($ns_ src_rting 1) on wireless netowork simulation (ad hoc) mode. However it does not seem to be working. Has anyone tried that before? Thanks, Zhiwei P.s. I am simply modifying wireless-demo-csci694.tcl by adding $ns_ src_rting 1 at the beginning and some sourting routing functions in cbr-3-test: $udp_(0) set fid_ 0 $udp_(0) target [$node_(0) set src_agent_] $tcp set fid_ 1 $tcp target [$node_(1) set src_agent_] set temp [$node_(0) set src_agent_] $temp install_connection [$udp_(0) set fid_] \ $node_(0) $node_(2) $node_(0) $node_(2) set temp [$node_(1) set src_agent_] $temp install_connection [$tcp set fid_] \ $node_(1) $node_(2) $node_(1) $node_(2) -------------------- error msg I got: warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl can't read "entry_point_": no such variable while executing "return $entry_point_" (procedure "_o14" line 3) (SRNodeNew entry line 3) invoked from within "$node entry" (procedure "_o17" line 5) (RtModule/Source register line 5) invoked from within "$mod register $self" (procedure "_o14" line 3) (Node register-module line 3) invoked from within "$self register-module [new RtModule/$modname]" (procedure "_o14" line 4) (Node mk-default-classifier line 4) invoked from within "$self mk-default-classifier" (procedure "_o14" line 24) (Object next line 24) invoked from within "_o14 next" ("eval" body line 1) invoked from within "eval $self next $args" (procedure "_o14" line 3) (Object next line 3) invoked from within "_o14 next" ("eval" body line 1) invoked from within "eval $self next $args " (procedure "_o14" line 6) (SRNodeNew init line 6) invoked from within "_o14 init " (Class create line 1) invoked from within "SRNodeNew create _o14 " 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 SRNodeNew" ("eval" body line 1) invoked from within "eval new $nodeclass $args" (procedure "_o3" line 8) (Simulator create-node-instance line 8) invoked from within "_o3 create-node-instance" ("eval" body line 1) invoked from within "eval $self create-node-instance $args" (procedure "_o3" line 6) (Simulator create-wireless-node line 6) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion # $node_($i) topography $w..." (file "no1.tcl" line 142) num_nodes is set 3 From marstefy at cc.hut.fi Mon Aug 30 00:16:37 2004 From: marstefy at cc.hut.fi (Stefano Marinoni) Date: Thu Sep 2 11:48:19 2004 Subject: [ns] Looking for an Otcl text editor and/or compiler tool Message-ID: <1093850197.4132d4557ffab@webmail2.hut.fi> Hi everybody, When I write some scripts for this NS-2 in otcl I always use a normal text editor. This is annoying me. I would be much more confortable having a tool which makes my task more valuable painting the keywords and so on as we all programmers were used writing in C or C++ or whatever language where all the words appear with a differen color in function of their purpose. Furthermore if anybody knows such a tool which also compiles it would be the best; this is something more which I do not really need. I'd like to make you observe which I am looking for a software application tool for windowsXP or also something for the emulator CGYWIN. PS:Thank you Yuria, with the suggested URL I have finally succeded installing all the NS-2 simulator package. I knew which there was that page but from the NS-2 home page the link appeared to be not functioning and it still does. Waiting an oppotune and exhaustive advice I thank you all in advance for the showed attention Stefano M. From yogonet02 at yahoo.co.uk Mon Aug 30 22:10:32 2004 From: yogonet02 at yahoo.co.uk (Yogo) Date: Thu Sep 2 11:48:29 2004 Subject: [ns] Optical Burst Switching (OBS) simulation tool - urgent Message-ID: <001401c48f18$d79611e0$74299fcb@AIT2004> Dear NS users, I intend to simulate OBS networks. Do you know any software package that supports OBS? I know that people have simulated OBS using NS-2, but I could not find a OBS model in NS website. Any suggestions about this matter would be appreciated. Regards, Yogo From yogonet02 at yahoo.co.uk Mon Aug 30 22:18:31 2004 From: yogonet02 at yahoo.co.uk (Yogo) Date: Thu Sep 2 11:48:40 2004 Subject: [ns] Optical Burst Switching (OBS) simulation tool - urgent Message-ID: <003801c48f19$f52518e0$74299fcb@AIT2004> Dear NS users, I intend to simulate OBS networks. Do you know any software package that supports OBS? I know that people have simulated OBS using NS-2, but I could not find a OBS model in NS website. Any suggestions about this matter would be appreciated. Regards, Yogo From cenzhiwei at gmail.com Wed Aug 25 20:29:25 2004 From: cenzhiwei at gmail.com (Zhiwei Cen) Date: Thu Sep 2 11:48:50 2004 Subject: [ns] Using source routing option on wireless networks Message-ID: <171044bd04082520294286835f@mail.gmail.com> Hi, I am trying to use source routing option ($ns_ src_rting 1) on wireless netowork simulation (ad hoc) mode. However it does not seem to be working. Has anyone tried that before? Thanks, Zhiwei P.s. I am simply modifying wireless-demo-csci694.tcl by adding $ns_ src_rting 1 at the beginning and some sourting routing functions in cbr-3-test: $udp_(0) set fid_ 0 $udp_(0) target [$node_(0) set src_agent_] $tcp set fid_ 1 $tcp target [$node_(1) set src_agent_] set temp [$node_(0) set src_agent_] $temp install_connection [$udp_(0) set fid_] \ $node_(0) $node_(2) $node_(0) $node_(2) set temp [$node_(1) set src_agent_] $temp install_connection [$tcp set fid_] \ $node_(1) $node_(2) $node_(1) $node_(2) -------------------- error msg I got: warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl can't read "entry_point_": no such variable while executing "return $entry_point_" (procedure "_o14" line 3) (SRNodeNew entry line 3) invoked from within "$node entry" (procedure "_o17" line 5) (RtModule/Source register line 5) invoked from within "$mod register $self" (procedure "_o14" line 3) (Node register-module line 3) invoked from within "$self register-module [new RtModule/$modname]" (procedure "_o14" line 4) (Node mk-default-classifier line 4) invoked from within "$self mk-default-classifier" (procedure "_o14" line 24) (Object next line 24) invoked from within "_o14 next" ("eval" body line 1) invoked from within "eval $self next $args" (procedure "_o14" line 3) (Object next line 3) invoked from within "_o14 next" ("eval" body line 1) invoked from within "eval $self next $args " (procedure "_o14" line 6) (SRNodeNew init line 6) invoked from within "_o14 init " (Class create line 1) invoked from within "SRNodeNew create _o14 " 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 SRNodeNew" ("eval" body line 1) invoked from within "eval new $nodeclass $args" (procedure "_o3" line 8) (Simulator create-node-instance line 8) invoked from within "_o3 create-node-instance" ("eval" body line 1) invoked from within "eval $self create-node-instance $args" (procedure "_o3" line 6) (Simulator create-wireless-node line 6) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 14) (Simulator node line 14) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion # $node_($i) topography $w..." (file "no1.tcl" line 142) num_nodes is set 3 From e24902236 at yahoo.com.tw Thu Aug 26 01:24:27 2004 From: e24902236 at yahoo.com.tw (=?big5?q?=A4=FD=20=B0=B6=A7=CA?=) Date: Thu Sep 2 11:49:02 2004 Subject: [ns] where can I find the code for call admission control in wireless network? Message-ID: <20040826082427.3662.qmail@web17002.mail.tpe.yahoo.com> Hello everyone! I am a student studying simulation of wireless networks.Where can I download the sourcecode for NS2 about call admission control or distributed QoS network resource allocation scheme in wireless network?The hyperlink that is offered in "Contributed Code to ns-2" does not work. Thank you very much!   Wang --------------------------------- Yahoo!_鹿Messenger6.0 統珪q鵐[Hみ勹I