Research Article

A Multivariant Stream Analysis Approach to Detect and Mitigate DDoS Attacks in Vehicular Ad Hoc Networks

Algorithm 1

Input: Network Trace Nt.
Output: Ruleset Rs.
Step 1. Start
Step 2. Read network trace Nt.
Step 3. Split trace into different time window.
Step 4. Trace set Ts =
Step 5. For each time window Ti from Ts
Step 6. For each stream class Si
Step 7. Compute average payload Ap =
Step 8. Compute average hop count Ahc =
Step 9. Compute average ttl value Attl =
Step 10. Compute average packet frequency Apf =
Step 11. End
Step 12. Generate Rule Gr = Ahc, Attl,
Step 13. Add to rule set Rs =
Step 14. End
Step 15. Stop.