- Home Page of ProjectGuideline.com ›
- Forums ›
- Help for Ns2 Projects, Ns2 Code, Matlab Projects, Matlab Code, etc., ›
- DOS and DDoS Simulation +Comparison and Analysis of Xgraph
i have to simulate DDoS and DoS in ns2 using TCP …and then have to genrate the graph using xgraph….i want to check the packet loss…acknowledgements…bandwidth and delays……..at specific time interval…….how i can do this…????
what i have done yet is that i have simulated the DDoS but dnt know how to generate these different graphs and how to do their analysis…
Any idea………i am using NS2 for the first time……Thanks in Advance…
i just create some nodes as clients and then one node as a server…then create the links between them……after that the clients are sending packtes to the server after a very little delay……the starting of all the nodes is 0.0………if there is no acknowledgment from the server then the packet drop…….its seems like there is a DDoS attack on the server……i dnt know that whatever i have done is ok or not…??????
please reply me that my logic is accurate or not….
That is the very basic way of simulating DoS attack in a ns2 simulation.
If you run the simulation, it may create a trace file. For example, the following lines will open the file TCP_Name-out.tr and write all trace events in it.
set TraceFD [open $TCP_Name-out.tr w]
$ns trace-all $TraceFD
After running the simulation, you may use a suitable scripting language like awk, perl etc., etc., to analyze the trace file. Or simply you may use shell scripts to do trace analysis. Search Internet you may find lot of such awk and perl files for trace analyzing the ns2 trace file.
You may learn about trace analysis from the following tutorials.
thanx for replying…well i have used xgraph to generate the graph i took the code from the net and now unable to understand the output fle…bcz its usnig formula…
#Calculate the bandwidth (in MBit/s) and write it to the files
puts $f0 “$now [expr $bw0/$time*8/1000000]”
puts $f1 “$now [expr $bw1/$time*8/1000000]”
puts $f2 “$now [expr $bw2/$time*8/1000000]”
i dnt know which value is on x-axis and which value is on y-axis…???
does anyone knows how to simulate various attacks on manets such as dos, flooding, blackhole, grayhole, wormhole, sybil etc…please provide me with the source code and the link..
Thanks in advance
You must be logged in to reply to this topic.