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 |
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 - |
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 |
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. |
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:
And, by the way, I never tested the code. Don't know if it works. - |
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. |
How to monitor multi-channels, multi-interfaces in trace file, i.e. which ifce, ch has been used in the communication?
cheers, |
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, |
SOS!..............Please any suggestions????
|
All times are GMT -5. The time now is 12:26 PM. |