From venelin_m_petkov at yahoo.co.uk Sun Jul 1 07:34:07 2007 From: venelin_m_petkov at yahoo.co.uk (Venelin Petkov) Date: Sun, 1 Jul 2007 15:34:07 +0100 (BST) Subject: [ns] NIST - Bug?? In-Reply-To: <11368605.post@talk.nabble.com> Message-ID: <977520.68050.qm@web27309.mail.ukl.yahoo.com> Hello Junkeira, Thank you for your respond. I had tried the way you described below but i again ran to the same error message: $ ns wimax1.tcl num_nodes is set 5 invalid command name "Mac/802_16/BS" while executing "Mac/802_16/BS create _o19 " 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 "_o14" 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 70) (Simulator create-wireless-node line 70) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns node" invoked from within "set node_(0) [$ns node]" (file "wimax1.tcl" line 208) Do you have any idea how to fix this one? What is wrong with my values аssigning? #=================================== # Node #=================================== $ns node-config -adhocRouting $val(rp) \ -llType $opt(ll) \ -macType Mac/802_16/BS \ ; # THIS IS THE FAILING ROW -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channel [new $opt(chan)] \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF #0?Node set node_(0) [$ns node] $node_(0) set X_ 536 $node_(0) set Y_ 668 $node_(0) set Z_ 0.0 $ns initial_node_pos $node_(0) 20 $ns node-config -macType Mac/802_16/SS \ -wiredRouting OFF \ -macTrace ON . #1?Node set node_(1) [$ns node] $node_(1) set X_ 676 $node_(1) set Y_ 680 $node_(1) set Z_ 0.0 $ns initial_node_pos $node_(1) 20 I am currently using NS version 2.29 and the wimax module is the embedded in it. I download this copy from here: http://140.116.72.80/~smallko/ns2/ns-allinone-2.29_wimax.rar I do not know whether this is from the version that i am using or anything else that is why all help will be very appreciated. I am looking forward to hearing from you. Thank you in advance. Best Regards, Venelin Petkov Junkeira wrote: Hi, I didnt see the message, it wasnt sent to my mail, so i'll answer just now. Why you dont config like in the example datarate.tcl, first all the options for the configuration of the wireless node that will after be created, and then just change the different parameters for the MN or SS. If you can run that example without receiving an error message is because your sintax is not correct probably. But also probably you already solved that problem:). kindly, Tiago Junqueira $ns node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType Mac/802_16/BS \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channel [new $opt(chan)] \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF #puts "Configuration of base station" set bstation [$ns node 1.0.0] $ns node-config -macType Mac/802_16/SS \ -wiredRouting OFF \ -macTrace ON ;# Mobile nodes cannot do routing. set wl_node [$ns node 1.0.1] ;# create the node with given @. -- View this message in context: http://www.nabble.com/NIST---Bug---tf3849528.html#a11368605 Sent from the ns-users mailing list archive at Nabble.com. --------------------------------- Yahoo! Mail now has unlimited storage, which means you can have spam control and more space for those important e-mails. From tomhend at u.washington.edu Sun Jul 1 15:20:10 2007 From: tomhend at u.washington.edu (tomhend@u.washington.edu) Date: Sun, 1 Jul 2007 15:20:10 -0700 Subject: [ns] ns-2 FAQ Message-ID: <200707012220.l61MKAe1010795@ns-regression.ee.washington.edu> The Network Simulator ns-2: Frequently Asked Questions Note: This FAQ is now available at the project wiki: http://nsnam.isi.edu/nsnam/index.php/Ns_Users_FAQ _The mailing is is now subscriber only---please see the FAQ entry on "How do I post to the mailing list? Why was my post rejected?" for details._ * _Where do I get ns?_ From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and the download page http://www.isi.edu/nsnam/ns/ns-tests.html. * _What platforms does ns run on and what kind of hardware do I need?_ Please see "where to start" on the building ns web page: http://www.isi.edu/nsnam/ns/ns-build.html#start. * _What should I do if I have trouble downloading/extracting ns?_ This question is answered in detail at http://www.isi.edu/nsnam/ns/ns-problems.html#downloading. * _What should I do if I encounter problems building ns?_ Check: 1. the README that comes in the distribution (very brief), 2. the "installation problems, bug fixes and help" web page http://www.isi.edu/nsnam/ns/ns-problems.html, 3. the archives of the ns-users mailing list http://www.isi.edu/nsnam/ns/ns-lists.html, 4. post a bug report (see below) http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. * _What do I do after I successfully build ns?_ + Put the path to your ns executable into your PATH environment + Put the path to your otcl into your LD_LIBRARY_PATH environment + Put the path to your tcl library into your TCL_LIBRARY environment * _Where can I find documentation for ns?_ All documentation is linked from the main ns web page http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial (originally from Marc Greis) and a reference manual (ns notes and documentation). * _Words, words, words... that documentation is nice, but where are some sample scripts I can start from?_ Many sample scripts can be found in the ns distribution in ~ns-2/tcl/ex and ~ns-2/tcl/test. * _What protocols does ns support?_ A lot! Almost all variants of TCP, several forms of multicast, wired networking, several ad hoc routing protocols and propagation models (but not cellular phones), data diffusion, satellite, and other stuff. See the documentation (described above) for details, or download ns and look. * _How do I know that ns correctly implements these protocols?_ Ns has validation tests that cover many protocols, see http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately users are responsible for verifying that ns is accurate for their purposes---since we cannot foresee all the ways ns may be used, we cannot test all cases with all inputs. * _Are there any contributed/additional protocols not in the main distribution?_ Yes, please see the contributed code web page http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list archives can also be helpful (see below). * _How should I get started doing something (like implementing a new protocol or trying an experiment)?_ We recommend that you look through the tutorial (see documentation, above), then start with an example program that is most similar to yours (in the tutorial, or in tcl/ex or tcl/test in the distribution), and then start changing things. * _What should I do to compile ns to reflect my changes if I've modified some .cc or .h files?_ go to ns directory and run "make" or "make depend; make" * _How do I subscribe to the ns-users mailing list? How do I search old list archives? I can't take any more---how do I get off this list?_ To subscribe or unsubscribe, see http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at http://www.isi.edu/nsnam/ns/ns-lists.html. * _How do I post to the mailing list? Why was my post rejected?_ As of June 2004 the ns-users lists allow posts from _subscriber only_. If you're not a subscriber, your posts to the list will be rejected. (This is unfortunately necessary to dispose efficiently of spam; manual filtering is too expensive.) We realize that the list is high traffic, so if you wish to post to the list without receiving messages on it, please subscribe and select the _no-mail_ option for your subscription. For details about the mailing list including mailing-list specific FAQ (for example, what if you're subscribed but still can't post), please see http://www.isi.edu/nsnam/ns/ns-lists.html. * _Did my post appear on the mailing list? (Or, why didn't my post appear on the mailing list?)_ See the http://www.isi.edu/nsnam/ns/ns-lists.html web page for help debugging mailing list problems. * _What if I have a question that's not answered here?_ If you've checked the installation problems and bug fixes web page (http://www.isi.edu/nsnam/ns/ns-problems.html) and there's no answer to your question, you may want to file a bug report or post a question to the ns-user's mailing list. First, you should check the archive of the list at http://www.isi.edu/nsnam/ns/ns-lists.html. Your question may already be answered there. If not, you can post a bug report using the web form at http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. If your question is NOT about ns implementation bugs, you may wish to post to the list. First you should subscribe. Subscription instructions are at http://www.isi.edu/nsnam/ns/ns-lists.html. _Please note that mail sent to the list is publicly distributed and archived. _If you have concerns about your message being made public (spam harvesting of your address), please consider that _before_ posting. We cannot remove messages from reciepient's mailboxes or the public archive after they're posted. When posting bug reports, please _always_ include information including at least (the bug report form includes spaces for these): + what version of ns you're using, + what operating system you're running on (not just Linux or Solaris, but RedHat version 7.0 or Solaris 2.4---send us the output of "uname -a"), + what specific behavior you see (if ns doesn't compile, what's the specific error; if TCP does something strange, what exactly did it do [send a pointer to a packet trace]), + what behavior you expected to see (if ns doesn't compile this is obvious, but if TCP does something strange, why is it strange, where is the TCP spec violated?), + pointers to your script detailed output files, + a statement that "yes, I've read the FAQ, ns-problems page, and manual and I couldn't find the answer there" (or a statement about why you didn't do that yet :-) Soo-Hyun Choi observed from posts to the list: _Sometimes, I see this list is filled with the questions with: 1) asked many times before 2) hardly understandable what this guy is asking 3) too easy to find an answer over a few clicks over the Internet 4) soliciting to do their homework in a simple way by asking in this list 5) easily seekable an answer by contributing a couple of hours of reading the ns-manual 6) etc, etc. _ _As many of us in this list are doing an advanced degree, it would be suggested to read the following article in order to raise a useful/meaningful question in a smart way. http://www.catb.org/~esr/faqs/smart-questions.html _ This is _very_ good advice, since asking the Right Question is very likely to get a good/helpful answer, while asking a question poorly. For example, think about how you would answer these two questions: _"Ns doesn't work for me, it crashes. Help."_ as compared to _"I get a segmentation fault when running test script test-suite-webcache on Mandrake 10 Linux. The backtrace is on my web page at www.someu.edu/~someone. It looks like it passes in the on-line test suites, but it fails for me. Am I doing something wrong?_ A reminder about mailing list etiquette: + Please check the web pages and list archives before posting your question. + Please keep the body of your post to simple ASCII, not HTML. + Please do _not_ send large attachments (if what you have is bigger than a few kilobytes, put it on a web page and send a URL) + Before posting a question like "did people see my post" or "the list seems down", please check the archives (you can answer this question more accurately by checking yourself rather than asking). + Please don't post subscribe/unsubscribe requests directly to the list, use the lists' information page. (see the web page mentioned above for details). From lyslff at 163.com Sun Jul 1 18:46:15 2007 From: lyslff at 163.com (lyslff) Date: Mon, 2 Jul 2007 09:46:15 +0800 (CST) Subject: [ns] multiple interfaces using AODV [based on Ramon] Message-ID: <30915302.2226781183340775270.JavaMail.coremail@bj163app33.163.com> hi, allI am simulating multiple interfaces according to Ramon's tutorial in AODV.but I met some problems when modify the AODV routing agent.as listing 5.1 said, I wonder whether I can add the array targetlist directly since there is not a correspond target variable in AODV. and I also can't understand how to change the command function correctly.Does anyone have a patched file of the multiple interfaces in AODV?please help me! Thanks best regards From teerawat at ece.ubc.ca Sun Jul 1 19:30:52 2007 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Sun, 1 Jul 2007 19:30:52 -0700 (PDT) Subject: [ns] tcp sending rate In-Reply-To: Message-ID: TCP does not have sending rate. It control transmission rate based on window size. The initial window size is 1, and it is increases as ACK packets are received. So you can't compute the sending rate in pkts/sec. BR, Teerawat On 6/30/2007, "Zahraa Taki Al-Lawati" wrote: > >hi; >what is the defult sending rate in tcp agent when starting any conncection. >how can i change it ? and what is the unit of sending rate ( packet/sec or >b/sec )? > >advise please > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.com/ > From teerawat at ece.ubc.ca Sun Jul 1 19:33:17 2007 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Sun, 1 Jul 2007 19:33:17 -0700 (PDT) Subject: [ns] Mobility Models In-Reply-To: <11366754.post@talk.nabble.com> Message-ID: In my opinion, a beginner usually takes only few days to learn to use NS2 at TCL level. However, it will talk few months (or sometiem years) to learn the structure of NS2 and how to modify it. On 6/29/2007, "salouhouni" wrote: > > >Hello everybody.I am a new user in NS2 and I will try to implement some >mobility models in NS2 and implement.As I have searched around I think that >it is quite difficult in a short period to implement one on my own so I will >try to test some already built ones.Cause I am a new user I would like to >ask how difficult it will be to get familiar with NS2 in order to use some >mobility models?Is it easy to use the existing ones and experiment on >them?How complicated is the code of such models and how easy it is to test >on different senarios?Thanks for the post and I hope that I will be able to >help somebody else when I get used to the program.Please If anybody know I >would be grateful to help me even if the questions look sily.Thanks again!:) >-- >View this message in context: http://www.nabble.com/Mobility-Models-tf4001829.html#a11366754 >Sent from the ns-users mailing list archive at Nabble.com. > From lyslff at 163.com Sun Jul 1 22:02:12 2007 From: lyslff at 163.com (lyslff) Date: Mon, 2 Jul 2007 13:02:12 +0800 (CST) Subject: [ns] adding multiple interface in AODV [based on Ramon] Message-ID: <16700292.2385291183352532654.JavaMail.coremail@bj163app15.163.com> hi, allI am simulating multiple interfaces according to Ramon's tutorial in AODV.but I met some problems when modify the AODV routing agent.as listing 5.1 said, I wonder whether I can add the array targetlist directly since there is not a correspond target variable in AODV. and I also can't understand how to change the command function correctly.Does anyone have a patched file of the multiple interfaces in AODV?please help me!ThanksBest regards From tux.pranay at gmail.com Mon Jul 2 02:00:22 2007 From: tux.pranay at gmail.com (Pranay Prateek) Date: Mon, 2 Jul 2007 17:00:22 +0800 Subject: [ns] ping measurement Message-ID: <5f971a4f0707020200i46b526ud9ae86ce528cf3e4@mail.gmail.com> Hello List, Can anyone tell me any utility in Linux which can give me Round trip time in microseconds on pinging.The current version of ping available gives the Round trip time in milliseconds , which is not enough resolution for my experiment. Thanks. -- Pranay Prateek Department of Electrical Enginnering Indian Institute of Technology ,Madras Chennai ,India . From fubovt at gmail.com Mon Jul 2 09:12:41 2007 From: fubovt at gmail.com (Bo Fu) Date: Mon, 2 Jul 2007 09:12:41 -0700 Subject: [ns] Is it possible to implement two routing protocols on one node? Message-ID: <8fd6de8b0707020912p591de147xafccc042ee6f0091@mail.gmail.com> Hi there, I am curious if it is possible to implement two routing protocols on one mobile node. Each routing protocol is dedicated for one wireless interface. Thanks in advance. From tiago.junkeira at gmail.com Mon Jul 2 10:51:38 2007 From: tiago.junkeira at gmail.com (Tiago Junqueira) Date: Mon, 2 Jul 2007 19:51:38 +0200 Subject: [ns] Received Packets- distCST_ Message-ID: <4bb1b4060707021051x7f47ae5ap6b7c5fe5304d5d0a@mail.gmail.com> Hi, I was getting problems with the following 2 simulations: Phy/WirelessPhy set RXThresh_ 630e-15 Phy/WirelessPhy set CSThresh_ 630e-15 and i also added the following lines: Antenna/OmniAntenna set Gt_ 25.0 Antenna/OmniAntenna set Gr_ 50.0 I was using the FreeSpace model, and a distance of 880 m with Gr=50 and Gt=25. After runninn the script for a Pt_ = 0.0158 W (12 dBm), the power received using the Friis formula or the result printed by the function gives: OFDM phy receiving packet with mod=0 and cp=0.250000 0.031842: d: 880.000000, Pr: 1.199811e-09 But if I run the script for Pt= 0.01 W (10 dBm), there is no packet received, and Pr is not printed, but it should be more or less 7.2e-10. My question is, there must be another variable that i'm forgetting, because for 0.01 W, the received power should be 7.2e-10 >> 6.30e-13, I mean 7.2e-10/6.30e-13=1142 W/W, or 30.6 dB. I would like to know where is that 30.6 dB implemented? And then i checked the variable distCST_: for the first case: channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 1086.2 for the second case, Pt_=0.01 W: channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 862.8 ->In this case is less than the 880 m. So maybe the missing 30.6 dBm are calculated in the variable distCST_, do you have any ideias? Thanks in advance, Tiago Junqueira From harry2511 at rediffmail.com Mon Jul 2 18:21:24 2007 From: harry2511 at rediffmail.com (harpreet) Date: 3 Jul 2007 01:21:24 -0000 Subject: [ns] urgent help regarding hopping in umts in ns2 Message-ID: <20070703012124.22591.qmail@webmail57.rediffmail.com> hi i am looking for implementing multiple hopping in umts and come across this text file that wireless node in ns are able to communicate using hops........ "The ad-hoc routing agent comes with the Wireless Nodes communicating over multiple wireless hops. In the simulation of UMTS scenarios, a UE could not use other UEs as the intermediate ?base-stations?, instead it can only communicate with its NodeB. Hence, this ad-hoc routing produces unwanted and incorrect results in Mobile IP scenarios. The Non-Ad-Hoc Routing Agent (NOAH) developed by J. Widmer in is installed as the routing module in the UMTS simulator. The UE only keeps a list of other UE nodes that are within its service range, but it does not exchange routing tables for multihop routing purpose. With Mobile IP, beacon messages (and also agent solicitations from the UE) are broadcasted to all the UEs in its service range. The UE and NodeB then initialise the list of UMTS nodes in range and establish a direct communication between them so that nodes can exchange packets. Therefore, the NOAH node lists can be initialised accordingly since Mobile IP agent discovery control messages are always sent in a broadcasting mode. from http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/" if anybody knows how to implement intelligent hopping in umts please help. thanks in advance From g.shafiullah at cqu.edu.au Mon Jul 2 22:03:41 2007 From: g.shafiullah at cqu.edu.au (G Shafiullah) Date: Tue, 3 Jul 2007 15:03:41 +1000 Subject: [ns] Ns-users Digest, Vol 43, Issue 1 In-Reply-To: References: Message-ID: <1AE19A80523D5F40BE0044A1447A53FF03F2B546@UNIMAIL.staff.ad.cqu.edu.au> Hi all, I am a new user of NS-2. Can one please help me to install LEACH Protocol in NS-2. I tried it with the following commands: Add DMIT_uAMPS to the DEFINE list Add -I./mit/rca -I./mit/uAMPS to the INCLUDE list Add the following just prior to the line gaf/gaf.o \ mit/rca/energy.o mit/rca/rcagent.o \ mit/rca/rca-ll.o mit/rca/resource.o \ mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \ Step 5.2 : Add the environmental variables to /etc/profile export RCA_LIBRARY=$NS_HOME/ns-2.27/mit/rca export uAMPS_LIBRARY=$NS_HOME/ns-2.27/mit/uAMPS Step 5.3: source /etc/profile and clean up previous build source /etc/profile make clean But when I gave command make clean it prompts: make: *** No rule to make target 'clean'. Stop Please let me know the solutions. I am eagerly looking solution. Thanks GM -------------------------------------------- G M Shafiullah Master of Engineering (Research) Student Centre for Railway Engineering (CRE) Faculty of Sciences, Engineering and Health Central Queensland University Rockhampton, Qld 4702 AUSTRALIA Phone: 61 7 4930 9313 Mobile:61 4 3208 5800 Email: g.shafiullah at cqu.edu.au, gmsbd at yahoo.com, gms at iwmbd.org -----Original Message----- From: ns-users-request at ISI.EDU [mailto:ns-users-request at ISI.EDU] Sent: Monday, July 02, 2007 10:00 AM To: ns-users at ISI.EDU Subject: Ns-users Digest, Vol 43, Issue 1 Send Ns-users mailing list submissions to ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-request at isi.edu You can reach the person managing the list at ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. Re: NIST - Bug?? (Venelin Petkov) 2. ns-2 FAQ (tomhend at u.washington.edu) ---------------------------------------------------------------------- Message: 1 Date: Sun, 1 Jul 2007 15:34:07 +0100 (BST) From: Venelin Petkov Subject: Re: [ns] NIST - Bug?? To: Junkeira , ns-users at ISI.EDU Message-ID: <977520.68050.qm at web27309.mail.ukl.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hello Junkeira, Thank you for your respond. I had tried the way you described below but i again ran to the same error message: $ ns wimax1.tcl num_nodes is set 5 invalid command name "Mac/802_16/BS" while executing "Mac/802_16/BS create _o19 " 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 "_o14" 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 70) (Simulator create-wireless-node line 70) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns node" invoked from within "set node_(0) [$ns node]" (file "wimax1.tcl" line 208) Do you have any idea how to fix this one? What is wrong with my values аssigning? #=================================== # Node #=================================== $ns node-config -adhocRouting $val(rp) \ -llType $opt(ll) \ -macType Mac/802_16/BS \ ; # THIS IS THE FAILING ROW -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channel [new $opt(chan)] \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF #0?Node set node_(0) [$ns node] $node_(0) set X_ 536 $node_(0) set Y_ 668 $node_(0) set Z_ 0.0 $ns initial_node_pos $node_(0) 20 $ns node-config -macType Mac/802_16/SS \ -wiredRouting OFF \ -macTrace ON . #1?Node set node_(1) [$ns node] $node_(1) set X_ 676 $node_(1) set Y_ 680 $node_(1) set Z_ 0.0 $ns initial_node_pos $node_(1) 20 I am currently using NS version 2.29 and the wimax module is the embedded in it. I download this copy from here: http://140.116.72.80/~smallko/ns2/ns-allinone-2.29_wimax.rar I do not know whether this is from the version that i am using or anything else that is why all help will be very appreciated. I am looking forward to hearing from you. Thank you in advance. Best Regards, Venelin Petkov Junkeira wrote: Hi, I didnt see the message, it wasnt sent to my mail, so i'll answer just now. Why you dont config like in the example datarate.tcl, first all the options for the configuration of the wireless node that will after be created, and then just change the different parameters for the MN or SS. If you can run that example without receiving an error message is because your sintax is not correct probably. But also probably you already solved that problem:). kindly, Tiago Junqueira $ns node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType Mac/802_16/BS \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channel [new $opt(chan)] \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF #puts "Configuration of base station" set bstation [$ns node 1.0.0] $ns node-config -macType Mac/802_16/SS \ -wiredRouting OFF \ -macTrace ON ;# Mobile nodes cannot do routing. set wl_node [$ns node 1.0.1] ;# create the node with given @. -- View this message in context: http://www.nabble.com/NIST---Bug---tf3849528.html#a11368605 Sent from the ns-users mailing list archive at Nabble.com. --------------------------------- Yahoo! Mail now has unlimited storage, which means you can have spam control and more space for those important e-mails. ------------------------------ Message: 2 Date: Sun, 1 Jul 2007 15:20:10 -0700 From: tomhend at u.washington.edu Subject: [ns] ns-2 FAQ To: ns-users at ISI.EDU Message-ID: <200707012220.l61MKAe1010795 at ns-regression.ee.washington.edu> The Network Simulator ns-2: Frequently Asked Questions Note: This FAQ is now available at the project wiki: http://nsnam.isi.edu/nsnam/index.php/Ns_Users_FAQ _The mailing is is now subscriber only---please see the FAQ entry on "How do I post to the mailing list? Why was my post rejected?" for details._ * _Where do I get ns?_ From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and the download page http://www.isi.edu/nsnam/ns/ns-tests.html. * _What platforms does ns run on and what kind of hardware do I need?_ Please see "where to start" on the building ns web page: http://www.isi.edu/nsnam/ns/ns-build.html#start. * _What should I do if I have trouble downloading/extracting ns?_ This question is answered in detail at http://www.isi.edu/nsnam/ns/ns-problems.html#downloading. * _What should I do if I encounter problems building ns?_ Check: 1. the README that comes in the distribution (very brief), 2. the "installation problems, bug fixes and help" web page http://www.isi.edu/nsnam/ns/ns-problems.html, 3. the archives of the ns-users mailing list http://www.isi.edu/nsnam/ns/ns-lists.html, 4. post a bug report (see below) http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. * _What do I do after I successfully build ns?_ + Put the path to your ns executable into your PATH environment + Put the path to your otcl into your LD_LIBRARY_PATH environment + Put the path to your tcl library into your TCL_LIBRARY environment * _Where can I find documentation for ns?_ All documentation is linked from the main ns web page http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial (originally from Marc Greis) and a reference manual (ns notes and documentation). * _Words, words, words... that documentation is nice, but where are some sample scripts I can start from?_ Many sample scripts can be found in the ns distribution in ~ns-2/tcl/ex and ~ns-2/tcl/test. * _What protocols does ns support?_ A lot! Almost all variants of TCP, several forms of multicast, wired networking, several ad hoc routing protocols and propagation models (but not cellular phones), data diffusion, satellite, and other stuff. See the documentation (described above) for details, or download ns and look. * _How do I know that ns correctly implements these protocols?_ Ns has validation tests that cover many protocols, see http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately users are responsible for verifying that ns is accurate for their purposes---since we cannot foresee all the ways ns may be used, we cannot test all cases with all inputs. * _Are there any contributed/additional protocols not in the main distribution?_ Yes, please see the contributed code web page http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list archives can also be helpful (see below). * _How should I get started doing something (like implementing a new protocol or trying an experiment)?_ We recommend that you look through the tutorial (see documentation, above), then start with an example program that is most similar to yours (in the tutorial, or in tcl/ex or tcl/test in the distribution), and then start changing things. * _What should I do to compile ns to reflect my changes if I've modified some .cc or .h files?_ go to ns directory and run "make" or "make depend; make" * _How do I subscribe to the ns-users mailing list? How do I search old list archives? I can't take any more---how do I get off this list?_ To subscribe or unsubscribe, see http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at http://www.isi.edu/nsnam/ns/ns-lists.html. * _How do I post to the mailing list? Why was my post rejected?_ As of June 2004 the ns-users lists allow posts from _subscriber only_. If you're not a subscriber, your posts to the list will be rejected. (This is unfortunately necessary to dispose efficiently of spam; manual filtering is too expensive.) We realize that the list is high traffic, so if you wish to post to the list without receiving messages on it, please subscribe and select the _no-mail_ option for your subscription. For details about the mailing list including mailing-list specific FAQ (for example, what if you're subscribed but still can't post), please see http://www.isi.edu/nsnam/ns/ns-lists.html. * _Did my post appear on the mailing list? (Or, why didn't my post appear on the mailing list?)_ See the http://www.isi.edu/nsnam/ns/ns-lists.html web page for help debugging mailing list problems. * _What if I have a question that's not answered here?_ If you've checked the installation problems and bug fixes web page (http://www.isi.edu/nsnam/ns/ns-problems.html) and there's no answer to your question, you may want to file a bug report or post a question to the ns-user's mailing list. First, you should check the archive of the list at http://www.isi.edu/nsnam/ns/ns-lists.html. Your question may already be answered there. If not, you can post a bug report using the web form at http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. If your question is NOT about ns implementation bugs, you may wish to post to the list. First you should subscribe. Subscription instructions are at http://www.isi.edu/nsnam/ns/ns-lists.html. _Please note that mail sent to the list is publicly distributed and archived. _If you have concerns about your message being made public (spam harvesting of your address), please consider that _before_ posting. We cannot remove messages from reciepient's mailboxes or the public archive after they're posted. When posting bug reports, please _always_ include information including at least (the bug report form includes spaces for these): + what version of ns you're using, + what operating system you're running on (not just Linux or Solaris, but RedHat version 7.0 or Solaris 2.4---send us the output of "uname -a"), + what specific behavior you see (if ns doesn't compile, what's the specific error; if TCP does something strange, what exactly did it do [send a pointer to a packet trace]), + what behavior you expected to see (if ns doesn't compile this is obvious, but if TCP does something strange, why is it strange, where is the TCP spec violated?), + pointers to your script detailed output files, + a statement that "yes, I've read the FAQ, ns-problems page, and manual and I couldn't find the answer there" (or a statement about why you didn't do that yet :-) Soo-Hyun Choi observed from posts to the list: _Sometimes, I see this list is filled with the questions with: 1) asked many times before 2) hardly understandable what this guy is asking 3) too easy to find an answer over a few clicks over the Internet 4) soliciting to do their homework in a simple way by asking in this list 5) easily seekable an answer by contributing a couple of hours of reading the ns-manual 6) etc, etc. _ _As many of us in this list are doing an advanced degree, it would be suggested to read the following article in order to raise a useful/meaningful question in a smart way. http://www.catb.org/~esr/faqs/smart-questions.html _ This is _very_ good advice, since asking the Right Question is very likely to get a good/helpful answer, while asking a question poorly. For example, think about how you would answer these two questions: _"Ns doesn't work for me, it crashes. Help."_ as compared to _"I get a segmentation fault when running test script test-suite-webcache on Mandrake 10 Linux. The backtrace is on my web page at www.someu.edu/~someone. It looks like it passes in the on-line test suites, but it fails for me. Am I doing something wrong?_ A reminder about mailing list etiquette: + Please check the web pages and list archives before posting your question. + Please keep the body of your post to simple ASCII, not HTML. + Please do _not_ send large attachments (if what you have is bigger than a few kilobytes, put it on a web page and send a URL) + Before posting a question like "did people see my post" or "the list seems down", please check the archives (you can answer this question more accurately by checking yourself rather than asking). + Please don't post subscribe/unsubscribe requests directly to the list, use the lists' information page. (see the web page mentioned above for details). ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 43, Issue 1 *************************************** From hra_1978 at yahoo.com Tue Jul 3 01:25:09 2007 From: hra_1978 at yahoo.com (hamid reza) Date: Tue, 3 Jul 2007 01:25:09 -0700 (PDT) Subject: [ns] 802.11 Question(IFS) Message-ID: <710503.74609.qm@web32704.mail.mud.yahoo.com> Dear All, What happend For a node when a node want to send a packet Recieve another Packet on its IFS(SIFS or DIFS) ? Best Regards Hamid Reza ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 From behmans at hotmail.com Tue Jul 3 02:07:51 2007 From: behmans at hotmail.com (Bahman Kalantari Sabet) Date: Tue, 3 Jul 2007 10:07:51 +0100 Subject: [ns] Disabling the NAV of 802.11 Message-ID: Hi, How can I disable the NAV in 802.11. Thanks, Bahman _________________________________________________________________ Try Live.com - your fast, personalised homepage with all the things you care about in one place. http://www.live.com/?mkt=en-gb From p.pagano at sssup.it Tue Jul 3 04:01:48 2007 From: p.pagano at sssup.it (Paolo Pagano) Date: Tue, 03 Jul 2007 13:01:48 +0200 Subject: [ns] RTNS extension of NS-2 Message-ID: <1183460508.11953.10.camel@ugo> Dear NS users, on behalf of the ReTiS Lab (http://retis.sssup.it) in Scuola Superiore Sant'Anna, Pisa (I), I announce the first release of an NS-2 extension useful to model Distributed Real-Time Applications. The source code is published under GPL licence and the complete package can be downloaded from the Web site: http://rtns.sssup.it For your convenience, a brief abstract is appended at the end of this message. We are happy to collaborate with those who are involved in Real-Time networking and find useful this tool. We apologize with those who will find the package incomplete and thank in advance those who will report about bugs and misbehavior. To be considered, any message addressed to the RTNS-developers crew must be sent to: rtns at gandalf.sssup.it and include the word "RTNS" in the subject. Best regards, Paolo Pagano ------- Paolo Pagano, Experimental Physics PhD, Postdoctoral Fellow ReTiS Lab, Scuola Superiore Sant'Anna, Pisa, Italy Tel +39 050 882 034, Fax +39 050 882 003 http://feanor.sssup.it/~pagano Abstract Simulation is an important analysis tool in the development of distributed systems, in testing new network protocols, and for assessing the performance of protocols. In many important cases, simulation complements effectively off-line mathematical analysis tools, especially for large and complex systems with hundreds of nodes. Existing simulation tools for wireless networks concentrate on the communication protocols and radio propagation models. Most of these tools provide models for calculating the power utilization for the radio and the node hardware. However, they lack capability of CPU models and cannot simulate the processor level. The Real Time Network Simulator (RTNS) is a simulation suite to model operating system mechanisms for distributed networked applications. It is built by integrating the popular NS-2 (Network Simulator) and RTSim (Real Time Operating System SIMulator). The latter is an open source project developed at Retis Lab of Scuola Superiore Sant'Anna, which provides real time, power aware simulations at the CPU level. RTNS bridges the gap between the network and operating system simulators. This cosimulator could be used for studying the effect of CPU load on delay in recieving of packet in a communication network. In wireless networks, the packet transmitted in a network has to pass through a number of processors before being received at the destination node. Adopting a flat FCFS scheduling policy at each hop, as the load on the processor increases due to different activities performed by the corresponding node (e.g. if the node is also involved in computation), the delay in transmission and reception of packet increases. Hence this delay induced by the processor load is quite significant for time critical applications over the network. From zyjdyx007 at yahoo.com.cn Tue Jul 3 06:10:12 2007 From: zyjdyx007 at yahoo.com.cn (Cloudy Zhong) Date: Tue, 3 Jul 2007 21:10:12 +0800 Subject: [ns] ask help for settings in the wireless model Message-ID: <200707031309.l63D9f2C001911@vapor.isi.edu> Hi,all I want to set up a scenario with wired nodes and wireless nodes.The work just likes ns/tcl/ex/wired-cum-wireless-sim.tcl do.Then there is a problem.How can I set the bandwidth and delay between the wireless node and base-station node? Much thanks. ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Cloudy Zhong ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡zyjdyx007 at yahoo.com.cn ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2007-07-03 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿá¶Úÿÿ÷'þf¢—üš†Šÿ From my_msc_thesis at yahoo.com Tue Jul 3 07:56:00 2007 From: my_msc_thesis at yahoo.com (Netsanet Getnet) Date: Tue, 3 Jul 2007 07:56:00 -0700 (PDT) Subject: [ns] AODV RREQs and number of times a DSR node can fail to ... Message-ID: <508748.68407.qm@web90306.mail.mud.yahoo.com> Hi ns-users I have a question about AODV: What is the number of RREQs a node can generate and send per second? The other questions is relating to DSR What is the maximum number of times a node can fail to forward a packet that is coming from its neighbors? Are there ways of handling such nodes? Waht is done in case a node repeatedly fails to forward a packet (may be because of link failure or congestion)? I need answers for these questions badly, please... Thanks in advance ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 From my_msc_thesis at yahoo.com Tue Jul 3 08:05:15 2007 From: my_msc_thesis at yahoo.com (Netsanet Getnet) Date: Tue, 3 Jul 2007 08:05:15 -0700 (PDT) Subject: [ns] AODV RREQs and number of times a DSR node can fail to ... Message-ID: <436804.73627.qm@web90306.mail.mud.yahoo.com> Hi ns-users I have a question about AODV: What is the number of RREQs a node can generate and send per second? The other questions is relating to DSR What is the maximum number of times a node can fail to forward a packet that is coming from its neighbors? Are there ways of handling such nodes? Waht is done in case a node repeatedly fails to forward a packet (may be because of link failure or congestion)? I need answers for these questions badly, please... Thanks in advance Netsanet ____________________________________________________________________________________ Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php From Y.Zhou at surrey.ac.uk Tue Jul 3 09:37:44 2007 From: Y.Zhou at surrey.ac.uk (Yanbo Zhou) Date: Tue, 03 Jul 2007 17:37:44 +0100 Subject: [ns] NS-2 extends to cooperating with GridSim Message-ID: <1183480664.5598.6.camel@ccsrlt41.ee.surrey.ac.uk> Dear All, Could anyone give me some ideal How to extend the NS-2 in cooperating with GridSim, please? Best Wishes. Yanbo From rubenjy at gmail.com Tue Jul 3 13:20:58 2007 From: rubenjy at gmail.com (rubenjy) Date: Tue, 3 Jul 2007 13:20:58 -0700 (PDT) Subject: [ns] schedule problem Message-ID: <11394387.post@talk.nabble.com> i stop application program when application finish someting. but i stop it in App.cc using stop(). it how a "not scheduled" error and stop ns programs. i know i must add the stop to scheduler. but i don't know how to add to scheduler.cc using c++. someone can give me a advance ? -- View this message in context: http://www.nabble.com/schedule-problem-tf4012361.html#a11394387 Sent from the ns-users mailing list archive at Nabble.com. From nguyentienlan at gmail.com Tue Jul 3 15:08:59 2007 From: nguyentienlan at gmail.com (Nguyen Lan) Date: Wed, 04 Jul 2007 07:08:59 +0900 Subject: [ns] dst_ and dst_addr_ problem Message-ID: <468AC8FB.5000908@gmail.com> Dear all, I got this message and I think I should change from dst_ to dst_addr_. Is it correct or not. How can I set dst_port_ Warning dst_ is no longer being supported in NS. dst_ 0xffffffff Use dst_addr_ and dst_port_ instead Any help is appreciated. Nguyen. From hra_1978 at yahoo.com Tue Jul 3 22:40:09 2007 From: hra_1978 at yahoo.com (hamid reza) Date: Tue, 3 Jul 2007 22:40:09 -0700 (PDT) Subject: [ns] I accurate My last Question ( 802.11 Ad Hoc IFSes) Message-ID: <905284.41937.qm@web32703.mail.mud.yahoo.com> Dear All, You Suppose A node Want to Send A Frame, A- It Should Defer its sending After DIFS Period If in this Period it gives a frame It should Set Its NAV Counter From Header Fields of Frame Currently received. After Expiring NAV Timer it should Set its Backoff Timer and After Reaching that Counter To Zero It should Reattempt its sending after DIFS Again. Is this Scenario(A) comptabile with SIFS and EIFS Period too ? Best Regards Hamid Reza ____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 From mcsist at yahoo.com Wed Jul 4 00:45:19 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Wed, 4 Jul 2007 00:45:19 -0700 (PDT) Subject: [ns] How to calculate packet loss ratio in ns-2 Message-ID: <262806.73292.qm@web55007.mail.re4.yahoo.com> Hi ns-users, How to calculate packet loss ratio in ns-2 trace file ? what its equation? Regards --------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. From mcsist at yahoo.com Wed Jul 4 00:47:04 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Wed, 4 Jul 2007 00:47:04 -0700 (PDT) Subject: [ns] plot offered load vs. throughput Message-ID: <186038.62454.qm@web55006.mail.re4.yahoo.com> Hi ns-users, I want to plot the relation between offered load and throughput ? , but before that how can I generate offered load in kb/s? Regards --------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. From miozzo at dei.unipd.it Wed Jul 4 00:57:36 2007 From: miozzo at dei.unipd.it (Marco Miozzo) Date: Wed, 4 Jul 2007 09:57:36 +0200 Subject: [ns] Release of Multi InteRfAce Cross Layer Extension for ns (MIRACLE) library, version 1.0 Message-ID: Hi all, I'm glad to inform you that at the SIGNET lab, Dept. of Information Engineering (University of Padova, Italy), we have released version 1.0 of our MIRACLE library, you may find it at the following link: www.dei.unipd.it/~rossi/miracle.html The aim under this framework is to enhance the functionalities provided by ns2 from modern communication systems point of view. In fact, it is developed in order to provide an efficient and embedded engine for handling cross-layer messages and, at the same time, enable the coexistance of multiple modules within each layer of the protocol stack (i.e., to handle multiple radio interfaces, multiple transport protocols, different applications, etc.). In this release, in addition to MIRACLE library, we included a set of libraries to simulate wireless system networks, in detail: - Traffic generators - TCP Agents - IP modules - IEEE802.11 (both the one from standard ns distribution and Multirate [2]) - MPhy, a general physical layer module in which interference of in-flight packets is evaluated using a Gaussian Model, and an enhanced propagation model is provided (fading with Jakes Simulator, shadowing with Gudmonson model and path loss with Hata model) - UMTS: + Link layer is derived from eurane extension [3] + Physical layer is develpoed exteding Mphy - Link and Wireless Channel - physical mobility models (standard and Gauss Markov mobility model) I would like to stress that MIRACLE is developed as a dynamic library thanks to Dynamic Library patch [1]. Exploiting this patch, MIRACLE can be used with several versions of ns2 simply loading it and, therefore, without recompile your ns installation. Up to now, we have tested it with ns-2.29 and ns-2.31, and we expect it to work with future ns2 releases as well. Several Tcl example scripts are included in the distribution package in order to help users-developers in its understanding-utilization. However, for any comments, doubts or problem in the usage you may contact us in MIRACLE mailing list: https://mail.dei.unipd.it/mailman/listinfo/nsmiracle-users [1] Patch for Loading Dynamic Modules in ns-2, http://mailman.isi.edu/pipermail/ns-users/2007-June/060486.html http://www.dei.unipd.it/~rossi/ns2-patch.html [2] Multirate 802.11 http://mailman.isi.edu/pipermail/ns-users/2007-June/060526.html http://www.dei.unipd.it/wdyn/?IDsezione=5090 [3] Enhanced UMTS Radio Network Extensions for ns-2, http://www.ti-wmc.nl/eurane/. Best regards, Marco Miozzo. From frost.wrath at gmail.com Wed Jul 4 01:08:45 2007 From: frost.wrath at gmail.com (F.W.) Date: Wed, 4 Jul 2007 16:08:45 +0800 Subject: [ns] Can I use other MAC for mobile nodes? Message-ID: <26a094210707040108t5899a02cmaed2ecd60ac5cb85@mail.gmail.com> For all the ns2/otcl scripts I read, the MAC protocol is always 802_11. Can I use MAC protocol other than 802_11? As I see there is source code for CSMA, etc. I once tried with an option "-macType Csma", but failed with a error message of "invalid command". Is it possible to use MAC protocol other than 802_11? What is the right way to set it? Many thanks. Regards, Frost From giuseppe.delcore at coritel.it Wed Jul 4 01:58:03 2007 From: giuseppe.delcore at coritel.it (Giuseppe) Date: Wed, 4 Jul 2007 10:58:03 +0200 Subject: [ns] simulation time Message-ID: <002701c7be19$6edbd8f0$2402a8c0@bomb> Hello List, I have a problem when I run one simulation of approximately 600000 second ones. after approximately 250000 second ones, the system jams. on what it can depend? It probably can be legacy to RAM of small dimensions? Help me and thank you From Y.Zhou at surrey.ac.uk Tue Jul 3 09:37:44 2007 From: Y.Zhou at surrey.ac.uk (Yanbo Zhou) Date: Tue, 03 Jul 2007 17:37:44 +0100 Subject: [ns] NS-2 extends to cooperating with GridSim Message-ID: <1183480664.5598.6.camel@ccsrlt41.ee.surrey.ac.uk> Dear All, Could anyone give me some ideal How to extend the NS-2 in cooperating with GridSim, please? Best Wishes. Yanbo From samer_chikhani at yahoo.com Wed Jul 4 07:51:31 2007 From: samer_chikhani at yahoo.com (samer ch) Date: Wed, 4 Jul 2007 07:51:31 -0700 (PDT) Subject: [ns] Traffic trace files Message-ID: <737865.27938.qm@web30204.mail.mud.yahoo.com> Dear Ns users, Does anyone know how to make a traffic trace start form the begining of the file instead of a random position? And i also need that that packets be sent only one time and sequentially Can anyone help me with that? Samer Chikhani --------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. From abdeljaouad at gmail.com Wed Jul 4 10:12:27 2007 From: abdeljaouad at gmail.com (Imad Abdeljaouad) Date: Wed, 4 Jul 2007 17:12:27 +0000 Subject: [ns] EURANE HSDPA input trace files test cases Message-ID: <8e20d47b0707041012w29671b60m745e95ee179fdbd0@mail.gmail.com> Hi All, Does anyone know where I can get the specs of (or any information about) the test cases (Vehicular A/B, rayleigh...) implemented in the Matlab processes for generating input trace files for HSDPA ? Thank you in advance, Imad Abdeljaouad From email4banu5 at yahoo.co.in Wed Jul 4 11:38:30 2007 From: email4banu5 at yahoo.co.in (Banu Sundar) Date: Wed, 4 Jul 2007 19:38:30 +0100 (BST) Subject: [ns] Queue Monitor - Packet Drops Message-ID: <802200.54353.qm@web7606.mail.in.yahoo.com> Hi users, I have questions on how to monitor the packet drop between two particular links.I have used the following commands to do it. set qmon [$ns monitor-queue $n3 $n4 [open qm.out w] 0.1]; [$ns link $n3 $n4] queue-sample-timeout; At the end of simulation "qm.out" is created. The qm.out looks like this; 0 2 3 0 0 0 0 0 0 0 0 0.10000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 0.20000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 0.30000000000000004 2 3 0.0 0.0 0 0 0 0 0 0 0.40000000000000002 2 3 0.0 0.0 0 0 0 0 0 0 0.5 2 3 0.0 0.0 0 0 0 0 0 0 0.59999999999999998 2 3 0.0 0.0 18 18 0 9000 9000 0 0.69999999999999996 2 3 0.0 0.0 38 38 0 19000 19000 0 0.79999999999999993 2 3 0.0 0.0 58 58 0 29000 29000 0 0.89999999999999991 2 3 0.0 0.0 78 78 0 39000 39000 0 0.99999999999999989 2 3 0.0 0.0 98 98 0 49000 49000 0 1.0999999999999999 2 3 2990.0000000001178 5.9800000000002349 136 122 0 68000 61000 0 1.2 2 3 9055.0000000004129 18.110000000000831 176 147 9 88000 73500 4500 1.3 2 3 9625.0000000006312 19.250000000001268 216 172 24 108000 86000 12000 1.4000000000000001 2 3 9625.0000000009095 19.25000000000183 256 197 39 128000 98500 19500 1.5000000000000002 2 3 9625.0000000011878 19.25000000000238 296 222 54 148000 111000 27000 1.6000000000000003 2 3 9625.0000000014679 19.250000000002938 336 247 69 168000 123500 34500 1.7000000000000004 2 3 9625.0000000017426 19.250000000003489 376 272 84 188000 136000 42000 1.8000000000000005 2 3 9625.0000000020191 19.25000000000405 416 297 99 208000 148500 49500 1.9000000000000006 2 3 9625.000000002301 19.250000000004601 456 322 114 228000 161000 57000 I have no idea how to interpret it! Which column gives the values of packets dropped at each instant.Please please try to help me with this.It is creating a blockk in my work and I am not able to proceed further without this informations. Thanks a lot in advance, Banu Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php From aservin at cs.york.ac.uk Wed Jul 4 12:04:02 2007 From: aservin at cs.york.ac.uk (Arturo Servin) Date: Wed, 04 Jul 2007 20:04:02 +0100 Subject: [ns] Flow-aware networking In-Reply-To: <947893.74897.qm@web90512.mail.mud.yahoo.com> References: <947893.74897.qm@web90512.mail.mud.yahoo.com> Message-ID: <468BEF22.90507@cs.york.ac.uk> Hi, Some time ago somebody sent this post to ns-users. I am trying to build a flow table. Each node send data (UDP or TCP) to other nodes. The simulation now is very small, just 5 or 6 nodes and I want to make a file with the information of flows over time. Basically what it is said in the e-mail: source_address, destination_address, source_port, destination_port, flowId, number of packets, avg_packet size I sorted how to get and to print in a file source_address, destination_address,flow_id, number of packet and avg packet size, but I cannot find how to get and to print the port number. Any idea in how to do get the port number of the TCP or UDP connection (flow) and to print it in a file? Thanks, -as > Hi, > I'm working with ns2 to make a node whose traffic control is based on conception of flow-aware networking (http://perso.rd.francetelecom.fr/oueslati/XP.html). I know how to build Queue class in c++ and how to include it in ns2. It is not a problem. The problem is that I need a value of intensity of arriving packet flow. The flow is identified by [src address, dst address, src port, dst port, type of transport protocol]. I know that when I define source I have to specify the intensity of packet emission. I know this, but I want the node to measure the arriving packet intensity (of identified flow) and return the value as a parameter to make some calculations. I was wondering about building a buffer where I could store 2 packets and estimate time between them, but it is not good solution when you have 1000 sources and you have to store 2000 packets in the system to account 1000 arrival intensities... is anyone have a idea, how to do it, how to build a class like this? I > don't know but maybe ns2 has some tools to measure this time? I will be very grateful for help. > With regards, Marek > > --------------------------------- > Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. > From aservin at cs.york.ac.uk Wed Jul 4 12:07:53 2007 From: aservin at cs.york.ac.uk (Arturo Servin) Date: Wed, 04 Jul 2007 20:07:53 +0100 Subject: [ns] Queue Monitor - Packet Drops In-Reply-To: <802200.54353.qm@web7606.mail.in.yahoo.com> References: <802200.54353.qm@web7606.mail.in.yahoo.com> Message-ID: <468BF009.2020709@cs.york.ac.uk> Somewhere in these three sites there is your answer: http://ns-2.blogspot.com/ http://www.isi.edu/nsnam/ns/ http://www-net.cs.umass.edu/~ratton/ns-lecture/ -as Banu Sundar wrote: > Hi users, > I have questions on how to monitor the packet drop between two > particular links.I have used the following commands to do it. > set qmon [$ns monitor-queue $n3 $n4 [open qm.out w] 0.1]; > [$ns link $n3 $n4] queue-sample-timeout; > At the end of simulation "qm.out" is created. > The qm.out looks like this; > 0 2 3 0 0 0 0 0 0 0 0 > 0.10000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 > 0.20000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 > 0.30000000000000004 2 3 0.0 0.0 0 0 0 0 0 0 > 0.40000000000000002 2 3 0.0 0.0 0 0 0 0 0 0 > 0.5 2 3 0.0 0.0 0 0 0 0 0 0 > 0.59999999999999998 2 3 0.0 0.0 18 18 0 9000 9000 0 > 0.69999999999999996 2 3 0.0 0.0 38 38 0 19000 19000 0 > 0.79999999999999993 2 3 0.0 0.0 58 58 0 29000 29000 0 > 0.89999999999999991 2 3 0.0 0.0 78 78 0 39000 39000 0 > 0.99999999999999989 2 3 0.0 0.0 98 98 0 49000 49000 0 > 1.0999999999999999 2 3 2990.0000000001178 5.9800000000002349 136 122 0 > 68000 61000 0 > 1.2 2 3 9055.0000000004129 18.110000000000831 176 147 9 88000 73500 > 4500 > 1.3 2 3 9625.0000000006312 19.250000000001268 216 172 24 108000 86000 > 12000 > 1.4000000000000001 2 3 9625.0000000009095 19.25000000000183 256 197 39 > 128000 98500 19500 > 1.5000000000000002 2 3 9625.0000000011878 19.25000000000238 296 222 54 > 148000 111000 27000 > 1.6000000000000003 2 3 9625.0000000014679 19.250000000002938 336 247 69 > 168000 123500 34500 > 1.7000000000000004 2 3 9625.0000000017426 19.250000000003489 376 272 84 > 188000 136000 42000 > 1.8000000000000005 2 3 9625.0000000020191 19.25000000000405 416 297 99 > 208000 148500 49500 > 1.9000000000000006 2 3 9625.000000002301 19.250000000004601 456 322 114 > 228000 161000 57000 > > I have no idea how to interpret it! Which column gives the values of > packets dropped at each instant.Please please try to help me with this.It > is creating a blockk in my work and I am not able to proceed further > without this informations. > Thanks a lot in advance, > Banu > > > > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php > From apulicat at uci.edu Wed Jul 4 14:24:03 2007 From: apulicat at uci.edu (Anand PG) Date: Wed, 4 Jul 2007 14:24:03 -0700 Subject: [ns] NIST Wimax Model Message-ID: Dear All, I am using the NIST Wimax module. But, I am not able to understand the outout it generates. I have pasted below a sample output. I would be really really grateful if anyone could briefly explain it. Fs updated. Bw=5000000.000000, n=1.152000, new value is 5.760000e+06 INITIALIZE THE LIST xListHead BSScheduler created duration=0.004000, PStime=0.000001, nbPS=5760,Symbol time=0.000044, 64 Nb symbols=1 Nb symbols=1 Fs updated. Bw=5000000.000000, n=1.152000, new value is 5.760000e+06 wireless node 0 created ... . . . Frame: duration=0.004000, PSduration=6.944444e-07, symboltime=4.444444e-05, nbPS=5760, rtg=10, ttg=10, PSleft=5740, nbSymbols=89, dlduration=23, In Mac 0 Nb symbols left before contention =66 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Picked connection 2 as first max data=893 (burst duration=23, used duration=4 max data=893 (burst duration=23, used duration=4 max data=893 (burst duration=23, used duration=4 Thanks and Kind Regards Anand From g.shafiullah at cqu.edu.au Wed Jul 4 18:42:44 2007 From: g.shafiullah at cqu.edu.au (G Shafiullah) Date: Thu, 5 Jul 2007 11:42:44 +1000 Subject: [ns] Please help In-Reply-To: References: Message-ID: <1AE19A80523D5F40BE0044A1447A53FF03F2B54E@UNIMAIL.staff.ad.cqu.edu.au> Hi all, I am a new user of NS-2. Can one please help me to install LEACH Protocol in NS-2. I tried it with the following commands: Add DMIT_uAMPS to the DEFINE list Add -I./mit/rca -I./mit/uAMPS to the INCLUDE list Add the following just prior to the line gaf/gaf.o \ mit/rca/energy.o mit/rca/rcagent.o \ mit/rca/rca-ll.o mit/rca/resource.o \ mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \ Step 5.2 : Add the environmental variables to /etc/profile export RCA_LIBRARY=$NS_HOME/ns-2.27/mit/rca export uAMPS_LIBRARY=$NS_HOME/ns-2.27/mit/uAMPS Step 5.3: source /etc/profile and clean up previous build source /etc/profile make clean But when I gave command make clean it prompts: make: *** No rule to make target 'clean'. Stop Please let me know the solutions. I am eagerly looking solution. Thanks GM -------------------------------------------- G M Shafiullah Master of Engineering (Research) Student Centre for Railway Engineering (CRE) Faculty of Sciences, Engineering and Health Central Queensland University Rockhampton, Qld 4702 AUSTRALIA Phone: 61 7 4930 9313 Mobile:61 4 3208 5800 Email: g.shafiullah at cqu.edu.au, gmsbd at yahoo.com, gms at iwmbd.org -----Original Message----- From: ns-users-request at ISI.EDU [mailto:ns-users-request at ISI.EDU] Sent: Thursday, July 05, 2007 10:00 AM To: ns-users at ISI.EDU Subject: Ns-users Digest, Vol 43, Issue 4 Send Ns-users mailing list submissions to ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-request at isi.edu You can reach the person managing the list at ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. I accurate My last Question ( 802.11 Ad Hoc IFSes) (hamid reza) 2. How to calculate packet loss ratio in ns-2 (Mohammed Abu Hajar) 3. plot offered load vs. throughput (Mohammed Abu Hajar) 4. Release of Multi InteRfAce Cross Layer Extension for ns (MIRACLE) library, version 1.0 (Marco Miozzo) 5. Can I use other MAC for mobile nodes? (F.W.) 6. simulation time (Giuseppe) 7. NS-2 extends to cooperating with GridSim (Yanbo Zhou) 8. Traffic trace files (samer ch) 9. EURANE HSDPA input trace files test cases (Imad Abdeljaouad) 10. Queue Monitor - Packet Drops (Banu Sundar) 11. Re: Flow-aware networking (Arturo Servin) 12. Re: Queue Monitor - Packet Drops (Arturo Servin) 13. NIST Wimax Model (Anand PG) ---------------------------------------------------------------------- Message: 1 Date: Tue, 3 Jul 2007 22:40:09 -0700 (PDT) From: hamid reza Subject: [ns] I accurate My last Question ( 802.11 Ad Hoc IFSes) To: ns-users at ISI.EDU Message-ID: <905284.41937.qm at web32703.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Dear All, You Suppose A node Want to Send A Frame, A- It Should Defer its sending After DIFS Period If in this Period it gives a frame It should Set Its NAV Counter From Header Fields of Frame Currently received. After Expiring NAV Timer it should Set its Backoff Timer and After Reaching that Counter To Zero It should Reattempt its sending after DIFS Again. Is this Scenario(A) comptabile with SIFS and EIFS Period too ? Best Regards Hamid Reza ________________________________________________________________________ ____________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 ------------------------------ Message: 2 Date: Wed, 4 Jul 2007 00:45:19 -0700 (PDT) From: Mohammed Abu Hajar Subject: [ns] How to calculate packet loss ratio in ns-2 To: NS_2 Mailing List Message-ID: <262806.73292.qm at web55007.mail.re4.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi ns-users, How to calculate packet loss ratio in ns-2 trace file ? what its equation? Regards --------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. ------------------------------ Message: 3 Date: Wed, 4 Jul 2007 00:47:04 -0700 (PDT) From: Mohammed Abu Hajar Subject: [ns] plot offered load vs. throughput To: NS_2 Mailing List Message-ID: <186038.62454.qm at web55006.mail.re4.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi ns-users, I want to plot the relation between offered load and throughput ? , but before that how can I generate offered load in kb/s? Regards --------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. ------------------------------ Message: 4 Date: Wed, 4 Jul 2007 09:57:36 +0200 From: "Marco Miozzo" Subject: [ns] Release of Multi InteRfAce Cross Layer Extension for ns (MIRACLE) library, version 1.0 To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi all, I'm glad to inform you that at the SIGNET lab, Dept. of Information Engineering (University of Padova, Italy), we have released version 1.0 of our MIRACLE library, you may find it at the following link: www.dei.unipd.it/~rossi/miracle.html The aim under this framework is to enhance the functionalities provided by ns2 from modern communication systems point of view. In fact, it is developed in order to provide an efficient and embedded engine for handling cross-layer messages and, at the same time, enable the coexistance of multiple modules within each layer of the protocol stack (i.e., to handle multiple radio interfaces, multiple transport protocols, different applications, etc.). In this release, in addition to MIRACLE library, we included a set of libraries to simulate wireless system networks, in detail: - Traffic generators - TCP Agents - IP modules - IEEE802.11 (both the one from standard ns distribution and Multirate [2]) - MPhy, a general physical layer module in which interference of in-flight packets is evaluated using a Gaussian Model, and an enhanced propagation model is provided (fading with Jakes Simulator, shadowing with Gudmonson model and path loss with Hata model) - UMTS: + Link layer is derived from eurane extension [3] + Physical layer is develpoed exteding Mphy - Link and Wireless Channel - physical mobility models (standard and Gauss Markov mobility model) I would like to stress that MIRACLE is developed as a dynamic library thanks to Dynamic Library patch [1]. Exploiting this patch, MIRACLE can be used with several versions of ns2 simply loading it and, therefore, without recompile your ns installation. Up to now, we have tested it with ns-2.29 and ns-2.31, and we expect it to work with future ns2 releases as well. Several Tcl example scripts are included in the distribution package in order to help users-developers in its understanding-utilization. However, for any comments, doubts or problem in the usage you may contact us in MIRACLE mailing list: https://mail.dei.unipd.it/mailman/listinfo/nsmiracle-users [1] Patch for Loading Dynamic Modules in ns-2, http://mailman.isi.edu/pipermail/ns-users/2007-June/060486.html http://www.dei.unipd.it/~rossi/ns2-patch.html [2] Multirate 802.11 http://mailman.isi.edu/pipermail/ns-users/2007-June/060526.html http://www.dei.unipd.it/wdyn/?IDsezione=5090 [3] Enhanced UMTS Radio Network Extensions for ns-2, http://www.ti-wmc.nl/eurane/. Best regards, Marco Miozzo. ------------------------------ Message: 5 Date: Wed, 4 Jul 2007 16:08:45 +0800 From: "F.W." Subject: [ns] Can I use other MAC for mobile nodes? To: ns-users at ISI.EDU Message-ID: <26a094210707040108t5899a02cmaed2ecd60ac5cb85 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed For all the ns2/otcl scripts I read, the MAC protocol is always 802_11. Can I use MAC protocol other than 802_11? As I see there is source code for CSMA, etc. I once tried with an option "-macType Csma", but failed with a error message of "invalid command". Is it possible to use MAC protocol other than 802_11? What is the right way to set it? Many thanks. Regards, Frost ------------------------------ Message: 6 Date: Wed, 4 Jul 2007 10:58:03 +0200 From: "Giuseppe" Subject: [ns] simulation time To: Message-ID: <002701c7be19$6edbd8f0$2402a8c0 at bomb> Content-Type: text/plain; charset="iso-8859-1" Hello List, I have a problem when I run one simulation of approximately 600000 second ones. after approximately 250000 second ones, the system jams. on what it can depend? It probably can be legacy to RAM of small dimensions? Help me and thank you ------------------------------ Message: 7 Date: Tue, 03 Jul 2007 17:37:44 +0100 From: Yanbo Zhou Subject: [ns] NS-2 extends to cooperating with GridSim To: ns-users at ISI.EDU Message-ID: <1183480664.5598.6.camel at ccsrlt41.ee.surrey.ac.uk> Content-Type: text/plain Dear All, Could anyone give me some ideal How to extend the NS-2 in cooperating with GridSim, please? Best Wishes. Yanbo ------------------------------ Message: 8 Date: Wed, 4 Jul 2007 07:51:31 -0700 (PDT) From: samer ch Subject: [ns] Traffic trace files To: ns-users at ISI.EDU Message-ID: <737865.27938.qm at web30204.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Dear Ns users, Does anyone know how to make a traffic trace start form the begining of the file instead of a random position? And i also need that that packets be sent only one time and sequentially Can anyone help me with that? Samer Chikhani --------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. ------------------------------ Message: 9 Date: Wed, 4 Jul 2007 17:12:27 +0000 From: "Imad Abdeljaouad" Subject: [ns] EURANE HSDPA input trace files test cases To: "ns-users at isi.edu" , "ns-eurane at www.ti-wmc.nl" Message-ID: <8e20d47b0707041012w29671b60m745e95ee179fdbd0 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi All, Does anyone know where I can get the specs of (or any information about) the test cases (Vehicular A/B, rayleigh...) implemented in the Matlab processes for generating input trace files for HSDPA ? Thank you in advance, Imad Abdeljaouad ------------------------------ Message: 10 Date: Wed, 4 Jul 2007 19:38:30 +0100 (BST) From: Banu Sundar Subject: [ns] Queue Monitor - Packet Drops To: ns-users at ISI.EDU Message-ID: <802200.54353.qm at web7606.mail.in.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi users, I have questions on how to monitor the packet drop between two particular links.I have used the following commands to do it. set qmon [$ns monitor-queue $n3 $n4 [open qm.out w] 0.1]; [$ns link $n3 $n4] queue-sample-timeout; At the end of simulation "qm.out" is created. The qm.out looks like this; 0 2 3 0 0 0 0 0 0 0 0 0.10000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 0.20000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 0.30000000000000004 2 3 0.0 0.0 0 0 0 0 0 0 0.40000000000000002 2 3 0.0 0.0 0 0 0 0 0 0 0.5 2 3 0.0 0.0 0 0 0 0 0 0 0.59999999999999998 2 3 0.0 0.0 18 18 0 9000 9000 0 0.69999999999999996 2 3 0.0 0.0 38 38 0 19000 19000 0 0.79999999999999993 2 3 0.0 0.0 58 58 0 29000 29000 0 0.89999999999999991 2 3 0.0 0.0 78 78 0 39000 39000 0 0.99999999999999989 2 3 0.0 0.0 98 98 0 49000 49000 0 1.0999999999999999 2 3 2990.0000000001178 5.9800000000002349 136 122 0 68000 61000 0 1.2 2 3 9055.0000000004129 18.110000000000831 176 147 9 88000 73500 4500 1.3 2 3 9625.0000000006312 19.250000000001268 216 172 24 108000 86000 12000 1.4000000000000001 2 3 9625.0000000009095 19.25000000000183 256 197 39 128000 98500 19500 1.5000000000000002 2 3 9625.0000000011878 19.25000000000238 296 222 54 148000 111000 27000 1.6000000000000003 2 3 9625.0000000014679 19.250000000002938 336 247 69 168000 123500 34500 1.7000000000000004 2 3 9625.0000000017426 19.250000000003489 376 272 84 188000 136000 42000 1.8000000000000005 2 3 9625.0000000020191 19.25000000000405 416 297 99 208000 148500 49500 1.9000000000000006 2 3 9625.000000002301 19.250000000004601 456 322 114 228000 161000 57000 I have no idea how to interpret it! Which column gives the values of packets dropped at each instant.Please please try to help me with this.It is creating a blockk in my work and I am not able to proceed further without this informations. Thanks a lot in advance, Banu Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php ------------------------------ Message: 11 Date: Wed, 04 Jul 2007 20:04:02 +0100 From: Arturo Servin Subject: Re: [ns] Flow-aware networking To: ns-users at ISI.EDU Message-ID: <468BEF22.90507 at cs.york.ac.uk> Content-Type: text/plain; charset=ISO-8859-1 Hi, Some time ago somebody sent this post to ns-users. I am trying to build a flow table. Each node send data (UDP or TCP) to other nodes. The simulation now is very small, just 5 or 6 nodes and I want to make a file with the information of flows over time. Basically what it is said in the e-mail: source_address, destination_address, source_port, destination_port, flowId, number of packets, avg_packet size I sorted how to get and to print in a file source_address, destination_address,flow_id, number of packet and avg packet size, but I cannot find how to get and to print the port number. Any idea in how to do get the port number of the TCP or UDP connection (flow) and to print it in a file? Thanks, -as > Hi, > I'm working with ns2 to make a node whose traffic control is based on conception of flow-aware networking (http://perso.rd.francetelecom.fr/oueslati/XP.html). I know how to build Queue class in c++ and how to include it in ns2. It is not a problem. The problem is that I need a value of intensity of arriving packet flow. The flow is identified by [src address, dst address, src port, dst port, type of transport protocol]. I know that when I define source I have to specify the intensity of packet emission. I know this, but I want the node to measure the arriving packet intensity (of identified flow) and return the value as a parameter to make some calculations. I was wondering about building a buffer where I could store 2 packets and estimate time between them, but it is not good solution when you have 1000 sources and you have to store 2000 packets in the system to account 1000 arrival intensities... is anyone have a idea, how to do it, how to build a class like this? I > don't know but maybe ns2 has some tools to measure this time? I will be very grateful for help. > With regards, Marek > > --------------------------------- > Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. > ------------------------------ Message: 12 Date: Wed, 04 Jul 2007 20:07:53 +0100 From: Arturo Servin Subject: Re: [ns] Queue Monitor - Packet Drops To: Banu Sundar Cc: ns-users at ISI.EDU Message-ID: <468BF009.2020709 at cs.york.ac.uk> Content-Type: text/plain; charset=ISO-8859-1 Somewhere in these three sites there is your answer: http://ns-2.blogspot.com/ http://www.isi.edu/nsnam/ns/ http://www-net.cs.umass.edu/~ratton/ns-lecture/ -as Banu Sundar wrote: > Hi users, > I have questions on how to monitor the packet drop between two > particular links.I have used the following commands to do it. > set qmon [$ns monitor-queue $n3 $n4 [open qm.out w] 0.1]; > [$ns link $n3 $n4] queue-sample-timeout; > At the end of simulation "qm.out" is created. > The qm.out looks like this; > 0 2 3 0 0 0 0 0 0 0 0 > 0.10000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 > 0.20000000000000001 2 3 0.0 0.0 0 0 0 0 0 0 > 0.30000000000000004 2 3 0.0 0.0 0 0 0 0 0 0 > 0.40000000000000002 2 3 0.0 0.0 0 0 0 0 0 0 > 0.5 2 3 0.0 0.0 0 0 0 0 0 0 > 0.59999999999999998 2 3 0.0 0.0 18 18 0 9000 9000 0 > 0.69999999999999996 2 3 0.0 0.0 38 38 0 19000 19000 0 > 0.79999999999999993 2 3 0.0 0.0 58 58 0 29000 29000 0 > 0.89999999999999991 2 3 0.0 0.0 78 78 0 39000 39000 0 > 0.99999999999999989 2 3 0.0 0.0 98 98 0 49000 49000 0 > 1.0999999999999999 2 3 2990.0000000001178 5.9800000000002349 136 122 0 > 68000 61000 0 > 1.2 2 3 9055.0000000004129 18.110000000000831 176 147 9 88000 73500 > 4500 > 1.3 2 3 9625.0000000006312 19.250000000001268 216 172 24 108000 86000 > 12000 > 1.4000000000000001 2 3 9625.0000000009095 19.25000000000183 256 197 39 > 128000 98500 19500 > 1.5000000000000002 2 3 9625.0000000011878 19.25000000000238 296 222 54 > 148000 111000 27000 > 1.6000000000000003 2 3 9625.0000000014679 19.250000000002938 336 247 69 > 168000 123500 34500 > 1.7000000000000004 2 3 9625.0000000017426 19.250000000003489 376 272 84 > 188000 136000 42000 > 1.8000000000000005 2 3 9625.0000000020191 19.25000000000405 416 297 99 > 208000 148500 49500 > 1.9000000000000006 2 3 9625.000000002301 19.250000000004601 456 322 114 > 228000 161000 57000 > > I have no idea how to interpret it! Which column gives the values of > packets dropped at each instant.Please please try to help me with this.It > is creating a blockk in my work and I am not able to proceed further > without this informations. > Thanks a lot in advance, > Banu > > > > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php > ------------------------------ Message: 13 Date: Wed, 4 Jul 2007 14:24:03 -0700 From: "Anand PG" Subject: [ns] NIST Wimax Model To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dear All, I am using the NIST Wimax module. But, I am not able to understand the outout it generates. I have pasted below a sample output. I would be really really grateful if anyone could briefly explain it. Fs updated. Bw=5000000.000000, n=1.152000, new value is 5.760000e+06 INITIALIZE THE LIST xListHead BSScheduler created duration=0.004000, PStime=0.000001, nbPS=5760,Symbol time=0.000044, 64 Nb symbols=1 Nb symbols=1 Fs updated. Bw=5000000.000000, n=1.152000, new value is 5.760000e+06 wireless node 0 created ... . . . Frame: duration=0.004000, PSduration=6.944444e-07, symboltime=4.444444e-05, nbPS=5760, rtg=10, ttg=10, PSleft=5740, nbSymbols=89, dlduration=23, In Mac 0 Nb symbols left before contention =66 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Nb symbols=1 Picked connection 2 as first max data=893 (burst duration=23, used duration=4 max data=893 (burst duration=23, used duration=4 max data=893 (burst duration=23, used duration=4 Thanks and Kind Regards Anand ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 43, Issue 4 *************************************** From jcotalorac at unal.edu.co Wed Jul 4 23:46:41 2007 From: jcotalorac at unal.edu.co (Juan Carlos Otalora Caro) Date: Thu, 05 Jul 2007 01:46:41 -0500 Subject: [ns] Fix error in satellital, terminal, and wireless nodes script Message-ID: Dear all: I have a script that implements traffic UDP over a topology that involves satellital, terminal, fixed and wireless nodes together. However, I haven't found the error that is causing a "Segmentation fault (core dumped)". The script is the following: #--------------------------------------------- global ns set ns [new Simulator] # Global configuration parameters # We'll set these global options for the satellite geo global opt set opt(chan) Channel/Sat set opt(bw_up) 2Mb set opt(bw_down) 2Mb set opt(phy) Phy/Sat set opt(mac) Mac/Sat set opt(ifq) Queue/DropTail set opt(qlim) 50 set opt(ll) LL/Sat set opt(wiredRouting) OFF set numsat 3 set numeb 2 set outfile [open out.tr w] $ns trace-all $outfile $ns node-config -satNodeType geo \ -llType $opt(ll) \ -ifqType $opt(ifq) \ -ifqLen $opt(qlim) \ -phyType $opt(phy) \ -macType $opt(mac) \ -channelType $opt(chan) \ -downlinkBW $opt(bw_down) \ -wiredRouting $opt(wiredRouting) #Creation of satellital nodes for {set i 0} {$i < $numsat} {incr i} { set nsat($i) [$ns node] } #Position of satellital nodes $nsat(0) set-position -55 $nsat(1) set-position -70 $nsat(2) set-position -85 #Creation of intersatellital links (nsat(0)<--->nsat(1)<--->nsat(2)) $ns add-isl interplane $nsat(0) $nsat(1) $opt(bw_down) $opt(ifq) \ $opt(qlim) $ns add-isl interplane $nsat(1) $nsat(2) $opt(bw_down) $opt(ifq) \ $opt(qlim) #Configuration of terminal(base-stations) nodes $ns node-config -satNodeType terminal \ -llType $opt(ll) \ -ifqType $opt(ifq) \ -ifqLen $opt(qlim) \ -macType $opt(mac) \ -phyType $opt(phy) \ -channelType $opt(chan) \ -downlinkBW $opt(bw_down) \ -wiredRouting $opt(wiredRouting) #Creation of base-stations nodes for {set j 0} {$j < $numeb} {incr j} { set eb($j) [$ns node] } #Position of base-station nodes over Ecuator parallel $eb(0) set-position 0 -55 $eb(1) set-position 0 -85 #Creation of links between satellite and base-stations (eb(0)<--->nsat(0) and nsat(2)<--->eb(1)) $eb(0) add-gsl geo $opt(ll) $opt(ifq) $opt(qlim) $opt(mac) $opt(bw_up) \ $opt(phy) [$nsat(0) set downlink_] [$nsat(0) set uplink_] $eb(1) add-gsl geo $opt(ll) $opt(ifq) $opt(qlim) $opt(mac) $opt(bw_up) \ $opt(phy) [$nsat(2) set downlink_] [$nsat(2) set uplink_] #Tracing satellital links $ns trace-all-satlinks $outfile #Options for wireless nodes 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) 5 ;# number of mobilenodes set val(rp) DSDV ;# routing protocol set topo [new Topography] $topo load_flatgrid 500 500 create-god $val(nn) #Configuration for wireless nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF #Creation of wireless nodes for {set k 0} {$k < $val(nn) } {incr k} { set nmov($k) [$ns node] $nmov($k) set random-motion 1 } #Disabling satellital node type $ns unset satNodeType_ #Configuration of fixed nodes (by default) $ns node-config -reset #Creation of fixed nodes for {set l 0} {$l < $numeb} {incr l} { set nfijo($l) [$ns node] } #Creation of wired links between base-stations and fixed nodes #$eb(0)<--->$nfijo(0) $ns duplex-link $nfijo(0) $eb(0) 5Mb 2ms DropTail #$eb(1)<--->$nfijo(1) $ns duplex-link $nfijo(1) $eb(1) 5Mb 2ms DropTail #Creation of links between between fixed and wireless nodes #$nmov(0)<--->$nfijo(0) $ns duplex-link $nmov(0) $nfijo(0) 5Mb 2ms DropTail #$nmov(1)<--->$nfijo(0) $ns duplex-link $nmov(1) $nfijo(0) 5Mb 2ms DropTail #$nmov(2)<--->$nfijo(1) $ns duplex-link $nmov(2) $nfijo(1) 5Mb 2ms DropTail #$nmov(3)<--->$nfijo(1) $ns duplex-link $nmov(3) $nfijo(1) 5Mb 2ms DropTail #$nmov(4)<--->$nfijo(1) $ns duplex-link $nmov(4) $nfijo(1) 5Mb 2ms DropTail #Creation and attaching of UDP Agent to nmov(0) (origin of traffic) set udp [new Agent/UDP] $ns attach-agent $nmov(0) $udp #Setting and attaching of traffic type set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp #$cbr set interval_ 60.01 #Creation of Null Agent (target of traffic) set nulo [new Agent/Null] $ns attach-agent $nmov(4) $nulo #Connection between agents (agent level connecion) $ns connect $udp $nulo $ns at 1.0 "$cbr start" $ns at 2.0 "$cbr stop" $ns at 3.0 "finish" #$ns at 4.0 "$ns halt" proc finish {} { global ns outfile $ns flush-trace close $outfile exit 0 } $ns run #-------------------------------------- I agree any help that you can offer me. Thanks all: Juan Carlos Ot?lora Caro From panonis at gmail.com Thu Jul 5 01:07:17 2007 From: panonis at gmail.com (Nonis Panagiotis) Date: Thu, 5 Jul 2007 11:07:17 +0300 Subject: [ns] Help: Export skitter data to NS In-Reply-To: <3944dcbe0707040853p26b89c8cmfd53bb7007b662de@mail.gmail.com> References: <3944dcbe0707040853p26b89c8cmfd53bb7007b662de@mail.gmail.com> Message-ID: <3944dcbe0707050107w1186da9ev716b4a18996b7f89@mail.gmail.com> Hello, I need your help please, Does anyone use brite program to import and then export to ns skitter data? Regards.. From piyush.kumar.jain at iiitb.ac.in Thu Jul 5 06:13:39 2007 From: piyush.kumar.jain at iiitb.ac.in (piyush jain) Date: Thu, 5 Jul 2007 06:13:39 -0700 (PDT) Subject: [ns] Help required regarding wimax sleep mode patch for ns-2.29 Message-ID: <11446214.post@talk.nabble.com> Hello, We are final year students of IIIT Bangalore,currently pursuing M.Tech in Information Technology. We are doing research on Adaptive sleep mode for wimax 802.16e under guidance of Prof. Debabrata Das(Ph.D, IIIT Kharaghpur). We have started simulation on ns-2.29. We need help from you regarding this. We want to know that is there any patch availabel for supporting sleep mode for 802.16e. Thanks in Advance, Waiting for your reply. Thanks & Regards Khyati Sanghvi Piyush Jain -- View this message in context: http://www.nabble.com/Help-required-regarding-wimax-sleep-mode-patch-for-ns-2.29-tf4029624.html#a11446214 Sent from the ns-users mailing list archive at Nabble.com. From bvrdorababu at gmail.com Thu Jul 5 07:22:27 2007 From: bvrdorababu at gmail.com (dorababu) Date: Thu, 5 Jul 2007 19:52:27 +0530 Subject: [ns] Event UID not valid error Message-ID: Hi, i am trying for QOS extention in aodv protocol. I changed the protocol according to that, and i compile the qaodv protocol, It is giving no error,it succesfuly compiled. But when i try to use this protocol in the examples or in my tcl file it is giving following error [root at cc20448 project]# ns aodvsmall.tcl num_nodes is set 9 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Scheduler: Event UID not valid! i am unable to remove this bug. i am in great need of help,If any body knows please help. waiting for reply. Thanks in advance. -- Thanks and Regards, B.V.R.Dora Babu. From marcelcastrobr at gmail.com Thu Jul 5 08:24:37 2007 From: marcelcastrobr at gmail.com (Marcel Castro) Date: Thu, 5 Jul 2007 17:24:37 +0200 Subject: [ns] Event UID not valid error In-Reply-To: References: Message-ID: Dear Dora, On 7/5/07, dorababu wrote: > > > Hi, > i am trying for QOS extention in aodv protocol. I changed the > protocol > according to that, and i compile the qaodv protocol, It is giving no > error,it succesfuly compiled. But when i try to use this protocol in the > examples or in my tcl file it is giving following error > > [root at cc20448 project]# ns aodvsmall.tcl > num_nodes is set 9 > warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl > INITIALIZE THE LIST xListHead > Starting Simulation... > channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ > highestAntennaZ_ = 1.5, distCST_ = 550.0 > SORTING LISTS ...DONE! > > Scheduler: Event UID not valid! > > i am unable to remove this bug. i am in great need of help,If any body > knows > please help. > waiting for reply. > Thanks in advance. > > > > -- > Thanks and Regards, > B.V.R.Dora Babu. > From marcelcastrobr at gmail.com Thu Jul 5 08:25:10 2007 From: marcelcastrobr at gmail.com (Marcel Castro) Date: Thu, 5 Jul 2007 17:25:10 +0200 Subject: [ns] Event UID not valid error In-Reply-To: References: Message-ID: > Dear Dora, Take a look at http://www.winlab.rutgers.edu/~zhibinwu/html/mac_ns_bugs.htm. Regards Marcel On 7/5/07, dorababu wrote: > > > > > > Hi, > > i am trying for QOS extention in aodv protocol. I changed the > > protocol > > according to that, and i compile the qaodv protocol, It is giving no > > error,it succesfuly compiled. But when i try to use this protocol in > > the > > examples or in my tcl file it is giving following error > > > > [root at cc20448 project]# ns aodvsmall.tcl > > num_nodes is set 9 > > warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl > > INITIALIZE THE LIST xListHead > > Starting Simulation... > > channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ > > highestAntennaZ_ = 1.5, distCST_ = 550.0 > > SORTING LISTS ...DONE! > > > > Scheduler: Event UID not valid! > > > > i am unable to remove this bug. i am in great need of help,If any body > > knows > > please help. > > waiting for reply. > > Thanks in advance. > > > > > > > > -- > > Thanks and Regards, > > B.V.R.Dora Babu. > > > > From iraqi_style347 at yahoo.com Thu Jul 5 17:20:40 2007 From: iraqi_style347 at yahoo.com (omar347) Date: Thu, 5 Jul 2007 17:20:40 -0700 (PDT) Subject: [ns] Wired-Wirelss DiffServ Problem Message-ID: <11456985.post@talk.nabble.com> Dear Members, I am trying to simulate the Wired-Wireless with hierarchical addressing DiffServ scenario, but it?s not working and give an-error message: ERROR: No Policy Table entry found for Source 0-Destination 4194305 Is there any solutions to this problem, I tried to check in the ,mailing list of ns, but no answers yet,?I hope someone can help with this problem,Please?????. Looking forward to hearing from you, Kind Regards -- View this message in context: http://www.nabble.com/Wired-Wirelss-DiffServ-Problem-tf4033067.html#a11456985 Sent from the ns-users mailing list archive at Nabble.com. From tiago.junkeira at gmail.com Fri Jul 6 04:28:33 2007 From: tiago.junkeira at gmail.com (Tiago Junqueira) Date: Fri, 6 Jul 2007 13:28:33 +0200 Subject: [ns] distCST_ and the antenna's gain In-Reply-To: <4bb1b4060707051058w25b55fa9s20059dca93605714@mail.gmail.com> References: <4bb1b4060707051058w25b55fa9s20059dca93605714@mail.gmail.com> Message-ID: <4bb1b4060707060428t65740801ycdb03f27b07b040a@mail.gmail.com> Hi, About the problem I had, it was just a question of having the antennas gain in the variable distCST_, to to it I just made: First the changes: In the file wireless-phy.h, add the last two lines described bellow : /* -NEW- */ inline double getAntennaZ() { return ant_->getZ(); } inline double getPt() { return Pt_; } inline double getRXThresh() { return RXThresh_; } inline double getCSThresh() { return CSThresh_; } inline double getFreq() { return freq_; } /*Sugestion just to get the gain Gr_ and Gt_*/ inline double getTxGainGt() { return ant_->getTxGain(0,0,0,lambda_); } inline double getRxGainGr() { return ant_->getRxGain(0,0,0,lambda_); } /* End -NEW- */ In the file channel.cc: Substitute the following expression where the antennas have the gain 1: distCST_ = wifp->getDist(wifp->getCSThresh(), wifp->getPt(), 1.0, 1.0, highestZ , highestZ, wifp->getL(), wifp->getLambda()); for the expression that considers the gain of the antennas: distCST_ = wifp->getDist(wifp->getCSThresh(), wifp->getPt(), wifp->getTxGainGt(), wifp->getRxGainGr(), highestZ , highestZ, wifp->getL(), wifp->getLambda()); ----------------Where the problem came from: I was getting problems with the following 2 simulations: Phy/WirelessPhy set CSThresh_ 630e-15 and i also added the following lines: Antenna/OmniAntenna set Gt_ 25.0 Antenna/OmniAntenna set Gr_ 50.0 I was using the FreeSpace model, and a distance of 880 m with Gr=50 and Gt=25. After running the script for a Pt_ = 0.0158 W (12 dBm), the power received using the Friis formula or the result printed by the function gives: 0.031842: d: 880.000000, Pr: 1.199811e-09 highestAntennaZ_ = 1.5, distCST_ = 1086.2 But if I run the script for Pt= 0.01 W (10 dBm), there is no packet received, and Pr is not printed, but it should be more or less 7.2e-10, but the variable highestAntennaZ_ = 1.5, distCST_ = 862.8. My question is the received power should be 7.2e-10 >> 6.30e-13, that means that the packet should be received. ---------------------------- Thanks for your help, Tiago Junqueira From fubovt at gmail.com Fri Jul 6 08:45:01 2007 From: fubovt at gmail.com (Bo Fu) Date: Fri, 6 Jul 2007 08:45:01 -0700 Subject: [ns] How to obtain location information at network layer? Message-ID: <8fd6de8b0707060845h29568eefj2f738fb48d218cb7@mail.gmail.com> Hi there, My study is interested in utilizing location information for routing. Now, I am trying to obtain location information at routing layer in NS-2. Does anybody have any idea of how to implement this? Any comment will be appreciated. Thanks, Danny From email4banu5 at yahoo.co.in Fri Jul 6 09:10:05 2007 From: email4banu5 at yahoo.co.in (Banu Sundar) Date: Fri, 6 Jul 2007 17:10:05 +0100 (BST) Subject: [ns] Priority Queueing Message-ID: <111792.46882.qm@web7609.mail.in.yahoo.com> Hi users, Iam trying to run my simulations with RED algorithm.Iam to set priorities to the packets from each source.I want give one kind of packet high priority and another kind of packet low priority, thus when queue size reaches the queue limit, low priority packet is dropped but high priority packet is still accepted.Should I set the fid_ to different values to realise this or is there any other functions I need to write.Is it possible to do this using RED Algorithm ?Please let me know your ideas. Thanks, Banu S document doesn't tell too much on this. Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php From nytejade.misc at gmail.com Fri Jul 6 09:25:49 2007 From: nytejade.misc at gmail.com (blah2u) Date: Fri, 06 Jul 2007 12:25:49 -0400 Subject: [ns] Segmentaton in DAWN OBS (packet problem) Message-ID: <468E6D0D.7080702@gmail.com> I have implemented segmentation in DAWN's OBS module for NS2. For those who aren't aware what segmentation is, it's simply dealing with contentions by dropping part of a burst instead of dropping the entire burst. I've successfully modified the scheduler to deal with contentions and chop the burst. However, even though I'm chopping bursts at the scheduler level and changing the size of the burst in the Burst Header Packet (BHP), the SelfSimilar statistics are still reading as if the entire burst had been received. Here are some results: without segmentation: 1,223 Bursts are dropped. SSIMBYTESRCV = 151520000 SSIMBYTESND = 200500000 With Head Drop Segmentation: 0 Bursts are dropped. SSIMBYTERCV = 200440000 SSIMBYTESND = 200500000 The Problem: 1,223 bursts * 40,000 bytes (max burst size) = 48920000 bytes. 48920000 + 151520000 = 200440000 Since 40,000 is the size of all bursts, it wouldn't make sense that 200440000 was received, because 1,223 of those bursts have actually been "chopped" so they would not be full size. Do I need to change the size of the SelfSimilar packet as well as the burst size when segmenting? Does that even make sense? Any ideas? From karthik_nv at hotmail.com Fri Jul 6 10:18:19 2007 From: karthik_nv at hotmail.com (karthik narayanan venkataraman) Date: Fri, 6 Jul 2007 17:18:19 +0000 Subject: [ns] ns 2.31 allinone compilation erros with Linux ES4UR AMD64 Message-ID: I am a newbie to ns-2 and I am trying to install the ns 2.31 allinone pkg on Linux ES 4U4 AMD64. I am running into compilation errors when I invoke the'install' script. Also, what 64-bit packages should I install and what difications should I make to the makefiles to get it building and running on AMD64???The following errors are some of the last few lines reported in my console. /opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: error: redefinitionof 'q'/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1215: error: previous definition of 'q' was here/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: error: initializer element is not constant/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: warning: data definition has no type or storage class/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1224: error: syntax errorbefore "if"/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: error: redefinitionof 'q'/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: error: previous definition of 'q' was here/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: error: redefinitionof 'q'/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1215: error: previous definition of 'q' was here/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: error: initializer element is not constant/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: warning: data definition has no type or storage class/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1227: error: syntax errorbefore '}' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function `Tk_Get3DBorderFromObj':/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1262: error: `borderPtr' undeclared (first use in this function)/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1264: error: invalid operands to binary */opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1264: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1277: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1280: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1280: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1281: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1301: error: request for member `borderTable' in something not a structure or union/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1301: error: request for member `borderTable' in something not a structure or union/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1305: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1307: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1307: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1308: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function `TkDebugBorder':/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1388: error: `borderPtr' undeclared (first use in this function)/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1391: error: invalid operands to binary */opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1391: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1394: error: request for member `borderTable' in something not a structure or union/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1394: error: request for member `borderTable' in something not a structure or union/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1396: error: syntax errorbefore ')' token/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function `Tk_Get3DBorder':/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:193: warning: statement with no effect/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function `Tk_Draw3DPolygon':/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:850: warning: value computed is not used/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:850: warning: value computed is not used/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: At top level:/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1134: error: storage sizeof `shiftTable' isn't known/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:31: warning: 'BorderInit'declared `static' but never defined/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:35: warning: 'Intersect' declared `static' but never defined/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:38: warning: 'ShiftLine' declared `static' but never defined/opt/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1120: warning: 'shiftTable' defined but not usedmake: *** [tk3d.o] Error 1tk8.4.14 make failed! Exiting ...For problems with Tcl/Tk see http://www.scriptics.com Thanks, Karthik _________________________________________________________________ Want to look great? Get expert opinion on beauty and skin care. http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm From karthik_nv at hotmail.com Fri Jul 6 14:18:18 2007 From: karthik_nv at hotmail.com (karthik narayanan venkataraman) Date: Fri, 6 Jul 2007 21:18:18 +0000 Subject: [ns] building ns-2 on linux ES4 U4 x86_64 Message-ID: I am trying to install ns 2.31 on a Red Hat Linux ES4U4 AMD64 system and I am running into the install fails while configuring Nam. The following is the error that I am getting: checking for zlib.h... -I/usr/includechecking for libz1.1.4... nochecking for X11 header fileschecking for X11 library archivechecking for XOpenDisplay in -lX11... nocan't find X libraryNam configuration failed! Exiting ...Please check http://www.isi.edu/nsnam/ns/ns-problems.htmlfor common problems and bug fixes. I've installed all the X11 libraries to my knowledge. Please help me out. Thanks, Karthik _________________________________________________________________ Sign in and get updated with all the action! http://content.msn.co.in/Sports/FormulaOne/Default From borsc at ida.liu.se Fri Jul 6 16:39:12 2007 From: borsc at ida.liu.se (Boris Schaefer) Date: Sat, 07 Jul 2007 01:39:12 +0200 Subject: [ns] C++ pointer to TCL objects Message-ID: <200707062339.l66NdCP8017116@portofix.ida.liu.se> Hello, I wonder how to get a C++ pointer to objects created in TCL. The reason is that I need to access a function in my application from a tap method in aodv.cc. I can figure out the node which the application is placed on. However, unfortunately I did not find a way to get a reference to the applications running on the node. I did not find something like a list of applications in the Node class. Now I think about the following solutions and hope somebody can help me: 1. Direct path of pointers There should be a path of pointers from the node over the various classifiers to the application. This would be best, but I am unable to find this path. 2. Existing ns2 list or function that returns applications of a node There should be a function/list that enumerates all applications that reside on a node. I did not find such a function either. Probably it does not exist because the applications are only indirectly connected to nodes via agents. 3. Ugly work-around Create the applications in C++ and store a reference pointer in the god class or another globally accessible place. 4. Use TclObject::lookup() I tried this. My applications are called $myapp_(0), $myapp_(1), myapp_(2) in TCL. So here are the things I tried in order to get a pointer to $myapp(1) in C++. First try: MyApp* app_pointer = (MyApp*)TclObject::lookup("myapp_(1)"); Second try: MyApp* app_pointer = (MyApp*)TclObject::lookup("$myapp_(1)"); Third try (inspired by http://www.cse.msu.edu/~wangbo1/ns2/nshowto5.htm ): Tcl& tcl = Tcl::instance(); MyApp* app_pointer; char command[256], sprintf(command, "foreach myapp_ [Application/MyApp info instances]\ {\nif { [$myapp_ id] == 1} {\nset i $myapp_}}\nset t $i\n",1); tcl.eval(command); const char* ref=tcl.result(); app_pointer = (MyApp*)tcl.lookup(ref); In all cases and other variations of using lookup() it always seems to deliver a 4 byte pointer that points to NULL. Does anyone have an idea how to use lookup() the proper way or another way to get a C++ pointer to a TCL object? Thank you very much for your help. Best regards, Boris From letissia07 at yahoo.fr Sat Jul 7 08:28:48 2007 From: letissia07 at yahoo.fr (leticia bela) Date: Sat, 7 Jul 2007 17:28:48 +0200 (CEST) Subject: [ns] busy/idle time of a mobile node ((PLEASE) Message-ID: <829627.87028.qm@web23305.mail.ird.yahoo.com> Hi all, Please i need for your help. To estimate a avalable bandwidth i need to compute a busy or idle time of a node in a periode of time. Please how can i compute this idle/busy time under mac-802_11.cc Thanks for your Help --------------------------------- Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail From suryowibowo.adi at gmail.com Sat Jul 7 10:56:28 2007 From: suryowibowo.adi at gmail.com (adi suryo wibowo) Date: Sun, 8 Jul 2007 00:56:28 +0700 Subject: [ns] Please advise me about my problem Message-ID: <777cd9860707071056r11381079g182b9ed7bd235110@mail.gmail.com> Hi all I have studied on ad hoc multicat routing,especially ADMR and ODMRP. But I have problem to simulate this, because NS 2 not support this routing mechanism (NS 2 just embeded with DSDV, DSR, TORA, AODV). Must I use the multicast extension like in http://www.monarch.cs.rice.edu/multicast_extensions.html ?. Would you like to tell me what steps must I do? Thanks for your attention From sita at ece.gatech.edu Sat Jul 7 19:57:16 2007 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Sat, 7 Jul 2007 22:57:16 -0400 (EDT) Subject: [ns] trace file limitations Message-ID: <2912.69.136.35.147.1183863436.squirrel@secure2.ece.gatech.edu> Hello, I am trying to run an extended simulation. I am logging only the routing layer information to the trace file. When I run the simulation, the process kills itself after a few hours. Every time, I notice that the trace file size is approximately 1.4 GB. Is anyone aware of a trace file limitation when using ns-2? Regards, Sita From salcaraz at obelix.umh.es Sun Jul 8 00:21:09 2007 From: salcaraz at obelix.umh.es (salcaraz@obelix.umh.es) Date: Sun, 8 Jul 2007 09:21:09 +0200 (CEST) Subject: [ns] trace file limitations In-Reply-To: <2912.69.136.35.147.1183863436.squirrel@secure2.ece.gatech.edu> References: <2912.69.136.35.147.1183863436.squirrel@secure2.ece.gatech.edu> Message-ID: In Linux, there is limit for your files. Maybe, you can see 'limits.conf' file. /salva On Sat, 7 Jul 2007, Sita S. Krishnakumar wrote: > > Hello, > I am trying to run an extended simulation. I am logging only the routing > layer information to the trace file. When I run the simulation, the > process kills itself after a few hours. Every time, I notice that the > trace file size is approximately 1.4 GB. Is anyone aware of a trace file > limitation when using ns-2? > Regards, > Sita > > > > > > > From rubenjy at gmail.com Sun Jul 8 07:13:57 2007 From: rubenjy at gmail.com (rubenjy) Date: Sun, 8 Jul 2007 07:13:57 -0700 (PDT) Subject: [ns] multicast address problem Message-ID: <11489052.post@talk.nabble.com> Hello, I am trying to change multicast address in c++ when i set int Addr=0x80000000 maked it is ok, but run it will show "Segmentation fault (core dumped)" how do i change this. change address? or multicast address set? or anything? -- View this message in context: http://www.nabble.com/multicast-address-problem-tf4044637.html#a11489052 Sent from the ns-users mailing list archive at Nabble.com. From mcsist at yahoo.com Sun Jul 8 10:41:06 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Sun, 8 Jul 2007 10:41:06 -0700 (PDT) Subject: [ns] Is there any difference between drop packet and packet loss Message-ID: <731408.77292.qm@web55013.mail.re4.yahoo.com> Hello ns-users, Is there any difference between drop packet and packet loss? Thanks --------------------------------- It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. From kamil at ucsd.edu Sun Jul 8 14:30:56 2007 From: kamil at ucsd.edu (Kamil H. Suleiman) Date: Sun, 08 Jul 2007 23:30:56 +0200 Subject: [ns] umts uplink bandwidth In-Reply-To: <1183929057.16623.7.camel@hsskam001.stu.uct.ac.za> References: <1183929057.16623.7.camel@hsskam001.stu.uct.ac.za> Message-ID: <1183930256.16789.3.camel@hsskam001.stu.uct.ac.za> Hi ns users I'm using the SEAMLESS and SECURE mobility module provided by NIST. I'm trying to simulate the UMTS network in a scenarion wherey by traffic is sent from user nodes in the UMTS to a wired node outside the umts network. However I don't know what the exact bandwidth of the uplink channels of the UMTS, using DCH. The troughput keeps on increasing as I increase sending number of nodes to more than 15mbps which is very unreaslistic.Does anybody know what should be the realistic value? Thanks a lot Kamil From dearlmh76 at sina.com Sun Jul 8 19:14:08 2007 From: dearlmh76 at sina.com (Minghao Li) Date: Mon, 9 Jul 2007 10:14:08 +0800 Subject: [ns] Hi all has anybody could tell me where are examples or tutorial in ns-2.31 Message-ID: <20070709021407.E3C73108AA6@smtp.sina.com.cn> Hi all, Has anybody could tell me where are examples or tutorial in ns-2.31? Thanks a lot! Best Regards, lmh From lyslff at 163.com Mon Jul 9 00:05:25 2007 From: lyslff at 163.com (lyslff) Date: Mon, 9 Jul 2007 15:05:25 +0800 (CST) Subject: [ns] source codes for Adding multiple interface based on Ramon Message-ID: <77053426.667841183964725004.JavaMail.coremail@bj163app125.163.com> Hi all,I have completed all steps to add multiple interface support in NS-2 according to Ramon's tutorial.(http://personales.unican.es/aguerocr>http://personales.unican.es/aguerocr) the only difference from Ramon's document is that when sending a unicast packet, I use the following statements:Scheduler::instance().schedule(targetlist[rt->rt_interface], p, 0.);where rt_interface is a member variable of rt_entry and is updated in recvreply and recvrequest:rt0->rt_interface=ch->iface()-((Mac *)ifqueuelist[0]->target())->addr(); I didn't do it as listing 5.5 since I'm not sure where to add listing 5.5 and how to use the rt_interface variable defined in rt_entry. and I have run a simple script that a node with two interfaces send packet to the another node with single interface. but the result is that the two nodes can only communicate through interface 0. Did anyone succeessfully implement the multi-interface support using aodv?I have spend many days on this problem. Could you help me?I put my modified codes and the script in the attachment. Could you have a check on it? Thanks in advancebest regards From giuseppe.delcore at coritel.it Mon Jul 9 03:18:24 2007 From: giuseppe.delcore at coritel.it (Giuseppe) Date: Mon, 9 Jul 2007 12:18:24 +0200 Subject: [ns] script for ns2.26 Message-ID: <000001c7c213$9c9d9a50$2402a8c0@bomb> Hi all, I would want to know if some way exists in order run the simulations in way automatic rifle. Thank you From skitmax81 at yahoo.it Mon Jul 9 05:13:24 2007 From: skitmax81 at yahoo.it (ComputerScienceStudent) Date: Mon, 9 Jul 2007 05:13:24 -0700 (PDT) Subject: [ns] NS-2.31 + WiMAX 2.03: gcc error.. Non-housewife but yet desperated!! Message-ID: <11488717.post@talk.nabble.com> I work in Linux.. I've installed NS-2.31 and patched it for using the WiMAX module. This patch functions but still don't have the support for QoS and I'll use these stuffs.. So I download the WiMAX 2.03 extension for NS-2 ( http://ndsl.csie.cgu.edu.tw/download.php http://ndsl.csie.cgu.edu.tw/download.php ): it contains the files "packet.h", ecc.. within the "common", "queue" and "mac/Mac-802_16" directories and re-install NS-2.31 to have a clean distribution, without changed files. ( http://ndsl.csie.cgu.edu.tw/wimax_ns2.php http://ndsl.csie.cgu.edu.tw/wimax_ns2.php ) I modify the Makefile in the principal directory which is "ns-2.31" (after copying these files in the correct places..) and then run the famouses "./configure" and then "make clean" and "make" commands.. The result is that the gcc said that PT_LBRACE isn't in the right scope, error found in packmime.cc.. I'm not an expert.. but I've followed all the steps in the How-to of the WiMAX site and these doesn't work.. Please, someone help me.. I'm desperated!! Max, Computer Science student -Italy- PS. Don't say to control the pdf in the site because I can't find the file to modify.. ( http://ndsl.csie.cgu.edu.tw/gcc_error.pdf http://ndsl.csie.cgu.edu.tw/gcc_error.pdf ) PS. Please, english language.. -- View this message in context: http://www.nabble.com/NS-2.31-%2B-WiMAX-2.03%3A-gcc-error..-Non-housewife-but-yet-desperated%21%21-tf4044505.html#a11488717 Sent from the ns-users mailing list archive at Nabble.com. From lyslff at 163.com Mon Jul 9 07:40:16 2007 From: lyslff at 163.com (lyslff) Date: Mon, 9 Jul 2007 22:40:16 +0800 (CST) Subject: [ns] source codes for multiple interface support in NS-2 Message-ID: <33038289.985251183992016278.JavaMail.coremail@bj163app33.163.com> I'm adding multiple interface in NS-2 based on Ramon's tutorial.http://personales.unican.es/aguerocrI have completed all the steps in the tutorial but the listing 5.5. I changed the listing 5.5 as Scheduler::instance().schedule(targetlist[rt->rt_interface], p, 0.); where rt_interface is a member variable in rt_entry class. and it is updated in recvreply and recvrequest function: rt0->rt_interface=ch->iface()-((Mac *)ifqueuelist[0]->target())->addr(); and I run a simple script that a node with two interfaces send packet to another node with single interface. but the result is that the two nodes can only communicate through interface 0. Did anyone successfully implemented this? Could you help me?I put my modified codes and the script in the attachment. Please help. Best regards From lyslff at 163.com Mon Jul 9 17:52:14 2007 From: lyslff at 163.com (lyslff) Date: Tue, 10 Jul 2007 08:52:14 +0800 (CST) Subject: [ns] source codes of multi interface in NS-2 Message-ID: <1570164027.66201184028734422.JavaMail.coremail@bj163app112.163.com> Hi all,I'm adding multiple interface in NS-2 based on Ramon's tutorial.http://personales.unican.es/aguerocrI have completed all the steps in the tutorial but the listing 5.5. I changed the listing 5.5 as Scheduler::instance().schedule(targetlist[rt->rt_interface], p, 0.); where rt_interface is a member variable in rt_entry class. and it is updated in recvreply and recvrequest function: rt0->rt_interface=ch->iface()-((Mac *)ifqueuelist[0]->target())->addr();and I run a simple script that a node with two interfaces send packet to another node with single interface. but the result is that the two nodes can only communicate through interface 0.Did anyone successfully implemented this? Could you help me?I put my modified codes and the script in the attachment. Please help.Best regards From martial_chinese at yahoo.com.cn Mon Jul 9 19:48:10 2007 From: martial_chinese at yahoo.com.cn (=?gb2312?q?=CE=F7=D1=C7=C0=D5=20=C2=EA=B6=FB?=) Date: Tue, 10 Jul 2007 10:48:10 +0800 (CST) Subject: [ns] NS2 implementation of Broadcast Storm Problem algorithm In-Reply-To: <200707100229.l6A2TKqR006667@gamma.isi.edu> Message-ID: <9219.14826.qm@web15303.mail.cnb.yahoo.com> Hi!: I'm working on algorithm to reduce the Broadcast Storm Problem in MANETs. I would like to compare my algothm with some of the already existed algorithms, like Distance-based scheme and Scalable Broadcast algorithm or any other. I was wondering if any of you has a NS 2 implementation of any of those algorithms. Any help will be appreciate Thanks in advance --------------------------------- ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ From khyatibsanghvi at gmail.com Mon Jul 9 23:36:40 2007 From: khyatibsanghvi at gmail.com (Khyati Sanghvi) Date: Tue, 10 Jul 2007 12:06:40 +0530 Subject: [ns] example TCP script for mac 802.16 with routing protocol NOAH on nS 2 platform Message-ID: Can anybody help me getting Example TCL script for mac 802.16 with routing protocol NOAH on nS 2 platform? -- With regards, Khyati From aleulseged at hotmail.com Tue Jul 10 00:40:42 2007 From: aleulseged at hotmail.com (Leulseged Aregaye) Date: Tue, 10 Jul 2007 07:40:42 +0000 Subject: [ns] hash based load balancing Message-ID: Dear ns users I am studying Load Balancing TE especially hash based in MPLS network. However , I could not able to include the hash classifier of ns2 in to my tcl file in such a way to make per flow load balancing using source & destination address. Could any one help me, please ? many thanks Leulseged _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From ciskorama at hotmail.com Tue Jul 10 00:51:31 2007 From: ciskorama at hotmail.com (Francesco Magistro) Date: Tue, 10 Jul 2007 07:51:31 +0000 Subject: [ns] TraceFile for Application/Traffic/Trace objects Message-ID: Hi, I need to produce a TraceFile for Application/Traffic/Trace objects but I haven't any idea about generation of it. I've tried to look for some example but I can't find anyone. So, please, could someone tell me, step by step, how can I generate and format it from my inputs (microseconds, bytes)?! Thank you by now.... _________________________________________________________________ Scarica Windows Live Messenger e chiama gratis in tutto il mondo! http://www.messenger.it/connessione.html From abdeljaouad at gmail.com Tue Jul 10 02:39:06 2007 From: abdeljaouad at gmail.com (Imad Abdeljaouad) Date: Tue, 10 Jul 2007 09:39:06 +0000 Subject: [ns] Urgent Please Help ! Matlab preprocesses Message-ID: <8e20d47b0707100239vd207d12y178f8debb5680071@mail.gmail.com> Hi All, Does anyone know where I can get the specs of (or any information about) the test cases (Vehicular A/B, rayleigh...) implemented in the Matlab processes for generating input trace files for HSDPA ? Thank you in advance, Imad Abdeljaouad From liup at research.ge.com Tue Jul 10 08:22:04 2007 From: liup at research.ge.com (Liu, Ping (GE, Research)) Date: Tue, 10 Jul 2007 11:22:04 -0400 Subject: [ns] Problems running NS2 Emulation Message-ID: Dear all, I downloaded NS2 allinone-2.31 version, and is able to install and validate the installation on Redhat linux 2.6.9-42.0.3.EL. But when I tried to run NS2 emulation, I always have the following error "pcap/live object (_o11) couldn't open packet source fxp0: ioctl: No such device", detailed error msg and test scripts are also listed below. I searched the archive, looks like someone has asked this question before, but no answers, hope this time someone could please help! thanks many! -Ping 1. my test script -------------------------- #create simulator set ns [new Simulator] $ns use-scheduler RealTime #Emulator address #set me "10.0.1.1" set me [exec hostname] # allocate a BPF type network object and a raw-IP object # BPF: Berkeley Packet Filter #Packet input set bpf0 [new Network/Pcap/Live] $bpf0 set promisc_ true set nd0 [$bpf0 open readonly fxp0] set filt "(not ip host $me)" $bpf0 filter $filt #Packet output set ipnet [new Network/IP] $ipnet open writeonly #Input Agent set pfa [new Agent/Tap] $pfa network $bpf0 #Output agent set ipa [new Agent/Tap] $ipa network $ipnet # ICMP ECHO agent set echoagent [new Agent/PingResponder] set node0 [$ns node] set node1 [$ns node] set node2 [$`ns node] $ns simplex-link $node0 $node2 10Mb 10ms DropTail $ns simplex-link $node1 $node2 10Mb 10ms DropTail $ns attach-agent $node0 $pfa $ns attach-agent $node1 $ipa $ns attach-agent $node2 $echoagent $ns simplex-connect $pfa $echoagent $ns simplex-connect $ipa $echoagent #wait for ping to come in... puts "okey" $ns run 2. Detailed Error Msg -------------------------- [10:58 AM] wireless# nse 1.tcl pcap/live object (_o11) couldn't open packet source fxp0: ioctl: No such device (_o11 cmd line 1) invoked from within "_o11 cmd open readonly fxp0" 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 "_o11" line 2) (SplitObject unknown line 2) invoked from within "$bpf0 open readonly fxp0" invoked from within "set nd0 [$bpf0 open readonly fxp0]" (file "1.tcl" line 15) From skitmax81 at yahoo.it Tue Jul 10 08:59:22 2007 From: skitmax81 at yahoo.it (ComputerScienceStudent) Date: Tue, 10 Jul 2007 08:59:22 -0700 (PDT) Subject: [ns] NS-2.31 + WiMAX 2.03: gcc error.. Non-housewife but yet desperated!! Message-ID: <11488717.post@talk.nabble.com> I work in Linux.. I've installed NS-2.31 and patched it for using the WiMAX module. This patch functions but still don't have the support for QoS and I'll use these stuffs.. So I download the WiMAX 2.03 extension for NS-2 ( http://ndsl.csie.cgu.edu.tw/download.php http://ndsl.csie.cgu.edu.tw/download.php ): it contains the files "packet.h", ecc.. within the "common", "queue" and "mac/Mac-802_16" directories and re-install NS-2.31 to have a clean distribution, without changed files. ( http://ndsl.csie.cgu.edu.tw/wimax_ns2.php http://ndsl.csie.cgu.edu.tw/wimax_ns2.php ) I modify the Makefile in the principal directory which is "ns-2.31" (after copying these files in the correct places..) and then run the famouses "./configure" and then "make clean" and "make" commands.. The result is that the gcc said that PT_LBRACE isn't in the right scope, error found in packmime.cc.. I'm not an expert.. but I've followed all the steps in the How-to of the WiMAX site and these doesn't work.. Please, someone help me.. I'm desperated!! Max, Computer Science student -Italy- PS. Don't say to control the pdf in the site because I can't find the file to modify.. ( http://ndsl.csie.cgu.edu.tw/gcc_error.pdf http://ndsl.csie.cgu.edu.tw/gcc_error.pdf ) PS. Please, english language.. /// THANKS volker.richter at gmx.de // You're patched packet.h seems to work.. \\ Non-housewife less desperated.. \\\ -- View this message in context: http://www.nabble.com/NS-2.31-%2B-WiMAX-2.03%3A-gcc-error..-Non-housewife-but-yet-desperated%21%21-tf4044505.html#a11488717 Sent from the ns-users mailing list archive at Nabble.com. From litun_mishra at yahoo.co.in Tue Jul 10 10:14:17 2007 From: litun_mishra at yahoo.co.in (Litun Mishra) Date: Tue, 10 Jul 2007 10:14:17 -0700 (PDT) Subject: [ns] creating topology of 500 nodes!! Message-ID: <575726.96403.qm@web94313.mail.in2.yahoo.com> Hi, I am currently running SIP experiments with ns-2.27. I am using hierarchical addressing scheme. But the moment i scale my experiment from 20 to 50 nodes, i get a segmentation fault(core dumped) message. I really need help in scaling my experiment to a larger topology i.e 200, 500 and 1000 nodes. Please help. Regards, Litun ____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 From suryowibowo.adi at gmail.com Tue Jul 10 20:05:05 2007 From: suryowibowo.adi at gmail.com (adi suryo wibowo) Date: Wed, 11 Jul 2007 10:05:05 +0700 Subject: [ns] Plese give me advice about ODMRP and ADMR ad hoc simulation problem Message-ID: <777cd9860707102005o37bac968l1649c37b9cd8dee3@mail.gmail.com> Hi all I have studied on ad hoc multicat routing,especially ADMR and ODMRP. But I have problem to simulate this, because NS 2 not support this routing mechanism ( but NS 2 just embeded with DSDV, DSR, TORA, AODV). Must I use the multicast extension like in http://www.monarch.cs.rice.edu/multicast_extensions.html ?. Would you like to tell me what steps must I do? Thank for your attention From shm_saleem at yahoo.com Wed Jul 11 03:03:39 2007 From: shm_saleem at yahoo.com (Muhammad saleem Sheikh) Date: Wed, 11 Jul 2007 03:03:39 -0700 (PDT) Subject: [ns] Trace file conversion Message-ID: <208203.68587.qm@web50607.mail.re2.yahoo.com> I want to convert the trace files of ~ns-2.29/ns-tutorial/examples into Xgraph or graphical shape , did any body done it before , plz help me in this regard. Thanks in advance Regards, Saleem Sheikh ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting From shm_saleem at yahoo.com Wed Jul 11 03:04:21 2007 From: shm_saleem at yahoo.com (Saleemsheikh) Date: Wed, 11 Jul 2007 03:04:21 -0700 (PDT) Subject: [ns] Trace file conversion Message-ID: <11537528.post@talk.nabble.com> I want to convert the trace files of ~ns-2.29/ns-tutorial/examples into Xgraph or graphical shape , did any body done it before , plz help me in this regard. Thanks in advance Regards, Saleem Sheikh -- View this message in context: http://www.nabble.com/Trace-file-conversion-tf4060986.html#a11537528 Sent from the ns-users mailing list archive at Nabble.com. From leonardo.londero at gmail.com Wed Jul 11 04:57:31 2007 From: leonardo.londero at gmail.com (Leonardo Londero de Oliveira - leonardo.londero@gmail.com) Date: Wed, 11 Jul 2007 12:57:31 +0100 Subject: [ns] localization using ns-2 In-Reply-To: <1fd2b5200707110408p48cefcb2qf3067afd9d2861dc@mail.gmail.com> References: <1fd2b5200707110408p48cefcb2qf3067afd9d2861dc@mail.gmail.com> Message-ID: <1fd2b5200707110457k70bb8485t2fa8f13811a450b2@mail.gmail.com> Hello! Does anybody have a tcl script that implements a localization algorithm for mobile or static sensor networks and could provide it? Thanks in advance Leonardo From ananya.ojha at gmail.com Wed Jul 11 09:34:40 2007 From: ananya.ojha at gmail.com (Ananya Ojha) Date: Wed, 11 Jul 2007 12:34:40 -0400 Subject: [ns] ODMRP implementation : NS 2.30 Message-ID: <652e22d10707110934j33939c31lec0fe112932f94f1@mail.gmail.com> Hey All, I have gone through the initial few roadblock in implementing the monarch rice project implementation ... and now i am stuck here .. *** no errormodel specified. num_nodes is set 10 UniAgent: net_id is 0 UniAgent: net_id is 1 UniAgent: net_id is 2 UniAgent: net_id is 3 UniAgent: net_id is 4 UniAgent: net_id is 5 UniAgent: net_id is 6 UniAgent: net_id is 7 UniAgent: net_id is 8 UniAgent: net_id is 9 *** NOTE: no power scaling scenario specified. Loading connection pattern... Loading scenario file... Load complete... Loading multicast info file... using backward compatible Agent/CBR; use Application/Traffic/CBR instead Loading multicast info file... done. *** NOTE: no interference scenario specified Starting Simulation... ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead ODMRPAgent: join-group succeeded for group 32769 using backward compatible Agent/CBR; use Application/Traffic/CBR instead uniagent received pkt Program received signal SIGSEGV, Segmentation fault. 0x081180f9 in LL::sendDown (this=0x86704b8, p=0x8826170) at mac/ll.cc:180 180 mac_->hdr_src(mh, mac_->addr()); (gdb) backtrace full #0 0x081180f9 in LL::sendDown (this=0x86704b8, p=0x8826170) at mac/ll.cc:180 dst = 2 tx = 140884088 ch = (hdr_cmn *) 0x8827c68 ih = (hdr_ip *) 0x8827c48 llh = (hdr_ll *) 0x8827a28 mh = 0x8827a48 "" #1 0x08118057 in LL::recv (this=0x86704b8, p=0x8826170) at mac/ll.cc:163 ch = (hdr_cmn *) 0x8827c68 #2 0x0805b52a in Connector::send (this=0x8679388, p=0x8826170, h=0x0) at connector.h:56 No locals. #3 0x081401d1 in CMUTrace::recv (this=0x8679388, p=0x8826170, h=0x0) at trace/cmu-trace.cc:1618 No locals. #4 0x08056693 in NsObject::handle (this=0x8679388, e=0x8826170) at common/object.cc:93 No locals. #5 0x0805370c in Scheduler::dispatch (this=0x849aef0, p=0x8826170, t=127.93667922166023) at common/scheduler.cc:150 No locals. #6 0x0805373a in Scheduler::run (this=0x849aef0) at common/scheduler.cc:129 p = (Event *) 0x8826170 #7 0x0805390b in Scheduler::command (this=0x849aef0, argc=2, argv=0xbfd9faa0) at common/scheduler.cc:198 tcl = (Tcl &) @0x845f060: {static instance_ = { static instance_ = , tcl_ = 0x8466270, tkmain_ = 0x0, bp_ = 0x845f070 "[_o223 info class] info instprocs", application_ = 0x82fff71 "ns", buffer_ = "[_o223 info class] info instprocs\000r) -1\nset pvals(-1) error\nset ptype(tcp) 0\nset pvals(0) tcp\nset ptype(udp) 1\nset pvals(1) udp\nset ptype(cbr) 2\nset pvals(2) cbr\nset ptype(audio) 3\nset pvals(3) audio\n"..., objs_ = {buckets = 0x8773d28, staticBuckets = {0x0, 0x0, ---Type to continue, or q to quit---[F\ 0x0, 0x0}, numBuckets = 256, numEntries = 265, rebuildSize = 768, downShift = 22, mask = 255, keyType = 0, findProc = 0x82b7672 , createProc = 0x82b777c , typePtr = 0x0}}, tcl_ = 0x8466270, tkmain_ = 0x0, bp_ = 0x845f070 "[_o223 info class] info instprocs", application_ = 0x82fff71 "ns", buffer_ = "[_o223 info class] info instprocs\000r) -1\nset pvals(-1) error\nset ptype(tcp) 0\nset pvals(0) tcp\nset ptype(udp) 1\nset pvals(1) udp\nset ptype(cbr) 2\nset pvals(2) cbr\nset ptype(audio) 3\nset pvals(3) audio\n"..., objs_ = {buckets = 0x8773d28, staticBuckets = {0x0, 0x0, 0x0, 0x0}, numBuckets = 256, numEntries = 265, rebuildSize = 768, downShift = 22, mask = 255, keyType = 0, findProc = 0x82b7672 , createProc = 0x82b777c , typePtr = 0x0}} #8 0x08279e18 in TclClass::dispatch_cmd () No symbol table info available. It would be a help if you can look at it and point out the problem !! Regards, +Ananya From etudiante_usthb at hotmail.fr Wed Jul 11 09:49:56 2007 From: etudiante_usthb at hotmail.fr (etudiante usthb) Date: Wed, 11 Jul 2007 16:49:56 +0000 Subject: [ns] Please help me: A problem when I get Instance of Routing Agent AODV???? Message-ID: HELLO, I want to reach a memeber variable in aodv to modify in Mac. For this reason I get instance of Routing Agent AODV as explain in website Veiled how I recovered this variable: In file mac_802-11.h I added: #include "aodv/aodv.h" ............ In file mac_802-11.cc I added: void Mac802_11::recvDATA(Packet *p) { ............. AODV* aodvagent; int i= index_; char command[256]; sprintf(command, "foreach aodvagent [Agent/AODV info instances]\ {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i); Tcl& tcl = Tcl::instance(); tcl.eval(command); const char* ref = tcl.result(); aodvagent = (AODV*)tcl.lookup(ref); . } but when I execute the script tcl, I found ns: foreach aodvagent [Agent/AODV info instances]{ if { [$aodvagent id] == 5} { set i $aodvagent}} set t $i : wrong # args: should be "foreach varList list ?varList list ...? command" while executing "foreach aodvagent [Agent/AODV info instances]{" and the execution stopped. Please Where is the problem. Thank you in advance _________________________________________________________________ D?couvrez le Blog heroic Fantaisy d'Eragon! http://eragon-heroic-fantasy.spaces.live.com/ From etudiante_usthb at hotmail.fr Wed Jul 11 09:52:51 2007 From: etudiante_usthb at hotmail.fr (etudiante usthb) Date: Wed, 11 Jul 2007 16:52:51 +0000 Subject: [ns] Please help me: A problem when I get Instance of Routing Agent AODV???? Message-ID: HELLO, I want to reach a member variable of the class AODV and to modify it in MAC_802-11. For this reason I get instance of Routing Agent AODV as explain in website Veiled how I recovered this variable: In file mac_802-11.h I added: #include "aodv/aodv.h" ............ In file mac_802-11.cc I added: void Mac802_11::recvDATA(Packet *p) { ............. AODV* aodvagent; int i= index_; char command[256]; sprintf(command, "foreach aodvagent [Agent/AODV info instances]\ {\nif { [$aodvagent id] == %d} {\nset i $aodvagent}}\nset t $i\n", i); Tcl& tcl = Tcl::instance(); tcl.eval(command); const char* ref = tcl.result(); aodvagent = (AODV*)tcl.lookup(ref); . } but when I execute the script tcl, I found ns: foreach aodvagent [Agent/AODV info instances]{ if { [$aodvagent id] == 5} { set i $aodvagent}} set t $i : wrong # args: should be "foreach varList list ?varList list ...? command" while executing "foreach aodvagent [Agent/AODV info instances]{" and the execution stopped. Please Where is the problem. Thank you in advance _________________________________________________________________ Personnalisez votre Messenger avec Live.com http://www.windowslive.fr/livecom/ From amita26 at rediffmail.com Wed Jul 11 21:10:05 2007 From: amita26 at rediffmail.com (Amita Singh) Date: 12 Jul 2007 04:10:05 -0000 Subject: [ns] calculating end-to-end delay using perl script. Message-ID: <20070712041005.30670.qmail@webmail90.rediffmail.com> Hi all, Can anyone help me in calculating end-to-end delay using perl script. Thanks in advance. Amita From giuseppe.delcore at coritel.it Thu Jul 12 03:09:05 2007 From: giuseppe.delcore at coritel.it (Giuseppe) Date: Thu, 12 Jul 2007 12:09:05 +0200 Subject: [ns] TcpFull message Message-ID: <001401c7c46c$b0af0280$2402a8c0@bomb> Hi all, when I simulate traffic UMTS, they come many times over visualized on video this message in various ways: " 73685.188696: FullTcp (_o1785): recv'd pkt in CLOSED state: [39539458:9.178706>12.178707] (hlen:40, dlen:0, seq:2001, ack:18560, flags:0x19 (), salen:0, reason:0x4) " Help me Thank you From wjw7869 at 126.com Thu Jul 12 03:23:40 2007 From: wjw7869 at 126.com (wjw7869@126.com) Date: Thu, 12 Jul 2007 18:23:40 +0800 (CST) Subject: [ns] nam can not view node Message-ID: <4696012C.00014B.17656@bj126app76.126.com> Hello all, Today I run out.nam in ns2,I can not see node in the nam-viewer.It gives me reminding information as follows: node 0 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... node 1 is not defined... node 1 is not defined... node 1 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... node 0 is not defined... I take many time to solve the problem, but failed. So I ask for your help! thanks a lot! wjw ---------------------------- ´ËÖ ¾´Àñ Íõ¿¡Î° From shamsali333 at hotmail.com Thu Jul 12 04:24:30 2007 From: shamsali333 at hotmail.com (shams ali) Date: Thu, 12 Jul 2007 11:24:30 +0000 (GMT) Subject: [ns] Link to call me for free Message-ID: <15457166.1503901184239470223.JavaMail.tomcat@media1.jaxtr.com> I am using jaxtr, and if you also sign up, we can talk for free on the phone at any time. P.S. Here is the link to sign up: http://www.jaxtr.com/user/ticket?n=T1dal7qyt6xn4t&type=joininvite -shams --- Delivered by jaxtr, Inc., 855 Oak Grove Avenue, Suite 100, Menlo Park, California 94025. To stop receiving messages from this sender go to http://www.jaxtr.com/user/reportabuse.jsp?it=T1dal7qyt6xn4t From nour.brinis at gmail.com Thu Jul 12 08:09:43 2007 From: nour.brinis at gmail.com (Nour Brinis) Date: Thu, 12 Jul 2007 17:09:43 +0200 Subject: [ns] Link failure probability In-Reply-To: <20e140600707120804j25ddb30asa19ace20ac106d20@mail.gmail.com> References: <20e140600707120804j25ddb30asa19ace20ac106d20@mail.gmail.com> Message-ID: <20e140600707120809s3ec5c8w46ea97c86d9e8bad@mail.gmail.com> > > Hi, > > I need to fix the link failure probability when generating a mobility > topology. > > Anyone have an idea? > Thanks! > Nour. > From nkj575 at gmail.com Thu Jul 12 08:46:24 2007 From: nkj575 at gmail.com (Nitish Jha) Date: Thu, 12 Jul 2007 11:46:24 -0400 Subject: [ns] Change color of wireless nodes Message-ID: <9612cad70707120846g28c886c5we4964914432988e@mail.gmail.com> Hello is it possible to change the color of individual nodes in NS2 for a wireless simulation. I have had no success in using "$node_(0) color red". Anybody know how to do this ? thanks From tar200iq at yahoo.com Thu Jul 12 08:59:39 2007 From: tar200iq at yahoo.com (Tariq Alwada`n) Date: Thu, 12 Jul 2007 08:59:39 -0700 (PDT) Subject: [ns] p2p in ns2 Message-ID: <172248.73347.qm@web56402.mail.re3.yahoo.com> Hi, My master project is about using ns to implement p2p application, I would like to know if any one has already tried some code that I can start from it. I appreciate your help Cheers Tariq --------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. From twoask at gmail.com Thu Jul 12 12:46:59 2007 From: twoask at gmail.com (Hai T. Vu) Date: Thu, 12 Jul 2007 15:46:59 -0400 Subject: [ns] How to access and change antenna setting from Mac? Message-ID: Hi all, I am working on an interesting Mac protocol for wireless network where the tower has a few antennas with different directions. They will be transmitting alternatively to avoid conflict. In order to implement this idea on ns2, I have to answer these questions: 1) How to use/implement directional antenna? For this one, I found out that the ns2 I am using (ns-2.31) does not support anything other than omni attenna. I luckily found a piece of code from IIT-Kanpur ( http://www.cse.iitk.ac.in/users/braman/tens/) which has been developed for ns-2.1b9a and 802.11. But I somehow managed to make it work with my Mac protocol in ns-2.31 (even not perfectly now) thanks to the authors. 2) How to use simulate multiple antennas for one mobile node behaving as a tower? For this I have several options: a) Support one node with multiple interface b) Create several nodes, each with one antenna and put them in the same position, making them work like one single node c) One node has one antenna, but change directly while running simulation Right now I am going with 1c), but in any case I need to access the antenna instance to change the direction, or turn on/off each of them during the simulation in case I can have multiple interfaces. I believe it should be possible but I am struggling how to do this. Could anyone please tell me a way to access the antenna instance from Mac and change the setting such as Pt_, Gt_, or direction as with my directional antenna. Also if you know any solution better than the ones I told above, please suggest. I really appreciate your help. Thanks. Hai. From lyslff at 163.com Thu Jul 12 23:35:33 2007 From: lyslff at 163.com (lyslff) Date: Fri, 13 Jul 2007 14:35:33 +0800 (CST) Subject: [ns] [help]How to call c++ function in OTcl Message-ID: <9067512.2183541184308533675.JavaMail.coremail@bj163app56.163.com> Hi all,I have a doubt in how to call c++ function in Otcl. as the na-manual said, Otcl call c++ function through cmd{} and command(). but besides command() function, there are many other C++ functions, I don't know how to call these functions? for example, I don't know where is the function sendrequest in aodv.cc is called in Otcl.I want to know the full flow a packet is send from a routingagent to the channel(including what c++ functions and Otcl procedures are called? ), Do you have any suggestion to know this process. Best regards From rubenjy at gmail.com Fri Jul 13 01:55:57 2007 From: rubenjy at gmail.com (rubenjy) Date: Fri, 13 Jul 2007 01:55:57 -0700 (PDT) Subject: [ns] change sctp agent dest Message-ID: <11575699.post@talk.nabble.com> there have two node, n1 and n2. n1 have sctp agent 1 and sctp agent 2 n2 have sctp agent 3 agent 1 send data to agent 3 when some event active of agent 1 , i want to use agent 2 send data to agent 3. i change dest address in agent 2, but agent 3 willn't receive the packet. (i had change agent 2's estate to ESTABLISHED) if i will not establish agent 2 and agent 3 connect where is the code must modify, and how to modify -- View this message in context: http://www.nabble.com/change-sctp-agent-dest-tf4073046.html#a11575699 Sent from the ns-users mailing list archive at Nabble.com. From eger at tuhh.de Fri Jul 13 02:17:02 2007 From: eger at tuhh.de (Kolja Eger) Date: Fri, 13 Jul 2007 11:17:02 +0200 Subject: [ns] p2p in ns2 Message-ID: <4697430E.5040509@tuhh.de> We implemented BitTorrent like networks for ns2. Source code is available at http://www.tu-harburg.de/et6/research/bittorrentsim/index.html The paper K. Eger, T. Ho?feld, A. Binzenh?fer, G. Kunzmann, *"Efficient Simulation of Large-Scale P2P Networks: Packet-level vs. Flow-level Simulations"*, 2nd Workshop on the Use of P2P, GRID and Agents for the Development of Content Networks (UPGRADE-CN'07) summarizes our experiences. Regards, Kolja Eger -- Dipl.-Ing. Kolja Eger Hamburg University of Technology (TUHH) Communication Networks (AB 4-06) Schwarzenbergstr. 95, BA IVd, R. 5.010 D-21073 Hamburg, Germany phone: +49 40 42878 3480 fax: +49 40 42878 2941 e-mail: eger at tu-harburg.de web: http://www.tu-harburg.de/et6/staff/eger.html From Atul.Singh at lntinfotech.com Fri Jul 13 02:27:29 2007 From: Atul.Singh at lntinfotech.com (Atul Singh) Date: Fri, 13 Jul 2007 14:57:29 +0530 Subject: [ns] Scheduling Algorithm in Wireless communication Message-ID: Dear All, I am about to start working on scheduling algorithm, concentrating more on MS side. If anybody worked upon implementing scheduling algo in NS2 either at BS or MS, please guide me on the same. Thanking you in advance Warm Regards, Atul Singh ______________________________________________________________________ From tianlangeff at gmail.com Fri Jul 13 03:43:00 2007 From: tianlangeff at gmail.com (Andy) Date: Fri, 13 Jul 2007 18:43:00 +0800 Subject: [ns] How to make rsvp/ns work with hierarchical address? Message-ID: <005c01c7c53a$99eeaf40$6801a8c0@andy> Hi ns_user: I encounter some troubles when I simulate rsvp/ns module under micromobility environment in NS2. Because micromobility(CIMS) module uses hierarchical address to identify nodes, but rsvp uses flat format address. Every time I run the tcl script, NS2 gives me an error message "no target for slot 1". I checked inside NS2's C++ code, and found this error is raised in function: Classifier::find(...). NsObject* Classifier::find(Packet* p) { NsObject* node = NULL; int cl = classify(p); if (cl < 0 || cl >= nslot_ || (node = slot_[cl]) == 0) { if (default_target_) return default_target_; /* * Sigh. Can't pass the pkt out to tcl because it's * not an object. */ Tcl::instance().evalf("%s no-slot %ld", name(), cl); if (cl == TWICE) { /* * Try again. Maybe callback patched up the table. */ cl = classify(p); if (cl < 0 || cl >= nslot_ || (node = slot_[cl]) == 0) return (NULL); } } return (node); } In the conditional statement of "if (cl < 0 || cl >= nslot_ || (node = slot_[cl]) == 0)", node was assigned a NULL value, so the next segment "Tcl::instance().evalf("%s no-slot %ld", name(), cl);" was executed because the member variable "default_target_" was initialized to NULL. What should I do in order to make rsvp/ns module compatible with hierarchical format address? Make some modification about NS2's C++ code such as the classifier, route, etc?? Please help me! Best regards! Andy From rc_loh at yahoo.com.sg Fri Jul 13 07:00:47 2007 From: rc_loh at yahoo.com.sg (RC Loh) Date: Fri, 13 Jul 2007 07:00:47 -0700 (PDT) Subject: [ns] Error when simulating the generated files from "cbrgen.tcl" and "setdest" Message-ID: <447678.96056.qm@web35208.mail.mud.yahoo.com> Hi, I am using the programs, "cbrgen.tcl" and "setdest" provided in NS2 to generate wireless scenarios. However, when I run the "tcl" file using "ns xxxxx.tcl", it gave the following error messages. Anyone knows what is wrong with my program? Thanks in advance. Rdgs, Rachel. ===================================================================================== [Phoenix at Victory NS2_programs]$ ns wireless-20.tcl num_nodes is set 20 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl can't read "topoInstance_": no such variable while executing "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_" (procedure "_o3" line 70) (Simulator create-wireless-node line 70) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) 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 ;# disable random motion }" (file "wireless-20.tcl" line 60) [rc_loh at Victory NS2_programs]$ ____________________________________________________ Yahoo! Singapore Answers Real people. Real questions. Real answers. Share what you know at http://answers.yahoo.com.sg From borges at dcc.ufmg.br Fri Jul 13 07:03:15 2007 From: borges at dcc.ufmg.br (borges@dcc.ufmg.br) Date: Fri, 13 Jul 2007 11:03:15 -0300 (BRT) Subject: [ns] p2p in ns2 In-Reply-To: <4697430E.5040509@tuhh.de> References: <4697430E.5040509@tuhh.de> Message-ID: <60271.201.78.210.81.1184335395.squirrel@webmail.dcc.ufmg.br> Hi Kolja, you' ve done such a good work. I~m usig ira base to my implementatin.. In nerver have an opportunite to thanks you! Alex-from Brazl > > We implemented BitTorrent like networks for ns2. Source code is available > at > > http://www.tu-harburg.de/et6/research/bittorrentsim/index.html > > The paper > > K. Eger, T. Ho?feld, A. Binzenh?fer, G. Kunzmann, *"Efficient Simulation > of Large-Scale P2P Networks: Packet-level vs. Flow-level Simulations"*, > 2nd Workshop on the Use of P2P, GRID and Agents for the Development of > Content Networks (UPGRADE-CN'07) > > summarizes our experiences. > > Regards, > > Kolja Eger > > -- > > Dipl.-Ing. Kolja Eger > > Hamburg University of Technology (TUHH) > Communication Networks (AB 4-06) > Schwarzenbergstr. 95, BA IVd, R. 5.010 > D-21073 Hamburg, Germany > > > phone: +49 40 42878 3480 > fax: +49 40 42878 2941 > e-mail: eger at tu-harburg.de > web: http://www.tu-harburg.de/et6/staff/eger.html > > From twoask at gmail.com Fri Jul 13 09:10:02 2007 From: twoask at gmail.com (Hai T. Vu) Date: Fri, 13 Jul 2007 12:10:02 -0400 Subject: [ns] Error when simulating the generated files from "cbrgen.tcl" and "setdest" In-Reply-To: <447678.96056.qm@web35208.mail.mud.yahoo.com> References: <447678.96056.qm@web35208.mail.mud.yahoo.com> Message-ID: Based on the error: can't read "topoInstance_": no such variable while executing "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ I guess that you did not creat an area so that the mobile node will be able to move around. The code to create area follows. # Create a topology set topo [new Topography] $topo load_flatgrid 2000 2000 Hope this might help. Hai. On 7/13/07, RC Loh wrote: > > > Hi, > > I am using the programs, "cbrgen.tcl" and "setdest" provided in NS2 to > generate wireless scenarios. However, when I run the "tcl" file using "ns > xxxxx.tcl", it gave the following error messages. Anyone knows what is > wrong with my program? > > Thanks in advance. > > Rdgs, > Rachel. > > > ===================================================================================== > [Phoenix at Victory NS2_programs]$ ns wireless-20.tcl > num_nodes is set 20 > warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl > can't read "topoInstance_": no such variable > while executing > "$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ > $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ > $FECProc_" > (procedure "_o3" line 70) > (Simulator create-wireless-node line 70) > invoked from within > "_o3 create-wireless-node" > ("eval" body line 1) > invoked from within > "eval $self create-wireless-node $args" > (procedure "_o3" line 23) > (Simulator node line 23) > 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 ;# disable random > motion > }" > (file "wireless-20.tcl" line 60) > [rc_loh at Victory NS2_programs]$ > > > > > > > ____________________________________________________ > Yahoo! Singapore Answers > Real people. Real questions. Real answers. Share what you know at > http://answers.yahoo.com.sg > From gnychis at cmu.edu Fri Jul 13 12:17:23 2007 From: gnychis at cmu.edu (George Nychis) Date: Fri, 13 Jul 2007 15:17:23 -0400 Subject: [ns] 802.11 poll channel until idle Message-ID: <4697CFC3.1010901@cmu.edu> Hi, I don't think this functionality is in the 802.11 code yet, since all timers are related to backoffs, and when they fire they check if the channel is idle. What I want to do is something slightly different, I want to wait until the channel is idle, and then immediately perform some action. However I might not necessarily need to poll for the channel to be idle in simulation, as you kind of have more information than in the real world. There is only a single instance where I want this to occur, when ACK timeout is exceeded which is in send_timer(). I want to enter some state that waits until the channel is idle and then immediately performs some action. (forget retransmitting the data for now) I can imagine cases where it is possible the channel is not idle after an ACK timeout, such as when there is asymmetry and a terminal who cannot hear another's transmission slaughters it by transmitting... but the original terminal transmitting can hear this new transmission. Does anyone have any suggestions for going about this? Thanks! George From fdouglas at dcc.ufam.edu.br Fri Jul 13 14:18:37 2007 From: fdouglas at dcc.ufam.edu.br (Frank Douglas C. de Farias) Date: Fri, 13 Jul 2007 17:18:37 -0400 Subject: [ns] changing antenna range in NS-2. Message-ID: <4697EC2D.4000101@dcc.ufam.edu.br> Hello, someone can help me? I want to modify the 240 m standard range of 802.11 antenas in the NS-2. Did someone know how to perform this??? Best regards, Frank Douglas Federal University of Amazonas Manaus- Brasil From onyekac at eng.fsu.edu Fri Jul 13 14:42:12 2007 From: onyekac at eng.fsu.edu (Onyekachi) Date: Fri, 13 Jul 2007 17:42:12 -0400 Subject: [ns] Segmentation fault (core dumped) Message-ID: <4697F1B4.6030205@eng.fsu.edu> Hello NS-Users, Please I need urgent help concerning the above-named subject. I am trying to run a DSR ad-hoc simulation involving 3 mobile nodes. the tcl script briefly runs but suddenly terminates with the following error: Segmentation fault (core dumped) i would appreciate any help to resolve this. regards. Kachi. From eddiedu at msn.com Fri Jul 13 14:45:32 2007 From: eddiedu at msn.com (edns) Date: Fri, 13 Jul 2007 14:45:32 -0700 (PDT) Subject: [ns] please help me about hierarchical routing Message-ID: <11582603.post@talk.nabble.com> Hello everyone, I am a student doing my project about routing with different address scheme. Now I have encountered some problems when I try to implement DV routing protocol in a network with hierarchical addresses: 1. The protocol can only be implemented on some nodes, rather than the whole network. If implemented to all nodes, it will report the following error info: --- Classfier::no-slot{} default handler (tcl/lib/ns-lib .tcl) --- _o19: no target for slot 0 _o19 type: Classifier/Addr content dump: classifier _o19 0 offset 11 shift 2047 mask 1 slots slot 0: _o20 (Classifier/Addr) ---------- Finished standard no-slot{} default handler ? 2. When implement the protocol on some nodes, the routing table size of these nodes did change. However, there?s no trace of the type ?rtprotoDV? in the trace file. So I am really confused. If there?s no rtprotoDV packet, how could the table size changes? 3. The chapter of hierarchical routing in the ns2 manual says the table size would be smaller when hierarchical addresses are used, but the results seem to be the same. Since I am running out of time, it is very urgent. So I hope someone could help me a little. Thank you all in advance. Below is my ns2 script. Thank you very much for spending your time on my problems. -------------------------------- set ns [new Simulator] $ns set-address-format hierarchical $ns namtrace-all [open ./ownegs/dkh/nHIER.nam w] $ns trace-all [open ./ownegs/dkh/tHIER.tr w] #topology ############################################# AddrParams set domain_num_ 2 lappend cluster_num 3 3 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 3 3 1 3 3 AddrParams set nodes_num_ $eilastlevel set naddr { 0.0.0 0.1.0 0.1.1 0.1.2 0.2.0 0.2.1 0.2.2 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 } for {set i 0} {$i < 14} {incr i} { set n($i) [$ns node [lindex $naddr $i]] #lappend nodelist $n($i) } lappend nodelist $n(0) $n(8) ########################### $ns rtproto DV $nodelist ########################### $ns duplex-link $n(0) $n(1) 5Mb 2ms DropTail $ns duplex-link $n(0) $n(4) 5Mb 2ms DropTail $ns duplex-link $n(1) $n(2) 5Mb 2ms DropTail $ns duplex-link $n(1) $n(3) 5Mb 2ms DropTail #$ns duplex-link $n(3) $n(4) 5Mb 2ms DropTail $ns duplex-link $n(4) $n(5) 5Mb 2ms DropTail $ns duplex-link $n(4) $n(6) 5Mb 2ms DropTail #################### $ns duplex-link $n(0) $n(7) 5Mb 2ms DropTail ##################### $ns duplex-link $n(7) $n(8) 5Mb 2ms DropTail $ns duplex-link $n(7) $n(11) 5Mb 2ms DropTail $ns duplex-link $n(8) $n(9) 5Mb 2ms DropTail $ns duplex-link $n(8) $n(10) 5Mb 2ms DropTail $ns duplex-link $n(11) $n(12) 5Mb 2ms DropTail $ns duplex-link $n(11) $n(13) 5Mb 2ms DropTail ############################################### #label routing table size in the nam ############################################## $ns at 1.0 {$n(0) label [$n(0) set rtsize_]} $ns at 1.0 {$n(1) label [$n(1) set rtsize_]} $ns at 1.0 {$n(2) label [$n(2) set rtsize_]} $ns at 1.0 {$n(3) label [$n(3) set rtsize_]} $ns at 1.0 {$n(4) label [$n(4) set rtsize_]} $ns at 1.0 {$n(5) label [$n(5) set rtsize_]} $ns at 1.0 {$n(6) label [$n(6) set rtsize_]} $ns at 1.0 {$n(7) label [$n(7) set rtsize_]} $ns at 1.0 {$n(8) label [$n(8) set rtsize_]} $ns at 1.0 {$n(9) label [$n(9) set rtsize_]} $ns at 1.0 {$n(10) label [$n(10) set rtsize_]} $ns at 1.0 {$n(11) label [$n(11) set rtsize_]} $ns at 1.0 {$n(12) label [$n(12) set rtsize_]} $ns at 1.0 {$n(13) label [$n(13) set rtsize_]} ############################################## $ns at 3.5 "finish" proc finish {} { global ns n $ns flush-trace ##puts "running nam..." #exec nam ./ownegs/dkh/nHIER.nam & exit 0 } $ns run -- View this message in context: http://www.nabble.com/please-help-me-about-hierarchical-routing-tf4075384.html#a11582603 Sent from the ns-users mailing list archive at Nabble.com. From tianlangeff at gmail.com Sat Jul 14 01:16:01 2007 From: tianlangeff at gmail.com (Andy) Date: Sat, 14 Jul 2007 16:16:01 +0800 Subject: [ns] Seeking for CIMS micro-mobility packet for ns-2.26 or higher edition Message-ID: <000501c7c5ef$3bcfd3c0$6801a8c0@andy> Hi I am doing some work on RSVP under CIMS micro-mobility environment using the ns-2.1b6. I downloaded the CIMS package from Columbia university's website, but the rsvp/ns module dosn't work with the CIMS because CIMS use hierarchical format address. I want to try my simulation using higher edition of ns2 such as ns-2.26, 2.29 etc. If you have some modified CIMS micro-mobility package for the high edition NS2, please send me a copy, I will really appreciate your help! Best regards! Andy From shm_saleem at yahoo.com Sat Jul 14 05:13:17 2007 From: shm_saleem at yahoo.com (Saleemsheikh) Date: Sat, 14 Jul 2007 05:13:17 -0700 (PDT) Subject: [ns] Plot of trace file in Gnuplot Message-ID: <11593319.post@talk.nabble.com> hi , Plz help me in making plot from trace file, plz tell me how i extract the data from any trace file. Regards, Saleem Sheikh -- View this message in context: http://www.nabble.com/Plot-of-trace-file-in-Gnuplot-tf4078905.html#a11593319 Sent from the ns-users mailing list archive at Nabble.com. From sampath.ranasinghe at kcl.ac.uk Sat Jul 14 06:26:08 2007 From: sampath.ranasinghe at kcl.ac.uk (Sampath N. Ranasinghe) Date: Sat, 14 Jul 2007 14:26:08 +0100 Subject: [ns] C++ pointer to TCL objects References: <200707062339.l66NdCP8017116@portofix.ida.liu.se> Message-ID: <006c01c7c61a$8d3f3e50$2d01a8c0@SAMPATHLAPTOP> Hi Boris, the way to obtain a c++ pointer to a TclObject is as follows int ApplicationLookup::command (int argc, const char* const* argv) { if {argc==3) { if (strcmp(argv[1],"get-myapp")==0){ Tcl& tcl = Tcl::instance(); MyApp * app = (MyApp*)tcl.lookup(argv[2]); return TCL_OK; } } } You were almost correct with you method. What you were doing wrong was passing the string "myapp_(1)" to the look up funtion. The string itself does not represent the TclObject. Therefore, either you have to obtain its address from within the Tcl script. To find out the address of the object from within the Tcl scrip you will need to do the following puts "$myapp_(1)" the address will be display in the terminal window and should look something like this "_020". This "_020" is what is expected by the lookup function and not "myapp_(1)" The other option is using the code above where you pass the address as a parameter. Hence for example if you have a Tcl class called ApplicationLookup you can use the following TCL code to obtain the address set lookupApp [new ApplicationLookup] $lookupApp get-myapp $myapp_(1) You will need to adapt and plug this above c++ code into the class that requires the C++ pointer to th application. Hope its clear. If not don't hesitate to contact me Regards, Sampath ----- Original Message ----- From: "Boris Schaefer" To: Sent: Saturday, July 07, 2007 12:39 AM Subject: [ns] C++ pointer to TCL objects > > Hello, > > I wonder how to get a C++ pointer to objects created in TCL. > > The reason is that I need to access a function in my application > from a tap method in aodv.cc. I can figure out the node which > the application is placed on. However, unfortunately I did not find > a way to get a reference to the applications running on the node. > I did not find something like a list of applications in the Node class. > > Now I think about the following solutions and hope somebody can help me: > > 1. Direct path of pointers > There should be a path of pointers from the node over the various > classifiers to the application. This would be best, but I am unable > to find this path. > > 2. Existing ns2 list or function that returns applications of a node > There should be a function/list that enumerates all applications that > reside on a node. I did not find such a function either. Probably it > does not exist because the applications are only indirectly connected to > nodes via > agents. > > 3. Ugly work-around > Create the applications in C++ and store a reference pointer in the god > class or another globally accessible place. > > 4. Use TclObject::lookup() > I tried this. My applications are called $myapp_(0), $myapp_(1), > myapp_(2) in TCL. So here are the things I tried in order to get a > pointer to $myapp(1) in C++. > > First try: > > MyApp* app_pointer = (MyApp*)TclObject::lookup("myapp_(1)"); > > Second try: > > MyApp* app_pointer = (MyApp*)TclObject::lookup("$myapp_(1)"); > > Third try (inspired by http://www.cse.msu.edu/~wangbo1/ns2/nshowto5.htm > ): > > Tcl& tcl = Tcl::instance(); > MyApp* app_pointer; > char command[256], > > sprintf(command, "foreach myapp_ [Application/MyApp info instances]\ > {\nif { [$myapp_ id] == 1} {\nset i $myapp_}}\nset t $i\n",1); > > tcl.eval(command); > const char* ref=tcl.result(); > > app_pointer = (MyApp*)tcl.lookup(ref); > > > > In all cases and other variations of using lookup() it always seems to > deliver a 4 byte pointer that points to NULL. > > Does anyone have an idea how to use lookup() the proper way or another > way to get a C++ pointer to a TCL object? > > Thank you very much for your help. > > Best regards, > Boris > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.476 / Virus Database: 269.10.2/891 - Release Date: 08/07/2007 > 18:32 > > From tiago.junkeira at gmail.com Sat Jul 14 10:45:55 2007 From: tiago.junkeira at gmail.com (Tiago Junqueira) Date: Sat, 14 Jul 2007 19:45:55 +0200 Subject: [ns] changing antenna range in NS-2. In-Reply-To: <4697EC2D.4000101@dcc.ufam.edu.br> References: <4697EC2D.4000101@dcc.ufam.edu.br> Message-ID: <4bb1b4060707141045s4739dbb2l48b97786b0a792dc@mail.gmail.com> Hi, I don't know if you're just talking about changing the distance, in order to do it you just have to increase the transmitted power Pt_ and check the variable distCST_: #To have 240m,using freespace set opt(prop) Propagation/FreeSpace ;# radio-propagation model #(...) Antenna/OmniAntenna set X_ 0 Antenna/OmniAntenna set Y_ 0 Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 1.0 ;#be aware the Gt_ and Gr_ are setted as the Antenna/OmniAntenna set Gr_ 1.0 ;#fixed value 1.0 Phy/WirelessPhy set freq_ 2.4e9 Phy/WirelessPhy set L_ 1.0 Phy/WirelessPhy set Pt_ 1.838e-5 ;#power needed to have 240m of distance Phy/WirelessPhy set RXThresh_ 3.16e-14 Phy/WirelessPhy set CSThresh_ 3.16e-14 ;#Sensivity=-105 dbm Phy/WirelessPhy set CPThresh_ 10 output:highestAntennaZ_ = 1.5, distCST_ = 239.9 To increase distance higher than that increase Phy/WirelessPhy set Pt_ , distCST_ will go above 240m. I don't know but the article "Simulate 802.11b Channel within NS2" might be useful for you (you can search it on google). kindly, Tiago Junqueira From nguyentienlan at gmail.com Sat Jul 14 17:45:13 2007 From: nguyentienlan at gmail.com (Nguyen Lan) Date: Sun, 15 Jul 2007 09:45:13 +0900 Subject: [ns] ns was killed after running for a while Message-ID: <46996E19.7080007@gmail.com> Dear all, After running my simulation for a while, it was killed by ... ?. Here is what I have on the terminal. I don't know what happended. Please help me ! INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 542.5 Killed Best regards, Nguyen. From arun at cs.umd.edu Sat Jul 14 21:44:57 2007 From: arun at cs.umd.edu (Arunchandar Vasan) Date: Sun, 15 Jul 2007 00:44:57 -0400 (EDT) Subject: [ns] Possible NOAH bug fix Message-ID: This is a quick fix for (what I think is) a possible bug in NOAH multi-hop extension that I got off the NOAH webpage of Joerg Widmer. I thought this might be of some use to people using this code... =========================================================== Problem: Multi-hop static routes don't seem to work as described on webpage. Solution: In user's TCL script: In the routing command for NOAH agent, [$node set ragent_] routing $num_routes $node1 $hop1 $node2 $hop2 ..... $node1, $hop1, etc. should all be string IP addresses and not node ID's as seems to be on the webpage. In noah.cc: Lines 303-304 should be table_[i].dst = Address::instance().str2addr(argv[i * 2 + 3]); table_[i].hop = Address::instance().str2addr(argv[i * 2 + 4]); ============================================================ Perhaps the author intended $node1,$hop1 to be numerical IP addresses in the TCL script, but that wasn't obvious to me at least. Thanks! Best regards, Arun From mcsist at yahoo.com Sun Jul 15 10:42:48 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Sun, 15 Jul 2007 10:42:48 -0700 (PDT) Subject: [ns] jitter NRL PDF throughput end to end delay In-Reply-To: <20070715121429.6424.qmail@f5mail16.rediffmail.com> Message-ID: <984780.71172.qm@web55013.mail.re4.yahoo.com> Yes, plz see the following awk scripts that calcualate the following 6.1 Performance Metrics Used 6.3.1 Routing Overhead 6.3.2 Normalize Routing Load 6.3.3 Packet Delivery Fraction 6.3.4 Average End to End delay 6.3.5 Jitter 6.3.6 Drop Packets 6.3.7 Drop Bytes 6.3.8 Throughput ============================== jitter.awk ============================ BEGIN { num_recv=0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = "AGT" } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store packets send time if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || event == "s") && pkt_size >= 512) { sendTime[pkt_id] = time } # Store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { recvTime[pkt_id] = time num_recv++ } } END { # Compute average jitter jitter1 = jitter2 = tmp_recv = 0 prev_time = delay = prev_delay = processed = 0 prev_delay = -1 for (i=0; processed= 512) { if (time < startTime) { startTime = time } } # Update total received packets' size and store packets arrival time if (level == "AGT" && event == "r" && pkt_size >= 512) { if (time > stopTime) { stopTime = time } # Rip off the header hdr_size = pkt_size % 512 pkt_size -= hdr_size # Store received packet's size recvdSize += pkt_size } } END { printf("Average Throughput[kbps] = %.2f\t\t StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime) } ============================= parameters.awk ======================== BEGIN { sends=0; recvs=0; routing_packets=0.0; droppedBytes=0; droppedPackets=0; highest_packet_id =0; sum=0; recvnum=0; } { time = $3; packet_id = $41; #============= CALCULATE PACKET DELIVERY FRACTION================= if (( $1 == "s") && ( $35 == "cbr" ) && ( $19=="AGT" )) { sends++; } if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { recvs++; } #============= CALCULATE DELAY ================================ if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } #============= TOTAL DSR OVERHEAD ================================ if (($1 == "s" || $1 == "f") && $19 == "RTR" && $35 =="DSR") routing_packets++; #============= DROPPED DSR PACKETS ================================ if (( $1 == "d" ) && ( $35 == "cbr" ) && ( $3 > 0 )) { droppedBytes=droppedBytes+$37; droppedPackets=droppedPackets+1; } #find the number of packets in the simulation if (packet_id > highest_packet_id) highest_packet_id = packet_id; } END { for ( i in end_time ) { start = start_time[i]; end = end_time[i]; packet_duration = end - start; if ( packet_duration > 0 ) { sum += packet_duration; recvnum++; } } delay=sum/recvnum; NRL = routing_packets/recvs; #normalized routing load = routing load but it differ from routing overhead PDF = (recvs/sends)*100; #packet delivery ratio[fraction] printf("send = %.2f\n",sends); printf("recv = %.2f\n",recvs); printf("routingpkts = %.2f\n",routing_packets++); printf("PDF = %.2f\n",PDF); printf("NRL = %.2f\n",NRL); printf("Average e-e delay(ms)= %.2f\n",delay*1000); printf("No. of dropped data (packets) = %d\n",droppedPackets); printf("No. of dropped data (bytes) = %d\n",droppedBytes); printf("Packet Loss [%]= %.2f \n", (droppedPackets/(highest_packet_id+1))*100); } =========================== end ======================== Mohammed AbuHajar Master of Computer Science manpreet grewal wrote: Note: Forwarded message attached -- Original Message -- From: "manpreet grewal" To: mcsist at yahoo.com Subject: plot offered load vs. throughput in NS2 From: "manpreet grewal" To: mcsist at yahoo.com Subject: plot offered load vs. throughput in NS2 Hello Sir, I read your problem in ns-users list.. I also want to calculate some results.. If you could tell me the formulas which can be used to calculate different parameters like Squared-sum-Routing level, Load variance-routing level, Squared sum-MAC level,Laod variance-MAC level, End-to-end delay, throughput(in kbps), Routing Overhead,offered load. or some references to them, it will be very helpful to me.. If you have calculated any one of the above parameters do help me... May be we can help each other in our projects.. Looking for your positive reply.. Regards, Manpreet Kaur Grewal. --------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. From ritesh_qub at yahoo.com Mon Jul 16 05:55:09 2007 From: ritesh_qub at yahoo.com (ritesh srivastava) Date: Mon, 16 Jul 2007 05:55:09 -0700 (PDT) Subject: [ns] smac and LMS_SETUP Message-ID: <786097.53426.qm@web57010.mail.re3.yahoo.com> Hi all, I am trying to simulate an UMTS network with one HSDPA TCP service using the packet of Eurane. I obtained some strage results and I do not know what these means. In the output trace file I obtained a lot of packets called LMS_SETUP, what this packet means?? Also there are packets with type "smac" an the format of the source and destination is strange. The packet is something like: - 0.44 2 1 smac 40 ------ 0 -1.-1 -1.-1 -1 0 1. Finally, can I measure the throughput of each user computing the received packets? Please someone can help me? Thank you. Ritesh --------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. From daria_dagostino at yahoo.it Mon Jul 16 10:17:37 2007 From: daria_dagostino at yahoo.it (Daria DAgostino) Date: Mon, 16 Jul 2007 19:17:37 +0200 (CEST) Subject: [ns] ns-2.31 Validation Problems Message-ID: <530654.62101.qm@web27011.mail.ukl.yahoo.com> Hi all, for my academic studies I need to use ns simulator.I have installed ns-2.31 on a Linux Fedora Core 6 distribution. I get ns-allinone version 2.31. I compiled it without errors using the install script. During the validation phase (validate command) I get the following errors: 1) ./test-all-cbq Tests: WRR PRR AO TL FORMAL FORMAL_TCP MAX1 MAX2 EXTRA1 EXTRA2 MIN1 MIN3 MIN4 MIN6 TwoAO TwoAO2 TwoAO3 TwoTL TwoF TwoDynamic TwoDynamic1 TwoDynamic1WRR TwoWRR Running test WRR: ../../ns test-suite-cbq.tcl WRR 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Test output differs from reference output Diagnose with: diff test-output-cbq/WRR.test test-output-cbq/WRR Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html". next? 2)./test-all-tcpHighspeed Tests: tcp tcpHighspeed tcp1 tcp1A tcpHighspeed1 tcpHighspeed1A tcpHighspeed2 tcpHighspeed3 tcpHighspeed4 tcpHighspeed5 Running test tcp: ../../ns test-suite-tcpHighspeed.tcl tcp Guide: Sack TCP, bad queue. Test output differs from reference output Diagnose with: diff test-output-tcpHighspeed/tcp.test test-output-tcpHighspeed/tcp Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html". next? Could anyone help me to fix these errors or address me to some usefull resources? Any help will be greatly appreciated Thanks in advance Daria --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail From salouhouni at hotmail.com Mon Jul 16 10:20:48 2007 From: salouhouni at hotmail.com (salouhouni) Date: Mon, 16 Jul 2007 10:20:48 -0700 (PDT) Subject: [ns] Delay in Ad Hoc Message-ID: <11622192.post@talk.nabble.com> Hello everybody.I am creating some mobility models in an ad hoc environment(DSR protocol) so that I can evaluate them.I am now in the position of calculating the e2e delay and trying to validate this with the theory.I have created a simple senario with 2 nodes so that it is easier to validate.I have an awk script that calculates the e2e delay and I want to calculate this with formulas.I think that e2e delay involves also queueing delay,propagation delay etc.Does anybody knows how can I calculate this to see if what I get from the script is correct?Thanks in advance! Christos -- View this message in context: http://www.nabble.com/Delay-in-Ad-Hoc-tf4088816.html#a11622192 Sent from the ns-users mailing list archive at Nabble.com. From sita at ece.gatech.edu Mon Jul 16 19:14:32 2007 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Mon, 16 Jul 2007 22:14:32 -0400 (EDT) Subject: [ns] trace file limitations In-Reply-To: References: <2912.69.136.35.147.1183863436.squirrel@secure2.ece.gatech.edu> Message-ID: <2050.69.136.35.147.1184638472.squirrel@secure2.ece.gatech.edu> Thanks for the reply. After a lot of time, I have figured out that the program runs out of swap space and hence crashes. I have now doubled the swap and started a new run. Anyone out there with experience to confirm the fact that the swap size required is linear to the duration of the simulation? Any help/insight greatly appreciated. Regards, Sita > > In Linux, there is limit for your files. Maybe, you can see 'limits.conf' > file. > > /salva > > > > > > > On Sat, 7 Jul 2007, Sita S. Krishnakumar wrote: > >> >> Hello, >> I am trying to run an extended simulation. I am logging only the routing >> layer information to the trace file. When I run the simulation, the >> process kills itself after a few hours. Every time, I notice that the >> trace file size is approximately 1.4 GB. Is anyone aware of a trace file >> limitation when using ns-2? >> Regards, >> Sita >> >> >> >> >> >> >> > From agrawaldeepansh at yahoo.com Mon Jul 16 19:58:59 2007 From: agrawaldeepansh at yahoo.com (Deepansh Agrawal) Date: Tue, 17 Jul 2007 03:58:59 +0100 (BST) Subject: [ns] Explanation of Zigbee interfaces in the WPAN 802.15.4 implementation In-Reply-To: <200707161205.l6GC5Mne014064@gamma.isi.edu> Message-ID: <439943.48166.qm@web8804.mail.in.yahoo.com> Hello ns-users, I'm trying to implement the cluster tree addressing, beaconless mode of Zigbee in NS-2 (ver 2.31). I have already implemented a dummy network layr protocol following the tutorial at masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf. After that I studied the file wpan/p802_15_sscs.cc, I saw some commented code of the Zigbee implementation that must've been done by Zheng and Lee(who've implemented the MAC and PHY layer of 802.15.4 in ns-2). I am trying to follow their lead, and am developing my zigbee implementation(atleast the SSCS interfacing functions) along the same lines. However, I'm stuck in some places, as the code is not adequately commented and hence I can't make out the purpose/utility of certain functions. Hence, I request that if anyone has the ZBR implementation(developed by Zheng and Lee), then please make it available in public domain (for reference). I will be really grateful. -Deepansh Agrawal --------------------------------- 5, 50, 500, 5000. Store N number of mails in your inbox. Click here. From sita at ece.gatech.edu Tue Jul 17 05:22:45 2007 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Tue, 17 Jul 2007 08:22:45 -0400 (EDT) Subject: [ns] trace file limitations In-Reply-To: <469C6935.8000500@gmx.de> References: <2912.69.136.35.147.1183863436.squirrel@secure2.ece.gatech.edu> <2050.69.136.35.147.1184638472.squirrel@secure2.ece.gatech.edu> <469C6935.8000500@gmx.de> Message-ID: <3704.69.136.35.147.1184674965.squirrel@secure2.ece.gatech.edu> I have run a single complete loop of my program against leak detection software and it came out without any memory leaks. So I assume the large swap consumption is due to memory required by the program (and indirectly ns-2) itself. Regards, Sita > Running out of swap space seems like an indication, that > the implementation of your trace or the running programm has some > serious memory leaks. > > Already tried to make a own "trace" via printouts in the routing > part of your programm? > >> Thanks for the reply. After a lot of time, I have figured out that the >> program runs out of swap space and hence crashes. >> I have now doubled the swap and started a new run. Anyone out there with >> experience to confirm the fact that the swap size required is linear to >> the duration of the simulation? >> Any help/insight greatly appreciated. >> Regards, >> Sita >> >>>>Hello, >>>>I am trying to run an extended simulation. I am logging only the >>>> routing >>>>layer information to the trace file. When I run the simulation, the >>>>process kills itself after a few hours. Every time, I notice that the >>>>trace file size is approximately 1.4 GB. Is anyone aware of a trace >>>> file >>>>limitation when using ns-2? >>>>Regards, >>>>Sita >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >> >> > > From rubenjy at gmail.com Tue Jul 17 07:18:52 2007 From: rubenjy at gmail.com (rubenjy) Date: Tue, 17 Jul 2007 07:18:52 -0700 (PDT) Subject: [ns] how to detect packet recv Message-ID: <11650498.post@talk.nabble.com> Hello, someone can help me? I used multicast sending data to receiver. but receiver havn't receive it. I check trace, it has packet send to receiver. now, how i check in classifier? or other class. somebody can tell me, how to do it. -- View this message in context: http://www.nabble.com/how-to-detect-packet-recv-tf4097238.html#a11650498 Sent from the ns-users mailing list archive at Nabble.com. From tianlangeff at gmail.com Tue Jul 17 11:11:42 2007 From: tianlangeff at gmail.com (Andy_gmail) Date: Wed, 18 Jul 2007 02:11:42 +0800 Subject: [ns] Question about member variable Agent::here_ Message-ID: <000601c7c89d$f09648b0$6801a8c0@andy> Hi all guys I have a slight question about class Agent's member variable "here_"(declared in file Agent.h), it's type is "ns_addr_t". This variable is used in many files, including class Agent and it's child class in a form of "here_.addr_". But I didn't find "here_" is initialized or assigned a value anywhere, so how can a agent gain it's own address? Have I missed some codes when I read the source code? Please give a clue, thanks in advance! Yours, Andy From franciskovitch at gmail.com Tue Jul 17 13:14:48 2007 From: franciskovitch at gmail.com (=?ISO-8859-1?Q?Alexandre_Malh=E3o?=) Date: Tue, 17 Jul 2007 21:14:48 +0100 Subject: [ns] Set Address & Port Message-ID: <469D2338.2090706@gmail.com> From franciskovitch at gmail.com Tue Jul 17 13:19:01 2007 From: franciskovitch at gmail.com (=?ISO-8859-1?Q?Alexandre_Malh=E3o?=) Date: Tue, 17 Jul 2007 21:19:01 +0100 Subject: [ns] Set Address and port Message-ID: <469D2435.4080100@gmail.com> Hi, I have my own application associated to an agent. This application is creating packets, and as I far as I know the packets port is created as a default value. Is there a way to change this port address in tcl? Best regards, Alexandre Malh?o From franciskovitch at gmail.com Tue Jul 17 15:22:53 2007 From: franciskovitch at gmail.com (=?ISO-8859-1?Q?Alexandre_Malh=E3o?=) Date: Tue, 17 Jul 2007 23:22:53 +0100 Subject: [ns] Problem with agent_port_ Message-ID: <469D413D.9050702@gmail.com> Hi again, I had a problem trying to change my agents ports. Does anyone know how can I solve it? Best regards, Alexandre Malh?o #Setup a TCP connection set tcp [new Agent/TCP] $ns attach-agent $n0 $tcp $tcp set agent_port_ 3 set sink [new Agent/TCPSink] $ns attach-agent $n3 $sink $sink set agent_port_ 4 $ns connect $tcp $sink $tcp set fid_ 1 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o87: no target for slot 4 _o87 type: Classifier/Port content dump: classifier _o87 0 offset 0 shift 2147483647 mask 2 slots slot 0: _o86 (Agent/TCPSink) slot 1: _o91 (Agent/Null) ---------- Finished standard no-slot{} default handler ---------- From sunith.velho at kcl.ac.uk Tue Jul 17 18:54:00 2007 From: sunith.velho at kcl.ac.uk (Sunith D Velho) Date: Wed, 18 Jul 2007 02:54:00 +0100 Subject: [ns] IFQ for mobile nodes Message-ID: <20070718025400.ex8vs7rxys8048o4@impmail.kcl.ac.uk> Hi, Does anyone know the reason why when the IFQ of Mobile Node is changed from the default DropTail/PriQueue to SRR, there is absolutely no change in the queue behaviour. Is there anyway to use SFQ or other fair queueing algorithms at the IFQ. Thanks, Sunith Velho -- Sunith D Velho sunith.velho at kcl.ac.uk From vramana at cs.iitm.ernet.in Wed Jul 18 09:55:30 2007 From: vramana at cs.iitm.ernet.in (Venkataramana Badarla) Date: Wed, 18 Jul 2007 16:55:30 +0000 (UTC) Subject: [ns] Shadowing and Rayleigh models In-Reply-To: References: Message-ID: Hi ALL, I am going to use Rayleigh fading model in some of my simulations. However, we do not have this model in NS2. If any one you have solution for this, kindly give me the details. Further, have any one you used Shadowing model instead of Tworayground model. When I ran example file in tcl/ex/wireless-shadowing-test.tcl, it shows a very large string of digits for distCST_ (i.e., carrier sense distance). Is this a problem? If any of you have a working tcl file kindle give me. Thanks in advance for your time. Regards Ramana From mahrenholz at rt-solutions.de Wed Jul 18 04:46:01 2007 From: mahrenholz at rt-solutions.de (Daniel Mahrenholz) Date: Wed, 18 Jul 2007 13:46:01 +0200 Subject: [ns] Shadowing and Rayleigh models In-Reply-To: References: Message-ID: <469DFD79.2080007@rt-solutions.de> Hi, Venkataramana Badarla schrieb: > I am going to use Rayleigh fading model in some of my simulations. However, > we do not have this model in NS2. If any one you have solution for this, > kindly give me the details. > > I think there is an implementation somewhere, but I can't remember where. > Further, have any one you used Shadowing model instead of Tworayground model. > When I ran example file in tcl/ex/wireless-shadowing-test.tcl, it shows a > very large string of digits for distCST_ (i.e., carrier sense distance). Is > this a problem? If any of you have a working tcl file kindle give me. > This is not a problem. distCST_ is the distance where the propagation models stops calculating signal strength (because it will be zero) to reduce the computation time. The shadowing model includes a random variable that affects the transmission power. Even in large distances there is a (very) small chance to receive a packet. To be on the save site, distCST_ is set to a very large value in order to avoid the optimization. You can find the setup I used for my simulations in appendix A of my thesis (http://deposit.ddb.de/cgi-bin/dokserv?idn=980478588). If you have any further questions, don't hesitate to ask me. Daniel. -- Dr.-Ing. Daniel Mahrenholz rt-solutions.de GmbH Oberl?nder Ufer 190a D-50968 K?ln Web: www.rt-solutions.de rt-solutions.de networks you can trust. From rubenjy at gmail.com Wed Jul 18 08:50:52 2007 From: rubenjy at gmail.com (rubenjy) Date: Wed, 18 Jul 2007 08:50:52 -0700 (PDT) Subject: [ns] how to get node id in classifier Message-ID: <11671028.post@talk.nabble.com> hello, i want to get node id in classifier.cc i don't know how to get node id. so i include node.h and write code (follow) Node* tempnode; int ttmp; if (tempnode){ ttmp=tempnode->address(); ttmp=tempnode->nodeid(); } but it had segmentation fault(core dumped). i used gdb to trace it. gdb show program received signal SIGILL, Illegal instruction somebody can tell me how to get node id ? -- View this message in context: http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028 Sent from the ns-users mailing list archive at Nabble.com. From mcsist at yahoo.com Wed Jul 18 10:29:09 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Wed, 18 Jul 2007 10:29:09 -0700 (PDT) Subject: [ns] jitter NRL PDF throughput end to end delay In-Reply-To: <20070718131511.14513.qmail@f5mail16.rediffmail.com> Message-ID: <838330.36180.qm@web55011.mail.re4.yahoo.com> About Normalized Routing Load (NRL) it is It is the number of routing packet required to be send per data packet delivered. NRL = (NumberofRoutingPacket)/(NumberofPacketReceived) so if you want to change the NRL value you should either change one of the parametres used in equation, this is done by changing the number of traffic sources, number of data packet per second or number of mobile nodes in your simulation scenarion about the second query , try to see tracegraph analysier, it may help you , and I will do some searching through the internet for other relevant information. Mohamed AbuHajar manpreet grewal wrote: Hello Sir, Thanks alot for your help. Your scripts have helped me alot and have solved my big problem.. Sir, i had one query... we should try to either increase or decrease normalised routing load for our network?? Also Sir, i want your help. i will be highly thankful to you. Actually i am working on load balancing techniques.. For results, i want to get following: 1. Load balance at Routing layer under this Sqaured sum- Routing level ((kbps)^2) and Load Variance- Routing level ((kbps)^2) are to be calculated 2. Load balance at MAC layer under this Sqaured sum- MAC level ((kbps)^2) and Load Variance- MAC level ((kbps)^2) are to be calculated. Please if you know something regarding this parameters..please help me. Its very urgent for my project. Regards, Manpreet Kaur Grewal. On Sun, 15 Jul 2007 Mohammed Abu Hajar wrote : >Yes, plz see the following awk scripts that calcualate the >following > 6.1 Performance Metrics Used > 6.3.1 Routing Overhead > 6.3.2 Normalize Routing Load > 6.3.3 Packet Delivery Fraction > 6.3.4 Average End to End delay > 6.3.5 Jitter > 6.3.6 Drop Packets > 6.3.7 Drop Bytes > 6.3.8 Throughput > ============================== jitter.awk >============================ > BEGIN { > num_recv=0 > } > { > # Trace line format: normal > if ($2 != "-t") { > event = $1 > time = $2 > if (event == "+" || event == "-") node_id = $3 > if (event == "r" || event == "d") node_id = $4 > flow_id = $8 > pkt_id = $12 > pkt_size = $6 > flow_t = $5 > level = "AGT" > } > # Trace line format: new > if ($2 == "-t") { > event = $1 > time = $3 > node_id = $5 > flow_id = $39 > pkt_id = $41 > pkt_size = $37 > flow_t = $45 > level = $19 > } > # Store packets send time > if (level == "AGT" && sendTime[pkt_id] == 0 && (event == "+" || >event == "s") && pkt_size >= 512) { > sendTime[pkt_id] = time > } > # Store packets arrival time > if (level == "AGT" && event == "r" && pkt_size >= 512) { > recvTime[pkt_id] = time > num_recv++ > } >} > END { > # Compute average jitter > jitter1 = jitter2 = tmp_recv = 0 > prev_time = delay = prev_delay = processed = 0 > prev_delay = -1 > for (i=0; processed> if(recvTime[i] != 0) { > tmp_recv++ > if(prev_time != 0) { > delay = recvTime[i] - prev_time > e2eDelay = recvTime[i] - sendTime[i] > if(delay < 0) delay = 0 > if(prev_delay != -1) { > jitter1 += abs(e2eDelay - prev_e2eDelay) > jitter2 += abs(delay-prev_delay) > } > prev_delay = delay > prev_e2eDelay = e2eDelay > } > prev_time = recvTime[i] > } > processed++ > } >} > END { > > printf("Jitter1 = %.2f\n",jitter1*1000/tmp_recv); > printf("Jitter2 = %.2f\n",jitter2*1000/tmp_recv); >} > function abs(value) { > if (value < 0) value = 0-value > return value >} > > > > > > > > > > > > > ==============================throughput.awk >======================== > BEGIN { > recvdSize = 0 > startTime = 1e6 > stopTime = 0 >} > { > # Trace line format: normal > if ($2 != "-t") { > event = $1 > time = $2 > if (event == "+" || event == "-") node_id = $3 > if (event == "r" || event == "d") node_id = $4 > flow_id = $8 > pkt_id = $12 > pkt_size = $6 > flow_t = $5 > level = "AGT" > } > # Trace line format: new > if ($2 == "-t") { > event = $1 > time = $3 > node_id = $5 > flow_id = $39 > pkt_id = $41 > pkt_size = $37 > flow_t = $45 > level = $19 > } > # Store start time > if (level == "AGT" && (event == "+" || event == "s") && >pkt_size >= 512) { > if (time < startTime) { > startTime = time > } > } > # Update total received packets' size and store packets >arrival time > if (level == "AGT" && event == "r" && pkt_size >= 512) { > if (time > stopTime) { > stopTime = time > } > # Rip off the header > hdr_size = pkt_size % 512 > pkt_size -= hdr_size > # Store received packet's size > recvdSize += pkt_size > } > } > END { > printf("Average Throughput[kbps] = %.2f\t\t >StartTime=%.2f\tStopTime=%.2f\n",(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime) >} > > > > > > > > > > > > > > ============================= parameters.awk >======================== > BEGIN { > sends=0; > recvs=0; > routing_packets=0.0; > droppedBytes=0; > droppedPackets=0; > highest_packet_id =0; > sum=0; > recvnum=0; > } > { > time = $3; > packet_id = $41; > #============= CALCULATE PACKET DELIVERY >FRACTION================= > if (( $1 == "s") && ( $35 == "cbr" ) && ( $19=="AGT" )) { >sends++; } > if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { >recvs++; } > #============= CALCULATE DELAY >================================ > if ( start_time[packet_id] == 0 ) start_time[packet_id] = >time; > if (( $1 == "r") && ( $35 == "cbr" ) && ( $19=="AGT" )) { >end_time[packet_id] = time; } > else { end_time[packet_id] = -1; } > #============= TOTAL DSR OVERHEAD >================================ > if (($1 == "s" || $1 == "f") && $19 == "RTR" && $35 =="DSR") >routing_packets++; > #============= DROPPED DSR PACKETS >================================ > if (( $1 == "d" ) && ( $35 == "cbr" ) && ( $3 > 0 )) > { > droppedBytes=droppedBytes+$37; > droppedPackets=droppedPackets+1; > } > #find the number of packets in the simulation > if (packet_id > highest_packet_id) > highest_packet_id = packet_id; >} > END { > for ( i in end_time ) > { > start = start_time[i]; > end = end_time[i]; > packet_duration = end - start; > if ( packet_duration > 0 ) { sum += packet_duration; >recvnum++; } > } > delay=sum/recvnum; > NRL = routing_packets/recvs; #normalized routing load = >routing load but it differ from routing overhead > PDF = (recvs/sends)*100; #packet delivery >ratio[fraction] > printf("send = %.2f\n",sends); > printf("recv = %.2f\n",recvs); > printf("routingpkts = %.2f\n",routing_packets++); > printf("PDF = %.2f\n",PDF); > printf("NRL = %.2f\n",NRL); > printf("Average e-e delay(ms)= %.2f\n",delay*1000); > printf("No. of dropped data (packets) = >%d\n",droppedPackets); > printf("No. of dropped data (bytes) = >%d\n",droppedBytes); > printf("Packet Loss [%]= %.2f \n", >(droppedPackets/(highest_packet_id+1))*100); >} >=========================== end ======================== >Mohammed AbuHajar > Master of Computer Science > >manpreet grewal wrote: > > > >Note: Forwarded message attached > >-- Original Message -- > > From: "manpreet grewal" >To: mcsist at yahoo.com >Subject: plot offered load vs. throughput in NS2 > From: "manpreet grewal" >To: mcsist at yahoo.com >Subject: plot offered load vs. throughput in NS2 > > >Hello Sir, >I read your problem in ns-users list.. >I also want to calculate some results.. > >If you could tell me the formulas which can be used to >calculate >different parameters like >Squared-sum-Routing level, >Load variance-routing level, >Squared sum-MAC level,Laod >variance-MAC level, >End-to-end delay, >throughput(in kbps), >Routing Overhead,offered load. >or some references to them, it will be very helpful to me.. > >If you have calculated any one of the above parameters do help >me... >May be we can help each other in our projects.. > >Looking for your positive reply.. > >Regards, >Manpreet Kaur Grewal. > > > > >--------------------------------- >Park yourself in front of a world of choices in alternative >vehicles. >Visit the Yahoo! Auto Green Center. --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. From mcsist at yahoo.com Wed Jul 18 10:32:57 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Wed, 18 Jul 2007 10:32:57 -0700 (PDT) Subject: [ns] how to get node id in classifier In-Reply-To: <11671028.post@talk.nabble.com> Message-ID: <472209.59067.qm@web55005.mail.re4.yahoo.com> through net_id.dump() in other words use: printf("net_id = %s",net_id.dump()); rubenjy wrote: hello, i want to get node id in classifier.cc i don't know how to get node id. so i include node.h and write code (follow) Node* tempnode; int ttmp; if (tempnode){ ttmp=tempnode->address(); ttmp=tempnode->nodeid(); } but it had segmentation fault(core dumped). i used gdb to trace it. gdb show program received signal SIGILL, Illegal instruction somebody can tell me how to get node id ? -- View this message in context: http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028 Sent from the ns-users mailing list archive at Nabble.com. --------------------------------- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. From rubenjy at gmail.com Wed Jul 18 11:23:39 2007 From: rubenjy at gmail.com (rubenjy) Date: Wed, 18 Jul 2007 11:23:39 -0700 (PDT) Subject: [ns] how to get node id in classifier In-Reply-To: <472209.59067.qm@web55005.mail.re4.yahoo.com> References: <11671028.post@talk.nabble.com> <472209.59067.qm@web55005.mail.re4.yahoo.com> Message-ID: <11674298.post@talk.nabble.com> when i use the code in classifier.cc printf("net_id = %s",net_id.dump()); it show "net_id" undeclared. Mohammed wrote: > > > through net_id.dump() > > in other words use: printf("net_id = %s",net_id.dump()); > > rubenjy wrote: > > > hello, > i want to get node id in classifier.cc > i don't know how to get node id. > so i include node.h and write code (follow) > > Node* tempnode; > int ttmp; > if (tempnode){ > ttmp=tempnode->address(); > ttmp=tempnode->nodeid(); > } > > but it had segmentation fault(core dumped). > i used gdb to trace it. > gdb show program received signal SIGILL, Illegal instruction > > somebody can tell me how to get node id ? > -- > View this message in context: > http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028 > Sent from the ns-users mailing list archive at Nabble.com. > > > > > --------------------------------- > Building a website is a piece of cake. > Yahoo! Small Business gives you all the tools to get online. > > -- View this message in context: http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11674298 Sent from the ns-users mailing list archive at Nabble.com. From mcsist at yahoo.com Wed Jul 18 17:07:03 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Wed, 18 Jul 2007 17:07:03 -0700 (PDT) Subject: [ns] how to get node id in classifier In-Reply-To: <4af8ebe80707181415y54f34d8ag60da5f7da889bdb@mail.gmail.com> Message-ID: <225498.57085.qm@web55010.mail.re4.yahoo.com> I understand from your query that you want to know the current execution mobile node , is it that write? From the error message you get, means net_id variable not found(not declare) so may be the data structure (procedure) you deal with node identification does not handle , so I advice you to read the structure more times, may the point will be clear. Mohammed AbuHajar rubenjy wrote: thanks for your replay it also show 'net_id' undeclared (first function) error: (Each undeclared identifier is reported only once for each function it appears in. ) 2007/7/19, Mohammed Abu Hajar : > Try this: > > printf("net_id = %d",net_id.getNSAddr_t()); > > Mohammed AbuHajar > > rubenjy wrote: > > > when i use the code in classifier.cc > printf("net_id = %s",net_id.dump()); > > it show "net_id" undeclared. > > > > Mohammed wrote: > > > > > > through net_id.dump() > > > > in other words use: printf("net_id = %s",net_id.dump()); > > > > rubenjy wrote: > > > > > > hello, > > i want to get node id in classifier.cc > > i don't know how to get node id. > > so i include node.h and write code (follow) > > > > Node* tempnode; > > int ttmp; > > if (tempnode){ > > ttmp=tempnode->address(); > > ttmp=tempnode->nodeid(); > > } > > > > but it had segmentation fault(core dumped). > > i used gdb to trace it. > > gdb show program received signal SIGILL, Illegal instruction > > > > somebody can tell me how to get node id ? > > -- > > View this message in context: > > > http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028 > > Sent from the ns-users mailing list archive at Nabble.com. > > > > > > > > > > --------------------------------- > > Building a website is a piece of cake. > > Yahoo! Small Business gives you all the tools to get online. > > > > > > -- > View this message in context: > http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11674298 > Sent from the ns-users mailing list archive at Nabble.com. > > > > > ________________________________ > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel > and lay it on us. > > --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. From apulicat at uci.edu Wed Jul 18 17:32:47 2007 From: apulicat at uci.edu (Anand PG) Date: Wed, 18 Jul 2007 17:32:47 -0700 Subject: [ns] WiMAX in Mesh mode Message-ID: Dear All, Can anyone please point me in the right direction as to where I can get hold of a WiMAX simulation model (in NS or any other) WITH MESH MODE? The ones I have come across so far have a PMP (Point-to-Multipoint) implementation and not the mesh implementation. Kind Regards Anand From rubenjy at gmail.com Thu Jul 19 08:15:24 2007 From: rubenjy at gmail.com (rubenjy) Date: Thu, 19 Jul 2007 08:15:24 -0700 (PDT) Subject: [ns] Question about Node receive packet Message-ID: <11691468.post@talk.nabble.com> when agent send packet, uses target_->recv(Packet) then uses classifier to sent it in classifier::recv(....). in classifier::recv(....) use node->recv(p,h) send out packet but the node->recv(p,h) of Object.cc is Packet::free(p). i don't know how packet send out? and how node receive packet, then send it to agent? -- View this message in context: http://www.nabble.com/Question-about-Node-receive-packet-tf4111826.html#a11691468 Sent from the ns-users mailing list archive at Nabble.com. From kris_4_0s at yahoo.com Thu Jul 19 12:57:46 2007 From: kris_4_0s at yahoo.com (ashwin krishna) Date: Thu, 19 Jul 2007 12:57:46 -0700 (PDT) Subject: [ns] how to calculate paramenerts Message-ID: <776084.19499.qm@web32908.mail.mud.yahoo.com> hi sir i am doing a project the routing protocols DSR DSDV AODV TORA i want to measure the parameters linke throughput, time dealy, shortestpath,packetlost and i want to do on windows does ns2 run on windows does ns2 support ad hoc network and i want code to calculate the above parameters thanking u --------------------------------- Shape Yahoo! in your own image. Join our Network Research Panel today! From manugrewal_7 at rediffmail.com Fri Jul 20 04:43:27 2007 From: manugrewal_7 at rediffmail.com (manpreet grewal) Date: 20 Jul 2007 11:43:27 -0000 Subject: [ns] Calculating parameters (Load Balancing) Message-ID: <20070720114327.17330.qmail@f5mail16.rediffmail.com> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20070720/a8cd6072/attachment.ksh From bourawy at gmail.com Fri Jul 20 04:50:54 2007 From: bourawy at gmail.com (aaa) Date: Fri, 20 Jul 2007 07:50:54 -0400 Subject: [ns] FHCF implementation in NS2 Message-ID: <61da09ca0707200450k2a4c0efua74dc0e9db8813b7@mail.gmail.com> Hi all, please, this is urgent !! I am conducting some experimental work on scheduling in IEEE 802.11e (HCF). I have downloaded the FHCF scheme by Qiang Ni from http://planete.inria.fr/qni/fhcf/ I followed the instructions but it seemed there were some problems regarding compilation. My questions are: 1. Which version of gcc compiler do i have to use ? 2. when I decompressed the fhcf.tgz, there was a folder of ns and its components. Can this ns stand alone for itself ?? OR it needs to be placed some where in the ns-allinone (the one i already have) ?? Your help will be extremely appreciated. Thanks for your help in advance. :-) Best Regards, Ashraf. From salouhouni at hotmail.com Fri Jul 20 11:01:29 2007 From: salouhouni at hotmail.com (salouhouni) Date: Fri, 20 Jul 2007 11:01:29 -0700 (PDT) Subject: [ns] Wireless delay Message-ID: <11713127.post@talk.nabble.com> Hello everybody.I am trying to implement some mobility models but as a first stage I have to validate the results in a 2 node simple simulation.I use on Exponential source and transform to Poisson source so that I can calculate to e2e delay.I use 100Kbps bandwidth and the followings: $voip0 set packetSize_ 100 $voip0 set burst_time_ 0 $voip0 set idle_time_ 0.01 $voip0 set rate_ 8000000 The awk program I have to calculate the e2e delay gives me 112,75ms.In the contrary I try to use the M/D/1 formulas to calculate the waiting time in the buffer and the service delay to add them and have the e2e delay.But using these formulas I have 24ms delay which has a significant difference with the other.Is there another kind of delay in wireless which i don't use so there is this gap?Could anybody help me with this?I use an arrival rate of 80kbps so that I have a load of 80%(idle time=packet size(bits)/arrival rate(bits)).I know that the propagation delay is very small although i did not set it anywhere.I would really appreciate any ideas or help.Thanks in advance! -- View this message in context: http://www.nabble.com/Wireless-delay-tf4118679.html#a11713127 Sent from the ns-users mailing list archive at Nabble.com. From elaheh_alipour_iust at yahoo.com Fri Jul 20 11:02:18 2007 From: elaheh_alipour_iust at yahoo.com (Elahe Alipour) Date: Fri, 20 Jul 2007 11:02:18 -0700 (PDT) Subject: [ns] installing ns 2.28 Message-ID: <278383.27987.qm@web58707.mail.re1.yahoo.com> Hello I have a problem on installing ns allinone 2.28. after changing the configuration files : tcl: file tcl8.x.x/unix/tcl.m4. tk: file tk8.x.x/unix/tcl.m4. otcl: file otcl-1.x/configure.in. "system=MP-RAS-`awk ' { print $3 } '/etc/.relid`" , when I run autoconf I recieve the following error: configure.in:220 error: do not use LIBOBJS directly, use AC_LIBOBJS Someone know what should I do? Regards, Elahe --------------------------------- Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. From tjj20022000 at yahoo.com.cn Fri Jul 20 19:03:26 2007 From: tjj20022000 at yahoo.com.cn (jenny cheb) Date: Sat, 21 Jul 2007 10:03:26 +0800 (CST) Subject: [ns] the problem when i add 'noah' module to ns2 Message-ID: <28310.70989.qm@web15804.mail.cnb.yahoo.com> hello, i want to add a new moduel 'noah' to ns2.28,and after i finished all the steps,i run 'make' under the ns2.28 folder,but it results: $make making in directory ucb make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/ucb' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/ucb' make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/dec' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/dec' make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/epa' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/epa' make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/nlanr' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/nlanr' i have do the change to the makefile.in and add 'noah.{cc,h}' 'noah.tcl',and also make change to the ns-lib.tcl , what is the problem,please help me!!!!!!! --------------------------------- ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ From tjj20022000 at yahoo.com.cn Fri Jul 20 19:18:26 2007 From: tjj20022000 at yahoo.com.cn (jenny cheb) Date: Sat, 21 Jul 2007 10:18:26 +0800 (CST) Subject: [ns] the problem when i add 'noah'moduel to ns Message-ID: <128301.49632.qm@web15810.mail.cnb.yahoo.com> hello, i want to add a new moduel 'noah' to ns2.28,and after i finished all the steps,i run 'make' under the ns2.28 folder,but it results: $make making in directory ucb make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/ucb' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/ucb' make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/dec' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/dec' make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/epa' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/epa' make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/nlanr' make[1]:'Nothing to be done for 'all'. make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- utils/webtrace-conv/nlanr' i have do the change to the makefile.in and add 'noah.{cc,h}' 'noah.tcl',and also make change to the ns-lib.tcl , what is the problem,please help me!!!!!!! --------------------------------- ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ From bagnato82 at libero.it Sat Jul 21 01:33:11 2007 From: bagnato82 at libero.it (diablo82) Date: Sat, 21 Jul 2007 01:33:11 -0700 (PDT) Subject: [ns] the problem when i add 'noah' module to ns2 In-Reply-To: <28310.70989.qm@web15804.mail.cnb.yahoo.com> References: <28310.70989.qm@web15804.mail.cnb.yahoo.com> Message-ID: <11720488.post@talk.nabble.com> Hi, try "./configure" and so "make depend;make" Must change also ns-mobiles.tcl!!! jenny cheb wrote: > > > > hello, > > i want to add a new moduel 'noah' to ns2.28,and after i finished all > the steps,i run 'make' under the ns2.28 folder,but it results: > > $make > making in directory ucb > make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/ucb' > make[1]:'Nothing to be done for 'all'. > make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/ucb' > make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/dec' > make[1]:'Nothing to be done for 'all'. > make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/dec' > make[1]:Entering directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/epa' > make[1]:'Nothing to be done for 'all'. > make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/epa' > make[1]:Entering directory > 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/nlanr' > make[1]:'Nothing to be done for 'all'. > make[1]leaving directory 'home/sophia/ns-allinone-2.29/ns-2.29/indep- > utils/webtrace-conv/nlanr' > > i have do the change to the makefile.in and add 'noah.{cc,h}' > 'noah.tcl',and also make change to the ns-lib.tcl , > what is the problem,please help me!!!!!!! > > --------------------------------- > ????????3.5G???20M??? > -- View this message in context: http://www.nabble.com/the-problem-when-i-add-%27noah%27-module-to-ns2-tf4120528.html#a11720488 Sent from the ns-users mailing list archive at Nabble.com. From bagnato82 at libero.it Sat Jul 21 02:54:47 2007 From: bagnato82 at libero.it (diablo82) Date: Sat, 21 Jul 2007 02:54:47 -0700 (PDT) Subject: [ns] How to get pointer MyMac from tcl? Message-ID: <11714387.post@talk.nabble.com> I need to create the direct communication beetwen MyAgent and MyMac. I use TclObject::lookup(argv[2]) in command of myAgent to access at pointer of Mac. But $opt(MyMac) from Tcl is ? string and not a pointer. How to get pointer create in TclClass from Tcl Script? Thank Giuseppe -- View this message in context: http://www.nabble.com/How-to-get-pointer-MyMac-from-tcl--tf4119057.html#a11714387 Sent from the ns-users mailing list archive at Nabble.com. From rubenjy at gmail.com Sat Jul 21 07:08:31 2007 From: rubenjy at gmail.com (rubenjy) Date: Sat, 21 Jul 2007 07:08:31 -0700 (PDT) Subject: [ns] how to get node id in classifier In-Reply-To: <225498.57085.qm@web55010.mail.re4.yahoo.com> References: <11671028.post@talk.nabble.com> <225498.57085.qm@web55010.mail.re4.yahoo.com> Message-ID: <11722607.post@talk.nabble.com> It is a normal node, not mobile node. i know classifier is one part of node. but classifier can't get the node id. if i include "node.h", it will show some error. I think classifier is one part of node, so can't include it. but how know, the processing classifier is in which node? this is my problem. Mohammed wrote: > > > I understand from your query that you want to know the current execution > mobile node , is it that write? > > From the error message you get, means net_id variable not found(not > declare) so may be the data structure (procedure) you deal with node > identification does not handle , so I advice you to read the structure > more times, may the point will be clear. > > > > Mohammed AbuHajar > > rubenjy wrote: > thanks for your replay > > it also show 'net_id' undeclared (first function) > error: (Each undeclared identifier is reported only once for each > function it appears in. ) > > 2007/7/19, Mohammed Abu Hajar : >> Try this: >> >> printf("net_id = %d",net_id.getNSAddr_t()); >> >> Mohammed AbuHajar >> >> rubenjy wrote: >> >> >> when i use the code in classifier.cc >> printf("net_id = %s",net_id.dump()); >> >> it show "net_id" undeclared. >> >> >> >> Mohammed wrote: >> > >> > >> > through net_id.dump() >> > >> > in other words use: printf("net_id = %s",net_id.dump()); >> > >> > rubenjy wrote: >> > >> > >> > hello, >> > i want to get node id in classifier.cc >> > i don't know how to get node id. >> > so i include node.h and write code (follow) >> > >> > Node* tempnode; >> > int ttmp; >> > if (tempnode){ >> > ttmp=tempnode->address(); >> > ttmp=tempnode->nodeid(); >> > } >> > >> > but it had segmentation fault(core dumped). >> > i used gdb to trace it. >> > gdb show program received signal SIGILL, Illegal instruction >> > >> > somebody can tell me how to get node id ? >> > -- >> > View this message in context: >> > >> http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11671028 >> > Sent from the ns-users mailing list archive at Nabble.com. >> > >> > > >> >> -- >> View this message in context: >> http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11674298 >> Sent from the ns-users mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/how-to-get-node-id-in-classifier-tf4103981.html#a11722607 Sent from the ns-users mailing list archive at Nabble.com. From rubenjy at gmail.com Sat Jul 21 07:15:27 2007 From: rubenjy at gmail.com (rubenjy) Date: Sat, 21 Jul 2007 07:15:27 -0700 (PDT) Subject: [ns] Source Specific Multicast problem Message-ID: <11722633.post@talk.nabble.com> I used the SSM extension model http://eden.dei.uc.pt/~tandre/ssm_extension/index.htm I found this have one problem. the receiver received multicast data, but the data willn't in agent's recv function (like LossMonitor::recv(...)) but it also have not any error. is somebody knew, where is the problem. -- View this message in context: http://www.nabble.com/Source-Specific-Multicast-problem-tf4121956.html#a11722633 Sent from the ns-users mailing list archive at Nabble.com. From robin2046 at 163.com Sat Jul 21 09:40:01 2007 From: robin2046 at 163.com (Huang Wei) Date: Sun, 22 Jul 2007 00:40:01 +0800 Subject: [ns] Why NAM doesn't dispaly the packet dropped because of collision? In-Reply-To: References: Message-ID: <000001c7cbb5$c8ce2260$67c9403b@bupthuangwei> Hi all, I've been doing wireless simulations these days. I want to show NAM to my colleagues to help them to better know about how RTS/CTS reduce the chance of collisions. But I found NAM doesn't display the packet dropped because of collisions. Why? Here is a line of the trace file and the NAM trace file for a packet dropped because of collision: Trace File Info: d -t 2.267517062 -Hs 2 -Hd -2 -Ni 2 -Nx 700.00 -Ny 200.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw COL -Ma 5fe -Md 2 -Ms 0 -Mt 0 NAM Trace File Info: d -t 2.267517062 -s 2 -d -1 -p RTS -e 44 -c 2 -a 0 -i 0 -k MAC Why doesn't NAM display this dropping action? //////////////////////////////////////////////////////////////////////////// And to be specific, following is my TCL scripts. set opt(RTS) 1 set opt(Time) 20 # ====================================================================== # Default Script valions # ====================================================================== set val(chan) Channel/WirelessChannel ;#Channel Type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# number of mobilenodes set val(rp) DSDV ;# routing protocol #set val(rp) DSR ;# routing protocol set val(x) 1000 set val(y) 500 set val(stoptime) $opt(Time) # ====================================================================== # Initialize Global Variables set ns_ [new Simulator] $ns_ use-newtrace if {!$opt(RTS)} { #set RTSThreshold_ to 3000(Larger than any packet size of up level), so RTS wolud never be sent. Mac/802_11 set RTSThreshold_ 3000 ;# bytes puts "Mac/802_11 RTSThreshold_: [Mac/802_11 set RTSThreshold_], RTS/CTS is turned off" set tracefd [open col-hidden.tr w] set namtrace [open col-hidden.nam w] } else { set tracefd [open rts-hidden.tr w] set namtrace [open rts-hidden.nam w] } $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God create-god $val(nn) # 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)] $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 ON \ -routerTrace ON \ -macTrace ON \ -movementTrace OFF \ -channel $chan_1_ set node_(0) [$ns_ node] set node_(1) [$ns_ node] set node_(2) [$ns_ node] $node_(0) random-motion 0 $node_(1) random-motion 0 $node_(2) random-motion 0 # # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes # $node_(0) set X_ 500.0 $node_(0) set Y_ 200.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 300.0 $node_(1) set Y_ 200.0 $node_(1) set Z_ 0.0 $node_(1) label hidden_to_node2 $node_(2) set X_ 700.0 $node_(2) set Y_ 200.0 $node_(2) set Z_ 0.0 $node_(2) label hidden_to_node1 for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 30 } # Setup traffic flow between nodes 0 and 1 # TCP connections between node_(0) and node_(1) set tcp1 [new Agent/TCP] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns_ attach-agent $node_(1) $tcp1 $ns_ attach-agent $node_(0) $sink1 $ns_ connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns_ at 0.1 "$ftp1 start" # Setup traffic flow between nodes 0 and 2 # udp connections between node_(0) and node_(2) #set udp [new Agent/UDP] #set null [new Agent/Null] #$ns_ attach-agent $node_(2) $udp #$ns_ attach-agent $node_(0) $null #$ns_ connect $udp $null #set cbr [new Application/Traffic/CBR] #$cbr attach-agent $udp #$ns_ at 0.1 "$cbr start" set tcp2 [new Agent/TCP] $tcp2 set class_ 2 set sink2 [new Agent/TCPSink] $ns_ attach-agent $node_(2) $tcp2 $ns_ attach-agent $node_(0) $sink2 $ns_ connect $tcp2 $sink2 set ftp2 [new Application/FTP] $ftp2 attach-agent $tcp2 $ns_ at 0.1 "$ftp2 start" # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $val(stoptime) "$node_($i) reset"; } $ns_ at $val(stoptime) "puts \"FINISHED! NS EXITING...\" ; $ns_ halt" $ns_ at $val(stoptime) "stop" proc stop {} { global ns_ tracefd namtrace $ns_ flush-trace close $tracefd close $namtrace } puts "Starting Simulation..." $ns_ run From elaheh_alipour_iust at yahoo.com Sat Jul 21 12:44:37 2007 From: elaheh_alipour_iust at yahoo.com (Elahe Alipour) Date: Sat, 21 Jul 2007 12:44:37 -0700 (PDT) Subject: [ns] ns 2.2x installing problem Message-ID: <265406.6992.qm@web58715.mail.re1.yahoo.com> Hello everyone I installed ns 2.31 without any problem on centos5. but now I have a problem on installing ns allinone 2.28. At first i received this error: *"checking system version (for dynamic loading)... ./configure: line 7624: syntax error near unexpected token ')' ./configure: line 7624: ' OSF*)' 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 problem." and I found a solution in Internet: "The problem lies in how bash 3.1.x and 4.x.x parse the configure file. This will simply pass through bash 3.0.x and lower versions. So in order to make things work changed the following lines tcl: file tcl8.x.x/unix/tcl.m4. tk: file tk8.x.x/unix/tcl.m4. otcl: file otcl-1.x/configure.in. to: system=MP-RAS-`awk ' { print $3 } '/etc/.relid` Now after changing the configuration files you will have to delete older configure file and any cache if it exists in the respective folders. After that do not forget to run autoconf from command line in the respective folders to generate a fresh configure file." i change the three above files then i run autoconf (without deleting any configuration file!) root at localhost unix]# autoconf and i saw this error: "configure.in:199: error: do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS' If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation." and now i don't now how to solve this. can anybody help me? regards, elaheh_alipour_iust at yahoo.com --------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. From bourawy at gmail.com Sat Jul 21 22:43:18 2007 From: bourawy at gmail.com (aaa) Date: Sun, 22 Jul 2007 01:43:18 -0400 Subject: [ns] How to Install FHCF on NS-2 Message-ID: <61da09ca0707212243u5f4b3f45r7eebbe21c9dccae@mail.gmail.com> Hi ns-users, Finally, I managed to resolve the problems with the installation of the fhcf scheme.. If anyone has a problem installing it, i will be more than happy to help :-) Anyways, i will post the right steps for the installation as soon as i have some free time... Best regards, Ashraf Bourawy. From manugrewal_7 at rediffmail.com Sun Jul 22 11:18:32 2007 From: manugrewal_7 at rediffmail.com (manpreet grewal) Date: 22 Jul 2007 18:18:32 -0000 Subject: [ns] Calculating Parameters.. Message-ID: <20070722181832.11849.qmail@f5mail19.rediffmail.com> ?Hello , I am working on load balancing techniques.. For results, i want to get following: 1. Load balance at Routing layer under this Sqaured sum- Routing level ((kbps)^2) and Load Variance- Routing level ((kbps)^2) are to be calculated 2. Load balance at MAC layer under this Sqaured sum- MAC level ((kbps)^2) and Load Variance- MAC level ((kbps)^2) are to be calculated. Does anyone know how to calculate this or have any scripts regarding this..please forward me.. please help me regarding this. Its very urgent for my project. Thanks. Regards, Manpreet Kaur Grewal. From sara.nosti at uni-rostock.de Mon Jul 23 06:56:26 2007 From: sara.nosti at uni-rostock.de (Sara Gomez Nosti) Date: Mon, 23 Jul 2007 15:56:26 +0200 Subject: [ns] implementation code for MANETconf Message-ID: Does anybody know how could I get the implementation code in ns-2 for the paper MANETconf from Sanket Nesargi and Ravi Prakash? I am working on some project that uses this protocol and it would be really helpful to have it. It is really important to me because I don't have the time to implement it by myself. Thank you, Sara From manugrewal_7 at rediffmail.com Mon Jul 23 10:40:25 2007 From: manugrewal_7 at rediffmail.com (manpreet grewal) Date: 23 Jul 2007 17:40:25 -0000 Subject: [ns] Calculating Load balancing parameters Message-ID: <20070723174025.5501.qmail@f5mail16.rediffmail.com> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20070723/286260a4/attachment.ksh From dinapalla at gmail.com Mon Jul 23 10:48:14 2007 From: dinapalla at gmail.com (Kwnstantina Palla) Date: Mon, 23 Jul 2007 20:48:14 +0300 Subject: [ns] serialization in ns-2 Message-ID: Hello ! i was searching through the mailing-list in order to find something similar but i didn't. So i would appreciate it if anyone gave me an answer. Is it possible to serialize an object (class instance) in order to send it through the network? (wireless). Has anyone tried something like that? I googled a lot, but it seems that serialization is pretty tough. I found that some libraries might be needed in order to extend c++ with such feature. (I found libraries like "boost" libraries). However i am afraid that then i would have to tackle with compatibility issues. I would really appreciate any help! From manugrewal_7 at rediffmail.com Mon Jul 23 10:52:33 2007 From: manugrewal_7 at rediffmail.com (manpreet grewal) Date: 23 Jul 2007 17:52:33 -0000 Subject: [ns] Calculating Load balancing parameters Message-ID: <20070723175233.508.qmail@f5mail10.rediffmail.com> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20070723/af8b9419/attachment.ksh From dhuang at uvic.ca Mon Jul 23 12:38:56 2007 From: dhuang at uvic.ca (D Huang) Date: Mon, 23 Jul 2007 12:38:56 -0700 Subject: [ns] broadcast schemes working on ns2.30 Message-ID: Hi For evaluation purpose, I find some broadcast schemes, but they are supposed to work on old version of ns2, not on 2.30. Do you know where I can find such schemes working for ns2.30? Thanks. -- D.Huang From Y060099 at ntu.edu.sg Mon Jul 23 18:45:25 2007 From: Y060099 at ntu.edu.sg (#GUO TIANTIAN#) Date: Tue, 24 Jul 2007 09:45:25 +0800 Subject: [ns] multirate and multichannel Message-ID: <8E5A6B31F397A74CB3810ED7C03C540B1F38F3@MAIL24.student.main.ntu.edu.sg> ________________________________ Hi everyone, Now I am concerned about a problem using multirate and multichannel in NS2. Just distributed several different transmission rates to different nodes in the network, moreover, using the multichannel to transmit. I used script below, but it did not take action. set mac0 $wl_node_(0) set mac1 $wl_node_(1) set mac2 $wl_node_(2) $mac0 set dataRate_ 11Mb $mac0 set basicRate_ 1Mb $mac1 set dataRate_ 5.5Mb $mac1 set basicRate_ 1Mb $mac2 set dataRate_ 2Mb $mac2 set basicRate_ 1Mb Is there any solutions? Thank you very much. TT From kongxingye1983 at 163.com Mon Jul 23 22:17:47 2007 From: kongxingye1983 at 163.com (wangyao) Date: Tue, 24 Jul 2007 13:17:47 +0800 (CST) Subject: [ns] How to simulate the metrics as WCETT, ETX, MIC and iAWARE? Message-ID: <32295407.146021185254267115.JavaMail.coremail@bj163app65.163.com> That's something I want to know. Do these METRICs have existent code or have some methods to do this work? From ecarlsson at google.com Tue Jul 24 00:08:24 2007 From: ecarlsson at google.com (Emil Carlsson) Date: Tue, 24 Jul 2007 09:08:24 +0200 Subject: [ns] Trace problem Message-ID: Hello dear friends. This question might be stupid since I'm new to the NS world. I'm using JNS to create a network protocol and JNS gives me a trace file with a lot of information. The simulator seems to be working, but when I'm trying to view the session in Javis almost nothing is shown. Can someone please try this trace in and say what's wrong? On my computer only two transmissions are shown. Thanks Emil (ecarlsson at google.com) # Trace file generated by JNS Version 1.7. n -t * -a 0 -s 0 -S UP -v circle -c red n -t * -a 1 -s 1 -S UP -v circle -c green l -t * -s 0 -d 1 -S UP -r 500000 -D 0.0080 n -t * -a 2 -s 2 -S UP -v circle -c green l -t * -s 1 -d 2 -S UP -r 500000 -D 0.0080 l -t * -s 0 -d 2 -S UP -r 500000 -D 0.0080 + -t 0.312001 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.313001 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 h -t 0.313001 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.32152899999999995 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.32152899999999995 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 r -t 0.32152899999999995 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.328001 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 - -t 0.329001 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 h -t 0.329001 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 + -t 0.337721 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 + -t 0.525545 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.525545 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.525529 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.337721 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 r -t 0.337721 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 - -t 0.525545 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 r -t 0.525545 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.525545 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 r -t 0.525545 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.525529 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 r -t 0.525529 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.516001 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.517001 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 h -t 0.517001 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.516001 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.517001 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 h -t 0.517001 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.516001 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.517001 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 h -t 0.517001 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.516001 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 - -t 0.517001 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 h -t 0.517001 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 + -t 0.525721 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 + -t 0.540545 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.540545 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 + -t 0.540529 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 - -t 0.525721 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 r -t 0.525721 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 - -t 0.540545 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 r -t 0.540545 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.540545 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 r -t 0.540545 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 - -t 0.540529 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 r -t 0.540529 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 + -t 0.540721 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 + -t 0.728545 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.728545 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.728545 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.540721 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 r -t 0.540721 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 - -t 0.728545 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.728545 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.728545 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.728545 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.8215450000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 - -t 0.728545 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.8215450000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 r -t 0.8215450000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 + -t 0.8120010000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 - -t 0.8130010000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 h -t 0.8130010000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 + -t 0.8120010000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.8130010000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 h -t 0.8130010000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.8215450000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.915545 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 - -t 0.8215450000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 r -t 0.8215450000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.915545 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 r -t 0.915545 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 + -t 0.9060010000000001 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 - -t 0.9070010000000001 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 h -t 0.9070010000000001 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 + -t 0.9060010000000001 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.9070010000000001 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 h -t 0.9070010000000001 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.915545 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.9315450000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.915545 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 r -t 0.915545 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.9315450000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 r -t 0.9315450000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.9220010000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.9230010000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 h -t 0.9230010000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.9220010000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 - -t 0.9230010000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 h -t 0.9230010000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 + -t 0.9315450000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 + -t 1.025545 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 - -t 0.9315450000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 r -t 0.9315450000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 - -t 1.025545 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 r -t 1.025545 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 + -t 1.016001 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 - -t 1.0170009999999998 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 h -t 1.0170009999999998 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 + -t 1.016001 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 - -t 1.0170009999999998 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 h -t 1.0170009999999998 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 + -t 1.025545 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 + -t 1.118545 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 - -t 1.025545 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 r -t 1.025545 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 - -t 1.118545 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 r -t 1.118545 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 + -t 1.109001 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 - -t 1.1100009999999998 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 h -t 1.1100009999999998 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 From manugrewal_7 at rediffmail.com Tue Jul 24 10:01:41 2007 From: manugrewal_7 at rediffmail.com (manpreet grewal) Date: 24 Jul 2007 17:01:41 -0000 Subject: [ns] Calculating parameters Message-ID: <20070724170141.26604.qmail@f5mail16.rediffmail.com> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20070724/33a7518c/attachment.ksh From tar200iq at yahoo.com Tue Jul 24 11:41:31 2007 From: tar200iq at yahoo.com (Tariq Alwada`n) Date: Tue, 24 Jul 2007 11:41:31 -0700 (PDT) Subject: [ns] P2P codes Message-ID: <338513.30009.qm@web56404.mail.re3.yahoo.com> Hi, I am working on a Peer-to-Peer simulation in NS2. If any one have any kind of basic code by which i can create and process data packet at the application layer, please let me know. your help is very appreciated Thank you Tariq ____________________________________________________________________________________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ From fdouglas at dcc.ufam.edu.br Tue Jul 24 14:09:59 2007 From: fdouglas at dcc.ufam.edu.br (fdouglas) Date: Tue, 24 Jul 2007 17:09:59 -0400 Subject: [ns] problem configuring ns-2. Message-ID: <2ba50e6099db945fed0a69b65e639daa@dcc.ufam.edu.br> Hello, I am trying to configure the NS-2.26 in a AMD64 machine with Ubuntu. When I type ./configure I got the following message: ... checking for libtcldbg... no checking dmalloc... not requested with --with-dmalloc checking for perl... /usr/lib not version 5.002 checking for perl5... /usr/lib not version 5.002 perl version 5.002 not found configure: warning: Perl5 not found; test scripts will not run succesfully. checking for ANSI C header files... (cached) yes ... I have Perl version 5.8.8 installed. I tryied the same ./configure in another machine, a notebook with ubuntu too and it worked fine. Someone know this bug??? Why it does not recognize my Perl installation??? Regards, Frank Douglas Federal University of Amazonas Manaus - Brasil From g.shafiullah at cqu.edu.au Tue Jul 24 17:20:31 2007 From: g.shafiullah at cqu.edu.au (G Shafiullah) Date: Wed, 25 Jul 2007 10:20:31 +1000 Subject: [ns] Ns-users Digest, Vol 43, Issue 23 In-Reply-To: References: Message-ID: <1AE19A80523D5F40BE0044A1447A53FF03F2B589@UNIMAIL.staff.ad.cqu.edu.au> Hi Users, I am trying to investigate TDMA MAC protocol in NS2. Can you please give me an idea how to start with TDMA in NS-2 or if any one have any kind of basic code by which i can start my work, please let me know. Your cooperation is highly appreciated Thanks GM -------------------------------------------- G M Shafiullah Master of Engineering (Research) Student Centre for Railway Engineering (CRE) Faculty of Sciences, Engineering and Health Central Queensland University Rockhampton, Qld 4702 AUSTRALIA Phone: 61 7 4930 9313 Mobile:61 4 3208 5800 Email: g.shafiullah at cqu.edu.au, gmsbd at yahoo.com, gms at iwmbd.org -----Original Message----- From: ns-users-request at ISI.EDU [mailto:ns-users-request at ISI.EDU] Sent: Wednesday, July 25, 2007 10:00 AM To: ns-users at ISI.EDU Subject: Ns-users Digest, Vol 43, Issue 23 Send Ns-users mailing list submissions to ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-request at isi.edu You can reach the person managing the list at ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. multirate and multichannel (#GUO TIANTIAN#) 2. How to simulate the metrics as WCETT, ETX, MIC and iAWARE? (wangyao) 3. Trace problem (Emil Carlsson) 4. Calculating parameters (manpreet grewal) 5. P2P codes (Tariq Alwada`n) 6. problem configuring ns-2. (fdouglas) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Jul 2007 09:45:25 +0800 From: "#GUO TIANTIAN#" Subject: [ns] multirate and multichannel To: Message-ID: <8E5A6B31F397A74CB3810ED7C03C540B1F38F3 at MAIL24.student.main.ntu.edu.sg> Content-Type: text/plain; charset="us-ascii" ________________________________ Hi everyone, Now I am concerned about a problem using multirate and multichannel in NS2. Just distributed several different transmission rates to different nodes in the network, moreover, using the multichannel to transmit. I used script below, but it did not take action. set mac0 $wl_node_(0) set mac1 $wl_node_(1) set mac2 $wl_node_(2) $mac0 set dataRate_ 11Mb $mac0 set basicRate_ 1Mb $mac1 set dataRate_ 5.5Mb $mac1 set basicRate_ 1Mb $mac2 set dataRate_ 2Mb $mac2 set basicRate_ 1Mb Is there any solutions? Thank you very much. TT ------------------------------ Message: 2 Date: Tue, 24 Jul 2007 13:17:47 +0800 (CST) From: wangyao Subject: [ns] How to simulate the metrics as WCETT, ETX, MIC and iAWARE? To: "NS group" Message-ID: <32295407.146021185254267115.JavaMail.coremail at bj163app65.163.com> Content-Type: text/plain; charset=gbk That's something I want to know. Do these METRICs have existent code or have some methods to do this work? ------------------------------ Message: 3 Date: Tue, 24 Jul 2007 09:08:24 +0200 From: "Emil Carlsson" Subject: [ns] Trace problem To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello dear friends. This question might be stupid since I'm new to the NS world. I'm using JNS to create a network protocol and JNS gives me a trace file with a lot of information. The simulator seems to be working, but when I'm trying to view the session in Javis almost nothing is shown. Can someone please try this trace in and say what's wrong? On my computer only two transmissions are shown. Thanks Emil (ecarlsson at google.com) # Trace file generated by JNS Version 1.7. n -t * -a 0 -s 0 -S UP -v circle -c red n -t * -a 1 -s 1 -S UP -v circle -c green l -t * -s 0 -d 1 -S UP -r 500000 -D 0.0080 n -t * -a 2 -s 2 -S UP -v circle -c green l -t * -s 1 -d 2 -S UP -r 500000 -D 0.0080 l -t * -s 0 -d 2 -S UP -r 500000 -D 0.0080 + -t 0.312001 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.313001 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 h -t 0.313001 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.32152899999999995 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.32152899999999995 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 r -t 0.32152899999999995 -s 1 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.328001 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 - -t 0.329001 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 h -t 0.329001 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 + -t 0.337721 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 -t 0.525545 -s 1 -d + 0 -i 1 -e 34 -p udp -a 0 -c 0 -t 0.525545 -s 0 -d 1 -i 1 -e 34 -p udp + -a 0 -c 0 -t 0.525529 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.337721 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 r -t 0.337721 -s 0 -d 1 -i 0 -e 45 -p udp -a 0 -c 0 - -t 0.525545 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 r -t 0.525545 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.525545 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 r -t 0.525545 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.525529 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 r -t 0.525529 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.516001 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 - -t 0.517001 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 h -t 0.517001 -s 2 -d 0 -i 0 -e 33 -p udp -a 0 -c 0 + -t 0.516001 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.517001 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 h -t 0.517001 -s 1 -d 0 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.516001 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.517001 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 h -t 0.517001 -s 0 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.516001 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 - -t 0.517001 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 h -t 0.517001 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 + -t 0.525721 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 -t 0.540545 -s 2 -d + 1 -i 1 -e 34 -p udp -a 0 -c 0 -t 0.540545 -s 1 -d 2 -i 2 -e 34 -p udp + -a 0 -c 0 -t 0.540529 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 - -t 0.525721 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 r -t 0.525721 -s 0 -d 2 -i 2 -e 45 -p udp -a 0 -c 0 - -t 0.540545 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 r -t 0.540545 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.540545 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 r -t 0.540545 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 - -t 0.540529 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 r -t 0.540529 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 2 -d 1 -i 2 -e 33 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 2 -d 1 -i 1 -e 34 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 1 -d 2 -i 2 -e 34 -p udp -a 0 -c 0 + -t 0.5310010000000001 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 - -t 0.5320010000000001 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 h -t 0.5320010000000001 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 + -t 0.540721 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 -t 0.728545 -s 1 -d + 0 -i 4 -e 34 -p udp -a 0 -c 0 -t 0.728545 -s 0 -d 1 -i 3 -e 34 -p udp + -a 0 -c 0 -t 0.728545 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.540721 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 r -t 0.540721 -s 1 -d 2 -i 3 -e 45 -p udp -a 0 -c 0 - -t 0.728545 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.728545 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.728545 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 1 -d 0 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 0 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 2 -d 1 -i 3 -e 34 -p udp -a 0 -c 0 + -t 0.719001 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.720001 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 h -t 0.720001 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.728545 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 -t + 0.8215450000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 - -t 0.728545 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 r -t 0.728545 -s 1 -d 2 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.8215450000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 r -t 0.8215450000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 + -t 0.8120010000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 - -t 0.8130010000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 h -t 0.8130010000000001 -s 1 -d 2 -i 6 -e 34 -p udp -a 0 -c 0 + -t 0.8120010000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.8130010000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 h -t 0.8130010000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.8215450000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 -t + 0.915545 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 - -t 0.8215450000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 r -t 0.8215450000000001 -s 2 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.915545 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 r -t 0.915545 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 + -t 0.9060010000000001 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 - -t 0.9070010000000001 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 h -t 0.9070010000000001 -s 1 -d 0 -i 7 -e 34 -p udp -a 0 -c 0 + -t 0.9060010000000001 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.9070010000000001 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 h -t 0.9070010000000001 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 + -t 0.915545 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 -t + 0.9315450000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.915545 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 r -t 0.915545 -s 0 -d 1 -i 4 -e 34 -p udp -a 0 -c 0 - -t 0.9315450000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 r -t 0.9315450000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.9220010000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 - -t 0.9230010000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 h -t 0.9230010000000001 -s 2 -d 1 -i 5 -e 34 -p udp -a 0 -c 0 + -t 0.9220010000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 - -t 0.9230010000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 h -t 0.9230010000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 + -t 0.9315450000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 -t + 1.025545 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 - -t 0.9315450000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 r -t 0.9315450000000001 -s 1 -d 2 -i 8 -e 34 -p udp -a 0 -c 0 - -t 1.025545 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 r -t 1.025545 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 + -t 1.016001 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 - -t 1.0170009999999998 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 h -t 1.0170009999999998 -s 1 -d 2 -i 9 -e 34 -p udp -a 0 -c 0 + -t 1.016001 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 - -t 1.0170009999999998 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 h -t 1.0170009999999998 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 + -t 1.025545 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 -t 1.118545 -s 1 -d + 0 -i 10 -e 34 -p udp -a 0 -c 0 - -t 1.025545 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 r -t 1.025545 -s 2 -d 1 -i 6 -e 34 -p udp -a 0 -c 0 - -t 1.118545 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 r -t 1.118545 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 + -t 1.109001 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 - -t 1.1100009999999998 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 h -t 1.1100009999999998 -s 1 -d 0 -i 10 -e 34 -p udp -a 0 -c 0 ------------------------------ Message: 4 Date: 24 Jul 2007 17:01:41 -0000 From: "manpreet grewal" Subject: [ns] Calculating parameters To: ns-users at ISI.EDU Message-ID: <20070724170141.26604.qmail at f5mail16.rediffmail.com> Content-Type: text/plain; format=flowed Hello , I am working on load balancing techniques.. For results, i want to get following: 1. Load balance at Routing layer under this Sqaured sum- Routing level ((kbps)^2) and Load Variance- Routing level ((kbps)^2) are to be calculated 2. Load balance at MAC layer under this Sqaured sum- MAC level ((kbps)^2) and Load Variance- MAC level ((kbps)^2) are to be calculated. Does anyone know how to calculate this or have any awk/perl scripts regarding this..please forward me.. please help me regarding this. Its very urgent for my project. Thanks. Regards, Manpreet Kaur Grewal. ------------------------------ Message: 5 Date: Tue, 24 Jul 2007 11:41:31 -0700 (PDT) From: Tariq Alwada`n Subject: [ns] P2P codes To: ns-users at ISI.EDU Message-ID: <338513.30009.qm at web56404.mail.re3.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi, I am working on a Peer-to-Peer simulation in NS2. If any one have any kind of basic code by which i can create and process data packet at the application layer, please let me know. your help is very appreciated Thank you Tariq ________________________________________________________________________ ____________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ ------------------------------ Message: 6 Date: Tue, 24 Jul 2007 17:09:59 -0400 From: fdouglas Subject: [ns] problem configuring ns-2. To: Ns users Message-ID: <2ba50e6099db945fed0a69b65e639daa at dcc.ufam.edu.br> Content-Type: text/plain; charset="UTF-8" Hello, I am trying to configure the NS-2.26 in a AMD64 machine with Ubuntu. When I type ./configure I got the following message: ... checking for libtcldbg... no checking dmalloc... not requested with --with-dmalloc checking for perl... /usr/lib not version 5.002 checking for perl5... /usr/lib not version 5.002 perl version 5.002 not found configure: warning: Perl5 not found; test scripts will not run succesfully. checking for ANSI C header files... (cached) yes ... I have Perl version 5.8.8 installed. I tryied the same ./configure in another machine, a notebook with ubuntu too and it worked fine. Someone know this bug??? Why it does not recognize my Perl installation??? Regards, Frank Douglas Federal University of Amazonas Manaus - Brasil ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 43, Issue 23 **************************************** From ciskorama at hotmail.com Tue Jul 24 00:34:19 2007 From: ciskorama at hotmail.com (Francesco Magistro) Date: Tue, 24 Jul 2007 07:34:19 +0000 Subject: [ns] wpan 802.15.4 beacon delivery delay Message-ID: Hi, I'm working with ns2's 802.15.4 simulator and I observed a constant delay of 36 symbols = 576 microsec betwenw beacon tx from a coordinator and its reception by associated nodes..... Can anybody tell me somethig about this delay accumulation and its prediction?! _________________________________________________________________ Hai sempre tutte le risposte? Sfida gli amici su Messenger con Duel Live! http://specials.it.msn.com/DuelLive.aspx From aservin at cs.york.ac.uk Wed Jul 25 02:43:54 2007 From: aservin at cs.york.ac.uk (Arturo Lev Servin) Date: Wed, 25 Jul 2007 10:43:54 +0100 Subject: [ns] problem configuring ns-2. In-Reply-To: <2ba50e6099db945fed0a69b65e639daa@dcc.ufam.edu.br> References: <2ba50e6099db945fed0a69b65e639daa@dcc.ufam.edu.br> Message-ID: <46A71B5A.8020608@cs.york.ac.uk> fdouglas wrote: > Hello, > > I am trying to configure the NS-2.26 in a AMD64 machine with Ubuntu. > When I type ./configure I got the following message: > > ... > checking for libtcldbg... no > checking dmalloc... not requested with --with-dmalloc > checking for perl... /usr/lib > not version 5.002 > checking for perl5... /usr/lib > not version 5.002 > perl version 5.002 not found > configure: warning: Perl5 not found; test scripts will not run succesfully. > checking for ANSI C header files... (cached) yes > ... > > I have Perl version 5.8.8 installed. I tryied the same ./configure in > another machine, a notebook with ubuntu too and it worked fine. > > Someone know this bug??? Why it does not recognize my Perl > installation??? > > Regards, > > Frank Douglas > Federal University of Amazonas > Manaus - Brasil > May be you have the perl libraries in some place different than "/usr/lib". -as From sampath.ranasinghe at kcl.ac.uk Wed Jul 25 03:55:11 2007 From: sampath.ranasinghe at kcl.ac.uk (Sampath N Ranasinghe) Date: Wed, 25 Jul 2007 11:55:11 +0100 Subject: [ns] serialization in ns-2 In-Reply-To: References: Message-ID: <46A72C0F.4080606@kcl.ac.uk> Hi, I have actually dabbled with the concept of serializing objects for transmission over network in ns2. In my experience serialization of objects for transmission over a network is a complicated process. So instead of actually serializing the object itself I create a serialized version of it the form of a packet. The packet contains all the information required to instantiate the object on the receiving end without actually serializing and encapsulating the object itself. Something similar to below : Object a = new Object; char * sObj = a->serialise(); .. .. Encapsulate sObj inside a packet .. .. send(packet) Hope this helps. Kind Regards, Sampath Kwnstantina Palla wrote: > Hello ! > i was searching through the mailing-list in order to find something similar > but i didn't. So i would appreciate it if anyone gave me an answer. > Is it possible to serialize an object (class instance) in order to send it > through the network? (wireless). > Has anyone tried something like that? > I googled a lot, but it seems that serialization is pretty tough. > I found that some libraries might be needed in order to extend c++ with such > feature. (I found libraries like "boost" libraries). > However i am afraid that then i would have to tackle with compatibility > issues. > I would really appreciate any help! > > -- Sampath N. Ranasinghe PhD Student Centre for Telecommunications Research Department of Electronic Engineering King's College London United Kingdom. Email: sampath.ranasinghe at kcl.ac.uk Tel : +44 (0) 20 7848 2889 From sampath.ranasinghe at kcl.ac.uk Wed Jul 25 03:58:35 2007 From: sampath.ranasinghe at kcl.ac.uk (Sampath N Ranasinghe) Date: Wed, 25 Jul 2007 11:58:35 +0100 Subject: [ns] ns 2.2x installing problem In-Reply-To: <265406.6992.qm@web58715.mail.re1.yahoo.com> References: <265406.6992.qm@web58715.mail.re1.yahoo.com> Message-ID: <46A72CDB.1080800@kcl.ac.uk> Hi , I include below information regarding the patching of ns-2.28 for the new version of the bash obtained from a website a few months back. ----------------------------------------------------- Hi, Yeah, I successfully installed ns-allinone-2.29.2 on FC5 but after slightly modifying the whole package. First, I updated the Tcl and Tk sources to the 8.4.13 (you can grab a copy from sf.net). Then you'll have to modify the configure files (Tcl, Tk, OTcl and TclCL) in this way: cp -v configure{,.orig} sed "s/relid'/relid/" configure.orig > configure -------------------------------------------------------- I hope this information will be useful Kind Regards, Sampath Elahe Alipour wrote: > Hello everyone > > I installed ns 2.31 without any problem on centos5. but now I have a problem on installing ns allinone 2.28. > At first i received this error: > > *"checking system version (for dynamic loading)... ./configure: line > 7624: syntax error near unexpected token ')' > ./configure: line 7624: ' OSF*)' > 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 problem." > > and I found a solution in Internet: > > "The problem lies in how bash 3.1.x and 4.x.x parse the configure file. This > will simply pass through bash 3.0.x and lower versions. So in order to make > things work changed the following lines > > tcl: file tcl8.x.x/unix/tcl.m4. > tk: file tk8.x.x/unix/tcl.m4. > otcl: file otcl-1.x/configure.in. > > to: > > system=MP-RAS-`awk ' { print $3 } '/etc/.relid` > > Now after changing the configuration files you will have > to delete older configure file and any cache if it exists in the respective > folders. After that do not forget to run autoconf from command line in the > respective folders to generate a fresh configure file." > > i change the three above files then i run autoconf (without deleting any configuration file!) > > root at localhost unix]# autoconf > > and i saw this error: > > "configure.in:199: error: do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS' If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation." > > and now i don't now how to solve this. > > can anybody help me? > regards, > > elaheh_alipour_iust at yahoo.com > > > > --------------------------------- > Boardwalk for $500? In 2007? Ha! > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. > > -- Sampath N. Ranasinghe PhD Student Centre for Telecommunications Research Department of Electronic Engineering King's College London United Kingdom. Email: sampath.ranasinghe at kcl.ac.uk Tel : +44 (0) 20 7848 2889 From willspearman at bellsouth.net Wed Jul 25 12:09:42 2007 From: willspearman at bellsouth.net (Will Spearman) Date: Wed, 25 Jul 2007 15:09:42 -0400 Subject: [ns] 802.11g in ns 2.28 In-Reply-To: References: Message-ID: <46A79FF6.2060401@bellsouth.net> Hello all, I would like to implement 802.11g in ns-2.28. I have found many discussions of this on the web such as: http://web.syr.edu/~dchen02/FAQ.txt However, the directions I have found are a little unclear. Some of the variables mentioned such as DSSS_CWMin only occur within files that don't seem to be used in 802.11. Can someone who has done this before give me some advice, or clear up the above mentioned directions? Any help is MUCH appreciated. Will From rubenjy at gmail.com Wed Jul 25 12:46:22 2007 From: rubenjy at gmail.com (rubenjy) Date: Wed, 25 Jul 2007 12:46:22 -0700 (PDT) Subject: [ns] multicast path problems Message-ID: <11798569.post@talk.nabble.com> Hello everyone I used multicast protocol to sent data. node1 connects node2 and node3. I set up 2 multicast group in node1. when multicast groups started sending multicast data. all data sent to node2. how to set (or modify) group1 send data to node2 ,and group2 send data to node3. can anybody help me? regards, -- View this message in context: http://www.nabble.com/multicast-path-problems-tf4147462.html#a11798569 Sent from the ns-users mailing list archive at Nabble.com. From borges at dcc.ufmg.br Wed Jul 25 13:05:21 2007 From: borges at dcc.ufmg.br (borges@dcc.ufmg.br) Date: Wed, 25 Jul 2007 17:05:21 -0300 (BRT) Subject: [ns] printf ns2 default output Message-ID: <61649.201.78.205.145.1185393921.squirrel@webmail.dcc.ufmg.br> where does printf prints ? I'm doing printf(stderr,..) to print at screen, but I want to know how to change the defaul output. Thanks in advance Alex From raphael at b0nn.de Wed Jul 25 13:10:34 2007 From: raphael at b0nn.de (Raphael) Date: Wed, 25 Jul 2007 22:10:34 +0200 Subject: [ns] Enqueque packets Message-ID: <46A7AE3A.6050903@b0nn.de> Hi NS-users, I want to emulate an udp application using tcl scripts. Since the packets do not have constant size I cannot use CBR. I intented to use a Agent/UDP. the send method and enqueue the packets to the link queue. As far as I understand the docu this can be done with C++ using the enque method. Is it possible to use this method from inside the tcl scripts? To make things clear. I want to send a bursts of udp packets, all packets with different size varing from 10-80bytes. Immediately after packet one I want to send packet two, ..., pause, next burst. I tried to use $ns at 5.0 "$udp send 10 pk1" $ns at 5.0 "$udp send 11 pk2" $ns at 5.0 "$udp send 23 pk1" but in this case all messages will be send at (nearly) the same time... (which is correct, but not what I want) Any advice how to use the queue mechanism or any other "workaround" would be fine.. Thx in advance Raphael From shm_saleem at yahoo.com Wed Jul 25 23:00:38 2007 From: shm_saleem at yahoo.com (Saleemsheikh) Date: Wed, 25 Jul 2007 23:00:38 -0700 (PDT) Subject: [ns] setdest error!!! Message-ID: <11804628.post@talk.nabble.com> hi, i got this error when i genrate any of wireless sceneario uder ~ns2.29/indep-utils/cmu-scene-gen/setdest $ ./setdest -n 100 -p 50.0 -s 2.0 -t 100.0 -x 500 -y 500 > scene-100-test assertion "speed != 0.0" failed: file "setdest.cc", line 595 Aborted (core dumped) Can any one know this & would like to help me in this regard. Regards, Saleem -- View this message in context: http://www.nabble.com/setdest-error%21%21%21-tf4149505.html#a11804628 Sent from the ns-users mailing list archive at Nabble.com. From baldo at dei.unipd.it Thu Jul 26 02:35:03 2007 From: baldo at dei.unipd.it (Nicola Baldo) Date: Thu, 26 Jul 2007 11:35:03 +0200 Subject: [ns] 802.11g in ns 2.28 In-Reply-To: <46A79FF6.2060401@bellsouth.net> References: <46A79FF6.2060401@bellsouth.net> Message-ID: <46A86AC7.1010606@dei.unipd.it> Will Spearman wrote: > I would like to implement 802.11g in ns-2.28 As announced some time ago, an 802.11g implementation for ns2 can be found here: http://www.dei.unipd.it/~rossi/dei80211mr.html Regards, Nicola From zahidakaram at yahoo.com Thu Jul 26 04:04:49 2007 From: zahidakaram at yahoo.com (zahida karam) Date: Thu, 26 Jul 2007 04:04:49 -0700 (PDT) Subject: [ns] running wimax module in ns 2.28 Message-ID: <203451.73613.qm@web62102.mail.re1.yahoo.com> hi users, pls any one help me in installing wimax module in ns2.28, and also help me in running that as well. actually i m getting files not found errors or some times bad used commnad in the tcl files. pls pls pls thanks in advance --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. From raphael at b0nn.de Thu Jul 26 06:22:24 2007 From: raphael at b0nn.de (Raphael) Date: Thu, 26 Jul 2007 15:22:24 +0200 Subject: [ns] Enqueque packets In-Reply-To: <357392.57948.qm@web30102.mail.mud.yahoo.com> References: <357392.57948.qm@web30102.mail.mud.yahoo.com> Message-ID: <46A8A010.5080109@b0nn.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Parag Shah, thx for your replay, but this does not solve my problem. I want to have packets of different but fixed size AND no man-nade gap between two following packets. If I implement it the way you suggested I have to predict how large the "natural" gap between the packets will be and code this in the tcl. Since I want to test different link types this is no solution for me. Thx anyway... Raphael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGqKAQkuU3NI79Py4RAspxAJwIXWUgUD8ANanjhdR4Qdocy+2e7gCggqk4 Ak0gCzZeF3VOSe1lbrHsBLQ= =2kJ+ -----END PGP SIGNATURE----- From messina.daniele at tti.unipa.it Wed Jul 25 21:01:51 2007 From: messina.daniele at tti.unipa.it (Daniele Messina) Date: Thu, 26 Jul 2007 06:01:51 +0200 Subject: [ns] wpan 802.15.4 beacon delivery delay Message-ID: <200707260601.52834.messina.daniele@tti.unipa.it> Hi Francesco, that is the duration of the transmission of the beacons, it is not some delay. Bye. On Thursday 26 July 2007, ns-users-request at isi.edu wrote: > Message: 2 > Date: Tue, 24 Jul 2007 07:34:19 +0000 > From: "Francesco Magistro" > Subject: [ns] wpan 802.15.4 beacon delivery delay > To: ns-users at ISI.EDU > Message-ID: > Content-Type: text/plain; charset=iso-8859-1; format=flowed > > Hi, I'm working with ns2's 802.15.4 simulator and I observed a constant > delay of 36 symbols = 576 microsec betwenw beacon tx from a coordinator and > its reception by associated nodes..... > Can anybody tell me somethig about this delay accumulation and its > prediction?! -- Daniele Messina Ph.D. Student, Dept. of Computer Engineering (DINFO), University of Palermo g-mail: daniele.messina at gmail.com e-mail: messina.daniele at tti.unipa.it e-mail: messina at csai.unipa.it ------------------------------------------------------- -- Daniele Messina Ph.D. Student, Dept. of Computer Engineering (DINFO), University of Palermo g-mail: daniele.messina at gmail.com e-mail: messina.daniele at tti.unipa.it e-mail: messina at csai.unipa.it private phone: (+39) 3343879891 MSN contact: daniele_messina at hotmail.com From jmahdi at hotmail.com Thu Jul 26 12:37:59 2007 From: jmahdi at hotmail.com (JEHD MAHDI) Date: Thu, 26 Jul 2007 19:37:59 +0000 Subject: [ns] running an editor on ssh Message-ID: hi there, i'm trying to write a script in tcl (beginner), the problem is i have access to ns2 only through valeron on ssh, i'm doing this from a linux terminal, i can't have access to emacs on my linux terminal coz i'm working with a remote machine, is there any way to open a text editor from valeron and save it as well?? sorry if my question is not clear its because i'm a beginner and can't explain in professional way... cheers J Mahdi Newcastle Upon Tyne ********************** _________________________________________________________________ Feel like a local wherever you go with BackOfMyHand.com http://www.backofmyhand.com From jmahdi at hotmail.com Thu Jul 26 12:59:05 2007 From: jmahdi at hotmail.com (JEHD MAHDI) Date: Thu, 26 Jul 2007 19:59:05 +0000 Subject: [ns] FW: running an editor on ssh Message-ID: J Mahdi Newcastle Upon Tyne ********************** My favourite sites: www.al-islam.com www.islamspirit.com www.troid.org > From: craigdo at u.washington.edu> To: jmahdi at hotmail.com> Subject: RE: [ns] running an editor on ssh> Date: Thu, 26 Jul 2007 12:51:15 -0700> > If I understand you correctly, you want to run emacs on the remote machine> via the remote (ssh) shell.> > You probably just want to do:> > ssh remote-machine-name> emacs -nw> > The -nw switch tells emacs not to create a new window.> > > -----Original Message-----> > From: ns-users-bounces at ISI.EDU > > [mailto:ns-users-bounces at ISI.EDU] On Behalf Of JEHD MAHDI> > Sent: Thursday, July 26, 2007 12:38 PM> > To: ns-users at ISI.EDU> > Subject: [ns] running an editor on ssh> > > > > > > > hi there,> > > > i'm trying to write a script in tcl (beginner), the problem > > is i have access to ns2 only through valeron on ssh, i'm > > doing this from a linux terminal, i can't have access to > > emacs on my linux terminal coz i'm working with a remote > > machine, is there any way to open a text editor from valeron > > and save it as well?? sorry if my question is not clear its > > because i'm a beginner and can't explain in professional way...> > > > cheers> > > > > > J Mahdi> > Newcastle Upon Tyne> > **********************> > > > > > _________________________________________________________________> > Feel like a local wherever you go with BackOfMyHand.com> > http://www.backofmyhand.com> > > > _________________________________________________________________ Feel like a local wherever you go with BackOfMyHand.com http://www.backofmyhand.com From salouhouni at hotmail.com Thu Jul 26 16:56:52 2007 From: salouhouni at hotmail.com (salouhouni) Date: Thu, 26 Jul 2007 16:56:52 -0700 (PDT) Subject: [ns] Calculate hop count Message-ID: <11820792.post@talk.nabble.com> Hello everybody again!I have posted some of my problems and I got some very helpful answers. I would like to ask if everybody has an awk file that calculates the hop count for a wireless trace. I am implementing an ad hoc network with DSR routing and I want to measure the hop count vs speed for some mobility paterns so it would be very helpful if anybody had such an awk or pearl file.Thanks in advance and good luck in anything you do! -- View this message in context: http://www.nabble.com/Calculate-hop-count-tf4154667.html#a11820792 Sent from the ns-users mailing list archive at Nabble.com. From sita at ece.gatech.edu Thu Jul 26 20:09:25 2007 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Thu, 26 Jul 2007 23:09:25 -0400 (EDT) Subject: [ns] large duration simulations in ns-2.27 Message-ID: <2278.69.136.35.147.1185505765.squirrel@secure2.ece.gatech.edu> Hello, I am trying to run a simulation with approximately 200 nodes for a period of 6-8 hours (21600-28800 seconds). The program runs out of memory and gets out on a bad malloc. I have fixed problems like memory leaks in my program, swap space on my hard drive etc. I have looked into ns-2 limitations on the web, read pointers for large scale simulations etc. But I am unable to understand how, why or when a simulation can run out of memory. I have had few successful runs with 21600 seconds and 125 nodes. Any other combination seems to exit out at different times. Can anyone shed any light on my problem? Can users post their experiences with large scale simulations - what is the longest duration they ran their program? I am working on a pentium machine with 512MB RAM and 15GB free hard drive space, running ns-2.27 on FC4. Thanks, Sita From praneetsaurabh at gmail.com Thu Jul 26 23:57:51 2007 From: praneetsaurabh at gmail.com (praneet saurabh) Date: Fri, 27 Jul 2007 12:27:51 +0530 Subject: [ns] Query regarding Adiadne! Message-ID: <28bbc4e80707262357k58978294gf769527f9cdea7f2@mail.gmail.com> Hello! I am trying to implement aridane on NS2, but its not working, Can you tell tell me what will the changes which i have to make to the organisation of the directories to make it possible.Does anybody have the implementation. Waiting in anticipation n thanks in advance. Reply asap. Regards From sarper.gokturk at gmail.com Fri Jul 27 03:24:15 2007 From: sarper.gokturk at gmail.com (sarper) Date: Fri, 27 Jul 2007 03:24:15 -0700 (PDT) Subject: [ns] ns2 simulation quits without any error message Message-ID: <11824611.post@talk.nabble.com> Hello everyone, I'm trying to simulate a 802.11g network in ns-2.30. The simple network consists of 2 sources and a sink node. After some time, the simulation quits without any error message. The more I increase the traffic rate the more quickly the simulation quits. Also, as I increase the number of nodes in the network, the simulation quits earlier. Any help is appreciated. Sarper -- View this message in context: http://www.nabble.com/ns2-simulation-quits-without-any-error-message-tf4155989.html#a11824611 Sent from the ns-users mailing list archive at Nabble.com. From mikellanebe3 at yahoo.es Fri Jul 27 04:28:59 2007 From: mikellanebe3 at yahoo.es (=?iso-8859-1?q?mikel=20larra=F1aga=20negro?=) Date: Fri, 27 Jul 2007 13:28:59 +0200 (CEST) Subject: [ns] Energy Model in NS2 Message-ID: <45885.55597.qm@web23404.mail.ird.yahoo.com> Dear Users of NS2, I need to take some results regarding energy consumption of my protocol. I m wondering about the behaviour of Energy Model class in NS2. I set some initial energy for say X nodes. Some nodes are generating traffic and sending packets with dsdv protocol. But after some time, Although the traffic generating nodes consume much more energy than the silent nodes all the nodes loose thier energy at almost same time. I expect that only the traffic source nodes loose battery power not the silent nodes. It seems that all the nodes share the same energy and die at the same time. I my script, I have configure this parameters Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 1.58e-10 ;#Sensibilidad: -98 dBm. Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.00175 Phy/WirelessPhy set freq_ 916e+6 Phy/WirelessPhy set L_ 1.0 Phy/WirelessPhy set Pt_consume_ 0.002 ;# // power consumption for transmission (W) Phy/WirelessPhy set Pr_consume_ 0.002 ;# // power consumption for reception (W) Phy/WirelessPhy set P_idle_ 1.0; # // idle power consumption (W) Phy/WirelessPhy set P_sleep_ 0.00005; #// sleep power consumption (W) Also, I use energy model. Must I have to write something more in the code? My script is that one # ==================================================================== # Define Node Configuration paramaters #==================================================================== 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) 10 ;# number of mobilenodes set val(rp) DSDV ;# routing protocol set val(x) 500 ;# X dimension of the topography set val(y) 500 ;# Y dimension of the topography set val(rxPower) 0.00175 ;#Potencia recepci?n en W set val(txPower) 0.00175 ;#Potencia transmisi?n en W set val(energymodel) EnergyModel ; set val(initialenergy) 1000 ;# Initial energy in Joules set val(sleeppower) 0.00005 ;#sleep power W 15 uA P=I*I*R=11.25*10E-9 W set val(tp) 0.002 ;#transition powerpower consumption (Watt) in #;state transition from sleep to idle (active) set val(tt) 0.005 ;#transition time(second) use instate transition from sleep to idle (active) set val(ip) 1.0 ;#idle power 8 mA en modo activo.P=0.0032 #===================================================================== # Initialize trace file desctiptors #===================================================================== # *** Throughput Trace *** set f0 [open tiempo.tr w] set f1 [open rate.tr w] # *** Initialize Simulator *** set ns_ [new Simulator] # *** Initialize Trace file *** set tracefd [open trace2.tr w] $ns_ trace-all $tracefd # *** Initialize Network Animator *** set namtrace [open sim12.nam w] $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) $ns_ use-newtrace # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 1.58e-10 ;#Sensibilidad: -98 dBm. Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.00175 Phy/WirelessPhy set freq_ 916e+6 Phy/WirelessPhy set L_ 1.0 Phy/WirelessPhy set Pt_consume_ 0.002 ;# // power consumption for transmission (W) Phy/WirelessPhy set Pr_consume_ 0.002 ;# // power consumption for reception (W) Phy/WirelessPhy set P_idle_ 1.0; # // idle power consumption (W) Phy/WirelessPhy set P_sleep_ 0.00005; #// sleep power consumption (W) #Frecuencia central de 868/916 MHz. #N?mero de canales: de 4 a 50. #Tasa de datos: 38.4 kbaudios. #Rango: 500 pies.--->155 m #// Assume AT&T's Wavelan PCMCIA card -- Chalermek # // Pt_ = 8.5872e-4; // For 40m transmission range. # // Pt_ = 7.214e-3; // For 100m transmission range. # // Pt_ = 0.2818; // For 250m transmission range. # // Pt_ = pow(10, 2.45) * 1e-3; // 24.5 dbm, ~ 281.8mw # *** set up topography object *** set topo [new Topography] $topo load_flatgrid 500 500 # Create General Operations Director (GOD) object. It is used to store global information about the state of the environment, network, or nodes that an # omniscent observer would have, but that should not be made known to any participant in the simulation. create-god $val(nn) # configure nodes $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF \ -energyModel $val(energymodel) \ -idlePower $val(ip) \ -rxPower $val(rxPower) \ -txPower $val(txPower) \ -sleepPower $val(sleeppower)\ -transitionPower $val(tp) \ -transitionTime $val(tt)\ -initialEnergy $val(initialenergy)\ # Create Nodes for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } # Initialize Node Coordinates set file [open nodosx.txt r] set file2 [open nodosy.txt r] for {set i 0} {$i < $val(nn) } { incr i } { gets $file linea $node_($i) set X_ $linea gets $file2 linea2 $node_($i) set Y_ $linea2 $node_($i) set Z_ 0 } close $file close $file2 set i [expr $val(nn)-1] $node_($i) set X_ [expr $linea + 5] $node_($i) set Y_ [expr $linea2 + 5] $node_($i) set Z_ 0 # Setup traffic flow between nodes # TCP connections between node_(0) and node_(1) # Create Constant four Bit Rate Traffic sources set agent1 [new Agent/UDP] ;# Create TCP Agent $agent1 set prio_ 0 ;# Set Its priority to 0 set sink [new Agent/LossMonitor] ;# Create Loss Monitor Sink in order to be able to trace the number obytes received $ns_ attach-agent $node_(0) $agent1 ;# Attach Agent to source node $ns_ attach-agent $node_($i) $sink ;# Attach Agent to sink node $ns_ connect $agent1 $sink ;# Connect the nodes set app1 [new Application/Traffic/CBR] ;# Create Constant Bit Rate application $app1 set packetSize_ 128 ;# Set Packet Size to 512 bytes $app1 set rate_ 38.4Kb ;# Set CBR rate to 400 Kbits/sec $app1 attach-agent $agent1 ;# Attach Application to agent # defines the node size in Network Animator for {set i 0} {$i < $val(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 2 } # Initialize Flags set holdrate1 0 # Function To record Bit Rate proc record {} { global sink f0 holdrate1 set ns [Simulator instance] set time 0.9 ;#Set Sampling Time to 1 Sec set bw0 [$sink set bytes_] set now [$ns now] # Record Bit Rate in Trace Files # puts $f0 "$now"; #set kbs [expr (($bw0+$holdrate1 )*8)/($time*1000)];#kb/sec #puts $f1 " $kbs"; #puts $f0 "$now [expr (($bw0 ))/($time*512)]";#paquetes/sec # Reset Variables $sink set bytes_ 0 set holdrate1 $bw0 $ns at [expr $now+$time] "record" ;# Schedule Record after $time interval sec } # Start Recording at Time 0 $ns_ at 0.0 "record" $ns_ at 1.4 "$app1 start" ;# Start transmission at time t = 1.4 Sec # Stop Simulation at Time 100 sec $ns_ at 100 "stop" # Reset Nodes at time 100 sec for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 100 "$node_($i) reset"; } # Exit Simulatoion at Time 100.01 sec $ns_ at 100.01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd f0 f4 f8 f1 # Close Trace Files close $f0 close $f1 # Plot Recorded Statistics # exec xgraph throughput.tr -geometry 800x400 & # Reset Trace File $ns_ flush-trace close $tracefd exit 0 } puts "Starting Simulation..." $ns_ run Thanks, Mikel --------------------------------- S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. From irini at iti.gr Fri Jul 27 04:42:08 2007 From: irini at iti.gr (Eirini Karapistoli) Date: Fri, 27 Jul 2007 14:42:08 +0300 Subject: [ns] Directional Antennas - Tcl Example Needed Message-ID: <46A9DA10.4020500@iti.gr> Hi all, I've just obtained a NS-2 code for directional antennas from the website http://people.umass.edu/bdonovan/ns.html. It would greatly help me if someone could also provided me with a simple tcl example. Thanks in advance. BR, Eirini From sita at ece.gatech.edu Fri Jul 27 04:50:55 2007 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Fri, 27 Jul 2007 07:50:55 -0400 (EDT) Subject: [ns] Energy Model in NS2 In-Reply-To: <45885.55597.qm@web23404.mail.ird.yahoo.com> References: <45885.55597.qm@web23404.mail.ird.yahoo.com> Message-ID: <4233.69.136.35.147.1185537055.squirrel@secure2.ece.gatech.edu> The idling power set in the code is very high. Due to this, nodes that work and those that are silent may end up consuming the same amount of power over a period of time. It may not be surprising if idling nodes die ahead. Regards, Sita > > > Dear Users of NS2, > I need to take some results regarding energy consumption of my protocol. I > m > wondering about the behaviour of Energy Model class in NS2. > I set some initial energy for say X nodes. Some nodes are generating > traffic > and sending packets with dsdv protocol. But after some time, Although the > traffic generating nodes consume much more energy than the silent nodes > all the nodes loose thier energy at almost same time. I expect that only > the > traffic source nodes loose battery power not the silent nodes. > It seems that all the nodes share the same energy and die at the same > time. > I my script, I have configure this parameters > > Phy/WirelessPhy set CPThresh_ 10.0 > Phy/WirelessPhy set CSThresh_ 1.559e-11 > Phy/WirelessPhy set RXThresh_ 1.58e-10 ;#Sensibilidad: -98 dBm. > Phy/WirelessPhy set Rb_ 2*1e6 > Phy/WirelessPhy set Pt_ 0.00175 > Phy/WirelessPhy set freq_ 916e+6 > Phy/WirelessPhy set L_ 1.0 > Phy/WirelessPhy set > Pt_consume_ 0.002 ;# // power consumption for transmission (W) > Phy/WirelessPhy set Pr_consume_ 0.002 ;# // power consumption for > reception (W) > Phy/WirelessPhy set P_idle_ 1.0; # // idle power consumption (W) > Phy/WirelessPhy set P_sleep_ 0.00005; #// sleep power consumption (W) > > Also, I use energy model. Must I have to write something more in the code? > > My script is that one > > # ==================================================================== > # Define Node Configuration paramaters > #==================================================================== > 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) 10 ;# number of mobilenodes > set val(rp) DSDV ;# routing protocol > set val(x) 500 ;# X dimension of the > topography > set val(y) 500 ;# Y dimension of the > topography > set val(rxPower) 0.00175 ;#Potencia > recepci?n en W > set val(txPower) 0.00175 ;#Potencia transmisi?n en W > set val(energymodel) EnergyModel ; > set val(initialenergy) 1000 ;# Initial energy in > Joules > set val(sleeppower) 0.00005 ;#sleep power W 15 > uA P=I*I*R=11.25*10E-9 W > set val(tp) 0.002 > ;#transition powerpower consumption (Watt) in #;state transition > from sleep to idle (active) > set val(tt) 0.005 ;#transition time(second) use instate > transition from sleep to idle (active) > set val(ip) 1.0 ;#idle power 8 mA en > modo activo.P=0.0032 > > #===================================================================== > # Initialize trace file desctiptors > #===================================================================== > # *** Throughput Trace *** > > set f0 [open tiempo.tr w] > set f1 [open rate.tr w] > > # *** Initialize Simulator *** > set ns_ [new Simulator] > # *** Initialize Trace file *** > set tracefd [open trace2.tr w] > $ns_ trace-all $tracefd > # *** Initialize Network Animator *** > set namtrace [open sim12.nam w] > $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) > $ns_ use-newtrace > > # Initialize the > SharedMedia interface with parameters to make > # it work like the 914MHz Lucent WaveLAN DSSS radio interface > Phy/WirelessPhy set CPThresh_ 10.0 > Phy/WirelessPhy set CSThresh_ 1.559e-11 > Phy/WirelessPhy set RXThresh_ 1.58e-10 ;#Sensibilidad: -98 dBm. > Phy/WirelessPhy set Rb_ 2*1e6 > Phy/WirelessPhy set Pt_ 0.00175 > Phy/WirelessPhy set freq_ 916e+6 > Phy/WirelessPhy set L_ 1.0 > Phy/WirelessPhy set Pt_consume_ 0.002 ;# // power consumption for > transmission (W) > Phy/WirelessPhy set Pr_consume_ 0.002 ;# // power consumption for > reception (W) > Phy/WirelessPhy set P_idle_ 1.0; # // idle power consumption (W) > Phy/WirelessPhy set P_sleep_ 0.00005; #// sleep power consumption (W) > > #Frecuencia central de 868/916 MHz. > #N?mero de canales: de 4 a 50. > #Tasa de datos: 38.4 kbaudios. > #Rango: 500 pies.--->155 m > #// Assume AT&T's Wavelan PCMCIA card -- Chalermek > # // Pt_ = 8.5872e-4; // For 40m transmission range. > # // > Pt_ = 7.214e-3; // For 100m transmission range. > # // Pt_ = 0.2818; // For 250m transmission range. > # // Pt_ = pow(10, 2.45) * 1e-3; // 24.5 dbm, ~ 281.8mw > > # *** set up topography object *** > set topo [new Topography] > $topo load_flatgrid 500 500 > # Create General Operations Director (GOD) object. It is used to store > global information about the state of the environment, network, or nodes > that an > # omniscent observer would have, but that should not be made known to any > participant in the simulation. > create-god $val(nn) > # configure nodes > $ns_ node-config -adhocRouting $val(rp) \ > -llType $val(ll) \ > -macType $val(mac) \ > -ifqType $val(ifq) \ > -ifqLen $val(ifqlen) \ > -antType $val(ant) \ > -propType $val(prop) \ > > -phyType $val(netif) \ > -channelType $val(chan) \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace OFF \ > -movementTrace OFF \ > -energyModel $val(energymodel) \ > -idlePower $val(ip) \ > -rxPower $val(rxPower) \ > -txPower $val(txPower) \ > -sleepPower $val(sleeppower)\ > -transitionPower $val(tp) \ > -transitionTime $val(tt)\ > -initialEnergy $val(initialenergy)\ > > # Create Nodes > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > > > $node_($i) random-motion 0 ;# disable random > motion > } > # Initialize Node Coordinates > set file [open nodosx.txt r] > set file2 [open nodosy.txt > r] > > for {set i 0} {$i < $val(nn) } { incr i } { > > gets $file linea > $node_($i) set X_ $linea > gets $file2 linea2 > $node_($i) set Y_ $linea2 > $node_($i) set Z_ 0 > } > > > close $file > close $file2 > set i [expr $val(nn)-1] > $node_($i) set X_ [expr $linea + 5] > $node_($i) set Y_ [expr $linea2 + 5] > $node_($i) set Z_ 0 > > > # Setup traffic flow between nodes > # TCP connections between node_(0) and node_(1) > # Create Constant four Bit Rate Traffic sources > set agent1 [new Agent/UDP] ;# Create TCP Agent > $agent1 set prio_ 0 ;# Set Its priority to 0 > set sink [new Agent/LossMonitor] ;# Create Loss Monitor Sink in order to > be able to trace the number obytes received > $ns_ attach-agent $node_(0) $agent1 ;# Attach Agent to source node > $ns_ attach-agent $node_($i) $sink ;# Attach Agent to sink node > $ns_ connect $agent1 $sink ;# Connect the nodes > > > set app1 [new Application/Traffic/CBR] ;# Create Constant Bit Rate > application > $app1 set packetSize_ 128 ;# Set Packet Size to 512 bytes > $app1 set rate_ 38.4Kb ;# Set CBR rate to 400 Kbits/sec > $app1 attach-agent $agent1 ;# Attach Application to agent > > # defines the node size in Network Animator > for {set i 0} {$i < $val(nn)} {incr i} { > $ns_ initial_node_pos $node_($i) 2 > } > # Initialize Flags > set holdrate1 0 > # Function To record Bit Rate > > proc record {} { > global sink f0 holdrate1 > set ns [Simulator instance] > set time 0.9 ;#Set Sampling Time to 1 Sec > set bw0 [$sink set bytes_] > > set now [$ns now] > # Record Bit Rate in Trace Files > # puts $f0 "$now"; > #set kbs [expr (($bw0+$holdrate1 )*8)/($time*1000)];#kb/sec > #puts $f1 " $kbs"; > #puts $f0 "$now [expr (($bw0 > ))/($time*512)]";#paquetes/sec > > # Reset Variables > $sink set bytes_ 0 > set holdrate1 $bw0 > $ns at [expr $now+$time] "record" ;# Schedule Record after $time > interval sec > > } > # Start Recording at Time 0 > $ns_ at 0.0 "record" > $ns_ at 1.4 "$app1 start" ;# Start transmission at time t > = 1.4 Sec > > # Stop Simulation at Time 100 sec > > $ns_ at 100 "stop" > > # Reset Nodes at time 100 sec > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at 100 "$node_($i) reset"; > } > > # Exit Simulatoion at Time 100.01 sec > $ns_ at 100.01 "puts \"NS EXITING...\" ; $ns_ halt" > proc stop {} { > global ns_ tracefd f0 f4 f8 f1 > # Close Trace Files > close $f0 > close $f1 > > # Plot Recorded Statistics > # exec xgraph throughput.tr -geometry 800x400 & > # Reset Trace File > > $ns_ flush-trace > close $tracefd > exit 0 > } > puts "Starting Simulation..." > $ns_ run > > > Thanks, > Mikel > > > --------------------------------- > > S? un Mejor Amante del Cine > ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. > From mikellanebe3 at yahoo.es Fri Jul 27 06:13:32 2007 From: mikellanebe3 at yahoo.es (=?iso-8859-1?q?mikel=20larra=F1aga=20negro?=) Date: Fri, 27 Jul 2007 15:13:32 +0200 (CEST) Subject: [ns] Energy Model in NS2 In-Reply-To: <4233.69.136.35.147.1185537055.squirrel@secure2.ece.gatech.edu> Message-ID: <229592.40669.qm@web23406.mail.ird.yahoo.com> Dear Sita I have changed Phy/WirelessPhy set P_idle_1 to 0.0032, but nothing has changed on the trace file. Thanks for your answer Mikel "Sita S. Krishnakumar" escribi?: The idling power set in the code is very high. Due to this, nodes that work and those that are silent may end up consuming the same amount of power over a period of time. It may not be surprising if idling nodes die ahead. Regards, Sita > > > Dear Users of NS2, > I need to take some results regarding energy consumption of my protocol. I > m > wondering about the behaviour of Energy Model class in NS2. > I set some initial energy for say X nodes. Some nodes are generating > traffic > and sending packets with dsdv protocol. But after some time, Although the > traffic generating nodes consume much more energy than the silent nodes > all the nodes loose thier energy at almost same time. I expect that only > the > traffic source nodes loose battery power not the silent nodes. > It seems that all the nodes share the same energy and die at the same > time. > I my script, I have configure this parameters > > Phy/WirelessPhy set CPThresh_ 10.0 > Phy/WirelessPhy set CSThresh_ 1.559e-11 > Phy/WirelessPhy set RXThresh_ 1.58e-10 ;#Sensibilidad: -98 dBm. > Phy/WirelessPhy set Rb_ 2*1e6 > Phy/WirelessPhy set Pt_ 0.00175 > Phy/WirelessPhy set freq_ 916e+6 > Phy/WirelessPhy set L_ 1.0 > Phy/WirelessPhy set > Pt_consume_ 0.002 ;# // power consumption for transmission (W) > Phy/WirelessPhy set Pr_consume_ 0.002 ;# // power consumption for > reception (W) > Phy/WirelessPhy set P_idle_ 1.0; # // idle power consumption (W) > Phy/WirelessPhy set P_sleep_ 0.00005; #// sleep power consumption (W) > > Also, I use energy model. Must I have to write something more in the code? > > My script is that one > > # ==================================================================== > # Define Node Configuration paramaters > #==================================================================== > 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) 10 ;# number of mobilenodes > set val(rp) DSDV ;# routing protocol > set val(x) 500 ;# X dimension of the > topography > set val(y) 500 ;# Y dimension of the > topography > set val(rxPower) 0.00175 ;#Potencia > recepci?n en W > set val(txPower) 0.00175 ;#Potencia transmisi?n en W > set val(energymodel) EnergyModel ; > set val(initialenergy) 1000 ;# Initial energy in > Joules > set val(sleeppower) 0.00005 ;#sleep power W 15 > uA P=I*I*R=11.25*10E-9 W > set val(tp) 0.002 > ;#transition powerpower consumption (Watt) in #;state transition > from sleep to idle (active) > set val(tt) 0.005 ;#transition time(second) use instate > transition from sleep to idle (active) > set val(ip) 1.0 ;#idle power 8 mA en > modo activo.P=0.0032 > > #===================================================================== > # Initialize trace file desctiptors > #===================================================================== > # *** Throughput Trace *** > > set f0 [open tiempo.tr w] > set f1 [open rate.tr w] > > # *** Initialize Simulator *** > set ns_ [new Simulator] > # *** Initialize Trace file *** > set tracefd [open trace2.tr w] > $ns_ trace-all $tracefd > # *** Initialize Network Animator *** > set namtrace [open sim12.nam w] > $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) > $ns_ use-newtrace > > # Initialize the > SharedMedia interface with parameters to make > # it work like the 914MHz Lucent WaveLAN DSSS radio interface > Phy/WirelessPhy set CPThresh_ 10.0 > Phy/WirelessPhy set CSThresh_ 1.559e-11 > Phy/WirelessPhy set RXThresh_ 1.58e-10 ;#Sensibilidad: -98 dBm. > Phy/WirelessPhy set Rb_ 2*1e6 > Phy/WirelessPhy set Pt_ 0.00175 > Phy/WirelessPhy set freq_ 916e+6 > Phy/WirelessPhy set L_ 1.0 > Phy/WirelessPhy set Pt_consume_ 0.002 ;# // power consumption for > transmission (W) > Phy/WirelessPhy set Pr_consume_ 0.002 ;# // power consumption for > reception (W) > Phy/WirelessPhy set P_idle_ 1.0; # // idle power consumption (W) > Phy/WirelessPhy set P_sleep_ 0.00005; #// sleep power consumption (W) > > #Frecuencia central de 868/916 MHz. > #N?mero de canales: de 4 a 50. > #Tasa de datos: 38.4 kbaudios. > #Rango: 500 pies.--->155 m > #// Assume AT&T's Wavelan PCMCIA card -- Chalermek > # // Pt_ = 8.5872e-4; // For 40m transmission range. > # // > Pt_ = 7.214e-3; // For 100m transmission range. > # // Pt_ = 0.2818; // For 250m transmission range. > # // Pt_ = pow(10, 2.45) * 1e-3; // 24.5 dbm, ~ 281.8mw > > # *** set up topography object *** > set topo [new Topography] > $topo load_flatgrid 500 500 > # Create General Operations Director (GOD) object. It is used to store > global information about the state of the environment, network, or nodes > that an > # omniscent observer would have, but that should not be made known to any > participant in the simulation. > create-god $val(nn) > # configure nodes > $ns_ node-config -adhocRouting $val(rp) \ > -llType $val(ll) \ > -macType $val(mac) \ > -ifqType $val(ifq) \ > -ifqLen $val(ifqlen) \ > -antType $val(ant) \ > -propType $val(prop) \ > > -phyType $val(netif) \ > -channelType $val(chan) \ > -topoInstance $topo \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace OFF \ > -movementTrace OFF \ > -energyModel $val(energymodel) \ > -idlePower $val(ip) \ > -rxPower $val(rxPower) \ > -txPower $val(txPower) \ > -sleepPower $val(sleeppower)\ > -transitionPower $val(tp) \ > -transitionTime $val(tt)\ > -initialEnergy $val(initialenergy)\ > > # Create Nodes > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > > > $node_($i) random-motion 0 ;# disable random > motion > } > # Initialize Node Coordinates > set file [open nodosx.txt r] > set file2 [open nodosy.txt > r] > > for {set i 0} {$i < $val(nn) } { incr i } { > > gets $file linea > $node_($i) set X_ $linea > gets $file2 linea2 > $node_($i) set Y_ $linea2 > $node_($i) set Z_ 0 > } > > > close $file > close $file2 > set i [expr $val(nn)-1] > $node_($i) set X_ [expr $linea + 5] > $node_($i) set Y_ [expr $linea2 + 5] > $node_($i) set Z_ 0 > > > # Setup traffic flow between nodes > # TCP connections between node_(0) and node_(1) > # Create Constant four Bit Rate Traffic sources > set agent1 [new Agent/UDP] ;# Create TCP Agent > $agent1 set prio_ 0 ;# Set Its priority to 0 > set sink [new Agent/LossMonitor] ;# Create Loss Monitor Sink in order to > be able to trace the number obytes received > $ns_ attach-agent $node_(0) $agent1 ;# Attach Agent to source node > $ns_ attach-agent $node_($i) $sink ;# Attach Agent to sink node > $ns_ connect $agent1 $sink ;# Connect the nodes > > > set app1 [new Application/Traffic/CBR] ;# Create Constant Bit Rate > application > $app1 set packetSize_ 128 ;# Set Packet Size to 512 bytes > $app1 set rate_ 38.4Kb ;# Set CBR rate to 400 Kbits/sec > $app1 attach-agent $agent1 ;# Attach Application to agent > > # defines the node size in Network Animator > for {set i 0} {$i < $val(nn)} {incr i} { > $ns_ initial_node_pos $node_($i) 2 > } > # Initialize Flags > set holdrate1 0 > # Function To record Bit Rate > > proc record {} { > global sink f0 holdrate1 > set ns [Simulator instance] > set time 0.9 ;#Set Sampling Time to 1 Sec > set bw0 [$sink set bytes_] > > set now [$ns now] > # Record Bit Rate in Trace Files > # puts $f0 "$now"; > #set kbs [expr (($bw0+$holdrate1 )*8)/($time*1000)];#kb/sec > #puts $f1 " $kbs"; > #puts $f0 "$now [expr (($bw0 > ))/($time*512)]";#paquetes/sec > > # Reset Variables > $sink set bytes_ 0 > set holdrate1 $bw0 > $ns at [expr $now+$time] "record" ;# Schedule Record after $time > interval sec > > } > # Start Recording at Time 0 > $ns_ at 0.0 "record" > $ns_ at 1.4 "$app1 start" ;# Start transmission at time t > = 1.4 Sec > > # Stop Simulation at Time 100 sec > > $ns_ at 100 "stop" > > # Reset Nodes at time 100 sec > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at 100 "$node_($i) reset"; > } > > # Exit Simulatoion at Time 100.01 sec > $ns_ at 100.01 "puts \"NS EXITING...\" ; $ns_ halt" > proc stop {} { > global ns_ tracefd f0 f4 f8 f1 > # Close Trace Files > close $f0 > close $f1 > > # Plot Recorded Statistics > # exec xgraph throughput.tr -geometry 800x400 & > # Reset Trace File > > $ns_ flush-trace > close $tracefd > exit 0 > } > puts "Starting Simulation..." > $ns_ run > > > Thanks, > Mikel > > > --------------------------------- > > S? un Mejor Amante del Cine > ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. > --------------------------------- S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. From willspearman at bellsouth.net Fri Jul 27 07:27:52 2007 From: willspearman at bellsouth.net (Will Spearman) Date: Fri, 27 Jul 2007 10:27:52 -0400 Subject: [ns] 802.11g with 802.11e Message-ID: <46AA00E8.7060806@bellsouth.net> I apologize for asking the same question twice, but I left out an important piece of information in the first attempt. I am working with 802.11e and using the Wietholter and Hoene 802.11e addon, and I'd like to use 802.11g rates in my simulations. The previously mentioned 802.11g module will not work for me since I need to keep the 802.11e MAC layer intact. My only option is to integrate the two somehow, but I would love to know if anyone has an easier option! I'd like to simply modify the existing code to reasonably represent 802.11g. Thank you to those that responded previously! Will Spearman From sita at ece.gatech.edu Fri Jul 27 10:45:47 2007 From: sita at ece.gatech.edu (Sita S. Krishnakumar) Date: Fri, 27 Jul 2007 13:45:47 -0400 (EDT) Subject: [ns] tracing selectively Message-ID: <2810.69.136.35.147.1185558347.squirrel@secure2.ece.gatech.edu> Hello, I am running a large simulation. In order to release memory, I am selectively de-listing nodes that are not necessary. I am using trace-all and this causes a problem once a node gets eliminated. How can I selectively not trace a few nodes from the start. Majority of nodes, I would like to trace to completion. Regards, Sita From abdeljaouad at gmail.com Fri Jul 27 12:01:47 2007 From: abdeljaouad at gmail.com (Imad Abdeljaouad) Date: Fri, 27 Jul 2007 19:01:47 +0000 Subject: [ns] Matlab Prepocesses HSDPA EURANE NodeB Transmission Power Message-ID: <8e20d47b0707271201w6e2b1dd0jbfb9f99b3d02de0b@mail.gmail.com> Hi All, Looking at the Matlab files for generating input trace files for HSDPA ( using EURANE extensions), I see that the NodeB Transmission Power is set to 38dB. Please correct me if am wrong: 1- The NodeB uses its full power to transmit to users (38 dB). 2- The Multiple Access technique is not CDMA or WCDMA but I guess TDMA (since we have schedulers, NodeB transmits to one user per TTI) 3- The input trace files contain SNR values which are Powers received by the UEs. Thank you very much, please help me if you know, your help is so highly appreciated! -- best regards, ________________________ Imad Abdeljaouad From anastmarios at yahoo.gr Fri Jul 27 19:37:32 2007 From: anastmarios at yahoo.gr (Marios Anastasiou) Date: Sat, 28 Jul 2007 03:37:32 +0100 (BST) Subject: [ns] Reputed AODV, delete routes in the routing table with a given next-hop Message-ID: <377726.29752.qm@web27307.mail.ukl.yahoo.com> Dear ns-users, I am an Msc student. I am now working on my dissertation. I would like to ask for some help. I enhance AODV with a reputation based scheme. All the changes in the protocol are done in C++. Inside the AODV::recv(Packet *p, Handler*) I implement the selfish nodes. Let's say that node[5], node[7], node[10] are selfish. If they receive a packet they always drop it. All the the other nodes are well-behaved. According to the following scenario, if the packet is received by a selfish node it will drop it. Subsequently the Reputation value of the misbehaved node will be reduced in the Reputation Table of the node that forwarded the packet to the selfish node. The Reputation Table is created inside the constructor of the Class MobileNode. If the decremented Reputation value of the Misbehaved node in the Reputation Table of the node that forwarded the packet to the Misbehaved node, crosses a threshold: The node that forwarded the packet to the Selfish node calls the rt_lookup_next_hop_delete( insaddr_t id ) function in order to search inside its Routing Table and DELETE ALL the routes which have the Misbehaved node as next hop. I implemented it in Class aodv_rtable as shown below: void aodv_rtable::rt_lookup_next_hop_delete(nsaddr_t id) { aodv_rt_entry *rt = rthead.lh_first; for(; rt; rt = rt->rt_link.le_next) { if(rt->rt_nexthop == id) { LIST_REMOVE(rt, rt_link); delete rt; printf("DELETING ROUTES with next Hop Node[%d] because it is selfish\n\n", id); } // END FOR if } // END FOR for } // END FOR rt_lookup_next_hop_delete() ******************************************************************************* void AODV::recv(Packet *p, Handler*) { // AODV code .... // AODV_code else { // Check the TTL. If it is zero, then discard. if(--ih->ttl_ == 0) { drop(p, DROP_RTR_TTL); return; } } // MY_code //forwarding node, selfish if ( (index == 5) || (index == 7) || (index == 10) || ) ) { // drop the packet, reason: "BSN" By_Selfish_Node drop(p, DROP_RTR_BSN); // Decrement Reputation of forwarding node // get_mobnode_by_address(int id) takes as an argument the id of a node and returns the mobile //node's instance from the static mobile node list //decr_rep(int neigbour) takes as an argument the id of a node and decrements its Reputation value // in the reputation Table MobileNode::get_mobnode_by_address(ch->prev_hop_)->decr_rep(index); // If decremented Reputation of forwarding node < R1 (threshold): if ((MobileNode::get_mobnode_by_address(ch->prev_hop_)->get_rep(index)) < R1 ) { // DELETE routes which have the misbehaved node as next hop MobileNode::get_mobnode_by_address(ch>prev_hop_)->POINTER_TO_INSTANCE_OF_ROUTING_TABLE->rt_lookup_next_hop_delete( index ); } END FOR if ( (index == 5) || (index == 7) || (index == 10) || ) , MY_code // AODV code .... } END FOR: void AODV::recv(Packet *p, Handler*) AODV class, MobileNode class, aodv_rtable class, aodv_rt_entry class are all friends with each other. My problem is to find the POINTER_TO_INSTANCE_OF_ROUTING_TABLE in order to call rt_lookup_next_hop_delete() correctly. Thanks in advance for any help --------------------------------- ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From sungcho at umich.edu Sat Jul 28 04:11:52 2007 From: sungcho at umich.edu (Sungsoon Cho) Date: Sat, 28 Jul 2007 07:11:52 -0400 Subject: [ns] ns implementation of PARO Message-ID: <001b01c7d108$19ed63c0$6501a8c0@gigabyte> Hi, Users. I'm investigating possible improvement on PARO (power-aware route optimization). Does anyone have an ns implementation code of PARO? Or has anyone seen a website that describes PARO's procedures in detail? Thanks, Sungsoon From ualishah at gmail.com Sat Jul 28 06:45:25 2007 From: ualishah at gmail.com (Usman ALI Shah) Date: Sat, 28 Jul 2007 18:45:25 +0500 Subject: [ns] older OLSR implementations In-Reply-To: References: Message-ID: Hi, I was looking for an older implementation of OLSR which I used with ns-2.1b9a back in early 2004 for my graduation project. Now after a gap of some three years I am trying to re-run my project but cannot find the OLSR implementation that I used then. As a hint, it used the the class "NS_OLSRAgent" for olsr agent and some files named neighbor.hh and types.hhetc. Can you kindly guide me in finding the required (old) OLSR implementation. Thanks in advance P.S. Perhaps I am getting old From shamsali333 at hotmail.com Sat Jul 28 17:51:01 2007 From: shamsali333 at hotmail.com (shams ali) Date: Sun, 29 Jul 2007 00:51:01 +0000 Subject: [ns] SPIN and GEAR in ns-2.27 or ns-2.30 Message-ID: Hi ,UsersI was looking for an implementation of (SPIN and GEAR) Wireless Sensor Networks )) in ns-2.27 or in ns-2.30 Or has anyone seen a website that describes implementation procedures in detail? Thanks in advance Shams _________________________________________________________________ With Windows Live Hotmail, you can personalize your inbox with your favorite color. www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_addcolor_0607 From mcsist at yahoo.com Sun Jul 29 02:30:01 2007 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Sun, 29 Jul 2007 02:30:01 -0700 (PDT) Subject: [ns] How to calculate packet loss ratio in ns-2 In-Reply-To: <3e7df7360707040602l7555d945tf98ada4c612383a6@mail.gmail.com> Message-ID: <565068.11776.qm@web55006.mail.re4.yahoo.com> Packet loss rate (PLR - The fraction of sent data packets not received at their destination) Diana Tabet wrote: Dear Mohammed, If you get answer to your below question could you please inform me too? am interested. thank you Diana On 7/4/07, Mohammed Abu Hajar wrote: Hi ns-users, How to calculate packet loss ratio in ns-2 trace file ? what its equation? Regards --------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. --------------------------------- Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. From mikellanebe3 at yahoo.es Sun Jul 29 05:33:36 2007 From: mikellanebe3 at yahoo.es (=?iso-8859-1?q?mikel=20larra=F1aga=20negro?=) Date: Sun, 29 Jul 2007 14:33:36 +0200 (CEST) Subject: [ns] How to calculate packet loss ratio in ns-2 In-Reply-To: <565068.11776.qm@web55006.mail.re4.yahoo.com> Message-ID: <162523.65856.qm@web23411.mail.ird.yahoo.com> I have found this script, and it works well. Greetings BEGIN { for (i in send) { send[i] = 0 } for (i in recv) { recv[i] = 0 } tx = 0 drop = 0 pkt_loss = 0 } { # Trace line format: normal if ($2 != "-t") { event = $1 time = $2 if (event == "+" || event == "-") node_id = $3 if (event == "r" || event == "d") node_id = $4 flow_id = $8 pkt_id = $12 } # Trace line format: new if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 } # Store packets send time if (flow_id == flow && node_id == src && send[pkt_id] == 0 && (event == "+" || event == "s")) { send[pkt_id] = 1 # printf("send[%g] = 1\n",pkt_id) } # Store packets arrival time if (flow_id == flow && node_id == dst && event == "r") { recv[pkt_id] = 1 # printf("\t\trecv[%g] = 1\n",pkt_id) } } END { printf("%10g ",flow) for (i in send) { if (send[i] == 1) { tx ++ if (recv[i] == 0) { drop ++ # printf("pkt %g not recvd\n",i) } } } if (tx != 0) { pkt_loss = drop / tx } else { pkt_loss = 0 } printf("tx:%10g drop:%10g pkt_loss: %10g\n",tx,drop,pkt_loss*100) } Mohammed Abu Hajar escribi?: Packet loss rate (PLR - The fraction of sent data packets not received at their destination) Diana Tabet wrote: Dear Mohammed, If you get answer to your below question could you please inform me too? am interested. thank you Diana On 7/4/07, Mohammed Abu Hajar wrote: Hi ns-users, How to calculate packet loss ratio in ns-2 trace file ? what its equation? Regards --------------------------------- Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. --------------------------------- Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. --------------------------------- ?Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas. From nassimlaga at yahoo.fr Sun Jul 29 09:51:55 2007 From: nassimlaga at yahoo.fr (nassim laga) Date: Sun, 29 Jul 2007 18:51:55 +0200 (CEST) Subject: [ns] default packet size Message-ID: <179708.84035.qm@web25401.mail.ukl.yahoo.com> Hi every body, can anyone tell me where can i find or how can i set size of packets in FTP TCP configuration regards, Nassim _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail From asmuniesa at gmail.com Sun Jul 29 15:31:03 2007 From: asmuniesa at gmail.com (asmuniesa) Date: Sun, 29 Jul 2007 15:31:03 -0700 (PDT) Subject: [ns] I'm looking for a wired-cum-wireless examples Message-ID: <11850919.post@talk.nabble.com> I need some help. I am doing a "ns" study about hybrid environments but I don't find any valid wired-cum-wireless example I tried several configurations but it doesn't work in the correct way. Please contact me. Thanks for all. ______________________________________________________________________ Ho bisogno di aiuto. Sto facendo un studio su i protolli TCP su reti hybrid ma non trovo nessun esempio "wired-cum-wireless" che funzione in maniera corretta. Ho fatto abbastanza prove ma non sono riuscito a trovare quel che sia corretto. Contattami se puoi aiutarmi. Grazie mille. ______________________________________________________________________ Hola, estoy haciendo un estudio del comportamiento de diversos protocolos TCP sobre redes h?bridas pero no he podido encontrar ning?n ejemplo "wired-cum-wireless" o similar que sea valido o funcione. He realizado bastantes simulaciones y pruebas pero no he encontrado el camino correcto. Por favor si puedes proporcionarme alguna ayuda contacta conmigo. Gracias, Un saludo. ______________________________________________________________________ -- View this message in context: http://www.nabble.com/I%27m-looking-for-a-wired-cum-wireless-examples-tf4165387.html#a11850919 Sent from the ns-users mailing list archive at Nabble.com. From kamil at ucsd.edu Sun Jul 29 19:51:34 2007 From: kamil at ucsd.edu (Kamil H. Suleiman) Date: Mon, 30 Jul 2007 04:51:34 +0200 Subject: [ns] simple EURANE question Message-ID: <1185763895.31903.5.camel@hsskam001.stu.uct.ac.za> Hello guys, I've a simple question on umts assume I'm trying to send traffic on the DCH up link, from some nodes in the umts network. In the following configuration, 1. Does it mean that a node using DCH can send a maximum of only 64kbps? 2. What should be the maximum throughput of the system if I keep on increasing the number of nodes. (I couldn't a limit on the maximum) I'll greatly appreciate your response to either of the questions, Kamil #DCH configuration $ns node-config -llType UMTS/RLC/AM \ -downlinkBW 64kbs \ -uplinkBW 64kbs \ -downlinkTTI 10ms \ -uplinkTTI 10ms From tianlangeff at gmail.com Sun Jul 29 23:02:51 2007 From: tianlangeff at gmail.com (Andy_gmail) Date: Mon, 30 Jul 2007 14:02:51 +0800 Subject: [ns] Confused by rsvp/ns session-id, please help me! Message-ID: <000b01c7d26f$48456a20$6801a8c0@andy> Hi ns_users I am doing rsvp simulation in NS2. Now I'm reading the example script file in the rsvp/ns zip-file distributed for ns-2.1b8. In file "example2.tcl", there are some statements like this: # Send PATH-messages from each sender-node $ns at 1.0 "$rsvp0 sender $ses1 +500000 5000 32" $ns at 3.0 "$rsvp0 sender $ses2 +500000 5000 32" $ns at 5.0 "$rsvp0 sender $ses3 +500000 5000 32" # Reserve 0,8Mb/s for flow going to node 4. Notice that session id have # to be zero! $ns at 30.0 "$rsvp4 reserve 0 ff +800000 100000 $n0" My question is, when $rsvp4 reserve some resources for node 4, why the session id should be 0, but not other value like $ses3?? Best regards, thanks in advance. Yours, Andy From pepelouiso at yahoo.es Mon Jul 30 00:50:34 2007 From: pepelouiso at yahoo.es (Pepe Louis) Date: Mon, 30 Jul 2007 09:50:34 +0200 (CEST) Subject: [ns] How to acces neighbors nodes In-Reply-To: <200707300744.l6U7i7FF011369@gamma.isi.edu> Message-ID: <71409.56982.qm@web86807.mail.ukl.yahoo.com> Hello everyone: I'm trying to append a list of a certain mobile node's neighbors into RREQ packet using AODV. Can anybody tell me how to do it? Anyhelp or advice will be appreciate. --------------------------------- S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. From fotouhi at gmail.com Mon Jul 30 00:57:04 2007 From: fotouhi at gmail.com (hossein fotouhi) Date: Mon, 30 Jul 2007 15:57:04 +0800 Subject: [ns] how to monitor neighbour nodes traffic? Message-ID: <859560230707300057o8a1a689x140c76c535cf725d@mail.gmail.com> Hi dear friends Does anybody know how can I monitor the neibour node's traffic? I'm implementing wireless sensor network, and my modifications are in network layer. TQ -- Hossein From robin2046 at 163.com Mon Jul 30 03:24:37 2007 From: robin2046 at 163.com (=?GBK?B?u8bOsA==?=) Date: Mon, 30 Jul 2007 18:24:37 +0800 (CST) Subject: [ns] Is it a BUG in Mac802_11 to defer and back-off in a same timer? In-Reply-To: References: Message-ID: <204655980.2354731185791077834.JavaMail.coremail@bj163app106.163.com> Hi All, I've been going through the source code of Mac802_11. And I find that in the standard distribution of ns when it's necessary to do deferral and back-off together, it often does like these: *mhBackoff_.start(cw_, is_idle(), phymib_.getDIFS()); *mhDefer_.start(phymib_.getDIFS() + rTime); But back-off procedure is interruptable and deferral can not be ¡°interrupted¡±, is this a BUG to use one timer to do two things? i.e. If, in ns, we¡¯re backing off for a time of DIFS + rTime, and is interrupted when the time hasn¡¯t elapsed for more than DIFS, so the left time is rTime + sometime. And at the next time when we want to access the medium, the deferral time SHOULD be DIFS + REMAINING_TIME. But now the REMAINING_TIME equals to rTime + sometime, which is greater than the CW we chose before. I am not sure whether I was right. I hope someone can help me. Any comment will be welcomed. Best regards, Huang Wei From nassimlaga at yahoo.fr Mon Jul 30 11:22:42 2007 From: nassimlaga at yahoo.fr (nassim laga) Date: Mon, 30 Jul 2007 20:22:42 +0200 (CEST) Subject: [ns] 802.11 bandwidth setting Message-ID: <363653.41734.qm@web25410.mail.ukl.yahoo.com> Hi all, Can anyone tell me how to set the bandwidth of a wireless link (to 11Mbyte/s for example). I know there is 802_11 set dataRate_ ... but i'm not sure that it works? regards, Nassim --------------------------------- Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail From iftikhar_a81 at yahoo.com Mon Jul 30 11:52:56 2007 From: iftikhar_a81 at yahoo.com (ifti) Date: Mon, 30 Jul 2007 11:52:56 -0700 (PDT) Subject: [ns] Installation problems of nist module on ns-2.29 In-Reply-To: References: Message-ID: <11868267.post@talk.nabble.com> Dear ns2 users, i install the nist module "mobility packet for ns2" on ns-2.31. i can run examples like wimax.tcl and l2handover.tcl. but unable to run examples in hsntg/wimax/handover-wifi-wimax like for example wifi_wimax_nam.tcl.it didn't work and the error message shown. "invalid command name `agent/ND`"... Any information regarding this will be really appreciated. Thanks in advance. ifti Ying Hou wrote: > > > > Dear ns2 users, > I am trying to install the nist module--"mobility packet for ns2" on > ns-2.29. > I download the packet from official website and replace it with the > original > ns-2.29 and did following: > 1. ./install > 2. recomplied: make clean > 3. ./configure > 4. make > After that the original examples can be executed without any problem, but > when > I run the example "testMIH.tcl", it didn't work and the error message > shows > "invalid command name `agent/ND`"... > Any information regarding this will be really appreciated. Thanks in > advace. > > Best regards, > Ying HOU > -- View this message in context: http://www.nabble.com/Installation-problems-of-nist-module-on-ns-2.29-tf3840029.html#a11868267 Sent from the ns-users mailing list archive at Nabble.com. From mohur6 at yahoo.com Mon Jul 30 13:41:28 2007 From: mohur6 at yahoo.com (mohur !!) Date: Mon, 30 Jul 2007 13:41:28 -0700 (PDT) Subject: [ns] help !! " nam: couldn't connect to display:0.0 " Message-ID: <436596.34658.qm@web57112.mail.re3.yahoo.com> hi, please help. I'm new to ns-2. I use cygwin and ns-2.29. I had my display set using the shell command export DISPLAY=:0.0 and when I run my ns script file, its gives the following message. " nam: couldn't connect to display:0.0 " why is this happenning? Can somebdy please help me fix this issue? I tried to check what my display was set to previously using the shell command echo $DISPLAY, and its was set to nothing, what should i do? anybody? thankyou lots, Mohur Babu ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ From lentracy at u.washington.edu Mon Jul 30 14:31:30 2007 From: lentracy at u.washington.edu (Leonard Tracy) Date: Mon, 30 Jul 2007 14:31:30 -0700 Subject: [ns] Simulation error Message-ID: <46AE58B2.8090109@u.washington.edu> Hi, I am new to this mailing list and to NS 2. I am trying to use NS 2 to research new MAC protocols for sensor networks. The majority of my simulations run without error, but sometimes the simulation locks and the trace file grows to many gigabytes. When I look in the trace file it is full of: D 125.000000000 _2_ IFQ END 0 tcp 0 [0 0 0 0] ------- [0:0 0:0 0 0] [0 0] 0 0 The simulation I'm currently running has four nodes total. Three of them use CBR via UDP to send data to the 4th node. I'm wondering if anyone else has had a similar problem or a may know a solution. Thanks for any help, Leonard From nicolas.fenick at gmail.com Mon Jul 30 14:31:25 2007 From: nicolas.fenick at gmail.com (Ciro Nicolas Correa Fenick) Date: Mon, 30 Jul 2007 17:31:25 -0400 Subject: [ns] Problems with 802.11e EDCF and ns 2.31 Message-ID: Hello guys, i'm write from chile I have been several days fighting with this patch (802.11e EDCF) , but nothing work. here this the problem when i doing "make" .... In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/stream.h:31, from mac/802_11e/mac-802_11e.cc:8: /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. mac/802_11e/mac-802_11e.cc: In member function 'void Mac802_11e::transmit(Packet*, double)': mac/802_11e/mac-802_11e.cc:72: error: 'ETHER_HDR_LEN11' was not declared in this scope mac/802_11e/mac-802_11e.cc: At global scope: mac/802_11e/mac-802_11e.cc:113: error: scalar object 'EDCF_MMIB' requires one element in initializer mac/802_11e/mac-802_11e.cc:113: confused by earlier errors, bailing out make: *** [mac/802_11e/mac-802_11e.o] Error 1 I dont know what to do with this. Saludos a todos desde la Univerisad Diego Portales en Chile! From balkrishna.gukhool at gmail.com Mon Jul 30 19:12:02 2007 From: balkrishna.gukhool at gmail.com (Balkrishna Gukhool) Date: Mon, 30 Jul 2007 22:12:02 -0400 Subject: [ns] Error when using nsmiracle Message-ID: <1185e9e10707301912l419dc604p46445034add25215@mail.gmail.com> Hi all, I have tried installing the nsmiracle patch for ns-2.31. I have the followed the instructions on the "mini howto" web page. I have been able to successfully patch and test the dynamic libraries patch. However, even though I have all the correct results on installing dei80211mr, when I try running the adhoc_tcp.tcl script, I get an error message telling me that the libdei80211mr.so file is missing. I have double-checked the instructions, and re-run the setup several times, but still the problem persists. I am using Cygwin on a Windows XP Pro Sp2 PC, and ns-allinone-2.31. Could anyone help on this? It is much appreciated. Thanks. Balkrishna. From tjj20022000 at yahoo.com.cn Mon Jul 30 19:14:00 2007 From: tjj20022000 at yahoo.com.cn (jenny cheb) Date: Tue, 31 Jul 2007 10:14:00 +0800 (CST) Subject: [ns] add a voip module to ns: [all-recursive] error 1 Message-ID: <543191.91259.qm@web15814.mail.cnb.yahoo.com> hello, i want to add a voip module to ns2,but after i add the byteswap.h to the cgywin,because the cgwin obviously not include the byteswap.h firest,but in the voip module ,it used this headfile,now it came out this problem: make[2]:leaving directory '/home/sophia/ns-allinone-2.28/ns-2.28/apps/playout/examples' make[1]:***[all-recursive] error 1 make[1]:leaving directory ''/home/sophia/ns-ns-allinone-2.28'/ns-2.28/app/playout' make:***[all] error 2 what's the problem with this ,i just know the voip module maybe should install in the redhat os ,but i use the cygwin, but i have add the headfiles which doesn't include in the cygwin but include in the redhat , what can i do next? help --------------------------------- ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ From teerawat at ece.ubc.ca Mon Jul 30 19:50:32 2007 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Mon, 30 Jul 2007 19:50:32 -0700 (PDT) Subject: [ns] Simulation error In-Reply-To: <46AE58B2.8090109@u.washington.edu> Message-ID: Dear Leonard, $ns trace-all generally generates complete information in the trace file. Unfortunately, you usually don't need most of it. A better way is not to use it. If you are interested in for example if you are interested in how seq. no. of TCP changes, you may use $tcp trace t_seqno_ Another way is to print out your own text by modifying C++ source code (e.g., using cout). Cheers, Teerawat On 7/30/2007, "Leonard Tracy" wrote: > > >Hi, > >I am new to this mailing list and to NS 2. I am trying to use NS 2 to >research new MAC protocols for sensor networks. The majority of my >simulations run without error, but sometimes the simulation locks and >the trace file grows to many gigabytes. When I look in the trace file >it is full of: > >D 125.000000000 _2_ IFQ END 0 tcp 0 [0 0 0 0] ------- [0:0 0:0 0 0] [0 >0] 0 0 > > >The simulation I'm currently running has four nodes total. Three of >them use CBR via UDP to send data to the 4th node. I'm wondering if >anyone else has had a similar problem or a may know a solution. > >Thanks for any help, >Leonard > > From robin2046 at 163.com Mon Jul 30 23:47:13 2007 From: robin2046 at 163.com (=?GBK?B?u8bOsA==?=) Date: Tue, 31 Jul 2007 14:47:13 +0800 (CST) Subject: [ns] Why not separate the using of Defer Timer and Backoff Timer? In-Reply-To: References: Message-ID: <22900503.1483161185864433108.JavaMail.coremail@bj163app26.163.com> Hi All, I am reading the Mac802_11 code of NS2.31 and got confused when I saw DeferTimer is used to defer for DIFS+CW and the same with BackoffTimer. I think there maybe some bug to use one timer to do two jobs(defer and backoff) as I have already post a message inhttp://mailman.isi.edu/pipermail/ns-users/2007-July/060761.html. I wonder why not to use two separated timers in sequence? i.e. instead of calling *mhBackoff_.start(cw_, is_idle(), phymib_.getDIFS()); *mhDefer_.start(phymib_.getDIFS() + rTime); Why not just call *mhBackoff_.start(cw_, is_idle(), 0)after calling *mhDefer_.start(phymib_.getDIFS())? Best regards, HuangWei From wiethoel at tkn.tu-berlin.de Tue Jul 31 00:00:02 2007 From: wiethoel at tkn.tu-berlin.de (Sven Wiethoelter) Date: Tue, 31 Jul 2007 09:00:02 +0200 Subject: [ns] Problems with 802.11e EDCF and ns 2.31 In-Reply-To: References: Message-ID: On Jul 30, 2007, at 11:31 PM, Ciro Nicolas Correa Fenick wrote: > > Hello guys, i'm write from chile > I have been several days fighting with this patch (802.11e EDCF) , but > nothing work. Hi, just use: - ns-2.28 for the EDCA patch, or - ns-2.26 for the (mature) EDCF model. Best regards, Sven > > here this the problem when i doing "make" > .... > In file included from > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ > backward/stream.h:31, > > from mac/802_11e/mac-802_11e.cc:8: > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ > backward/backward_warning.h:32:2: > warning: #warning This file includes at least one deprecated or > antiquated > header. Please consider using one of the 32 headers found in section > 17.4.1.2 of the C++ standard. Examples include substituting the > header > for the header for C++ includes, or instead of the > deprecated header . To disable this warning use > -Wno-deprecated. > mac/802_11e/mac-802_11e.cc: In member function 'void > Mac802_11e::transmit(Packet*, double)': > mac/802_11e/mac-802_11e.cc:72: error: 'ETHER_HDR_LEN11' was not > declared in > this scope > mac/802_11e/mac-802_11e.cc: At global scope: > mac/802_11e/mac-802_11e.cc:113: error: scalar object 'EDCF_MMIB' > requires > one element in initializer > mac/802_11e/mac-802_11e.cc:113: confused by earlier errors, bailing > out > make: *** [mac/802_11e/mac-802_11e.o] Error 1 > > > I dont know what to do with this. > > Saludos a todos desde la Univerisad Diego Portales en Chile! > ----------------------- Sven Wiethoelter, http://www.tkn.tu-berlin.de/~wiethoel Telecommunication Networks Group (TKN) / TU Berlin From olfa.samet at gmail.com Tue Jul 31 00:18:04 2007 From: olfa.samet at gmail.com (samet olfa) Date: Tue, 31 Jul 2007 09:18:04 +0200 Subject: [ns] module installation problem Message-ID: <581216a90707310018g49b3b25ev71c9ef4f7522a3a2@mail.gmail.com> hi all ns users I'm working on DTN networks. i have found a patch for ns2.27 that implement a party of this architecture but when i installed it i had the following error $ ns dtn-demo-large.tcl invalid command name "Agent/DTNAgent" while executing "Agent/DTNAgent set custodian_ 1" can someone help me please. thanks in advance olfa From skitmax81 at yahoo.it Tue Jul 31 02:08:33 2007 From: skitmax81 at yahoo.it (ComputerScienceStudent) Date: Tue, 31 Jul 2007 02:08:33 -0700 (PDT) Subject: [ns] Segmentation fault with WiMAX.. Message-ID: <11920664.post@talk.nabble.com> Hi all! I'm doing a work for an universitary course where I've to model a network via WiMAX; in the specific, I've to substitute the central bottleneck from wired to wireless. The schema is that two nodes send their own packets through the network to an other node that communicates to the one on the other side; this receive the data and dispatches bits to the two related nodes to the senders. Here I upload my tcl file.. http://www.nabble.com/file/p11920664/MixMax_Quaglia.tcl MixMax_Quaglia.tcl Please, I search help here because nobody can do anything for me in my university -holidays! :,( -.. -- View this message in context: http://www.nabble.com/Segmentation-fault-with-WiMAX..-tf4191758.html#a11920664 Sent from the ns-users mailing list archive at Nabble.com. From KXR387 at bham.ac.uk Tue Jul 31 02:48:36 2007 From: KXR387 at bham.ac.uk (Keita Rose) Date: Tue, 31 Jul 2007 10:48:36 +0100 Subject: [ns] setdest problems... Message-ID: <27913D92A4385E4D8C59F3E7ECA585FC080A1D@engmail3.adf.bham.ac.uk> Hi all, I have been running some Mobile IP simulations for various levels of mobility 20%, 40% etc on a network with 26 fixed nodes and 130 mobile nodes. I am using a RWP model to generate the mobility patterns but I have found that as mobility increases simulations would hang and not complete. Under closer examination I have found that the might be because of something in setdest, so is there something I should be doing that I am not?? I am using ns-2.29 under both Linux and Solaris... Keita From lentracy at u.washington.edu Tue Jul 31 11:06:07 2007 From: lentracy at u.washington.edu (Leonard Tracy) Date: Tue, 31 Jul 2007 11:06:07 -0700 Subject: [ns] Simulation error In-Reply-To: References: Message-ID: <46AF7A0F.8080308@u.washington.edu> First I should have mentioned that I'm running NS 2.31 on Ubuntu 7.04 The error appears to be more than just writing to the trace file. With trace-all, when the error occurs, the file will grow as long as I allow the simulation to stay hung. One time, this used up the remaining disk space on my 40 gig linux partition (about 30 gig). When the simulation runs normally, the trace all file ends up being maybe 1 or 2 meg. The error occurs less than 1% of the time. Leonard Teerawat Issariyakul wrote: > Dear Leonard, > > $ns trace-all generally generates complete information in the trace file. > Unfortunately, you usually don't need most of it. A better way is not > to use it. If you are interested in for example if you are interested in > how seq. no. of TCP changes, you may use > > $tcp trace t_seqno_ > > Another way is to print out your own text by modifying C++ source code > (e.g., using cout). > > Cheers, > Teerawat > > On 7/30/2007, "Leonard Tracy" wrote: > > >> Hi, >> >> I am new to this mailing list and to NS 2. I am trying to use NS 2 to >> research new MAC protocols for sensor networks. The majority of my >> simulations run without error, but sometimes the simulation locks and >> the trace file grows to many gigabytes. When I look in the trace file >> it is full of: >> >> D 125.000000000 _2_ IFQ END 0 tcp 0 [0 0 0 0] ------- [0:0 0:0 0 0] [0 >> 0] 0 0 >> >> >> The simulation I'm currently running has four nodes total. Three of >> them use CBR via UDP to send data to the 4th node. I'm wondering if >> anyone else has had a similar problem or a may know a solution. >> >> Thanks for any help, >> Leonard >> >> >> From pepelouiso at yahoo.es Tue Jul 31 20:24:12 2007 From: pepelouiso at yahoo.es (sixte) Date: Tue, 31 Jul 2007 20:24:12 -0700 (PDT) Subject: [ns] Access of a neighbor list of a node Message-ID: <11939028.post@talk.nabble.com> Hello everyone: I'm trying to access a neighbor list of a node, but i don't know how to do it. I will appreciate a lot your help, since i can t make advance without that. Thanks in advance -- View this message in context: http://www.nabble.com/Access-of-a-neighbor-list-of--a-node-tf4197806.html#a11939028 Sent from the ns-users mailing list archive at Nabble.com. From fotouhi at gmail.com Tue Jul 31 21:12:33 2007 From: fotouhi at gmail.com (hossein fotouhi) Date: Wed, 1 Aug 2007 12:12:33 +0800 Subject: [ns] delay packet in intermediate nodes Message-ID: <859560230707312112v7bbdf548sf1e84de28af8f358@mail.gmail.com> Hi, How can I delay packets in their routes from source to destination in multi-hop network? I want to keep the packets in each intermediate nodes as long as a special time and after elapsing that time, let the packet be sent to next hope. If anybody has a recommendation or guidance, plz send it to me. And also I should use a timer for each packet, but I don't know how can I implement these. I found a source code from this website "http://www.cs.binghamton.edu/~kliu/" as follow : -------------------------------------------------------------------------------------------------------------------------------- The Generic implementation of Multiple (a lot) timers Usually, for one protocol implementation, we need several timers. According to NS2's implementation, for each timer calling different firing function, one more class need to be declared and defined, which is boring and bothering. In fact, we can use the *pointer to function* to same time and coding (How to do in with C++ template, I am not sure.). As below: - Suppose you have one agent as *TestAgent*, and many firing functions, you can define a pointer to any firing function as typedef void(TestAgent::*firefunction)(void); - Then, you can create a general (generic) Timer class for all timers, as class TestTimer : public TimerHandler{ public: TestTimer(TestAgent *a, firefunction f) : TimerHandler() { a_ = a; firing_ = f; } private: virtual void expire(Event *e); TestAgent *a_; firefunction firing_; }; - Ususally, when we create a timer, we need to define the *expire*function to call specific firing function. Now we just need it to call the *Generic* firing funtion pointer, as void TestTimer::expire(Event *){ (a_->*firing_)(); } - Finally, when we need a specific timer calling a specific firing funtion, other than what we ususally do as in NS2, we now just need to declare a new timer as an instance of the Generic Timer, and initialize it in TestAgent's constructor, as - In TestAgent's head file (.h file): class TestAgent : public Agent { ... TestTimer timerA_; TestTimer timerB_; ... void firingA(); // these are 2 different firing functions void firingB(); ... }; - Then initialization in .cc file as : TestAgent::TestAgent(): Agent(), ... timerA_(this, &TestAgent::firingA), timerB_(this, &TestAgent::firingB), ... { ... } - Even you have 100 timers calling 100 different firing functions in the same agent, you just need what I have shown you here to create *Only ONE* timer class, with only one definition of expire function. ------------------------------------------------------------------------------------------------------------------------------------- Thanks a lot From fotouhi at gmail.com Tue Jul 31 23:35:06 2007 From: fotouhi at gmail.com (hossein fotouhi) Date: Wed, 1 Aug 2007 14:35:06 +0800 Subject: [ns] error in TCL code Message-ID: <859560230707312335k3357c53dwc228d2f475655238@mail.gmail.com> Hi, I have added a routing to ns2 ( I dont write it by myself ;) ). After making the objects i try to run the TCL code. I put an IF state in the beginning of the file as follow: if { $argc < 2 } { puts "Usage: " exit 0 } but when i run this, it exits and show me the phrase in "puts" command. I dont know how can i find these two arguments, and why the $argc has the value less than 2. I put the related files in the right directories also. Is it possible in spite of making the objects, it has still problem to connect the files? tq very much