A Denial-of-Service attack (commonly known as a DoS attack) is a cyberattack that attempts to disable a device or network.…