The Information Technology Amendment Act-2008, Section-43(f) states, about the DoS (Denial of Service) attack[11]. The implementation of DoS and DDoS attack by the attacker may vary and based on different types of services and protocols. The proposed work is to implement the DoS and DDoS attack and accordingly the formula to revamp the “ping of death” attack using ICMP. ”Ping of death” is based on ICMP to choke the services of the target machine by sending unlimited packets. As with the victim's machine network being choked the attacker's system network is also compromised. So when the attackers want to attack the target machine on a massive scale they use DDoS attack in which it uses several systems to attack one target system. The advantage is that in DDoS the network of attacker's system is not compromised to a larger extent as it follows a distributed approach. This research proposes the different relationships between the parameters obtained a formula for the percentage of network choked and the value of the proportionality constant 'k'.