LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2011, 08:42 AM   #1
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Rep: Reputation: 9
Cognitive Radio Network Simulator


Hi,

I am using the following add-on with ns2 2.31 to be able to simulate cognitive radio networks.
http://www.ece.mtu.edu/~ljialian/. I installed this on ubuntu 11.04. I am unable to make install,make depend or make after following the instructions. If anybody has installed may i know which linux version should i go.Or anybody has implemented on ns 2.34 . Any help will be highly appreciated.
Many many thanks.
 
Old 11-30-2011, 11:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 11.04 is not fit for ns2.
( Ubuntu 11.10 is even worse.)

Ubuntu 10.04 will do, if you prefer Ubuntu.
( All ns2 was created and tested on CentOS / RHEL :
The perfect choice is CentOS 5.7 ).
 
1 members found this post helpful.
Old 11-30-2011, 01:58 PM   #3
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by knudfl View Post
Ubuntu 11.04 is not fit for ns2.
( Ubuntu 11.10 is even worse.)

Ubuntu 10.04 will do, if you prefer Ubuntu.
( All ns2 was created and tested on CentOS / RHEL :
The perfect choice is CentOS 5.7 ).
Thanks you so much. Highly obliged.
 
Old 12-01-2011, 06:33 AM   #4
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
I installed it on Ubuntu 10.04 and exactly followed the instruction.
when i do make depend it gives me

/bin/sh: Syntax error: Bad fd number
make: *** [depend] Error 2


I am a novice in Linux. Please help.

Thanks
 
Old 12-01-2011, 07:39 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#4.
1) cd ns-allinone-2.31/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install
1a) cd ns-2.31/ && mv ns ns231 : Probably required for non crcn files.

2) The further instructions (for CRCN) are described here, #9
http://www.linuxquestions.org/questi...31-a-831390/#9

Quote:
/bin/sh: Syntax error: Bad fd number
make: *** [depend] Error 2
Not important. Just type make, and the "ns-crcn" binary is created.
( cp ns ns-crcn : Then you have a named backup.)

EDIT : More about "make depend", see post #6, etc. etc.

..

Last edited by knudfl; 01-04-2012 at 05:36 AM.
 
Old 12-02-2011, 03:17 PM   #6
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
I have been able to run CRCN patch on ubuntu 10.04 with ns2.31

As for the emake depend error the solution is to add in Makefile

SHELL=/bin/bash.

Thank you so much knudfl. May God bless you.
 
1 members found this post helpful.
Old 12-31-2011, 09:02 AM   #7
tornado90
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
I have the same error when doing Make depend

I am using Ubuntu 10.04 with ns 2.31
I have added the lines in post #6 to the top of Makefile, but still have the same problem.
I am a bit new to linux and ns, so perhaps I am doing something wrong, can you help me to figure the problem ?

Thanks
 
Old 12-31-2011, 11:23 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #7, @ tornado90 : Welcome to LQ.

The 'make depend' command is not that important, as the application
already was installed previously.

The 'make' command will do, as originally described in post #5.

..
 
Old 01-01-2012, 03:48 AM   #9
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
make sure you have makedepend and thus need


sudo apt-get install imake
 
Old 01-04-2012, 01:42 AM   #10
tornado90
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
@sirajl: I did the command you wrote, but the error still exist

So I made as knudfl said and jumped to make, and seems that it is working

Thanks a lot Knudfl & Sirajl
 
Old 01-05-2012, 02:50 AM   #11
sirajl
LQ Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 9
I am happy tornado90 that you are able to solve the problem
 
Old 01-05-2012, 04:55 AM   #12
tornado90
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
Thanks
Can I ask you for one more thing?

Now the program is working with me, but I want to understand the output graphs,
I am very new to ns2, so I can't figure out what is the model he is working on,
I have looked at the tutorial on http://stuweb.ee.mtu.edu/~ljialian/index.htm
but still can't figure out his model.
I am working with the GUI but I don't feel that the parameters that I am
putting, gives me the whole picture of the model

So can you please tell me about it, or how to find and understand it.

Thanks a lot
 
Old 01-08-2012, 08:31 AM   #13
tornado90
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
Hey Guys, can anybody help me to understand the graphs from the simulator ?
I just want someone to tell me what is the model, or how to understand it
 
Old 08-07-2014, 02:40 AM   #14
abrartunio
LQ Newbie
 
Registered: Apr 2014
Posts: 17

Rep: Reputation: Disabled
404 Not Found

http://stuweb.ee.mtu.edu/~ljialian/

This link is dead again.
Can anyone provide me data of that link.
I will be grateful.
 
Old 08-10-2014, 11:19 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #14, @abrartunio.

All CRCN info at LQ http://www.linuxquestions.org/questions/tags/crcn/

The information in "http://stuweb.ee.mtu.edu/~ljialian/" is more or less contained here
. http://faculty.uml.edu/Tricia_Chigan..._Simulator.htm
. https://sites.google.com/a/seecs.edu...adio-network-s

Saved pages from the Internet : CRCN_info.tar.gz → →
https://drive.google.com/file/d/0B7S...it?usp=sharing
-
Attached Files
File Type: txt links-crcn.txt (1.6 KB, 57 views)
 
  


Reply

Tags
crcn, 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
channel sensing in CRCN (cognitive radio cognitive network) patch saywei89 Linux - Software 12 08-30-2014 12:28 PM
Network Simulator code for cognitive radio protti1 Linux - Newbie 1 07-16-2014 06:12 AM
I am looking for tcl code for cognitive wireless network scene hcp505 Programming 4 06-14-2011 11:47 AM
How to configure cognitive radio using Linux ? sanjibkdeka Linux - Networking 1 05-26-2011 05:29 PM
Will Cognitive Radio simulation work on NS-2.34 coolsunshines Linux - Software 2 03-07-2011 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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