Hi ns2 users,

I am trying to establish the ratio of received packets for a CBR traffic source.
I've implemented a counter within the void Agent::recv(Packet* p, Handler*) 
method in agent.cc however I have come up against a problem. The counter 
appears to count all the packets irrespective of whether they are dropped or 
not. i.e. If the sending application sends 300 packets but 10 are dropped the 
counter within the recv method counts all 300, despite the fact the ns2 .tr 
shows that only 290 packets were delivered. 

I am wondering if anybody knows as to why this problem is occuring?

Any help anyone can provide will be gratefully received,

Best regards,

Mark Culverhouse

Reply via email to