crSimulator: A discrete simulation model for cognitive radio ad hoc networks in OMNeT ++
The growth in wireless technology and the increasing demand for wireless multimedia services creates a lack of spectrum. A potential solution to this issue is to allocate the spectrum dynamically by means of cognitive radio. Iterative Water Filling (IWF) can offer a practical solution to this dynamic spectrum allocation. Straightforward implementations of IWF in C/C++ or Matlab already exist. To our knowledge, this algorithm has not been studied yet in an eventdriven simulator such as OMNeT++/MiXiM. For the implementation of the IWF, it is required to have multiple sub-channels with an adjustable power for each of them. In this work, several existing MiXiM modules are extended in order to permit the use of multiple sub-channels for the communication between nodes. Moreover, new classes, maps and events are created for the implementation of the IWF algorithm. The implementation is validated through simulations of a scenario where two tactical radio networks coexist in the same area.