LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Create a new protocol in ns2.31 (https://www.linuxquestions.org/questions/linux-software-2/create-a-new-protocol-in-ns2-31-a-4175485144/)

Retta 11-19-2013 09:15 AM

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

knudfl 11-19-2013 11:07 AM

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

-

Retta 11-20-2013 07:40 AM

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

SofwanLin 11-23-2013 08:14 AM

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.

knudfl 11-24-2013 09:19 AM

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.

-

SofwanLin 01-29-2014 04:06 AM

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.

Retta 01-31-2014 07:08 AM

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

cheers,

Retta 01-31-2014 07:10 AM

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,

Retta 02-03-2014 05:40 AM

SOS!..............Please any suggestions????


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