Use the new trace format.
Create a nam and ns trace file analyzer for regular expression based statistical analysis of sent, received and dropped packets.