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.
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)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
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.)
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
*** 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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 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.)
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?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
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*
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.