LinuxQuestions.org

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

Salvio de Barros 02-26-2011 11:07 AM

Quote:

Originally Posted by knudfl (Post 4271264)
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*

..

Bingo, I was correct, It was my version of NS, the version which was being executed was ns2.29, so I moved the file from ns233 and copied to /usr/local/bin

Now the error it is not occuring again

Thanks

bsyew 03-05-2011 08:41 AM

How to renama a binary?
 
Sir,

Regarding to above post, how to rename a binary?

knudfl 03-05-2011 09:09 AM

@bsyew : A binary is a file.
All files can be copied to a new name, or renamed :

cp ns ns233

mv ns ns233

( Or 'right click' the file, and choose 'Copy' or 'Rename'.)

..

Salvio de Barros 03-10-2011 12:29 PM

Does anybody know if this lte module would be applicable to ns2.29?

If so, how I should proceed?

knudfl 03-10-2011 02:53 PM

# 19 , @Salvio de Barros
Quote:

Does anybody know if this lte module would be applicable to ns2.29 ?
Why do you want that ?
When you easily can have 2-5 different ns-allinone-2.xx installed at the same time.

Salvio de Barros 03-10-2011 03:07 PM

Quote:

Originally Posted by knudfl (Post 4285970)
# 19 , @Salvio de Barros


Why do you want that ?
When you easily can have 2-5 different ns-allinone-2.xx installed at the same time.

I asked this, because the module was build under ns2.33, which uses gcc and g++ 4.3, differing from ns2.29, which works only under gcc and g++ 4.0 or 4.1

My question is if the implemented features on lte module does not have incompatibilites on previous versions of gcc and g++. Once I have other ready test environment in ns2.29, thus I would like to verify this

knudfl 03-10-2011 03:20 PM

# 21.
Quote:

My question is if the implemented features on lte module does not have
incompatibilites on previous versions of gcc and g++.
Not quite clear, what you mean.

When the application has been compiled, i.e. the libraries and the binary ns,
it doesn't matter which compiler, that was used.

The binary 'ns' can most often not be used in a different ns-2.xx.
That's why it can be renamed : Please see the above posts.

..

Salvio de Barros 03-10-2011 03:47 PM

Quote:

Originally Posted by knudfl (Post 4286014)
# 21.


Not quite clear, what you mean.

When the application has been compiled, i.e. the libraries and the binary ns,
it doesn't matter which compiler, that was used.

The binary 'ns' can most often not be used in a different ns-2.xx.
That's why it can be renamed : Please see the above posts.

..

I understand what you said, but I was reading previously that in general ns2.29 is compiled only by using gcc and g++ 4.0 or 4.1, but from ns2.32 there are modules(I do not remember now) which is only compiled using gcc and g++ 4.3.

I am not sure if this lte-module works on ns2.29, because of these compilation things, so that is the reason I mentioned this.

An example for this, is by attempting to compile ns2.29 using gcc and g++ 4.3

knudfl 03-10-2011 05:09 PM

# 23.

You can have all the compilers you want installed at the same time.
( g++-3.3, g++-3.4, g++-4.1, g++-4.2, g++-4.3 etc.)
So I still don't understand, what issues it is about.

The LTE files work perfectly on ns-allinone-2.33, no reason to try
with another version.

And by the way : ns-2.33, ns-2.34 are often compiled with gcc/g++-3.4 only.

..

Salvio de Barros 03-11-2011 06:23 AM

Quote:

Originally Posted by knudfl (Post 4286158)
# 23.

You can have all the compilers you want installed at the same time.
( g++-3.3, g++-3.4, g++-4.1, g++-4.2, g++-4.3 etc.)
So I still don't understand, what issues it is about.

The LTE files work perfectly on ns-allinone-2.33, no reason to try
with another version.

And by the way : ns-2.33, ns-2.34 are often compiled with gcc/g++-3.4 only.

..

Again, I understand what you said, but I would like to test this on ns2.29, because I have other environment and specific patches prepared for my tests, which does not work on ns2.33.

Thus I would like to integrate lte module to version ns2.29 and verify if it works properly. Now is it clear?

knudfl 03-11-2011 08:36 AM

# 25.
Quote:

I would like to integrate lte module to version ns-2.29
Sorry, not possible : ns-allinone-2.29/ns-2.29/lte-model-read-only/checkin

cp packet.h ../common/packet.h
cp packet.cc ../common/packet.cc

These are essential files : Compilation not possible.
( Unless you modify the code : Just try for yourself.)

..

Salvio de Barros 03-11-2011 01:24 PM

Quote:

Originally Posted by knudfl (Post 4286961)
# 25.


Sorry, not possible : ns-allinone-2.29/ns-2.29/lte-model-read-only/checkin

cp packet.h ../common/packet.h
cp packet.cc ../common/packet.cc

These are essential files : Compilation not possible.
( Unless you modify the code : Just try for yourself.)

..

I was observing that these files (packet.h and packet.cc) contains some differences, do you know if the other files have differences between them?

(i.e: queue.cc from ns and queue.cc from lte module)

knudfl 03-11-2011 02:15 PM

#27 : Please read ns-allinone-2.29/ns-2.29/lte-model-read-only/checkin :

Three .cc files are changed :

# modified .h and .cc :
cp packet.h ../common/packet.h
cp packet.cc ../common/packet.cc
cp drop-tail.h ../queue/drop-tail.h
cp drop-tail.cc ../queue/drop-tail.cc
cp red.h ../queue/red.h
cp red.cc ../queue/red.cc
cp queue.h ../queue/queue.h

.

Salvio de Barros 03-15-2011 04:08 PM

I would like to know the correct place to create topics related to NS2, does anybody know?

sinungtp 04-27-2011 09:35 PM

Quote:

Originally Posted by kiwiw (Post 4233810)
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


Hey Made,
have you already try to run lte.tcl?Are you get "invalid classid 30" error message?I already trying to install the LTE-Module in NS-2.33, it's done well, but when I try to execute the lte.tcl, I got that message, any idea about that?

anyone whose already try it, please let me know what the meaning of that message
Thx


All times are GMT -5. The time now is 07:25 AM.