Summary
Effective use of unused licensed spectrum by secondary nodes without causing any harmful interference to the primary users is one of the challenging task, and in this paper, a detailed description of joint spectrum sensing and resource allocation in cognitive radio (CR) networks is discussed. The CR system utility is maximized by joint spectrum sensing and channel resource allocation scheme based on random walk grey wolf optimization (RW‐GWO) algorithm for frequency hopping cognitive radio‐based networks. In this paper, the nodes will sense the presence of primary users in the same channel and move to another channel in the guidance of a guide node (GN) if primary signal is detected in the channel. In order to achieve collision‐free communication, primary signals and secondary signals use the channels strategically and the mechanism is described in this paper. RW‐GWO is used to derive the optimum sensing and data transmission schedules. It selects the sensing nodes to sense the spectrum and other nodes take part in transmitting the data. GNs not only guide the nodes to hop to the next channel if the primary channel is detected, but also distribute the nodes in different available secondary hopping channels. Simulation results show that reliable spectrum sensing and efficient channel allocation can be achieved in our proposed algorithm.