BEGIN {udppkts_sent=0; udppkts_rcvd=0; total_udpbytes=0;} #initialize ### Do not forget to update node numbers in the script to match ### their real value based on your TCL script. $1=="+" && $3=="1" && $5 == "cbr" {udppkts_sent++;} $1=="r" && $4=="6" && $5 == "cbr" { udppkts_rcvd++; #if packet is received at node 8, increment the total number of packets received total_udpbytes += $6; } END { udp_thru = udppkts_rcvd / udppkts_sent * 100; print "UDP throughput: " udp_thru " %" >> "hw3.log"; }