BEGIN { highest_packet_id=0; } { Event=$1; Time=$2; Tx=$3; Rx=$4; Packet=$12; Type=$5; Bytes=$8; if(Packet>highest_packet_id) highest_packet_id=Packet; if(Type=="cbr") { if (Event=="+" && ((Tx=="0" && Rx=="2") || (Tx=="1" && Rx=="2"))) { start_time[Packet]=Time; } if (Event=="r" && Tx=="2" && Rx=="3") { end_time[Packet]=Time; } if (Event=="d") { end_time[Packet]=-1; dropped_pckts++; } } } END { for(packet_id=0;packet_id<=highest_packet_id;packet_id++) { if (start_time[packet_id]