Test 1
Test 1
tcl
#The below code is used to set the queue size b/w the nodes
#The below code is used to attach an UDP agent to n0, UDP #agent to n1 and null agent to n3.
#The below code sets the udp0 packets to red and udp1 #packets to blue color
proc finish { } {
global ns nf tf
$ns flush-trace
close $tf
close $nf
exit 0
$ns run
Test1.awk
BEGIN{
drop=0;
if($1= ="d" )
drop++;
END{