My project is to simulate the dynamic spectrum access network which is consisted of some primary and also secondary users, and there are N channels for them to communicate.For example 6 PU, 10 SU and 3 channels.
And below is my network environment
i) Primary users will only communicate within each other and so does with secondary user.
ii) Primary users have the priority to use the channel. If primary user want to use the channel, the secondary users which are using the channel will detect the existence of PU and must free the channel.
I am still working to implement such algorithm and link below is the website that i refer to. I using the CRCN provided by the website.
Here is my problem. In the CRCN the detection of primary user is by sending a packet from a PU which indicates it is a PU.
My lecturer does not want this algorithm. He want me to detect the PU by sensing the channel energy in physical layer.
Can anybody gives me the idea/any website on how to implement channel sensing in ns 2?There are 2 objectives I need to achieve now.
1.SU sense the channel enegy before using it.
2.SU can sense the PU while using channel and free it for PU.
I tried to read through the documentation by CRCN and cant find any helpful information.
Thank in advance and sorry for my lousy english.