In this modern era, communication in any type of network becomes very important and also providing security to the communication line also makes equal importance. To develop this feature a highly dynamic, self-configured, a proactive feature-enabled net-work should be used and that network is Software Defined Network. Due to vulnerabilities in the network, it majorly degrades the performance of the network, so a security mechanism needs to be developed so that throughput is increased, with minimal delay, latency and increase in performance. In this paper, a solution is provided for the node failures, link failures which are caused due to the malicious or misbehavior of nodes leading to disruption in the network caused by external intervention. This is due to the cause of Denial of Service attacks. Here, a method named Dynamic proactive cluster-based node failure detection, Re routing and Restoration is proposed in Software defined Networks to avoid these type of attacks which causes node disruption in the network, so that there may be packet loss, decrease in throughput of the network. By using the proposed Reliable fault-tolerant self-configured dynamic clustering mechanism we are implementing a distributed clustering DoS Attack prevention methodology to provide fault tolerance, achieve reliability and provide a security mechanism in the network. The main principle involved in the distributed clustering process here is node failure detection, rerouting of nodes and restoration of nodes. The simulation results obtained in the distributed clustering approach, a considerable increase in the performance of the network in terms of reliability, throughput, packet loss rate, recovery time and security is achieved over the existing traditional methods where the occurrence of node failures or link failures, and lack in security happens regularly.