Today's internet suffering from the distributed denial of service attack. DoS is very recent and popular and has tremendous effect on internet. DoS have different types to effect the integrity, availability and security of an any architecture. Today's process to eliminate the Dos is not too much effective. So it essential to detect and mitigate the denial of service attack. So this paper proposes a system to detect and eliminate the denial of service attack. To eliminate the denial of service attack Token Bucket Algorithm (TBA) is using.