The invention discloses an implementation method of an ad hoc network anti-interference
system based on deep
reinforcement learning, and the method comprises the steps: 1, constructing a
simulation network environment based on a network simulator 3 (NS-3)
simulation platform and an OpenAI Gym interface, and enabling the
simulation network environment to be used for collecting a channel state in real time and feeding back the channel state to an
intelligent agent; and 2, after receiving the network state, the
intelligent agent feeds back a decision result obtained by learning to a network node to guide channel switching in real time. And step 3, fusing mechanisms such as a long short-
term memory (LSTM) network, a competition
network structure, a double deep Q network, a double deep Q network, a prioritized experience replay (PER) and the like, designing a PER-D3RQN
algorithm, and carrying out efficient prediction on an interference
time sequence rule. According to the method, the accuracy of channel selection can be remarkably improved in multiple interference
modes, the
network performance and the anti-interference robustness are improved, and the performance superior to that of a traditional deep Q-network (DQN) and a traditional frequency hopping strategy is shown.