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 01-22-2011, 02:43 AM   #1
kiwiw
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
how to installing LTE module patch in NS2.33


hallo all
im made, im indonesian.
now im trying to use NS2 to simulate LTE
i've got the LTE module, but i cant patch it into NS2
im using NS2.33 and ubuntu 9.04
the problem is in makefile
there is an error like this

"Queue/LTEQueue"
while executing
"Queue/LTEQueue set qos_ true"
(file "lte.tcl" line 21)


what should i do whit this condition?
thx before


best regards
 
Old 01-22-2011, 08:12 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Not quite easy to understand, what you mean, but :
Adding the LTE files, etc. goes something like this :

cd ns-allinone-2.33/tk8.4.18/
patch -p0 < tk-8.4-lastevent.patch
cd ../
./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 ../

Edit the new Makefile , lines 41, 67, 82 to actual location.
( I.e all : /root/ns-allinone.... to : <your-path>/ns-allinone.... ).( 8 times edit.)

Next : make


Good luck !
..

Last edited by knudfl; 03-11-2011 at 07:37 AM.
 
Old 01-23-2011, 11:29 PM   #3
kiwiw
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
hi Knudfl..
thanks for you advice
have you ever try to run LTE.tar before?
i`ve following your steps but when i try to "make" in folder ns2.33 there is some error that ns2 didn`t found file ulairqueue.h and ulairqueue.o
so i try to make an empty file named ulairqueue.h and ulairqueue.o..
but when i "make" again, the error say:

project/ulairqueue.o file not recognized: File truncated
collect2: ld return 1 exit status
make: *** [ns] Error 1

what should i do?

thx for your attention
 
Old 01-24-2011, 04:36 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The file ulairqueue.h is present :
ns-allinone-2.33/ns-2.33/lte-model-read-only/ulairqueue.h

And no, I am not using LTE.tar, but the hopefully latest bug fixed code :
svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only

*** Unlike other Linux OS, errors will appear on Ubuntu 9.04, 32bits.

Solution : cd project/
1) ln -s ../lte-model-read-only/*.h .
.... Where the period ( . ) means the current directory.
2) ln -s ../lte-model-read-only/dlqueue.cc

------------------------

Last edited by knudfl; 01-24-2011 at 12:36 PM.
 
Old 01-24-2011, 10:17 AM   #5
kiwiw
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
what do you mean with .. in last line?
do i have to make link for all file in lte-model-read-only?

i've got the ulairqueue.h from lte-model-read-only
and i try to rerun it from
sh checkin

but after make there is new error like said that

common/packet.cc:error : 'Tcl' was not declared in this scope
make: *** [common/packet.o] error 1


did you success when running lte.tcl? is the nam and tar file appear?


thanks for your help
 
Old 01-24-2011, 12:55 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Do I have to make link for all file in lte-model-read-only ?
Only headers are mentioned in post #4 : *.h . And one 'cc' : dlqueue.cc


I don't think, the lte.tcl works very well.
But the idea is, that you will have an 'out.tr' created.
And probably use the "awk filters" for further output from the 'out.tr'.
( out.tr is also meant to be read, using an editor, like 'gedit out.tr'.)
What does the documentation say ? lte-model.doc ?


'grep -n nam lte.tcl' will show, that nam is mentioned as a comment.
But not used.

..
 
Old 02-24-2011, 04:21 PM   #7
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Guys, after I made these all these procedures, when I am executing the shell script ./test, the following message is being showed:

"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:"

I added the all .o files from folder project into Makefile.in, but I still having this issue.
Other performed step was the following one:
1 - ./configure
2 - make clean
3 - make
4 - make install

But one more time unfortunatelly I still having the same result. Does anybody figure out the same issue?

Best Regards,
Salvio

Last edited by Salvio de Barros; 02-25-2011 at 09:02 AM.
 
Old 02-24-2011, 05:11 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@Salvio de Barros, post # 7 : Welcome to LQ.

Which Debian are you using ? http://linuxsilo.net/docs/smart-questions_en.html

And please remove the email address, or possibly expect to receive some spam.
We already have this email available :
http://www.linuxquestions.org/questi...ember&u=572675

All technical correspondence is supposed to be done here in the Forums,
so other members can benefit from the answers.
Answering per email is not the LQ way.
http://www.linuxquestions.org/linux/rules.html
http://www.linuxquestions.org/linux/...Ask_a_Question

..
 
Old 02-25-2011, 09:01 AM   #9
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
My Debian Version is Debian Lenny

And I put my msn address before in purpose of direct chat, but I understand this and my email was removed

Last edited by Salvio de Barros; 02-25-2011 at 09:06 AM.
 
Old 02-25-2011, 09:11 AM   #10
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
@Salvio de Barros, post # 7 : Welcome to LQ.

Which Debian are you using ? http://linuxsilo.net/docs/smart-questions_en.html

And please remove the email address, or possibly expect to receive some spam.
We already have this email available :
http://www.linuxquestions.org/questi...ember&u=572675

All technical correspondence is supposed to be done here in the Forums,
so other members can benefit from the answers.
Answering per email is not the LQ way.
http://www.linuxquestions.org/linux/rules.html
http://www.linuxquestions.org/linux/...Ask_a_Question

..
#9


My Debian Version is Debian Lenny

And I put my msn address before in purpose of direct chat, but I understand this and my email was removed
 
Old 02-25-2011, 12:00 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10 : OK, Debian Lenny.

I made an edit in post # 2 : mv ns ns233.
Then you still have the original "ns".

Please follow post # 2 strictly.
And for Debian Lenny, also post # 4 : 1) and 2).

The "test" : cd ns-allinone-2.33/ns-2.33/lte-model-read-only/ && ./test

The "test" result :
Code:
.
.
Done
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

0       1       2       3       total(Mbyte)
0,04    0,03    0,00    1,20    1,27
0,01    0,00    0,00    0,05    0,05
0,00    0,00    0,00    0,00    0,00

0                1               2               3               total
0        0       0       0       0

awk: jitter.awk:42: (FILENAME=out.tr FNR=22988) fatal: attempted to divide by zero

check the out.txt out.tr out.nam for detailed information.
P.S. : And please do not run ./configure or edit the Makefile.in.
May be you should start from scratch with a new ns-allinone-2.33/.

Last edited by knudfl; 02-25-2011 at 12:12 PM.
 
Old 02-25-2011, 01:01 PM   #12
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
the command:
"cd ns-allinone-2.33/tk8.4.18/
patch -p0 < tk-8.4-lastevent.patch"

is not working, is showing:
file or directory not found, anyway about how I should proceed?
 
Old 02-25-2011, 01:22 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 12.

Move tk-8.4-lastevent.patch into ns-allinone-2.33/tk8.4.18/
Then you can do : patch -p0 < tk-8.4-lastevent.patch
Which is not possible, if you have the file in another location.


Or : patch -p0 < <path-to-the-patch>/tk-8.4-lastevent.patch
Like : patch -p0 < ../../tk-8.4-lastevent.patch
... if you have placed it outside ns-allinone-2.33/
( Or use the absolute path : Lots of possible ways to use a command.)

..
 
Old 02-25-2011, 01:38 PM   #14
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 12.

Move tk-8.4-lastevent.patch into ns-allinone-2.33/tk8.4.18/
Then you can do : patch -p0 < tk-8.4-lastevent.patch
Which is not possible, if you have the file in another location.


Or : patch -p0 < <path-to-the-patch>/tk-8.4-lastevent.patch
Like : patch -p0 < ../../tk-8.4-lastevent.patch
... if you have placed it outside ns-allinone-2.33/
( Or use the absolute path : Lots of possible ways to use a command.)

..
Finally I proceeded, I remember that I have two installations from ns (ns2.29 and ns2.33), and I would not like to uninstall version 2.29, once I am using version 2.33 for a specific purpose. I am not sure about what version is being used here. How can I verify this?

Best Regards
 
Old 02-25-2011, 02:22 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
.. I remember that I have two installations from ns (ns2.29 and ns2.33),
and I would not like to uninstall version 2.29, once I am using version 2.33
for a specific purpose. I am not sure about what version is being used here.
How can I verify this ?
You can have as many "ns-allinone-2.xx" as you want.
Also : No problem having two times ns-allinone-2.33 with different patching.
The trick is to rename the binary 'ns' right after compiling.
Like ns to ns233. And after a patching, e.g. : 'cp ns ns233-LTE'.
( And then copy the binary to /usr/local/bin/.)

Example from one of my (40) systems : 'ls /usr/local/bin/ns*'
/usr/local/bin/ns227* /usr/local/bin/ns227-leach* /usr/local/bin/ns233*
/usr/local/bin/ns234* /usr/local/bin/ns233-mobiwan*

..

Last edited by knudfl; 02-25-2011 at 02:26 PM.
 
  


Reply

Tags
lte, lte-ns235, 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
installing leach patch in ns2.34 in ubuntu9.10 g_vaibh Ubuntu 19 04-09-2015 09:43 AM
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 08:26 AM
I cant recompile my patch in ns2 on red hat v5 JawadZaheer Linux - Software 0 12-22-2007 11:31 PM

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

All times are GMT -5. The time now is 09:23 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