LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   how to installing LTE module patch in NS2.33 (http://www.linuxquestions.org/questions/ubuntu-63/how-to-installing-lte-module-patch-in-ns2-33-a-857930/)

kiwiw 01-22-2011 02:43 AM

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

knudfl 01-22-2011 08:12 AM

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

kiwiw 01-23-2011 11:29 PM

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

knudfl 01-24-2011 04:36 AM

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

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

kiwiw 01-24-2011 10:17 AM

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

knudfl 01-24-2011 12:55 PM

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.

..

Salvio de Barros 02-24-2011 04:21 PM

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

knudfl 02-24-2011 05:11 PM

@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

..

Salvio de Barros 02-25-2011 09:01 AM

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

Salvio de Barros 02-25-2011 09:11 AM

Quote:

Originally Posted by knudfl (Post 4270220)
@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

knudfl 02-25-2011 12:00 PM

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

Salvio de Barros 02-25-2011 01:01 PM

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?

knudfl 02-25-2011 01:22 PM

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

..

Salvio de Barros 02-25-2011 01:38 PM

Quote:

Originally Posted by knudfl (Post 4271203)
# 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

knudfl 02-25-2011 02:22 PM

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*

..


All times are GMT -5. The time now is 05:06 AM.