LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-10-2013, 10:40 PM   #1
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Rep: Reputation: Disabled
Does NS3 support CRN(cognitive radio network)?Or is there any CRN-patch for NS3?


Hello everyone.

My project is about CRN(cognitive radio network).I heared NS3 is better and more powerful for simulation,so I want to use NS3 for the simulation of CRN.However,there seems to be no information about whether NS3 supports CRN(cognitive radio network) or not.

Is there any CRN-patch for NS3?Can anybody gives me the idea on how to expand NS3 to simulate cognitive radio network?

Thank you in advance.
 
Old 10-11-2013, 02:51 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ns2 : The crcn patch http://www.linuxquestions.org/questions/tags/crcn/
CRCN examples : crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing
CRCN : There is also the CRCN GUI, CRCN.jar available
http://faculty.uml.edu/Tricia_Chigan...e%203/CRCN.jar
Ref. http://faculty.uml.edu/Tricia_Chigan...stallation.htm

Ns3 : ? May be ?
Google .. CRN ns3 .. https://www.google.com/webhp?hl=all#hl=en&q=CRN+ns3
Example https://sites.google.com/a/seecs.edu...Simulating-CRN

Napple Search `crn' http://network-simulator-ns-2.7690.n...ery=crn&days=0


-

Last edited by knudfl; 10-11-2013 at 03:01 AM.
 
Old 10-11-2013, 04:20 AM   #3
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
knudfl,
Thank you for your reply.I remembered it's knudfl that help buptmuye many times,and I appreciate it very much.

The reason why I want to use NS3 is that when I use "setdest"and "cbrgen" to get simulation scenarios with 70 nodes or more, I always got segmentation fault.
I tried to use GDB to debug it,finding the accurate place of the segmentation fault.It was at line 76 in "ns-allinone-2.31/ns-2.31/trace/basetrace.h".However,

I guess the source of the segmentation fault may be CRCN code,or may be the simulation scenarios.However,I still can't solve it from each of the possible source.

Can you help me?
 
Old 10-11-2013, 05:40 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 .

Don't really know what the problem is,
but then again ns2 has some limitations ..

http://www.cs.binghamton.edu/~kliu/r...2code/#speedup :
Quote:
"The implementation of the Packet data structure of NS2 does not math the realities.
The packet in ns2 simulation keeps all packet headers for any protocols implemented in NS2.
For example, a DSR routing packet may keep DSDV, AODV, or even a PING application header.
For this reason, till today, a packet used in ns2 simulation, would have a header size around 40~64KB.
And NO packet would be deleted to release the memory it holds until the end of the simulation.
So for a typical simulation with 100 nodes in ns2 around 1M packets exchanged (of course,
you may reuse the packets already being freed through Packet::free(Packet*).
To learn the implementation of it, please check file common/packet{.h,.cc} ),
you may hold 10% of it, 100K packets, and you may use a memory at least 100K*64KB -> 6.4GB,
which definitely would crash your computer (even it is a super server)."
 
  


Reply

Tags
ns3, segmentation fault 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
Cognitive Radio Network Simulator sirajl Linux - Networking 14 08-10-2014 11:19 AM
Network Simulator code for cognitive radio protti1 Linux - Newbie 1 07-16-2014 06:12 AM
NS3, problems with my network card. peter1218 Linux - Newbie 2 03-03-2011 06:30 PM
Torvalds interview - CRN synaptical Linux - General 1 07-17-2003 03:27 PM

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

All times are GMT -5. The time now is 12:38 PM.

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