LinuxQuestions.org
Review your favorite Linux distribution.
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 02-26-2011, 11:07 AM   #16
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0

Quote:
Originally Posted by knudfl View Post
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
 
Old 03-05-2011, 08:41 AM   #17
bsyew
LQ Newbie
 
Registered: Jan 2011
Posts: 19
Blog Entries: 2

Rep: Reputation: 3
How to renama a binary?

Sir,

Regarding to above post, how to rename a binary?
 
Old 03-05-2011, 09:09 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

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

..
 
Old 03-10-2011, 12:29 PM   #19
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Does anybody know if this lte module would be applicable to ns2.29?

If so, how I should proceed?

Last edited by Salvio de Barros; 03-10-2011 at 12:51 PM.
 
Old 03-10-2011, 02:53 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 03-10-2011, 03:07 PM   #21
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 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
 
Old 03-10-2011, 03:20 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

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

..
 
Old 03-10-2011, 03:47 PM   #23
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 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

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

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

..
 
Old 03-11-2011, 06:23 AM   #25
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 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?
 
Old 03-11-2011, 08:36 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

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

..

Last edited by knudfl; 03-11-2011 at 09:09 AM.
 
Old 03-11-2011, 01:24 PM   #27
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 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)
 
Old 03-11-2011, 02:15 PM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

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

.
 
Old 03-15-2011, 04:08 PM   #29
Salvio de Barros
LQ Newbie
 
Registered: Feb 2011
Posts: 12

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

Last edited by Salvio de Barros; 03-15-2011 at 04:09 PM.
 
Old 04-27-2011, 09:35 PM   #30
sinungtp
LQ Newbie
 
Registered: Apr 2011
Location: Bandung, Indonesia
Distribution: ubuntu
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by kiwiw View Post
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
 
  


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 03:22 AM.

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