- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- number of packets received is more than the packets sent
Hi all,
I’m trying to simulate wired-cum-wireless scenario in ns-2.29 using AODV+. The problem is that the number of data packets received is much more than the data packets sent. Why is it happening so, I’m unable to understand the reason behind.
Regards
Amita
refer the following answer provided in the following link.
http://www.projectguideline.com/modules.php?name=Forums&file=viewtopic&p=452#452
@CharlesPandian wrote:
Try to eanable the new trace format of ns2 before simulation.
While doing trace analysis, filter sent or recieved packet from suitable layer (MAC / Routing / AGT). This will avoid false counts.
Still, there are chances for getting high received count due to duplicates. We can isolate duplicates them using the unique packet ID.
You have to count from AGT to AGT like this:
#PERL CODE PORTION
while () {
if (/AGT/ && /^s/){
$agtsent++;
} elsif (/AGT/ && /^r/) {
$agtrcv++;
}
}