Tuesday, May 14, 2013

How to detect DDoS attack in NS2

NS2 can be used to simulate a DDos attack. This is how you can detect DDos attack in NS2.

IDEA1

1. Create a topology. Depending on how many source input you want.

2. For the source node, set the bandwidth of normal traffic(the regular traffic) to constant.

3. To create the attack, generate many packets of CBR UDP randomly.


IDEA 2

1. create a topology make sure there are normal source and also source node for the attacker.

2. For normal source create normal traffic.

3. For attacker source create the randomly generated DDOS attack.

(the number of normal source node, and attacker node depend on your requirement)


By doing this, you will have a normal traffic and random generated traffic (the attack).


No comments:

Post a Comment