BEGIN { highest_packet_id=0; } { Event=$1; Time=$2; Tx=$3; Rx=$4; Packet=$12; Type=$5; Bytes=$6; Initial_Tx=$9; Initial_Rx=$10; if(Packet>highest_packet_id) highest_packet_id=Packet; if(Type=="tcp" && Packet>"100") { if (Event=="+" && ((Tx=="0" && Initial_Tx=="0.0" && Initial_Rx=="2.0") || (Tx=="1" && Initial_Tx=="1.0" && Initial_Rx=="3.0"))) { start_time[Packet]=Time; } if (Event=="r" && ((Rx=="2" && Initial_Tx=="0.0" && Initial_Rx=="2.0") || (Rx=="3" && Initial_Tx=="1.0" && Initial_Rx=="3.0"))) { 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]