Wireless networks, are susceptible to a wide range of Denial-of-Service attacks which does not follow MAC protocol. Due to the open access and shared nature wireless communication systems are often vulnerable to the jamming attack where adversaries attempt to transmit radio interference to disrupt communication. Another simple denial-of-service attack is replay attack which is also easy to launch due to its principle based on two simple operations that is recording and resending massages. In order to detect and cope with this kind of Denial-Of-Service (DOS) style attack, many strategies have been developed. The traditional method spread spectrum techniques is use overcome the jamming attacks, which include frequency hopping and direct sequence spread spectrum. Anti-jamming techniques should support the device communication during the key establishment that requires devices have to share a secret key before start of the communication but it creates circular dependency. Therefore, research interest in wireless network has been growing since last few years.In this paper, we proposed a integration of timestamp discrepancy and packet delivery ratio to validate a message and consequently to detect jamming attack. Our proposed timestamp scheme estimates the time where the message is transmitted, received and validated at receiver node. Replay attack detection and prevention is performed by using concept of packet delivery ratio and packet filtration. After detecting actual malicious node prevention is performed, in order to gain security in network. So to mitigate above attack solution is provided by using random key generation.