Re: [ns] Fwd: Problem to run cbrgen.tcl
I want to run cbrgen.tcl. I use appropriate command also. The error given me is shown below. *[arindrajit@localhost mobilitypatterns]$ ns % ns cbrgen.tcl -type cbr -nn 70 -mc 10 -seed 1 -rate 1.0 cbr70 warning: using backward compatibility mode error when calling class OldSim: cbrgen.tcl -type cbr -nn 70 -mc 10 -seed 1 -rate 1.0 cbr70* *Now, kindly tell me what is the cause for the error? * On Thu, Sep 1, 2011 at 10:52 AM, dae...@isi.edu wrote: Welcome to posting to the ns-users mailing list! We automatically send this message to every new person who sends mail to the list. You should only receive it once. My apologies if the program contacts you twice, perhaps because you have multiple e-mail addresses or send mail from multiple machines. If you are an experienced ns-user who simply has not posted since we started using this responder, our apologies for inconveniencing you with this message. This message is intended to help inform users and cut down on redundant posts, which benefits everyone. Please look at the attached list of ns Frequently Asked Questions. If it answers your question, great! You're done. If not, please RE-SEND your original message to ns-users@isi.edu. A copy of your original message is included below for reference. You will NOT have to do re-send your message every time you post, only the FIRST time you send from a new account. The goal is to quickly help new users find the FAQ (hopefully answering their question). Thanks, -the ns development team The Network Simulator ns-2: Frequently Asked Questions (This FAQ is also on the web at http://www.isi.edu/nsnam/ns/ns-faq.html.) * _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.
[ns] [Help] Wireless multicast - in wireless mesh networks
Hello everyone, I am trying to perform multicasting over wireless mesh networks. Does anyone have any idea how to do it? I would appreciate it if anyone could forward me to any text related to this. Thank you
Re: [ns] [Help] Wireless multicast - in wireless mesh networks
Hi, Here is some contributed code about multicasting in ns2. http://nsnam.isi.edu/nsnam/index.php/Contributed_Code#Multicast Multicast 1. *Codes* - *Author*: Jon Crowcroft http://www.cs.ucl.ac.uk/staff/jon - *Description*: Codes used for simulation work in the following papers are available. The code is distributed under subdirectories called rlc, sot and multcp, each having {.cc,.h,.tcl} and README files. - [Differentiated End to End Internet Services using a Weighted Proportional Fair Sharing TCP] - [Network Adaptive Continuous-Media Applications Through Self Organised Transcoding ] - [TCP-like Congestion Control for Layered Multicast Data Transfer.] - An updated versionhttp://www.cs.ucl.ac.uk/staff/l.vicisano/dist/ns-rlc.tgzof the rlc simulation code is now available. - *Tested with*: ns2.1b1 on HP-UX and Solaris. - *Distributed as*: tarball - *Location*: ftp://cs.ucl.ac.uk/darpa/ucl-ns-work.tar.gz 2. *NORM* - *Author*: Naval Research Laboratory - *Description*: Nack-Oriented Reliable Multicast. - *Location*: http://cs.itd.nrl.navy.mil/work/norm 3. *PGM* - *Author*: Ryan Barnett rbarn...@usc.edu - *Distributed as*: tarball - *Location*: pgm-070101-2.1b8.tar.gzhttp://www.isi.edu/nsnam/dist/pgm-070101-2.1b8.tar.gz. 4. *PGM* - *Author*: Yunxi Shi, Washington University at St. Louis. - *Description*: Cisco's PGM protocolftp://ftp.isi.edu/internet-drafts/draft-speakman-pgm-spec-02.txt. There is also a related paperhttp://www.ccrc.wustl.edu/%7Echristos/html/rmrg-London98.html. - *Distributed as*: tarball - *Location*: http://www.arl.wustl.edu/~sherlia/rm/pgm.tar.gz 5. *PLM* - *Author*: Arnaud Legouthttp://www-sop.inria.fr/planete/Arnaud.Legout - *Description*: PLM simulation. Has been incorporated into ns distribution. - *Tested with*: ns-2.1b6 - *Distributed as*: tarball with instructions - *Location*: http://www-sop.inria.fr/planete/Arnaud.Legout/Projects/plm.html 6. *PUMA* - *Author*: Sidney Doria sid...@dsc.ufcg.edu.br - *Description*: PUMAhttp://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1392169is a multicast routing protocol for MANETs. PUMA outperforms MAODV and ODMRP. - *Tested with*: ns-2.33, and ns-2.34 - *Distributed as*: Zip with instructions - *Location*: http://www.sourceforge.net/projects/puma-adhoc 7. *SSM Extension* - *Author*: Tiago Camilo tan...@dei.uc.pt - *Tested with*: ns-2.27 and ns-2.28 - *Distributed as*: tarball with instructions - *Location*: http://eden.dei.uc.pt/~tandre/ssm_extension/index.htm 8. *IGMP Extension -- Beijing University of Posts and Telecommunications(BUPT), CHINA* - *Author*: Sipeng Guan guansip...@gamil.com - *Description*: Implementation of IP multicast group management according to IGMPv3(RFC3376) - *Tested with*: ns-2.33 - *Distributed as*: patch with instructions - *Location*: http://sites.google.com/site/igmpextension - *Download*: igmp-extension.tar.gzhttp://sites.google.com/site/igmpextension/download-install/igmp-extension.tar.gz Mubashir Husain Rehmani Lip6/UPMC, Paris, France On 1 September 2011 10:17, Manaswi Saha starrylit...@gmail.com wrote: Hello everyone, I am trying to perform multicasting over wireless mesh networks. Does anyone have any idea how to do it? I would appreciate it if anyone could forward me to any text related to this. Thank you -- Mubashir Husain Rehmani
Re: [ns] [Help] Wireless multicast - in wireless mesh networks
Hi, Here is some contributed code about multicasting in ns2. http://nsnam.isi.edu/nsnam/index.php/Contributed_Code#Multicast Multicast 1. *Codes* - *Author*: Jon Crowcroft http://www.cs.ucl.ac.uk/staff/jon - *Description*: Codes used for simulation work in the following papers are available. The code is distributed under subdirectories called rlc, sot and multcp, each having {.cc,.h,.tcl} and README files. - [Differentiated End to End Internet Services using a Weighted Proportional Fair Sharing TCP] - [Network Adaptive Continuous-Media Applications Through Self Organised Transcoding ] - [TCP-like Congestion Control for Layered Multicast Data Transfer.] - An updated versionhttp://www.cs.ucl.ac.uk/staff/l.vicisano/dist/ns-rlc.tgzof the rlc simulation code is now available. - *Tested with*: ns2.1b1 on HP-UX and Solaris. - *Distributed as*: tarball - *Location*: ftp://cs.ucl.ac.uk/darpa/ucl-ns-work.tar.gz 2. *NORM* - *Author*: Naval Research Laboratory - *Description*: Nack-Oriented Reliable Multicast. - *Location*: http://cs.itd.nrl.navy.mil/work/norm 3. *PGM* - *Author*: Ryan Barnett rbarn...@usc.edu - *Distributed as*: tarball - *Location*: pgm-070101-2.1b8.tar.gzhttp://www.isi.edu/nsnam/dist/pgm-070101-2.1b8.tar.gz. 4. *PGM* - *Author*: Yunxi Shi, Washington University at St. Louis. - *Description*: Cisco's PGM protocolftp://ftp.isi.edu/internet-drafts/draft-speakman-pgm-spec-02.txt. There is also a related paperhttp://www.ccrc.wustl.edu/%7Echristos/html/rmrg-London98.html. - *Distributed as*: tarball - *Location*: http://www.arl.wustl.edu/~sherlia/rm/pgm.tar.gz 5. *PLM* - *Author*: Arnaud Legouthttp://www-sop.inria.fr/planete/Arnaud.Legout - *Description*: PLM simulation. Has been incorporated into ns distribution. - *Tested with*: ns-2.1b6 - *Distributed as*: tarball with instructions - *Location*: http://www-sop.inria.fr/planete/Arnaud.Legout/Projects/plm.html 6. *PUMA* - *Author*: Sidney Doria sid...@dsc.ufcg.edu.br - *Description*: PUMAhttp://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1392169is a multicast routing protocol for MANETs. PUMA outperforms MAODV and ODMRP. - *Tested with*: ns-2.33, and ns-2.34 - *Distributed as*: Zip with instructions - *Location*: http://www.sourceforge.net/projects/puma-adhoc 7. *SSM Extension* - *Author*: Tiago Camilo tan...@dei.uc.pt - *Tested with*: ns-2.27 and ns-2.28 - *Distributed as*: tarball with instructions - *Location*: http://eden.dei.uc.pt/~tandre/ssm_extension/index.htm 8. *IGMP Extension -- Beijing University of Posts and Telecommunications(BUPT), CHINA* - *Author*: Sipeng Guan guansip...@gamil.com - *Description*: Implementation of IP multicast group management according to IGMPv3(RFC3376) - *Tested with*: ns-2.33 - *Distributed as*: patch with instructions - *Location*: http://sites.google.com/site/igmpextension - *Download*: igmp-extension.tar.gzhttp://sites.google.com/site/igmpextension/download-install/igmp-extension.tar.gz Mubashir Husain Rehmani Lip6/UPMC, Paris, France On 1 September 2011 10:17, Manaswi Saha starrylit...@gmail.com wrote: Hello everyone, I am trying to perform multicasting over wireless mesh networks. Does anyone have any idea how to do it? I would appreciate it if anyone could forward me to any text related to this. Thank you -- Mubashir Husain Rehmani -- Mubashir Husain Rehmani
Re: [ns] [Help] Wireless multicast - in wireless mesh networks
Hi, Thanx for the reply. I had seen this page. Most of them are for wired networks right? Won't there be a difference in performing multicasting over wireless networks. I am not sure about because I am new to ns2. Also, how do i implement the same in a wireless mesh network? Ho*w *to simulate wireless mesh networks? Thank you. On Thu, Sep 1, 2011 at 1:59 PM, Mubashir Rehmani mshrehm...@gmail.comwrote: Hi, Here is some contributed code about multicasting in ns2. http://nsnam.isi.edu/nsnam/index.php/Contributed_Code#Multicast Multicast 1. *Codes* - *Author*: Jon Crowcroft http://www.cs.ucl.ac.uk/staff/jon - *Description*: Codes used for simulation work in the following papers are available. The code is distributed under subdirectories called rlc, sot and multcp, each having {.cc,.h,.tcl} and README files. - [Differentiated End to End Internet Services using a Weighted Proportional Fair Sharing TCP] - [Network Adaptive Continuous-Media Applications Through Self Organised Transcoding ] - [TCP-like Congestion Control for Layered Multicast Data Transfer.] - An updated versionhttp://www.cs.ucl.ac.uk/staff/l.vicisano/dist/ns-rlc.tgzof the rlc simulation code is now available. - *Tested with*: ns2.1b1 on HP-UX and Solaris. - *Distributed as*: tarball - *Location*: ftp://cs.ucl.ac.uk/darpa/ucl-ns-work.tar.gz 2. *NORM* - *Author*: Naval Research Laboratory - *Description*: Nack-Oriented Reliable Multicast. - *Location*: http://cs.itd.nrl.navy.mil/work/norm 3. *PGM* - *Author*: Ryan Barnett rbarn...@usc.edu - *Distributed as*: tarball - *Location*: pgm-070101-2.1b8.tar.gzhttp://www.isi.edu/nsnam/dist/pgm-070101-2.1b8.tar.gz. 4. *PGM* - *Author*: Yunxi Shi, Washington University at St. Louis. - *Description*: Cisco's PGM protocolftp://ftp.isi.edu/internet-drafts/draft-speakman-pgm-spec-02.txt. There is also a related paperhttp://www.ccrc.wustl.edu/%7Echristos/html/rmrg-London98.html. - *Distributed as*: tarball - *Location*: http://www.arl.wustl.edu/~sherlia/rm/pgm.tar.gz 5. *PLM* - *Author*: Arnaud Legouthttp://www-sop.inria.fr/planete/Arnaud.Legout - *Description*: PLM simulation. Has been incorporated into ns distribution. - *Tested with*: ns-2.1b6 - *Distributed as*: tarball with instructions - *Location*: http://www-sop.inria.fr/planete/Arnaud.Legout/Projects/plm.html 6. *PUMA* - *Author*: Sidney Doria sid...@dsc.ufcg.edu.br - *Description*: PUMAhttp://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1392169is a multicast routing protocol for MANETs. PUMA outperforms MAODV and ODMRP. - *Tested with*: ns-2.33, and ns-2.34 - *Distributed as*: Zip with instructions - *Location*: http://www.sourceforge.net/projects/puma-adhoc 7. *SSM Extension* - *Author*: Tiago Camilo tan...@dei.uc.pt - *Tested with*: ns-2.27 and ns-2.28 - *Distributed as*: tarball with instructions - *Location*: http://eden.dei.uc.pt/~tandre/ssm_extension/index.htm 8. *IGMP Extension -- Beijing University of Posts and Telecommunications(BUPT), CHINA* - *Author*: Sipeng Guan guansip...@gamil.com - *Description*: Implementation of IP multicast group management according to IGMPv3(RFC3376) - *Tested with*: ns-2.33 - *Distributed as*: patch with instructions - *Location*: http://sites.google.com/site/igmpextension - *Download*: igmp-extension.tar.gzhttp://sites.google.com/site/igmpextension/download-install/igmp-extension.tar.gz Mubashir Husain Rehmani Lip6/UPMC, Paris, France On 1 September 2011 10:17, Manaswi Saha starrylit...@gmail.com wrote: Hello everyone, I am trying to perform multicasting over wireless mesh networks. Does anyone have any idea how to do it? I would appreciate it if anyone could forward me to any text related to this. Thank you -- Mubashir Husain Rehmani
[ns] myfirst_ns.tcl still error
Many thanks for the previous reply and solution. i have changed it to ns [new Simulator] S instead of s again, i got an error when i run it after did some change.i'm very new and need any help in this forum discussion.. this is the whole program: 1 # myfirst_ns.tcl 2 # create a simulator 3 set ns [new Simulator] 4 create a trace file 5 set mytrace [open out.tr w] 6 $ns trace-all $mytrace 7 create a NAM trace file 8 set myNAM [open out.nam w] 9 $ns namtrace-all $myNAM 10 define a procedure finish 11 proc finish {} { 12 global ns mytrace myNAM 13 $ns flush-trace 14 close $mytrace 15 close $myNAM 16 exec nam out.nam 17 exit 0 18 } 19 create nodes 20 set n0 [$ns node] 21 set n1 [$ns node] 22 set n2 [$ns node] 23 set n3 [$ns node] 24 set n4 [$ns node] 25 connect nodes with links 26 $ns duplex-link $n0 $n2 100Mb 5ms DropTail 27 $ns duplex-link $n1 $n2 100Mb 5ms DropTail 28 $ns duplex-link $n2 $n4 54Mb 10ms DropTail 29 $ns duplex-link $n2 $n3 54Mb 10ms DropTail 30 $ns duplex-link $n3 $n4 10Mb 15ms DropTail 31 $ns queue-limit $n2 n3 40 32 create a UDP agent 33 set udp [new Agent/UDP] 34 $ns attach-agent $n0 $udp 35 set null [new Agent/Null] 36 $ns attach-agent $n3 $null 37 $ns connect $udp $null 38 $udp set fid_1 39 create a CBR traffic source 40 set cbr [new Application/Traffic/CBR] 41 $cbr attach-agent $udp 42 $cbr set packetSize_1000 43 $cbr set rate_2Mb 44 create a TCP agent 45 set tcp [new Agent/TCP] 46 $ns attach-agent $n1 $tcp 47 set sink [new Agent/TCPSink] 48 $ns attach-agent $n4 $sink 49 $ns connect $tcp $sink 50 $tcp set fid_2 51 create an FTP session 52 set ftp [new Application/FTP] 53 $ftp attach-agent $tcp 54 schedule events 55 ns at 0.05 $ftp start 56 ns at 0.1 $cbr start 57 ns at 60.0 $ftp stop 58 ns at 60.5 $cbr stop 59 ns at 61 finish 60 } 61 # Start the simulation 62 $ns run ON THE CYGWIN I RUN THE FILE $ ns myfirst_ns.tcl can't read fid_1: no such variable while executing subst $[subst $var] procedure _o125 line 5 object next line 5 invoked from within _o125 next fid_1 eval body line 1 invoked from within eval $self next $args procedure _o125 line 18 agent set line 18 invoked from within $udp set fid_1 file myfirst_ns.tcl line 44