Re: [ns] UMTS on NS-2
Hi! Did you remember to recompile ns-2, as the instructions imply? Best wishes, -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920Mobile: +46 76 1271385 SE-971 28 Luleå Sweden -Original Message- From: dka...@gmail.com [mailto:dka...@gmail.com] Sent: den 15 augusti 2009 22:48 To: Mats Folke Subject: Re: UMTS on NS-2 I recently installed ns-2.30 and added the required eurane patch to run UMTS on it, however when i try to run the test_tcp.tcl file or any other file i get the following error: any suggestions as to why this is happening? d...@dk-laptop:~$ ns test1.tcl (_o3 cmd line 1) invoked from within "_o3 cmd create-Umtsnode" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "$ns create-Umtsnode" invoked from within "set rnc [$ns create-Umtsnode]" (file "test1.tcl" line 28) d...@dk-laptop:~$ Mats Folke-2 wrote: > > > Hi! > > First of all, please post your questions to the mailing list. It adds > value to the list. > > Yes, you can have multiple versions of ns running in parallel, but you > need to be very careful how you set up your paths. Please search the web > for setting up paths in the shell. That will search your other problems > you wrote about. > > Best regards, > Mats > > Syed Faraz Hasan wrote: >> Dear Mats, >> >> Please advise me, can I have both NS-2.33 and NS-2.30 at the same >> time? Will they both ok if they coexist or do I need to get rid of >> one for th other? >> >> Thanks a lot in anticipation >> >> Faraz >> >> ________________ >> From: ns-users-boun...@isi.edu [ns-users-boun...@isi.edu] On Behalf >> Of Mats Folke [mats.fo...@ericsson.com] >> Sent: Tuesday, March 24, 2009 12:47 AM >> To: ns-users@isi.edu >> Subject: Re: [ns] UMTS on NS-2 >> >> Hi! >> >> Syed Faraz Hasan wrote: >>> Hello! >>> >>> Reference to my previous email about UMTS implementation on NS-2. Can >>> some one tell me if I need a separate patch for UMTS while working on >>> NS-2.33? If so, where can I download it from? I have seen >>> http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz >>> format. I am a newbie to open suse linux, I think I should be after >>> something .tar.gz? >> >> There is currently no patch for ns-2.33 and since Eurane is not >> supported anymore, there probably never will be. You have two >> options. 1) Download ns-2.30 and patch with existing eurane patch. If >> you need something introduced in later versions of ns-2, you cannot >> use it. 2) Patch an existing ns-2.33 with the eurane patch for >> ns-2.30. This could result in difficulties which you must manually >> resolve. >> >> The patching procedure is documented in the manual, section 2.3. >> >> A patch is distributed in something called a diff-file, hence the >> file extension .diff. Gzip then adds the extension .gz. Before >> pathing the .diff.gz file needs to be uncompressed using gunzip. The >> result will be the diff-file. >> >>> Anyway, when I download and open eurane1.12.diff.gz, it gives an >>> error "associated help application does not exist"! This patch is >>> available for NS-2.30, I am using 2.33. >> >> What gives an error? A patch file should not be "opened", see the >> eurane manual for correct usage, or the patch man page, or google for >> "unix command patch" or similar. >> >>> Also, what is CLEAN NS-2.3 >> >> A clean version is a version not messed up by changes, builds etc. A >> fresh downloaded version is a clean version. >> >>> I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), >>> without installing any patch on my existing NS-2.33. When I execute >>> it, it says >>> >>> (_o3 cmd line 1) >>> invoked from within >>> "_o3 cmd create-Umtsnode" >>> . >>> . >>> . >>> "$ns create-Umtsnode" >>> invoked from within >>> "set rnc [$ns create-Umtsnode]" >>> file "umtstcp.tcl line 42 >> >> This is because ns-2 (without the patch) does not understand the >> instructions in those tcl files. You need the patch to be able to run >> the tcl files. >> >> Regards, > > > > -- > Mats Folke, M.Sc., Lic.Eng. > Research Engineer > > Ericsson AB Office: +46 10 7171385 > Ericsson Research Fax: +46 920 99621 > P.O. Box 920Mobile: +46 76 1271385 > SE-971 28 Luleå > Sweden > > > Quoted from: http://www.nabble.com/UMTS-on-NS-2-tp22659223p22703758.html
Re: [ns] UMTS on NS-2
Hi! Please post these questions to the list instead. To answer your question: I don't know which files you need. Typically each study is unique, each question unanswered, therefore different scripts are needed everytime. The best thing is to find a language you are satisfied with (like perl, python, awk, Java, C, ...) and go with it. Best regards, Mats Folke Bello Lawal wrote: > Hello, > > Pls. can u help me with scripts that can extract the files i need in > trace file. > > I will be very gratefull. > > Thank u > > --- On Wed, 3/25/09, Mats Folke wrote: > > > > From: Mats Folke > Subject: Re: [ns] UMTS on NS-2 > To: "Syed Faraz Hasan" > Cc: "ns-users@isi.edu" > Date: Wednesday, March 25, 2009, 7:58 AM > > > > Hi! > > First of all, please post your questions to the mailing list. It > adds value to the list. > > Yes, you can have multiple versions of ns running in parallel, but > you need to be very careful how you set up your paths. Please search > the web for setting up paths in the shell. That will search your > other problems you wrote about. > > Best regards, > Mats > > Syed Faraz Hasan wrote: > > Dear Mats, > > > > Please advise me, can I have both NS-2.33 and NS-2.30 at the same > > time? Will they both ok if they coexist or do I need to get rid of > > one for th other? > > > > Thanks a lot in anticipation > > > > Faraz > > > > > > From: ns-users-boun...@isi.edu [ns-users-boun...@isi.edu] On Behalf > > Of Mats Folke [mats.fo...@ericsson.com] > > Sent: Tuesday, March 24, 2009 12:47 AM > > To: ns-users@isi.edu > > Subject: Re: [ns] UMTS on NS-2 > > > > Hi! > > > > Syed Faraz Hasan wrote: > >> Hello! > >> > >> Reference to my previous email about UMTS implementation on NS-2. > Can >> some one tell me if I need a separate patch for UMTS while > working on >> NS-2.33? If so, where can I download it from? I have > seen >> http://eurane.ti-wmc.nl/eurane/, patch available there is in > diff.gz >> format. I am a newbie to open suse linux, I think I > should be after >> something .tar.gz? > > > > There is currently no patch for ns-2.33 and since Eurane is not > > supported anymore, there probably never will be. You have two > > options. 1) Download ns-2.30 and patch with existing eurane patch. > If > you need something introduced in later versions of ns-2, you > cannot > use it. 2) Patch an existing ns-2.33 with the eurane patch > for > ns-2.30. This could result in difficulties which you must > manually > resolve. > > > > The patching procedure is documented in the manual, section 2.3. > > > > A patch is distributed in something called a diff-file, hence the > > file extension .diff. Gzip then adds the extension .gz. Before > > pathing the .diff.gz file needs to be uncompressed using gunzip. > The > result will be the diff-file. > > > >> Anyway, when I download and open eurane1.12.diff.gz, it gives an > >> error "associated help application does not exist"! This patch is > >> available for NS-2.30, I am using 2.33. > > > > What gives an error? A patch file should not be "opened", see the > > eurane manual for correct usage, or the patch man page, or google > for > "unix command patch" or similar. > > > >> Also, what is CLEAN NS-2.3 > > > > A clean version is a version not messed up by changes, builds etc. > A > fresh downloaded version is a clean version. > > > >> I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), > >> without installing any patch on my existing NS-2.33. When I > execute >> it, it says > >> > >> (_o3 cmd line 1) > >> invoked from within > >> "_o3 cmd create-Umtsnode" > >> . > >> . > >> . > >> "$ns create-Umtsnode" > >> invoked from within > >> "set rnc [$ns create-Umtsnode]" > >> file "umtstcp.tcl line 42 > > > >
Re: [ns] UMTS on NS-2
Hi, I currently have ns-2.27 ns-2.331 and ns-2.33 all instaled in my system. The simplest trick i use is create a file named ns2.sh in home, and source it in my ~/.bashrc. [u...@murali-test ~]$ cat ~/.bashrc # .bashrc ... ... source ~/ns2.bash and my ns2.bash contains [u...@murali-test ns-2.33]$ cat ns2.bash export PATH=$PATH:/usr/src/ns-allinone/bin:/usr/src/ns-allinone/tcl/unix:/usr/src/ns-allinone/tk/unix export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/src/ns-allinone/otcl:/usr/src/ns-allinone/lib export TCL_LIBRARY=$TCL_LIBRARY:/usr/src/ns-allinone/tcl/library ns-allinone is symbolic link to the correct directory, and tk, tcl, and otcl are symbolic links to the respective directories. Alternately,you can create multiple bash files and source them in command-line when you are building it. If there is a big enough demand for this, i can post my detailed working shell script for this. - murali > > > -- > > Message: 11 > Date: Wed, 25 Mar 2009 15:58:54 +0100 > From: "Mats Folke" > Subject: Re: [ns] UMTS on NS-2 > To: "Syed Faraz Hasan" > Cc: "ns-users@isi.edu" > Message-ID: >< > 81dd8ea2638a554ea2da738b270f63fa697...@esealmw114.eemea.ericsson.se> > Content-Type: text/plain; charset="iso-8859-1" > > Hi! > > First of all, please post your questions to the mailing list. It adds value > to the list. > > Yes, you can have multiple versions of ns running in parallel, but you need > to be very careful how you set up your paths. Please search the web for > setting up paths in the shell. That will search your other problems you > wrote about. > > Best regards, > Mats > > Syed Faraz Hasan wrote: > > Dear Mats, > > > > Please advise me, can I have both NS-2.33 and NS-2.30 at the same > > time? Will they both ok if they coexist or do I need to get rid of > > one for th other? > > > > Thanks a lot in anticipation > > > > Faraz > > > -- see not what comes to u. see what comes out of u. -- see not what comes to u. see what comes out of u.
Re: [ns] UMTS on NS-2
Hi! First of all, please post your questions to the mailing list. It adds value to the list. Yes, you can have multiple versions of ns running in parallel, but you need to be very careful how you set up your paths. Please search the web for setting up paths in the shell. That will search your other problems you wrote about. Best regards, Mats Syed Faraz Hasan wrote: > Dear Mats, > > Please advise me, can I have both NS-2.33 and NS-2.30 at the same > time? Will they both ok if they coexist or do I need to get rid of > one for th other? > > Thanks a lot in anticipation > > Faraz > > > From: ns-users-boun...@isi.edu [ns-users-boun...@isi.edu] On Behalf > Of Mats Folke [mats.fo...@ericsson.com] > Sent: Tuesday, March 24, 2009 12:47 AM > To: ns-users@isi.edu > Subject: Re: [ns] UMTS on NS-2 > > Hi! > > Syed Faraz Hasan wrote: >> Hello! >> >> Reference to my previous email about UMTS implementation on NS-2. Can >> some one tell me if I need a separate patch for UMTS while working on >> NS-2.33? If so, where can I download it from? I have seen >> http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz >> format. I am a newbie to open suse linux, I think I should be after >> something .tar.gz? > > There is currently no patch for ns-2.33 and since Eurane is not > supported anymore, there probably never will be. You have two > options. 1) Download ns-2.30 and patch with existing eurane patch. If > you need something introduced in later versions of ns-2, you cannot > use it. 2) Patch an existing ns-2.33 with the eurane patch for > ns-2.30. This could result in difficulties which you must manually > resolve. > > The patching procedure is documented in the manual, section 2.3. > > A patch is distributed in something called a diff-file, hence the > file extension .diff. Gzip then adds the extension .gz. Before > pathing the .diff.gz file needs to be uncompressed using gunzip. The > result will be the diff-file. > >> Anyway, when I download and open eurane1.12.diff.gz, it gives an >> error "associated help application does not exist"! This patch is >> available for NS-2.30, I am using 2.33. > > What gives an error? A patch file should not be "opened", see the > eurane manual for correct usage, or the patch man page, or google for > "unix command patch" or similar. > >> Also, what is CLEAN NS-2.3 > > A clean version is a version not messed up by changes, builds etc. A > fresh downloaded version is a clean version. > >> I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), >> without installing any patch on my existing NS-2.33. When I execute >> it, it says >> >> (_o3 cmd line 1) >> invoked from within >> "_o3 cmd create-Umtsnode" >> . >> . >> . >> "$ns create-Umtsnode" >> invoked from within >> "set rnc [$ns create-Umtsnode]" >> file "umtstcp.tcl line 42 > > This is because ns-2 (without the patch) does not understand the > instructions in those tcl files. You need the patch to be able to run > the tcl files. > > Regards, -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920Mobile: +46 76 1271385 SE-971 28 Luleå Sweden
Re: [ns] UMTS on NS-2
Hi! Syed Faraz Hasan wrote: > Hello! > > Reference to my previous email about UMTS implementation on NS-2. Can > some one tell me if I need a separate patch for UMTS while working on > NS-2.33? If so, where can I download it from? I have seen > http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz > format. I am a newbie to open suse linux, I think I should be after > something .tar.gz? There is currently no patch for ns-2.33 and since Eurane is not supported anymore, there probably never will be. You have two options. 1) Download ns-2.30 and patch with existing eurane patch. If you need something introduced in later versions of ns-2, you cannot use it. 2) Patch an existing ns-2.33 with the eurane patch for ns-2.30. This could result in difficulties which you must manually resolve. The patching procedure is documented in the manual, section 2.3. A patch is distributed in something called a diff-file, hence the file extension .diff. Gzip then adds the extension .gz. Before pathing the .diff.gz file needs to be uncompressed using gunzip. The result will be the diff-file. > Anyway, when I download and open eurane1.12.diff.gz, it gives an > error "associated help application does not exist"! This patch is > available for NS-2.30, I am using 2.33. What gives an error? A patch file should not be "opened", see the eurane manual for correct usage, or the patch man page, or google for "unix command patch" or similar. > Also, what is CLEAN NS-2.3 A clean version is a version not messed up by changes, builds etc. A fresh downloaded version is a clean version. > I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), > without installing any patch on my existing NS-2.33. When I execute > it, it says > > (_o3 cmd line 1) > invoked from within > "_o3 cmd create-Umtsnode" > . > . > . > "$ns create-Umtsnode" > invoked from within > "set rnc [$ns create-Umtsnode]" > file "umtstcp.tcl line 42 This is because ns-2 (without the patch) does not understand the instructions in those tcl files. You need the patch to be able to run the tcl files. Regards, -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920Mobile: +46 76 1271385 SE-971 28 Luleå Sweden