LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2013, 10:15 AM   #1
Retta
LQ Newbie
 
Registered: Nov 2013
Posts: 16

Rep: Reputation: Disabled
Create a new protocol in ns2.31


Hi, i am trying to implement a new routing and mac protocol for CRCN, but i don't know how to start or if there any basic model i can start by it or modify it.

I really need your help.
Retta
 
Old 11-19-2013, 12:07 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

1) CRCN info, LQ http://www.linuxquestions.org/questions/tags/crcn/

2) I have a folder "CRCN-modified-MAC" in my CRCN directory.
Can't see where I got it.
The packed files, CRCN-modified-MAC.tar.gz ~280kB
can be downloaded from my "Google Drive" ..
https://drive.google.com/file/d/0B7S...it?usp=sharing

-
 
Old 11-20-2013, 08:40 AM   #3
Retta
LQ Newbie
 
Registered: Nov 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thank you knudfl.

sorry i am new to ns! and i need some extra help!.
If i want to use this protocol how to use it? where i have to put these files? and what name of mac i should set in my tcl file to invoke this protocol? Does the protocol tested?

waiting for your help
Retta
 
Old 11-23-2013, 09:14 AM   #4
SofwanLin
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
Hi knudfl,

This is my first post in this forum. I have a school project with CRCN topic. I am still building my knowledge of this topic. I have downloaded your CRCN-modified-MAC. Now, I have 2 questions after investigate the files.
1. I only see .cc modified files, without .tcl. Is there any .tcl file that should be modified ?
2. In mac-simple.cc (modified), at line 135 : int isprimaryuser = ((MobileNode*)(netif_-> node()))-> IsPrimaryUser;
Would you like to explain this line ? I have tried to understand it, especially with 'netif_'. I could not found this meaning. So far, I don't see netif_ in the modified files.

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

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 4, @Retta : Welcome to LQ.

CRCN-modified-MAC : Not my code. Something I once downloaded.
Sometimes one or more files in tcl/lib/, like `ns-default.tcl'
are to be edited. None in this case.


Quote:
In mac-simple.cc (modified), at line 135 :
int isprimaryuser = ((MobileNode*)(netif_-> node()))-> IsPrimaryUser;
Sorry, I have no idea.

And, by the way, I never tested the code. Don't know if it works.

-
 
Old 01-29-2014, 05:06 AM   #6
SofwanLin
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
Hi knudfl and everybody else,

I would like to ask you about channel in CRCN simulator. I read part of 'Test multi-radio, multi-channel', there are written sentences : 'Routing protocol is WCETT. 802_11 is used as the MAC protocol. Each node has 2 radios and 3 channels per radios. Since 802_11 is default to channel 0, thus only channel will be used in this case.'

My question is : can we use other channels in 802_11 as default for CRCN case ? If yes, which part I should change ? I have tried for several weeks to do this, any help is much appreciated.

Thank you.
 
Old 01-31-2014, 08:08 AM   #7
Retta
LQ Newbie
 
Registered: Nov 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Question

How to monitor multi-channels, multi-interfaces in trace file, i.e. which ifce, ch has been used in the communication?

cheers,
 
Old 01-31-2014, 08:10 AM   #8
Retta
LQ Newbie
 
Registered: Nov 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Multi-channels

[QUOTE=Retta;5108648]How to monitor multi-channels, multi-interfaces in trace file, i.e. which ifce, ch has been used in the communication?

cheers,
 
Old 02-03-2014, 06:40 AM   #9
Retta
LQ Newbie
 
Registered: Nov 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
SOS!..............Please any suggestions????
 
  


Reply

Tags
crcn, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
implementing new protocol in ns2.35 saeed.m Linux - Software 28 02-17-2015 12:21 PM
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 05:06 AM
LEACH protocol in ns2 swtjeeva Linux - Software 3 09-04-2012 01:53 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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