I am aimed to compare MANET protocols on the basis of hop count.So, I need formula and AWK script to calculate hop count from trace file generated by NS2 from simulation.
there is software called trace graph, instead of using AWK script, use trace graph software which will extract trace files and draw the graph according to your need. any help contact me