LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-11-2012, 08:10 PM   #1
Dhikra
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
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
 
Old 03-12-2012, 03:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

.
 
Old 03-19-2012, 05:29 PM   #3
Dhikra
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-20-2012, 03:39 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
But I have this error now:
ns:
Which tcl file are you trying to run ? ?
 
Old 03-20-2012, 05:34 PM   #5
Dhikra
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-21-2012, 07:58 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ).

.

Last edited by knudfl; 03-21-2012 at 02:52 PM.
 
1 members found this post helpful.
Old 03-22-2012, 04:47 PM   #7
Dhikra
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-22-2012, 06:36 PM   #8
Dhikra
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-23-2012, 03:11 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.)

.
 
Old 02-12-2014, 10:50 AM   #10
vishnu1
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Rep: Reputation: Disabled
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
 
Old 02-12-2014, 02:21 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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/

-

Last edited by knudfl; 02-12-2014 at 02:29 PM.
 
Old 02-13-2014, 09:41 AM   #12
vishnu1
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Rep: Reputation: Disabled
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).
 
Old 02-13-2014, 11:17 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.

-

Last edited by knudfl; 02-13-2014 at 11:19 AM.
 
Old 02-14-2014, 06:57 AM   #14
vishnu1
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 02-14-2014, 07:21 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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

-
 
  


Reply

Tags
lte, lte#11, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM
install lte $ wimax in ns-2 maouhoub Linux - Newbie 15 03-26-2011 12:11 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration