LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Insert Primary User (PU) activity model in ns2 CRAHNS (https://www.linuxquestions.org/questions/linux-newbie-8/insert-primary-user-pu-activity-model-in-ns2-crahns-4175605382/)

cai 05-06-2017 11:21 AM

Insert Primary User (PU) activity model in ns2 CRAHNS
 
Hi. I'm totally new to ns2 and I want to simulate two Primary User activity model which are on/off markov chain and on/off exponential distribution. But I don't know what file to change in order to integrate PU activity model in ns2. Can anyone help me? Thank you

knudfl 05-06-2017 04:13 PM

Did you read the "crahn-ns2" threads ?
http://www.linuxquestions.org/questions/tags/crahn-ns2/


PU activity is ns2-crahn
https://books.google.dk/books?id=Wda...0model&f=false
Quote:

Figure 11.7: NS2-CRAHN architecture.

The PU activity is modeled by the exponential ONN/OFF model [50], where
each PU has two states: an ON (busy) state representing the period in which a PU
occupies the channel, and an OFF (idle) state representing the period in which the
channel can be used by a CR user. Switching between the ON/OFF states follows
a birth-death Markovian process. The ON/OFF states of channel i follow
exponential distributions, with TONi and TOFFi, respectively.

cai 05-07-2017 02:13 AM

I've read them but
 
Quote:

Originally Posted by knudfl (Post 5707138)

Hi, thank you for your answer. I've read them but first thing of all, I don't know what I should do to add PU activity model. I have to add new PU activity model (C++ codes) ? and where do I put the PU activity model in ns2 folder? Is it in folder ns-2.3X? TQ

knudfl 05-07-2017 05:20 AM

Re #2.

I guess you will have to read all the NS2-CRAHN text in the book referred to.

And find out if it's the same "CRAHN" as the TFRC-CRAHN, i.e. PU activity may already be present.
https://github.com/abdulla-alali
https://github.com/abdulla-alali/TFRC-CR
https://github.com/abdulla-alali/CRAHN_examples

http://krc.coe.neu.edu/?q=node/16
https://github.com/abdulla-alali/TFRC-CR/tree/CRAHN

-


All times are GMT -5. The time now is 02:05 AM.