Install LTE package on ns-2.35
Hello,
I need to add package LTE on ns-2.35. I use ubuntu 9.10 and I have installed ns-2.35 using synoptic packet. Do you have an idea to add LTE on ns-2.35 ? Actually, without install package LTE, when I run a LTE file TCL, I got this error: valid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set qos_ true " (file "lte.tcl" line 21) Thank you |
Welcome to LQ. .. :) ..
The LTE patch, I know, is for ns-allinone-2.33. http://code.google.com/p/lte-model/ And : You cannot add anything to a binary ns2 Ubuntu package. And : You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. LTE for ns-2.33 : http://www.linuxquestions.org/questi...2-33-a-857930/ Please read all the posts. . |
Hello,
I do all steps in this link. But I have this error now: ns: [code omitted because of length] : invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set drop_front_ 0" Thank you |
Quote:
|
Hello,
It is the same error for all tcl files. When I run "ns" I should have a "%" but I get this error : ns: [code omitted because of length] : invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set drop_front_ 0" Thanks for help |
Ubuntu 9.10 : sudo apt-get install g++-4.1
cd ns-allinone-2.33/tk8.4.18/ && wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch && patch -p0 < tk-8.4-lastevent.patch && cd ../ && export CC=gcc-4.1 CXX=g++-4.1 && ./install && cd ns-2.33/ && mv ns ns233 && make clean && mv Makefile Makefile.org && svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only && mkdir project && cd lte-model-read-only/ && sh checkin && cd ../project/ && ln -s ../lte-model-read-only/*.h . .... Where the period ( . ) means the current directory. && ln -s ../lte-model-read-only/dlqueue.cc && cd ../ Edit the new Makefile in ns-allinone-2.33/ns-2.33/ , lines 41, 67, 82 to actual location. ( I.e all : /root/ns-allinone.... to : <your-path>/ns-allinone.... ).( 8 times edit.) ... And lines 36 - 37 to : CC = gcc-4.1 CPP = g++-4.1 ... And now you can run make in ns-allinone-2.33/ns-2.33/ , and hopfully get a workable 'ns' ( ns works OK here.) ( Better make a backup : cp ns ns-LTE ). . |
Hi,
It crashes in the first step, when I execute this command: patch -p0 < tk-8.4-lastevent.patch I have this error "patching file generic/tk.h Hunk #1 FAILED at 635. 1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej" Thank you |
Yesss It work fine now. Thank you
I get this error(out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej) because the modification is done on tk.h. |
Quote:
And : Not really an error. And : If nam isn't working : Any binary 'nam' can be used. ( Nam is a separate application.) . |
Hello
I am trying to use Lte patch in ns-2.33 with Ubuntu-12.10(64bit).
I got error as below [code omitted because of length] : invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set drop_front_ 0" I tried post #6 in this thread but i am not able to solve it. Thank you |
# 10, @vishnu1.
Quote:
$ svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only "64bit" : ns2 is for a 32bits OS. Most versions / patches will however work with 64bits (Ubuntu 12.10). But not LTE : The results from the simulations are incomplete. *** Solution : Use a 32bits OS. Quote:
Time to update the build instructions / making the build easier : a) $ tar xvf ns-allinone-2.33.tar.gz b) $ cd ns-allinone-2.33/ c) $ tar xvf lte-ns233-patching-2.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing d) $ export CC=gcc41 CXX=g++41 && ./install e) $ cd ns-2.33/ f) $ cp ns ns-lte && sudo cp ns-lte /usr/local/bin/ .... And you can do $ ns-lte eyana.tcl from lte-examples-0213.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing Please advice when you have installed a usable OS. Then you can get information about which gcc41/g++41 to install. LTE info http://www.linuxquestions.org/questions/tags/lte/ - |
Thank you sir for reply
#11
Sir after your suggestion i installed ubuntu 12.04(32 bit). I have some confusion after step #c(its for unzipping tar file).But i am not able to know where i put it.after unzip its name come like ns-2.33. For step #d first i tried post 61 at given below link. http://www.linuxquestions.org/questi...930/page5.html Sir could you please tell the link about the documentation of the your suggested patch-( lte-ns233-patching-2.tar.gz). |
# 12 .
Ubuntu 12.04 - 32 : The gcc41 / g++41 compilers, see post #18 here http://www.linuxquestions.org/questi...022/page2.html "lte-ns233-patching-2.tar.gz" is the the usual "lte-model-read-only", with all the files in the right place. And it includes a Makefile.in, allowing you to run ./install : See post #11. Too many beginners are failing by use of the original complex setup of the "lte-model-read-only", hence this new ordered patching. ( 'checkin' always' fails with Ubuntu : Not all files are in place.) ! So do not use the old instructions : Use what's in post #11. - |
Thanks
#11
a.Sir followed the instructions of post #11 b.after ececuting #eyana.tcl i got following error vishnu@vishnu-OptiPlex-9010:~/ns-allinone-2.33/ns-2.33/lte-ex$ ns-lte eyana.tcl invalid command name "Queue/LTEQueue/ULAirQueue" while executing "Queue/LTEQueue/ULAirQueue create _o101 " 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 Queue/$qtype" ("default" arm line 3) invoked from within "switch -exact $qtype { ErrorModule { if { [llength $args] > 0 } { set q [eval new $qtype $args] } else { set q [new $qtype Fid] } } intserv { set qtyp..." (procedure "_o3" line 14) (Simulator simplex-link line 14) invoked from within "$ns simplex-link $UE($i) $eNB 500Mb 2ms LTEQueue/ULAirQueue" ("for" body line 2) invoked from within "for { set i 0} {$i < $number} {incr i} { $ns simplex-link $UE($i) $eNB 500Mb 2ms LTEQueue/ULAirQueue $ns simplex-link $eNB $UE($i) 1Gb 2ms LTEQueue/DL..." (file "eyana.tcl" line 24) c.After ececutin the #./test. i got following results vishnu@vishnu-OptiPlex-9010:~/ns-allinone-2.33/lte-ns/lte-model-read-only$ ./test Deleting the old log files ... rm: cannot remove `*.log': No such file or directory Done start testing, please wait ... invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set qos_ true " (file "lte.tcl" line 17) Done The testing results(throughput, delay, jitter) are: --------------------------------------------------- 0 1 2 3 total(Mbyte) 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 1 2 3 total -nan -nan -nan -nan -nan 0 1 2 3 total 0 0 0 0 0 check the out.txt out.tr out.nam for detailed information. I think that second result is ok but i am not able to know why i got error in fist case(#b). Sir please help. |
# 14 .
Quote:
Suggest : Install the package 'lte-ns-2.33-ubuntu10_i386.deb' https://drive.google.com/file/d/0B7S...it?usp=sharing .. then you do not have to build any ns-2.33/lte, .. and this will work : $ ns-lte eyana.tcl - |
All times are GMT -5. The time now is 03:03 AM. |