Program
Program
proc finish {} {
global ns nf tf
close $tf
close $nf
exec nam lab2.nam &
exit 0
}
Awk Script:
BEGIN {
#include<stdio.h>
count=0;
}
{
If ($1=="d")
count++
}
END {
printf("The Total no of Packets Dropped due to Congestion is :%d ", count)
}