Thank you Virendra for your answer, but we have an intrusion detection architecture based on MAS and each agent plays a rôle : Capture packets, pretraitement, detection...
How I can simulate this architecture with NS2 ? Any idea ?
Hope you know how to write tcl script for your archetecture then place this tcl script in your directory where your code for own architecture is placed then go to your director and execute your tcl script using ns command. then check whether trace file is generated or not, if generated analyse the content of trace file using awk command by writing awk script. using result obtained from awk compare the result and if you want to draw the graph then use xgrap or gnuplot or excell 2007.