[ns] Ns-users Digest, Vol 21, Issue 22
Brijesh Jadav
jadavbrijesh at gmail.com
Thu Sep 22 01:48:23 PDT 2005
problem in ns emulation
i want to print the packet's ip addresses which are captured by the
packet captute library in my trace file without filtering the packets.
how do i do it?
On 9/22/05, ns-users-request at isi.edu <ns-users-request at isi.edu> wrote:
> Send Ns-users mailing list submissions to
> ns-users at isi.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.isi.edu/mailman/listinfo/ns-users
> or, via email, send a message with subject or body 'help' to
> ns-users-request at isi.edu
>
> You can reach the person managing the list at
> ns-users-owner at isi.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ns-users digest..."
>
>
> Today's Topics:
>
> 1. Path selection (Bikramjit Singh Walia _01d07016_)
> 2. Path selection (Bikramjit Singh Walia _01d07016_)
> 3. Re: Path selection (Sasan)
> 4. simulation of packet loss in wireless sensor network
> (Muhammad Umar)
> 5. Re: make failure in ns2.28!!! (Mohamed Ismail)
> 6. Suggestions in modifying 802.11 mac (Andy Quek)
> 7. Possible bug in TCP? (Neill Whillans)
> 8. Question on Poisson Traffic (wilson woon)
> 9. How to increase the com. range? (802.11) (Bahman Kalantari Sabet)
> 10. How does Back-off procedure work in NS? (802.11)
> (Bahman Kalantari Sabet)
> 11. Increasing the com. range and BOOM! (Bahman Kalantari Sabet)
> 12. ns2.28 & gcc4.0.1 (Andy Quek)
> 13. how to change intial tcp window size (vijay reddy)
> 14. Re: ns2.28 & gcc4.0.1 (Mathieu Lacage)
> 15. Re: [Answer] How to install the tcl-debug onto Cygwin + ns2
> release 2.28 (Pedro Estrela)
> 16. Meaning of some lines in tracefile (Ittipong Khemapech)
> 17. Ns-2.28 install problem - Fedora core 4 Linux (Grepet Cyril)
> 18. Help "Link Configuration" (Fernando Maruyama Salgado)
> 19. [bug] ns-2.27 fails to build under Linux (Samer BALI)
> 20. Re: Suggestions in modifying 802.11 mac (Zubair Ahmad)
> 21. Random variables (karim zerioh)
> 22. Problem with make nam. HELP! (Bruno Couto)
> 23. regarding packet delivery ratio of DSDV (Geetha Jayakumar)
> 24. DSR TORA and directed-diffusion script for Wireless node
> (Ankit Mehta)
> 25. UDP and TCP in MIP simulation (Laura Martinez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 21 Sep 2005 00:58:27 +0530 (IST)
> From: Bikramjit Singh Walia _01d07016_ <bikram at ee.iitb.ac.in>
> Subject: [ns] Path selection
> Cc: ns-users at ISI.EDU
> Message-ID: <Pine.LNX.4.61.0509210055430.5370 at gayatri.ee.iitb.ac.in>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> Hi,
>
> If I have the topology
>
>
> 1 2
> 0---------------0
> | |
> | |
> | |
> | |
> | |
> | |
> O---------------O
> 4 3
>
> with all links = 0.5 Mbps; how does a packet which has to reach 3 from 1
> choose whether to go through 2 or 4 ?
>
> Can we influence this choice by tweaking any of the parameters ?
>
> Regards,
> Bikram
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 21 Sep 2005 01:45:11 +0530 (IST)
> From: Bikramjit Singh Walia _01d07016_ <bikram at ee.iitb.ac.in>
> Subject: [ns] Path selection
> To: ns-users at ISI.EDU
> Message-ID: <Pine.LNX.4.61.0509210144560.5370 at gayatri.ee.iitb.ac.in>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> Hi,
>
> If I have the topology
>
>
> 1 2
> 0---------------0
> | |
> | |
> | |
> | |
> | |
> | |
> O---------------O
> 4 3
>
> with all links = 0.5 Mbps; how does a packet which has to reach 3 from 1
> choose whether to go through 2 or 4 ?
>
> Can we influence this choice by tweaking any of the parameters ?
>
> Regards,
> Bikram
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 20 Sep 2005 22:04:49 +0100
> From: Sasan <sasanplus at gmail.com>
> Subject: Re: [ns] Path selection
> To: Bikramjit Singh Walia _01d07016_ <bikram at ee.iitb.ac.in>
> Cc: ns-users at ISI.EDU
> Message-ID: <c01e8e5d0509201404a8746b3 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I suppose that would then consider other metrics such as QoS, link state,
> stability, etc
> S.
>
> On 9/20/05, Bikramjit Singh Walia _01d07016_ <bikram at ee.iitb.ac.in> wrote:
>
> >
> >
> > Hi,
> >
> > If I have the topology
> >
> >
> > 1 2
> > 0---------------0
> > | |
> > | |
> > | |
> > | |
> > | |
> > | |
> > O---------------O
> > 4 3
> >
> > with all links = 0.5 Mbps; how does a packet which has to reach 3 from 1
> > choose whether to go through 2 or 4 ?
> >
> > Can we influence this choice by tweaking any of the parameters ?
> >
> > Regards,
> > Bikram
> >
> >
>
>
> --
> Plan for things to go wrong, Design for things to go right
> S+
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 21 Sep 2005 02:31:03 +0500
> From: Muhammad Umar <muhammadumar at gmail.com>
> Subject: [ns] simulation of packet loss in wireless sensor network
> To: ns-users at ISI.EDU
> Message-ID: <6617065e050920143126f926c3 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi ns-users,
> I am working on a robust routing protocol for WSNs. For that I have to
> simulate packet losses in the network. I want to drop the packets in the
> network according to some probability function e.g 5% of the reports sent to
>
> the sink should get dropped on their way to the sink. How can I implement
> this ????
> Secondly can the wirelessphysical interface help in this regard, e.g Can I
> manipulate the value of the RXthreshold parameter inorder to attain the
> desired packet loss ( i-e The wireless interface should drop the packet if
> the received signal strength is less than a required minimum).
> Regards,
> umer.
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 20 Sep 2005 19:03:20 +0300
> From: "Mohamed Ismail" <mohismail at gmail.com>
> Subject: Re: [ns] make failure in ns2.28!!!
> To: "xuzy" <xuzy_sun1 at 163.com>
> Cc: NS group <ns-users at ISI.EDU>
> Message-ID: <00bb01c5be69$cf330cc0$8929cdc4 at yassercomp>
> Content-Type: text/plain; charset="windows-1256"
>
> You should search for IP_HDRINCL in the file called
> <ns-directory>/emulate/net-ip.cc
> IP_HDRINCL is not a file, it seems that it is a variable declared in
> net-ip.cc
>
> Mohamed Ismail
> ----- Original Message -----
> From: xuzy
> To: ns-users at ISI.EDU
> Sent: Tuesday, September 20, 2005 5:45 AM
> Subject: [ns] make failure in ns2.28!!!
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
> Hi:
> After "config" command, run "make" in cygwin+win2000+ns2.28. there are
> some error :
>
> "......
> emulate/net-ip.cc: In member function `virtual int IPNetwork::open(int)':
> emulate/net-ip.cc:725: error: `IP_HDRINCL' undeclared (first use this
> function)
> emulate/net-ip.cc:725: error: (Each undeclared identifier is reported only
> once
> for each function it appears in.)
> make: *** [emulate/net-ip.o] Error 1"
>
> I search "IP_HDRINCL" in dir ns-2.28 , but failed. How to correct? Any
> idea is welcomed! Thanks!
>
> xuzy
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 21 Sep 2005 13:35:52 +0800
> From: Andy Quek <andy80 at gmail.com>
> Subject: [ns] Suggestions in modifying 802.11 mac
> To: ns-users at ISI.EDU
> Message-ID: <5e11ed6b05092022351812a1ff at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Goodday everyone,
> Finally, i have manged to get my simulation done.
> What my simluation does is that i have setup 7 nodes, all 200 metres apart
>
> each and all connected wire wireless 802.11. Adhoc routing is DSR. There are
>
> 2 tcp connections, tcp1 and tcp2. Source of tcp1 is at node 0, and tcpSink1
>
> is at node 4. Source of tcp2 is at node 5 and tcpSink2 is at node 6. 2 FTP
> sources are also created for each of the tcp connections respectively. The
> simulation time is set at 10. ftp1 will start at time 1 and end at time 10.
>
> ftp2 will start at time 5 and end at time 8. Simulation runs fine and i have
>
> got my trace files.
> I plotted the throughput graphs with tracegraph (wonderful tool!) and my
> graph shows that when ftp2 starts to send at time 5, ftp1 will be "switched"
>
> off and when ftp2 has finished sending, ftp1 will resume and finish at time
>
> 10. in other words, i have shown that 2 tcp connection cannot co-exist.
> The next part of my experiment is to attempt to modify the mac of 802.11 to
>
> change the backoff time so as to allow both tcp connections to co-exist. Any
>
> suggestions on how to approach this?
> Cheers, thanks everyone for all the help which made my simulation
> possible,
> Andy
>
>
> --
> Would you like a Google Mail account with 1GB of email space?
> http://www.gmail.com
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 21 Sep 2005 10:08:29 +0200
> From: Neill Whillans <neill.whillans at ti-wmc.nl>
> Subject: [ns] Possible bug in TCP?
> To: ns-users at ISI.EDU
> Message-ID: <433114FD.6050502 at ti-wmc.nl>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> I have made a new traffic generator (based on the existing Pareto TG)
> that has a Pareto based 'on' period and an Exponential based 'idle'
> period. Within the TG I made a log of the times at which packets were
> sent to the TCP agent (Agent/TCP). This allowed me to determine the
> amount of TCP packets waiting at the Agent at any particular time.
>
> My TCP Agent was set with syn_ equal to 'true', and I noticed that if
> the SYN packet was retransmitted due to congestion then it increased the
> number of actual traffic packets in the TCP Agent by 1 for each
> retransmission.
>
> If I trace the traffic from the generator to the TCP Agent then I see
> that the variable curseq_ (in the TCP Agent) is incremented for every
> packet that arrives, so I assume that this is the counter that keeps
> track of the number of TCP packets that have still to be sent.
>
> Now if I look at the case were the sequence number is 0, and syn_ is
> true, in TcpAgent::output(), I see that this counter (curseq_) is
> incremented:
>
> /* Check if this is the initial SYN packet. */
> if (seqno == 0) {
> if (syn_) {
> databytes = 0;
> curseq_ += 1;
> hdr_cmn::access(p)->size() = tcpip_base_hdr_size_;
> }
>
> Is this really correct to do, as the SYN packet is not generated by the
> TG (or application) and it shouldnt (in my opinion) add to the counter
> of packets from the TG.
>
> Whenever I remove the increment from the SYN check in TcpAgent::output()
> then the simulation behaves as expected and the number of generated
> packets from the TG is the actual amount sent out by the TCP Agent and
> at the correct times (according to the tracing in the TG).
>
> I couldnt check the CVS because it appears to be now unavailable, but am
> I correct? Or am I missing something?
>
> I hope to check if the 'bug' appears when using a standard Pareto-based
> TG, just to confirm that its not a mistake in my new TG, but I'm pretty
> sure my new TG is working correctly.
>
> /Neill
>
>
> ------------------------------------------------
>
> Neill Whillans
> Advanced Signal Processing Engineer
> Twente Institute for Wireless and Mobile Communications (WMC)
> The Netherlands
> http://www.ti-wmc.nl
> ------------------------------------------------
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 21 Sep 2005 01:57:36 -0700 (PDT)
> From: wilson woon <magicbullet2002 at yahoo.com>
> Subject: [ns] Question on Poisson Traffic
> To: ns-users at ISI.EDU
> Message-ID: <20050921085736.45033.qmail at web40529.mail.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi all,
>
> I'm doing a simulation on IEEE 802.15.4. I'm
> simulating the MAC layer using poisson traffic. I'm
> not sure of the purpose of the variable idle_time_ .
> Can anyone tell me? Could it be delay time? Here's the
> full declaration (from tcl script):
>
> proc poissontraffic { src dst interval starttime } {
> global ns_ node_
> set udp($src) [new Agent/UDP]
> eval $ns_ attach-agent \$node_($src) \$udp($src)
> set null($dst) [new Agent/Null]
> eval $ns_ attach-agent \$node_($dst) \$null($dst)
> set expl($src) [new
> Application/Traffic/Exponential]
> eval \$expl($src) set packetSize_ 70
> eval \$expl($src) set burst_time_ 0
> eval \$expl($src) set idle_time_ [expr
> $interval*1000.0-70.0*8/250]ms ;# idle_time +
> pkt_tx_time = interval
> eval \$expl($src) set rate_ 250k #250 kbps in 2.4
> GHz ISM band
> eval \$expl($src) attach-agent \$udp($src)
> eval $ns_ connect \$udp($src) \$null($dst)
> $ns_ at $starttime "$expl($src) start"
> }
>
> I'm looking for the meaning of the line eval
> \$expl($src) set idle_time_ [expr
> $interval*1000.0-70.0*8/250]ms ;# idle_time +
> pkt_tx_time = interval
>
> THank you
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 21 Sep 2005 11:04:29 +0100
> From: "Bahman Kalantari Sabet" <behmans at hotmail.com>
> Subject: [ns] How to increase the com. range? (802.11)
> To: ns-users at ISI.EDU
> Message-ID: <BAY101-F357097326A747BBB727609B1940 at phx.gbl>
> Content-Type: text/plain; format=flowed
>
> Hi everyone,
>
> Could anyone pleaaase tell me how to increase the communication range
> between two mobile nodes in a 802.11 network?
>
> The max I could go sofar is 559 metres.
> I have changed Pt_ , RXThreshold_ and MaxPorpagationDelay_ , is there
> anything else?
>
> Regards,
>
> Thanks.
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 21 Sep 2005 11:12:26 +0100
> From: "Bahman Kalantari Sabet" <behmans at hotmail.com>
> Subject: [ns] How does Back-off procedure work in NS? (802.11)
> To: ns-users at ISI.EDU
> Message-ID: <BAY101-F654DBC354052AA5722A0DB1940 at phx.gbl>
> Content-Type: text/plain; format=flowed
>
> Dear all,
>
> I was wondering if any of you knows how the back-off procedure works in NS.
>
> In NS, as far as I understand, in terms of signaling, we have the followings
>
> respectively:
>
> (DIFS), RTS, (SIFS), CTS, (SIFS), tcp, (SIFS), ACK and then, (DIFS +
> Back-off timer), RTS,..... etc.
>
> How and where does NS calculate this Back-off time?
>
> Thanks,
>
> Bahman.
>
>
>
>
> ------------------------------
>
> Message: 11
> Date: Wed, 21 Sep 2005 11:19:28 +0100
> From: "Bahman Kalantari Sabet" <behmans at hotmail.com>
> Subject: [ns] Increasing the com. range and BOOM!
> To: ns-users at ISI.EDU
> Message-ID: <BAY101-F145E46E7A01E9093941658B1940 at phx.gbl>
> Content-Type: text/plain; format=flowed
>
> Hi again,
>
> I thought may be I should put my question differently, in order to increase
>
> the probability
> of someone answering my question!
>
> I have two mobile nodes, and I am using DSSS 802.11. My aim is to increase
>
> the distance
> between these two nodes and show that by this change, the throughput will
> accordingly
> decrease!
>
> However, I dont know why, but in NS, either I have max throughput or I get
> absolutely
> nothing! I thought this should be gradual and not a sudden death!
>
> Any ideas please?
>
> Thanks,
>
> Bahman.
>
>
>
>
> ------------------------------
>
> Message: 12
> Date: Wed, 21 Sep 2005 19:05:44 +0800
> From: Andy Quek <andy80 at gmail.com>
> Subject: [ns] ns2.28 & gcc4.0.1
> To: ns-users at ISI.EDU
> Message-ID: <5e11ed6b05092104054ea5164 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Goodday everyone,
>
> Recently upgraded to this McAfee internet security suite.. and Xwindows in
> cygwin could not run! Even i tried disabling the antivirus, privacy service
> and firewall, Xwindows still does not run.. and that means, no NAM, no
> Xgraph, and no Xedit and also Xterm... sigh.. I tried looking around, but
> could no find a solution for it.
>
> Seems like my only option is to try and get ns2-2.28 running on my Mandrake
> partition which uses gcc4.0.1. Could anyone advise me on what are the
> patches i need to make sure ns2.28 complies smoothly on gcc4.0.1? I tried
> that before and i get tons of errors building ns2.28 (tcl tk and the others
> were fine) I have read that there are quite a few patches for ns and
> gcc4.0.1 but they'll all just confusing me.
>
> Cheers,
> Nd
>
> --
> Would you like a Google Mail account with 1GB of email space?
> http://www.gmail.com
>
>
> ------------------------------
>
> Message: 13
> Date: Wed, 21 Sep 2005 04:31:48 -0700 (PDT)
> From: vijay reddy <bviijay at yahoo.com>
> Subject: [ns] how to change intial tcp window size
> To: ns-users at ISI.EDU
> Message-ID: <20050921113148.3774.qmail at web51705.mail.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> i want to change intial window size from one to four in TCP.
> i modified window_Init_ variable but it is not reflected.
> please give reply.
>
>
> ---------------------------------
> Yahoo! for Good
> Click here to donate to the Hurricane Katrina relief effort.
>
> ------------------------------
>
> Message: 14
> Date: Wed, 21 Sep 2005 13:42:35 +0200
> From: Mathieu Lacage <Mathieu.Lacage at sophia.inria.fr>
> Subject: Re: [ns] ns2.28 & gcc4.0.1
> To: andy80 at gmail.com
> Cc: NS users <ns-users at ISI.EDU>
> Message-ID: <1127302955.4311.203.camel at chronos>
> Content-Type: text/plain
>
> download the latest ns snapshot from http://www.isi.edu/nsnam/dist/ns-
> src-snapshot.tar.gz
>
> You also need the cvs version of tclcl and otcl from http://otcl-
> tclcl.sourceforge.net/tclcl/
>
> regards,
> Mathieu
>
> On Wed, 2005-09-21 at 19:05 +0800, Andy Quek wrote:
> > Goodday everyone,
> >
> > Recently upgraded to this McAfee internet security suite.. and Xwindows
> in
> > cygwin could not run! Even i tried disabling the antivirus, privacy
> service
> > and firewall, Xwindows still does not run.. and that means, no NAM, no
> > Xgraph, and no Xedit and also Xterm... sigh.. I tried looking around, but
> > could no find a solution for it.
> >
> > Seems like my only option is to try and get ns2-2.28 running on my
> Mandrake
> > partition which uses gcc4.0.1. Could anyone advise me on what are the
> > patches i need to make sure ns2.28 complies smoothly on gcc4.0.1? I tried
> > that before and i get tons of errors building ns2.28 (tcl tk and the
> others
> > were fine) I have read that there are quite a few patches for ns and
> > gcc4.0.1 but they'll all just confusing me.
> >
> > Cheers,
> > Nd
> >
> --
>
>
>
> ------------------------------
>
> Message: 15
> Date: Wed, 21 Sep 2005 13:17:43 +0100
> From: "Pedro Estrela" <pedro.estrela at inesc.pt>
> Subject: Re: [ns] [Answer] How to install the tcl-debug onto Cygwin +
> ns2 release 2.28
> To: <ns-users at ISI.EDU>
> Cc: tk424 at umr.edu
> Message-ID: <000001c5bea6$783dc5d0$172914ac at tagus.ist.utl.pt>
> Content-Type: text/plain; charset="us-ascii"
>
> I might add to this excellent HOWTO that I've made:
>
> - Enhancements to the tcl-debug-2.0 package,
>
> - Support for the MASH object inspector in oTCL
>
> - Lots of useful debug procs for both C++ and oTCL
>
>
>
> All this stuff is linked here:
> http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/
>
>
>
>
>
> otcl debugging (object inspector + modified tcl-debug):
>
> http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging2.html
>
>
>
> C++ and tcl procs
>
> http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging.html
>
>
>
>
>
>
> <http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging3.html> Complete
> BugFix Tutorial
>
> http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging3.html
>
>
>
>
>
> regards
>
> Pedro Vale Estrela
>
>
>
>
>
> --------
>
>
> [ns] [Answer] How to install the tcl-debug onto Cygwin + ns2 release 2.28
>
>
> tk424 tk424
> <mailto:ns-users%40isi.edu?Subject=%5Bns%5D%20%5BAnswer%5D%20How%20to%20inst
> all%20the%20tcl-debug%20onto%20Cygwin%20%2B%20ns2%0A%09release%202.28&In-Rep
> ly-To=> at umr.edu
>
>
>
> Dear NS-users,
>
> I decided to email to share my experience how to install the tcl-debug2.0.
> I've seen some emails from NS mailing list archive providing useful
> information.
> I recommend you to try the STANDARD method to install tcl-debug suggested
> by
>
> (1) the NS-manual, Chap. 22.1. Tcl-level debugging.
> (2) the archive, Title: [ns] re:how to debug TCL by Jiangtao Luo
> (Nov.2004)
>
> <http://mailman.isi.edu/pipermail/ns-users/2004-November/045925.html>
> http://mailman.isi.edu/pipermail/ns-users/2004-November/045925.html
> (3) The README file given by Tcl-debug
>
> But I needed some more information and help to make my tcl-debug work.
> The help is mostly from the other NS usersin the archive, Regina Rosales
> Hain, and Prof. Larry Pyeatt.
> By sharing my experience, some of you may save time and effort. :)
> The method in this email is just one option and there are so many other
> (and
> easy) ways to deal with problems as well.
>
> ----------------------------------------------------------------------------
> --------------------------------------------------------
> Target:
> Information about the installation of tcl-debugger for NS-2;
> tcl-debug is suggested on the official NS-2 website.
> I've got the same installation problem as minisivakumar vellore (Mar.
> 2005),
> which I didn't find the solution in the archive yet.
>
> ----------------------------------------------------------------------------
> --------------------------------------------------------
> Assumption:
> Installation of Cygwin and NS-2 is successful.
> (This email only deals with the installation of tcl-debug.)
> Tcl-debug will be installed onto a directory parallel to the NS-2
> directory,
> i.e. ~ns (by the convention in the NS manual)
>
> ----------------------------------------------------------------------------
> --------------------------------------------------------
> My system:
> OS: Windows XP + Cygwin ( <http://www.cygwin.com/setup.exe>
> http://www.cygwin.com/setup.exe)
> (I guess the Cygwin DLL release version is 1.5.17-1 <
> <http://cygwin.com/ml/cygwin-announce/2005-05/msg00029.html>
> http://cygwin.com/ml/cygwin-announce/2005-05/msg00029.html> )
> NS-2: release 2.28 all-in-one package (
> <http://www.isi.edu/nsnam/dist/ns-allinone-2.28.tar.gz>
> http://www.isi.edu/nsnam/dist/ns-allinone-2.28.tar.gz)
> Tcl debugger: tcl-debug version 1.7 (
> <http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz>
> http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz)
>
> NS-2 is installed on the user's home directory, /home/UserID;
> therefore. /home/UserID/ns-allinone-2.28
> ----------------------------------------------------------------------------
> --------------------------------------------------------
> Refered links:
> <http://www.cygwin.com/> http://www.cygwin.com/
> <http://www.isi.edu/nsnam/ns/> http://www.isi.edu/nsnam/ns/
> <http://mailman.isi.edu/pipermail/ns-users/>
> http://mailman.isi.edu/pipermail/ns-users/
>
> ----------------------------------------------------------------------------
> --------------------------------------------------------
> Installation of tcl-debug
>
> 1. Download the tcl-debug and move the downloaded file to NS-2 root
> directory, i.e. ns-allinone-2.28.
> To download, <http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz>
> http://expect.nist.gov/tcl-debug/tcl-debug.tar.gz
> You should be in the NS-2 root directory
> $ cd /home/UserID/ns-allinone-2.28
>
> UserID is your account. For example, the account name phil4u becomes
> /home/phil4u/ns-allinone-2.28
>
> 2. Extract the downloaded tcl-debug file.
> $ tar -xfz tcl-debug.tar.gz
>
> Then, the extracted files will be automatically copied into a new
> directory, tcl-debug-2.0
> Note: The reason we extract the files into a directory PARALLEL to the
> directory ~ns,
> i.e. /home/UserID/ns-allinone-2.28/ns-2.28, is because of the
> step 4.3.
> 3. Compile the tcl-debug and move the created loadable library to the NS-2
> library directory
> 1) Move to the directory where tcl-debug is.
> $ cd tcl-debug-2.0
>
> 2) Configure and compile tcl-debug
> $ ./configure
> $ make
>
> 3) Check whether a loadable library (*.a) is created after compilation.
> See if a file "libtcldbg.a" is there.
> As its name, this file is the loadable "library for tcl debug".
>
> 4) Copy the loadable library to the NS-2 library directory,
> /home/UserID/ns-allinone-2.28/ns-2.28/lib or ~ns/lib
> $ cp *.a ../ns-2.28/lib
>
> Note: After compilation, we don't get an executable file, but a
> loadable
> library.
>
> 4. Compile the NS-2
> 1) Go to the directory ~ns/lib and check whether the loadable library
> is
> properly copied.
> $ cd ../ns-2.28/lib
> $ ls
>
> 2) Move to the directory ~ns, /home/UserID/ns-allinone-2.28/ns-2.28
> cd ..
>
> 3) Configure NS-2 with an option enabling tcl-debug
> $ ./configure --with-tcldebug
>
> Note: You should see lines showing that the directory of tcl-debug
> is
> recognized.
> If you don't see this line below, you should get back to
> the
> previous steps.
>
> Checking for libtcldbg...
> -L/home/UserID/ns-allinone-2.28/ns-2.28/ ../tcl-debug-2.0 -ltcldbg
>
> I see this line above a line given below,
>
> checking dmallc... not requested with --with-dmalloc
>
> 4) Erase previous compilation record
> $ make clean
>
> Note: This step is important!
>
> 5) Compile NS-2
> $ make
> Now the tcl-debug is embedded to the created NS-2 executable file
> "ns.exe" for cygwin
>
> 5) Check if you can run the NS-2 excutable.
> $ ns
> %
> As you know, NS-2 works fine if you see %. ( Press ctrl+C )
>
> 6) Copy this NS-2 excutable to the ns-allinone-2.28/bin directory
> $ cp ns.exe ../lib/
> 5. Check if the tcl-debug works.
> Now the installation is done. You can check if the debugger works by
> adding a line "debug 1" into a tcl script.
> For example,
> 1) pick a tcl script in ~ns/tcl/ex directory, say wireless-test.tcl,
> and modify this tcl script with a text editor.
>
> set ns_ [new Simulator]
> debug 1; # this line calls the tcl-debug
> set chan [new $opt(chan)]
>
> 2) Run the wireless-test.tcl
> $ ns wireless-test.tcl
>
> After running this script, you will see the following lines if the
> installation is successful.
> 2: lappend auto_path $dbg_library
> dbg2.0>
>
> If you still see the error message while you think you've done right so
> far,
> please check step 4.1, 4.3. 4.4, 4.6.
> Good luck!
>
> Tae-hyung Kim
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !!!!!!!!!!!!!!!!!!!
> Friends are angels who lift us to our feet when
> our wing have trouble remembering how to fly.
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !!!!!!!!!!!!!!!!!!!
>
>
>
> ------------------------------
>
> Message: 16
> Date: Wed, 21 Sep 2005 13:40:51 +0100
> From: "Ittipong Khemapech" <ik at dcs.st-and.ac.uk>
> Subject: [ns] Meaning of some lines in tracefile
> To: "ns" <ns-users at ISI.EDU>
> Message-ID: <04f901c5bea9$b34fa960$1bc2fb8a at sanday>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
>
> I wrote a script to simulate wireless sensor network. The routing protocol
> is Directed Diffusion. I got some lines of the result which I don't
> understand -
>
> N -t 1.000000 -n 0 -e 1.000000
> N -t 1.000000 -n 1 -e 1.000000
> N -t 1.000000 -n 2 -e 1.000000
>
> Can anyone help me, please?
>
> Thanks,
> Ittipong
>
>
> ------------------------------
>
> Message: 17
> Date: Wed, 21 Sep 2005 15:08:26 +0200
> From: Grepet Cyril <cyril.grepet at int-evry.fr>
> Subject: [ns] Ns-2.28 install problem - Fedora core 4 Linux
> To: ns-users at ISI.EDU
> Message-ID: <43315B4A.7010909 at int-evry.fr>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> When I try to install ns-2.28 (all in one) on a new Fedora Core 4 ,
> typing ./install, the compilation ends with :
> /
> xcp/xcpq.o(.text+0x48): In function `XCPQueue::init_vars()':
> xcpq.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcpq.o(.text+0x4e):xcpq.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcpq.o(.text+0x904): In function
> `XCPQueue::do_on_packet_arrival(Packet*)':
> xcpq.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcpq.o(.text+0xa56):xcpq.cc: undefined reference to
> `XCPQueue::XCP_MAX_INTERVAL'
> xcp/xcpq.o(.text+0xaaf):xcpq.cc: undefined reference to
> `XCPQueue::XCP_MAX_INTERVAL'
> xcp/xcpq.o(.text+0xad5):xcpq.cc: undefined reference to
> `XCPQueue::XCP_MAX_INTERVAL'
> xcp/xcpq.o(.text+0x130c): In function `XCPQueue::Te_timeout()':
> xcpq.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcpq.o(.text+0x13a1):xcpq.cc: undefined reference to `XCPQueue::ALPHA_'
> xcp/xcpq.o(.text+0x13b2):xcpq.cc: undefined reference to `XCPQueue::BETA_'
> xcp/xcpq.o(.text+0x13ca):xcpq.cc: undefined reference to `XCPQueue::GAMMA_'
> xcp/xcpq.o(.text+0x1723):xcpq.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcpq.o(.text+0x1729):xcpq.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcpq.o(.text+0x1740):xcpq.cc: undefined reference to
> `XCPQueue::XCP_MIN_INTERVAL'
> xcp/xcpq.o(.text+0x1746):xcpq.cc: undefined reference to
> `XCPQueue::XCP_MIN_INTERVAL'
> xcp/xcp.o(.gnu.linkonce.t._ZN8XCPQueue12spread_bytesEb[XCPQueue::spread_bytes(bool)]+0x1f):
>
> In function `XCPQueue::spread_bytes(bool)':
> xcp.cc: undefined reference to `XCPQueue::BWIDTH'
> xcp/xcp.o(.gnu.linkonce.t._ZN8XCPQueue12spread_bytesEb[XCPQueue::spread_bytes(bool)]+0x25):xcp.cc:
>
> undefined reference to `XCPQueue::BWIDTH'
> collect2: ld a retourn? 1 code d'?tat d'ex?cution
> make: *** [ns] Erreur 1
> Ns make failed!
>
> /How can i correct this.
> Thanks a lot and Best Regard.
>
> C.G
>
>
>
> ------------------------------
>
> Message: 18
> Date: Wed, 21 Sep 2005 10:21:27 -0300
> From: Fernando Maruyama Salgado <salgadof at fc.unesp.br>
> Subject: [ns] Help "Link Configuration"
> To: ns-2 <ns-users at ISI.EDU>
> Message-ID: <1127308887.43315e579a26f at mail.fc.unesp.br>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
>
> I would like to know if is possible to creat a link that when falls down
> with
> the command rtmodel-at, I can make it's "up" with a diferent configuration?
>
> Thanks.
>
> --
> \"N?o se pode governar uma sociedade ou enfrentar seus problemas se as
> pessoas
> n?o forem respons?veis pelo que fazem\" (John Lennon)
>
> ------------------------------------------------------
> Mensagem enviada pelo Webmail da Faculdade de Ci?ncias
>
>
>
> ------------------------------
>
> Message: 19
> Date: Wed, 21 Sep 2005 06:23:17 -0700 (PDT)
> From: Samer BALI <bali at ant.uni-hannover.de>
> Subject: [ns] [bug] ns-2.27 fails to build under Linux
> To: ns-users at ISI.EDU
> Message-ID: <200509211323.j8LDNHi11025 at www.isi.edu>
>
> [Bug Report]
>
> -----------------------------
> Category: Installation Failure
> Package: ns 2.27
> OS: Linux AIX 64 (ver. 5.2)
> Environment Variables:
> I do not know
> -----------------------------
> Description:
>
> Description of Problem:
> when executing the install file, ns-2.27 does not build and I have the
> following error:
> "Makefile", line 89: make: Shell command not associated with a dependency:#
> backplane/cq.o.
> make: Fatal errors encountered -- cannot continue.
> and then the installation is terminated.
>
>
> How Easily Reproducible:
> (e.g. every time, intermittent, once only, etc.)
> every time I try to install ns-allinone-2.27
>
> Steps to Reproduce:
> (describe the minimal set of steps necessary to trigger the bug)
> 1. typing ./install from the directorc (~/ns-allinone-2.27)
> 2.
> 3.
>
>
> Actual Results:
> (describe what the application did after performing the above steps)
> the installation is terminated.
>
> Expected Results:
> (describe what the application should have done, were the bug not present)
> build ns-2.27 and continue to build nam-1.10
>
> Additional Information:
> (the following infomation is helpful to debug:
> 1. simulation script, detailed output files, packet trace
> 2. patch file if you modify some source code
> 3. a backtrace from gdb if you get a segment fault
> If they are big files, PLEASE put them in your web space and
> include the URL here.)
>
>
>
>
> ------------------------------
>
> Message: 20
> Date: 21 Sep 2005 13:57:30 -0000
> From: "Zubair Ahmad" <zubair666 at rediffmail.com>
> Subject: Re: [ns] Suggestions in modifying 802.11 mac
> To: "Andy Quek" <andy80 at gmail.com>
> Cc: ns-users at ISI.EDU
> Message-ID: <20050921135730.1627.qmail at webmail28.rediffmail.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> You can check out the mac-timers.h and .cc files for code implemeting the
> backoff timer.But the handler function is in mac-802_11.cc file..the routine
> which is called when the backoff timer expires.Think you have to make some
> changes with resetting the timer and all..
>
> Zubair
>
>
> On Wed, 21 Sep 2005 Andy Quek wrote :
> >
> >Goodday everyone,
> > Finally, i have manged to get my simulation done.
> > What my simluation does is that i have setup 7 nodes, all 200 metres
> apart
> >each and all connected wire wireless 802.11. Adhoc routing is DSR. There
> are
> >2 tcp connections, tcp1 and tcp2. Source of tcp1 is at node 0, and
> tcpSink1
> >is at node 4. Source of tcp2 is at node 5 and tcpSink2 is at node 6. 2 FTP
> >sources are also created for each of the tcp connections respectively. The
> >simulation time is set at 10. ftp1 will start at time 1 and end at time
> 10.
> >ftp2 will start at time 5 and end at time 8. Simulation runs fine and i
> have
> >got my trace files.
> > I plotted the throughput graphs with tracegraph (wonderful tool!) and my
> >graph shows that when ftp2 starts to send at time 5, ftp1 will be
> "switched"
> >off and when ftp2 has finished sending, ftp1 will resume and finish at
> time
> >10. in other words, i have shown that 2 tcp connection cannot co-exist.
> > The next part of my experiment is to attempt to modify the mac of 802.11
> to
> >change the backoff time so as to allow both tcp connections to co-exist.
> Any
> >suggestions on how to approach this?
> > Cheers, thanks everyone for all the help which made my simulation
> possible,
> >Andy
> >
> >
> >--
> >Would you like a Google Mail account with 1GB of email space?
> >http://www.gmail.com
>
>
> ------------------------------
>
> Message: 21
> Date: Wed, 21 Sep 2005 15:00:22 +0100 (BST)
> From: karim zerioh <zerioh at yahoo.co.uk>
> Subject: [ns] Random variables
> To: ns-users at ISI.EDU
> Message-ID: <20050921140022.86597.qmail at web42202.mail.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> Hi,
>
> I want to know how i can use random variables in ns.
> Here i can declare an exponential variable:
> set e [new RandomVariable/Exponential]
> $e set avg_ 10.0
> But i don't know how to get the generated numbers.
>
>
> Thank you for advance
>
>
>
> ___________________________________________________________
> How much free photo storage do you get? Store your holiday
> snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
>
>
>
> ------------------------------
>
> Message: 22
> Date: Wed, 21 Sep 2005 15:01:14 +0000
> From: "Bruno Couto" <bccp79 at hotmail.com>
> Subject: [ns] Problem with make nam. HELP!
> To: ns-users at ISI.EDU
> Message-ID: <BAY24-F24E42D9CDFE67521975C1AD3940 at phx.gbl>
> Content-Type: text/plain; charset=iso-8859-1; format=flowed
>
> Hi,
>
> I'm trying to install ns-allinone-2.1b4. I've got a few problems but I could
>
> solve all of them looking for at the mailing list, except for this one in
> nam:
>
>
> [bccp at sadden nam-1]# make
> rm -f nam
> c++ -o nam \
> tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o
> node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o
> transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o
> graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o
> address.o animator.o wnetmodel.o gen/version.o gen/nam_tcl.o -L../tclcl
> -ltclcl -L../otcl -lotcl -L/root/ns-allinone-2.1b4/nam-1/../tk8.0/unix
> -ltk8.0 -L../tcl8.0/unix -ltcl8.0 -L/usr/X11R6/lib -lXext -lX11 -lnsl -lm
> main.o(.text+0x35c): In function `cmd_version(void*, Tcl_Interp*, int,
> char**)':
> : undefined reference to `version'
> collect2: ld returned 1 exit status
> make: ** [nam] Erro 1
>
> This problem has already been reported, but no solution has been presented
> (I've searched hardly). Can you PLEASE help me with that??
>
> The following lines were extracted from main.cc, I think it could be
> useful:
>
> extern "C" char version[];
>
> static int cmd_version(ClientData , Tcl_Interp* tcl, int , char **)
> {
> tcl->result = version;
> return (TCL_OK);
> }
>
> Please, help!
>
> Thanks in advance,
>
> Bruno
>
> _________________________________________________________________
> Chegou o que faltava: MSN Acesso Gr?tis. Instale J?!
> http://www.msn.com.br/discador
>
>
>
> ------------------------------
>
> Message: 23
> Date: Wed, 21 Sep 2005 11:36:48 +0530
> From: "Geetha Jayakumar" <j.geetha at gmail.com>
> Subject: [ns] regarding packet delivery ratio of DSDV
> To: <ns-users at ISI.EDU>
> Message-ID: <00a701c5be72$adb8b640$471818ac at JayaLaptop>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello NS-Users,
>
> With the simulation parameters as specified for random way point model I
> get less values (with the mobility for 15,20,25 m/sec) of Packet delivery
> ratio results when simulating DSDV protocol.
>
> I have considered 20 nodes, 10 connections, packet size 512 bytes and
> connection rate is 10 pkts/sec,the seed value is 1.0. I have generated a
> traffic file using cbrgen.tcl
>
> I have considered a mobility pattern file for a pause time of 2 sec and
> Vmax(5..25) , number of nodes 20,simulation time for 200 seconds ,X value
> 670,Y value 670 using the above specification I generated a file using
> ./setdest
>
> These two files I had incorporated in my Tcl script and generated a trace
> file.
>
> I used an awk script to calculate the packet delivery ratio. The values are
> to be very less . I am not sure were I am making mistake.
>
> I also want to know should the seed value range between 0 to 1 only. I am
> not sure about this too. please do clarify me.
>
> looking forward for your reply
>
> thanking you
>
> with regards
> geetha jayakumar
>
>
>
>
>
> ------------------------------
>
> Message: 24
> Date: Wed, 21 Sep 2005 15:24:23 +0000
> From: Ankit Mehta <ankitm at gmail.com>
> Subject: [ns] DSR TORA and directed-diffusion script for Wireless node
> To: ns-users at ISI.EDU
> Message-ID: <eb1362f50509210824336e806b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi
>
>
> I want to simulate and compare wireless scenarios using DSR TORA and
> directed-diffusion .Can anyone provide tcl scripts.I am using ns 2.27 .The
> scripts provided didnt work . Most of them gave segmentation fault
> especially diffusion.
>
> Thanks
>
> --
> Ankit Mehta
> Senior UnderGraduate
> Computer Science and Engineering
> Indian Institute Of Technology,Madras
> Chennai,India
>
>
> ------------------------------
>
> Message: 25
> Date: Wed, 21 Sep 2005 18:05:54 +0200
> From: Laura Martinez <laura.mf at gmail.com>
> Subject: [ns] UDP and TCP in MIP simulation
> To: ns-users at ISI.EDU
> Message-ID: <5cd61c0905092109055c5da53f at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I continue with my simulations on Mobile IP, and I'm a bit confused. I've
> modified values of pt, freq, dataRate and basicRate to adapt it to 802.11.
> The value of pt has been chosen to have a coverage area of 10 meter. My scen
>
> is something like this:
> W(0)
> | |
> W(1)
> / \
> / \
> HA FA
>
> MH0
>
> MH1
>
> The case is that MH0 is in the coverage area of HA (in terms of power), and
>
> MH1 in the coverage area of MH0, but not in HA's. When I set up a tcp
> connection with my agent in W(0) and my sink in MH1, I get no packets in
> MH1, but when I change and I have an UDP connection with my agent in W(0)
> and my sink in MH1, I receive packets in MH1 (although it's not in the
> coverage area of HA). I don't understand it very well. I don't know what
> case is the wrong one or if it's something related to the routing protocol
> (I have to use DSDV) or to hierarchical address (because I define the 2 MN
> related to the HA).
> I'd thank any advice.
> Cheers,
> Laura
>
>
> ------------------------------
>
> _______________________________________________
> Ns-users mailing list
> Ns-users at isi.edu
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 21, Issue 22
> ****************************************
>
More information about the Ns-users
mailing list