UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
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"
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"
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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 ).
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"
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.
"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:
[code omitted because of length]
: invalid command name "Queue/LTEQueue"
That's a completely failed build !
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.
#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).
"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.
#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:
---------------------------------------------------
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.