LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Install LTE package on ns-2.35 (https://www.linuxquestions.org/questions/ubuntu-63/install-lte-package-on-ns-2-35-a-933953/)

Dhikra 03-11-2012 08:10 PM

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

knudfl 03-12-2012 03:40 AM

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.

.

Dhikra 03-19-2012 05:29 PM

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

knudfl 03-20-2012 03:39 AM

Quote:

But I have this error now:
ns:
Which tcl file are you trying to run ? ?

Dhikra 03-20-2012 05:34 PM

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

knudfl 03-21-2012 07:58 AM

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 ).

.

Dhikra 03-22-2012 04:47 PM

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

Dhikra 03-22-2012 06:36 PM

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.

knudfl 03-23-2012 03:11 AM

Quote:

I get this error(out of 1 hunk FAILED
No errors in the 32bits Ubuntu 9.10 here.

And : Not really an error.
And : If nam isn't working : Any binary 'nam' can be used.
( Nam is a separate application.)

.

vishnu1 02-12-2014 10:50 AM

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

knudfl 02-12-2014 02:21 PM

# 10, @vishnu1.
Quote:

I am trying to use Lte patch in ns-2.33 with Ubuntu-12.10 (64bit).
Not really a patch, see post #6 :
$ 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:

[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.

LTE info http://www.linuxquestions.org/questions/tags/lte/

-

vishnu1 02-13-2014 09:41 AM

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).

knudfl 02-13-2014 11:17 AM

# 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.

-

vishnu1 02-14-2014 06:57 AM

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.

knudfl 02-14-2014 07:21 AM

# 14 .
Quote:

invalid command name "Queue/LTEQueue/ULAirQueue"
That's an ns with no "LTE", or you are using a wrong 'ns'.

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.